sestek-component 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -18,7 +18,7 @@
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */var ho;function mC(){return ho||(ho=1,process.env.NODE_ENV!=="production"&&(function(){function e(E,I){return E===I&&(E!==0||1/E===1/I)||E!==E&&I!==I}function A(E,I){C||n.startTransition===void 0||(C=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=I();if(!c){var Q=I();o(d,Q)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}Q=s({inst:{value:d,getSnapshot:I}});var p=Q[0].inst,v=Q[1];return i(function(){p.value=d,p.getSnapshot=I,t(p)&&v({inst:p})},[E,d,I]),u(function(){return t(p)&&v({inst:p}),E(function(){t(p)&&v({inst:p})})},[E]),g(d),d}function t(E){var I=E.getSnapshot;E=E.value;try{var d=I();return!o(E,d)}catch{return!0}}function r(E,I){return I()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=b,o=typeof Object.is=="function"?Object.is:e,s=n.useState,u=n.useEffect,i=n.useLayoutEffect,g=n.useDebugValue,C=!1,c=!1,B=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:A;jr.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:B,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),jr}var vo;function hC(){return vo||(vo=1,process.env.NODE_ENV==="production"?kt.exports=pC():kt.exports=mC()),kt.exports}var vC=hC();function wC(){return vC.useSyncExternalStore(xC,()=>!0,()=>!1)}function xC(){return()=>{}}var Dn="Avatar",[bC]=Ne(Dn),[DC,Ns]=bC(Dn),js=l.forwardRef((e,A)=>{const{__scopeAvatar:t,...r}=e,[n,o]=l.useState("idle");return a.jsx(DC,{scope:t,imageLoadingStatus:n,onImageLoadingStatusChange:o,children:a.jsx(ne.span,{...r,ref:A})})});js.displayName=Dn;var ks="AvatarImage",Os=l.forwardRef((e,A)=>{const{__scopeAvatar:t,src:r,onLoadingStatusChange:n=()=>{},...o}=e,s=Ns(ks,t),u=yC(r,o),i=Ue(g=>{n(g),s.onImageLoadingStatusChange(g)});return Me(()=>{u!=="idle"&&i(u)},[u,i]),u==="loaded"?a.jsx(ne.img,{...o,ref:A,src:r}):null});Os.displayName=ks;var Ms="AvatarFallback",Ps=l.forwardRef((e,A)=>{const{__scopeAvatar:t,delayMs:r,...n}=e,o=Ns(Ms,t),[s,u]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const i=window.setTimeout(()=>u(!0),r);return()=>window.clearTimeout(i)}},[r]),s&&o.imageLoadingStatus!=="loaded"?a.jsx(ne.span,{...n,ref:A}):null});Ps.displayName=Ms;function wo(e,A){return e?A?(e.src!==A&&(e.src=A),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function yC(e,{referrerPolicy:A,crossOrigin:t}){const r=wC(),n=l.useRef(null),o=r?(n.current||(n.current=new window.Image),n.current):null,[s,u]=l.useState(()=>wo(o,e));return Me(()=>{u(wo(o,e))},[o,e]),Me(()=>{const i=c=>()=>{u(c)};if(!o)return;const g=i("loaded"),C=i("error");return o.addEventListener("load",g),o.addEventListener("error",C),A&&(o.referrerPolicy=A),typeof t=="string"&&(o.crossOrigin=t),()=>{o.removeEventListener("load",g),o.removeEventListener("error",C)}},[o,t,A]),s}var FC=js,NC=Os,jC=Ps;function kC({className:e,...A}){return a.jsx(FC,{"data-slot":"avatar",className:ee("relative flex size-10 shrink-0 overflow-hidden rounded-full",e),...A})}function OC({className:e,...A}){return a.jsx(NC,{"data-slot":"avatar-image",className:ee("aspect-square size-full",e),...A})}function MC({className:e,...A}){return a.jsx(jC,{"data-slot":"avatar-fallback",className:ee("bg-muted flex size-full items-center justify-center rounded-full",e),...A})}const mA=({url:e,fullName:A,type:t="primary",isActive:r=!1})=>{const n=()=>{if(!A)return null;const[s,u]=A.split(" ");return`${(s==null?void 0:s.charAt(0))??""}${(u==null?void 0:u.charAt(0))??""}`},o=()=>t==="primary"||t==="primary-light"?"text-primary-foreground dark:text-white":"text-secondary-foreground dark:text-white";return a.jsxs("div",{className:"relative w-fit h-fit",children:[a.jsxs(kC,{children:[a.jsx(OC,{role:"img",src:e}),a.jsx(MC,{className:ee("text-base font-normal",t==="primary"?"bg-client-chat-background text-client-chat-foreground":t==="primary-light"?"bg-primary-brew-3 text-card":"bg-foreground-08 text-secondary-foreground"),children:A?n():a.jsx(q,{name:"Unknown",className:ee("w-4 h-5",o())})})]}),r&&a.jsx("div",{className:"w-2.5 h-2.5 bg-success rounded-full absolute bottom-0 right-0"})]})},PC=({fullname:e,telNo:A,id:t,avatarType:r="primary-light",idText:n="ID",isDefaultOpen:o=!1})=>{const[s,u]=b.useState(o),i=()=>{s||u(!0)},g=C=>{C.stopPropagation(),u(!1)};return a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{onClick:i,className:`cursor-${s?"default":"pointer"}`,children:a.jsx(mA,{fullName:e,type:r})}),a.jsxs("div",{className:`flex flex-row gap-2 overflow-hidden transition-all duration-300 ease-in-out ${s?"max-w-[300px] opacity-100 translate-x-0":"max-w-0 opacity-0 -translate-x-4"}`,children:[a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("span",{className:"text-sm font-medium text-foreground whitespace-nowrap",children:e}),a.jsxs("div",{className:"flex flex-row gap-2",children:[a.jsx("span",{className:"text-xs text-foreground whitespace-nowrap",children:A}),a.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[n,": ",t]})]})]}),!o&&a.jsx("button",{onClick:g,className:"bg-foreground-04 border-none cursor-pointer h-10 w-10 rounded-full flex items-center justify-center transition-opacity duration-300 ease-in-out hover:opacity-80",children:a.jsx(q,{name:"Close",width:13,height:13,className:"text-foreground"})})]})]})};var JA={},FA={},Ot={},dA={},IA={},kr={},xo;function Ls(){return xo||(xo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var A;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(A=e.ElementType||(e.ElementType={}));function t(r){return r.type===A.Tag||r.type===A.Script||r.type===A.Style}e.isTag=t,e.Root=A.Root,e.Text=A.Text,e.Directive=A.Directive,e.Comment=A.Comment,e.Script=A.Script,e.Style=A.Style,e.Tag=A.Tag,e.CDATA=A.CDATA,e.Doctype=A.Doctype})(kr)),kr}var te={},bo;function Do(){if(bo)return te;bo=1;var e=te&&te.__extends||(function(){var f=function(h,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,O){D.__proto__=O}||function(D,O){for(var z in O)Object.prototype.hasOwnProperty.call(O,z)&&(D[z]=O[z])},f(h,m)};return function(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");f(h,m);function D(){this.constructor=h}h.prototype=m===null?Object.create(m):(D.prototype=m.prototype,new D)}})(),A=te&&te.__assign||function(){return A=Object.assign||function(f){for(var h,m=1,D=arguments.length;m<D;m++){h=arguments[m];for(var O in h)Object.prototype.hasOwnProperty.call(h,O)&&(f[O]=h[O])}return f},A.apply(this,arguments)};Object.defineProperty(te,"__esModule",{value:!0}),te.cloneNode=te.hasChildren=te.isDocument=te.isDirective=te.isComment=te.isText=te.isCDATA=te.isTag=te.Element=te.Document=te.CDATA=te.NodeWithChildren=te.ProcessingInstruction=te.Comment=te.Text=te.DataNode=te.Node=void 0;var t=Ls(),r=(function(){function f(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(f.prototype,"parentNode",{get:function(){return this.parent},set:function(h){this.parent=h},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"previousSibling",{get:function(){return this.prev},set:function(h){this.prev=h},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"nextSibling",{get:function(){return this.next},set:function(h){this.next=h},enumerable:!1,configurable:!0}),f.prototype.cloneNode=function(h){return h===void 0&&(h=!1),x(this,h)},f})();te.Node=r;var n=(function(f){e(h,f);function h(m){var D=f.call(this)||this;return D.data=m,D}return Object.defineProperty(h.prototype,"nodeValue",{get:function(){return this.data},set:function(m){this.data=m},enumerable:!1,configurable:!0}),h})(r);te.DataNode=n;var o=(function(f){e(h,f);function h(){var m=f!==null&&f.apply(this,arguments)||this;return m.type=t.ElementType.Text,m}return Object.defineProperty(h.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),h})(n);te.Text=o;var s=(function(f){e(h,f);function h(){var m=f!==null&&f.apply(this,arguments)||this;return m.type=t.ElementType.Comment,m}return Object.defineProperty(h.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),h})(n);te.Comment=s;var u=(function(f){e(h,f);function h(m,D){var O=f.call(this,D)||this;return O.name=m,O.type=t.ElementType.Directive,O}return Object.defineProperty(h.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),h})(n);te.ProcessingInstruction=u;var i=(function(f){e(h,f);function h(m){var D=f.call(this)||this;return D.children=m,D}return Object.defineProperty(h.prototype,"firstChild",{get:function(){var m;return(m=this.children[0])!==null&&m!==void 0?m:null},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"childNodes",{get:function(){return this.children},set:function(m){this.children=m},enumerable:!1,configurable:!0}),h})(r);te.NodeWithChildren=i;var g=(function(f){e(h,f);function h(){var m=f!==null&&f.apply(this,arguments)||this;return m.type=t.ElementType.CDATA,m}return Object.defineProperty(h.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),h})(i);te.CDATA=g;var C=(function(f){e(h,f);function h(){var m=f!==null&&f.apply(this,arguments)||this;return m.type=t.ElementType.Root,m}return Object.defineProperty(h.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),h})(i);te.Document=C;var c=(function(f){e(h,f);function h(m,D,O,z){O===void 0&&(O=[]),z===void 0&&(z=m==="script"?t.ElementType.Script:m==="style"?t.ElementType.Style:t.ElementType.Tag);var R=f.call(this,O)||this;return R.name=m,R.attribs=D,R.type=z,R}return Object.defineProperty(h.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"tagName",{get:function(){return this.name},set:function(m){this.name=m},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"attributes",{get:function(){var m=this;return Object.keys(this.attribs).map(function(D){var O,z;return{name:D,value:m.attribs[D],namespace:(O=m["x-attribsNamespace"])===null||O===void 0?void 0:O[D],prefix:(z=m["x-attribsPrefix"])===null||z===void 0?void 0:z[D]}})},enumerable:!1,configurable:!0}),h})(i);te.Element=c;function B(f){return(0,t.isTag)(f)}te.isTag=B;function E(f){return f.type===t.ElementType.CDATA}te.isCDATA=E;function I(f){return f.type===t.ElementType.Text}te.isText=I;function d(f){return f.type===t.ElementType.Comment}te.isComment=d;function Q(f){return f.type===t.ElementType.Directive}te.isDirective=Q;function p(f){return f.type===t.ElementType.Root}te.isDocument=p;function v(f){return Object.prototype.hasOwnProperty.call(f,"children")}te.hasChildren=v;function x(f,h){h===void 0&&(h=!1);var m;if(I(f))m=new o(f.data);else if(d(f))m=new s(f.data);else if(B(f)){var D=h?w(f.children):[],O=new c(f.name,A({},f.attribs),D);D.forEach(function(N){return N.parent=O}),f.namespace!=null&&(O.namespace=f.namespace),f["x-attribsNamespace"]&&(O["x-attribsNamespace"]=A({},f["x-attribsNamespace"])),f["x-attribsPrefix"]&&(O["x-attribsPrefix"]=A({},f["x-attribsPrefix"])),m=O}else if(E(f)){var D=h?w(f.children):[],z=new g(D);D.forEach(function(M){return M.parent=z}),m=z}else if(p(f)){var D=h?w(f.children):[],R=new C(D);D.forEach(function(M){return M.parent=R}),f["x-mode"]&&(R["x-mode"]=f["x-mode"]),m=R}else if(Q(f)){var S=new u(f.name,f.data);f["x-name"]!=null&&(S["x-name"]=f["x-name"],S["x-publicId"]=f["x-publicId"],S["x-systemId"]=f["x-systemId"]),m=S}else throw new Error("Not implemented yet: ".concat(f.type));return m.startIndex=f.startIndex,m.endIndex=f.endIndex,f.sourceCodeLocation!=null&&(m.sourceCodeLocation=f.sourceCodeLocation),m}te.cloneNode=x;function w(f){for(var h=f.map(function(D){return x(D,!0)}),m=1;m<h.length;m++)h[m].prev=h[m-1],h[m-1].next=h[m];return h}return te}var yo;function Rs(){return yo||(yo=1,(function(e){var A=IA&&IA.__createBinding||(Object.create?(function(u,i,g,C){C===void 0&&(C=g);var c=Object.getOwnPropertyDescriptor(i,g);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[g]}}),Object.defineProperty(u,C,c)}):(function(u,i,g,C){C===void 0&&(C=g),u[C]=i[g]})),t=IA&&IA.__exportStar||function(u,i){for(var g in u)g!=="default"&&!Object.prototype.hasOwnProperty.call(i,g)&&A(i,u,g)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=Ls(),n=Do();t(Do(),e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=(function(){function u(i,g,C){this.dom=[],this.root=new n.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof g=="function"&&(C=g,g=o),typeof i=="object"&&(g=i,i=void 0),this.callback=i??null,this.options=g??o,this.elementCB=C??null}return u.prototype.onparserinit=function(i){this.parser=i},u.prototype.onreset=function(){this.dom=[],this.root=new n.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(i){this.handleCallback(i)},u.prototype.onclosetag=function(){this.lastNode=null;var i=this.tagStack.pop();this.options.withEndIndices&&(i.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(i)},u.prototype.onopentag=function(i,g){var C=this.options.xmlMode?r.ElementType.Tag:void 0,c=new n.Element(i,g,void 0,C);this.addNode(c),this.tagStack.push(c)},u.prototype.ontext=function(i){var g=this.lastNode;if(g&&g.type===r.ElementType.Text)g.data+=i,this.options.withEndIndices&&(g.endIndex=this.parser.endIndex);else{var C=new n.Text(i);this.addNode(C),this.lastNode=C}},u.prototype.oncomment=function(i){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=i;return}var g=new n.Comment(i);this.addNode(g),this.lastNode=g},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var i=new n.Text(""),g=new n.CDATA([i]);this.addNode(g),i.parent=g,this.lastNode=i},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(i,g){var C=new n.ProcessingInstruction(i,g);this.addNode(C)},u.prototype.handleCallback=function(i){if(typeof this.callback=="function")this.callback(i,this.dom);else if(i)throw i},u.prototype.addNode=function(i){var g=this.tagStack[this.tagStack.length-1],C=g.children[g.children.length-1];this.options.withStartIndices&&(i.startIndex=this.parser.startIndex),this.options.withEndIndices&&(i.endIndex=this.parser.endIndex),g.children.push(i),C&&(i.prev=C,C.next=i),i.parent=g,this.lastNode=null},u})();e.DomHandler=s,e.default=s})(IA)),IA}var Or={},Fo;function LC(){return Fo||(Fo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(A,t){return A[t.toLowerCase()]=t,A},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(Or)),Or}var No;function zs(){if(No)return dA;No=1,Object.defineProperty(dA,"__esModule",{value:!0}),dA.formatAttributes=r,dA.escapeSpecialCharacters=o,dA.revertEscapedCharacters=s,dA.formatDOM=u;var e=Rs(),A=LC();function t(i){return A.CASE_SENSITIVE_TAG_NAMES_MAP[i]}function r(i){for(var g={},C=0,c=i.length;C<c;C++){var B=i[C];g[B.name]=B.value}return g}function n(i){i=i.toLowerCase();var g=t(i);return g||i}function o(i){return i.replace(A.CARRIAGE_RETURN_REGEX,A.CARRIAGE_RETURN_PLACEHOLDER)}function s(i){return i.replace(A.CARRIAGE_RETURN_PLACEHOLDER_REGEX,A.CARRIAGE_RETURN)}function u(i,g,C){g===void 0&&(g=null);for(var c=[],B,E=0,I=i.length;E<I;E++){var d=i[E];switch(d.nodeType){case 1:{var Q=n(d.nodeName);B=new e.Element(Q,r(d.attributes)),B.children=u(Q==="template"?d.content.childNodes:d.childNodes,B);break}case 3:B=new e.Text(s(d.nodeValue));break;case 8:B=new e.Comment(d.nodeValue);break;default:continue}var p=c[E-1]||null;p&&(p.next=B),B.parent=g,B.prev=p,B.next=null,c.push(B)}return C&&(B=new e.ProcessingInstruction(C.substring(0,C.indexOf(" ")).toLowerCase(),C),B.next=c[0]||null,B.parent=g,c.unshift(B),c[1]&&(c[1].prev=c[0])),c}return dA}var jo;function RC(){if(jo)return Ot;jo=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.default=d;var e=zs(),A="html",t="head",r="body",n=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,s=/<body[^]*>/i,u=function(Q,p){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},i=function(Q,p){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},g=typeof window=="object"&&window.DOMParser;if(typeof g=="function"){var C=new g,c="text/html";i=function(Q,p){return p&&(Q="<".concat(p,">").concat(Q,"</").concat(p,">")),C.parseFromString(Q,c)},u=i}if(typeof document=="object"&&document.implementation){var B=document.implementation.createHTMLDocument();u=function(Q,p){if(p){var v=B.documentElement.querySelector(p);return v&&(v.innerHTML=Q),B}return B.documentElement.innerHTML=Q,B}}var E=typeof document=="object"&&document.createElement("template"),I;E&&E.content&&(I=function(Q){return E.innerHTML=Q,E.content.childNodes});function d(Q){var p,v;Q=(0,e.escapeSpecialCharacters)(Q);var x=Q.match(n),w=x&&x[1]?x[1].toLowerCase():"";switch(w){case A:{var f=i(Q);if(!o.test(Q)){var h=f.querySelector(t);(p=h==null?void 0:h.parentNode)===null||p===void 0||p.removeChild(h)}if(!s.test(Q)){var h=f.querySelector(r);(v=h==null?void 0:h.parentNode)===null||v===void 0||v.removeChild(h)}return f.querySelectorAll(A)}case t:case r:{var m=u(Q).querySelectorAll(w);return s.test(Q)&&o.test(Q)?m[0].parentNode.childNodes:m}default:{if(I)return I(Q);var h=u(Q,r).querySelector(r);return h.childNodes}}}return Ot}var ko;function zC(){if(ko)return FA;ko=1;var e=FA&&FA.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(FA,"__esModule",{value:!0}),FA.default=n;var A=e(RC()),t=zs(),r=/<(![a-zA-Z\s]+)>/;function n(o){if(typeof o!="string")throw new TypeError("First argument must be a string");if(!o)return[];var s=o.match(r),u=s?s[1]:void 0;return(0,t.formatDOM)((0,A.default)(o),null,u)}return FA}var Mt={},ke={},_A={},Oo;function TC(){if(Oo)return _A;Oo=1;var e=0;_A.SAME=e;var A=1;return _A.CAMELCASE=A,_A.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},_A}var Mo;function SC(){if(Mo)return ke;Mo=1;const e=0,A=1,t=2,r=3,n=4,o=5,s=6;function u(f){return g.hasOwnProperty(f)?g[f]:null}function i(f,h,m,D,O,z,R){this.acceptsBooleans=h===t||h===r||h===n,this.attributeName=D,this.attributeNamespace=O,this.mustUseProperty=m,this.propertyName=f,this.type=h,this.sanitizeURL=z,this.removeEmptyString=R}const g={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(f=>{g[f]=new i(f,e,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([f,h])=>{g[f]=new i(f,A,!1,h,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(f=>{g[f]=new i(f,t,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(f=>{g[f]=new i(f,t,!1,f,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(f=>{g[f]=new i(f,r,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(f=>{g[f]=new i(f,r,!0,f,null,!1,!1)}),["capture","download"].forEach(f=>{g[f]=new i(f,n,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(f=>{g[f]=new i(f,s,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(f=>{g[f]=new i(f,o,!1,f.toLowerCase(),null,!1,!1)});const c=/[\-\:]([a-z])/g,B=f=>f[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(f=>{const h=f.replace(c,B);g[h]=new i(h,A,!1,f,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(f=>{const h=f.replace(c,B);g[h]=new i(h,A,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(f=>{const h=f.replace(c,B);g[h]=new i(h,A,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(f=>{g[f]=new i(f,A,!1,f.toLowerCase(),null,!1,!1)});const E="xlinkHref";g[E]=new i("xlinkHref",A,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(f=>{g[f]=new i(f,A,!1,f.toLowerCase(),null,!0,!0)});const{CAMELCASE:I,SAME:d,possibleStandardNames:Q}=TC(),v=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",x=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+v+"]*$")),w=Object.keys(Q).reduce((f,h)=>{const m=Q[h];return m===d?f[h]=h:m===I?f[h.toLowerCase()]=h:f[h]=m,f},{});return ke.BOOLEAN=r,ke.BOOLEANISH_STRING=t,ke.NUMERIC=o,ke.OVERLOADED_BOOLEAN=n,ke.POSITIVE_NUMERIC=s,ke.RESERVED=e,ke.STRING=A,ke.getPropertyInfo=u,ke.isCustomAttribute=x,ke.possibleStandardNames=w,ke}var $A={},NA={},Mr,Po;function HC(){if(Po)return Mr;Po=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,A=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,i=`
20
20
  `,g="/",C="*",c="",B="comment",E="declaration";Mr=function(d,Q){if(typeof d!="string")throw new TypeError("First argument must be a string");if(!d)return[];Q=Q||{};var p=1,v=1;function x(N){var M=N.match(A);M&&(p+=M.length);var T=N.lastIndexOf(i);v=~T?N.length-T:v+N.length}function w(){var N={line:p,column:v};return function(M){return M.position=new f(N),D(),M}}function f(N){this.start=N,this.end={line:p,column:v},this.source=Q.source}f.prototype.content=d;function h(N){var M=new Error(Q.source+":"+p+":"+v+": "+N);if(M.reason=N,M.filename=Q.source,M.line=p,M.column=v,M.source=d,!Q.silent)throw M}function m(N){var M=N.exec(d);if(M){var T=M[0];return x(T),d=d.slice(T.length),M}}function D(){m(t)}function O(N){var M;for(N=N||[];M=z();)M!==!1&&N.push(M);return N}function z(){var N=w();if(!(g!=d.charAt(0)||C!=d.charAt(1))){for(var M=2;c!=d.charAt(M)&&(C!=d.charAt(M)||g!=d.charAt(M+1));)++M;if(M+=2,c===d.charAt(M-1))return h("End of comment missing");var T=d.slice(2,M-2);return v+=2,x(T),d=d.slice(M),v+=2,N({type:B,comment:T})}}function R(){var N=w(),M=m(r);if(M){if(z(),!m(n))return h("property missing ':'");var T=m(o),H=N({type:E,property:I(M[0].replace(e,c)),value:T?I(T[0].replace(e,c)):c});return m(s),H}}function S(){var N=[];O(N);for(var M;M=R();)M!==!1&&(N.push(M),O(N));return N}return D(),S()};function I(d){return d?d.replace(u,c):c}return Mr}var Lo;function YC(){if(Lo)return NA;Lo=1;var e=NA&&NA.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(NA,"__esModule",{value:!0}),NA.default=t;const A=e(HC());function t(r,n){let o=null;if(!r||typeof r!="string")return o;const s=(0,A.default)(r),u=typeof n=="function";return s.forEach(i=>{if(i.type!=="declaration")return;const{property:g,value:C}=i;u?n(g,C,i):C&&(o=o||{},o[g]=C)}),o}return NA}var et={},Ro;function GC(){if(Ro)return et;Ro=1,Object.defineProperty(et,"__esModule",{value:!0}),et.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,A=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,n=/^-(ms)-/,o=function(g){return!g||t.test(g)||e.test(g)},s=function(g,C){return C.toUpperCase()},u=function(g,C){return"".concat(C,"-")},i=function(g,C){return C===void 0&&(C={}),o(g)?g:(g=g.toLowerCase(),C.reactCompat?g=g.replace(n,u):g=g.replace(r,u),g.replace(A,s))};return et.camelCase=i,et}var At,zo;function WC(){if(zo)return At;zo=1;var e=At&&At.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},A=e(YC()),t=GC();function r(n,o){var s={};return!n||typeof n!="string"||(0,A.default)(n,function(u,i){u&&i&&(s[(0,t.camelCase)(u,o)]=i)}),s}return r.default=r,At=r,At}var To;function Ts(){return To||(To=1,(function(e){var A=$A&&$A.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=o,e.setStyleProp=u;var t=b,r=A(WC()),n=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(C,c){return C.includes("-")?!n.has(C):!!(c&&typeof c.is=="string")}var s={reactCompat:!0};function u(C,c){if(typeof C=="string"){if(!C.trim()){c.style={};return}try{c.style=(0,r.default)(C,s)}catch{c.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(t.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var i=function(C){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(C.name)};e.canTextBeChildOfNode=i;var g=function(C){return C};e.returnFirstArg=g})($A)),$A}var So;function Ss(){if(So)return Mt;So=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=o;var e=SC(),A=Ts(),t=["checked","value"],r=["input","select","textarea"],n={reset:!0,submit:!0};function o(u,i){u===void 0&&(u={});var g={},C=!!(u.type&&n[u.type]);for(var c in u){var B=u[c];if((0,e.isCustomAttribute)(c)){g[c]=B;continue}var E=c.toLowerCase(),I=s(E);if(I){var d=(0,e.getPropertyInfo)(I);switch(t.includes(I)&&r.includes(i)&&!C&&(I=s("default"+E)),g[I]=B,d&&d.type){case e.BOOLEAN:g[I]=!0;break;case e.OVERLOADED_BOOLEAN:B===""&&(g[I]=!0);break}continue}A.PRESERVE_CUSTOM_ATTRIBUTES&&(g[c]=B)}return(0,A.setStyleProp)(u.style,g),g}function s(u){return e.possibleStandardNames[u]}return Mt}var jA={},Ho;function UC(){if(Ho)return jA;Ho=1;var e=jA&&jA.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(jA,"__esModule",{value:!0}),jA.default=o;var A=b,t=e(Ss()),r=Ts(),n={cloneElement:A.cloneElement,createElement:A.createElement,isValidElement:A.isValidElement};function o(u,i){i===void 0&&(i={});for(var g=[],C=typeof i.replace=="function",c=i.transform||r.returnFirstArg,B=i.library||n,E=B.cloneElement,I=B.createElement,d=B.isValidElement,Q=u.length,p=0;p<Q;p++){var v=u[p];if(C){var x=i.replace(v,p);if(d(x)){Q>1&&(x=E(x,{key:x.key||p})),g.push(c(x,v,p));continue}}if(v.type==="text"){var w=!v.data.trim().length;if(w&&v.parent&&!(0,r.canTextBeChildOfNode)(v.parent)||i.trim&&w)continue;g.push(c(v.data,v,p));continue}var f=v,h={};s(f)?((0,r.setStyleProp)(f.attribs.style,f.attribs),h=f.attribs):f.attribs&&(h=(0,t.default)(f.attribs,f.name));var m=void 0;switch(v.type){case"script":case"style":v.children[0]&&(h.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":v.name==="textarea"&&v.children[0]?h.defaultValue=v.children[0].data:v.children&&v.children.length&&(m=o(v.children,i));break;default:continue}Q>1&&(h.key=p),g.push(c(I(v.name,h,m),v,p))}return g.length===1?g[0]:g}function s(u){return r.PRESERVE_CUSTOM_ATTRIBUTES&&u.type==="tag"&&(0,r.isCustomComponent)(u.name,u.attribs)}return jA}var Yo;function ZC(){return Yo||(Yo=1,(function(e){var A=JA&&JA.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=u;var t=A(zC());e.htmlToDOM=t.default;var r=A(Ss());e.attributesToProps=r.default;var n=A(UC());e.domToReact=n.default;var o=Rs();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return o.Text}});var s={lowerCaseAttributeNames:!1};function u(i,g){if(typeof i!="string")throw new TypeError("First argument must be a string");return i?(0,n.default)((0,t.default)(i,(g==null?void 0:g.htmlparser2)||s),g):[]}})(JA)),JA}var XC=ZC();const Go=Fs(XC),VC=Go.default||Go;var nt={exports:{}};/*! https://mths.be/he v1.2.0 by @mathias | MIT license */var qC=nt.exports,Wo;function KC(){return Wo||(Wo=1,(function(e,A){(function(t){var r=A,n=e&&e.exports==r&&e,o=typeof po=="object"&&po;(o.global===o||o.window===o)&&(t=o);var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=/[\x01-\x7F]/g,i=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,g=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,C={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot"," ":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf",ℬ:"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf",ℭ:"Cfr","𝒞":"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH","ⅇ":"ee",ℯ:"escr","𝔢":"efr","𝕖":"eopf",ℰ:"Escr","𝔈":"Efr","𝔼":"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil","𝔥":"hfr",ℎ:"planckh","𝒽":"hscr","𝕙":"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf",ĵ:"jcirc",Ĵ:"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr",ķ:"kcedil",Ķ:"Kcedil","𝔩":"lfr","𝓁":"lscr",ℓ:"ell","𝕝":"lopf",ℒ:"Lscr","𝔏":"Lfr","𝕃":"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf",ℳ:"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr",ℕ:"Nopf","𝒩":"Nscr","𝔑":"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG","𝕠":"oopf","𝔬":"ofr",ℴ:"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf",ℙ:"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr",ℚ:"Qopf",ĸ:"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr",ŵ:"wcirc",Ŵ:"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf",ℨ:"Zfr",ℤ:"Zopf","𝒵":"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi","ϵ":"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},c=/["&'<>`]/g,B={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},E=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,I=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,Q={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
21
- `,nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},p={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},v={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},x=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],w=String.fromCharCode,f={},h=f.hasOwnProperty,m=function(F,W){return h.call(F,W)},D=function(F,W){for(var K=-1,Y=F.length;++K<Y;)if(F[K]==W)return!0;return!1},O=function(F,W){if(!F)return W;var K={},Y;for(Y in W)K[Y]=m(F,Y)?F[Y]:W[Y];return K},z=function(F,W){var K="";return F>=55296&&F<=57343||F>1114111?(W&&N("character reference outside the permissible Unicode range"),"�"):m(v,F)?(W&&N("disallowed character reference"),v[F]):(W&&D(x,F)&&N("disallowed character reference"),F>65535&&(F-=65536,K+=w(F>>>10&1023|55296),F=56320|F&1023),K+=w(F),K)},R=function(F){return"&#x"+F.toString(16).toUpperCase()+";"},S=function(F){return"&#"+F+";"},N=function(F){throw Error("Parse error: "+F)},M=function(F,W){W=O(W,M.options);var K=W.strict;K&&I.test(F)&&N("forbidden code point");var Y=W.encodeEverything,L=W.useNamedReferences,P=W.allowUnsafeSymbols,G=W.decimal?S:R,U=function(k){return G(k.charCodeAt(0))};return Y?(F=F.replace(u,function(k){return L&&m(C,k)?"&"+C[k]+";":U(k)}),L&&(F=F.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),L&&(F=F.replace(g,function(k){return"&"+C[k]+";"}))):L?(P||(F=F.replace(c,function(k){return"&"+C[k]+";"})),F=F.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),F=F.replace(g,function(k){return"&"+C[k]+";"})):P||(F=F.replace(c,U)),F.replace(s,function(k){var Z=k.charCodeAt(0),$=k.charCodeAt(1),ae=(Z-55296)*1024+$-56320+65536;return G(ae)}).replace(i,U)};M.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function(F,W){W=O(W,T.options);var K=W.strict;return K&&E.test(F)&&N("malformed character reference"),F.replace(d,function(Y,L,P,G,U,k,Z,$,ae){var ie,le,se,J,he,xe;return L?(he=L,Q[he]):P?(he=P,xe=G,xe&&W.isAttributeValue?(K&&xe=="="&&N("`&` did not start a character reference"),Y):(K&&N("named character reference was not terminated by a semicolon"),p[he]+(xe||""))):U?(se=U,le=k,K&&!le&&N("character reference was not terminated by a semicolon"),ie=parseInt(se,10),z(ie,K)):Z?(J=Z,le=$,K&&!le&&N("character reference was not terminated by a semicolon"),ie=parseInt(J,16),z(ie,K)):(K&&N("named character reference was not terminated by a semicolon"),Y)})};T.options={isAttributeValue:!1,strict:!1};var H=function(F){return F.replace(c,function(W){return B[W]})},j={version:"1.2.0",encode:M,decode:T,escape:H,unescape:T};if(r&&!r.nodeType)if(n)n.exports=j;else for(var y in j)m(j,y)&&(r[y]=j[y]);else t.he=j})(qC)})(nt,nt.exports)),nt.exports}var JC=KC();const _C=Fs(JC),cA=b.forwardRef(({title:e,message:A,timestamp:t,icon:r,tag:n,showHelperButtons:o,onClickAskGenAI:s,onClickAskManager:u,askGenAITitle:i="Ask GenAI",askManagerTitle:g="Ask Manager",isStacked:C,className:c,showFeedbackArea:B,scenarioId:E,feedbackSubmitButtonHoverTitle:I,feddbackTitle:d,feedbackHelpfullButtonTitle:Q,feedbackNotHelpfullButtonTitle:p,feedbackCommentPlaceholder:v,feedbackSubmitText:x,feedbackThankYouMessage:w,feedbackCancelButtonTitle:f,feedBackApiUrl:h,externalConversationId:m,agentId:D},O)=>{const z=_C.decode(A??""),[R,S]=b.useState(1),[N,M]=b.useState(!1),[T,H]=b.useState(""),[j,y]=b.useState(!1),[F,W]=b.useState(!1),K=()=>{M(G=>!G)},Y=G=>{S(G)},L=({selectedFeedback:G,comment:U})=>{h&&E&&m&&D&&(y(!0),fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({externalConversationId:m,scenarioId:E,eventTime:new Date().toISOString(),agentId:D,feedback:G,comment:U})}).then(k=>k.json()).then(k=>{var Z;(Z=k==null?void 0:k.statusCode)!=null&&Z.toString().startsWith("2")&&(k!=null&&k.result)&&(k==null?void 0:k.result)!==""&&(k==null?void 0:k.result)!=="NULL"&&(k==null?void 0:k.result)!=="null"&&(k==null?void 0:k.result)!==null?(W(!0),y(!1)):(W(!1),y(!1))}).catch(k=>{console.log(k),W(!1),y(!1)}).finally(()=>{y(!1)}))},P=()=>{S(null),H(""),M(!1)};return a.jsxs("div",{ref:O,className:ee("flex flex-col w-full h-fit rounded-xl md:rounded-3xl bg-primary-foreground md:bg-background gap-2 p-4",C?"shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] ":null,c),children:[a.jsxs("div",{className:"flex w-full flex-row items-center justify-between gap-6",children:[a.jsxs("div",{className:"flex flex-row",children:[r,a.jsx("div",{className:"ml-2 mr-1 text-base font-medium leading-6 text-foreground",children:e}),typeof n<"u"&&n]}),a.jsx("div",{className:"bg-foreground-08 rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-card-foreground",children:t})]}),a.jsx("div",{className:"text-sm md:text-base w-full font-normal text-foreground",children:a.jsxs("div",{className:"flex flex-row items-center justify-between gap-2",children:[VC(z),B&&!F&&a.jsxs("button",{onClick:K,className:"relative group",title:I,style:{cursor:"pointer"},children:[a.jsx(q,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),a.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap",children:I})]})]})}),N&&!F&&a.jsxs("div",{className:"mt-4 space-y-4",children:[a.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs("button",{onClick:()=>Y(1),className:ee("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",R===1?"bg-green-50 dark:bg-green-900/20 border-green-400 dark:border-green-500 text-green-600 dark:text-green-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-green-300 dark:hover:border-green-400"),children:[a.jsx(q,{name:"LikeHand",width:16,height:16,style:{color:R===1?"#22c55e":"#6b7280"}}),a.jsx("span",{className:"text-sm font-medium",children:Q})]}),a.jsxs("button",{onClick:()=>Y(0),className:ee("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",R===0?"bg-red-50 dark:bg-red-900/20 border-red-400 dark:border-red-500 text-red-600 dark:text-red-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-red-300 dark:hover:border-red-400"),children:[a.jsx(q,{name:"DisLikeHand",width:16,height:16,style:{color:R===0?"#ef4444":"#6b7280"}}),a.jsx("span",{className:"text-sm font-medium",children:p})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:d}),a.jsx("textarea",{value:T,maxLength:500,onChange:G=>H(G.target.value),placeholder:v,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 focus:border-transparent placeholder-gray-500 dark:placeholder-gray-400",rows:3}),a.jsxs("div",{className:"flex justify-end",children:[a.jsx(Ee,{onClick:P,size:"sm",className:"bg-transparent dark:bg-transparent border-2 border-red-500 dark:border-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 gap-2 disabled:opacity-50 disabled:cursor-not-allowed mr-4",children:a.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:f})}),a.jsx(Ee,{onClick:()=>L({selectedFeedback:R??0,comment:T}),isLoading:j,disabled:j,size:"sm",className:"bg-primary dark:bg-primary hover:bg-primary/90 dark:hover:bg-primary/90 gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:a.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:x})})]})]})]}),F&&a.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[a.jsx("span",{className:"text-sm font-medium",children:w}),a.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:a.jsx(q,{name:"Check",width:12,height:12,style:{color:"white"}})})]}),o&&a.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[a.jsx(Ee,{onClick:s,size:"sm",className:"bg-primary gap-2",children:a.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[a.jsx(q,{name:"Sparkles",width:16,height:16,className:"text-background"}),i]})}),a.jsx(Ee,{onClick:u,size:"sm",className:"bg-primary gap-2",children:a.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[a.jsx(q,{name:"HandRaised",width:16,height:16,className:"text-background"}),g]})})]})]})});cA.displayName="MomentItem";const YA=({sender:e,message:A,timestamp:t,icon:r,type:n,onClickAskAI:o,onClickAskManager:s,managerReplyTitle:u,showAskManagerButton:i,showAskAIButton:g,managerReplyMessage:C,additionalContent:c,onClickShowOriginalMessage:B,originalMessage:E,onResend:I})=>{const d=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[a.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative flex flex-col gap-2 items-start rounded-2xl rounded-tr-none bg-secondary max-w-full",children:[a.jsx("div",{className:"text-sm font-medium text-foreground",children:A}),E&&E!==""&&a.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2 ",onClick:B,style:{color:"#3BA7FF"},children:E}),a.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:t}),r&&a.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:r})]}),a.jsx(mA,{type:"secondary",fullName:e})]}),Q=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[a.jsx(mA,{fullName:e}),a.jsxs("div",{className:"px-4 py-3 relative w-fit min-w-[128px] flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-client-chat-background max-w-full",children:[a.jsx("div",{className:"text-sm font-normal text-client-chat-foreground",children:A}),a.jsxs("div",{className:"flex flex-row gap-2",children:[g&&a.jsx(Ee,{name:"ai-helper",role:"button",onClick:o,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:a.jsx(q,{name:"Sparkles",width:24,height:24,className:"text-client-chat-link"})}),i&&a.jsx(Ee,{name:"manager-helper",role:"button",onClick:s,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:a.jsx(q,{name:"ChatBubble",width:24,height:24,className:"text-client-chat-link"})})]}),E&&E!==""&&a.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2",onClick:B,style:{color:"#3BA7FF"},children:E}),a.jsx("div",{className:"text-xs w-full font-normal text-client-chat-foreground text-right",children:t}),r&&a.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:r})]})]}),p=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[a.jsxs("div",{className:"rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-border",children:[a.jsxs("div",{className:"p-3 relative flex w-full flex-col gap-3 items-start bg-transparent",children:[a.jsxs("div",{className:"flex flex-row items-center justify-between w-full gap-3 text-foreground",children:[u,a.jsx("div",{className:"w-fit bg-destructive rounded-md p-1 text-[15px] text-primary-foreground font-normal",children:t})]}),a.jsx("div",{className:"text-sm font-medium text-foreground",children:C})]}),a.jsxs("div",{className:"rounded-br-2xl w-full rounded-bl-2xl bg-secondary flex flex-col items-start justify-center p-3 gap-2",children:[a.jsx("div",{className:"text-sm font-medium text-foreground",children:A}),a.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:t})]})]}),a.jsx(mA,{type:"secondary",fullName:e})]}),v=()=>{const f=async()=>{await vl(A)};return a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[a.jsx("div",{className:"w-10 h-10 flex rounded-full items-center justify-center bg-warning-background",children:a.jsx(q,{name:"Sparkles",width:24,height:24,className:"text-secondary-brew"})}),a.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative w-full flex-1 flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-warning-background max-w-full",children:[a.jsx("div",{className:"text-sm font-medium text-secondary-brew-2",children:A}),a.jsxs("div",{className:"flex flex-row items-center justify-between w-full",children:[a.jsxs("div",{className:"flex flex-row items-start justify-center gap-1",children:[I&&a.jsx(Ee,{"aria-label":"Resend",className:"w-8 h-8 bg-transparent p-0 group",onClick:I,children:a.jsx(q,{name:"ArrowPathRoundedSquare",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})}),a.jsx(Ee,{"aria-label":"Copy",className:"w-8 h-8 bg-transparent p-0 group",onClick:f,children:a.jsx(q,{name:"Square2Stack",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})})]}),a.jsx("div",{className:"text-xs font-normal text-secondary-brew-2",children:t})]})]})]})},x=()=>a.jsxs("div",{className:"bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col",children:[a.jsxs("div",{className:"text-foreground text-base font-medium flex items-center justify-between",children:[a.jsxs("div",{className:"flex gap-2",children:[r," ",A]}),a.jsx("span",{className:"bg-destructive text-primary-foreground rounded px-1 py-0.5 text-sm font-normal",children:t})]}),a.jsx("div",{className:"text-popover-foreground",children:c})]});return{MESSAGE:d(),REPLY:Q(),MANAGER_REPLY:p(),AI_REPLY:v(),INFO_MESSAGE:x()}[n]},$C=({icon:e,title:A,summary:t})=>a.jsxs("div",{className:"bg-warning-background rounded-2xl pt-4 pb-6 px-6 flex flex-col gap-1 items-start w-full",children:[a.jsxs("div",{className:"flex flex-row gap-2 items-center w-full",children:[e&&a.jsx("div",{className:"w-10 h-10 text-primary-brew bg-client-chat-background rounded-full flex items-center justify-center flex-shrink-0",children:e}),a.jsx("div",{className:"font-medium text-base text-secondary-brew-2",children:A})]}),a.jsx("div",{className:"text-sm font-normal text-secondary-brew-2",children:t})]}),oA=({options:e,value:A,onValueChange:t,placeholder:r="Seçiniz...",disabled:n=!1,className:o,searchPlaceholder:s="Ara...",emptyMessage:u="Sonuç bulunamadı",label:i,title:g})=>{const[C,c]=b.useState(!1),[B,E]=b.useState(""),[I,d]=b.useState(e.find(h=>h.value===A)),Q=b.useRef(null),p=b.useRef(null);b.useEffect(()=>{const h=m=>{Q.current&&!Q.current.contains(m.target)&&(c(!1),E(""))};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]),b.useEffect(()=>{const h=e.find(m=>m.value===A);d(h)},[A,e]);const v=e.filter(h=>h.label.toLowerCase().includes(B.toLowerCase())&&!h.disabled),x=h=>{d(h),t==null||t(h),c(!1),E("")},w=()=>{n||(c(!C),C||setTimeout(()=>{var h;return(h=p.current)==null?void 0:h.focus()},100))},f=h=>{h.key==="Escape"&&(c(!1),E(""))};return a.jsxs("div",{className:ee("relative",o),ref:Q,children:[g&&a.jsx("h3",{className:"text-md font-medium text-foreground mb-2",style:{color:"#3b3b3bc6"},children:g}),i&&a.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:i}),a.jsxs("div",{className:"relative",children:[a.jsxs(Et,{type:"button",variant:"outline",className:ee("w-full justify-between",!I&&"text-muted-foreground"),onClick:w,disabled:n,children:[a.jsx("span",{className:"truncate",children:I?I.label:r}),a.jsx(q,{name:"ChevronDown",className:ee("h-4 w-4 transition-transform duration-200 ml-2",C&&"rotate-180")})]}),C&&a.jsxs("div",{className:"absolute z-50 w-full top-full mt-1 bg-background border border-border rounded-md shadow-lg transform-none",children:[a.jsx("div",{className:"p-2 border-b border-border",children:a.jsx(Za,{ref:p,placeholder:s,value:B,onChange:h=>E(h.target.value),onKeyDown:f,className:"h-8"})}),a.jsx("div",{className:"max-h-60 overflow-auto",children:v.length>0?v.map(h=>a.jsx("button",{type:"button",className:ee("w-full px-3 py-2 text-left text-sm hover:bg-accent hover:text-accent-foreground transition-colors",(I==null?void 0:I.value)===h.value&&"bg-accent text-accent-foreground"),onClick:()=>x(h),children:h.label},h.value)):a.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:u})})]})]})]})},eB=({isStandalone:e,messages:A,onClickTranslation:t,conversationSummary:r,isTranslationShown:n=!0,translationStatus:o="idle",title:s="Transcript",startTranslationText:u="Start Translation",stopTranslationText:i="Stop Translation",sourceLanguagePlaceholder:g="Auto-detect",targetLanguagePlaceholder:C="English",sourceLanguageTitle:c="Customer",targetLanguageTitle:B="Agent",sourceLanguageSearchPlaceholder:E="Search Source Language",targetLanguageSearchPlaceholder:I="Search Target Language",sourceLanguageOptions:d=[],targetLanguageOptions:Q=[],sourceLanguage:p,targetLanguage:v,onSourceLanguageChange:x,onTargetLanguageChange:w,showTranslationButtonText:f=!0,translationButtonClassName:h="row",showTranslationButtonGroup:m=!0})=>{const D=b.useRef(null),[O,z]=b.useState(!0);return b.useEffect(()=>{let R;return o==="translating"?R=setInterval(()=>{z(S=>!S)},1e3):z(!0),()=>{R&&clearInterval(R)}},[o]),a.jsxs("div",{className:"w-full flex flex-col h-full",children:[a.jsx("div",{className:"w-full flex-shrink-0 mb-3 md:mb-[26px]",children:e?a.jsxs("div",{className:"w-full flex flex-row items-center justify-between",children:[a.jsx("div",{className:"text-lg font-medium text-foreground",children:s}),n&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:`hidden md:flex items-center gap-2 flex-${h}`,children:[m&&a.jsxs("div",{className:"flex flex-row items-center gap-4",children:[a.jsx(oA,{options:d,value:p,onValueChange:x,placeholder:g,searchPlaceholder:E,className:"w-30",title:c}),a.jsx("div",{className:"flex items-center justify-center w-8 h-8 mt-8",children:a.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),a.jsx(oA,{options:Q,value:v,onValueChange:w,placeholder:C,searchPlaceholder:I,className:"w-30",title:B})]}),a.jsxs(Ee,{variant:"outline",size:"lg",onClick:t,className:`bg-background gap-2 px-6 py-3 h-10 ${h==="row"&&m?"mt-8":""}`,children:[a.jsx(q,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),a.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[f&&(o==="idle"?u:i),a.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?O?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),a.jsxs("div",{className:"flex md:hidden flex-row gap-2",children:[m&&a.jsxs(a.Fragment,{children:[a.jsx(oA,{options:d,value:p,onValueChange:x,placeholder:g,title:c,searchPlaceholder:E,className:"w-32"}),a.jsx("div",{className:"flex items-center justify-center w-6 h-6 mt-8",children:a.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),a.jsx(oA,{options:Q,value:v,onValueChange:w,placeholder:C,title:B,searchPlaceholder:I,className:"w-32"})]}),a.jsxs(Ee,{variant:"outline",size:"default",onClick:t,className:`bg-background gap-2 px-6 ${m?"mt-8":""}`,children:[a.jsx(q,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),a.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:a.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?O?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})]}):a.jsx("div",{className:"w-full flex items-center justify-center",children:n&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:`hidden md:flex items-center gap-2 flex-${h}`,children:[m&&a.jsxs("div",{className:"flex flex-row items-center gap-4",children:[a.jsx(oA,{options:d,value:p,onValueChange:x,placeholder:g,title:c,searchPlaceholder:E,className:"w-30"}),a.jsx("div",{className:"flex items-center justify-center w-8 h-8 mt-8",children:a.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),a.jsx(oA,{options:Q,value:v,onValueChange:w,placeholder:C,title:B,searchPlaceholder:I,className:"w-30"})]}),a.jsxs(Ee,{variant:"outline",size:"lg",onClick:t,className:`bg-background gap-2 px-3 py-3 h-10 ${h==="row"&&m?"mt-8":""}`,children:[a.jsx(q,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),a.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[f&&(o==="idle"?u:i),a.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?O?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),a.jsxs("div",{className:"flex md:hidden flex-row gap-2",children:[m&&a.jsxs(a.Fragment,{children:[a.jsx(oA,{options:d,value:p,onValueChange:x,placeholder:g,title:c,searchPlaceholder:E,className:"w-32"}),a.jsx("div",{className:"flex items-center justify-center w-6 h-6 mt-10",children:a.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),a.jsx(oA,{options:Q,value:v,onValueChange:w,placeholder:C,title:B,searchPlaceholder:I,className:"w-32"})]}),a.jsxs(Ee,{variant:"outline",size:"default",onClick:t,className:`bg-background gap-2 px-6 ${m?"mt-8":""}`,children:[a.jsx(q,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),a.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:a.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?O?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})})}),a.jsx("div",{ref:D,className:"flex-grow overflow-y-auto w-full h-[calc(100%-48px)] max-h-[calc(100vh-68px)] sm:max-h-[calc(100vh-200px)]",children:a.jsxs("div",{className:"flex flex-col w-full items-center justify-center pb-4 ",children:[a.jsx("div",{className:`flex flex-col gap-6 w-full pb-8 ${r?"border-b border-border":""}`,children:A.map(R=>a.jsx(YA,{...R},R.id))}),a.jsx("div",{className:"w-full flex pt-8 max-w-11/12",children:r&&a.jsx($C,{...r})})]})})]})},AB=({rate:e})=>{const A=b.useMemo(()=>{if(e<=20)return a.jsx(q,{name:"AngryFace",width:32,height:32});if(e>20&&e<=40)return a.jsx(q,{name:"ConfusedFace",width:32,height:32});if(e>40&&e<=60)return a.jsx(q,{name:"NeutralFace",width:32,height:32});if(e>60&&e<=80)return a.jsx(q,{name:"Smiling",width:32,height:32});if(e>80&&e<=100)return a.jsx(q,{name:"SmilingWithHearts",width:32,height:32})},[e]),t=b.useMemo(()=>`${Math.max(0,Math.min(100,e))}%`,[e]);return a.jsxs("div",{className:"w-full relative h-3 rounded-full",children:[a.jsx("div",{className:"w-full h-full absolute top-0 left-0 rounded-full sentiment-gradient"}),a.jsx("div",{style:{left:t,transform:"translateX(-50%)"},className:"absolute z-10 -top-[10px]",children:A})]})},Hs={light:{"primary-foreground":"#F5F5F5"},dark:{"primary-hover":"#7473C8"}},tB=({label:e,checked:A,onClick:t,id:r})=>a.jsxs("div",{onClick:()=>t(r),className:"flex cursor-pointer flex-row gap-3 items-center justify-center",children:[a.jsx("div",{className:ee("flex items-center justify-center rounded-full w-5 h-5",A?"bg-success-hover":"bg-background border-[7px] border-border"),children:A&&a.jsx(q,{name:"Check",width:16,height:16,color:Hs.light["primary-foreground"],"data-testid":"check-icon"})}),a.jsx("span",{className:ee("text-sm font-normal",A?"line-through text-muted-foreground":"text-foreground"),children:e})]});var ur="Collapsible",[rB]=Ne(ur),[nB,yn]=rB(ur),Ys=l.forwardRef((e,A)=>{const{__scopeCollapsible:t,open:r,defaultOpen:n,disabled:o,onOpenChange:s,...u}=e,[i,g]=gA({prop:r,defaultProp:n??!1,onChange:s,caller:ur});return a.jsx(nB,{scope:t,disabled:o,contentId:Ge(),open:i,onOpenToggle:l.useCallback(()=>g(C=>!C),[g]),children:a.jsx(ne.div,{"data-state":Nn(i),"data-disabled":o?"":void 0,...u,ref:A})})});Ys.displayName=ur;var Gs="CollapsibleTrigger",Ws=l.forwardRef((e,A)=>{const{__scopeCollapsible:t,...r}=e,n=yn(Gs,t);return a.jsx(ne.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":Nn(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:A,onClick:_(e.onClick,n.onOpenToggle)})});Ws.displayName=Gs;var Fn="CollapsibleContent",Us=l.forwardRef((e,A)=>{const{forceMount:t,...r}=e,n=yn(Fn,e.__scopeCollapsible);return a.jsx(je,{present:t||n.open,children:({present:o})=>a.jsx(oB,{...r,ref:A,present:o})})});Us.displayName=Fn;var oB=l.forwardRef((e,A)=>{const{__scopeCollapsible:t,present:r,children:n,...o}=e,s=yn(Fn,t),[u,i]=l.useState(r),g=l.useRef(null),C=Ce(A,g),c=l.useRef(0),B=c.current,E=l.useRef(0),I=E.current,d=s.open||u,Q=l.useRef(d),p=l.useRef(void 0);return l.useEffect(()=>{const v=requestAnimationFrame(()=>Q.current=!1);return()=>cancelAnimationFrame(v)},[]),Me(()=>{const v=g.current;if(v){p.current=p.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const x=v.getBoundingClientRect();c.current=x.height,E.current=x.width,Q.current||(v.style.transitionDuration=p.current.transitionDuration,v.style.animationName=p.current.animationName),i(r)}},[s.open,r]),a.jsx(ne.div,{"data-state":Nn(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!d,...o,ref:C,style:{"--radix-collapsible-content-height":B?`${B}px`:void 0,"--radix-collapsible-content-width":I?`${I}px`:void 0,...e.style},children:d&&n})});function Nn(e){return e?"open":"closed"}var aB=Ys;function rn({...e}){return a.jsx(aB,{"data-slot":"collapsible",...e})}function nn({...e}){return a.jsx(Ws,{"data-slot":"collapsible-trigger",...e})}function on({...e}){return a.jsx(Us,{"data-slot":"collapsible-content",...e})}const Zs=({id:e,title:A="GenAI Support",message:t,timestamp:r,askGenAITitle:n="Ask GenAI",askManagerTitle:o="Ask Manager"})=>a.jsx(cA,{title:A,icon:a.jsx(q,{name:"Sparkles",width:24,height:24,className:"text-foreground"}),id:e,message:t,timestamp:r,askGenAITitle:n,askManagerTitle:o}),Xs=({id:e,title:A="Great Job!",message:t,timestamp:r,askGenAITitle:n="Ask GenAI",askManagerTitle:o="Ask Manager"})=>a.jsx(cA,{title:A,icon:a.jsx(q,{name:"ClappingHands",width:24,height:24}),id:e,message:t,timestamp:r,askGenAITitle:n,askManagerTitle:o}),Vs=({id:e,title:A="Legal Thread",message:t,timestamp:r,showHelperButtons:n=!1,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:u="Ask GenAI",askManagerTitle:i="Ask Manager"})=>a.jsx(cA,{title:A,icon:a.jsx(q,{name:"SkullAndCrossbones",width:24,height:24}),id:e,message:t,timestamp:r,showHelperButtons:n,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:u,askManagerTitle:i}),qs=({title:e="Task Done",message:A,timestamp:t,id:r,taskCount:n,completedTaskCount:o,askGenAITitle:s="Ask GenAI",askManagerTitle:u="Ask Manager"})=>{const i=b.useMemo(()=>n<10?`0${n}`:n,[n]),g=b.useMemo(()=>o<10?`0${o}`:o,[o]);return a.jsx(cA,{id:r,icon:a.jsx(q,{name:"Done",width:24,height:24}),title:e,message:A,timestamp:t,tag:n!==0&&a.jsx("div",{className:"bg-foreground-08 rounded-4xl p-1 flex items-center justify-center text-[11px] font-normal text-foreground",children:`${g} / ${i}`}),askGenAITitle:s,askManagerTitle:u})},Ks=({id:e,title:A="Unhappy Customer",message:t,timestamp:r,askGenAITitle:n="Ask GenAI",askManagerTitle:o="Ask Manager"})=>a.jsx(cA,{title:A,icon:a.jsx(q,{name:"PoutingFace",width:24,height:24}),id:e,message:t,timestamp:r,askGenAITitle:n,askManagerTitle:o}),Js=({id:e,title:A,message:t,timestamp:r,icon:n,askGenAITitle:o="Ask GenAI",askManagerTitle:s="Ask Manager",showFeedbackArea:u,scenarioId:i,feddbackTitle:g,feedbackHelpfullButtonTitle:C,feedbackNotHelpfullButtonTitle:c,feedbackCommentPlaceholder:B,feedbackSubmitText:E,feedbackThankYouMessage:I,feedbackSubmitButtonHoverTitle:d,feedbackCancelButtonTitle:Q,feedBackApiUrl:p,externalConversationId:v,agentId:x})=>a.jsx(cA,{id:e,title:A,message:t,timestamp:r,icon:n,scenarioId:i,askGenAITitle:o,askManagerTitle:s,showFeedbackArea:u,feedBackApiUrl:p??"",feddbackTitle:g,feedbackHelpfullButtonTitle:C,feedbackNotHelpfullButtonTitle:c,feedbackCommentPlaceholder:B,feedbackSubmitText:E,feedbackThankYouMessage:I,feedbackSubmitButtonHoverTitle:d,feedbackCancelButtonTitle:Q,externalConversationId:v??"",agentId:x??""});/**
21
+ `,nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},p={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},v={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},x=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],w=String.fromCharCode,f={},h=f.hasOwnProperty,m=function(F,W){return h.call(F,W)},D=function(F,W){for(var K=-1,Y=F.length;++K<Y;)if(F[K]==W)return!0;return!1},O=function(F,W){if(!F)return W;var K={},Y;for(Y in W)K[Y]=m(F,Y)?F[Y]:W[Y];return K},z=function(F,W){var K="";return F>=55296&&F<=57343||F>1114111?(W&&N("character reference outside the permissible Unicode range"),"�"):m(v,F)?(W&&N("disallowed character reference"),v[F]):(W&&D(x,F)&&N("disallowed character reference"),F>65535&&(F-=65536,K+=w(F>>>10&1023|55296),F=56320|F&1023),K+=w(F),K)},R=function(F){return"&#x"+F.toString(16).toUpperCase()+";"},S=function(F){return"&#"+F+";"},N=function(F){throw Error("Parse error: "+F)},M=function(F,W){W=O(W,M.options);var K=W.strict;K&&I.test(F)&&N("forbidden code point");var Y=W.encodeEverything,L=W.useNamedReferences,P=W.allowUnsafeSymbols,G=W.decimal?S:R,U=function(k){return G(k.charCodeAt(0))};return Y?(F=F.replace(u,function(k){return L&&m(C,k)?"&"+C[k]+";":U(k)}),L&&(F=F.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),L&&(F=F.replace(g,function(k){return"&"+C[k]+";"}))):L?(P||(F=F.replace(c,function(k){return"&"+C[k]+";"})),F=F.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),F=F.replace(g,function(k){return"&"+C[k]+";"})):P||(F=F.replace(c,U)),F.replace(s,function(k){var Z=k.charCodeAt(0),$=k.charCodeAt(1),ae=(Z-55296)*1024+$-56320+65536;return G(ae)}).replace(i,U)};M.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function(F,W){W=O(W,T.options);var K=W.strict;return K&&E.test(F)&&N("malformed character reference"),F.replace(d,function(Y,L,P,G,U,k,Z,$,ae){var ie,le,se,J,he,xe;return L?(he=L,Q[he]):P?(he=P,xe=G,xe&&W.isAttributeValue?(K&&xe=="="&&N("`&` did not start a character reference"),Y):(K&&N("named character reference was not terminated by a semicolon"),p[he]+(xe||""))):U?(se=U,le=k,K&&!le&&N("character reference was not terminated by a semicolon"),ie=parseInt(se,10),z(ie,K)):Z?(J=Z,le=$,K&&!le&&N("character reference was not terminated by a semicolon"),ie=parseInt(J,16),z(ie,K)):(K&&N("named character reference was not terminated by a semicolon"),Y)})};T.options={isAttributeValue:!1,strict:!1};var H=function(F){return F.replace(c,function(W){return B[W]})},j={version:"1.2.0",encode:M,decode:T,escape:H,unescape:T};if(r&&!r.nodeType)if(n)n.exports=j;else for(var y in j)m(j,y)&&(r[y]=j[y]);else t.he=j})(qC)})(nt,nt.exports)),nt.exports}var JC=KC();const _C=Fs(JC),cA=b.forwardRef(({title:e,message:A,timestamp:t,icon:r,tag:n,showHelperButtons:o,onClickAskGenAI:s,onClickAskManager:u,askGenAITitle:i="Ask GenAI",askManagerTitle:g="Ask Manager",isStacked:C,className:c,showFeedbackArea:B,scenarioId:E,feedbackSubmitButtonHoverTitle:I,feddbackTitle:d,feedbackHelpfullButtonTitle:Q,feedbackNotHelpfullButtonTitle:p,feedbackCommentPlaceholder:v,feedbackSubmitText:x,feedbackThankYouMessage:w,feedbackCancelButtonTitle:f,feedBackApiUrl:h,externalConversationId:m,agentId:D},O)=>{const z=_C.decode(A??""),[R,S]=b.useState(1),[N,M]=b.useState(!1),[T,H]=b.useState(""),[j,y]=b.useState(!1),[F,W]=b.useState(!1),K=()=>{M(G=>!G)},Y=G=>{S(G)},L=({selectedFeedback:G,comment:U})=>{h&&E&&m&&D&&(y(!0),fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({externalConversationId:m,scenarioId:E,eventTime:new Date().toISOString(),agentId:D,feedbackType:G,comment:U})}).then(k=>k.json()).then(k=>{var Z;(Z=k==null?void 0:k.statusCode)!=null&&Z.toString().startsWith("2")&&(k!=null&&k.result)&&(k==null?void 0:k.result)!==""&&(k==null?void 0:k.result)!=="NULL"&&(k==null?void 0:k.result)!=="null"&&(k==null?void 0:k.result)!==null?(W(!0),y(!1)):(W(!1),y(!1))}).catch(k=>{console.log(k),W(!1),y(!1)}).finally(()=>{y(!1)}))},P=()=>{S(null),H(""),M(!1)};return a.jsxs("div",{ref:O,className:ee("flex flex-col w-full h-fit rounded-xl md:rounded-3xl bg-primary-foreground md:bg-background gap-2 p-4",C?"shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] ":null,c),children:[a.jsxs("div",{className:"flex w-full flex-row items-center justify-between gap-6",children:[a.jsxs("div",{className:"flex flex-row",children:[r,a.jsx("div",{className:"ml-2 mr-1 text-base font-medium leading-6 text-foreground",children:e}),typeof n<"u"&&n]}),a.jsx("div",{className:"bg-foreground-08 rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-card-foreground",children:t})]}),a.jsx("div",{className:"text-sm md:text-base w-full font-normal text-foreground",children:a.jsxs("div",{className:"flex flex-row items-center justify-between gap-2",children:[VC(z),B&&!F&&a.jsxs("button",{onClick:K,className:"relative group",title:I,style:{cursor:"pointer"},children:[a.jsx(q,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),a.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap",children:I})]})]})}),N&&!F&&a.jsxs("div",{className:"mt-4 space-y-4",children:[a.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs("button",{onClick:()=>Y(1),className:ee("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",R===1?"bg-green-50 dark:bg-green-900/20 border-green-400 dark:border-green-500 text-green-600 dark:text-green-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-green-300 dark:hover:border-green-400"),children:[a.jsx(q,{name:"LikeHand",width:16,height:16,style:{color:R===1?"#22c55e":"#6b7280"}}),a.jsx("span",{className:"text-sm font-medium",children:Q})]}),a.jsxs("button",{onClick:()=>Y(0),className:ee("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",R===0?"bg-red-50 dark:bg-red-900/20 border-red-400 dark:border-red-500 text-red-600 dark:text-red-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-red-300 dark:hover:border-red-400"),children:[a.jsx(q,{name:"DisLikeHand",width:16,height:16,style:{color:R===0?"#ef4444":"#6b7280"}}),a.jsx("span",{className:"text-sm font-medium",children:p})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:d}),a.jsx("textarea",{value:T,maxLength:500,onChange:G=>H(G.target.value),placeholder:v,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 focus:border-transparent placeholder-gray-500 dark:placeholder-gray-400",rows:3}),a.jsxs("div",{className:"flex justify-end",children:[a.jsx(Ee,{onClick:P,size:"sm",className:"bg-transparent dark:bg-transparent border-2 border-red-500 dark:border-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 gap-2 disabled:opacity-50 disabled:cursor-not-allowed mr-4",children:a.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:f})}),a.jsx(Ee,{onClick:()=>L({selectedFeedback:R??0,comment:T}),isLoading:j,disabled:j,size:"sm",className:"bg-primary dark:bg-primary hover:bg-primary/90 dark:hover:bg-primary/90 gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:a.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:x})})]})]})]}),F&&a.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[a.jsx("span",{className:"text-sm font-medium",children:w}),a.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:a.jsx(q,{name:"Check",width:12,height:12,style:{color:"white"}})})]}),o&&a.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[a.jsx(Ee,{onClick:s,size:"sm",className:"bg-primary gap-2",children:a.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[a.jsx(q,{name:"Sparkles",width:16,height:16,className:"text-background"}),i]})}),a.jsx(Ee,{onClick:u,size:"sm",className:"bg-primary gap-2",children:a.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[a.jsx(q,{name:"HandRaised",width:16,height:16,className:"text-background"}),g]})})]})]})});cA.displayName="MomentItem";const YA=({sender:e,message:A,timestamp:t,icon:r,type:n,onClickAskAI:o,onClickAskManager:s,managerReplyTitle:u,showAskManagerButton:i,showAskAIButton:g,managerReplyMessage:C,additionalContent:c,onClickShowOriginalMessage:B,originalMessage:E,onResend:I})=>{const d=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[a.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative flex flex-col gap-2 items-start rounded-2xl rounded-tr-none bg-secondary max-w-full",children:[a.jsx("div",{className:"text-sm font-medium text-foreground",children:A}),E&&E!==""&&a.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2 ",onClick:B,style:{color:"#3BA7FF"},children:E}),a.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:t}),r&&a.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:r})]}),a.jsx(mA,{type:"secondary",fullName:e})]}),Q=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[a.jsx(mA,{fullName:e}),a.jsxs("div",{className:"px-4 py-3 relative w-fit min-w-[128px] flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-client-chat-background max-w-full",children:[a.jsx("div",{className:"text-sm font-normal text-client-chat-foreground",children:A}),a.jsxs("div",{className:"flex flex-row gap-2",children:[g&&a.jsx(Ee,{name:"ai-helper",role:"button",onClick:o,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:a.jsx(q,{name:"Sparkles",width:24,height:24,className:"text-client-chat-link"})}),i&&a.jsx(Ee,{name:"manager-helper",role:"button",onClick:s,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:a.jsx(q,{name:"ChatBubble",width:24,height:24,className:"text-client-chat-link"})})]}),E&&E!==""&&a.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2",onClick:B,style:{color:"#3BA7FF"},children:E}),a.jsx("div",{className:"text-xs w-full font-normal text-client-chat-foreground text-right",children:t}),r&&a.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:r})]})]}),p=()=>a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[a.jsxs("div",{className:"rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-border",children:[a.jsxs("div",{className:"p-3 relative flex w-full flex-col gap-3 items-start bg-transparent",children:[a.jsxs("div",{className:"flex flex-row items-center justify-between w-full gap-3 text-foreground",children:[u,a.jsx("div",{className:"w-fit bg-destructive rounded-md p-1 text-[15px] text-primary-foreground font-normal",children:t})]}),a.jsx("div",{className:"text-sm font-medium text-foreground",children:C})]}),a.jsxs("div",{className:"rounded-br-2xl w-full rounded-bl-2xl bg-secondary flex flex-col items-start justify-center p-3 gap-2",children:[a.jsx("div",{className:"text-sm font-medium text-foreground",children:A}),a.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:t})]})]}),a.jsx(mA,{type:"secondary",fullName:e})]}),v=()=>{const f=async()=>{await vl(A)};return a.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[a.jsx("div",{className:"w-10 h-10 flex rounded-full items-center justify-center bg-warning-background",children:a.jsx(q,{name:"Sparkles",width:24,height:24,className:"text-secondary-brew"})}),a.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative w-full flex-1 flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-warning-background max-w-full",children:[a.jsx("div",{className:"text-sm font-medium text-secondary-brew-2",children:A}),a.jsxs("div",{className:"flex flex-row items-center justify-between w-full",children:[a.jsxs("div",{className:"flex flex-row items-start justify-center gap-1",children:[I&&a.jsx(Ee,{"aria-label":"Resend",className:"w-8 h-8 bg-transparent p-0 group",onClick:I,children:a.jsx(q,{name:"ArrowPathRoundedSquare",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})}),a.jsx(Ee,{"aria-label":"Copy",className:"w-8 h-8 bg-transparent p-0 group",onClick:f,children:a.jsx(q,{name:"Square2Stack",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})})]}),a.jsx("div",{className:"text-xs font-normal text-secondary-brew-2",children:t})]})]})]})},x=()=>a.jsxs("div",{className:"bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col",children:[a.jsxs("div",{className:"text-foreground text-base font-medium flex items-center justify-between",children:[a.jsxs("div",{className:"flex gap-2",children:[r," ",A]}),a.jsx("span",{className:"bg-destructive text-primary-foreground rounded px-1 py-0.5 text-sm font-normal",children:t})]}),a.jsx("div",{className:"text-popover-foreground",children:c})]});return{MESSAGE:d(),REPLY:Q(),MANAGER_REPLY:p(),AI_REPLY:v(),INFO_MESSAGE:x()}[n]},$C=({icon:e,title:A,summary:t})=>a.jsxs("div",{className:"bg-warning-background rounded-2xl pt-4 pb-6 px-6 flex flex-col gap-1 items-start w-full",children:[a.jsxs("div",{className:"flex flex-row gap-2 items-center w-full",children:[e&&a.jsx("div",{className:"w-10 h-10 text-primary-brew bg-client-chat-background rounded-full flex items-center justify-center flex-shrink-0",children:e}),a.jsx("div",{className:"font-medium text-base text-secondary-brew-2",children:A})]}),a.jsx("div",{className:"text-sm font-normal text-secondary-brew-2",children:t})]}),oA=({options:e,value:A,onValueChange:t,placeholder:r="Seçiniz...",disabled:n=!1,className:o,searchPlaceholder:s="Ara...",emptyMessage:u="Sonuç bulunamadı",label:i,title:g})=>{const[C,c]=b.useState(!1),[B,E]=b.useState(""),[I,d]=b.useState(e.find(h=>h.value===A)),Q=b.useRef(null),p=b.useRef(null);b.useEffect(()=>{const h=m=>{Q.current&&!Q.current.contains(m.target)&&(c(!1),E(""))};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]),b.useEffect(()=>{const h=e.find(m=>m.value===A);d(h)},[A,e]);const v=e.filter(h=>h.label.toLowerCase().includes(B.toLowerCase())&&!h.disabled),x=h=>{d(h),t==null||t(h),c(!1),E("")},w=()=>{n||(c(!C),C||setTimeout(()=>{var h;return(h=p.current)==null?void 0:h.focus()},100))},f=h=>{h.key==="Escape"&&(c(!1),E(""))};return a.jsxs("div",{className:ee("relative",o),ref:Q,children:[g&&a.jsx("h3",{className:"text-md font-medium text-foreground mb-2",style:{color:"#3b3b3bc6"},children:g}),i&&a.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:i}),a.jsxs("div",{className:"relative",children:[a.jsxs(Et,{type:"button",variant:"outline",className:ee("w-full justify-between",!I&&"text-muted-foreground"),onClick:w,disabled:n,children:[a.jsx("span",{className:"truncate",children:I?I.label:r}),a.jsx(q,{name:"ChevronDown",className:ee("h-4 w-4 transition-transform duration-200 ml-2",C&&"rotate-180")})]}),C&&a.jsxs("div",{className:"absolute z-50 w-full top-full mt-1 bg-background border border-border rounded-md shadow-lg transform-none",children:[a.jsx("div",{className:"p-2 border-b border-border",children:a.jsx(Za,{ref:p,placeholder:s,value:B,onChange:h=>E(h.target.value),onKeyDown:f,className:"h-8"})}),a.jsx("div",{className:"max-h-60 overflow-auto",children:v.length>0?v.map(h=>a.jsx("button",{type:"button",className:ee("w-full px-3 py-2 text-left text-sm hover:bg-accent hover:text-accent-foreground transition-colors",(I==null?void 0:I.value)===h.value&&"bg-accent text-accent-foreground"),onClick:()=>x(h),children:h.label},h.value)):a.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:u})})]})]})]})},eB=({isStandalone:e,messages:A,onClickTranslation:t,conversationSummary:r,isTranslationShown:n=!0,translationStatus:o="idle",title:s="Transcript",startTranslationText:u="Start Translation",stopTranslationText:i="Stop Translation",sourceLanguagePlaceholder:g="Auto-detect",targetLanguagePlaceholder:C="English",sourceLanguageTitle:c="Customer",targetLanguageTitle:B="Agent",sourceLanguageSearchPlaceholder:E="Search Source Language",targetLanguageSearchPlaceholder:I="Search Target Language",sourceLanguageOptions:d=[],targetLanguageOptions:Q=[],sourceLanguage:p,targetLanguage:v,onSourceLanguageChange:x,onTargetLanguageChange:w,showTranslationButtonText:f=!0,translationButtonClassName:h="row",showTranslationButtonGroup:m=!0})=>{const D=b.useRef(null),[O,z]=b.useState(!0);return b.useEffect(()=>{let R;return o==="translating"?R=setInterval(()=>{z(S=>!S)},1e3):z(!0),()=>{R&&clearInterval(R)}},[o]),a.jsxs("div",{className:"w-full flex flex-col h-full",children:[a.jsx("div",{className:"w-full flex-shrink-0 mb-3 md:mb-[26px]",children:e?a.jsxs("div",{className:"w-full flex flex-row items-center justify-between",children:[a.jsx("div",{className:"text-lg font-medium text-foreground",children:s}),n&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:`hidden md:flex items-center gap-2 flex-${h}`,children:[m&&a.jsxs("div",{className:"flex flex-row items-center gap-4",children:[a.jsx(oA,{options:d,value:p,onValueChange:x,placeholder:g,searchPlaceholder:E,className:"w-30",title:c}),a.jsx("div",{className:"flex items-center justify-center w-8 h-8 mt-8",children:a.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),a.jsx(oA,{options:Q,value:v,onValueChange:w,placeholder:C,searchPlaceholder:I,className:"w-30",title:B})]}),a.jsxs(Ee,{variant:"outline",size:"lg",onClick:t,className:`bg-background gap-2 px-6 py-3 h-10 ${h==="row"&&m?"mt-8":""}`,children:[a.jsx(q,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),a.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[f&&(o==="idle"?u:i),a.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?O?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),a.jsxs("div",{className:"flex md:hidden flex-row gap-2",children:[m&&a.jsxs(a.Fragment,{children:[a.jsx(oA,{options:d,value:p,onValueChange:x,placeholder:g,title:c,searchPlaceholder:E,className:"w-32"}),a.jsx("div",{className:"flex items-center justify-center w-6 h-6 mt-8",children:a.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),a.jsx(oA,{options:Q,value:v,onValueChange:w,placeholder:C,title:B,searchPlaceholder:I,className:"w-32"})]}),a.jsxs(Ee,{variant:"outline",size:"default",onClick:t,className:`bg-background gap-2 px-6 ${m?"mt-8":""}`,children:[a.jsx(q,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),a.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:a.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?O?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})]}):a.jsx("div",{className:"w-full flex items-center justify-center",children:n&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:`hidden md:flex items-center gap-2 flex-${h}`,children:[m&&a.jsxs("div",{className:"flex flex-row items-center gap-4",children:[a.jsx(oA,{options:d,value:p,onValueChange:x,placeholder:g,title:c,searchPlaceholder:E,className:"w-30"}),a.jsx("div",{className:"flex items-center justify-center w-8 h-8 mt-8",children:a.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),a.jsx(oA,{options:Q,value:v,onValueChange:w,placeholder:C,title:B,searchPlaceholder:I,className:"w-30"})]}),a.jsxs(Ee,{variant:"outline",size:"lg",onClick:t,className:`bg-background gap-2 px-3 py-3 h-10 ${h==="row"&&m?"mt-8":""}`,children:[a.jsx(q,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),a.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[f&&(o==="idle"?u:i),a.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?O?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),a.jsxs("div",{className:"flex md:hidden flex-row gap-2",children:[m&&a.jsxs(a.Fragment,{children:[a.jsx(oA,{options:d,value:p,onValueChange:x,placeholder:g,title:c,searchPlaceholder:E,className:"w-32"}),a.jsx("div",{className:"flex items-center justify-center w-6 h-6 mt-10",children:a.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),a.jsx(oA,{options:Q,value:v,onValueChange:w,placeholder:C,title:B,searchPlaceholder:I,className:"w-32"})]}),a.jsxs(Ee,{variant:"outline",size:"default",onClick:t,className:`bg-background gap-2 px-6 ${m?"mt-8":""}`,children:[a.jsx(q,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),a.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:a.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?O?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})})}),a.jsx("div",{ref:D,className:"flex-grow overflow-y-auto w-full h-[calc(100%-48px)] max-h-[calc(100vh-68px)] sm:max-h-[calc(100vh-200px)]",children:a.jsxs("div",{className:"flex flex-col w-full items-center justify-center pb-4 ",children:[a.jsx("div",{className:`flex flex-col gap-6 w-full pb-8 ${r?"border-b border-border":""}`,children:A.map(R=>a.jsx(YA,{...R},R.id))}),a.jsx("div",{className:"w-full flex pt-8 max-w-11/12",children:r&&a.jsx($C,{...r})})]})})]})},AB=({rate:e})=>{const A=b.useMemo(()=>{if(e<=20)return a.jsx(q,{name:"AngryFace",width:32,height:32});if(e>20&&e<=40)return a.jsx(q,{name:"ConfusedFace",width:32,height:32});if(e>40&&e<=60)return a.jsx(q,{name:"NeutralFace",width:32,height:32});if(e>60&&e<=80)return a.jsx(q,{name:"Smiling",width:32,height:32});if(e>80&&e<=100)return a.jsx(q,{name:"SmilingWithHearts",width:32,height:32})},[e]),t=b.useMemo(()=>`${Math.max(0,Math.min(100,e))}%`,[e]);return a.jsxs("div",{className:"w-full relative h-3 rounded-full",children:[a.jsx("div",{className:"w-full h-full absolute top-0 left-0 rounded-full sentiment-gradient"}),a.jsx("div",{style:{left:t,transform:"translateX(-50%)"},className:"absolute z-10 -top-[10px]",children:A})]})},Hs={light:{"primary-foreground":"#F5F5F5"},dark:{"primary-hover":"#7473C8"}},tB=({label:e,checked:A,onClick:t,id:r})=>a.jsxs("div",{onClick:()=>t(r),className:"flex cursor-pointer flex-row gap-3 items-center justify-center",children:[a.jsx("div",{className:ee("flex items-center justify-center rounded-full w-5 h-5",A?"bg-success-hover":"bg-background border-[7px] border-border"),children:A&&a.jsx(q,{name:"Check",width:16,height:16,color:Hs.light["primary-foreground"],"data-testid":"check-icon"})}),a.jsx("span",{className:ee("text-sm font-normal",A?"line-through text-muted-foreground":"text-foreground"),children:e})]});var ur="Collapsible",[rB]=Ne(ur),[nB,yn]=rB(ur),Ys=l.forwardRef((e,A)=>{const{__scopeCollapsible:t,open:r,defaultOpen:n,disabled:o,onOpenChange:s,...u}=e,[i,g]=gA({prop:r,defaultProp:n??!1,onChange:s,caller:ur});return a.jsx(nB,{scope:t,disabled:o,contentId:Ge(),open:i,onOpenToggle:l.useCallback(()=>g(C=>!C),[g]),children:a.jsx(ne.div,{"data-state":Nn(i),"data-disabled":o?"":void 0,...u,ref:A})})});Ys.displayName=ur;var Gs="CollapsibleTrigger",Ws=l.forwardRef((e,A)=>{const{__scopeCollapsible:t,...r}=e,n=yn(Gs,t);return a.jsx(ne.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":Nn(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:A,onClick:_(e.onClick,n.onOpenToggle)})});Ws.displayName=Gs;var Fn="CollapsibleContent",Us=l.forwardRef((e,A)=>{const{forceMount:t,...r}=e,n=yn(Fn,e.__scopeCollapsible);return a.jsx(je,{present:t||n.open,children:({present:o})=>a.jsx(oB,{...r,ref:A,present:o})})});Us.displayName=Fn;var oB=l.forwardRef((e,A)=>{const{__scopeCollapsible:t,present:r,children:n,...o}=e,s=yn(Fn,t),[u,i]=l.useState(r),g=l.useRef(null),C=Ce(A,g),c=l.useRef(0),B=c.current,E=l.useRef(0),I=E.current,d=s.open||u,Q=l.useRef(d),p=l.useRef(void 0);return l.useEffect(()=>{const v=requestAnimationFrame(()=>Q.current=!1);return()=>cancelAnimationFrame(v)},[]),Me(()=>{const v=g.current;if(v){p.current=p.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const x=v.getBoundingClientRect();c.current=x.height,E.current=x.width,Q.current||(v.style.transitionDuration=p.current.transitionDuration,v.style.animationName=p.current.animationName),i(r)}},[s.open,r]),a.jsx(ne.div,{"data-state":Nn(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!d,...o,ref:C,style:{"--radix-collapsible-content-height":B?`${B}px`:void 0,"--radix-collapsible-content-width":I?`${I}px`:void 0,...e.style},children:d&&n})});function Nn(e){return e?"open":"closed"}var aB=Ys;function rn({...e}){return a.jsx(aB,{"data-slot":"collapsible",...e})}function nn({...e}){return a.jsx(Ws,{"data-slot":"collapsible-trigger",...e})}function on({...e}){return a.jsx(Us,{"data-slot":"collapsible-content",...e})}const Zs=({id:e,title:A="GenAI Support",message:t,timestamp:r,askGenAITitle:n="Ask GenAI",askManagerTitle:o="Ask Manager"})=>a.jsx(cA,{title:A,icon:a.jsx(q,{name:"Sparkles",width:24,height:24,className:"text-foreground"}),id:e,message:t,timestamp:r,askGenAITitle:n,askManagerTitle:o}),Xs=({id:e,title:A="Great Job!",message:t,timestamp:r,askGenAITitle:n="Ask GenAI",askManagerTitle:o="Ask Manager"})=>a.jsx(cA,{title:A,icon:a.jsx(q,{name:"ClappingHands",width:24,height:24}),id:e,message:t,timestamp:r,askGenAITitle:n,askManagerTitle:o}),Vs=({id:e,title:A="Legal Thread",message:t,timestamp:r,showHelperButtons:n=!1,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:u="Ask GenAI",askManagerTitle:i="Ask Manager"})=>a.jsx(cA,{title:A,icon:a.jsx(q,{name:"SkullAndCrossbones",width:24,height:24}),id:e,message:t,timestamp:r,showHelperButtons:n,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:u,askManagerTitle:i}),qs=({title:e="Task Done",message:A,timestamp:t,id:r,taskCount:n,completedTaskCount:o,askGenAITitle:s="Ask GenAI",askManagerTitle:u="Ask Manager"})=>{const i=b.useMemo(()=>n<10?`0${n}`:n,[n]),g=b.useMemo(()=>o<10?`0${o}`:o,[o]);return a.jsx(cA,{id:r,icon:a.jsx(q,{name:"Done",width:24,height:24}),title:e,message:A,timestamp:t,tag:n!==0&&a.jsx("div",{className:"bg-foreground-08 rounded-4xl p-1 flex items-center justify-center text-[11px] font-normal text-foreground",children:`${g} / ${i}`}),askGenAITitle:s,askManagerTitle:u})},Ks=({id:e,title:A="Unhappy Customer",message:t,timestamp:r,askGenAITitle:n="Ask GenAI",askManagerTitle:o="Ask Manager"})=>a.jsx(cA,{title:A,icon:a.jsx(q,{name:"PoutingFace",width:24,height:24}),id:e,message:t,timestamp:r,askGenAITitle:n,askManagerTitle:o}),Js=({id:e,title:A,message:t,timestamp:r,icon:n,askGenAITitle:o="Ask GenAI",askManagerTitle:s="Ask Manager",showFeedbackArea:u,scenarioId:i,feddbackTitle:g,feedbackHelpfullButtonTitle:C,feedbackNotHelpfullButtonTitle:c,feedbackCommentPlaceholder:B,feedbackSubmitText:E,feedbackThankYouMessage:I,feedbackSubmitButtonHoverTitle:d,feedbackCancelButtonTitle:Q,feedBackApiUrl:p,externalConversationId:v,agentId:x})=>a.jsx(cA,{id:e,title:A,message:t,timestamp:r,icon:n,scenarioId:i,askGenAITitle:o,askManagerTitle:s,showFeedbackArea:u,feedBackApiUrl:p??"",feddbackTitle:g,feedbackHelpfullButtonTitle:C,feedbackNotHelpfullButtonTitle:c,feedbackCommentPlaceholder:B,feedbackSubmitText:E,feedbackThankYouMessage:I,feedbackSubmitButtonHoverTitle:d,feedbackCancelButtonTitle:Q,externalConversationId:v??"",agentId:x??""});/**
22
22
  * @license lucide-react v0.477.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
@@ -48,7 +48,7 @@
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const cB=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],CB=$s("LoaderCircle",cB),ir=b.createContext(null);ir.displayName="PanelGroupContext";const de={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},jn=10,hA=b.useLayoutEffect,Uo=l.useId,BB=typeof Uo=="function"?Uo:()=>null;let EB=0;function kn(e=null){const A=BB(),t=b.useRef(e||A||null);return t.current===null&&(t.current=""+EB++),e??t.current}function eu({children:e,className:A="",collapsedSize:t,collapsible:r,defaultSize:n,forwardedRef:o,id:s,maxSize:u,minSize:i,onCollapse:g,onExpand:C,onResize:c,order:B,style:E,tagName:I="div",...d}){const Q=b.useContext(ir);if(Q===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:p,expandPanel:v,getPanelSize:x,getPanelStyle:w,groupId:f,isPanelCollapsed:h,reevaluatePanelConstraints:m,registerPanel:D,resizePanel:O,unregisterPanel:z}=Q,R=kn(s),S=b.useRef({callbacks:{onCollapse:g,onExpand:C,onResize:c},constraints:{collapsedSize:t,collapsible:r,defaultSize:n,maxSize:u,minSize:i},id:R,idIsFromProps:s!==void 0,order:B});b.useRef({didLogMissingDefaultSizeWarning:!1}),hA(()=>{const{callbacks:M,constraints:T}=S.current,H={...T};S.current.id=R,S.current.idIsFromProps=s!==void 0,S.current.order=B,M.onCollapse=g,M.onExpand=C,M.onResize=c,T.collapsedSize=t,T.collapsible=r,T.defaultSize=n,T.maxSize=u,T.minSize=i,(H.collapsedSize!==T.collapsedSize||H.collapsible!==T.collapsible||H.maxSize!==T.maxSize||H.minSize!==T.minSize)&&m(S.current,H)}),hA(()=>{const M=S.current;return D(M),()=>{z(M)}},[B,R,D,z]),b.useImperativeHandle(o,()=>({collapse:()=>{p(S.current)},expand:M=>{v(S.current,M)},getId(){return R},getSize(){return x(S.current)},isCollapsed(){return h(S.current)},isExpanded(){return!h(S.current)},resize:M=>{O(S.current,M)}}),[p,v,x,h,R,O]);const N=w(S.current,n);return b.createElement(I,{...d,children:e,className:A,id:R,style:{...N,...E},[de.groupId]:f,[de.panel]:"",[de.panelCollapsible]:r||void 0,[de.panelId]:R,[de.panelSize]:parseFloat(""+N.flexGrow).toFixed(1)})}const Au=b.forwardRef((e,A)=>b.createElement(eu,{...e,forwardedRef:A}));eu.displayName="Panel";Au.displayName="forwardRef(Panel)";let an=null,Gt=-1,sA=null;function dB(e,A){if(A){const t=(A&au)!==0,r=(A&su)!==0,n=(A&uu)!==0,o=(A&iu)!==0;if(t)return n?"se-resize":o?"ne-resize":"e-resize";if(r)return n?"sw-resize":o?"nw-resize":"w-resize";if(n)return"s-resize";if(o)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function IB(){sA!==null&&(document.head.removeChild(sA),an=null,sA=null,Gt=-1)}function Pr(e,A){var t,r;const n=dB(e,A);if(an!==n){if(an=n,sA===null&&(sA=document.createElement("style"),document.head.appendChild(sA)),Gt>=0){var o;(o=sA.sheet)===null||o===void 0||o.removeRule(Gt)}Gt=(t=(r=sA.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${n} !important;}`))!==null&&t!==void 0?t:-1}}function tu(e){return e.type==="keydown"}function ru(e){return e.type.startsWith("pointer")}function nu(e){return e.type.startsWith("mouse")}function gr(e){if(ru(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(nu(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function QB(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function fB(e,A,t){return e.x<A.x+A.width&&e.x+e.width>A.x&&e.y<A.y+A.height&&e.y+e.height>A.y}function pB(e,A){if(e===A)throw new Error("Cannot compare node with itself");const t={a:Vo(e),b:Vo(A)};let r;for(;t.a.at(-1)===t.b.at(-1);)e=t.a.pop(),A=t.b.pop(),r=e;re(r,"Stacking order can only be calculated for elements with a common ancestor");const n={a:Xo(Zo(t.a)),b:Xo(Zo(t.b))};if(n.a===n.b){const o=r.childNodes,s={a:t.a.at(-1),b:t.b.at(-1)};let u=o.length;for(;u--;){const i=o[u];if(i===s.a)return 1;if(i===s.b)return-1}}return Math.sign(n.a-n.b)}const mB=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function hB(e){var A;const t=getComputedStyle((A=ou(e))!==null&&A!==void 0?A:e).display;return t==="flex"||t==="inline-flex"}function vB(e){const A=getComputedStyle(e);return!!(A.position==="fixed"||A.zIndex!=="auto"&&(A.position!=="static"||hB(e))||+A.opacity<1||"transform"in A&&A.transform!=="none"||"webkitTransform"in A&&A.webkitTransform!=="none"||"mixBlendMode"in A&&A.mixBlendMode!=="normal"||"filter"in A&&A.filter!=="none"||"webkitFilter"in A&&A.webkitFilter!=="none"||"isolation"in A&&A.isolation==="isolate"||mB.test(A.willChange)||A.webkitOverflowScrolling==="touch")}function Zo(e){let A=e.length;for(;A--;){const t=e[A];if(re(t,"Missing node"),vB(t))return t}return null}function Xo(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Vo(e){const A=[];for(;e;)A.push(e),e=ou(e);return A}function ou(e){const{parentNode:A}=e;return A&&A instanceof ShadowRoot?A.host:A}const au=1,su=2,uu=4,iu=8,wB=QB()==="coarse";let Le=[],zA=!1,pA=new Map,lr=new Map;const ut=new Set;function xB(e,A,t,r,n){var o;const{ownerDocument:s}=A,u={direction:t,element:A,hitAreaMargins:r,setResizeHandlerState:n},i=(o=pA.get(s))!==null&&o!==void 0?o:0;return pA.set(s,i+1),ut.add(u),Xt(),function(){var C;lr.delete(e),ut.delete(u);const c=(C=pA.get(s))!==null&&C!==void 0?C:1;if(pA.set(s,c-1),Xt(),c===1&&pA.delete(s),Le.includes(u)){const B=Le.indexOf(u);B>=0&&Le.splice(B,1),Mn(),n("up",!0,null)}}}function bB(e){const{target:A}=e,{x:t,y:r}=gr(e);zA=!0,On({target:A,x:t,y:r}),Xt(),Le.length>0&&(Vt("down",e),e.preventDefault(),gu(A)||e.stopImmediatePropagation())}function Lr(e){const{x:A,y:t}=gr(e);if(zA&&e.buttons===0&&(zA=!1,Vt("up",e)),!zA){const{target:r}=e;On({target:r,x:A,y:t})}Vt("move",e),Mn(),Le.length>0&&e.preventDefault()}function Rr(e){const{target:A}=e,{x:t,y:r}=gr(e);lr.clear(),zA=!1,Le.length>0&&(e.preventDefault(),gu(A)||e.stopImmediatePropagation()),Vt("up",e),On({target:A,x:t,y:r}),Mn(),Xt()}function gu(e){let A=e;for(;A;){if(A.hasAttribute(de.resizeHandle))return!0;A=A.parentElement}return!1}function On({target:e,x:A,y:t}){Le.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),ut.forEach(n=>{const{element:o,hitAreaMargins:s}=n,u=o.getBoundingClientRect(),{bottom:i,left:g,right:C,top:c}=u,B=wB?s.coarse:s.fine;if(A>=g-B&&A<=C+B&&t>=c-B&&t<=i+B){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&pB(r,o)>0){let I=r,d=!1;for(;I&&!I.contains(o);){if(fB(I.getBoundingClientRect(),u)){d=!0;break}I=I.parentElement}if(d)return}Le.push(n)}})}function zr(e,A){lr.set(e,A)}function Mn(){let e=!1,A=!1;Le.forEach(r=>{const{direction:n}=r;n==="horizontal"?e=!0:A=!0});let t=0;lr.forEach(r=>{t|=r}),e&&A?Pr("intersection",t):e?Pr("horizontal",t):A?Pr("vertical",t):IB()}let Tr=new AbortController;function Xt(){Tr.abort(),Tr=new AbortController;const e={capture:!0,signal:Tr.signal};ut.size&&(zA?(Le.length>0&&pA.forEach((A,t)=>{const{body:r}=t;A>0&&(r.addEventListener("contextmenu",Rr,e),r.addEventListener("pointerleave",Lr,e),r.addEventListener("pointermove",Lr,e))}),window.addEventListener("pointerup",Rr,e),window.addEventListener("pointercancel",Rr,e)):pA.forEach((A,t)=>{const{body:r}=t;A>0&&(r.addEventListener("pointerdown",bB,e),r.addEventListener("pointermove",Lr,e))}))}function Vt(e,A){ut.forEach(t=>{const{setResizeHandlerState:r}=t,n=Le.includes(t);r(e,n,A)})}function DB(){const[e,A]=b.useState(0);return b.useCallback(()=>A(t=>t+1),[])}function re(e,A){if(!e)throw console.error(A),Error(A)}function vA(e,A,t=jn){return e.toFixed(t)===A.toFixed(t)?0:e>A?1:-1}function Je(e,A,t=jn){return vA(e,A,t)===0}function De(e,A,t){return vA(e,A,t)===0}function yB(e,A,t){if(e.length!==A.length)return!1;for(let r=0;r<e.length;r++){const n=e[r],o=A[r];if(!De(n,o,t))return!1}return!0}function RA({panelConstraints:e,panelIndex:A,size:t}){const r=e[A];re(r!=null,`Panel constraints not found for index ${A}`);let{collapsedSize:n=0,collapsible:o,maxSize:s=100,minSize:u=0}=r;if(vA(t,u)<0)if(o){const i=(n+u)/2;vA(t,i)<0?t=n:t=u}else t=u;return t=Math.min(s,t),t=parseFloat(t.toFixed(jn)),t}function ot({delta:e,initialLayout:A,panelConstraints:t,pivotIndices:r,prevLayout:n,trigger:o}){if(De(e,0))return A;const s=[...A],[u,i]=r;re(u!=null,"Invalid first pivot index"),re(i!=null,"Invalid second pivot index");let g=0;if(o==="keyboard"){{const c=e<0?i:u,B=t[c];re(B,`Panel constraints not found for index ${c}`);const{collapsedSize:E=0,collapsible:I,minSize:d=0}=B;if(I){const Q=A[c];if(re(Q!=null,`Previous layout not found for panel index ${c}`),De(Q,E)){const p=d-Q;vA(p,Math.abs(e))>0&&(e=e<0?0-p:p)}}}{const c=e<0?u:i,B=t[c];re(B,`No panel constraints found for index ${c}`);const{collapsedSize:E=0,collapsible:I,minSize:d=0}=B;if(I){const Q=A[c];if(re(Q!=null,`Previous layout not found for panel index ${c}`),De(Q,d)){const p=Q-E;vA(p,Math.abs(e))>0&&(e=e<0?0-p:p)}}}}{const c=e<0?1:-1;let B=e<0?i:u,E=0;for(;;){const d=A[B];re(d!=null,`Previous layout not found for panel index ${B}`);const p=RA({panelConstraints:t,panelIndex:B,size:100})-d;if(E+=p,B+=c,B<0||B>=t.length)break}const I=Math.min(Math.abs(e),Math.abs(E));e=e<0?0-I:I}{let B=e<0?u:i;for(;B>=0&&B<t.length;){const E=Math.abs(e)-Math.abs(g),I=A[B];re(I!=null,`Previous layout not found for panel index ${B}`);const d=I-E,Q=RA({panelConstraints:t,panelIndex:B,size:d});if(!De(I,Q)&&(g+=I-Q,s[B]=Q,g.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?B--:B++}}if(yB(n,s))return n;{const c=e<0?i:u,B=A[c];re(B!=null,`Previous layout not found for panel index ${c}`);const E=B+g,I=RA({panelConstraints:t,panelIndex:c,size:E});if(s[c]=I,!De(I,E)){let d=E-I,p=e<0?i:u;for(;p>=0&&p<t.length;){const v=s[p];re(v!=null,`Previous layout not found for panel index ${p}`);const x=v+d,w=RA({panelConstraints:t,panelIndex:p,size:x});if(De(v,w)||(d-=w-v,s[p]=w),De(d,0))break;e>0?p--:p++}}}const C=s.reduce((c,B)=>B+c,0);return De(C,100)?s:n}function FB({layout:e,panelsArray:A,pivotIndices:t}){let r=0,n=100,o=0,s=0;const u=t[0];re(u!=null,"No pivot index found"),A.forEach((c,B)=>{const{constraints:E}=c,{maxSize:I=100,minSize:d=0}=E;B===u?(r=d,n=I):(o+=d,s+=I)});const i=Math.min(n,100-o),g=Math.max(r,100-s),C=e[u];return{valueMax:i,valueMin:g,valueNow:C}}function it(e,A=document){return Array.from(A.querySelectorAll(`[${de.resizeHandleId}][data-panel-group-id="${e}"]`))}function lu(e,A,t=document){const n=it(e,t).findIndex(o=>o.getAttribute(de.resizeHandleId)===A);return n??null}function cu(e,A,t){const r=lu(e,A,t);return r!=null?[r,r+1]:[-1,-1]}function Cu(e,A=document){var t;if(A instanceof HTMLElement&&(A==null||(t=A.dataset)===null||t===void 0?void 0:t.panelGroupId)==e)return A;const r=A.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function cr(e,A=document){const t=A.querySelector(`[${de.resizeHandleId}="${e}"]`);return t||null}function NB(e,A,t,r=document){var n,o,s,u;const i=cr(A,r),g=it(e,r),C=i?g.indexOf(i):-1,c=(n=(o=t[C])===null||o===void 0?void 0:o.id)!==null&&n!==void 0?n:null,B=(s=(u=t[C+1])===null||u===void 0?void 0:u.id)!==null&&s!==void 0?s:null;return[c,B]}function jB({committedValuesRef:e,eagerValuesRef:A,groupId:t,layout:r,panelDataArray:n,panelGroupElement:o,setLayout:s}){b.useRef({didWarnAboutMissingResizeHandle:!1}),hA(()=>{if(!o)return;const u=it(t,o);for(let i=0;i<n.length-1;i++){const{valueMax:g,valueMin:C,valueNow:c}=FB({layout:r,panelsArray:n,pivotIndices:[i,i+1]}),B=u[i];if(B!=null){const E=n[i];re(E,`No panel data found for index "${i}"`),B.setAttribute("aria-controls",E.id),B.setAttribute("aria-valuemax",""+Math.round(g)),B.setAttribute("aria-valuemin",""+Math.round(C)),B.setAttribute("aria-valuenow",c!=null?""+Math.round(c):"")}}return()=>{u.forEach((i,g)=>{i.removeAttribute("aria-controls"),i.removeAttribute("aria-valuemax"),i.removeAttribute("aria-valuemin"),i.removeAttribute("aria-valuenow")})}},[t,r,n,o]),b.useEffect(()=>{if(!o)return;const u=A.current;re(u,"Eager values not found");const{panelDataArray:i}=u,g=Cu(t,o);re(g!=null,`No group found for id "${t}"`);const C=it(t,o);re(C,`No resize handles found for group id "${t}"`);const c=C.map(B=>{const E=B.getAttribute(de.resizeHandleId);re(E,"Resize handle element has no handle id attribute");const[I,d]=NB(t,E,i,o);if(I==null||d==null)return()=>{};const Q=p=>{if(!p.defaultPrevented)switch(p.key){case"Enter":{p.preventDefault();const v=i.findIndex(x=>x.id===I);if(v>=0){const x=i[v];re(x,`No panel data found for index ${v}`);const w=r[v],{collapsedSize:f=0,collapsible:h,minSize:m=0}=x.constraints;if(w!=null&&h){const D=ot({delta:De(w,f)?m-f:f-w,initialLayout:r,panelConstraints:i.map(O=>O.constraints),pivotIndices:cu(t,E,o),prevLayout:r,trigger:"keyboard"});r!==D&&s(D)}}break}}};return B.addEventListener("keydown",Q),()=>{B.removeEventListener("keydown",Q)}});return()=>{c.forEach(B=>B())}},[o,e,A,t,r,n,s])}function qo(e,A){if(e.length!==A.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==A[t])return!1;return!0}function Bu(e,A){const t=e==="horizontal",{x:r,y:n}=gr(A);return t?r:n}function kB(e,A,t,r,n){const o=t==="horizontal",s=cr(A,n);re(s,`No resize handle element found for id "${A}"`);const u=s.getAttribute(de.groupId);re(u,"Resize handle element has no group id attribute");let{initialCursorPosition:i}=r;const g=Bu(t,e),C=Cu(u,n);re(C,`No group element found for id "${u}"`);const c=C.getBoundingClientRect(),B=o?c.width:c.height;return(g-i)/B*100}function OB(e,A,t,r,n,o){if(tu(e)){const s=t==="horizontal";let u=0;e.shiftKey?u=100:n!=null?u=n:u=10;let i=0;switch(e.key){case"ArrowDown":i=s?0:u;break;case"ArrowLeft":i=s?-u:0;break;case"ArrowRight":i=s?u:0;break;case"ArrowUp":i=s?0:-u;break;case"End":i=100;break;case"Home":i=-100;break}return i}else return r==null?0:kB(e,A,t,r,o)}function MB({panelDataArray:e}){const A=Array(e.length),t=e.map(o=>o.constraints);let r=0,n=100;for(let o=0;o<e.length;o++){const s=t[o];re(s,`Panel constraints not found for index ${o}`);const{defaultSize:u}=s;u!=null&&(r++,A[o]=u,n-=u)}for(let o=0;o<e.length;o++){const s=t[o];re(s,`Panel constraints not found for index ${o}`);const{defaultSize:u}=s;if(u!=null)continue;const i=e.length-r,g=n/i;r++,A[o]=g,n-=g}return A}function kA(e,A,t){A.forEach((r,n)=>{const o=e[n];re(o,`Panel data not found for index ${n}`);const{callbacks:s,constraints:u,id:i}=o,{collapsedSize:g=0,collapsible:C}=u,c=t[i];if(c==null||r!==c){t[i]=r;const{onCollapse:B,onExpand:E,onResize:I}=s;I&&I(r,c),C&&(B||E)&&(E&&(c==null||Je(c,g))&&!Je(r,g)&&E(),B&&(c==null||!Je(c,g))&&Je(r,g)&&B())}})}function Pt(e,A){if(e.length!==A.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!=A[t])return!1;return!0}function PB({defaultSize:e,dragState:A,layout:t,panelData:r,panelIndex:n,precision:o=3}){const s=t[n];let u;return s==null?u=e!=null?e.toPrecision(o):"1":r.length===1?u="1":u=s.toPrecision(o),{flexBasis:0,flexGrow:u,flexShrink:1,overflow:"hidden",pointerEvents:A!==null?"none":void 0}}function LB(e,A=10){let t=null;return(...n)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{e(...n)},A)}}function Ko(e){try{if(typeof localStorage<"u")e.getItem=A=>localStorage.getItem(A),e.setItem=(A,t)=>{localStorage.setItem(A,t)};else throw new Error("localStorage not supported in this environment")}catch(A){console.error(A),e.getItem=()=>null,e.setItem=()=>{}}}function Eu(e){return`react-resizable-panels:${e}`}function du(e){return e.map(A=>{const{constraints:t,id:r,idIsFromProps:n,order:o}=A;return n?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((A,t)=>A.localeCompare(t)).join(",")}function Iu(e,A){try{const t=Eu(e),r=A.getItem(t);if(r){const n=JSON.parse(r);if(typeof n=="object"&&n!=null)return n}}catch{}return null}function RB(e,A,t){var r,n;const o=(r=Iu(e,t))!==null&&r!==void 0?r:{},s=du(A);return(n=o[s])!==null&&n!==void 0?n:null}function zB(e,A,t,r,n){var o;const s=Eu(e),u=du(A),i=(o=Iu(e,n))!==null&&o!==void 0?o:{};i[u]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{n.setItem(s,JSON.stringify(i))}catch(g){console.error(g)}}function Jo({layout:e,panelConstraints:A}){const t=[...e],r=t.reduce((o,s)=>o+s,0);if(t.length!==A.length)throw Error(`Invalid ${A.length} panel layout: ${t.map(o=>`${o}%`).join(", ")}`);if(!De(r,100)&&t.length>0)for(let o=0;o<A.length;o++){const s=t[o];re(s!=null,`No layout data found for index ${o}`);const u=100/r*s;t[o]=u}let n=0;for(let o=0;o<A.length;o++){const s=t[o];re(s!=null,`No layout data found for index ${o}`);const u=RA({panelConstraints:A,panelIndex:o,size:s});s!=u&&(n+=s-u,t[o]=u)}if(!De(n,0))for(let o=0;o<A.length;o++){const s=t[o];re(s!=null,`No layout data found for index ${o}`);const u=s+n,i=RA({panelConstraints:A,panelIndex:o,size:u});if(s!==i&&(n-=i-s,t[o]=i,De(n,0)))break}return t}const TB=100,at={getItem:e=>(Ko(at),at.getItem(e)),setItem:(e,A)=>{Ko(at),at.setItem(e,A)}},_o={};function Qu({autoSaveId:e=null,children:A,className:t="",direction:r,forwardedRef:n,id:o=null,onLayout:s=null,keyboardResizeBy:u=null,storage:i=at,style:g,tagName:C="div",...c}){const B=kn(o),E=b.useRef(null),[I,d]=b.useState(null),[Q,p]=b.useState([]),v=DB(),x=b.useRef({}),w=b.useRef(new Map),f=b.useRef(0),h=b.useRef({autoSaveId:e,direction:r,dragState:I,id:B,keyboardResizeBy:u,onLayout:s,storage:i}),m=b.useRef({layout:Q,panelDataArray:[],panelDataArrayChanged:!1});b.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),b.useImperativeHandle(n,()=>({getId:()=>h.current.id,getLayout:()=>{const{layout:L}=m.current;return L},setLayout:L=>{const{onLayout:P}=h.current,{layout:G,panelDataArray:U}=m.current,k=Jo({layout:L,panelConstraints:U.map(Z=>Z.constraints)});qo(G,k)||(p(k),m.current.layout=k,P&&P(k),kA(U,k,x.current))}}),[]),hA(()=>{h.current.autoSaveId=e,h.current.direction=r,h.current.dragState=I,h.current.id=B,h.current.onLayout=s,h.current.storage=i}),jB({committedValuesRef:h,eagerValuesRef:m,groupId:B,layout:Q,panelDataArray:m.current.panelDataArray,setLayout:p,panelGroupElement:E.current}),b.useEffect(()=>{const{panelDataArray:L}=m.current;if(e){if(Q.length===0||Q.length!==L.length)return;let P=_o[e];P==null&&(P=LB(zB,TB),_o[e]=P);const G=[...L],U=new Map(w.current);P(e,G,U,Q,i)}},[e,Q,i]),b.useEffect(()=>{});const D=b.useCallback(L=>{const{onLayout:P}=h.current,{layout:G,panelDataArray:U}=m.current;if(L.constraints.collapsible){const k=U.map(ie=>ie.constraints),{collapsedSize:Z=0,panelSize:$,pivotIndices:ae}=QA(U,L,G);if(re($!=null,`Panel size not found for panel "${L.id}"`),!Je($,Z)){w.current.set(L.id,$);const le=LA(U,L)===U.length-1?$-Z:Z-$,se=ot({delta:le,initialLayout:G,panelConstraints:k,pivotIndices:ae,prevLayout:G,trigger:"imperative-api"});Pt(G,se)||(p(se),m.current.layout=se,P&&P(se),kA(U,se,x.current))}}},[]),O=b.useCallback((L,P)=>{const{onLayout:G}=h.current,{layout:U,panelDataArray:k}=m.current;if(L.constraints.collapsible){const Z=k.map(J=>J.constraints),{collapsedSize:$=0,panelSize:ae=0,minSize:ie=0,pivotIndices:le}=QA(k,L,U),se=P??ie;if(Je(ae,$)){const J=w.current.get(L.id),he=J!=null&&J>=se?J:se,Ve=LA(k,L)===k.length-1?ae-he:he-ae,me=ot({delta:Ve,initialLayout:U,panelConstraints:Z,pivotIndices:le,prevLayout:U,trigger:"imperative-api"});Pt(U,me)||(p(me),m.current.layout=me,G&&G(me),kA(k,me,x.current))}}},[]),z=b.useCallback(L=>{const{layout:P,panelDataArray:G}=m.current,{panelSize:U}=QA(G,L,P);return re(U!=null,`Panel size not found for panel "${L.id}"`),U},[]),R=b.useCallback((L,P)=>{const{panelDataArray:G}=m.current,U=LA(G,L);return PB({defaultSize:P,dragState:I,layout:Q,panelData:G,panelIndex:U})},[I,Q]),S=b.useCallback(L=>{const{layout:P,panelDataArray:G}=m.current,{collapsedSize:U=0,collapsible:k,panelSize:Z}=QA(G,L,P);return re(Z!=null,`Panel size not found for panel "${L.id}"`),k===!0&&Je(Z,U)},[]),N=b.useCallback(L=>{const{layout:P,panelDataArray:G}=m.current,{collapsedSize:U=0,collapsible:k,panelSize:Z}=QA(G,L,P);return re(Z!=null,`Panel size not found for panel "${L.id}"`),!k||vA(Z,U)>0},[]),M=b.useCallback(L=>{const{panelDataArray:P}=m.current;P.push(L),P.sort((G,U)=>{const k=G.order,Z=U.order;return k==null&&Z==null?0:k==null?-1:Z==null?1:k-Z}),m.current.panelDataArrayChanged=!0,v()},[v]);hA(()=>{if(m.current.panelDataArrayChanged){m.current.panelDataArrayChanged=!1;const{autoSaveId:L,onLayout:P,storage:G}=h.current,{layout:U,panelDataArray:k}=m.current;let Z=null;if(L){const ae=RB(L,k,G);ae&&(w.current=new Map(Object.entries(ae.expandToSizes)),Z=ae.layout)}Z==null&&(Z=MB({panelDataArray:k}));const $=Jo({layout:Z,panelConstraints:k.map(ae=>ae.constraints)});qo(U,$)||(p($),m.current.layout=$,P&&P($),kA(k,$,x.current))}}),hA(()=>{const L=m.current;return()=>{L.layout=[]}},[]);const T=b.useCallback(L=>{let P=!1;const G=E.current;return G&&window.getComputedStyle(G,null).getPropertyValue("direction")==="rtl"&&(P=!0),function(k){k.preventDefault();const Z=E.current;if(!Z)return()=>null;const{direction:$,dragState:ae,id:ie,keyboardResizeBy:le,onLayout:se}=h.current,{layout:J,panelDataArray:he}=m.current,{initialLayout:xe}=ae??{},Ve=cu(ie,L,Z);let me=OB(k,L,$,ae,le,Z);const qe=$==="horizontal";qe&&P&&(me=-me);const eA=he.map(CA=>CA.constraints),AA=ot({delta:me,initialLayout:xe??J,panelConstraints:eA,pivotIndices:Ve,prevLayout:J,trigger:tu(k)?"keyboard":"mouse-or-touch"}),bt=!Pt(J,AA);(ru(k)||nu(k))&&f.current!=me&&(f.current=me,!bt&&me!==0?qe?zr(L,me<0?au:su):zr(L,me<0?uu:iu):zr(L,0)),bt&&(p(AA),m.current.layout=AA,se&&se(AA),kA(he,AA,x.current))}},[]),H=b.useCallback((L,P)=>{const{onLayout:G}=h.current,{layout:U,panelDataArray:k}=m.current,Z=k.map(J=>J.constraints),{panelSize:$,pivotIndices:ae}=QA(k,L,U);re($!=null,`Panel size not found for panel "${L.id}"`);const le=LA(k,L)===k.length-1?$-P:P-$,se=ot({delta:le,initialLayout:U,panelConstraints:Z,pivotIndices:ae,prevLayout:U,trigger:"imperative-api"});Pt(U,se)||(p(se),m.current.layout=se,G&&G(se),kA(k,se,x.current))},[]),j=b.useCallback((L,P)=>{const{layout:G,panelDataArray:U}=m.current,{collapsedSize:k=0,collapsible:Z}=P,{collapsedSize:$=0,collapsible:ae,maxSize:ie=100,minSize:le=0}=L.constraints,{panelSize:se}=QA(U,L,G);se!=null&&(Z&&ae&&Je(se,k)?Je(k,$)||H(L,$):se<le?H(L,le):se>ie&&H(L,ie))},[H]),y=b.useCallback((L,P)=>{const{direction:G}=h.current,{layout:U}=m.current;if(!E.current)return;const k=cr(L,E.current);re(k,`Drag handle element not found for id "${L}"`);const Z=Bu(G,P);d({dragHandleId:L,dragHandleRect:k.getBoundingClientRect(),initialCursorPosition:Z,initialLayout:U})},[]),F=b.useCallback(()=>{d(null)},[]),W=b.useCallback(L=>{const{panelDataArray:P}=m.current,G=LA(P,L);G>=0&&(P.splice(G,1),delete x.current[L.id],m.current.panelDataArrayChanged=!0,v())},[v]),K=b.useMemo(()=>({collapsePanel:D,direction:r,dragState:I,expandPanel:O,getPanelSize:z,getPanelStyle:R,groupId:B,isPanelCollapsed:S,isPanelExpanded:N,reevaluatePanelConstraints:j,registerPanel:M,registerResizeHandle:T,resizePanel:H,startDragging:y,stopDragging:F,unregisterPanel:W,panelGroupElement:E.current}),[D,I,r,O,z,R,B,S,N,j,M,T,H,y,F,W]),Y={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return b.createElement(ir.Provider,{value:K},b.createElement(C,{...c,children:A,className:t,id:o,ref:E,style:{...Y,...g},[de.group]:"",[de.groupDirection]:r,[de.groupId]:B}))}const fu=b.forwardRef((e,A)=>b.createElement(Qu,{...e,forwardedRef:A}));Qu.displayName="PanelGroup";fu.displayName="forwardRef(PanelGroup)";function LA(e,A){return e.findIndex(t=>t===A||t.id===A.id)}function QA(e,A,t){const r=LA(e,A),o=r===e.length-1?[r-1,r]:[r,r+1],s=t[r];return{...A.constraints,panelSize:s,pivotIndices:o}}function SB({disabled:e,handleId:A,resizeHandler:t,panelGroupElement:r}){b.useEffect(()=>{if(e||t==null||r==null)return;const n=cr(A,r);if(n==null)return;const o=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),t(s);break}case"F6":{s.preventDefault();const u=n.getAttribute(de.groupId);re(u,`No group element found for id "${u}"`);const i=it(u,r),g=lu(u,A,r);re(g!==null,`No resize element found for id "${A}"`);const C=s.shiftKey?g>0?g-1:i.length-1:g+1<i.length?g+1:0;i[C].focus();break}}};return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[r,e,A,t])}function pu({children:e=null,className:A="",disabled:t=!1,hitAreaMargins:r,id:n,onBlur:o,onClick:s,onDragging:u,onFocus:i,onPointerDown:g,onPointerUp:C,style:c={},tabIndex:B=0,tagName:E="div",...I}){var d,Q;const p=b.useRef(null),v=b.useRef({onClick:s,onDragging:u,onPointerDown:g,onPointerUp:C});b.useEffect(()=>{v.current.onClick=s,v.current.onDragging=u,v.current.onPointerDown=g,v.current.onPointerUp=C});const x=b.useContext(ir);if(x===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:w,groupId:f,registerResizeHandle:h,startDragging:m,stopDragging:D,panelGroupElement:O}=x,z=kn(n),[R,S]=b.useState("inactive"),[N,M]=b.useState(!1),[T,H]=b.useState(null),j=b.useRef({state:R});hA(()=>{j.current.state=R}),b.useEffect(()=>{if(t)H(null);else{const K=h(z);H(()=>K)}},[t,z,h]);const y=(d=r==null?void 0:r.coarse)!==null&&d!==void 0?d:15,F=(Q=r==null?void 0:r.fine)!==null&&Q!==void 0?Q:5;b.useEffect(()=>{if(t||T==null)return;const K=p.current;re(K,"Element ref not attached");let Y=!1;return xB(z,K,w,{coarse:y,fine:F},(P,G,U)=>{if(!G){S("inactive");return}switch(P){case"down":{S("drag"),Y=!1,re(U,'Expected event to be defined for "down" action'),m(z,U);const{onDragging:k,onPointerDown:Z}=v.current;k==null||k(!0),Z==null||Z();break}case"move":{const{state:k}=j.current;Y=!0,k!=="drag"&&S("hover"),re(U,'Expected event to be defined for "move" action'),T(U);break}case"up":{S("hover"),D();const{onClick:k,onDragging:Z,onPointerUp:$}=v.current;Z==null||Z(!1),$==null||$(),Y||k==null||k();break}}})},[y,w,t,F,h,z,T,m,D]),SB({disabled:t,handleId:z,resizeHandler:T,panelGroupElement:O});const W={touchAction:"none",userSelect:"none"};return b.createElement(E,{...I,children:e,className:A,id:n,onBlur:()=>{M(!1),o==null||o()},onFocus:()=>{M(!0),i==null||i()},ref:p,role:"separator",style:{...W,...c},tabIndex:B,[de.groupDirection]:w,[de.groupId]:f,[de.resizeHandle]:"",[de.resizeHandleActive]:R==="drag"?"pointer":N?"keyboard":void 0,[de.resizeHandleEnabled]:!t,[de.resizeHandleId]:z,[de.resizeHandleState]:R})}pu.displayName="PanelResizeHandle";function mu({className:e,...A}){return a.jsx(fu,{"data-slot":"resizable-panel-group",className:ee("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...A})}function qt({...e}){return a.jsx(Au,{"data-slot":"resizable-panel",...e})}function hu({withHandle:e,className:A,...t}){return a.jsx(pu,{"data-slot":"resizable-handle",className:ee("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",A),...t,children:e&&a.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:a.jsx(lB,{className:"size-2.5"})})})}const Qt=()=>{const[e,A]=b.useState(!1);return b.useEffect(()=>{const t=()=>{A(window.innerWidth<768)};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),e},HB=({items:e,isDefaultOpen:A=!1,isStandalone:t=!1,resizableContent:r,title:n="Moments",feddbackTitle:o,feedbackHelpfullButtonTitle:s,feedbackNotHelpfullButtonTitle:u,feedbackCommentPlaceholder:i,feedbackSubmitText:g,feedbackThankYouMessage:C,feedbackCancelButtonTitle:c,feedbackSubmitButtonHoverTitle:B,externalConversationId:E,feedBackApiUrl:I,agentId:d})=>{const[Q,p]=b.useState(A),v=b.useRef(null),x=b.useRef(null),w=b.useRef([]),[f,h]=b.useState([]),[m,D]=b.useState(!1),[O,z]=b.useState(null),R=Qt(),S=b.useMemo(()=>[...e].reverse(),[e]);b.useEffect(()=>{w.current=Array(S.length).fill(null)},[S.length]);const N=()=>{if(!x.current)return;const j=x.current.getBoundingClientRect(),y=[];w.current.forEach((F,W)=>{if(!F)return;const K=F.getBoundingClientRect();K.top<j.bottom&&K.bottom>j.top&&y.push(W)}),h(y)};b.useEffect(()=>{if(A&&!m){const j=setTimeout(()=>{N(),D(!0)},200);return()=>clearTimeout(j)}},[m,A]),b.useEffect(()=>{const j=x.current;if(j&&Q){const y=setTimeout(()=>{N()},100);return j.addEventListener("scroll",N),()=>{clearTimeout(y),j.removeEventListener("scroll",N)}}},[Q]),b.useEffect(()=>{const j=()=>{Q&&N()};return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[Q]);const M=j=>{if(O===j||R||f.length<=5||!f.includes(j))return 1;const F=[...f].sort((K,Y)=>K-Y).indexOf(j);return F<5?1:Math.max(0,.6-(F-5)*.1)},T=j=>{switch(j.type){case"task-done":return a.jsx(qs,{id:j.id,title:n,message:j.message,timestamp:j.timestamp,completedTaskCount:j.completedTaskCount??0,taskCount:j.taskCount??0});case"good-job":return a.jsx(Xs,{id:j.id,title:n,message:j.message,timestamp:j.timestamp});case"legal-thread":return a.jsx(Vs,{id:j.id,title:n,message:j.message,timestamp:j.timestamp,onClickAskGenAI:()=>{var y;return(y=j.onClickAskGenAI)==null?void 0:y.call(j)},onClickAskManager:()=>{var y;return(y=j.onClickAskManager)==null?void 0:y.call(j)}});case"unhappy-customer":return a.jsx(Ks,{id:j.id,title:n,message:j.message,timestamp:j.timestamp});case"genai-support":return a.jsx(Zs,{id:j.id,title:n,message:j.message,timestamp:j.timestamp});case"default":return a.jsx(Js,{id:j.id,title:j.title??j.type,message:j.message,timestamp:j.timestamp,icon:j.icon,scenarioId:j.scenarioId,showFeedbackArea:j.showFeedbackArea,feedBackApiUrl:I??"",externalConversationId:E??"",feedbackSubmitButtonHoverTitle:B??"",feedbackCancelButtonTitle:c??"",feddbackTitle:o,feedbackHelpfullButtonTitle:s,feedbackNotHelpfullButtonTitle:u,feedbackCommentPlaceholder:i,feedbackSubmitText:g,feedbackThankYouMessage:C,agentId:d??""})}},H=(j,y)=>a.jsx("div",{ref:F=>{w.current[y]=F},onMouseEnter:()=>z(y),onMouseLeave:()=>z(null),children:j});return a.jsx("div",{ref:v,className:ee("relative",!t&&!r?"max-h-[500px]":"h-full"),children:!t&&r?a.jsxs(mu,{direction:"vertical",className:"h-full md:pb-2",children:[a.jsx(qt,{defaultSize:R?60:35,children:e.length==1?a.jsxs("div",{className:"w-full flex flex-col gap-2 md:px-6 md:py-4 px-3 py-3",children:[a.jsxs("div",{className:"flex flex-row gap-2 items-center justify-start h-10",children:[a.jsx("span",{className:"text-lg font-medium text-foreground",children:n}),a.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),S.map((j,y)=>a.jsx("div",{children:H(T(j),y)},`item-${j.id||y}`))]}):a.jsx("div",{className:"h-full flex flex-col md:px-6 md:py-4 px-3 py-3",children:a.jsxs(rn,{defaultOpen:A,open:Q,onOpenChange:j=>{p(j),j&&setTimeout(N,100)},className:"h-full flex flex-col",children:[a.jsxs(nn,{className:"w-full flex flex-row items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[a.jsx("span",{className:"text-lg font-medium text-foreground",children:n}),a.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),a.jsx("div",{className:"h-10 w-10 p-2 flex items-center justify-center",children:a.jsx(q,{name:"ChevronDown",width:16,height:9,className:"text-foreground"})})]}),!Q&&S.length>0&&a.jsxs("div",{className:"w-full relative flex items-center justify-center rounded-xl md:rounded-3xl",children:[a.jsx("div",{className:"z-[3] w-full shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-xl md:rounded-3xl",ref:j=>{w.current[0]=j},children:T(S[0])}),!R&&e.length>1&&a.jsx("div",{className:"z-[2] absolute -bottom-2 w-[calc(100%-16px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"}),!R&&e.length>2&&a.jsx("div",{className:"z-[1] absolute -bottom-4 w-[calc(100%-32px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"})]}),a.jsx(on,{className:"flex-1 overflow-y-auto flex flex-col gap-2 max-h-[calc(100vh-68px)]",ref:x,children:S.map((j,y)=>a.jsx("div",{style:{opacity:M(y),transition:"opacity 0.2s ease-in-out"},children:H(T(j),y)},`item-${j.id||y}`))})]})})},`panel-1-${R}`),a.jsx(hu,{}),a.jsx(qt,{defaultSize:R?40:65,children:a.jsx("div",{className:"h-full overflow-y-auto no-scrollbar",children:r})},`panel-2-${R}`)]},`panel-group-${R}`):a.jsx(a.Fragment,{children:e.length==1?a.jsxs("div",{className:"w-full flex flex-col gap-2 px-6 py-4",children:[a.jsxs("div",{className:"flex flex-row gap-2 items-center justify-start h-10",children:[a.jsx("span",{className:"text-lg font-medium text-foreground",children:n}),a.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),S.map((j,y)=>a.jsx("div",{children:H(T(j),y)},`item-${j.id||y}`))]}):a.jsx("div",{className:"h-full flex flex-col px-6 py-4",children:a.jsxs(rn,{defaultOpen:A,open:Q,onOpenChange:j=>{p(j),j&&setTimeout(N,100)},className:"h-full flex flex-col",children:[a.jsxs(nn,{className:"w-full flex flex-row items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[a.jsx("span",{className:"text-lg font-medium text-foreground",children:n}),a.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),a.jsx("div",{className:"h-10 w-10 p-2 flex items-center justify-center",children:a.jsx(q,{name:"ChevronDown",width:24,height:24,className:"text-foreground"})})]}),!Q&&S.length>0&&a.jsxs("div",{className:"w-full relative flex items-center justify-center rounded-xl md:rounded-3xl",children:[a.jsx("div",{className:"z-[3] w-full shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-xl md:rounded-3xl",ref:j=>{w.current[0]=j},children:T(S[0])}),!R&&e.length>1&&a.jsx("div",{className:"z-[2] absolute -bottom-2 w-[calc(100%-16px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"}),!R&&e.length>2&&a.jsx("div",{className:"z-[1] absolute -bottom-4 w-[calc(100%-32px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"})]}),a.jsx(on,{className:"flex-1 overflow-y-auto flex flex-col gap-2 max-h-[calc(100vh-68px)]",ref:x,children:S.map((j,y)=>a.jsx("div",{style:{opacity:M(y),transition:"opacity 0.2s ease-in-out"},children:H(T(j),y)},`item-${j.id||y}`))})]})})})})};function YB({className:e,...A}){return a.jsx("textarea",{"data-slot":"textarea",className:ee("border-input text-sm placeholder:text-muted-foreground focus-visible:border-primary focus-visible:border-2 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...A})}const Pn=({value:e,onChange:A,onSendClick:t,placeholder:r="Type something...",...n})=>{const o=b.useRef(null);b.useEffect(()=>{const u=o.current;if(!u)return;u.style.height="0px";const g=24*5,c=Math.min(Math.max(u.scrollHeight,52),g);u.style.height=`${c}px`,u.style.overflowY=u.scrollHeight>g?"auto":"hidden"},[e]);const s=u=>{u.key==="Enter"&&(u.preventDefault(),t())};return a.jsxs("div",{className:"relative w-full",children:[a.jsx(YB,{ref:o,value:e,onChange:A,onKeyDown:s,className:"!py-4 resize-none box-border !pl-4 min-h-[52px] h-auto !pr-[71px] !w-full",placeholder:r,...n}),a.jsx(Ee,{size:"sm",className:"bg-primary absolute top-2 right-2 px-[15.5px] rounded-full",onClick:t,children:a.jsx(q,{name:"Send",width:16,height:16,className:"text-background"})})]})},GB=({isShown:e,personList:A,onClick:t})=>e?a.jsx("div",{className:"flex flex-col items-center justify-center gap-3",children:A.map(r=>a.jsxs("div",{className:`w-fit cursor-pointer h-fit relative${r.isDisable?" opacity-50":""}`,onClick:()=>t(r.id),children:[a.jsx(mA,{type:"secondary",fullName:r.fullName}),r.isActive&&a.jsx("div",{className:"w-2.5 h-2.5 bg-success rounded-full absolute bottom-0 right-0"})]},r.id))}):null,WB=({suggestion:e={items:[],messages:[]},messages:A,input:t,showInput:r=!0,onInputChange:n,onSend:o,onSuggestionClick:s,onSearchDocClick:u,placeholder:i="Type something...",searchDocText:g="Search in Doc",searchDocLoadingText:C="Searching..."})=>{var d;const[c,B]=b.useState(!1),E=()=>{t.trim()&&(o(t.trim()),n(""))},I=async()=>{if(u){B(!0);try{await u()}finally{B(!1)}}};return a.jsxs("div",{className:"flex flex-col h-full w-full bg-background gap-6 rounded-b-xl rounded-t-4xl",children:[a.jsx("div",{className:"flex-1 overflow-y-auto",children:a.jsx("div",{className:"flex flex-col gap-2 ",children:A==null?void 0:A.map(Q=>b.createElement(YA,{...Q,key:Q.id}))})}),e&&a.jsxs("div",{className:"flex flex-col gap-2.5",children:[e.messages&&e.messages.length>0&&((d=e.messages)==null?void 0:d.map(Q=>a.jsx("div",{className:"border-t pt-4",children:a.jsx(YA,{...Q})},Q.id))),e.items&&e.items.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 items-start justify-end",children:e.items.map((Q,p)=>a.jsx(Ee,{className:"rounded-lg text-primary text-sm font-medium px-3 py-1.5 bg-secondary hover:bg-secondary/70",onClick:()=>s==null?void 0:s(Q),children:Q},p))})]}),a.jsxs("div",{className:"border-t p-4 flex flex-col gap-2",children:[a.jsx(Ee,{className:"flex rounded-lg text-primary py-1 px-3 bg-secondary hover:bg-secondary/70 items-center justify-center",onClick:I,disabled:c,children:c?a.jsxs(a.Fragment,{children:[a.jsx(CB,{className:"animate-spin mr-2 h-4 w-4"}),C]}):g}),r&&a.jsx(Pn,{value:t,onChange:Q=>n(Q.target.value),onSendClick:E,placeholder:i})]})]})},UB=({suggestion:e={items:[],messages:[]},messages:A,input:t,showInput:r=!0,onInputChange:n,onSend:o,onSuggestionClick:s,placeholder:u="Type something..."})=>{var C;const i=c=>{s==null||s(c)},g=()=>{t.trim()&&(o(t.trim()),n(""))};return a.jsxs("div",{className:"flex flex-col h-full w-full bg-background gap-6 rounded-b-xl rounded-t-4xl",children:[a.jsx("div",{className:"flex-1 overflow-y-auto",children:a.jsx("div",{className:"flex flex-col gap-2.5",children:A==null?void 0:A.map(c=>b.createElement(YA,{...c,key:c.id}))})}),e&&a.jsxs("div",{className:"flex flex-col gap-2.5 ",children:[e.messages&&e.messages.length>0&&((C=e.messages)==null?void 0:C.map(c=>a.jsx("div",{className:"border-t pt-4",children:a.jsx(YA,{...c})},c.id))),e.items&&e.items.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 items-start justify-end",children:e.items.map((c,B)=>a.jsx(Ee,{className:"rounded-lg whitespace-pre-wrap text-left text-primary text-sm font-medium px-3 py-1.8 bg-secondary hover:bg-secondary/70",onClick:()=>i(c),children:c},B))})]}),r&&a.jsx("div",{className:"border-t p-4",children:a.jsx(Pn,{value:t,onChange:c=>n(c.target.value),onSendClick:g,placeholder:u})})]})},ZB=({title:e,steps:A,isStandalone:t=!1,isOpen:r=!0,onOpenChange:n,onToggleStep:o,scenarioId:s,feddbackTitle:u,feedbackHelpfullButtonTitle:i,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:C,feedbackCancelButtonTitle:c,feedbackSubmitButtonHoverTitle:B,feedbackSubmitText:E,feedbackThankYouMessage:I,agentId:d,feedBackApiUrl:Q,externalConversationId:p})=>{const v=A.filter(Y=>Y.isCompleted).length,x=A.length,w=Qt(),[f,h]=b.useState(new Set),[m,D]=b.useState(1),[O,z]=b.useState(!1),[R,S]=b.useState(""),[N,M]=b.useState(!1),[T,H]=b.useState(!1),j=()=>{z(Y=>!Y)},y=Y=>{D(Y)},F=({selectedFeedback:Y,comment:L})=>{Q&&s&&p&&d&&(M(!0),fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({externalConversationId:p,scenarioId:s,eventTime:new Date().toISOString(),agentId:d,feedback:Y,comment:L})}).then(P=>P.json()).then(P=>{var G;(G=P==null?void 0:P.statusCode)!=null&&G.toString().startsWith("2")&&(P!=null&&P.result)&&(P==null?void 0:P.result)!==""&&(P==null?void 0:P.result)!=="NULL"&&(P==null?void 0:P.result)!=="null"&&(P==null?void 0:P.result)!==null?(H(!0),M(!1)):(H(!1),M(!1))}).catch(P=>{console.log(P),H(!1),M(!1)}).finally(()=>{M(!1)}))},W=()=>{D(null),S(""),z(!1)},K=Y=>{h(L=>{const P=new Set(L);return P.has(Y)?P.delete(Y):P.add(Y),P})};return a.jsx(rn,{open:r,onOpenChange:n,children:a.jsxs("div",{className:"bg-background md:bg-secondary md:px-6 md:py-4 px-3 py-3 rounded-2xl w-full h-full flex flex-col",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-1 md:gap-2",children:[a.jsx("span",{className:"font-medium text-lg text-foreground",children:e}),a.jsxs("span",{className:"text-xs font-medium bg-foreground-08 text-foreground px-2.5 py-0.5 rounded-full",children:[String(v).padStart(2,"0")," /"," ",String(x).padStart(2,"0")]})]}),!t&&a.jsx(nn,{asChild:!0,children:a.jsx("button",{className:"text-foreground transition","aria-label":"Toggle content",children:r?a.jsx(q,{name:"ChevronUp",width:16,height:9,className:"text-foreground"}):a.jsx(q,{name:"ChevronDown",width:16,height:9,className:"text-foreground"})})})]}),!r&&w&&A.length>0&&a.jsx("div",{className:"mt-4",children:a.jsx("div",{className:"bg-secondary md:bg-background p-4 rounded-2xl flex flex-col gap-6 h-full",children:a.jsx("div",{className:"flex flex-col gap-4",children:(()=>{const Y=A[0],L=Y.isCompleted,P=f.has(Y.id),G=Y.phrases&&Y.phrases.length>0;return a.jsxs("div",{className:"flex flex-col",children:[a.jsxs("div",{className:"relative flex gap-3 items-start",children:[a.jsx("button",{onClick:()=>o==null?void 0:o(0),className:ee("w-5 h-5 rounded-full flex items-center justify-center z-10 relative shrink-0",L?"bg-success-hover border-success-hover":"bg-background border-border border-7"),"aria-label":"Toggle step",children:L?a.jsx(q,{name:"Check",className:"text-background"}):a.jsx("div",{className:"w-1 h-1 bg-background rounded-full"})}),a.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[a.jsx("span",{className:ee("text-sm font-normal",L?"line-through text-muted-foreground":"text-foreground"),children:Y.label}),G&&a.jsx("button",{onClick:()=>K(Y.id),className:"ml-2 text-foreground transition-transform duration-200","aria-label":P?"Collapse phrases":"Expand phrases",children:a.jsx(q,{name:P?"ChevronUp":"ChevronDown",width:16,height:16,className:"text-muted-foreground transition-all duration-200"})})]})]}),P&&G&&Y.phrases&&a.jsx("div",{className:"ml-8 mt-2 space-y-1",children:Y.phrases.map((U,k)=>a.jsxs("div",{className:"text-xs text-muted-foreground flex items-start gap-2",children:[a.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full mt-1.5 shrink-0"}),a.jsx("span",{children:U})]},`${Y.id}-phrase-${k}`))})]},Y.id)})()})})}),a.jsx(on,{className:"mt-4 flex-1",children:a.jsxs("div",{className:"bg-secondary md:bg-background p-4 rounded-2xl flex flex-col h-full",children:[a.jsx("div",{className:ee("flex flex-col gap-6 ",t?"h-full":"overflow-y-auto max-h-[400px]"),children:A.map((Y,L)=>{const P=Y.isCompleted,G=f.has(Y.id),U=Y.phrases&&Y.phrases.length>0;return a.jsxs("div",{className:"flex flex-col",children:[a.jsxs("div",{className:ee("relative flex gap-3 items-start","after:absolute after:top-4 after:left-[10px] after:w-px after:bg-border",(L===A.length-1||G)&&"after:hidden"),children:[a.jsx("button",{onClick:()=>o==null?void 0:o(L),className:ee("w-5 h-5 rounded-full flex items-center justify-center z-10 relative shrink-0 ",P?"bg-success-hover border-success-hover":"bg-background border-border border-7"),"aria-label":"Toggle step",children:P?a.jsx(q,{name:"Check",className:"text-background"}):a.jsx("div",{className:"w-1 h-1 bg-background rounded-full"})}),a.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[a.jsx("span",{className:ee("text-sm font-normal",P?"line-through text-muted-foreground":"text-foreground"),children:Y.label}),U&&a.jsx("button",{onClick:()=>K(Y.id),className:"ml-2 text-foreground transition-transform duration-200","aria-label":G?"Collapse phrases":"Expand phrases",children:a.jsx(q,{name:G?"ChevronUp":"ChevronDown",width:16,height:16,className:"text-muted-foreground transition-all duration-200"})})]})]}),G&&U&&Y.phrases&&a.jsx("div",{className:"ml-8 mt-2 space-y-1",children:Y.phrases.map((k,Z)=>a.jsxs("div",{className:"text-xs text-muted-foreground flex items-start gap-2",children:[a.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full mt-1.5 shrink-0"}),a.jsx("span",{children:k})]},`${Y.id}-phrase-${Z}`))})]},Y.id)})}),!T&&a.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"flex-end",marginRight:"10px",marginTop:"10px"},children:a.jsxs("button",{onClick:j,className:"relative group",title:B,style:{cursor:"pointer"},children:[a.jsx(q,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),a.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap",children:B})]})}),O&&!T&&a.jsxs("div",{className:"mt-2 space-y-4",children:[a.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs("button",{onClick:()=>y(1),className:ee("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",m===1?"bg-green-50 dark:bg-green-900/20 border-green-400 dark:border-green-500 text-green-600 dark:text-green-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-green-300 dark:hover:border-green-400"),children:[a.jsx(q,{name:"LikeHand",width:16,height:16,style:{color:m===1?"#22c55e":"#6b7280"}}),a.jsx("span",{className:"text-sm font-medium",children:i})]}),a.jsxs("button",{onClick:()=>y(0),className:ee("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",m===0?"bg-red-50 dark:bg-red-900/20 border-red-400 dark:border-red-500 text-red-600 dark:text-red-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-red-300 dark:hover:border-red-400"),children:[a.jsx(q,{name:"DisLikeHand",width:16,height:16,style:{color:m===0?"#ef4444":"#6b7280"}}),a.jsx("span",{className:"text-sm font-medium",children:g})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:u}),a.jsx("textarea",{value:R,maxLength:500,onChange:Y=>S(Y.target.value),placeholder:C,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 focus:border-transparent placeholder-gray-500 dark:placeholder-gray-400",rows:3}),a.jsxs("div",{className:"flex justify-end",children:[a.jsx(Ee,{onClick:W,size:"sm",className:"bg-transparent dark:bg-transparent border-2 border-red-500 dark:border-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 gap-2 disabled:opacity-50 disabled:cursor-not-allowed mr-4",children:a.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:c})}),a.jsx(Ee,{onClick:()=>F({selectedFeedback:m??0,comment:R}),isLoading:N,disabled:N,size:"sm",className:"bg-primary dark:bg-primary hover:bg-primary/90 dark:hover:bg-primary/90 gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:a.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:E})})]})]})]}),T&&a.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[a.jsx("span",{className:"text-sm font-medium",children:I}),a.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:a.jsx(q,{name:"Check",width:12,height:12,style:{color:"white"}})})]})]})})]})})};function XB(e,A=globalThis==null?void 0:globalThis.document){const t=Ue(e);l.useEffect(()=>{const r=n=>{n.key==="Escape"&&t(n)};return A.addEventListener("keydown",r,{capture:!0}),()=>A.removeEventListener("keydown",r,{capture:!0})},[t,A])}var VB="DismissableLayer",sn="dismissableLayer.update",qB="dismissableLayer.pointerDownOutside",KB="dismissableLayer.focusOutside",$o,vu=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cr=l.forwardRef((e,A)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:o,onInteractOutside:s,onDismiss:u,...i}=e,g=l.useContext(vu),[C,c]=l.useState(null),B=(C==null?void 0:C.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=l.useState({}),I=Ce(A,m=>c(m)),d=Array.from(g.layers),[Q]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),p=d.indexOf(Q),v=C?d.indexOf(C):-1,x=g.layersWithOutsidePointerEventsDisabled.size>0,w=v>=p,f=$B(m=>{const D=m.target,O=[...g.branches].some(z=>z.contains(D));!w||O||(n==null||n(m),s==null||s(m),m.defaultPrevented||u==null||u())},B),h=eE(m=>{const D=m.target;[...g.branches].some(z=>z.contains(D))||(o==null||o(m),s==null||s(m),m.defaultPrevented||u==null||u())},B);return XB(m=>{v===g.layers.size-1&&(r==null||r(m),!m.defaultPrevented&&u&&(m.preventDefault(),u()))},B),l.useEffect(()=>{if(C)return t&&(g.layersWithOutsidePointerEventsDisabled.size===0&&($o=B.body.style.pointerEvents,B.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(C)),g.layers.add(C),ea(),()=>{t&&g.layersWithOutsidePointerEventsDisabled.size===1&&(B.body.style.pointerEvents=$o)}},[C,B,t,g]),l.useEffect(()=>()=>{C&&(g.layers.delete(C),g.layersWithOutsidePointerEventsDisabled.delete(C),ea())},[C,g]),l.useEffect(()=>{const m=()=>E({});return document.addEventListener(sn,m),()=>document.removeEventListener(sn,m)},[]),a.jsx(ne.div,{...i,ref:I,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,h.onFocusCapture),onBlurCapture:_(e.onBlurCapture,h.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,f.onPointerDownCapture)})});Cr.displayName=VB;var JB="DismissableLayerBranch",_B=l.forwardRef((e,A)=>{const t=l.useContext(vu),r=l.useRef(null),n=Ce(A,r);return l.useEffect(()=>{const o=r.current;if(o)return t.branches.add(o),()=>{t.branches.delete(o)}},[t.branches]),a.jsx(ne.div,{...e,ref:n})});_B.displayName=JB;function $B(e,A=globalThis==null?void 0:globalThis.document){const t=Ue(e),r=l.useRef(!1),n=l.useRef(()=>{});return l.useEffect(()=>{const o=u=>{if(u.target&&!r.current){let i=function(){wu(qB,t,g,{discrete:!0})};const g={originalEvent:u};u.pointerType==="touch"?(A.removeEventListener("click",n.current),n.current=i,A.addEventListener("click",n.current,{once:!0})):i()}else A.removeEventListener("click",n.current);r.current=!1},s=window.setTimeout(()=>{A.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),A.removeEventListener("pointerdown",o),A.removeEventListener("click",n.current)}},[A,t]),{onPointerDownCapture:()=>r.current=!0}}function eE(e,A=globalThis==null?void 0:globalThis.document){const t=Ue(e),r=l.useRef(!1);return l.useEffect(()=>{const n=o=>{o.target&&!r.current&&wu(KB,t,{originalEvent:o},{discrete:!1})};return A.addEventListener("focusin",n),()=>A.removeEventListener("focusin",n)},[A,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ea(){const e=new CustomEvent(sn);document.dispatchEvent(e)}function wu(e,A,t,{discrete:r}){const n=t.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});A&&n.addEventListener(e,A,{once:!0}),r?Va(n,o):n.dispatchEvent(o)}var Sr="focusScope.autoFocusOnMount",Hr="focusScope.autoFocusOnUnmount",Aa={bubbles:!1,cancelable:!0},AE="FocusScope",Ln=l.forwardRef((e,A)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:o,...s}=e,[u,i]=l.useState(null),g=Ue(n),C=Ue(o),c=l.useRef(null),B=Ce(A,d=>i(d)),E=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let d=function(x){if(E.paused||!u)return;const w=x.target;u.contains(w)?c.current=w:aA(c.current,{select:!0})},Q=function(x){if(E.paused||!u)return;const w=x.relatedTarget;w!==null&&(u.contains(w)||aA(c.current,{select:!0}))},p=function(x){if(document.activeElement===document.body)for(const f of x)f.removedNodes.length>0&&aA(u)};document.addEventListener("focusin",d),document.addEventListener("focusout",Q);const v=new MutationObserver(p);return u&&v.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",Q),v.disconnect()}}},[r,u,E.paused]),l.useEffect(()=>{if(u){ra.add(E);const d=document.activeElement;if(!u.contains(d)){const p=new CustomEvent(Sr,Aa);u.addEventListener(Sr,g),u.dispatchEvent(p),p.defaultPrevented||(tE(sE(xu(u)),{select:!0}),document.activeElement===d&&aA(u))}return()=>{u.removeEventListener(Sr,g),setTimeout(()=>{const p=new CustomEvent(Hr,Aa);u.addEventListener(Hr,C),u.dispatchEvent(p),p.defaultPrevented||aA(d??document.body,{select:!0}),u.removeEventListener(Hr,C),ra.remove(E)},0)}}},[u,g,C,E]);const I=l.useCallback(d=>{if(!t&&!r||E.paused)return;const Q=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,p=document.activeElement;if(Q&&p){const v=d.currentTarget,[x,w]=rE(v);x&&w?!d.shiftKey&&p===w?(d.preventDefault(),t&&aA(x,{select:!0})):d.shiftKey&&p===x&&(d.preventDefault(),t&&aA(w,{select:!0})):p===v&&d.preventDefault()}},[t,r,E.paused]);return a.jsx(ne.div,{tabIndex:-1,...s,ref:B,onKeyDown:I})});Ln.displayName=AE;function tE(e,{select:A=!1}={}){const t=document.activeElement;for(const r of e)if(aA(r,{select:A}),document.activeElement!==t)return}function rE(e){const A=xu(e),t=ta(A,e),r=ta(A.reverse(),e);return[t,r]}function xu(e){const A=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)A.push(t.currentNode);return A}function ta(e,A){for(const t of e)if(!nE(t,{upTo:A}))return t}function nE(e,{upTo:A}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(A!==void 0&&e===A)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function oE(e){return e instanceof HTMLInputElement&&"select"in e}function aA(e,{select:A=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&oE(e)&&A&&e.select()}}var ra=aE();function aE(){let e=[];return{add(A){const t=e[0];A!==t&&(t==null||t.pause()),e=na(e,A),e.unshift(A)},remove(A){var t;e=na(e,A),(t=e[0])==null||t.resume()}}}function na(e,A){const t=[...e],r=t.indexOf(A);return r!==-1&&t.splice(r,1),t}function sE(e){return e.filter(A=>A.tagName!=="A")}var uE="Portal",Br=l.forwardRef((e,A)=>{var u;const{container:t,...r}=e,[n,o]=l.useState(!1);Me(()=>o(!0),[]);const s=t||n&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return s?Fa.createPortal(a.jsx(ne.div,{...r,ref:A}),s):null});Br.displayName=uE;var Yr=0;function bu(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oa()),document.body.insertAdjacentElement("beforeend",e[1]??oa()),Yr++,()=>{Yr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(A=>A.remove()),Yr--}},[])}function oa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var He=function(){return He=Object.assign||function(A){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(A[o]=t[o])}return A},He.apply(this,arguments)};function Du(e,A){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&A.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)A.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(t[r[n]]=e[r[n]]);return t}function iE(e,A,t){if(t||arguments.length===2)for(var r=0,n=A.length,o;r<n;r++)(o||!(r in A))&&(o||(o=Array.prototype.slice.call(A,0,r)),o[r]=A[r]);return e.concat(o||Array.prototype.slice.call(A))}var Wt="right-scroll-bar-position",Ut="width-before-scroll-bar",gE="with-scroll-bars-hidden",lE="--removed-body-scroll-bar-size";function Gr(e,A){return typeof e=="function"?e(A):e&&(e.current=A),e}function cE(e,A){var t=b.useState(function(){return{value:e,callback:A,facade:{get current(){return t.value},set current(r){var n=t.value;n!==r&&(t.value=r,t.callback(r,n))}}}})[0];return t.callback=A,t.facade}var CE=typeof window<"u"?l.useLayoutEffect:l.useEffect,aa=new WeakMap;function BE(e,A){var t=cE(null,function(r){return e.forEach(function(n){return Gr(n,r)})});return CE(function(){var r=aa.get(t);if(r){var n=new Set(r),o=new Set(e),s=t.current;n.forEach(function(u){o.has(u)||Gr(u,null)}),o.forEach(function(u){n.has(u)||Gr(u,s)})}aa.set(t,e)},[e]),t}function EE(e){return e}function dE(e,A){A===void 0&&(A=EE);var t=[],r=!1,n={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(o){var s=A(o,r);return t.push(s),function(){t=t.filter(function(u){return u!==s})}},assignSyncMedium:function(o){for(r=!0;t.length;){var s=t;t=[],s.forEach(o)}t={push:function(u){return o(u)},filter:function(){return t}}},assignMedium:function(o){r=!0;var s=[];if(t.length){var u=t;t=[],u.forEach(o),s=t}var i=function(){var C=s;s=[],C.forEach(o)},g=function(){return Promise.resolve().then(i)};g(),t={push:function(C){s.push(C),g()},filter:function(C){return s=s.filter(C),t}}}};return n}function IE(e){e===void 0&&(e={});var A=dE(null);return A.options=He({async:!0,ssr:!1},e),A}var yu=function(e){var A=e.sideCar,t=Du(e,["sideCar"]);if(!A)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=A.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,He({},t))};yu.isSideCarExport=!0;function QE(e,A){return e.useMedium(A),yu}var Fu=IE(),Wr=function(){},Er=l.forwardRef(function(e,A){var t=l.useRef(null),r=l.useState({onScrollCapture:Wr,onWheelCapture:Wr,onTouchMoveCapture:Wr}),n=r[0],o=r[1],s=e.forwardProps,u=e.children,i=e.className,g=e.removeScrollBar,C=e.enabled,c=e.shards,B=e.sideCar,E=e.noRelative,I=e.noIsolation,d=e.inert,Q=e.allowPinchZoom,p=e.as,v=p===void 0?"div":p,x=e.gapMode,w=Du(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),f=B,h=BE([t,A]),m=He(He({},w),n);return l.createElement(l.Fragment,null,C&&l.createElement(f,{sideCar:Fu,removeScrollBar:g,shards:c,noRelative:E,noIsolation:I,inert:d,setCallbacks:o,allowPinchZoom:!!Q,lockRef:t,gapMode:x}),s?l.cloneElement(l.Children.only(u),He(He({},m),{ref:h})):l.createElement(v,He({},m,{className:i,ref:h}),u))});Er.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Er.classNames={fullWidth:Ut,zeroRight:Wt};var fE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var A=fE();return A&&e.setAttribute("nonce",A),e}function mE(e,A){e.styleSheet?e.styleSheet.cssText=A:e.appendChild(document.createTextNode(A))}function hE(e){var A=document.head||document.getElementsByTagName("head")[0];A.appendChild(e)}var vE=function(){var e=0,A=null;return{add:function(t){e==0&&(A=pE())&&(mE(A,t),hE(A)),e++},remove:function(){e--,!e&&A&&(A.parentNode&&A.parentNode.removeChild(A),A=null)}}},wE=function(){var e=vE();return function(A,t){l.useEffect(function(){return e.add(A),function(){e.remove()}},[A&&t])}},Nu=function(){var e=wE(),A=function(t){var r=t.styles,n=t.dynamic;return e(r,n),null};return A},xE={left:0,top:0,right:0,gap:0},Ur=function(e){return parseInt(e||"",10)||0},bE=function(e){var A=window.getComputedStyle(document.body),t=A[e==="padding"?"paddingLeft":"marginLeft"],r=A[e==="padding"?"paddingTop":"marginTop"],n=A[e==="padding"?"paddingRight":"marginRight"];return[Ur(t),Ur(r),Ur(n)]},DE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xE;var A=bE(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:A[0],top:A[1],right:A[2],gap:Math.max(0,r-t+A[2]-A[0])}},yE=Nu(),TA="data-scroll-locked",FE=function(e,A,t,r){var n=e.left,o=e.top,s=e.right,u=e.gap;return t===void 0&&(t="margin"),`
51
+ */const cB=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],CB=$s("LoaderCircle",cB),ir=b.createContext(null);ir.displayName="PanelGroupContext";const de={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},jn=10,hA=b.useLayoutEffect,Uo=l.useId,BB=typeof Uo=="function"?Uo:()=>null;let EB=0;function kn(e=null){const A=BB(),t=b.useRef(e||A||null);return t.current===null&&(t.current=""+EB++),e??t.current}function eu({children:e,className:A="",collapsedSize:t,collapsible:r,defaultSize:n,forwardedRef:o,id:s,maxSize:u,minSize:i,onCollapse:g,onExpand:C,onResize:c,order:B,style:E,tagName:I="div",...d}){const Q=b.useContext(ir);if(Q===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:p,expandPanel:v,getPanelSize:x,getPanelStyle:w,groupId:f,isPanelCollapsed:h,reevaluatePanelConstraints:m,registerPanel:D,resizePanel:O,unregisterPanel:z}=Q,R=kn(s),S=b.useRef({callbacks:{onCollapse:g,onExpand:C,onResize:c},constraints:{collapsedSize:t,collapsible:r,defaultSize:n,maxSize:u,minSize:i},id:R,idIsFromProps:s!==void 0,order:B});b.useRef({didLogMissingDefaultSizeWarning:!1}),hA(()=>{const{callbacks:M,constraints:T}=S.current,H={...T};S.current.id=R,S.current.idIsFromProps=s!==void 0,S.current.order=B,M.onCollapse=g,M.onExpand=C,M.onResize=c,T.collapsedSize=t,T.collapsible=r,T.defaultSize=n,T.maxSize=u,T.minSize=i,(H.collapsedSize!==T.collapsedSize||H.collapsible!==T.collapsible||H.maxSize!==T.maxSize||H.minSize!==T.minSize)&&m(S.current,H)}),hA(()=>{const M=S.current;return D(M),()=>{z(M)}},[B,R,D,z]),b.useImperativeHandle(o,()=>({collapse:()=>{p(S.current)},expand:M=>{v(S.current,M)},getId(){return R},getSize(){return x(S.current)},isCollapsed(){return h(S.current)},isExpanded(){return!h(S.current)},resize:M=>{O(S.current,M)}}),[p,v,x,h,R,O]);const N=w(S.current,n);return b.createElement(I,{...d,children:e,className:A,id:R,style:{...N,...E},[de.groupId]:f,[de.panel]:"",[de.panelCollapsible]:r||void 0,[de.panelId]:R,[de.panelSize]:parseFloat(""+N.flexGrow).toFixed(1)})}const Au=b.forwardRef((e,A)=>b.createElement(eu,{...e,forwardedRef:A}));eu.displayName="Panel";Au.displayName="forwardRef(Panel)";let an=null,Gt=-1,sA=null;function dB(e,A){if(A){const t=(A&au)!==0,r=(A&su)!==0,n=(A&uu)!==0,o=(A&iu)!==0;if(t)return n?"se-resize":o?"ne-resize":"e-resize";if(r)return n?"sw-resize":o?"nw-resize":"w-resize";if(n)return"s-resize";if(o)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function IB(){sA!==null&&(document.head.removeChild(sA),an=null,sA=null,Gt=-1)}function Pr(e,A){var t,r;const n=dB(e,A);if(an!==n){if(an=n,sA===null&&(sA=document.createElement("style"),document.head.appendChild(sA)),Gt>=0){var o;(o=sA.sheet)===null||o===void 0||o.removeRule(Gt)}Gt=(t=(r=sA.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${n} !important;}`))!==null&&t!==void 0?t:-1}}function tu(e){return e.type==="keydown"}function ru(e){return e.type.startsWith("pointer")}function nu(e){return e.type.startsWith("mouse")}function gr(e){if(ru(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(nu(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function QB(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function fB(e,A,t){return e.x<A.x+A.width&&e.x+e.width>A.x&&e.y<A.y+A.height&&e.y+e.height>A.y}function pB(e,A){if(e===A)throw new Error("Cannot compare node with itself");const t={a:Vo(e),b:Vo(A)};let r;for(;t.a.at(-1)===t.b.at(-1);)e=t.a.pop(),A=t.b.pop(),r=e;re(r,"Stacking order can only be calculated for elements with a common ancestor");const n={a:Xo(Zo(t.a)),b:Xo(Zo(t.b))};if(n.a===n.b){const o=r.childNodes,s={a:t.a.at(-1),b:t.b.at(-1)};let u=o.length;for(;u--;){const i=o[u];if(i===s.a)return 1;if(i===s.b)return-1}}return Math.sign(n.a-n.b)}const mB=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function hB(e){var A;const t=getComputedStyle((A=ou(e))!==null&&A!==void 0?A:e).display;return t==="flex"||t==="inline-flex"}function vB(e){const A=getComputedStyle(e);return!!(A.position==="fixed"||A.zIndex!=="auto"&&(A.position!=="static"||hB(e))||+A.opacity<1||"transform"in A&&A.transform!=="none"||"webkitTransform"in A&&A.webkitTransform!=="none"||"mixBlendMode"in A&&A.mixBlendMode!=="normal"||"filter"in A&&A.filter!=="none"||"webkitFilter"in A&&A.webkitFilter!=="none"||"isolation"in A&&A.isolation==="isolate"||mB.test(A.willChange)||A.webkitOverflowScrolling==="touch")}function Zo(e){let A=e.length;for(;A--;){const t=e[A];if(re(t,"Missing node"),vB(t))return t}return null}function Xo(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Vo(e){const A=[];for(;e;)A.push(e),e=ou(e);return A}function ou(e){const{parentNode:A}=e;return A&&A instanceof ShadowRoot?A.host:A}const au=1,su=2,uu=4,iu=8,wB=QB()==="coarse";let Le=[],zA=!1,pA=new Map,lr=new Map;const ut=new Set;function xB(e,A,t,r,n){var o;const{ownerDocument:s}=A,u={direction:t,element:A,hitAreaMargins:r,setResizeHandlerState:n},i=(o=pA.get(s))!==null&&o!==void 0?o:0;return pA.set(s,i+1),ut.add(u),Xt(),function(){var C;lr.delete(e),ut.delete(u);const c=(C=pA.get(s))!==null&&C!==void 0?C:1;if(pA.set(s,c-1),Xt(),c===1&&pA.delete(s),Le.includes(u)){const B=Le.indexOf(u);B>=0&&Le.splice(B,1),Mn(),n("up",!0,null)}}}function bB(e){const{target:A}=e,{x:t,y:r}=gr(e);zA=!0,On({target:A,x:t,y:r}),Xt(),Le.length>0&&(Vt("down",e),e.preventDefault(),gu(A)||e.stopImmediatePropagation())}function Lr(e){const{x:A,y:t}=gr(e);if(zA&&e.buttons===0&&(zA=!1,Vt("up",e)),!zA){const{target:r}=e;On({target:r,x:A,y:t})}Vt("move",e),Mn(),Le.length>0&&e.preventDefault()}function Rr(e){const{target:A}=e,{x:t,y:r}=gr(e);lr.clear(),zA=!1,Le.length>0&&(e.preventDefault(),gu(A)||e.stopImmediatePropagation()),Vt("up",e),On({target:A,x:t,y:r}),Mn(),Xt()}function gu(e){let A=e;for(;A;){if(A.hasAttribute(de.resizeHandle))return!0;A=A.parentElement}return!1}function On({target:e,x:A,y:t}){Le.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),ut.forEach(n=>{const{element:o,hitAreaMargins:s}=n,u=o.getBoundingClientRect(),{bottom:i,left:g,right:C,top:c}=u,B=wB?s.coarse:s.fine;if(A>=g-B&&A<=C+B&&t>=c-B&&t<=i+B){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&pB(r,o)>0){let I=r,d=!1;for(;I&&!I.contains(o);){if(fB(I.getBoundingClientRect(),u)){d=!0;break}I=I.parentElement}if(d)return}Le.push(n)}})}function zr(e,A){lr.set(e,A)}function Mn(){let e=!1,A=!1;Le.forEach(r=>{const{direction:n}=r;n==="horizontal"?e=!0:A=!0});let t=0;lr.forEach(r=>{t|=r}),e&&A?Pr("intersection",t):e?Pr("horizontal",t):A?Pr("vertical",t):IB()}let Tr=new AbortController;function Xt(){Tr.abort(),Tr=new AbortController;const e={capture:!0,signal:Tr.signal};ut.size&&(zA?(Le.length>0&&pA.forEach((A,t)=>{const{body:r}=t;A>0&&(r.addEventListener("contextmenu",Rr,e),r.addEventListener("pointerleave",Lr,e),r.addEventListener("pointermove",Lr,e))}),window.addEventListener("pointerup",Rr,e),window.addEventListener("pointercancel",Rr,e)):pA.forEach((A,t)=>{const{body:r}=t;A>0&&(r.addEventListener("pointerdown",bB,e),r.addEventListener("pointermove",Lr,e))}))}function Vt(e,A){ut.forEach(t=>{const{setResizeHandlerState:r}=t,n=Le.includes(t);r(e,n,A)})}function DB(){const[e,A]=b.useState(0);return b.useCallback(()=>A(t=>t+1),[])}function re(e,A){if(!e)throw console.error(A),Error(A)}function vA(e,A,t=jn){return e.toFixed(t)===A.toFixed(t)?0:e>A?1:-1}function Je(e,A,t=jn){return vA(e,A,t)===0}function De(e,A,t){return vA(e,A,t)===0}function yB(e,A,t){if(e.length!==A.length)return!1;for(let r=0;r<e.length;r++){const n=e[r],o=A[r];if(!De(n,o,t))return!1}return!0}function RA({panelConstraints:e,panelIndex:A,size:t}){const r=e[A];re(r!=null,`Panel constraints not found for index ${A}`);let{collapsedSize:n=0,collapsible:o,maxSize:s=100,minSize:u=0}=r;if(vA(t,u)<0)if(o){const i=(n+u)/2;vA(t,i)<0?t=n:t=u}else t=u;return t=Math.min(s,t),t=parseFloat(t.toFixed(jn)),t}function ot({delta:e,initialLayout:A,panelConstraints:t,pivotIndices:r,prevLayout:n,trigger:o}){if(De(e,0))return A;const s=[...A],[u,i]=r;re(u!=null,"Invalid first pivot index"),re(i!=null,"Invalid second pivot index");let g=0;if(o==="keyboard"){{const c=e<0?i:u,B=t[c];re(B,`Panel constraints not found for index ${c}`);const{collapsedSize:E=0,collapsible:I,minSize:d=0}=B;if(I){const Q=A[c];if(re(Q!=null,`Previous layout not found for panel index ${c}`),De(Q,E)){const p=d-Q;vA(p,Math.abs(e))>0&&(e=e<0?0-p:p)}}}{const c=e<0?u:i,B=t[c];re(B,`No panel constraints found for index ${c}`);const{collapsedSize:E=0,collapsible:I,minSize:d=0}=B;if(I){const Q=A[c];if(re(Q!=null,`Previous layout not found for panel index ${c}`),De(Q,d)){const p=Q-E;vA(p,Math.abs(e))>0&&(e=e<0?0-p:p)}}}}{const c=e<0?1:-1;let B=e<0?i:u,E=0;for(;;){const d=A[B];re(d!=null,`Previous layout not found for panel index ${B}`);const p=RA({panelConstraints:t,panelIndex:B,size:100})-d;if(E+=p,B+=c,B<0||B>=t.length)break}const I=Math.min(Math.abs(e),Math.abs(E));e=e<0?0-I:I}{let B=e<0?u:i;for(;B>=0&&B<t.length;){const E=Math.abs(e)-Math.abs(g),I=A[B];re(I!=null,`Previous layout not found for panel index ${B}`);const d=I-E,Q=RA({panelConstraints:t,panelIndex:B,size:d});if(!De(I,Q)&&(g+=I-Q,s[B]=Q,g.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?B--:B++}}if(yB(n,s))return n;{const c=e<0?i:u,B=A[c];re(B!=null,`Previous layout not found for panel index ${c}`);const E=B+g,I=RA({panelConstraints:t,panelIndex:c,size:E});if(s[c]=I,!De(I,E)){let d=E-I,p=e<0?i:u;for(;p>=0&&p<t.length;){const v=s[p];re(v!=null,`Previous layout not found for panel index ${p}`);const x=v+d,w=RA({panelConstraints:t,panelIndex:p,size:x});if(De(v,w)||(d-=w-v,s[p]=w),De(d,0))break;e>0?p--:p++}}}const C=s.reduce((c,B)=>B+c,0);return De(C,100)?s:n}function FB({layout:e,panelsArray:A,pivotIndices:t}){let r=0,n=100,o=0,s=0;const u=t[0];re(u!=null,"No pivot index found"),A.forEach((c,B)=>{const{constraints:E}=c,{maxSize:I=100,minSize:d=0}=E;B===u?(r=d,n=I):(o+=d,s+=I)});const i=Math.min(n,100-o),g=Math.max(r,100-s),C=e[u];return{valueMax:i,valueMin:g,valueNow:C}}function it(e,A=document){return Array.from(A.querySelectorAll(`[${de.resizeHandleId}][data-panel-group-id="${e}"]`))}function lu(e,A,t=document){const n=it(e,t).findIndex(o=>o.getAttribute(de.resizeHandleId)===A);return n??null}function cu(e,A,t){const r=lu(e,A,t);return r!=null?[r,r+1]:[-1,-1]}function Cu(e,A=document){var t;if(A instanceof HTMLElement&&(A==null||(t=A.dataset)===null||t===void 0?void 0:t.panelGroupId)==e)return A;const r=A.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function cr(e,A=document){const t=A.querySelector(`[${de.resizeHandleId}="${e}"]`);return t||null}function NB(e,A,t,r=document){var n,o,s,u;const i=cr(A,r),g=it(e,r),C=i?g.indexOf(i):-1,c=(n=(o=t[C])===null||o===void 0?void 0:o.id)!==null&&n!==void 0?n:null,B=(s=(u=t[C+1])===null||u===void 0?void 0:u.id)!==null&&s!==void 0?s:null;return[c,B]}function jB({committedValuesRef:e,eagerValuesRef:A,groupId:t,layout:r,panelDataArray:n,panelGroupElement:o,setLayout:s}){b.useRef({didWarnAboutMissingResizeHandle:!1}),hA(()=>{if(!o)return;const u=it(t,o);for(let i=0;i<n.length-1;i++){const{valueMax:g,valueMin:C,valueNow:c}=FB({layout:r,panelsArray:n,pivotIndices:[i,i+1]}),B=u[i];if(B!=null){const E=n[i];re(E,`No panel data found for index "${i}"`),B.setAttribute("aria-controls",E.id),B.setAttribute("aria-valuemax",""+Math.round(g)),B.setAttribute("aria-valuemin",""+Math.round(C)),B.setAttribute("aria-valuenow",c!=null?""+Math.round(c):"")}}return()=>{u.forEach((i,g)=>{i.removeAttribute("aria-controls"),i.removeAttribute("aria-valuemax"),i.removeAttribute("aria-valuemin"),i.removeAttribute("aria-valuenow")})}},[t,r,n,o]),b.useEffect(()=>{if(!o)return;const u=A.current;re(u,"Eager values not found");const{panelDataArray:i}=u,g=Cu(t,o);re(g!=null,`No group found for id "${t}"`);const C=it(t,o);re(C,`No resize handles found for group id "${t}"`);const c=C.map(B=>{const E=B.getAttribute(de.resizeHandleId);re(E,"Resize handle element has no handle id attribute");const[I,d]=NB(t,E,i,o);if(I==null||d==null)return()=>{};const Q=p=>{if(!p.defaultPrevented)switch(p.key){case"Enter":{p.preventDefault();const v=i.findIndex(x=>x.id===I);if(v>=0){const x=i[v];re(x,`No panel data found for index ${v}`);const w=r[v],{collapsedSize:f=0,collapsible:h,minSize:m=0}=x.constraints;if(w!=null&&h){const D=ot({delta:De(w,f)?m-f:f-w,initialLayout:r,panelConstraints:i.map(O=>O.constraints),pivotIndices:cu(t,E,o),prevLayout:r,trigger:"keyboard"});r!==D&&s(D)}}break}}};return B.addEventListener("keydown",Q),()=>{B.removeEventListener("keydown",Q)}});return()=>{c.forEach(B=>B())}},[o,e,A,t,r,n,s])}function qo(e,A){if(e.length!==A.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==A[t])return!1;return!0}function Bu(e,A){const t=e==="horizontal",{x:r,y:n}=gr(A);return t?r:n}function kB(e,A,t,r,n){const o=t==="horizontal",s=cr(A,n);re(s,`No resize handle element found for id "${A}"`);const u=s.getAttribute(de.groupId);re(u,"Resize handle element has no group id attribute");let{initialCursorPosition:i}=r;const g=Bu(t,e),C=Cu(u,n);re(C,`No group element found for id "${u}"`);const c=C.getBoundingClientRect(),B=o?c.width:c.height;return(g-i)/B*100}function OB(e,A,t,r,n,o){if(tu(e)){const s=t==="horizontal";let u=0;e.shiftKey?u=100:n!=null?u=n:u=10;let i=0;switch(e.key){case"ArrowDown":i=s?0:u;break;case"ArrowLeft":i=s?-u:0;break;case"ArrowRight":i=s?u:0;break;case"ArrowUp":i=s?0:-u;break;case"End":i=100;break;case"Home":i=-100;break}return i}else return r==null?0:kB(e,A,t,r,o)}function MB({panelDataArray:e}){const A=Array(e.length),t=e.map(o=>o.constraints);let r=0,n=100;for(let o=0;o<e.length;o++){const s=t[o];re(s,`Panel constraints not found for index ${o}`);const{defaultSize:u}=s;u!=null&&(r++,A[o]=u,n-=u)}for(let o=0;o<e.length;o++){const s=t[o];re(s,`Panel constraints not found for index ${o}`);const{defaultSize:u}=s;if(u!=null)continue;const i=e.length-r,g=n/i;r++,A[o]=g,n-=g}return A}function kA(e,A,t){A.forEach((r,n)=>{const o=e[n];re(o,`Panel data not found for index ${n}`);const{callbacks:s,constraints:u,id:i}=o,{collapsedSize:g=0,collapsible:C}=u,c=t[i];if(c==null||r!==c){t[i]=r;const{onCollapse:B,onExpand:E,onResize:I}=s;I&&I(r,c),C&&(B||E)&&(E&&(c==null||Je(c,g))&&!Je(r,g)&&E(),B&&(c==null||!Je(c,g))&&Je(r,g)&&B())}})}function Pt(e,A){if(e.length!==A.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!=A[t])return!1;return!0}function PB({defaultSize:e,dragState:A,layout:t,panelData:r,panelIndex:n,precision:o=3}){const s=t[n];let u;return s==null?u=e!=null?e.toPrecision(o):"1":r.length===1?u="1":u=s.toPrecision(o),{flexBasis:0,flexGrow:u,flexShrink:1,overflow:"hidden",pointerEvents:A!==null?"none":void 0}}function LB(e,A=10){let t=null;return(...n)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{e(...n)},A)}}function Ko(e){try{if(typeof localStorage<"u")e.getItem=A=>localStorage.getItem(A),e.setItem=(A,t)=>{localStorage.setItem(A,t)};else throw new Error("localStorage not supported in this environment")}catch(A){console.error(A),e.getItem=()=>null,e.setItem=()=>{}}}function Eu(e){return`react-resizable-panels:${e}`}function du(e){return e.map(A=>{const{constraints:t,id:r,idIsFromProps:n,order:o}=A;return n?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((A,t)=>A.localeCompare(t)).join(",")}function Iu(e,A){try{const t=Eu(e),r=A.getItem(t);if(r){const n=JSON.parse(r);if(typeof n=="object"&&n!=null)return n}}catch{}return null}function RB(e,A,t){var r,n;const o=(r=Iu(e,t))!==null&&r!==void 0?r:{},s=du(A);return(n=o[s])!==null&&n!==void 0?n:null}function zB(e,A,t,r,n){var o;const s=Eu(e),u=du(A),i=(o=Iu(e,n))!==null&&o!==void 0?o:{};i[u]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{n.setItem(s,JSON.stringify(i))}catch(g){console.error(g)}}function Jo({layout:e,panelConstraints:A}){const t=[...e],r=t.reduce((o,s)=>o+s,0);if(t.length!==A.length)throw Error(`Invalid ${A.length} panel layout: ${t.map(o=>`${o}%`).join(", ")}`);if(!De(r,100)&&t.length>0)for(let o=0;o<A.length;o++){const s=t[o];re(s!=null,`No layout data found for index ${o}`);const u=100/r*s;t[o]=u}let n=0;for(let o=0;o<A.length;o++){const s=t[o];re(s!=null,`No layout data found for index ${o}`);const u=RA({panelConstraints:A,panelIndex:o,size:s});s!=u&&(n+=s-u,t[o]=u)}if(!De(n,0))for(let o=0;o<A.length;o++){const s=t[o];re(s!=null,`No layout data found for index ${o}`);const u=s+n,i=RA({panelConstraints:A,panelIndex:o,size:u});if(s!==i&&(n-=i-s,t[o]=i,De(n,0)))break}return t}const TB=100,at={getItem:e=>(Ko(at),at.getItem(e)),setItem:(e,A)=>{Ko(at),at.setItem(e,A)}},_o={};function Qu({autoSaveId:e=null,children:A,className:t="",direction:r,forwardedRef:n,id:o=null,onLayout:s=null,keyboardResizeBy:u=null,storage:i=at,style:g,tagName:C="div",...c}){const B=kn(o),E=b.useRef(null),[I,d]=b.useState(null),[Q,p]=b.useState([]),v=DB(),x=b.useRef({}),w=b.useRef(new Map),f=b.useRef(0),h=b.useRef({autoSaveId:e,direction:r,dragState:I,id:B,keyboardResizeBy:u,onLayout:s,storage:i}),m=b.useRef({layout:Q,panelDataArray:[],panelDataArrayChanged:!1});b.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),b.useImperativeHandle(n,()=>({getId:()=>h.current.id,getLayout:()=>{const{layout:L}=m.current;return L},setLayout:L=>{const{onLayout:P}=h.current,{layout:G,panelDataArray:U}=m.current,k=Jo({layout:L,panelConstraints:U.map(Z=>Z.constraints)});qo(G,k)||(p(k),m.current.layout=k,P&&P(k),kA(U,k,x.current))}}),[]),hA(()=>{h.current.autoSaveId=e,h.current.direction=r,h.current.dragState=I,h.current.id=B,h.current.onLayout=s,h.current.storage=i}),jB({committedValuesRef:h,eagerValuesRef:m,groupId:B,layout:Q,panelDataArray:m.current.panelDataArray,setLayout:p,panelGroupElement:E.current}),b.useEffect(()=>{const{panelDataArray:L}=m.current;if(e){if(Q.length===0||Q.length!==L.length)return;let P=_o[e];P==null&&(P=LB(zB,TB),_o[e]=P);const G=[...L],U=new Map(w.current);P(e,G,U,Q,i)}},[e,Q,i]),b.useEffect(()=>{});const D=b.useCallback(L=>{const{onLayout:P}=h.current,{layout:G,panelDataArray:U}=m.current;if(L.constraints.collapsible){const k=U.map(ie=>ie.constraints),{collapsedSize:Z=0,panelSize:$,pivotIndices:ae}=QA(U,L,G);if(re($!=null,`Panel size not found for panel "${L.id}"`),!Je($,Z)){w.current.set(L.id,$);const le=LA(U,L)===U.length-1?$-Z:Z-$,se=ot({delta:le,initialLayout:G,panelConstraints:k,pivotIndices:ae,prevLayout:G,trigger:"imperative-api"});Pt(G,se)||(p(se),m.current.layout=se,P&&P(se),kA(U,se,x.current))}}},[]),O=b.useCallback((L,P)=>{const{onLayout:G}=h.current,{layout:U,panelDataArray:k}=m.current;if(L.constraints.collapsible){const Z=k.map(J=>J.constraints),{collapsedSize:$=0,panelSize:ae=0,minSize:ie=0,pivotIndices:le}=QA(k,L,U),se=P??ie;if(Je(ae,$)){const J=w.current.get(L.id),he=J!=null&&J>=se?J:se,Ve=LA(k,L)===k.length-1?ae-he:he-ae,me=ot({delta:Ve,initialLayout:U,panelConstraints:Z,pivotIndices:le,prevLayout:U,trigger:"imperative-api"});Pt(U,me)||(p(me),m.current.layout=me,G&&G(me),kA(k,me,x.current))}}},[]),z=b.useCallback(L=>{const{layout:P,panelDataArray:G}=m.current,{panelSize:U}=QA(G,L,P);return re(U!=null,`Panel size not found for panel "${L.id}"`),U},[]),R=b.useCallback((L,P)=>{const{panelDataArray:G}=m.current,U=LA(G,L);return PB({defaultSize:P,dragState:I,layout:Q,panelData:G,panelIndex:U})},[I,Q]),S=b.useCallback(L=>{const{layout:P,panelDataArray:G}=m.current,{collapsedSize:U=0,collapsible:k,panelSize:Z}=QA(G,L,P);return re(Z!=null,`Panel size not found for panel "${L.id}"`),k===!0&&Je(Z,U)},[]),N=b.useCallback(L=>{const{layout:P,panelDataArray:G}=m.current,{collapsedSize:U=0,collapsible:k,panelSize:Z}=QA(G,L,P);return re(Z!=null,`Panel size not found for panel "${L.id}"`),!k||vA(Z,U)>0},[]),M=b.useCallback(L=>{const{panelDataArray:P}=m.current;P.push(L),P.sort((G,U)=>{const k=G.order,Z=U.order;return k==null&&Z==null?0:k==null?-1:Z==null?1:k-Z}),m.current.panelDataArrayChanged=!0,v()},[v]);hA(()=>{if(m.current.panelDataArrayChanged){m.current.panelDataArrayChanged=!1;const{autoSaveId:L,onLayout:P,storage:G}=h.current,{layout:U,panelDataArray:k}=m.current;let Z=null;if(L){const ae=RB(L,k,G);ae&&(w.current=new Map(Object.entries(ae.expandToSizes)),Z=ae.layout)}Z==null&&(Z=MB({panelDataArray:k}));const $=Jo({layout:Z,panelConstraints:k.map(ae=>ae.constraints)});qo(U,$)||(p($),m.current.layout=$,P&&P($),kA(k,$,x.current))}}),hA(()=>{const L=m.current;return()=>{L.layout=[]}},[]);const T=b.useCallback(L=>{let P=!1;const G=E.current;return G&&window.getComputedStyle(G,null).getPropertyValue("direction")==="rtl"&&(P=!0),function(k){k.preventDefault();const Z=E.current;if(!Z)return()=>null;const{direction:$,dragState:ae,id:ie,keyboardResizeBy:le,onLayout:se}=h.current,{layout:J,panelDataArray:he}=m.current,{initialLayout:xe}=ae??{},Ve=cu(ie,L,Z);let me=OB(k,L,$,ae,le,Z);const qe=$==="horizontal";qe&&P&&(me=-me);const eA=he.map(CA=>CA.constraints),AA=ot({delta:me,initialLayout:xe??J,panelConstraints:eA,pivotIndices:Ve,prevLayout:J,trigger:tu(k)?"keyboard":"mouse-or-touch"}),bt=!Pt(J,AA);(ru(k)||nu(k))&&f.current!=me&&(f.current=me,!bt&&me!==0?qe?zr(L,me<0?au:su):zr(L,me<0?uu:iu):zr(L,0)),bt&&(p(AA),m.current.layout=AA,se&&se(AA),kA(he,AA,x.current))}},[]),H=b.useCallback((L,P)=>{const{onLayout:G}=h.current,{layout:U,panelDataArray:k}=m.current,Z=k.map(J=>J.constraints),{panelSize:$,pivotIndices:ae}=QA(k,L,U);re($!=null,`Panel size not found for panel "${L.id}"`);const le=LA(k,L)===k.length-1?$-P:P-$,se=ot({delta:le,initialLayout:U,panelConstraints:Z,pivotIndices:ae,prevLayout:U,trigger:"imperative-api"});Pt(U,se)||(p(se),m.current.layout=se,G&&G(se),kA(k,se,x.current))},[]),j=b.useCallback((L,P)=>{const{layout:G,panelDataArray:U}=m.current,{collapsedSize:k=0,collapsible:Z}=P,{collapsedSize:$=0,collapsible:ae,maxSize:ie=100,minSize:le=0}=L.constraints,{panelSize:se}=QA(U,L,G);se!=null&&(Z&&ae&&Je(se,k)?Je(k,$)||H(L,$):se<le?H(L,le):se>ie&&H(L,ie))},[H]),y=b.useCallback((L,P)=>{const{direction:G}=h.current,{layout:U}=m.current;if(!E.current)return;const k=cr(L,E.current);re(k,`Drag handle element not found for id "${L}"`);const Z=Bu(G,P);d({dragHandleId:L,dragHandleRect:k.getBoundingClientRect(),initialCursorPosition:Z,initialLayout:U})},[]),F=b.useCallback(()=>{d(null)},[]),W=b.useCallback(L=>{const{panelDataArray:P}=m.current,G=LA(P,L);G>=0&&(P.splice(G,1),delete x.current[L.id],m.current.panelDataArrayChanged=!0,v())},[v]),K=b.useMemo(()=>({collapsePanel:D,direction:r,dragState:I,expandPanel:O,getPanelSize:z,getPanelStyle:R,groupId:B,isPanelCollapsed:S,isPanelExpanded:N,reevaluatePanelConstraints:j,registerPanel:M,registerResizeHandle:T,resizePanel:H,startDragging:y,stopDragging:F,unregisterPanel:W,panelGroupElement:E.current}),[D,I,r,O,z,R,B,S,N,j,M,T,H,y,F,W]),Y={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return b.createElement(ir.Provider,{value:K},b.createElement(C,{...c,children:A,className:t,id:o,ref:E,style:{...Y,...g},[de.group]:"",[de.groupDirection]:r,[de.groupId]:B}))}const fu=b.forwardRef((e,A)=>b.createElement(Qu,{...e,forwardedRef:A}));Qu.displayName="PanelGroup";fu.displayName="forwardRef(PanelGroup)";function LA(e,A){return e.findIndex(t=>t===A||t.id===A.id)}function QA(e,A,t){const r=LA(e,A),o=r===e.length-1?[r-1,r]:[r,r+1],s=t[r];return{...A.constraints,panelSize:s,pivotIndices:o}}function SB({disabled:e,handleId:A,resizeHandler:t,panelGroupElement:r}){b.useEffect(()=>{if(e||t==null||r==null)return;const n=cr(A,r);if(n==null)return;const o=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),t(s);break}case"F6":{s.preventDefault();const u=n.getAttribute(de.groupId);re(u,`No group element found for id "${u}"`);const i=it(u,r),g=lu(u,A,r);re(g!==null,`No resize element found for id "${A}"`);const C=s.shiftKey?g>0?g-1:i.length-1:g+1<i.length?g+1:0;i[C].focus();break}}};return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[r,e,A,t])}function pu({children:e=null,className:A="",disabled:t=!1,hitAreaMargins:r,id:n,onBlur:o,onClick:s,onDragging:u,onFocus:i,onPointerDown:g,onPointerUp:C,style:c={},tabIndex:B=0,tagName:E="div",...I}){var d,Q;const p=b.useRef(null),v=b.useRef({onClick:s,onDragging:u,onPointerDown:g,onPointerUp:C});b.useEffect(()=>{v.current.onClick=s,v.current.onDragging=u,v.current.onPointerDown=g,v.current.onPointerUp=C});const x=b.useContext(ir);if(x===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:w,groupId:f,registerResizeHandle:h,startDragging:m,stopDragging:D,panelGroupElement:O}=x,z=kn(n),[R,S]=b.useState("inactive"),[N,M]=b.useState(!1),[T,H]=b.useState(null),j=b.useRef({state:R});hA(()=>{j.current.state=R}),b.useEffect(()=>{if(t)H(null);else{const K=h(z);H(()=>K)}},[t,z,h]);const y=(d=r==null?void 0:r.coarse)!==null&&d!==void 0?d:15,F=(Q=r==null?void 0:r.fine)!==null&&Q!==void 0?Q:5;b.useEffect(()=>{if(t||T==null)return;const K=p.current;re(K,"Element ref not attached");let Y=!1;return xB(z,K,w,{coarse:y,fine:F},(P,G,U)=>{if(!G){S("inactive");return}switch(P){case"down":{S("drag"),Y=!1,re(U,'Expected event to be defined for "down" action'),m(z,U);const{onDragging:k,onPointerDown:Z}=v.current;k==null||k(!0),Z==null||Z();break}case"move":{const{state:k}=j.current;Y=!0,k!=="drag"&&S("hover"),re(U,'Expected event to be defined for "move" action'),T(U);break}case"up":{S("hover"),D();const{onClick:k,onDragging:Z,onPointerUp:$}=v.current;Z==null||Z(!1),$==null||$(),Y||k==null||k();break}}})},[y,w,t,F,h,z,T,m,D]),SB({disabled:t,handleId:z,resizeHandler:T,panelGroupElement:O});const W={touchAction:"none",userSelect:"none"};return b.createElement(E,{...I,children:e,className:A,id:n,onBlur:()=>{M(!1),o==null||o()},onFocus:()=>{M(!0),i==null||i()},ref:p,role:"separator",style:{...W,...c},tabIndex:B,[de.groupDirection]:w,[de.groupId]:f,[de.resizeHandle]:"",[de.resizeHandleActive]:R==="drag"?"pointer":N?"keyboard":void 0,[de.resizeHandleEnabled]:!t,[de.resizeHandleId]:z,[de.resizeHandleState]:R})}pu.displayName="PanelResizeHandle";function mu({className:e,...A}){return a.jsx(fu,{"data-slot":"resizable-panel-group",className:ee("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...A})}function qt({...e}){return a.jsx(Au,{"data-slot":"resizable-panel",...e})}function hu({withHandle:e,className:A,...t}){return a.jsx(pu,{"data-slot":"resizable-handle",className:ee("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",A),...t,children:e&&a.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:a.jsx(lB,{className:"size-2.5"})})})}const Qt=()=>{const[e,A]=b.useState(!1);return b.useEffect(()=>{const t=()=>{A(window.innerWidth<768)};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),e},HB=({items:e,isDefaultOpen:A=!1,isStandalone:t=!1,resizableContent:r,title:n="Moments",feddbackTitle:o,feedbackHelpfullButtonTitle:s,feedbackNotHelpfullButtonTitle:u,feedbackCommentPlaceholder:i,feedbackSubmitText:g,feedbackThankYouMessage:C,feedbackCancelButtonTitle:c,feedbackSubmitButtonHoverTitle:B,externalConversationId:E,feedBackApiUrl:I,agentId:d})=>{const[Q,p]=b.useState(A),v=b.useRef(null),x=b.useRef(null),w=b.useRef([]),[f,h]=b.useState([]),[m,D]=b.useState(!1),[O,z]=b.useState(null),R=Qt(),S=b.useMemo(()=>[...e].reverse(),[e]);b.useEffect(()=>{w.current=Array(S.length).fill(null)},[S.length]);const N=()=>{if(!x.current)return;const j=x.current.getBoundingClientRect(),y=[];w.current.forEach((F,W)=>{if(!F)return;const K=F.getBoundingClientRect();K.top<j.bottom&&K.bottom>j.top&&y.push(W)}),h(y)};b.useEffect(()=>{if(A&&!m){const j=setTimeout(()=>{N(),D(!0)},200);return()=>clearTimeout(j)}},[m,A]),b.useEffect(()=>{const j=x.current;if(j&&Q){const y=setTimeout(()=>{N()},100);return j.addEventListener("scroll",N),()=>{clearTimeout(y),j.removeEventListener("scroll",N)}}},[Q]),b.useEffect(()=>{const j=()=>{Q&&N()};return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[Q]);const M=j=>{if(O===j||R||f.length<=5||!f.includes(j))return 1;const F=[...f].sort((K,Y)=>K-Y).indexOf(j);return F<5?1:Math.max(0,.6-(F-5)*.1)},T=j=>{switch(j.type){case"task-done":return a.jsx(qs,{id:j.id,title:n,message:j.message,timestamp:j.timestamp,completedTaskCount:j.completedTaskCount??0,taskCount:j.taskCount??0});case"good-job":return a.jsx(Xs,{id:j.id,title:n,message:j.message,timestamp:j.timestamp});case"legal-thread":return a.jsx(Vs,{id:j.id,title:n,message:j.message,timestamp:j.timestamp,onClickAskGenAI:()=>{var y;return(y=j.onClickAskGenAI)==null?void 0:y.call(j)},onClickAskManager:()=>{var y;return(y=j.onClickAskManager)==null?void 0:y.call(j)}});case"unhappy-customer":return a.jsx(Ks,{id:j.id,title:n,message:j.message,timestamp:j.timestamp});case"genai-support":return a.jsx(Zs,{id:j.id,title:n,message:j.message,timestamp:j.timestamp});case"default":return a.jsx(Js,{id:j.id,title:j.title??j.type,message:j.message,timestamp:j.timestamp,icon:j.icon,scenarioId:j.scenarioId,showFeedbackArea:j.showFeedbackArea,feedBackApiUrl:I??"",externalConversationId:E??"",feedbackSubmitButtonHoverTitle:B??"",feedbackCancelButtonTitle:c??"",feddbackTitle:o,feedbackHelpfullButtonTitle:s,feedbackNotHelpfullButtonTitle:u,feedbackCommentPlaceholder:i,feedbackSubmitText:g,feedbackThankYouMessage:C,agentId:d??""})}},H=(j,y)=>a.jsx("div",{ref:F=>{w.current[y]=F},onMouseEnter:()=>z(y),onMouseLeave:()=>z(null),children:j});return a.jsx("div",{ref:v,className:ee("relative",!t&&!r?"max-h-[500px]":"h-full"),children:!t&&r?a.jsxs(mu,{direction:"vertical",className:"h-full md:pb-2",children:[a.jsx(qt,{defaultSize:R?60:35,children:e.length==1?a.jsxs("div",{className:"w-full flex flex-col gap-2 md:px-6 md:py-4 px-3 py-3",children:[a.jsxs("div",{className:"flex flex-row gap-2 items-center justify-start h-10",children:[a.jsx("span",{className:"text-lg font-medium text-foreground",children:n}),a.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),S.map((j,y)=>a.jsx("div",{children:H(T(j),y)},`item-${j.id||y}`))]}):a.jsx("div",{className:"h-full flex flex-col md:px-6 md:py-4 px-3 py-3",children:a.jsxs(rn,{defaultOpen:A,open:Q,onOpenChange:j=>{p(j),j&&setTimeout(N,100)},className:"h-full flex flex-col",children:[a.jsxs(nn,{className:"w-full flex flex-row items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[a.jsx("span",{className:"text-lg font-medium text-foreground",children:n}),a.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),a.jsx("div",{className:"h-10 w-10 p-2 flex items-center justify-center",children:a.jsx(q,{name:"ChevronDown",width:16,height:9,className:"text-foreground"})})]}),!Q&&S.length>0&&a.jsxs("div",{className:"w-full relative flex items-center justify-center rounded-xl md:rounded-3xl",children:[a.jsx("div",{className:"z-[3] w-full shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-xl md:rounded-3xl",ref:j=>{w.current[0]=j},children:T(S[0])}),!R&&e.length>1&&a.jsx("div",{className:"z-[2] absolute -bottom-2 w-[calc(100%-16px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"}),!R&&e.length>2&&a.jsx("div",{className:"z-[1] absolute -bottom-4 w-[calc(100%-32px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"})]}),a.jsx(on,{className:"flex-1 overflow-y-auto flex flex-col gap-2 max-h-[calc(100vh-68px)]",ref:x,children:S.map((j,y)=>a.jsx("div",{style:{opacity:M(y),transition:"opacity 0.2s ease-in-out"},children:H(T(j),y)},`item-${j.id||y}`))})]})})},`panel-1-${R}`),a.jsx(hu,{}),a.jsx(qt,{defaultSize:R?40:65,children:a.jsx("div",{className:"h-full overflow-y-auto no-scrollbar",children:r})},`panel-2-${R}`)]},`panel-group-${R}`):a.jsx(a.Fragment,{children:e.length==1?a.jsxs("div",{className:"w-full flex flex-col gap-2 px-6 py-4",children:[a.jsxs("div",{className:"flex flex-row gap-2 items-center justify-start h-10",children:[a.jsx("span",{className:"text-lg font-medium text-foreground",children:n}),a.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),S.map((j,y)=>a.jsx("div",{children:H(T(j),y)},`item-${j.id||y}`))]}):a.jsx("div",{className:"h-full flex flex-col px-6 py-4",children:a.jsxs(rn,{defaultOpen:A,open:Q,onOpenChange:j=>{p(j),j&&setTimeout(N,100)},className:"h-full flex flex-col",children:[a.jsxs(nn,{className:"w-full flex flex-row items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[a.jsx("span",{className:"text-lg font-medium text-foreground",children:n}),a.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),a.jsx("div",{className:"h-10 w-10 p-2 flex items-center justify-center",children:a.jsx(q,{name:"ChevronDown",width:24,height:24,className:"text-foreground"})})]}),!Q&&S.length>0&&a.jsxs("div",{className:"w-full relative flex items-center justify-center rounded-xl md:rounded-3xl",children:[a.jsx("div",{className:"z-[3] w-full shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-xl md:rounded-3xl",ref:j=>{w.current[0]=j},children:T(S[0])}),!R&&e.length>1&&a.jsx("div",{className:"z-[2] absolute -bottom-2 w-[calc(100%-16px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"}),!R&&e.length>2&&a.jsx("div",{className:"z-[1] absolute -bottom-4 w-[calc(100%-32px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"})]}),a.jsx(on,{className:"flex-1 overflow-y-auto flex flex-col gap-2 max-h-[calc(100vh-68px)]",ref:x,children:S.map((j,y)=>a.jsx("div",{style:{opacity:M(y),transition:"opacity 0.2s ease-in-out"},children:H(T(j),y)},`item-${j.id||y}`))})]})})})})};function YB({className:e,...A}){return a.jsx("textarea",{"data-slot":"textarea",className:ee("border-input text-sm placeholder:text-muted-foreground focus-visible:border-primary focus-visible:border-2 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...A})}const Pn=({value:e,onChange:A,onSendClick:t,placeholder:r="Type something...",...n})=>{const o=b.useRef(null);b.useEffect(()=>{const u=o.current;if(!u)return;u.style.height="0px";const g=24*5,c=Math.min(Math.max(u.scrollHeight,52),g);u.style.height=`${c}px`,u.style.overflowY=u.scrollHeight>g?"auto":"hidden"},[e]);const s=u=>{u.key==="Enter"&&(u.preventDefault(),t())};return a.jsxs("div",{className:"relative w-full",children:[a.jsx(YB,{ref:o,value:e,onChange:A,onKeyDown:s,className:"!py-4 resize-none box-border !pl-4 min-h-[52px] h-auto !pr-[71px] !w-full",placeholder:r,...n}),a.jsx(Ee,{size:"sm",className:"bg-primary absolute top-2 right-2 px-[15.5px] rounded-full",onClick:t,children:a.jsx(q,{name:"Send",width:16,height:16,className:"text-background"})})]})},GB=({isShown:e,personList:A,onClick:t})=>e?a.jsx("div",{className:"flex flex-col items-center justify-center gap-3",children:A.map(r=>a.jsxs("div",{className:`w-fit cursor-pointer h-fit relative${r.isDisable?" opacity-50":""}`,onClick:()=>t(r.id),children:[a.jsx(mA,{type:"secondary",fullName:r.fullName}),r.isActive&&a.jsx("div",{className:"w-2.5 h-2.5 bg-success rounded-full absolute bottom-0 right-0"})]},r.id))}):null,WB=({suggestion:e={items:[],messages:[]},messages:A,input:t,showInput:r=!0,onInputChange:n,onSend:o,onSuggestionClick:s,onSearchDocClick:u,placeholder:i="Type something...",searchDocText:g="Search in Doc",searchDocLoadingText:C="Searching..."})=>{var d;const[c,B]=b.useState(!1),E=()=>{t.trim()&&(o(t.trim()),n(""))},I=async()=>{if(u){B(!0);try{await u()}finally{B(!1)}}};return a.jsxs("div",{className:"flex flex-col h-full w-full bg-background gap-6 rounded-b-xl rounded-t-4xl",children:[a.jsx("div",{className:"flex-1 overflow-y-auto",children:a.jsx("div",{className:"flex flex-col gap-2 ",children:A==null?void 0:A.map(Q=>b.createElement(YA,{...Q,key:Q.id}))})}),e&&a.jsxs("div",{className:"flex flex-col gap-2.5",children:[e.messages&&e.messages.length>0&&((d=e.messages)==null?void 0:d.map(Q=>a.jsx("div",{className:"border-t pt-4",children:a.jsx(YA,{...Q})},Q.id))),e.items&&e.items.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 items-start justify-end",children:e.items.map((Q,p)=>a.jsx(Ee,{className:"rounded-lg text-primary text-sm font-medium px-3 py-1.5 bg-secondary hover:bg-secondary/70",onClick:()=>s==null?void 0:s(Q),children:Q},p))})]}),a.jsxs("div",{className:"border-t p-4 flex flex-col gap-2",children:[a.jsx(Ee,{className:"flex rounded-lg text-primary py-1 px-3 bg-secondary hover:bg-secondary/70 items-center justify-center",onClick:I,disabled:c,children:c?a.jsxs(a.Fragment,{children:[a.jsx(CB,{className:"animate-spin mr-2 h-4 w-4"}),C]}):g}),r&&a.jsx(Pn,{value:t,onChange:Q=>n(Q.target.value),onSendClick:E,placeholder:i})]})]})},UB=({suggestion:e={items:[],messages:[]},messages:A,input:t,showInput:r=!0,onInputChange:n,onSend:o,onSuggestionClick:s,placeholder:u="Type something..."})=>{var C;const i=c=>{s==null||s(c)},g=()=>{t.trim()&&(o(t.trim()),n(""))};return a.jsxs("div",{className:"flex flex-col h-full w-full bg-background gap-6 rounded-b-xl rounded-t-4xl",children:[a.jsx("div",{className:"flex-1 overflow-y-auto",children:a.jsx("div",{className:"flex flex-col gap-2.5",children:A==null?void 0:A.map(c=>b.createElement(YA,{...c,key:c.id}))})}),e&&a.jsxs("div",{className:"flex flex-col gap-2.5 ",children:[e.messages&&e.messages.length>0&&((C=e.messages)==null?void 0:C.map(c=>a.jsx("div",{className:"border-t pt-4",children:a.jsx(YA,{...c})},c.id))),e.items&&e.items.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 items-start justify-end",children:e.items.map((c,B)=>a.jsx(Ee,{className:"rounded-lg whitespace-pre-wrap text-left text-primary text-sm font-medium px-3 py-1.8 bg-secondary hover:bg-secondary/70",onClick:()=>i(c),children:c},B))})]}),r&&a.jsx("div",{className:"border-t p-4",children:a.jsx(Pn,{value:t,onChange:c=>n(c.target.value),onSendClick:g,placeholder:u})})]})},ZB=({title:e,steps:A,isStandalone:t=!1,isOpen:r=!0,onOpenChange:n,onToggleStep:o,scenarioId:s,feddbackTitle:u,feedbackHelpfullButtonTitle:i,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:C,feedbackCancelButtonTitle:c,feedbackSubmitButtonHoverTitle:B,feedbackSubmitText:E,feedbackThankYouMessage:I,agentId:d,feedBackApiUrl:Q,externalConversationId:p})=>{const v=A.filter(Y=>Y.isCompleted).length,x=A.length,w=Qt(),[f,h]=b.useState(new Set),[m,D]=b.useState(1),[O,z]=b.useState(!1),[R,S]=b.useState(""),[N,M]=b.useState(!1),[T,H]=b.useState(!1),j=()=>{z(Y=>!Y)},y=Y=>{D(Y)},F=({selectedFeedback:Y,comment:L})=>{Q&&s&&p&&d&&(M(!0),console.log("feedback request : ",{externalConversationId:p,scenarioId:s,eventTime:new Date().toISOString(),agentId:d,feedbackType:Y,comment:L}),fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({externalConversationId:p,scenarioId:s,eventTime:new Date().toISOString(),agentId:d,feedbackType:Y,comment:L})}).then(P=>P.json()).then(P=>{var G;(G=P==null?void 0:P.statusCode)!=null&&G.toString().startsWith("2")&&(P!=null&&P.result)&&(P==null?void 0:P.result)!==""&&(P==null?void 0:P.result)!=="NULL"&&(P==null?void 0:P.result)!=="null"&&(P==null?void 0:P.result)!==null?(H(!0),M(!1)):(H(!1),M(!1))}).catch(P=>{console.log(P),H(!1),M(!1)}).finally(()=>{M(!1)}))},W=()=>{D(null),S(""),z(!1)},K=Y=>{h(L=>{const P=new Set(L);return P.has(Y)?P.delete(Y):P.add(Y),P})};return a.jsx(rn,{open:r,onOpenChange:n,children:a.jsxs("div",{className:"bg-background md:bg-secondary md:px-6 md:py-4 px-3 py-3 rounded-2xl w-full h-full flex flex-col",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-1 md:gap-2",children:[a.jsx("span",{className:"font-medium text-lg text-foreground",children:e}),a.jsxs("span",{className:"text-xs font-medium bg-foreground-08 text-foreground px-2.5 py-0.5 rounded-full",children:[String(v).padStart(2,"0")," /"," ",String(x).padStart(2,"0")]})]}),!t&&a.jsx(nn,{asChild:!0,children:a.jsx("button",{className:"text-foreground transition","aria-label":"Toggle content",children:r?a.jsx(q,{name:"ChevronUp",width:16,height:9,className:"text-foreground"}):a.jsx(q,{name:"ChevronDown",width:16,height:9,className:"text-foreground"})})})]}),!r&&w&&A.length>0&&a.jsx("div",{className:"mt-4",children:a.jsx("div",{className:"bg-secondary md:bg-background p-4 rounded-2xl flex flex-col gap-6 h-full",children:a.jsx("div",{className:"flex flex-col gap-4",children:(()=>{const Y=A[0],L=Y.isCompleted,P=f.has(Y.id),G=Y.phrases&&Y.phrases.length>0;return a.jsxs("div",{className:"flex flex-col",children:[a.jsxs("div",{className:"relative flex gap-3 items-start",children:[a.jsx("button",{onClick:()=>o==null?void 0:o(0),className:ee("w-5 h-5 rounded-full flex items-center justify-center z-10 relative shrink-0",L?"bg-success-hover border-success-hover":"bg-background border-border border-7"),"aria-label":"Toggle step",children:L?a.jsx(q,{name:"Check",className:"text-background"}):a.jsx("div",{className:"w-1 h-1 bg-background rounded-full"})}),a.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[a.jsx("span",{className:ee("text-sm font-normal",L?"line-through text-muted-foreground":"text-foreground"),children:Y.label}),G&&a.jsx("button",{onClick:()=>K(Y.id),className:"ml-2 text-foreground transition-transform duration-200","aria-label":P?"Collapse phrases":"Expand phrases",children:a.jsx(q,{name:P?"ChevronUp":"ChevronDown",width:16,height:16,className:"text-muted-foreground transition-all duration-200"})})]})]}),P&&G&&Y.phrases&&a.jsx("div",{className:"ml-8 mt-2 space-y-1",children:Y.phrases.map((U,k)=>a.jsxs("div",{className:"text-xs text-muted-foreground flex items-start gap-2",children:[a.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full mt-1.5 shrink-0"}),a.jsx("span",{children:U})]},`${Y.id}-phrase-${k}`))})]},Y.id)})()})})}),a.jsx(on,{className:"mt-4 flex-1",children:a.jsxs("div",{className:"bg-secondary md:bg-background p-4 rounded-2xl flex flex-col h-full",children:[a.jsx("div",{className:ee("flex flex-col gap-6 ",t?"h-full":"overflow-y-auto max-h-[400px]"),children:A.map((Y,L)=>{const P=Y.isCompleted,G=f.has(Y.id),U=Y.phrases&&Y.phrases.length>0;return a.jsxs("div",{className:"flex flex-col",children:[a.jsxs("div",{className:ee("relative flex gap-3 items-start","after:absolute after:top-4 after:left-[10px] after:w-px after:bg-border",(L===A.length-1||G)&&"after:hidden"),children:[a.jsx("button",{onClick:()=>o==null?void 0:o(L),className:ee("w-5 h-5 rounded-full flex items-center justify-center z-10 relative shrink-0 ",P?"bg-success-hover border-success-hover":"bg-background border-border border-7"),"aria-label":"Toggle step",children:P?a.jsx(q,{name:"Check",className:"text-background"}):a.jsx("div",{className:"w-1 h-1 bg-background rounded-full"})}),a.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[a.jsx("span",{className:ee("text-sm font-normal",P?"line-through text-muted-foreground":"text-foreground"),children:Y.label}),U&&a.jsx("button",{onClick:()=>K(Y.id),className:"ml-2 text-foreground transition-transform duration-200","aria-label":G?"Collapse phrases":"Expand phrases",children:a.jsx(q,{name:G?"ChevronUp":"ChevronDown",width:16,height:16,className:"text-muted-foreground transition-all duration-200"})})]})]}),G&&U&&Y.phrases&&a.jsx("div",{className:"ml-8 mt-2 space-y-1",children:Y.phrases.map((k,Z)=>a.jsxs("div",{className:"text-xs text-muted-foreground flex items-start gap-2",children:[a.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full mt-1.5 shrink-0"}),a.jsx("span",{children:k})]},`${Y.id}-phrase-${Z}`))})]},Y.id)})}),!T&&a.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"flex-end",marginRight:"10px",marginTop:"10px"},children:a.jsxs("button",{onClick:j,className:"relative group",title:B,style:{cursor:"pointer"},children:[a.jsx(q,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),a.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap",children:B})]})}),O&&!T&&a.jsxs("div",{className:"mt-2 space-y-4",children:[a.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs("button",{onClick:()=>y(1),className:ee("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",m===1?"bg-green-50 dark:bg-green-900/20 border-green-400 dark:border-green-500 text-green-600 dark:text-green-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-green-300 dark:hover:border-green-400"),children:[a.jsx(q,{name:"LikeHand",width:16,height:16,style:{color:m===1?"#22c55e":"#6b7280"}}),a.jsx("span",{className:"text-sm font-medium",children:i})]}),a.jsxs("button",{onClick:()=>y(0),className:ee("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",m===0?"bg-red-50 dark:bg-red-900/20 border-red-400 dark:border-red-500 text-red-600 dark:text-red-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-red-300 dark:hover:border-red-400"),children:[a.jsx(q,{name:"DisLikeHand",width:16,height:16,style:{color:m===0?"#ef4444":"#6b7280"}}),a.jsx("span",{className:"text-sm font-medium",children:g})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:u}),a.jsx("textarea",{value:R,maxLength:500,onChange:Y=>S(Y.target.value),placeholder:C,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 focus:border-transparent placeholder-gray-500 dark:placeholder-gray-400",rows:3}),a.jsxs("div",{className:"flex justify-end",children:[a.jsx(Ee,{onClick:W,size:"sm",className:"bg-transparent dark:bg-transparent border-2 border-red-500 dark:border-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 gap-2 disabled:opacity-50 disabled:cursor-not-allowed mr-4",children:a.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:c})}),a.jsx(Ee,{onClick:()=>F({selectedFeedback:m??0,comment:R}),isLoading:N,disabled:N,size:"sm",className:"bg-primary dark:bg-primary hover:bg-primary/90 dark:hover:bg-primary/90 gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:a.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:E})})]})]})]}),T&&a.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[a.jsx("span",{className:"text-sm font-medium",children:I}),a.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:a.jsx(q,{name:"Check",width:12,height:12,style:{color:"white"}})})]})]})})]})})};function XB(e,A=globalThis==null?void 0:globalThis.document){const t=Ue(e);l.useEffect(()=>{const r=n=>{n.key==="Escape"&&t(n)};return A.addEventListener("keydown",r,{capture:!0}),()=>A.removeEventListener("keydown",r,{capture:!0})},[t,A])}var VB="DismissableLayer",sn="dismissableLayer.update",qB="dismissableLayer.pointerDownOutside",KB="dismissableLayer.focusOutside",$o,vu=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cr=l.forwardRef((e,A)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:o,onInteractOutside:s,onDismiss:u,...i}=e,g=l.useContext(vu),[C,c]=l.useState(null),B=(C==null?void 0:C.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=l.useState({}),I=Ce(A,m=>c(m)),d=Array.from(g.layers),[Q]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),p=d.indexOf(Q),v=C?d.indexOf(C):-1,x=g.layersWithOutsidePointerEventsDisabled.size>0,w=v>=p,f=$B(m=>{const D=m.target,O=[...g.branches].some(z=>z.contains(D));!w||O||(n==null||n(m),s==null||s(m),m.defaultPrevented||u==null||u())},B),h=eE(m=>{const D=m.target;[...g.branches].some(z=>z.contains(D))||(o==null||o(m),s==null||s(m),m.defaultPrevented||u==null||u())},B);return XB(m=>{v===g.layers.size-1&&(r==null||r(m),!m.defaultPrevented&&u&&(m.preventDefault(),u()))},B),l.useEffect(()=>{if(C)return t&&(g.layersWithOutsidePointerEventsDisabled.size===0&&($o=B.body.style.pointerEvents,B.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(C)),g.layers.add(C),ea(),()=>{t&&g.layersWithOutsidePointerEventsDisabled.size===1&&(B.body.style.pointerEvents=$o)}},[C,B,t,g]),l.useEffect(()=>()=>{C&&(g.layers.delete(C),g.layersWithOutsidePointerEventsDisabled.delete(C),ea())},[C,g]),l.useEffect(()=>{const m=()=>E({});return document.addEventListener(sn,m),()=>document.removeEventListener(sn,m)},[]),a.jsx(ne.div,{...i,ref:I,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,h.onFocusCapture),onBlurCapture:_(e.onBlurCapture,h.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,f.onPointerDownCapture)})});Cr.displayName=VB;var JB="DismissableLayerBranch",_B=l.forwardRef((e,A)=>{const t=l.useContext(vu),r=l.useRef(null),n=Ce(A,r);return l.useEffect(()=>{const o=r.current;if(o)return t.branches.add(o),()=>{t.branches.delete(o)}},[t.branches]),a.jsx(ne.div,{...e,ref:n})});_B.displayName=JB;function $B(e,A=globalThis==null?void 0:globalThis.document){const t=Ue(e),r=l.useRef(!1),n=l.useRef(()=>{});return l.useEffect(()=>{const o=u=>{if(u.target&&!r.current){let i=function(){wu(qB,t,g,{discrete:!0})};const g={originalEvent:u};u.pointerType==="touch"?(A.removeEventListener("click",n.current),n.current=i,A.addEventListener("click",n.current,{once:!0})):i()}else A.removeEventListener("click",n.current);r.current=!1},s=window.setTimeout(()=>{A.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),A.removeEventListener("pointerdown",o),A.removeEventListener("click",n.current)}},[A,t]),{onPointerDownCapture:()=>r.current=!0}}function eE(e,A=globalThis==null?void 0:globalThis.document){const t=Ue(e),r=l.useRef(!1);return l.useEffect(()=>{const n=o=>{o.target&&!r.current&&wu(KB,t,{originalEvent:o},{discrete:!1})};return A.addEventListener("focusin",n),()=>A.removeEventListener("focusin",n)},[A,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ea(){const e=new CustomEvent(sn);document.dispatchEvent(e)}function wu(e,A,t,{discrete:r}){const n=t.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});A&&n.addEventListener(e,A,{once:!0}),r?Va(n,o):n.dispatchEvent(o)}var Sr="focusScope.autoFocusOnMount",Hr="focusScope.autoFocusOnUnmount",Aa={bubbles:!1,cancelable:!0},AE="FocusScope",Ln=l.forwardRef((e,A)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:o,...s}=e,[u,i]=l.useState(null),g=Ue(n),C=Ue(o),c=l.useRef(null),B=Ce(A,d=>i(d)),E=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let d=function(x){if(E.paused||!u)return;const w=x.target;u.contains(w)?c.current=w:aA(c.current,{select:!0})},Q=function(x){if(E.paused||!u)return;const w=x.relatedTarget;w!==null&&(u.contains(w)||aA(c.current,{select:!0}))},p=function(x){if(document.activeElement===document.body)for(const f of x)f.removedNodes.length>0&&aA(u)};document.addEventListener("focusin",d),document.addEventListener("focusout",Q);const v=new MutationObserver(p);return u&&v.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",Q),v.disconnect()}}},[r,u,E.paused]),l.useEffect(()=>{if(u){ra.add(E);const d=document.activeElement;if(!u.contains(d)){const p=new CustomEvent(Sr,Aa);u.addEventListener(Sr,g),u.dispatchEvent(p),p.defaultPrevented||(tE(sE(xu(u)),{select:!0}),document.activeElement===d&&aA(u))}return()=>{u.removeEventListener(Sr,g),setTimeout(()=>{const p=new CustomEvent(Hr,Aa);u.addEventListener(Hr,C),u.dispatchEvent(p),p.defaultPrevented||aA(d??document.body,{select:!0}),u.removeEventListener(Hr,C),ra.remove(E)},0)}}},[u,g,C,E]);const I=l.useCallback(d=>{if(!t&&!r||E.paused)return;const Q=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,p=document.activeElement;if(Q&&p){const v=d.currentTarget,[x,w]=rE(v);x&&w?!d.shiftKey&&p===w?(d.preventDefault(),t&&aA(x,{select:!0})):d.shiftKey&&p===x&&(d.preventDefault(),t&&aA(w,{select:!0})):p===v&&d.preventDefault()}},[t,r,E.paused]);return a.jsx(ne.div,{tabIndex:-1,...s,ref:B,onKeyDown:I})});Ln.displayName=AE;function tE(e,{select:A=!1}={}){const t=document.activeElement;for(const r of e)if(aA(r,{select:A}),document.activeElement!==t)return}function rE(e){const A=xu(e),t=ta(A,e),r=ta(A.reverse(),e);return[t,r]}function xu(e){const A=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)A.push(t.currentNode);return A}function ta(e,A){for(const t of e)if(!nE(t,{upTo:A}))return t}function nE(e,{upTo:A}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(A!==void 0&&e===A)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function oE(e){return e instanceof HTMLInputElement&&"select"in e}function aA(e,{select:A=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&oE(e)&&A&&e.select()}}var ra=aE();function aE(){let e=[];return{add(A){const t=e[0];A!==t&&(t==null||t.pause()),e=na(e,A),e.unshift(A)},remove(A){var t;e=na(e,A),(t=e[0])==null||t.resume()}}}function na(e,A){const t=[...e],r=t.indexOf(A);return r!==-1&&t.splice(r,1),t}function sE(e){return e.filter(A=>A.tagName!=="A")}var uE="Portal",Br=l.forwardRef((e,A)=>{var u;const{container:t,...r}=e,[n,o]=l.useState(!1);Me(()=>o(!0),[]);const s=t||n&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return s?Fa.createPortal(a.jsx(ne.div,{...r,ref:A}),s):null});Br.displayName=uE;var Yr=0;function bu(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oa()),document.body.insertAdjacentElement("beforeend",e[1]??oa()),Yr++,()=>{Yr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(A=>A.remove()),Yr--}},[])}function oa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var He=function(){return He=Object.assign||function(A){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(A[o]=t[o])}return A},He.apply(this,arguments)};function Du(e,A){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&A.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)A.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(t[r[n]]=e[r[n]]);return t}function iE(e,A,t){if(t||arguments.length===2)for(var r=0,n=A.length,o;r<n;r++)(o||!(r in A))&&(o||(o=Array.prototype.slice.call(A,0,r)),o[r]=A[r]);return e.concat(o||Array.prototype.slice.call(A))}var Wt="right-scroll-bar-position",Ut="width-before-scroll-bar",gE="with-scroll-bars-hidden",lE="--removed-body-scroll-bar-size";function Gr(e,A){return typeof e=="function"?e(A):e&&(e.current=A),e}function cE(e,A){var t=b.useState(function(){return{value:e,callback:A,facade:{get current(){return t.value},set current(r){var n=t.value;n!==r&&(t.value=r,t.callback(r,n))}}}})[0];return t.callback=A,t.facade}var CE=typeof window<"u"?l.useLayoutEffect:l.useEffect,aa=new WeakMap;function BE(e,A){var t=cE(null,function(r){return e.forEach(function(n){return Gr(n,r)})});return CE(function(){var r=aa.get(t);if(r){var n=new Set(r),o=new Set(e),s=t.current;n.forEach(function(u){o.has(u)||Gr(u,null)}),o.forEach(function(u){n.has(u)||Gr(u,s)})}aa.set(t,e)},[e]),t}function EE(e){return e}function dE(e,A){A===void 0&&(A=EE);var t=[],r=!1,n={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(o){var s=A(o,r);return t.push(s),function(){t=t.filter(function(u){return u!==s})}},assignSyncMedium:function(o){for(r=!0;t.length;){var s=t;t=[],s.forEach(o)}t={push:function(u){return o(u)},filter:function(){return t}}},assignMedium:function(o){r=!0;var s=[];if(t.length){var u=t;t=[],u.forEach(o),s=t}var i=function(){var C=s;s=[],C.forEach(o)},g=function(){return Promise.resolve().then(i)};g(),t={push:function(C){s.push(C),g()},filter:function(C){return s=s.filter(C),t}}}};return n}function IE(e){e===void 0&&(e={});var A=dE(null);return A.options=He({async:!0,ssr:!1},e),A}var yu=function(e){var A=e.sideCar,t=Du(e,["sideCar"]);if(!A)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=A.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,He({},t))};yu.isSideCarExport=!0;function QE(e,A){return e.useMedium(A),yu}var Fu=IE(),Wr=function(){},Er=l.forwardRef(function(e,A){var t=l.useRef(null),r=l.useState({onScrollCapture:Wr,onWheelCapture:Wr,onTouchMoveCapture:Wr}),n=r[0],o=r[1],s=e.forwardProps,u=e.children,i=e.className,g=e.removeScrollBar,C=e.enabled,c=e.shards,B=e.sideCar,E=e.noRelative,I=e.noIsolation,d=e.inert,Q=e.allowPinchZoom,p=e.as,v=p===void 0?"div":p,x=e.gapMode,w=Du(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),f=B,h=BE([t,A]),m=He(He({},w),n);return l.createElement(l.Fragment,null,C&&l.createElement(f,{sideCar:Fu,removeScrollBar:g,shards:c,noRelative:E,noIsolation:I,inert:d,setCallbacks:o,allowPinchZoom:!!Q,lockRef:t,gapMode:x}),s?l.cloneElement(l.Children.only(u),He(He({},m),{ref:h})):l.createElement(v,He({},m,{className:i,ref:h}),u))});Er.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Er.classNames={fullWidth:Ut,zeroRight:Wt};var fE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var A=fE();return A&&e.setAttribute("nonce",A),e}function mE(e,A){e.styleSheet?e.styleSheet.cssText=A:e.appendChild(document.createTextNode(A))}function hE(e){var A=document.head||document.getElementsByTagName("head")[0];A.appendChild(e)}var vE=function(){var e=0,A=null;return{add:function(t){e==0&&(A=pE())&&(mE(A,t),hE(A)),e++},remove:function(){e--,!e&&A&&(A.parentNode&&A.parentNode.removeChild(A),A=null)}}},wE=function(){var e=vE();return function(A,t){l.useEffect(function(){return e.add(A),function(){e.remove()}},[A&&t])}},Nu=function(){var e=wE(),A=function(t){var r=t.styles,n=t.dynamic;return e(r,n),null};return A},xE={left:0,top:0,right:0,gap:0},Ur=function(e){return parseInt(e||"",10)||0},bE=function(e){var A=window.getComputedStyle(document.body),t=A[e==="padding"?"paddingLeft":"marginLeft"],r=A[e==="padding"?"paddingTop":"marginTop"],n=A[e==="padding"?"paddingRight":"marginRight"];return[Ur(t),Ur(r),Ur(n)]},DE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xE;var A=bE(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:A[0],top:A[1],right:A[2],gap:Math.max(0,r-t+A[2]-A[0])}},yE=Nu(),TA="data-scroll-locked",FE=function(e,A,t,r){var n=e.left,o=e.top,s=e.right,u=e.gap;return t===void 0&&(t="margin"),`
52
52
  .`.concat(gE,` {
53
53
  overflow: hidden `).concat(r,`;
54
54
  padding-right: `).concat(u,"px ").concat(r,`;
package/dist/index.es.js CHANGED
@@ -6557,7 +6557,7 @@ const $C = /* @__PURE__ */ Ru(_C), Oe = vt(
6557
6557
  scenarioId: E,
6558
6558
  eventTime: (/* @__PURE__ */ new Date()).toISOString(),
6559
6559
  agentId: D,
6560
- feedback: W,
6560
+ feedbackType: W,
6561
6561
  comment: U
6562
6562
  })
6563
6563
  }).then((O) => O.json()).then((O) => {
@@ -10003,7 +10003,14 @@ const wi = ({
10003
10003
  selectedFeedback: Y,
10004
10004
  comment: R
10005
10005
  }) => {
10006
- Q && a && p && d && (L(!0), fetch(Q, {
10006
+ Q && a && p && d && (L(!0), console.log("feedback request : ", {
10007
+ externalConversationId: p,
10008
+ scenarioId: a,
10009
+ eventTime: (/* @__PURE__ */ new Date()).toISOString(),
10010
+ agentId: d,
10011
+ feedbackType: Y,
10012
+ comment: R
10013
+ }), fetch(Q, {
10007
10014
  method: "POST",
10008
10015
  headers: {
10009
10016
  "Content-Type": "application/json"
@@ -10013,7 +10020,7 @@ const wi = ({
10013
10020
  scenarioId: a,
10014
10021
  eventTime: (/* @__PURE__ */ new Date()).toISOString(),
10015
10022
  agentId: d,
10016
- feedback: Y,
10023
+ feedbackType: Y,
10017
10024
  comment: R
10018
10025
  })
10019
10026
  }).then((M) => M.json()).then((M) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sestek-component",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",