sestek-component 1.1.9 → 1.1.11

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 ca;function iQ(){return ca||(ca=1,process.env.NODE_ENV!=="production"&&(function(){function e(f,E){return f===E&&(f!==0||1/f===1/E)||f!==f&&E!==E}function t(f,E){c||r.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 B=E();if(!g){var h=E();o(B,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}h=s({inst:{value:B,getSnapshot:E}});var Q=h[0].inst,m=h[1];return a(function(){Q.value=B,Q.getSnapshot=E,A(Q)&&m({inst:Q})},[f,B,E]),i(function(){return A(Q)&&m({inst:Q}),f(function(){A(Q)&&m({inst:Q})})},[f]),l(B),B}function A(f){var E=f.getSnapshot;f=f.value;try{var B=E();return!o(f,B)}catch{return!0}}function n(f,E){return E()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=w,o=typeof Object.is=="function"?Object.is:e,s=r.useState,i=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue,c=!1,g=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;eo.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),eo}var ga;function aQ(){return ga||(ga=1,process.env.NODE_ENV==="production"?Sn.exports=sQ():Sn.exports=iQ()),Sn.exports}var uQ=aQ();function lQ(){return uQ.useSyncExternalStore(cQ,()=>!0,()=>!1)}function cQ(){return()=>{}}var Ts="Avatar",[gQ]=ze(Ts),[dQ,jc]=gQ(Ts),Tc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,...n}=e,[r,o]=C.useState("idle");return u.jsx(dQ,{scope:A,imageLoadingStatus:r,onImageLoadingStatusChange:o,children:u.jsx(se.span,{...n,ref:t})})});Tc.displayName=Ts;var kc="AvatarImage",Rc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,src:n,onLoadingStatusChange:r=()=>{},...o}=e,s=jc(kc,A),i=CQ(n,o),a=at(l=>{r(l),s.onImageLoadingStatusChange(l)});return Ze(()=>{i!=="idle"&&a(i)},[i,a]),i==="loaded"?u.jsx(se.img,{...o,ref:t,src:n}):null});Rc.displayName=kc;var Lc="AvatarFallback",Sc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,delayMs:n,...r}=e,o=jc(Lc,A),[s,i]=C.useState(n===void 0);return C.useEffect(()=>{if(n!==void 0){const a=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(a)}},[n]),s&&o.imageLoadingStatus!=="loaded"?u.jsx(se.span,{...r,ref:t}):null});Sc.displayName=Lc;function da(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function CQ(e,{referrerPolicy:t,crossOrigin:A}){const n=lQ(),r=C.useRef(null),o=n?(r.current||(r.current=new window.Image),r.current):null,[s,i]=C.useState(()=>da(o,e));return Ze(()=>{i(da(o,e))},[o,e]),Ze(()=>{const a=g=>()=>{i(g)};if(!o)return;const l=a("loaded"),c=a("error");return o.addEventListener("load",l),o.addEventListener("error",c),t&&(o.referrerPolicy=t),typeof A=="string"&&(o.crossOrigin=A),()=>{o.removeEventListener("load",l),o.removeEventListener("error",c)}},[o,A,t]),s}var fQ=Tc,BQ=Rc,EQ=Sc;function IQ({className:e,...t}){return u.jsx(fQ,{"data-slot":"avatar",className:_("relative flex size-10 shrink-0 overflow-hidden rounded-full",e),...t})}function QQ({className:e,...t}){return u.jsx(BQ,{"data-slot":"avatar-image",className:_("aspect-square size-full",e),...t})}function hQ({className:e,...t}){return u.jsx(EQ,{"data-slot":"avatar-fallback",className:_("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}function mQ(e,t=globalThis==null?void 0:globalThis.document){const A=at(e);C.useEffect(()=>{const n=r=>{r.key==="Escape"&&A(r)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[A,t])}var pQ="DismissableLayer",Vo="dismissableLayer.update",vQ="dismissableLayer.pointerDownOutside",wQ="dismissableLayer.focusOutside",Ca,Oc=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yr=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:A=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:o,onInteractOutside:s,onDismiss:i,...a}=e,l=C.useContext(Oc),[c,g]=C.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=C.useState({}),E=Ce(t,p=>g(p)),B=Array.from(l.layers),[h]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),Q=B.indexOf(h),m=c?B.indexOf(c):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,b=m>=Q,I=yQ(p=>{const y=p.target,N=[...l.branches].some(T=>T.contains(y));!b||N||(r==null||r(p),s==null||s(p),p.defaultPrevented||i==null||i())},d),v=DQ(p=>{const y=p.target;[...l.branches].some(T=>T.contains(y))||(o==null||o(p),s==null||s(p),p.defaultPrevented||i==null||i())},d);return mQ(p=>{m===l.layers.size-1&&(n==null||n(p),!p.defaultPrevented&&i&&(p.preventDefault(),i()))},d),C.useEffect(()=>{if(c)return A&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ca=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),fa(),()=>{A&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Ca)}},[c,d,A,l]),C.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),fa())},[c,l]),C.useEffect(()=>{const p=()=>f({});return document.addEventListener(Vo,p),()=>document.removeEventListener(Vo,p)},[]),u.jsx(se.div,{...a,ref:E,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,v.onFocusCapture),onBlurCapture:J(e.onBlurCapture,v.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,I.onPointerDownCapture)})});yr.displayName=pQ;var xQ="DismissableLayerBranch",bQ=C.forwardRef((e,t)=>{const A=C.useContext(Oc),n=C.useRef(null),r=Ce(t,n);return C.useEffect(()=>{const o=n.current;if(o)return A.branches.add(o),()=>{A.branches.delete(o)}},[A.branches]),u.jsx(se.div,{...e,ref:r})});bQ.displayName=xQ;function yQ(e,t=globalThis==null?void 0:globalThis.document){const A=at(e),n=C.useRef(!1),r=C.useRef(()=>{});return C.useEffect(()=>{const o=i=>{if(i.target&&!n.current){let a=function(){zc(vQ,A,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=a,t.addEventListener("click",r.current,{once:!0})):a()}else t.removeEventListener("click",r.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",r.current)}},[t,A]),{onPointerDownCapture:()=>n.current=!0}}function DQ(e,t=globalThis==null?void 0:globalThis.document){const A=at(e),n=C.useRef(!1);return C.useEffect(()=>{const r=o=>{o.target&&!n.current&&zc(wQ,A,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,A]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function fa(){const e=new CustomEvent(Vo);document.dispatchEvent(e)}function zc(e,t,A,{discrete:n}){const r=A.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:A});t&&r.addEventListener(e,t,{once:!0}),n?Jl(r,o):r.dispatchEvent(o)}const FQ=["top","right","bottom","left"],Ft=Math.min,Se=Math.max,ir=Math.round,On=Math.floor,st=e=>({x:e,y:e}),NQ={left:"right",right:"left",bottom:"top",top:"bottom"},PQ={start:"end",end:"start"};function Go(e,t,A){return Se(e,Ft(t,A))}function ft(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function MA(e){return e.split("-")[1]}function ks(e){return e==="x"?"y":"x"}function Rs(e){return e==="y"?"height":"width"}const MQ=new Set(["top","bottom"]);function rt(e){return MQ.has(Bt(e))?"y":"x"}function Ls(e){return ks(rt(e))}function jQ(e,t,A){A===void 0&&(A=!1);const n=MA(e),r=Ls(e),o=Rs(r);let s=r==="x"?n===(A?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ar(s)),[s,ar(s)]}function TQ(e){const t=ar(e);return[Yo(e),t,Yo(t)]}function Yo(e){return e.replace(/start|end/g,t=>PQ[t])}const Ba=["left","right"],Ea=["right","left"],kQ=["top","bottom"],RQ=["bottom","top"];function LQ(e,t,A){switch(e){case"top":case"bottom":return A?t?Ea:Ba:t?Ba:Ea;case"left":case"right":return t?kQ:RQ;default:return[]}}function SQ(e,t,A,n){const r=MA(e);let o=LQ(Bt(e),A==="start",n);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(Yo)))),o}function ar(e){return e.replace(/left|right|bottom|top/g,t=>NQ[t])}function OQ(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hc(e){return typeof e!="number"?OQ(e):{top:e,right:e,bottom:e,left:e}}function ur(e){const{x:t,y:A,width:n,height:r}=e;return{width:n,height:r,top:A,left:t,right:t+n,bottom:A+r,x:t,y:A}}function Ia(e,t,A){let{reference:n,floating:r}=e;const o=rt(t),s=Ls(t),i=Rs(s),a=Bt(t),l=o==="y",c=n.x+n.width/2-r.width/2,g=n.y+n.height/2-r.height/2,d=n[i]/2-r[i]/2;let f;switch(a){case"top":f={x:c,y:n.y-r.height};break;case"bottom":f={x:c,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:g};break;case"left":f={x:n.x-r.width,y:g};break;default:f={x:n.x,y:n.y}}switch(MA(t)){case"start":f[s]-=d*(A&&l?-1:1);break;case"end":f[s]+=d*(A&&l?-1:1);break}return f}const zQ=async(e,t,A)=>{const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:s}=A,i=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:g}=Ia(l,n,a),d=n,f={},E=0;for(let B=0;B<i.length;B++){const{name:h,fn:Q}=i[B],{x:m,y:x,data:b,reset:I}=await Q({x:c,y:g,initialPlacement:n,placement:d,strategy:r,middlewareData:f,rects:l,platform:s,elements:{reference:e,floating:t}});c=m??c,g=x??g,f={...f,[h]:{...f[h],...b}},I&&E<=50&&(E++,typeof I=="object"&&(I.placement&&(d=I.placement),I.rects&&(l=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):I.rects),{x:c,y:g}=Ia(l,d,a)),B=-1)}return{x:c,y:g,placement:d,strategy:r,middlewareData:f}};async function nn(e,t){var A;t===void 0&&(t={});const{x:n,y:r,platform:o,rects:s,elements:i,strategy:a}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:g="floating",altBoundary:d=!1,padding:f=0}=ft(t,e),E=Hc(f),h=i[d?g==="floating"?"reference":"floating":g],Q=ur(await o.getClippingRect({element:(A=await(o.isElement==null?void 0:o.isElement(h)))==null||A?h:h.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:l,rootBoundary:c,strategy:a})),m=g==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),b=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},I=ur(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:m,offsetParent:x,strategy:a}):m);return{top:(Q.top-I.top+E.top)/b.y,bottom:(I.bottom-Q.bottom+E.bottom)/b.y,left:(Q.left-I.left+E.left)/b.x,right:(I.right-Q.right+E.right)/b.x}}const HQ=e=>({name:"arrow",options:e,async fn(t){const{x:A,y:n,placement:r,rects:o,platform:s,elements:i,middlewareData:a}=t,{element:l,padding:c=0}=ft(e,t)||{};if(l==null)return{};const g=Hc(c),d={x:A,y:n},f=Ls(r),E=Rs(f),B=await s.getDimensions(l),h=f==="y",Q=h?"top":"left",m=h?"bottom":"right",x=h?"clientHeight":"clientWidth",b=o.reference[E]+o.reference[f]-d[f]-o.floating[E],I=d[f]-o.reference[f],v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let p=v?v[x]:0;(!p||!await(s.isElement==null?void 0:s.isElement(v)))&&(p=i.floating[x]||o.floating[E]);const y=b/2-I/2,N=p/2-B[E]/2-1,T=Ft(g[Q],N),O=Ft(g[m],N),z=T,F=p-B[E]-O,D=p/2-B[E]/2+y,k=Go(z,D,F),H=!a.arrow&&MA(r)!=null&&D!==k&&o.reference[E]/2-(D<z?T:O)-B[E]/2<0,S=H?D<z?D-z:D-F:0;return{[f]:d[f]+S,data:{[f]:k,centerOffset:D-k-S,...H&&{alignmentOffset:S}},reset:H}}}),VQ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var A,n;const{placement:r,middlewareData:o,rects:s,initialPlacement:i,platform:a,elements:l}=t,{mainAxis:c=!0,crossAxis:g=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:B=!0,...h}=ft(e,t);if((A=o.arrow)!=null&&A.alignmentOffset)return{};const Q=Bt(r),m=rt(i),x=Bt(i)===i,b=await(a.isRTL==null?void 0:a.isRTL(l.floating)),I=d||(x||!B?[ar(i)]:TQ(i)),v=E!=="none";!d&&v&&I.push(...SQ(i,B,E,b));const p=[i,...I],y=await nn(t,h),N=[];let T=((n=o.flip)==null?void 0:n.overflows)||[];if(c&&N.push(y[Q]),g){const D=jQ(r,s,b);N.push(y[D[0]],y[D[1]])}if(T=[...T,{placement:r,overflows:N}],!N.every(D=>D<=0)){var O,z;const D=(((O=o.flip)==null?void 0:O.index)||0)+1,k=p[D];if(k&&(!(g==="alignment"?m!==rt(k):!1)||T.every(M=>rt(M.placement)===m?M.overflows[0]>0:!0)))return{data:{index:D,overflows:T},reset:{placement:k}};let H=(z=T.filter(S=>S.overflows[0]<=0).sort((S,M)=>S.overflows[1]-M.overflows[1])[0])==null?void 0:z.placement;if(!H)switch(f){case"bestFit":{var F;const S=(F=T.filter(M=>{if(v){const P=rt(M.placement);return P===m||P==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(P=>P>0).reduce((P,G)=>P+G,0)]).sort((M,P)=>M[1]-P[1])[0])==null?void 0:F[0];S&&(H=S);break}case"initialPlacement":H=i;break}if(r!==H)return{reset:{placement:H}}}return{}}}};function Qa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ha(e){return FQ.some(t=>e[t]>=0)}const GQ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:A}=t,{strategy:n="referenceHidden",...r}=ft(e,t);switch(n){case"referenceHidden":{const o=await nn(t,{...r,elementContext:"reference"}),s=Qa(o,A.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ha(s)}}}case"escaped":{const o=await nn(t,{...r,altBoundary:!0}),s=Qa(o,A.floating);return{data:{escapedOffsets:s,escaped:ha(s)}}}default:return{}}}}},Vc=new Set(["left","top"]);async function YQ(e,t){const{placement:A,platform:n,elements:r}=e,o=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Bt(A),i=MA(A),a=rt(A)==="y",l=Vc.has(s)?-1:1,c=o&&a?-1:1,g=ft(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return i&&typeof E=="number"&&(f=i==="end"?E*-1:E),a?{x:f*c,y:d*l}:{x:d*l,y:f*c}}const UQ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var A,n;const{x:r,y:o,placement:s,middlewareData:i}=t,a=await YQ(t,e);return s===((A=i.offset)==null?void 0:A.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:r+a.x,y:o+a.y,data:{...a,placement:s}}}}},WQ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:A,y:n,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:i={fn:h=>{let{x:Q,y:m}=h;return{x:Q,y:m}}},...a}=ft(e,t),l={x:A,y:n},c=await nn(t,a),g=rt(Bt(r)),d=ks(g);let f=l[d],E=l[g];if(o){const h=d==="y"?"top":"left",Q=d==="y"?"bottom":"right",m=f+c[h],x=f-c[Q];f=Go(m,f,x)}if(s){const h=g==="y"?"top":"left",Q=g==="y"?"bottom":"right",m=E+c[h],x=E-c[Q];E=Go(m,E,x)}const B=i.fn({...t,[d]:f,[g]:E});return{...B,data:{x:B.x-A,y:B.y-n,enabled:{[d]:o,[g]:s}}}}}},XQ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:A,y:n,placement:r,rects:o,middlewareData:s}=t,{offset:i=0,mainAxis:a=!0,crossAxis:l=!0}=ft(e,t),c={x:A,y:n},g=rt(r),d=ks(g);let f=c[d],E=c[g];const B=ft(i,t),h=typeof B=="number"?{mainAxis:B,crossAxis:0}:{mainAxis:0,crossAxis:0,...B};if(a){const x=d==="y"?"height":"width",b=o.reference[d]-o.floating[x]+h.mainAxis,I=o.reference[d]+o.reference[x]-h.mainAxis;f<b?f=b:f>I&&(f=I)}if(l){var Q,m;const x=d==="y"?"width":"height",b=Vc.has(Bt(r)),I=o.reference[g]-o.floating[x]+(b&&((Q=s.offset)==null?void 0:Q[g])||0)+(b?0:h.crossAxis),v=o.reference[g]+o.reference[x]+(b?0:((m=s.offset)==null?void 0:m[g])||0)-(b?h.crossAxis:0);E<I?E=I:E>v&&(E=v)}return{[d]:f,[g]:E}}}},ZQ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var A,n;const{placement:r,rects:o,platform:s,elements:i}=t,{apply:a=()=>{},...l}=ft(e,t),c=await nn(t,l),g=Bt(r),d=MA(r),f=rt(r)==="y",{width:E,height:B}=o.floating;let h,Q;g==="top"||g==="bottom"?(h=g,Q=d===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(Q=g,h=d==="end"?"top":"bottom");const m=B-c.top-c.bottom,x=E-c.left-c.right,b=Ft(B-c[h],m),I=Ft(E-c[Q],x),v=!t.middlewareData.shift;let p=b,y=I;if((A=t.middlewareData.shift)!=null&&A.enabled.x&&(y=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(p=m),v&&!d){const T=Se(c.left,0),O=Se(c.right,0),z=Se(c.top,0),F=Se(c.bottom,0);f?y=E-2*(T!==0||O!==0?T+O:Se(c.left,c.right)):p=B-2*(z!==0||F!==0?z+F:Se(c.top,c.bottom))}await a({...t,availableWidth:y,availableHeight:p});const N=await s.getDimensions(i.floating);return E!==N.width||B!==N.height?{reset:{rects:!0}}:{}}}};function Dr(){return typeof window<"u"}function jA(e){return Gc(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lt(e){var t;return(t=(Gc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gc(e){return Dr()?e instanceof Node||e instanceof Oe(e).Node:!1}function $e(e){return Dr()?e instanceof Element||e instanceof Oe(e).Element:!1}function ut(e){return Dr()?e instanceof HTMLElement||e instanceof Oe(e).HTMLElement:!1}function ma(e){return!Dr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot}const qQ=new Set(["inline","contents"]);function hn(e){const{overflow:t,overflowX:A,overflowY:n,display:r}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+A)&&!qQ.has(r)}const KQ=new Set(["table","td","th"]);function JQ(e){return KQ.has(jA(e))}const _Q=[":popover-open",":modal"];function Fr(e){return _Q.some(t=>{try{return e.matches(t)}catch{return!1}})}const $Q=["transform","translate","scale","rotate","perspective"],e2=["transform","translate","scale","rotate","perspective","filter"],t2=["paint","layout","strict","content"];function Ss(e){const t=Os(),A=$e(e)?et(e):e;return $Q.some(n=>A[n]?A[n]!=="none":!1)||(A.containerType?A.containerType!=="normal":!1)||!t&&(A.backdropFilter?A.backdropFilter!=="none":!1)||!t&&(A.filter?A.filter!=="none":!1)||e2.some(n=>(A.willChange||"").includes(n))||t2.some(n=>(A.contain||"").includes(n))}function A2(e){let t=Nt(e);for(;ut(t)&&!xA(t);){if(Ss(t))return t;if(Fr(t))return null;t=Nt(t)}return null}function Os(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const n2=new Set(["html","body","#document"]);function xA(e){return n2.has(jA(e))}function et(e){return Oe(e).getComputedStyle(e)}function Nr(e){return $e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nt(e){if(jA(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ma(e)&&e.host||lt(e);return ma(t)?t.host:t}function Yc(e){const t=Nt(e);return xA(t)?e.ownerDocument?e.ownerDocument.body:e.body:ut(t)&&hn(t)?t:Yc(t)}function rn(e,t,A){var n;t===void 0&&(t=[]),A===void 0&&(A=!0);const r=Yc(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Oe(r);if(o){const i=Uo(s);return t.concat(s,s.visualViewport||[],hn(r)?r:[],i&&A?rn(i):[])}return t.concat(r,rn(r,[],A))}function Uo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Uc(e){const t=et(e);let A=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=ut(e),o=r?e.offsetWidth:A,s=r?e.offsetHeight:n,i=ir(A)!==o||ir(n)!==s;return i&&(A=o,n=s),{width:A,height:n,$:i}}function zs(e){return $e(e)?e:e.contextElement}function hA(e){const t=zs(e);if(!ut(t))return st(1);const A=t.getBoundingClientRect(),{width:n,height:r,$:o}=Uc(t);let s=(o?ir(A.width):A.width)/n,i=(o?ir(A.height):A.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const r2=st(0);function Wc(e){const t=Oe(e);return!Os()||!t.visualViewport?r2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function o2(e,t,A){return t===void 0&&(t=!1),!A||t&&A!==Oe(e)?!1:t}function $t(e,t,A,n){t===void 0&&(t=!1),A===void 0&&(A=!1);const r=e.getBoundingClientRect(),o=zs(e);let s=st(1);t&&(n?$e(n)&&(s=hA(n)):s=hA(e));const i=o2(o,A,n)?Wc(o):st(0);let a=(r.left+i.x)/s.x,l=(r.top+i.y)/s.y,c=r.width/s.x,g=r.height/s.y;if(o){const d=Oe(o),f=n&&$e(n)?Oe(n):n;let E=d,B=Uo(E);for(;B&&n&&f!==E;){const h=hA(B),Q=B.getBoundingClientRect(),m=et(B),x=Q.left+(B.clientLeft+parseFloat(m.paddingLeft))*h.x,b=Q.top+(B.clientTop+parseFloat(m.paddingTop))*h.y;a*=h.x,l*=h.y,c*=h.x,g*=h.y,a+=x,l+=b,E=Oe(B),B=Uo(E)}}return ur({width:c,height:g,x:a,y:l})}function Pr(e,t){const A=Nr(e).scrollLeft;return t?t.left+A:$t(lt(e)).left+A}function Xc(e,t){const A=e.getBoundingClientRect(),n=A.left+t.scrollLeft-Pr(e,A),r=A.top+t.scrollTop;return{x:n,y:r}}function s2(e){let{elements:t,rect:A,offsetParent:n,strategy:r}=e;const o=r==="fixed",s=lt(n),i=t?Fr(t.floating):!1;if(n===s||i&&o)return A;let a={scrollLeft:0,scrollTop:0},l=st(1);const c=st(0),g=ut(n);if((g||!g&&!o)&&((jA(n)!=="body"||hn(s))&&(a=Nr(n)),ut(n))){const f=$t(n);l=hA(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}const d=s&&!g&&!o?Xc(s,a):st(0);return{width:A.width*l.x,height:A.height*l.y,x:A.x*l.x-a.scrollLeft*l.x+c.x+d.x,y:A.y*l.y-a.scrollTop*l.y+c.y+d.y}}function i2(e){return Array.from(e.getClientRects())}function a2(e){const t=lt(e),A=Nr(e),n=e.ownerDocument.body,r=Se(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Se(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-A.scrollLeft+Pr(e);const i=-A.scrollTop;return et(n).direction==="rtl"&&(s+=Se(t.clientWidth,n.clientWidth)-r),{width:r,height:o,x:s,y:i}}const pa=25;function u2(e,t){const A=Oe(e),n=lt(e),r=A.visualViewport;let o=n.clientWidth,s=n.clientHeight,i=0,a=0;if(r){o=r.width,s=r.height;const c=Os();(!c||c&&t==="fixed")&&(i=r.offsetLeft,a=r.offsetTop)}const l=Pr(n);if(l<=0){const c=n.ownerDocument,g=c.body,d=getComputedStyle(g),f=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,E=Math.abs(n.clientWidth-g.clientWidth-f);E<=pa&&(o-=E)}else l<=pa&&(o+=l);return{width:o,height:s,x:i,y:a}}const l2=new Set(["absolute","fixed"]);function c2(e,t){const A=$t(e,!0,t==="fixed"),n=A.top+e.clientTop,r=A.left+e.clientLeft,o=ut(e)?hA(e):st(1),s=e.clientWidth*o.x,i=e.clientHeight*o.y,a=r*o.x,l=n*o.y;return{width:s,height:i,x:a,y:l}}function va(e,t,A){let n;if(t==="viewport")n=u2(e,A);else if(t==="document")n=a2(lt(e));else if($e(t))n=c2(t,A);else{const r=Wc(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ur(n)}function Zc(e,t){const A=Nt(e);return A===t||!$e(A)||xA(A)?!1:et(A).position==="fixed"||Zc(A,t)}function g2(e,t){const A=t.get(e);if(A)return A;let n=rn(e,[],!1).filter(i=>$e(i)&&jA(i)!=="body"),r=null;const o=et(e).position==="fixed";let s=o?Nt(e):e;for(;$e(s)&&!xA(s);){const i=et(s),a=Ss(s);!a&&i.position==="fixed"&&(r=null),(o?!a&&!r:!a&&i.position==="static"&&!!r&&l2.has(r.position)||hn(s)&&!a&&Zc(e,s))?n=n.filter(c=>c!==s):r=i,s=Nt(s)}return t.set(e,n),n}function d2(e){let{element:t,boundary:A,rootBoundary:n,strategy:r}=e;const s=[...A==="clippingAncestors"?Fr(t)?[]:g2(t,this._c):[].concat(A),n],i=s[0],a=s.reduce((l,c)=>{const g=va(t,c,r);return l.top=Se(g.top,l.top),l.right=Ft(g.right,l.right),l.bottom=Ft(g.bottom,l.bottom),l.left=Se(g.left,l.left),l},va(t,i,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function C2(e){const{width:t,height:A}=Uc(e);return{width:t,height:A}}function f2(e,t,A){const n=ut(t),r=lt(t),o=A==="fixed",s=$t(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const a=st(0);function l(){a.x=Pr(r)}if(n||!n&&!o)if((jA(t)!=="body"||hn(r))&&(i=Nr(t)),n){const f=$t(t,!0,o,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else r&&l();o&&!n&&r&&l();const c=r&&!n&&!o?Xc(r,i):st(0),g=s.left+i.scrollLeft-a.x-c.x,d=s.top+i.scrollTop-a.y-c.y;return{x:g,y:d,width:s.width,height:s.height}}function to(e){return et(e).position==="static"}function wa(e,t){if(!ut(e)||et(e).position==="fixed")return null;if(t)return t(e);let A=e.offsetParent;return lt(e)===A&&(A=A.ownerDocument.body),A}function qc(e,t){const A=Oe(e);if(Fr(e))return A;if(!ut(e)){let r=Nt(e);for(;r&&!xA(r);){if($e(r)&&!to(r))return r;r=Nt(r)}return A}let n=wa(e,t);for(;n&&JQ(n)&&to(n);)n=wa(n,t);return n&&xA(n)&&to(n)&&!Ss(n)?A:n||A2(e)||A}const B2=async function(e){const t=this.getOffsetParent||qc,A=this.getDimensions,n=await A(e.floating);return{reference:f2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function E2(e){return et(e).direction==="rtl"}const I2={convertOffsetParentRelativeRectToViewportRelativeRect:s2,getDocumentElement:lt,getClippingRect:d2,getOffsetParent:qc,getElementRects:B2,getClientRects:i2,getDimensions:C2,getScale:hA,isElement:$e,isRTL:E2};function Kc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Q2(e,t){let A=null,n;const r=lt(e);function o(){var i;clearTimeout(n),(i=A)==null||i.disconnect(),A=null}function s(i,a){i===void 0&&(i=!1),a===void 0&&(a=1),o();const l=e.getBoundingClientRect(),{left:c,top:g,width:d,height:f}=l;if(i||t(),!d||!f)return;const E=On(g),B=On(r.clientWidth-(c+d)),h=On(r.clientHeight-(g+f)),Q=On(c),x={rootMargin:-E+"px "+-B+"px "+-h+"px "+-Q+"px",threshold:Se(0,Ft(1,a))||1};let b=!0;function I(v){const p=v[0].intersectionRatio;if(p!==a){if(!b)return s();p?s(!1,p):n=setTimeout(()=>{s(!1,1e-7)},1e3)}p===1&&!Kc(l,e.getBoundingClientRect())&&s(),b=!1}try{A=new IntersectionObserver(I,{...x,root:r.ownerDocument})}catch{A=new IntersectionObserver(I,x)}A.observe(e)}return s(!0),o}function h2(e,t,A,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,l=zs(e),c=r||o?[...l?rn(l):[],...rn(t)]:[];c.forEach(Q=>{r&&Q.addEventListener("scroll",A,{passive:!0}),o&&Q.addEventListener("resize",A)});const g=l&&i?Q2(l,A):null;let d=-1,f=null;s&&(f=new ResizeObserver(Q=>{let[m]=Q;m&&m.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),A()}),l&&!a&&f.observe(l),f.observe(t));let E,B=a?$t(e):null;a&&h();function h(){const Q=$t(e);B&&!Kc(B,Q)&&A(),B=Q,E=requestAnimationFrame(h)}return A(),()=>{var Q;c.forEach(m=>{r&&m.removeEventListener("scroll",A),o&&m.removeEventListener("resize",A)}),g==null||g(),(Q=f)==null||Q.disconnect(),f=null,a&&cancelAnimationFrame(E)}}const m2=UQ,p2=WQ,v2=VQ,w2=ZQ,x2=GQ,xa=HQ,b2=XQ,y2=(e,t,A)=>{const n=new Map,r={platform:I2,...A},o={...r.platform,_c:n};return zQ(e,t,{...r,platform:o})};var D2=typeof document<"u",F2=function(){},$n=D2?w.useLayoutEffect:F2;function lr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let A,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(A=e.length,A!==t.length)return!1;for(n=A;n--!==0;)if(!lr(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),A=r.length,A!==Object.keys(t).length)return!1;for(n=A;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=A;n--!==0;){const o=r[n];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Jc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ba(e,t){const A=Jc(e);return Math.round(t*A)/A}function Ao(e){const t=C.useRef(e);return $n(()=>{t.current=e}),t}function N2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:A="absolute",middleware:n=[],platform:r,elements:{reference:o,floating:s}={},transform:i=!0,whileElementsMounted:a,open:l}=e,[c,g]=C.useState({x:0,y:0,strategy:A,placement:t,middlewareData:{},isPositioned:!1}),[d,f]=C.useState(n);lr(d,n)||f(n);const[E,B]=C.useState(null),[h,Q]=C.useState(null),m=C.useCallback(M=>{M!==v.current&&(v.current=M,B(M))},[]),x=C.useCallback(M=>{M!==p.current&&(p.current=M,Q(M))},[]),b=o||E,I=s||h,v=C.useRef(null),p=C.useRef(null),y=C.useRef(c),N=a!=null,T=Ao(a),O=Ao(r),z=Ao(l),F=C.useCallback(()=>{if(!v.current||!p.current)return;const M={placement:t,strategy:A,middleware:d};O.current&&(M.platform=O.current),y2(v.current,p.current,M).then(P=>{const G={...P,isPositioned:z.current!==!1};D.current&&!lr(y.current,G)&&(y.current=G,kl.flushSync(()=>{g(G)}))})},[d,t,A,O,z]);$n(()=>{l===!1&&y.current.isPositioned&&(y.current.isPositioned=!1,g(M=>({...M,isPositioned:!1})))},[l]);const D=C.useRef(!1);$n(()=>(D.current=!0,()=>{D.current=!1}),[]),$n(()=>{if(b&&(v.current=b),I&&(p.current=I),b&&I){if(T.current)return T.current(b,I,F);F()}},[b,I,F,T,N]);const k=C.useMemo(()=>({reference:v,floating:p,setReference:m,setFloating:x}),[m,x]),H=C.useMemo(()=>({reference:b,floating:I}),[b,I]),S=C.useMemo(()=>{const M={position:A,left:0,top:0};if(!H.floating)return M;const P=ba(H.floating,c.x),G=ba(H.floating,c.y);return i?{...M,transform:"translate("+P+"px, "+G+"px)",...Jc(H.floating)>=1.5&&{willChange:"transform"}}:{position:A,left:P,top:G}},[A,i,H.floating,c.x,c.y]);return C.useMemo(()=>({...c,update:F,refs:k,elements:H,floatingStyles:S}),[c,F,k,H,S])}const P2=e=>{function t(A){return{}.hasOwnProperty.call(A,"current")}return{name:"arrow",options:e,fn(A){const{element:n,padding:r}=typeof e=="function"?e(A):e;return n&&t(n)?n.current!=null?xa({element:n.current,padding:r}).fn(A):{}:n?xa({element:n,padding:r}).fn(A):{}}}},M2=(e,t)=>({...m2(e),options:[e,t]}),j2=(e,t)=>({...p2(e),options:[e,t]}),T2=(e,t)=>({...b2(e),options:[e,t]}),k2=(e,t)=>({...v2(e),options:[e,t]}),R2=(e,t)=>({...w2(e),options:[e,t]}),L2=(e,t)=>({...x2(e),options:[e,t]}),S2=(e,t)=>({...P2(e),options:[e,t]});var O2="Arrow",_c=C.forwardRef((e,t)=>{const{children:A,width:n=10,height:r=5,...o}=e;return u.jsx(se.svg,{...o,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?A:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});_c.displayName=O2;var z2=_c,Hs="Popper",[$c,Mr]=ze(Hs),[H2,eg]=$c(Hs),tg=e=>{const{__scopePopper:t,children:A}=e,[n,r]=C.useState(null);return u.jsx(H2,{scope:t,anchor:n,onAnchorChange:r,children:A})};tg.displayName=Hs;var Ag="PopperAnchor",ng=C.forwardRef((e,t)=>{const{__scopePopper:A,virtualRef:n,...r}=e,o=eg(Ag,A),s=C.useRef(null),i=Ce(t,s),a=C.useRef(null);return C.useEffect(()=>{const l=a.current;a.current=(n==null?void 0:n.current)||s.current,l!==a.current&&o.onAnchorChange(a.current)}),n?null:u.jsx(se.div,{...r,ref:i})});ng.displayName=Ag;var Vs="PopperContent",[V2,G2]=$c(Vs),rg=C.forwardRef((e,t)=>{var R,W,X,Ae,le,ge;const{__scopePopper:A,side:n="bottom",sideOffset:r=0,align:o="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:a=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:g="partial",hideWhenDetached:d=!1,updatePositionStrategy:f="optimized",onPlaced:E,...B}=e,h=eg(Vs,A),[Q,m]=C.useState(null),x=Ce(t,ae=>m(ae)),[b,I]=C.useState(null),v=Ns(b),p=(v==null?void 0:v.width)??0,y=(v==null?void 0:v.height)??0,N=n+(o!=="center"?"-"+o:""),T=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},O=Array.isArray(l)?l:[l],z=O.length>0,F={padding:T,boundary:O.filter(U2),altBoundary:z},{refs:D,floatingStyles:k,placement:H,isPositioned:S,middlewareData:M}=N2({strategy:"fixed",placement:N,whileElementsMounted:(...ae)=>h2(...ae,{animationFrame:f==="always"}),elements:{reference:h.anchor},middleware:[M2({mainAxis:r+y,alignmentAxis:s}),a&&j2({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?T2():void 0,...F}),a&&k2({...F}),R2({...F,apply:({elements:ae,rects:K,availableWidth:Ne,availableHeight:Te})=>{const{width:ct,height:ye}=K.reference,gt=ae.floating.style;gt.setProperty("--radix-popper-available-width",`${Ne}px`),gt.setProperty("--radix-popper-available-height",`${Te}px`),gt.setProperty("--radix-popper-anchor-width",`${ct}px`),gt.setProperty("--radix-popper-anchor-height",`${ye}px`)}}),b&&S2({element:b,padding:i}),W2({arrowWidth:p,arrowHeight:y}),d&&L2({strategy:"referenceHidden",...F})]}),[P,G]=ig(H),$=at(E);Ze(()=>{S&&($==null||$())},[S,$]);const ne=(R=M.arrow)==null?void 0:R.x,L=(W=M.arrow)==null?void 0:W.y,j=((X=M.arrow)==null?void 0:X.centerOffset)!==0,[U,V]=C.useState();return Ze(()=>{Q&&V(window.getComputedStyle(Q).zIndex)},[Q]),u.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:S?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(Ae=M.transformOrigin)==null?void 0:Ae.x,(le=M.transformOrigin)==null?void 0:le.y].join(" "),...((ge=M.hide)==null?void 0:ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(V2,{scope:A,placedSide:P,onArrowChange:I,arrowX:ne,arrowY:L,shouldHideArrow:j,children:u.jsx(se.div,{"data-side":P,"data-align":G,...B,ref:x,style:{...B.style,animation:S?void 0:"none"}})})})});rg.displayName=Vs;var og="PopperArrow",Y2={top:"bottom",right:"left",bottom:"top",left:"right"},sg=C.forwardRef(function(t,A){const{__scopePopper:n,...r}=t,o=G2(og,n),s=Y2[o.placedSide];return u.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u.jsx(z2,{...r,ref:A,style:{...r.style,display:"block"}})})});sg.displayName=og;function U2(e){return e!==null}var W2=e=>({name:"transformOrigin",options:e,fn(t){var h,Q,m;const{placement:A,rects:n,middlewareData:r}=t,s=((h=r.arrow)==null?void 0:h.centerOffset)!==0,i=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[l,c]=ig(A),g={start:"0%",center:"50%",end:"100%"}[c],d=(((Q=r.arrow)==null?void 0:Q.x)??0)+i/2,f=(((m=r.arrow)==null?void 0:m.y)??0)+a/2;let E="",B="";return l==="bottom"?(E=s?g:`${d}px`,B=`${-a}px`):l==="top"?(E=s?g:`${d}px`,B=`${n.floating.height+a}px`):l==="right"?(E=`${-a}px`,B=s?g:`${f}px`):l==="left"&&(E=`${n.floating.width+a}px`,B=s?g:`${f}px`),{data:{x:E,y:B}}}});function ig(e){const[t,A="center"]=e.split("-");return[t,A]}var ag=tg,ug=ng,lg=rg,cg=sg,X2="Portal",jr=C.forwardRef((e,t)=>{var i;const{container:A,...n}=e,[r,o]=C.useState(!1);Ze(()=>o(!0),[]);const s=A||r&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?jl.createPortal(u.jsx(se.div,{...n,ref:t}),s):null});jr.displayName=X2;var Z2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),q2="VisuallyHidden",Tr=C.forwardRef((e,t)=>u.jsx(se.span,{...e,ref:t,style:{...Z2,...e.style}}));Tr.displayName=q2;var K2=Tr,[kr]=ze("Tooltip",[Mr]),Rr=Mr(),gg="TooltipProvider",J2=700,Wo="tooltip.open",[_2,Gs]=kr(gg),dg=e=>{const{__scopeTooltip:t,delayDuration:A=J2,skipDelayDuration:n=300,disableHoverableContent:r=!1,children:o}=e,s=C.useRef(!0),i=C.useRef(!1),a=C.useRef(0);return C.useEffect(()=>{const l=a.current;return()=>window.clearTimeout(l)},[]),u.jsx(_2,{scope:t,isOpenDelayedRef:s,delayDuration:A,onOpen:C.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:C.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:C.useCallback(l=>{i.current=l},[]),disableHoverableContent:r,children:o})};dg.displayName=gg;var on="Tooltip",[$2,mn]=kr(on),Cg=e=>{const{__scopeTooltip:t,children:A,open:n,defaultOpen:r,onOpenChange:o,disableHoverableContent:s,delayDuration:i}=e,a=Gs(on,e.__scopeTooltip),l=Rr(t),[c,g]=C.useState(null),d=ot(),f=C.useRef(0),E=s??a.disableHoverableContent,B=i??a.delayDuration,h=C.useRef(!1),[Q,m]=jt({prop:n,defaultProp:r??!1,onChange:p=>{p?(a.onOpen(),document.dispatchEvent(new CustomEvent(Wo))):a.onClose(),o==null||o(p)},caller:on}),x=C.useMemo(()=>Q?h.current?"delayed-open":"instant-open":"closed",[Q]),b=C.useCallback(()=>{window.clearTimeout(f.current),f.current=0,h.current=!1,m(!0)},[m]),I=C.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),v=C.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{h.current=!0,m(!0),f.current=0},B)},[B,m]);return C.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),u.jsx(ag,{...l,children:u.jsx($2,{scope:t,contentId:d,open:Q,stateAttribute:x,trigger:c,onTriggerChange:g,onTriggerEnter:C.useCallback(()=>{a.isOpenDelayedRef.current?v():b()},[a.isOpenDelayedRef,v,b]),onTriggerLeave:C.useCallback(()=>{E?I():(window.clearTimeout(f.current),f.current=0)},[I,E]),onOpen:b,onClose:I,disableHoverableContent:E,children:A})})};Cg.displayName=on;var Xo="TooltipTrigger",fg=C.forwardRef((e,t)=>{const{__scopeTooltip:A,...n}=e,r=mn(Xo,A),o=Gs(Xo,A),s=Rr(A),i=C.useRef(null),a=Ce(t,i,r.onTriggerChange),l=C.useRef(!1),c=C.useRef(!1),g=C.useCallback(()=>l.current=!1,[]);return C.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),u.jsx(ug,{asChild:!0,...s,children:u.jsx(se.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...n,ref:a,onPointerMove:J(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!o.isPointerInTransitRef.current&&(r.onTriggerEnter(),c.current=!0)}),onPointerLeave:J(e.onPointerLeave,()=>{r.onTriggerLeave(),c.current=!1}),onPointerDown:J(e.onPointerDown,()=>{r.open&&r.onClose(),l.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:J(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:J(e.onBlur,r.onClose),onClick:J(e.onClick,r.onClose)})})});fg.displayName=Xo;var Ys="TooltipPortal",[eh,th]=kr(Ys,{forceMount:void 0}),Bg=e=>{const{__scopeTooltip:t,forceMount:A,children:n,container:r}=e,o=mn(Ys,t);return u.jsx(eh,{scope:t,forceMount:A,children:u.jsx(He,{present:A||o.open,children:u.jsx(jr,{asChild:!0,container:r,children:n})})})};Bg.displayName=Ys;var bA="TooltipContent",Eg=C.forwardRef((e,t)=>{const A=th(bA,e.__scopeTooltip),{forceMount:n=A.forceMount,side:r="top",...o}=e,s=mn(bA,e.__scopeTooltip);return u.jsx(He,{present:n||s.open,children:s.disableHoverableContent?u.jsx(Ig,{side:r,...o,ref:t}):u.jsx(Ah,{side:r,...o,ref:t})})}),Ah=C.forwardRef((e,t)=>{const A=mn(bA,e.__scopeTooltip),n=Gs(bA,e.__scopeTooltip),r=C.useRef(null),o=Ce(t,r),[s,i]=C.useState(null),{trigger:a,onClose:l}=A,c=r.current,{onPointerInTransitChange:g}=n,d=C.useCallback(()=>{i(null),g(!1)},[g]),f=C.useCallback((E,B)=>{const h=E.currentTarget,Q={x:E.clientX,y:E.clientY},m=ih(Q,h.getBoundingClientRect()),x=ah(Q,m),b=uh(B.getBoundingClientRect()),I=ch([...x,...b]);i(I),g(!0)},[g]);return C.useEffect(()=>()=>d(),[d]),C.useEffect(()=>{if(a&&c){const E=h=>f(h,c),B=h=>f(h,a);return a.addEventListener("pointerleave",E),c.addEventListener("pointerleave",B),()=>{a.removeEventListener("pointerleave",E),c.removeEventListener("pointerleave",B)}}},[a,c,f,d]),C.useEffect(()=>{if(s){const E=B=>{const h=B.target,Q={x:B.clientX,y:B.clientY},m=(a==null?void 0:a.contains(h))||(c==null?void 0:c.contains(h)),x=!lh(Q,s);m?d():x&&(d(),l())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[a,c,s,l,d]),u.jsx(Ig,{...e,ref:o})}),[nh,rh]=kr(on,{isInside:!1}),oh=mB("TooltipContent"),Ig=C.forwardRef((e,t)=>{const{__scopeTooltip:A,children:n,"aria-label":r,onEscapeKeyDown:o,onPointerDownOutside:s,...i}=e,a=mn(bA,A),l=Rr(A),{onClose:c}=a;return C.useEffect(()=>(document.addEventListener(Wo,c),()=>document.removeEventListener(Wo,c)),[c]),C.useEffect(()=>{if(a.trigger){const g=d=>{const f=d.target;f!=null&&f.contains(a.trigger)&&c()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[a.trigger,c]),u.jsx(yr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:g=>g.preventDefault(),onDismiss:c,children:u.jsxs(lg,{"data-state":a.stateAttribute,...l,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(oh,{children:n}),u.jsx(nh,{scope:A,isInside:!0,children:u.jsx(K2,{id:a.contentId,role:"tooltip",children:r||n})})]})})});Eg.displayName=bA;var Qg="TooltipArrow",sh=C.forwardRef((e,t)=>{const{__scopeTooltip:A,...n}=e,r=Rr(A);return rh(Qg,A).isInside?null:u.jsx(cg,{...r,...n,ref:t})});sh.displayName=Qg;function ih(e,t){const A=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(A,n,r,o)){case o:return"left";case r:return"right";case A:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ah(e,t,A=5){const n=[];switch(t){case"top":n.push({x:e.x-A,y:e.y+A},{x:e.x+A,y:e.y+A});break;case"bottom":n.push({x:e.x-A,y:e.y-A},{x:e.x+A,y:e.y-A});break;case"left":n.push({x:e.x+A,y:e.y-A},{x:e.x+A,y:e.y+A});break;case"right":n.push({x:e.x-A,y:e.y-A},{x:e.x-A,y:e.y+A});break}return n}function uh(e){const{top:t,right:A,bottom:n,left:r}=e;return[{x:r,y:t},{x:A,y:t},{x:A,y:n},{x:r,y:n}]}function lh(e,t){const{x:A,y:n}=e;let r=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const i=t[o],a=t[s],l=i.x,c=i.y,g=a.x,d=a.y;c>n!=d>n&&A<(g-l)*(n-c)/(d-c)+l&&(r=!r)}return r}function ch(e){const t=e.slice();return t.sort((A,n)=>A.x<n.x?-1:A.x>n.x?1:A.y<n.y?-1:A.y>n.y?1:0),gh(t)}function gh(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(r.y-s.y)>=(o.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const A=[];for(let n=e.length-1;n>=0;n--){const r=e[n];for(;A.length>=2;){const o=A[A.length-1],s=A[A.length-2];if((o.x-s.x)*(r.y-s.y)>=(o.y-s.y)*(r.x-s.x))A.pop();else break}A.push(r)}return A.pop(),t.length===1&&A.length===1&&t[0].x===A[0].x&&t[0].y===A[0].y?t:t.concat(A)}var dh=dg,Ch=Cg,fh=fg,Bh=Bg,Eh=Eg;function Ih({delayDuration:e=0,...t}){return u.jsx(dh,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Us({...e}){return u.jsx(Ih,{children:u.jsx(Ch,{"data-slot":"tooltip",...e})})}function Ws({...e}){return u.jsx(fh,{"data-slot":"tooltip-trigger",...e})}function Xs({className:e,sideOffset:t=0,children:A,...n}){return u.jsx(Bh,{children:u.jsx(Eh,{"data-slot":"tooltip-content",sideOffset:t,className:_("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:A})})}const qt=({url:e,fullName:t,type:A="primary",isActive:n=!1,sentimentResult:r,positiveHoverText:o,negativeHoverText:s})=>{const i=()=>{if(!t)return null;const[f,E]=t.split(" ");return`${(f==null?void 0:f.charAt(0))??""}${(E==null?void 0:E.charAt(0))??""}`},a=()=>A==="primary"||A==="primary-light"?"text-primary-foreground dark:text-white":"text-secondary-foreground dark:text-white",l=r===1?"#46D292":r===2?"#FF8182":void 0,c=r===1?o:r===2?s:void 0,g=()=>r===1?u.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 rounded-full bg-white p-0.5 shadow-sm",children:u.jsx(Y,{name:"Smiling",width:14,height:14})}):r===2?u.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 rounded-full bg-white p-0.5 shadow-sm",children:u.jsx(Y,{name:"NeutralFace",width:14,height:14})}):null,d=u.jsxs("div",{className:"relative w-fit h-fit",children:[u.jsx("div",{className:_("rounded-full overflow-hidden",l&&"border-3"),style:l?{borderColor:l}:void 0,children:u.jsxs(IQ,{style:{margin:l?3:0},children:[u.jsx(QQ,{role:"img",src:e}),u.jsx(hQ,{className:_("text-base font-normal",A==="primary"?"bg-client-chat-background text-client-chat-foreground":A==="primary-light"?"bg-primary-brew-3 text-card":"bg-foreground-08 text-secondary-foreground"),children:t?i():u.jsx(Y,{name:"Unknown",className:_("w-4 h-5",a())})})]})}),(r===1||r===2)&&u.jsx(g,{}),n&&u.jsx("div",{className:"w-2.5 h-2.5 bg-success rounded-full absolute bottom-0 right-0"})]});return!c||r!==1&&r!==2?d:u.jsxs(Us,{children:[u.jsx(Ws,{asChild:!0,children:d}),u.jsx(Xs,{side:"top",sideOffset:6,children:c})]})},Qh=({fullname:e,telNo:t,id:A,avatarType:n="primary-light",idText:r="ID",isDefaultOpen:o=!1})=>{const[s,i]=w.useState(o),a=()=>{s||i(!0)},l=c=>{c.stopPropagation(),i(!1)};return u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{onClick:a,className:`cursor-${s?"default":"pointer"}`,children:u.jsx(qt,{fullName:e,type:n})}),u.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:[u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("span",{className:"text-sm font-medium text-foreground whitespace-nowrap",children:e}),u.jsxs("div",{className:"flex flex-row gap-2",children:[u.jsx("span",{className:"text-xs text-foreground whitespace-nowrap",children:t}),A&&u.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",id:"call-id-text",children:[r,": ",A]})]})]}),!o&&u.jsx("button",{onClick:l,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:u.jsx(Y,{name:"Close",width:13,height:13,className:"text-foreground"})})]})]})};var zA={},oA={},zn={},zt={},Ht={},no={},ya;function hg(){return ya||(ya=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 t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function A(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=A,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(no)),no}var re={},Da;function Fa(){if(Da)return re;Da=1;var e=re&&re.__extends||(function(){var I=function(v,p){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,N){y.__proto__=N}||function(y,N){for(var T in N)Object.prototype.hasOwnProperty.call(N,T)&&(y[T]=N[T])},I(v,p)};return function(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");I(v,p);function y(){this.constructor=v}v.prototype=p===null?Object.create(p):(y.prototype=p.prototype,new y)}})(),t=re&&re.__assign||function(){return t=Object.assign||function(I){for(var v,p=1,y=arguments.length;p<y;p++){v=arguments[p];for(var N in v)Object.prototype.hasOwnProperty.call(v,N)&&(I[N]=v[N])}return I},t.apply(this,arguments)};Object.defineProperty(re,"__esModule",{value:!0}),re.cloneNode=re.hasChildren=re.isDocument=re.isDirective=re.isComment=re.isText=re.isCDATA=re.isTag=re.Element=re.Document=re.CDATA=re.NodeWithChildren=re.ProcessingInstruction=re.Comment=re.Text=re.DataNode=re.Node=void 0;var A=hg(),n=(function(){function I(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(I.prototype,"parentNode",{get:function(){return this.parent},set:function(v){this.parent=v},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"previousSibling",{get:function(){return this.prev},set:function(v){this.prev=v},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"nextSibling",{get:function(){return this.next},set:function(v){this.next=v},enumerable:!1,configurable:!0}),I.prototype.cloneNode=function(v){return v===void 0&&(v=!1),x(this,v)},I})();re.Node=n;var r=(function(I){e(v,I);function v(p){var y=I.call(this)||this;return y.data=p,y}return Object.defineProperty(v.prototype,"nodeValue",{get:function(){return this.data},set:function(p){this.data=p},enumerable:!1,configurable:!0}),v})(n);re.DataNode=r;var o=(function(I){e(v,I);function v(){var p=I!==null&&I.apply(this,arguments)||this;return p.type=A.ElementType.Text,p}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),v})(r);re.Text=o;var s=(function(I){e(v,I);function v(){var p=I!==null&&I.apply(this,arguments)||this;return p.type=A.ElementType.Comment,p}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),v})(r);re.Comment=s;var i=(function(I){e(v,I);function v(p,y){var N=I.call(this,y)||this;return N.name=p,N.type=A.ElementType.Directive,N}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),v})(r);re.ProcessingInstruction=i;var a=(function(I){e(v,I);function v(p){var y=I.call(this)||this;return y.children=p,y}return Object.defineProperty(v.prototype,"firstChild",{get:function(){var p;return(p=this.children[0])!==null&&p!==void 0?p:null},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"childNodes",{get:function(){return this.children},set:function(p){this.children=p},enumerable:!1,configurable:!0}),v})(n);re.NodeWithChildren=a;var l=(function(I){e(v,I);function v(){var p=I!==null&&I.apply(this,arguments)||this;return p.type=A.ElementType.CDATA,p}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),v})(a);re.CDATA=l;var c=(function(I){e(v,I);function v(){var p=I!==null&&I.apply(this,arguments)||this;return p.type=A.ElementType.Root,p}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),v})(a);re.Document=c;var g=(function(I){e(v,I);function v(p,y,N,T){N===void 0&&(N=[]),T===void 0&&(T=p==="script"?A.ElementType.Script:p==="style"?A.ElementType.Style:A.ElementType.Tag);var O=I.call(this,N)||this;return O.name=p,O.attribs=y,O.type=T,O}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"tagName",{get:function(){return this.name},set:function(p){this.name=p},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"attributes",{get:function(){var p=this;return Object.keys(this.attribs).map(function(y){var N,T;return{name:y,value:p.attribs[y],namespace:(N=p["x-attribsNamespace"])===null||N===void 0?void 0:N[y],prefix:(T=p["x-attribsPrefix"])===null||T===void 0?void 0:T[y]}})},enumerable:!1,configurable:!0}),v})(a);re.Element=g;function d(I){return(0,A.isTag)(I)}re.isTag=d;function f(I){return I.type===A.ElementType.CDATA}re.isCDATA=f;function E(I){return I.type===A.ElementType.Text}re.isText=E;function B(I){return I.type===A.ElementType.Comment}re.isComment=B;function h(I){return I.type===A.ElementType.Directive}re.isDirective=h;function Q(I){return I.type===A.ElementType.Root}re.isDocument=Q;function m(I){return Object.prototype.hasOwnProperty.call(I,"children")}re.hasChildren=m;function x(I,v){v===void 0&&(v=!1);var p;if(E(I))p=new o(I.data);else if(B(I))p=new s(I.data);else if(d(I)){var y=v?b(I.children):[],N=new g(I.name,t({},I.attribs),y);y.forEach(function(F){return F.parent=N}),I.namespace!=null&&(N.namespace=I.namespace),I["x-attribsNamespace"]&&(N["x-attribsNamespace"]=t({},I["x-attribsNamespace"])),I["x-attribsPrefix"]&&(N["x-attribsPrefix"]=t({},I["x-attribsPrefix"])),p=N}else if(f(I)){var y=v?b(I.children):[],T=new l(y);y.forEach(function(D){return D.parent=T}),p=T}else if(Q(I)){var y=v?b(I.children):[],O=new c(y);y.forEach(function(D){return D.parent=O}),I["x-mode"]&&(O["x-mode"]=I["x-mode"]),p=O}else if(h(I)){var z=new i(I.name,I.data);I["x-name"]!=null&&(z["x-name"]=I["x-name"],z["x-publicId"]=I["x-publicId"],z["x-systemId"]=I["x-systemId"]),p=z}else throw new Error("Not implemented yet: ".concat(I.type));return p.startIndex=I.startIndex,p.endIndex=I.endIndex,I.sourceCodeLocation!=null&&(p.sourceCodeLocation=I.sourceCodeLocation),p}re.cloneNode=x;function b(I){for(var v=I.map(function(y){return x(y,!0)}),p=1;p<v.length;p++)v[p].prev=v[p-1],v[p-1].next=v[p];return v}return re}var Na;function mg(){return Na||(Na=1,(function(e){var t=Ht&&Ht.__createBinding||(Object.create?(function(i,a,l,c){c===void 0&&(c=l);var g=Object.getOwnPropertyDescriptor(a,l);(!g||("get"in g?!a.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(i,c,g)}):(function(i,a,l,c){c===void 0&&(c=l),i[c]=a[l]})),A=Ht&&Ht.__exportStar||function(i,a){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&t(a,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=hg(),r=Fa();A(Fa(),e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=(function(){function i(a,l,c){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=o),typeof a=="object"&&(l=a,a=void 0),this.callback=a??null,this.options=l??o,this.elementCB=c??null}return i.prototype.onparserinit=function(a){this.parser=a},i.prototype.onreset=function(){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},i.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},i.prototype.onerror=function(a){this.handleCallback(a)},i.prototype.onclosetag=function(){this.lastNode=null;var a=this.tagStack.pop();this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)},i.prototype.onopentag=function(a,l){var c=this.options.xmlMode?n.ElementType.Tag:void 0,g=new r.Element(a,l,void 0,c);this.addNode(g),this.tagStack.push(g)},i.prototype.ontext=function(a){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=a,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new r.Text(a);this.addNode(c),this.lastNode=c}},i.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=a;return}var l=new r.Comment(a);this.addNode(l),this.lastNode=l},i.prototype.oncommentend=function(){this.lastNode=null},i.prototype.oncdatastart=function(){var a=new r.Text(""),l=new r.CDATA([a]);this.addNode(l),a.parent=l,this.lastNode=a},i.prototype.oncdataend=function(){this.lastNode=null},i.prototype.onprocessinginstruction=function(a,l){var c=new r.ProcessingInstruction(a,l);this.addNode(c)},i.prototype.handleCallback=function(a){if(typeof this.callback=="function")this.callback(a,this.dom);else if(a)throw a},i.prototype.addNode=function(a){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),l.children.push(a),c&&(a.prev=c,c.next=a),a.parent=l,this.lastNode=null},i})();e.DomHandler=s,e.default=s})(Ht)),Ht}var ro={},Pa;function hh(){return Pa||(Pa=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(t,A){return t[A.toLowerCase()]=A,t},{}),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")})(ro)),ro}var Ma;function pg(){if(Ma)return zt;Ma=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.formatAttributes=n,zt.escapeSpecialCharacters=o,zt.revertEscapedCharacters=s,zt.formatDOM=i;var e=mg(),t=hh();function A(a){return t.CASE_SENSITIVE_TAG_NAMES_MAP[a]}function n(a){for(var l={},c=0,g=a.length;c<g;c++){var d=a[c];l[d.name]=d.value}return l}function r(a){a=a.toLowerCase();var l=A(a);return l||a}function o(a){return a.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function s(a){return a.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function i(a,l,c){l===void 0&&(l=null);for(var g=[],d,f=0,E=a.length;f<E;f++){var B=a[f];switch(B.nodeType){case 1:{var h=r(B.nodeName);d=new e.Element(h,n(B.attributes)),d.children=i(h==="template"?B.content.childNodes:B.childNodes,d);break}case 3:d=new e.Text(s(B.nodeValue));break;case 8:d=new e.Comment(B.nodeValue);break;default:continue}var Q=g[f-1]||null;Q&&(Q.next=d),d.parent=l,d.prev=Q,d.next=null,g.push(d)}return c&&(d=new e.ProcessingInstruction(c.substring(0,c.indexOf(" ")).toLowerCase(),c),d.next=g[0]||null,d.parent=l,g.unshift(d),g[1]&&(g[1].prev=g[0])),g}return zt}var ja;function mh(){if(ja)return zn;ja=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=B;var e=pg(),t="html",A="head",n="body",r=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,s=/<body[^]*>/i,i=function(h,Q){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},a=function(h,Q){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},l=typeof window=="object"&&window.DOMParser;if(typeof l=="function"){var c=new l,g="text/html";a=function(h,Q){return Q&&(h="<".concat(Q,">").concat(h,"</").concat(Q,">")),c.parseFromString(h,g)},i=a}if(typeof document=="object"&&document.implementation){var d=document.implementation.createHTMLDocument();i=function(h,Q){if(Q){var m=d.documentElement.querySelector(Q);return m&&(m.innerHTML=h),d}return d.documentElement.innerHTML=h,d}}var f=typeof document=="object"&&document.createElement("template"),E;f&&f.content&&(E=function(h){return f.innerHTML=h,f.content.childNodes});function B(h){var Q,m;h=(0,e.escapeSpecialCharacters)(h);var x=h.match(r),b=x&&x[1]?x[1].toLowerCase():"";switch(b){case t:{var I=a(h);if(!o.test(h)){var v=I.querySelector(A);(Q=v==null?void 0:v.parentNode)===null||Q===void 0||Q.removeChild(v)}if(!s.test(h)){var v=I.querySelector(n);(m=v==null?void 0:v.parentNode)===null||m===void 0||m.removeChild(v)}return I.querySelectorAll(t)}case A:case n:{var p=i(h).querySelectorAll(b);return s.test(h)&&o.test(h)?p[0].parentNode.childNodes:p}default:{if(E)return E(h);var v=i(h,n).querySelector(n);return v.childNodes}}}return zn}var Ta;function ph(){if(Ta)return oA;Ta=1;var e=oA&&oA.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(oA,"__esModule",{value:!0}),oA.default=r;var t=e(mh()),A=pg(),n=/<(![a-zA-Z\s]+)>/;function r(o){if(typeof o!="string")throw new TypeError("First argument must be a string");if(!o)return[];var s=o.match(n),i=s?s[1]:void 0;return(0,A.formatDOM)((0,t.default)(o),null,i)}return oA}var Hn={},Ve={},HA={},ka;function vh(){if(ka)return HA;ka=1;var e=0;HA.SAME=e;var t=1;return HA.CAMELCASE=t,HA.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},HA}var Ra;function wh(){if(Ra)return Ve;Ra=1;const e=0,t=1,A=2,n=3,r=4,o=5,s=6;function i(I){return l.hasOwnProperty(I)?l[I]:null}function a(I,v,p,y,N,T,O){this.acceptsBooleans=v===A||v===n||v===r,this.attributeName=y,this.attributeNamespace=N,this.mustUseProperty=p,this.propertyName=I,this.type=v,this.sanitizeURL=T,this.removeEmptyString=O}const l={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(I=>{l[I]=new a(I,e,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([I,v])=>{l[I]=new a(I,t,!1,v,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(I=>{l[I]=new a(I,A,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(I=>{l[I]=new a(I,A,!1,I,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(I=>{l[I]=new a(I,n,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(I=>{l[I]=new a(I,n,!0,I,null,!1,!1)}),["capture","download"].forEach(I=>{l[I]=new a(I,r,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(I=>{l[I]=new a(I,s,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(I=>{l[I]=new a(I,o,!1,I.toLowerCase(),null,!1,!1)});const g=/[\-\:]([a-z])/g,d=I=>I[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(I=>{const v=I.replace(g,d);l[v]=new a(v,t,!1,I,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(I=>{const v=I.replace(g,d);l[v]=new a(v,t,!1,I,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(I=>{const v=I.replace(g,d);l[v]=new a(v,t,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(I=>{l[I]=new a(I,t,!1,I.toLowerCase(),null,!1,!1)});const f="xlinkHref";l[f]=new a("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(I=>{l[I]=new a(I,t,!1,I.toLowerCase(),null,!0,!0)});const{CAMELCASE:E,SAME:B,possibleStandardNames:h}=vh(),m=":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)-["+m+"]*$")),b=Object.keys(h).reduce((I,v)=>{const p=h[v];return p===B?I[v]=v:p===E?I[v.toLowerCase()]=v:I[v]=p,I},{});return Ve.BOOLEAN=n,Ve.BOOLEANISH_STRING=A,Ve.NUMERIC=o,Ve.OVERLOADED_BOOLEAN=r,Ve.POSITIVE_NUMERIC=s,Ve.RESERVED=e,Ve.STRING=t,Ve.getPropertyInfo=i,Ve.isCustomAttribute=x,Ve.possibleStandardNames=b,Ve}var VA={},sA={},oo,La;function xh(){if(La)return oo;La=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,A=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,i=/^\s+|\s+$/g,a=`
20
20
  `,l="/",c="*",g="",d="comment",f="declaration";oo=function(B,h){if(typeof B!="string")throw new TypeError("First argument must be a string");if(!B)return[];h=h||{};var Q=1,m=1;function x(F){var D=F.match(t);D&&(Q+=D.length);var k=F.lastIndexOf(a);m=~k?F.length-k:m+F.length}function b(){var F={line:Q,column:m};return function(D){return D.position=new I(F),y(),D}}function I(F){this.start=F,this.end={line:Q,column:m},this.source=h.source}I.prototype.content=B;function v(F){var D=new Error(h.source+":"+Q+":"+m+": "+F);if(D.reason=F,D.filename=h.source,D.line=Q,D.column=m,D.source=B,!h.silent)throw D}function p(F){var D=F.exec(B);if(D){var k=D[0];return x(k),B=B.slice(k.length),D}}function y(){p(A)}function N(F){var D;for(F=F||[];D=T();)D!==!1&&F.push(D);return F}function T(){var F=b();if(!(l!=B.charAt(0)||c!=B.charAt(1))){for(var D=2;g!=B.charAt(D)&&(c!=B.charAt(D)||l!=B.charAt(D+1));)++D;if(D+=2,g===B.charAt(D-1))return v("End of comment missing");var k=B.slice(2,D-2);return m+=2,x(k),B=B.slice(D),m+=2,F({type:d,comment:k})}}function O(){var F=b(),D=p(n);if(D){if(T(),!p(r))return v("property missing ':'");var k=p(o),H=F({type:f,property:E(D[0].replace(e,g)),value:k?E(k[0].replace(e,g)):g});return p(s),H}}function z(){var F=[];N(F);for(var D;D=O();)D!==!1&&(F.push(D),N(F));return F}return y(),z()};function E(B){return B?B.replace(i,g):g}return oo}var Sa;function bh(){if(Sa)return sA;Sa=1;var e=sA&&sA.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(sA,"__esModule",{value:!0}),sA.default=A;const t=e(xh());function A(n,r){let o=null;if(!n||typeof n!="string")return o;const s=(0,t.default)(n),i=typeof r=="function";return s.forEach(a=>{if(a.type!=="declaration")return;const{property:l,value:c}=a;i?r(l,c,a):c&&(o=o||{},o[l]=c)}),o}return sA}var GA={},Oa;function yh(){if(Oa)return GA;Oa=1,Object.defineProperty(GA,"__esModule",{value:!0}),GA.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,A=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(l){return!l||A.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},i=function(l,c){return"".concat(c,"-")},a=function(l,c){return c===void 0&&(c={}),o(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(r,i):l=l.replace(n,i),l.replace(t,s))};return GA.camelCase=a,GA}var YA,za;function Dh(){if(za)return YA;za=1;var e=YA&&YA.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},t=e(bh()),A=yh();function n(r,o){var s={};return!r||typeof r!="string"||(0,t.default)(r,function(i,a){i&&a&&(s[(0,A.camelCase)(i,o)]=a)}),s}return n.default=n,YA=n,YA}var Ha;function vg(){return Ha||(Ha=1,(function(e){var t=VA&&VA.__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=i;var A=w,n=t(Dh()),r=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,g){return c.includes("-")?!r.has(c):!!(g&&typeof g.is=="string")}var s={reactCompat:!0};function i(c,g){if(typeof c=="string"){if(!c.trim()){g.style={};return}try{g.style=(0,n.default)(c,s)}catch{g.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(A.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var a=function(c){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(c.name)};e.canTextBeChildOfNode=a;var l=function(c){return c};e.returnFirstArg=l})(VA)),VA}var Va;function wg(){if(Va)return Hn;Va=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.default=o;var e=wh(),t=vg(),A=["checked","value"],n=["input","select","textarea"],r={reset:!0,submit:!0};function o(i,a){i===void 0&&(i={});var l={},c=!!(i.type&&r[i.type]);for(var g in i){var d=i[g];if((0,e.isCustomAttribute)(g)){l[g]=d;continue}var f=g.toLowerCase(),E=s(f);if(E){var B=(0,e.getPropertyInfo)(E);switch(A.includes(E)&&n.includes(a)&&!c&&(E=s("default"+f)),l[E]=d,B&&B.type){case e.BOOLEAN:l[E]=!0;break;case e.OVERLOADED_BOOLEAN:d===""&&(l[E]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[g]=d)}return(0,t.setStyleProp)(i.style,l),l}function s(i){return e.possibleStandardNames[i]}return Hn}var iA={},Ga;function Fh(){if(Ga)return iA;Ga=1;var e=iA&&iA.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(iA,"__esModule",{value:!0}),iA.default=o;var t=w,A=e(wg()),n=vg(),r={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function o(i,a){a===void 0&&(a={});for(var l=[],c=typeof a.replace=="function",g=a.transform||n.returnFirstArg,d=a.library||r,f=d.cloneElement,E=d.createElement,B=d.isValidElement,h=i.length,Q=0;Q<h;Q++){var m=i[Q];if(c){var x=a.replace(m,Q);if(B(x)){h>1&&(x=f(x,{key:x.key||Q})),l.push(g(x,m,Q));continue}}if(m.type==="text"){var b=!m.data.trim().length;if(b&&m.parent&&!(0,n.canTextBeChildOfNode)(m.parent)||a.trim&&b)continue;l.push(g(m.data,m,Q));continue}var I=m,v={};s(I)?((0,n.setStyleProp)(I.attribs.style,I.attribs),v=I.attribs):I.attribs&&(v=(0,A.default)(I.attribs,I.name));var p=void 0;switch(m.type){case"script":case"style":m.children[0]&&(v.dangerouslySetInnerHTML={__html:m.children[0].data});break;case"tag":m.name==="textarea"&&m.children[0]?v.defaultValue=m.children[0].data:m.children&&m.children.length&&(p=o(m.children,a));break;default:continue}h>1&&(v.key=Q),l.push(g(E(m.name,v,p),m,Q))}return l.length===1?l[0]:l}function s(i){return n.PRESERVE_CUSTOM_ATTRIBUTES&&i.type==="tag"&&(0,n.isCustomComponent)(i.name,i.attribs)}return iA}var Ya;function Nh(){return Ya||(Ya=1,(function(e){var t=zA&&zA.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=i;var A=t(ph());e.htmlToDOM=A.default;var n=t(wg());e.attributesToProps=n.default;var r=t(Fh());e.domToReact=r.default;var o=mg();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 i(a,l){if(typeof a!="string")throw new TypeError("First argument must be a string");return a?(0,r.default)((0,A.default)(a,(l==null?void 0:l.htmlparser2)||s),l):[]}})(zA)),zA}var Ph=Nh();const Ua=Mc(Ph),Mh=Ua.default||Ua;var ZA={exports:{}};/*! https://mths.be/he v1.2.0 by @mathias | MIT license */var jh=ZA.exports,Wa;function Th(){return Wa||(Wa=1,(function(e,t){(function(A){var n=t,r=e&&e.exports==n&&e,o=typeof ua=="object"&&ua;(o.global===o||o.window===o)&&(A=o);var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i=/[\x01-\x7F]/g,a=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\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"},g=/["&'<>`]/g,d={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},f=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,E=/[\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]/,B=/&(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,h={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:"‌"},Q={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:"ÿ"},m={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],b=String.fromCharCode,I={},v=I.hasOwnProperty,p=function(P,G){return v.call(P,G)},y=function(P,G){for(var $=-1,ne=P.length;++$<ne;)if(P[$]==G)return!0;return!1},N=function(P,G){if(!P)return G;var $={},ne;for(ne in G)$[ne]=p(P,ne)?P[ne]:G[ne];return $},T=function(P,G){var $="";return P>=55296&&P<=57343||P>1114111?(G&&F("character reference outside the permissible Unicode range"),"�"):p(m,P)?(G&&F("disallowed character reference"),m[P]):(G&&y(x,P)&&F("disallowed character reference"),P>65535&&(P-=65536,$+=b(P>>>10&1023|55296),P=56320|P&1023),$+=b(P),$)},O=function(P){return"&#x"+P.toString(16).toUpperCase()+";"},z=function(P){return"&#"+P+";"},F=function(P){throw Error("Parse error: "+P)},D=function(P,G){G=N(G,D.options);var $=G.strict;$&&E.test(P)&&F("forbidden code point");var ne=G.encodeEverything,L=G.useNamedReferences,j=G.allowUnsafeSymbols,U=G.decimal?z:O,V=function(R){return U(R.charCodeAt(0))};return ne?(P=P.replace(i,function(R){return L&&p(c,R)?"&"+c[R]+";":V(R)}),L&&(P=P.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),L&&(P=P.replace(l,function(R){return"&"+c[R]+";"}))):L?(j||(P=P.replace(g,function(R){return"&"+c[R]+";"})),P=P.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),P=P.replace(l,function(R){return"&"+c[R]+";"})):j||(P=P.replace(g,V)),P.replace(s,function(R){var W=R.charCodeAt(0),X=R.charCodeAt(1),Ae=(W-55296)*1024+X-56320+65536;return U(Ae)}).replace(a,V)};D.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var k=function(P,G){G=N(G,k.options);var $=G.strict;return $&&f.test(P)&&F("malformed character reference"),P.replace(B,function(ne,L,j,U,V,R,W,X,Ae){var le,ge,ae,K,Ne,Te;return L?(Ne=L,h[Ne]):j?(Ne=j,Te=U,Te&&G.isAttributeValue?($&&Te=="="&&F("`&` did not start a character reference"),ne):($&&F("named character reference was not terminated by a semicolon"),Q[Ne]+(Te||""))):V?(ae=V,ge=R,$&&!ge&&F("character reference was not terminated by a semicolon"),le=parseInt(ae,10),T(le,$)):W?(K=W,ge=X,$&&!ge&&F("character reference was not terminated by a semicolon"),le=parseInt(K,16),T(le,$)):($&&F("named character reference was not terminated by a semicolon"),ne)})};k.options={isAttributeValue:!1,strict:!1};var H=function(P){return P.replace(g,function(G){return d[G]})},S={version:"1.2.0",encode:D,decode:k,escape:H,unescape:k};if(n&&!n.nodeType)if(r)r.exports=S;else for(var M in S)p(S,M)&&(n[M]=S[M]);else A.he=S})(jh)})(ZA,ZA.exports)),ZA.exports}var kh=Th();const Rh=Mc(kh),xg=e=>{const[t,A]=w.useState(typeof window<"u"?window.innerWidth<=e:!1);return w.useEffect(()=>{const n=()=>A(window.innerWidth<=e);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e]),t},kt=w.forwardRef(({title:e,message:t,timestamp:A,icon:n,tag:r,showHelperButtons:o,onClickAskGenAI:s,onClickAskManager:i,askGenAITitle:a="Ask GenAI",askManagerTitle:l="Ask Manager",isStacked:c,className:g,showFeedbackArea:d,scenarioId:f,feedbackSubmitButtonHoverTitle:E,feddbackTitle:B,feedbackHelpfullButtonTitle:h,feedbackNotHelpfullButtonTitle:Q,feedbackCommentPlaceholder:m,feedbackSubmitText:x,feedbackThankYouMessage:b,feedbackCancelButtonTitle:I,sendFeedback:v,matchId:p,feedbackLoading:y,showThankYou:N},T)=>{const O=Rh.decode(t??""),[z,F]=w.useState(1),[D,k]=w.useState(!1),[H,S]=w.useState(""),M=xg(1050),P=()=>{k(L=>!L)},G=L=>{F(L)},$=({selectedFeedback:L,comment:j})=>{v==null||v({selectedFeedback:L??0,comment:j,scenarioId:f??"",matchId:p??""})},ne=()=>{F(1),S(""),k(!1)};return u.jsxs("div",{ref:T,className:_("flex flex-col w-full h-full min-h-0 rounded-xl md:rounded-3xl bg-primary-foreground md:bg-background gap-2 p-4 overflow-y-auto overflow-x-hidden",c?"shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] ":null,g),children:[u.jsxs("div",{className:"flex w-full flex-row items-center justify-between gap-6",children:[u.jsxs("div",{className:"flex flex-row",children:[n,u.jsx("div",{className:"ml-2 mr-1 text-base font-medium leading-6 text-foreground",children:e}),typeof r<"u"&&r]}),u.jsx("div",{className:"bg-foreground-08 rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-card-foreground",children:A})]}),u.jsx("div",{className:"text-sm md:text-base w-full font-normal text-foreground",children:u.jsxs("div",{className:"flex flex-row items-center justify-between gap-2",children:[u.jsx("div",{className:"flex-1 min-w-0 whitespace-pre-wrap break-words",children:Mh(O)}),d&&!N&&u.jsxs("button",{onClick:P,className:"relative group",title:E,style:{cursor:"pointer"},children:[u.jsx(Y,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),u.jsx("div",{className:"absolute top-1/2 right-full transform -translate-y-1/2 mr-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:E})]})]})}),D&&!N&&u.jsxs("div",{className:"mt-4 space-y-4",children:[u.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),u.jsxs("div",{className:`flex flex-wrap gap-2 ${M?"flex-col":"flex-row"}`,children:[u.jsxs("button",{onClick:()=>G(1),className:_("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",z===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:[u.jsx(Y,{name:"LikeHand",width:16,height:16,style:{color:z===1?"#22c55e":"#6b7280"}}),u.jsx("span",{className:"text-sm font-medium",children:h})]}),u.jsxs("button",{onClick:()=>G(0),className:_("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",z===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:[u.jsx(Y,{name:"DisLikeHand",width:16,height:16,style:{color:z===0?"#ef4444":"#6b7280"}}),u.jsx("span",{className:"text-sm font-medium",children:Q})]})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:B}),u.jsx("textarea",{value:H,maxLength:500,onChange:L=>S(L.target.value),placeholder:m,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}),u.jsxs("div",{className:"flex justify-end",children:[u.jsx(Qe,{onClick:ne,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:u.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:I})}),u.jsx(Qe,{onClick:()=>$({selectedFeedback:z??0,comment:H}),isLoading:y,disabled:y,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:u.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:x})})]})]})]}),N&&u.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[u.jsx("span",{className:"text-sm font-medium",children:b}),u.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:u.jsx(Y,{name:"Check",width:12,height:12,style:{color:"white"}})})]}),o&&u.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[u.jsx(Qe,{onClick:s,size:"sm",className:"bg-primary gap-2",children:u.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[u.jsx(Y,{name:"Sparkles",width:16,height:16,className:"text-background"}),a]})}),u.jsx(Qe,{onClick:i,size:"sm",className:"bg-primary gap-2",children:u.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[u.jsx(Y,{name:"HandRaised",width:16,height:16,className:"text-background"}),l]})})]})]})});kt.displayName="MomentItem";const yA=({sender:e,message:t,timestamp:A,icon:n,type:r,onClickAskAI:o,onClickAskManager:s,managerReplyTitle:i,showAskManagerButton:a,showAskAIButton:l,managerReplyMessage:c,additionalContent:g,onClickShowOriginalMessage:d,originalMessage:f,onResend:E,sentimentResult:B})=>{const h=()=>u.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[u.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:[u.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),f&&f!==""&&u.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2 ",onClick:d,style:{color:"#3BA7FF"},children:f}),u.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A}),n&&u.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]}),u.jsx(qt,{type:"secondary",fullName:e,sentimentResult:B})]}),Q=()=>u.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[u.jsx(qt,{fullName:e,sentimentResult:B}),u.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:[u.jsx("div",{className:"text-sm font-normal text-client-chat-foreground",children:t}),u.jsxs("div",{className:"flex flex-row gap-2",children:[l&&u.jsx(Qe,{name:"ai-helper",role:"button",onClick:o,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:u.jsx(Y,{name:"Sparkles",width:24,height:24,className:"text-client-chat-link"})}),a&&u.jsx(Qe,{name:"manager-helper",role:"button",onClick:s,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:u.jsx(Y,{name:"ChatBubble",width:24,height:24,className:"text-client-chat-link"})})]}),f&&f!==""&&u.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2",onClick:d,style:{color:"#3BA7FF"},children:f}),u.jsx("div",{className:"text-xs w-full font-normal text-client-chat-foreground text-right",children:A}),n&&u.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]})]}),m=()=>u.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[u.jsxs("div",{className:"rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-border",children:[u.jsxs("div",{className:"p-3 relative flex w-full flex-col gap-3 items-start bg-transparent",children:[u.jsxs("div",{className:"flex flex-row items-center justify-between w-full gap-3 text-foreground",children:[i,u.jsx("div",{className:"w-fit bg-destructive rounded-md p-1 text-[15px] text-primary-foreground font-normal",children:A})]}),u.jsx("div",{className:"text-sm font-medium text-foreground",children:c})]}),u.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:[u.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),u.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A})]})]}),u.jsx(qt,{type:"secondary",fullName:e,sentimentResult:B})]}),x=()=>{const v=async()=>{await sE(t)};return u.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[u.jsx("div",{className:"w-10 h-10 flex rounded-full items-center justify-center bg-warning-background",children:u.jsx(Y,{name:"Sparkles",width:24,height:24,className:"text-secondary-brew"})}),u.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:[u.jsx("div",{className:"text-sm font-medium text-secondary-brew-2",children:t}),u.jsxs("div",{className:"flex flex-row items-center justify-between w-full",children:[u.jsxs("div",{className:"flex flex-row items-start justify-center gap-1",children:[E&&u.jsx(Qe,{"aria-label":"Resend",className:"w-8 h-8 bg-transparent p-0 group",onClick:E,children:u.jsx(Y,{name:"ArrowPathRoundedSquare",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})}),u.jsx(Qe,{"aria-label":"Copy",className:"w-8 h-8 bg-transparent p-0 group",onClick:v,children:u.jsx(Y,{name:"Square2Stack",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})})]}),u.jsx("div",{className:"text-xs font-normal text-secondary-brew-2",children:A})]})]})]})},b=()=>u.jsxs("div",{className:"bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col",children:[u.jsxs("div",{className:"text-foreground text-base font-medium flex items-center justify-between",children:[u.jsxs("div",{className:"flex gap-2",children:[n," ",t]}),u.jsx("span",{className:"bg-destructive text-primary-foreground rounded px-1 py-0.5 text-sm font-normal",children:A})]}),u.jsx("div",{className:"text-popover-foreground",children:g})]});return{MESSAGE:h(),REPLY:Q(),MANAGER_REPLY:m(),AI_REPLY:x(),INFO_MESSAGE:b()}[r]},Lh=({icon:e,title:t,summary:A})=>u.jsxs("div",{className:"bg-warning-background rounded-2xl pt-4 pb-6 px-6 flex flex-col gap-1 items-start w-full",children:[u.jsxs("div",{className:"flex flex-row gap-2 items-center w-full",children:[e&&u.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}),u.jsx("div",{className:"font-medium text-base text-secondary-brew-2",children:t})]}),u.jsx("div",{className:"text-sm font-normal text-secondary-brew-2",children:A})]}),xt=({options:e,value:t,onValueChange:A,placeholder:n="Seçiniz...",disabled:r=!1,className:o,searchPlaceholder:s="Ara...",emptyMessage:i="Sonuç bulunamadı",label:a})=>{const[l,c]=w.useState(!1),[g,d]=w.useState(""),[f,E]=w.useState(e.find(I=>I.value===t)),B=w.useRef(null),h=w.useRef(null);w.useEffect(()=>{const I=v=>{B.current&&!B.current.contains(v.target)&&(c(!1),d(""))};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]),w.useEffect(()=>{const I=e.find(v=>v.value===t);E(I)},[t,e]);const Q=e.filter(I=>I.label.toLowerCase().includes(g.toLowerCase())&&!I.disabled),m=I=>{E(I),A==null||A(I),c(!1),d("")},x=()=>{r||(c(!l),l||setTimeout(()=>{var I;return(I=h.current)==null?void 0:I.focus()},100))},b=I=>{I.key==="Escape"&&(c(!1),d(""))};return u.jsxs("div",{className:_("relative",o),ref:B,children:[a&&u.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:a}),u.jsxs("div",{className:"relative",children:[u.jsxs(En,{type:"button",variant:"outline",className:_("w-full justify-between",!f&&"text-muted-foreground"),onClick:x,disabled:r,children:[u.jsx("span",{className:"truncate",children:f?f.label:n}),u.jsx(Y,{name:"ChevronDown",className:_("h-4 w-4 transition-transform duration-200 ml-2",l&&"rotate-180")})]}),l&&u.jsxs("div",{className:"absolute z-50 w-full top-full mt-1 bg-background border border-border rounded-md shadow-lg transform-none",children:[u.jsx("div",{className:"p-2 border-b border-border",children:u.jsx(Fs,{ref:h,placeholder:s,value:g,onChange:I=>d(I.target.value),onKeyDown:b,className:"h-8"})}),u.jsx("div",{className:"max-h-60 overflow-auto",children:Q.length>0?Q.map(I=>u.jsx("button",{type:"button",className:_("w-full px-3 py-2 text-left text-sm hover:bg-accent hover:text-accent-foreground transition-colors",(f==null?void 0:f.value)===I.value&&"bg-accent text-accent-foreground"),onClick:()=>m(I),children:I.label},I.value)):u.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:i})})]})]})]})},Sh=({isStandalone:e,messages:t,onClickTranslation:A,conversationSummary:n,isTranslationShown:r=!0,translationStatus:o="idle",title:s="Transcript",startTranslationText:i="Start Translation",stopTranslationText:a="Stop Translation",sourceLanguagePlaceholder:l="Auto-detect",targetLanguagePlaceholder:c="English",sourceLanguageSearchPlaceholder:g="Search Source Language",targetLanguageSearchPlaceholder:d="Search Target Language",sourceLanguageOptions:f=[],targetLanguageOptions:E=[],sourceLanguage:B,targetLanguage:h,onSourceLanguageChange:Q,onTargetLanguageChange:m,showTranslationButtonText:x=!0,translationButtonClassName:b="row",showTranslationButtonGroup:I=!0})=>{const v=w.useRef(null),[p,y]=w.useState(!0),[N,T]=w.useState(!0),O=w.useRef(t.length),z=w.useRef(t),F=(S,M)=>u.jsxs(Us,{children:[u.jsx(Ws,{asChild:!0,children:u.jsx("span",{className:"inline-flex",children:u.jsx(Y,{name:S,width:40,height:40})})}),u.jsx(Xs,{sideOffset:6,className:"bg-background text-foreground border px-2 py-1 text-xs font-medium",children:M})]}),D=w.useCallback(()=>{if(!v.current)return!1;const{scrollTop:S,scrollHeight:M,clientHeight:P}=v.current;return M-S-P<100},[]),k=w.useCallback(()=>{const S=D();T(S)},[D]),H=w.useCallback(()=>{v.current&&(v.current.scrollTop=v.current.scrollHeight)},[]);return w.useEffect(()=>{const S=t.length>O.current,M=t!==z.current;(S||M)&&N&&setTimeout(()=>{H()},100),O.current=t.length,z.current=t},[t,N,H]),w.useEffect(()=>{const S=v.current;if(S)return S.addEventListener("scroll",k),()=>{S.removeEventListener("scroll",k)}},[k]),w.useEffect(()=>{v.current&&T(D())},[D]),w.useEffect(()=>{let S;return o==="translating"?S=setInterval(()=>{y(M=>!M)},1e3):y(!0),()=>{S&&clearInterval(S)}},[o]),u.jsxs("div",{className:"w-full flex flex-col h-full",children:[u.jsx("div",{className:"w-full flex-shrink-0 mb-3 md:mb-[26px]",children:e?u.jsxs("div",{className:"w-full flex flex-row items-center justify-between",children:[s&&u.jsx("div",{className:"text-lg font-medium text-foreground",children:s}),r&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:`hidden md:flex gap-2 flex-${b}`,children:[I&&u.jsxs("div",{className:"flex flex-row items-center gap-4",children:[u.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:l,searchPlaceholder:g,className:"w-30"}),F("CustomerIcon","Customer"),u.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:u.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),F("AgentIcon","Agent"),u.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:c,searchPlaceholder:d,className:"w-30"})]}),I&&u.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-6 py-3 h-10 ",id:"translation-button",children:[u.jsx(Y,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),u.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[u.jsx("span",{id:"translation-button-text",children:x&&(o==="idle"?i:a)}),u.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),u.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&u.jsxs(u.Fragment,{children:[u.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:l,searchPlaceholder:g,className:"w-32"}),F("CustomerIcon","Customer"),u.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:u.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),F("AgentIcon","Agent"),u.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:c,searchPlaceholder:d,className:"w-32"})]}),I&&u.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",id:"translation-button",children:[u.jsx(Y,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),u.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:u.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})]}):u.jsx("div",{className:"w-full flex items-center justify-center",children:r&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:`hidden md:flex items-center gap-2 flex-${b}`,children:[I&&u.jsxs("div",{className:"flex flex-row items-center gap-4",children:[u.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:l,searchPlaceholder:g,className:"w-30"}),F("CustomerIcon","Customer"),u.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:u.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),F("AgentIcon","Agent"),u.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:c,searchPlaceholder:d,className:"w-30"})]}),I&&u.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-3 py-3 h-10 ",id:"translation-button",children:[u.jsx(Y,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),u.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[u.jsx("span",{id:"translation-button-text",children:x&&(o==="idle"?i:a)}),u.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),u.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&u.jsxs(u.Fragment,{children:[u.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:l,searchPlaceholder:g,className:"w-32"}),F("CustomerIcon","Customer"),u.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:u.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),F("AgentIcon","Agent"),u.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:c,searchPlaceholder:d,className:"w-32"})]}),I&&u.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",id:"translation-button",children:[u.jsx(Y,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),u.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:u.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})})}),u.jsx("div",{ref:v,className:"flex-grow overflow-y-auto w-full h-[calc(100%-48px)] max-h-[calc(100vh-68px)] sm:max-h-[calc(100vh-200px)]",children:u.jsxs("div",{className:"flex flex-col w-full items-center justify-center pb-4 ",children:[u.jsx("div",{className:`flex flex-col gap-6 w-full pb-8 ${n?"border-b border-border":""}`,id:"transcript-container",children:t.map(S=>u.jsx(yA,{...S},S.id))}),u.jsx("div",{className:"w-full flex pt-8 max-w-11/12",children:n&&u.jsx(Lh,{...n})})]})})]})},Oh=({rate:e})=>{const t=w.useMemo(()=>{if(e<=20)return u.jsx(Y,{name:"AngryFace",width:32,height:32});if(e>20&&e<=40)return u.jsx(Y,{name:"ConfusedFace",width:32,height:32});if(e>40&&e<=60)return u.jsx(Y,{name:"NeutralFaceIcon",width:32,height:32});if(e>60&&e<=80)return u.jsx(Y,{name:"Smiling",width:32,height:32});if(e>80&&e<=100)return u.jsx(Y,{name:"SmilingWithHearts",width:32,height:32})},[e]),A=w.useMemo(()=>`${Math.max(0,Math.min(100,e))}%`,[e]);return u.jsxs("div",{className:"w-full relative h-3 rounded-full",children:[u.jsx("div",{className:"w-full h-full absolute top-0 left-0 rounded-full sentiment-gradient"}),u.jsx("div",{style:{left:A,transform:"translateX(-50%)"},className:"absolute z-10 -top-[10px]",children:t})]})},bg={light:{"primary-foreground":"#F5F5F5"},dark:{"primary-hover":"#7473C8"}},zh=({label:e,checked:t,onClick:A,id:n})=>u.jsxs("div",{onClick:()=>A(n),className:"flex cursor-pointer flex-row gap-3 items-center justify-center",children:[u.jsx("div",{className:_("flex items-center justify-center rounded-full w-5 h-5",t?"bg-success-hover":"bg-background border-[7px] border-border"),children:t&&u.jsx(Y,{name:"Check",width:16,height:16,color:bg.light["primary-foreground"],"data-testid":"check-icon"})}),u.jsx("span",{className:_("text-sm font-normal",t?"line-through text-muted-foreground":"text-foreground"),children:e})]});var Lr="Collapsible",[Hh]=ze(Lr),[Vh,Zs]=Hh(Lr),yg=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,open:n,defaultOpen:r,disabled:o,onOpenChange:s,...i}=e,[a,l]=jt({prop:n,defaultProp:r??!1,onChange:s,caller:Lr});return u.jsx(Vh,{scope:A,disabled:o,contentId:ot(),open:a,onOpenToggle:C.useCallback(()=>l(c=>!c),[l]),children:u.jsx(se.div,{"data-state":Ks(a),"data-disabled":o?"":void 0,...i,ref:t})})});yg.displayName=Lr;var Dg="CollapsibleTrigger",Fg=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,...n}=e,r=Zs(Dg,A);return u.jsx(se.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Ks(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:t,onClick:J(e.onClick,r.onOpenToggle)})});Fg.displayName=Dg;var qs="CollapsibleContent",Ng=C.forwardRef((e,t)=>{const{forceMount:A,...n}=e,r=Zs(qs,e.__scopeCollapsible);return u.jsx(He,{present:A||r.open,children:({present:o})=>u.jsx(Gh,{...n,ref:t,present:o})})});Ng.displayName=qs;var Gh=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,present:n,children:r,...o}=e,s=Zs(qs,A),[i,a]=C.useState(n),l=C.useRef(null),c=Ce(t,l),g=C.useRef(0),d=g.current,f=C.useRef(0),E=f.current,B=s.open||i,h=C.useRef(B),Q=C.useRef(void 0);return C.useEffect(()=>{const m=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(m)},[]),Ze(()=>{const m=l.current;if(m){Q.current=Q.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const x=m.getBoundingClientRect();g.current=x.height,f.current=x.width,h.current||(m.style.transitionDuration=Q.current.transitionDuration,m.style.animationName=Q.current.animationName),a(n)}},[s.open,n]),u.jsx(se.div,{"data-state":Ks(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!B,...o,ref:c,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:B&&r})});function Ks(e){return e?"open":"closed"}var Yh=yg;function Zo({...e}){return u.jsx(Yh,{"data-slot":"collapsible",...e})}function qo({...e}){return u.jsx(Fg,{"data-slot":"collapsible-trigger",...e})}function Ko({...e}){return u.jsx(Ng,{"data-slot":"collapsible-content",...e})}const Pg=({id:e,title:t="GenAI Support",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>u.jsx(kt,{title:t,icon:u.jsx(Y,{name:"Sparkles",width:24,height:24,className:"text-foreground"}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Mg=({id:e,title:t="Great Job!",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>u.jsx(kt,{title:t,icon:u.jsx(Y,{name:"ClappingHands",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),jg=({id:e,title:t="Legal Thread",message:A,timestamp:n,showHelperButtons:r=!1,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:i="Ask GenAI",askManagerTitle:a="Ask Manager"})=>u.jsx(kt,{title:t,icon:u.jsx(Y,{name:"SkullAndCrossbones",width:24,height:24}),id:e,message:A,timestamp:n,showHelperButtons:r,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:i,askManagerTitle:a}),Tg=({title:e="Task Done",message:t,timestamp:A,id:n,taskCount:r,completedTaskCount:o,askGenAITitle:s="Ask GenAI",askManagerTitle:i="Ask Manager"})=>{const a=w.useMemo(()=>r<10?`0${r}`:r,[r]),l=w.useMemo(()=>o<10?`0${o}`:o,[o]);return u.jsx(kt,{id:n,icon:u.jsx(Y,{name:"Done",width:24,height:24}),title:e,message:t,timestamp:A,tag:r!==0&&u.jsx("div",{className:"bg-foreground-08 rounded-4xl p-1 flex items-center justify-center text-[11px] font-normal text-foreground",children:`${l} / ${a}`}),askGenAITitle:s,askManagerTitle:i})},kg=({id:e,title:t="Unhappy Customer",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>u.jsx(kt,{title:t,icon:u.jsx(Y,{name:"PoutingFace",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Rg=({id:e,title:t,message:A,timestamp:n,icon:r,askGenAITitle:o="Ask GenAI",askManagerTitle:s="Ask Manager",showFeedbackArea:i,scenarioId:a,feddbackTitle:l,feedbackHelpfullButtonTitle:c,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:d,feedbackSubmitText:f,feedbackThankYouMessage:E,feedbackSubmitButtonHoverTitle:B,feedbackCancelButtonTitle:h,showThankYou:Q,sendFeedback:m,matchId:x,feedbackLoading:b})=>u.jsx(kt,{id:e,title:t,message:A,timestamp:n,icon:r,scenarioId:a,askGenAITitle:o,askManagerTitle:s,showFeedbackArea:i,feddbackTitle:l,feedbackHelpfullButtonTitle:c,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:d,feedbackSubmitText:f,feedbackThankYouMessage:E,feedbackSubmitButtonHoverTitle:B,feedbackCancelButtonTitle:h,matchId:x,sendFeedback:m,feedbackLoading:b,showThankYou:Q});/**
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:"‌"},Q={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:"ÿ"},m={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],b=String.fromCharCode,I={},v=I.hasOwnProperty,p=function(P,G){return v.call(P,G)},y=function(P,G){for(var $=-1,ne=P.length;++$<ne;)if(P[$]==G)return!0;return!1},N=function(P,G){if(!P)return G;var $={},ne;for(ne in G)$[ne]=p(P,ne)?P[ne]:G[ne];return $},T=function(P,G){var $="";return P>=55296&&P<=57343||P>1114111?(G&&F("character reference outside the permissible Unicode range"),"�"):p(m,P)?(G&&F("disallowed character reference"),m[P]):(G&&y(x,P)&&F("disallowed character reference"),P>65535&&(P-=65536,$+=b(P>>>10&1023|55296),P=56320|P&1023),$+=b(P),$)},O=function(P){return"&#x"+P.toString(16).toUpperCase()+";"},z=function(P){return"&#"+P+";"},F=function(P){throw Error("Parse error: "+P)},D=function(P,G){G=N(G,D.options);var $=G.strict;$&&E.test(P)&&F("forbidden code point");var ne=G.encodeEverything,L=G.useNamedReferences,j=G.allowUnsafeSymbols,U=G.decimal?z:O,V=function(R){return U(R.charCodeAt(0))};return ne?(P=P.replace(i,function(R){return L&&p(c,R)?"&"+c[R]+";":V(R)}),L&&(P=P.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),L&&(P=P.replace(l,function(R){return"&"+c[R]+";"}))):L?(j||(P=P.replace(g,function(R){return"&"+c[R]+";"})),P=P.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),P=P.replace(l,function(R){return"&"+c[R]+";"})):j||(P=P.replace(g,V)),P.replace(s,function(R){var W=R.charCodeAt(0),X=R.charCodeAt(1),Ae=(W-55296)*1024+X-56320+65536;return U(Ae)}).replace(a,V)};D.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var k=function(P,G){G=N(G,k.options);var $=G.strict;return $&&f.test(P)&&F("malformed character reference"),P.replace(B,function(ne,L,j,U,V,R,W,X,Ae){var le,ge,ae,K,Ne,Te;return L?(Ne=L,h[Ne]):j?(Ne=j,Te=U,Te&&G.isAttributeValue?($&&Te=="="&&F("`&` did not start a character reference"),ne):($&&F("named character reference was not terminated by a semicolon"),Q[Ne]+(Te||""))):V?(ae=V,ge=R,$&&!ge&&F("character reference was not terminated by a semicolon"),le=parseInt(ae,10),T(le,$)):W?(K=W,ge=X,$&&!ge&&F("character reference was not terminated by a semicolon"),le=parseInt(K,16),T(le,$)):($&&F("named character reference was not terminated by a semicolon"),ne)})};k.options={isAttributeValue:!1,strict:!1};var H=function(P){return P.replace(g,function(G){return d[G]})},S={version:"1.2.0",encode:D,decode:k,escape:H,unescape:k};if(n&&!n.nodeType)if(r)r.exports=S;else for(var M in S)p(S,M)&&(n[M]=S[M]);else A.he=S})(jh)})(ZA,ZA.exports)),ZA.exports}var kh=Th();const Rh=Mc(kh),xg=e=>{const[t,A]=w.useState(typeof window<"u"?window.innerWidth<=e:!1);return w.useEffect(()=>{const n=()=>A(window.innerWidth<=e);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e]),t},kt=w.forwardRef(({title:e,message:t,timestamp:A,icon:n,tag:r,showHelperButtons:o,onClickAskGenAI:s,onClickAskManager:i,askGenAITitle:a="Ask GenAI",askManagerTitle:l="Ask Manager",isStacked:c,className:g,showFeedbackArea:d,scenarioId:f,feedbackSubmitButtonHoverTitle:E,feddbackTitle:B,feedbackHelpfullButtonTitle:h,feedbackNotHelpfullButtonTitle:Q,feedbackCommentPlaceholder:m,feedbackSubmitText:x,feedbackThankYouMessage:b,feedbackCancelButtonTitle:I,sendFeedback:v,matchId:p,feedbackLoading:y,showThankYou:N},T)=>{const O=Rh.decode(t??""),[z,F]=w.useState(1),[D,k]=w.useState(!1),[H,S]=w.useState(""),M=xg(1050),P=()=>{k(L=>!L)},G=L=>{F(L)},$=({selectedFeedback:L,comment:j})=>{v==null||v({selectedFeedback:L??0,comment:j,scenarioId:f??"",matchId:p??""})},ne=()=>{F(1),S(""),k(!1)};return u.jsxs("div",{ref:T,className:_("flex flex-col w-full h-full min-h-0 rounded-xl md:rounded-3xl bg-primary-foreground md:bg-background gap-2 p-4 overflow-y-auto overflow-x-hidden",c?"shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] ":null,g),children:[u.jsxs("div",{className:"flex w-full flex-row items-center justify-between gap-6",children:[u.jsxs("div",{className:"flex flex-row",children:[n,u.jsx("div",{className:"ml-2 mr-1 text-base font-medium leading-6 text-foreground",children:e}),typeof r<"u"&&r]}),u.jsx("div",{className:"bg-foreground-08 rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-card-foreground",children:A})]}),u.jsx("div",{className:"text-sm md:text-base w-full font-normal text-foreground",children:u.jsxs("div",{className:"flex flex-row items-center justify-between gap-2",children:[u.jsx("div",{className:"flex-1 min-w-0 whitespace-pre-wrap break-words",children:Mh(O)}),d&&!N&&u.jsxs("button",{onClick:P,className:"relative group",title:E,style:{cursor:"pointer"},children:[u.jsx(Y,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),u.jsx("div",{className:"absolute top-1/2 right-full transform -translate-y-1/2 mr-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:E})]})]})}),D&&!N&&u.jsxs("div",{className:"mt-4 space-y-4",children:[u.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),u.jsxs("div",{className:`flex flex-wrap gap-2 ${M?"flex-col":"flex-row"}`,children:[u.jsxs("button",{onClick:()=>G(1),className:_("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",z===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:[u.jsx(Y,{name:"LikeHand",width:16,height:16,style:{color:z===1?"#22c55e":"#6b7280"}}),u.jsx("span",{className:"text-sm font-medium",children:h})]}),u.jsxs("button",{onClick:()=>G(0),className:_("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",z===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:[u.jsx(Y,{name:"DisLikeHand",width:16,height:16,style:{color:z===0?"#ef4444":"#6b7280"}}),u.jsx("span",{className:"text-sm font-medium",children:Q})]})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:B}),u.jsx("textarea",{value:H,maxLength:500,onChange:L=>S(L.target.value),placeholder:m,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}),u.jsxs("div",{className:"flex justify-end",children:[u.jsx(Qe,{onClick:ne,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:u.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:I})}),u.jsx(Qe,{onClick:()=>$({selectedFeedback:z??0,comment:H}),isLoading:y,disabled:y,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:u.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:x})})]})]})]}),N&&u.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[u.jsx("span",{className:"text-sm font-medium",children:b}),u.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:u.jsx(Y,{name:"Check",width:12,height:12,style:{color:"white"}})})]}),o&&u.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[u.jsx(Qe,{onClick:s,size:"sm",className:"bg-primary gap-2",children:u.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[u.jsx(Y,{name:"Sparkles",width:16,height:16,className:"text-background"}),a]})}),u.jsx(Qe,{onClick:i,size:"sm",className:"bg-primary gap-2",children:u.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[u.jsx(Y,{name:"HandRaised",width:16,height:16,className:"text-background"}),l]})})]})]})});kt.displayName="MomentItem";const yA=({sender:e,message:t,timestamp:A,icon:n,type:r,onClickAskAI:o,onClickAskManager:s,managerReplyTitle:i,showAskManagerButton:a,showAskAIButton:l,managerReplyMessage:c,additionalContent:g,onClickShowOriginalMessage:d,originalMessage:f,onResend:E,sentimentResult:B,positiveHoverText:h,negativeHoverText:Q})=>{const m=()=>u.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[u.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:[u.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),f&&f!==""&&u.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2 ",onClick:d,style:{color:"#3BA7FF"},children:f}),u.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A}),n&&u.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]}),u.jsx(qt,{type:"secondary",fullName:e,sentimentResult:B,positiveHoverText:h,negativeHoverText:Q})]}),x=()=>u.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[u.jsx(qt,{fullName:e,sentimentResult:B,positiveHoverText:h,negativeHoverText:Q}),u.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:[u.jsx("div",{className:"text-sm font-normal text-client-chat-foreground",children:t}),u.jsxs("div",{className:"flex flex-row gap-2",children:[l&&u.jsx(Qe,{name:"ai-helper",role:"button",onClick:o,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:u.jsx(Y,{name:"Sparkles",width:24,height:24,className:"text-client-chat-link"})}),a&&u.jsx(Qe,{name:"manager-helper",role:"button",onClick:s,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:u.jsx(Y,{name:"ChatBubble",width:24,height:24,className:"text-client-chat-link"})})]}),f&&f!==""&&u.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2",onClick:d,style:{color:"#3BA7FF"},children:f}),u.jsx("div",{className:"text-xs w-full font-normal text-client-chat-foreground text-right",children:A}),n&&u.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]})]}),b=()=>u.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[u.jsxs("div",{className:"rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-border",children:[u.jsxs("div",{className:"p-3 relative flex w-full flex-col gap-3 items-start bg-transparent",children:[u.jsxs("div",{className:"flex flex-row items-center justify-between w-full gap-3 text-foreground",children:[i,u.jsx("div",{className:"w-fit bg-destructive rounded-md p-1 text-[15px] text-primary-foreground font-normal",children:A})]}),u.jsx("div",{className:"text-sm font-medium text-foreground",children:c})]}),u.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:[u.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),u.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A})]})]}),u.jsx(qt,{type:"secondary",fullName:e,sentimentResult:B,positiveHoverText:h,negativeHoverText:Q})]}),I=()=>{const y=async()=>{await sE(t)};return u.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[u.jsx("div",{className:"w-10 h-10 flex rounded-full items-center justify-center bg-warning-background",children:u.jsx(Y,{name:"Sparkles",width:24,height:24,className:"text-secondary-brew"})}),u.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:[u.jsx("div",{className:"text-sm font-medium text-secondary-brew-2",children:t}),u.jsxs("div",{className:"flex flex-row items-center justify-between w-full",children:[u.jsxs("div",{className:"flex flex-row items-start justify-center gap-1",children:[E&&u.jsx(Qe,{"aria-label":"Resend",className:"w-8 h-8 bg-transparent p-0 group",onClick:E,children:u.jsx(Y,{name:"ArrowPathRoundedSquare",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})}),u.jsx(Qe,{"aria-label":"Copy",className:"w-8 h-8 bg-transparent p-0 group",onClick:y,children:u.jsx(Y,{name:"Square2Stack",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})})]}),u.jsx("div",{className:"text-xs font-normal text-secondary-brew-2",children:A})]})]})]})},v=()=>u.jsxs("div",{className:"bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col",children:[u.jsxs("div",{className:"text-foreground text-base font-medium flex items-center justify-between",children:[u.jsxs("div",{className:"flex gap-2",children:[n," ",t]}),u.jsx("span",{className:"bg-destructive text-primary-foreground rounded px-1 py-0.5 text-sm font-normal",children:A})]}),u.jsx("div",{className:"text-popover-foreground",children:g})]});return{MESSAGE:m(),REPLY:x(),MANAGER_REPLY:b(),AI_REPLY:I(),INFO_MESSAGE:v()}[r]},Lh=({icon:e,title:t,summary:A})=>u.jsxs("div",{className:"bg-warning-background rounded-2xl pt-4 pb-6 px-6 flex flex-col gap-1 items-start w-full",children:[u.jsxs("div",{className:"flex flex-row gap-2 items-center w-full",children:[e&&u.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}),u.jsx("div",{className:"font-medium text-base text-secondary-brew-2",children:t})]}),u.jsx("div",{className:"text-sm font-normal text-secondary-brew-2",children:A})]}),xt=({options:e,value:t,onValueChange:A,placeholder:n="Seçiniz...",disabled:r=!1,className:o,searchPlaceholder:s="Ara...",emptyMessage:i="Sonuç bulunamadı",label:a})=>{const[l,c]=w.useState(!1),[g,d]=w.useState(""),[f,E]=w.useState(e.find(I=>I.value===t)),B=w.useRef(null),h=w.useRef(null);w.useEffect(()=>{const I=v=>{B.current&&!B.current.contains(v.target)&&(c(!1),d(""))};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]),w.useEffect(()=>{const I=e.find(v=>v.value===t);E(I)},[t,e]);const Q=e.filter(I=>I.label.toLowerCase().includes(g.toLowerCase())&&!I.disabled),m=I=>{E(I),A==null||A(I),c(!1),d("")},x=()=>{r||(c(!l),l||setTimeout(()=>{var I;return(I=h.current)==null?void 0:I.focus()},100))},b=I=>{I.key==="Escape"&&(c(!1),d(""))};return u.jsxs("div",{className:_("relative",o),ref:B,children:[a&&u.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:a}),u.jsxs("div",{className:"relative",children:[u.jsxs(En,{type:"button",variant:"outline",className:_("w-full justify-between",!f&&"text-muted-foreground"),onClick:x,disabled:r,children:[u.jsx("span",{className:"truncate",children:f?f.label:n}),u.jsx(Y,{name:"ChevronDown",className:_("h-4 w-4 transition-transform duration-200 ml-2",l&&"rotate-180")})]}),l&&u.jsxs("div",{className:"absolute z-50 w-full top-full mt-1 bg-background border border-border rounded-md shadow-lg transform-none",children:[u.jsx("div",{className:"p-2 border-b border-border",children:u.jsx(Fs,{ref:h,placeholder:s,value:g,onChange:I=>d(I.target.value),onKeyDown:b,className:"h-8"})}),u.jsx("div",{className:"max-h-60 overflow-auto",children:Q.length>0?Q.map(I=>u.jsx("button",{type:"button",className:_("w-full px-3 py-2 text-left text-sm hover:bg-accent hover:text-accent-foreground transition-colors",(f==null?void 0:f.value)===I.value&&"bg-accent text-accent-foreground"),onClick:()=>m(I),children:I.label},I.value)):u.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:i})})]})]})]})},Sh=({isStandalone:e,messages:t,onClickTranslation:A,conversationSummary:n,isTranslationShown:r=!0,translationStatus:o="idle",title:s="Transcript",startTranslationText:i="Start Translation",stopTranslationText:a="Stop Translation",sourceLanguagePlaceholder:l="Auto-detect",targetLanguagePlaceholder:c="English",sourceLanguageSearchPlaceholder:g="Search Source Language",targetLanguageSearchPlaceholder:d="Search Target Language",sourceLanguageOptions:f=[],targetLanguageOptions:E=[],sourceLanguage:B,targetLanguage:h,onSourceLanguageChange:Q,onTargetLanguageChange:m,showTranslationButtonText:x=!0,translationButtonClassName:b="row",showTranslationButtonGroup:I=!0})=>{const v=w.useRef(null),[p,y]=w.useState(!0),[N,T]=w.useState(!0),O=w.useRef(t.length),z=w.useRef(t),F=(S,M)=>u.jsxs(Us,{children:[u.jsx(Ws,{asChild:!0,children:u.jsx("span",{className:"inline-flex",children:u.jsx(Y,{name:S,width:40,height:40})})}),u.jsx(Xs,{sideOffset:6,className:"bg-background text-foreground border px-2 py-1 text-xs font-medium",children:M})]}),D=w.useCallback(()=>{if(!v.current)return!1;const{scrollTop:S,scrollHeight:M,clientHeight:P}=v.current;return M-S-P<100},[]),k=w.useCallback(()=>{const S=D();T(S)},[D]),H=w.useCallback(()=>{v.current&&(v.current.scrollTop=v.current.scrollHeight)},[]);return w.useEffect(()=>{const S=t.length>O.current,M=t!==z.current;(S||M)&&N&&setTimeout(()=>{H()},100),O.current=t.length,z.current=t},[t,N,H]),w.useEffect(()=>{const S=v.current;if(S)return S.addEventListener("scroll",k),()=>{S.removeEventListener("scroll",k)}},[k]),w.useEffect(()=>{v.current&&T(D())},[D]),w.useEffect(()=>{let S;return o==="translating"?S=setInterval(()=>{y(M=>!M)},1e3):y(!0),()=>{S&&clearInterval(S)}},[o]),u.jsxs("div",{className:"w-full flex flex-col h-full",children:[u.jsx("div",{className:"w-full flex-shrink-0 mb-3 md:mb-[26px]",children:e?u.jsxs("div",{className:"w-full flex flex-row items-center justify-between",children:[s&&u.jsx("div",{className:"text-lg font-medium text-foreground",children:s}),r&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:`hidden md:flex gap-2 flex-${b}`,children:[I&&u.jsxs("div",{className:"flex flex-row items-center gap-4",children:[u.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:l,searchPlaceholder:g,className:"w-30"}),F("CustomerIcon","Customer"),u.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:u.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),F("AgentIcon","Agent"),u.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:c,searchPlaceholder:d,className:"w-30"})]}),I&&u.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-6 py-3 h-10 ",id:"translation-button",children:[u.jsx(Y,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),u.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[u.jsx("span",{id:"translation-button-text",children:x&&(o==="idle"?i:a)}),u.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),u.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&u.jsxs(u.Fragment,{children:[u.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:l,searchPlaceholder:g,className:"w-32"}),F("CustomerIcon","Customer"),u.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:u.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),F("AgentIcon","Agent"),u.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:c,searchPlaceholder:d,className:"w-32"})]}),I&&u.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",id:"translation-button",children:[u.jsx(Y,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),u.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:u.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})]}):u.jsx("div",{className:"w-full flex items-center justify-center",children:r&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:`hidden md:flex items-center gap-2 flex-${b}`,children:[I&&u.jsxs("div",{className:"flex flex-row items-center gap-4",children:[u.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:l,searchPlaceholder:g,className:"w-30"}),F("CustomerIcon","Customer"),u.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:u.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),F("AgentIcon","Agent"),u.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:c,searchPlaceholder:d,className:"w-30"})]}),I&&u.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-3 py-3 h-10 ",id:"translation-button",children:[u.jsx(Y,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),u.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[u.jsx("span",{id:"translation-button-text",children:x&&(o==="idle"?i:a)}),u.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),u.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&u.jsxs(u.Fragment,{children:[u.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:l,searchPlaceholder:g,className:"w-32"}),F("CustomerIcon","Customer"),u.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:u.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),F("AgentIcon","Agent"),u.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:c,searchPlaceholder:d,className:"w-32"})]}),I&&u.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",id:"translation-button",children:[u.jsx(Y,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),u.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:u.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})})}),u.jsx("div",{ref:v,className:"flex-grow overflow-y-auto w-full h-[calc(100%-48px)] max-h-[calc(100vh-68px)] sm:max-h-[calc(100vh-200px)]",children:u.jsxs("div",{className:"flex flex-col w-full items-center justify-center pb-4 ",children:[u.jsx("div",{className:`flex flex-col gap-6 w-full pb-8 ${n?"border-b border-border":""}`,id:"transcript-container",children:t.map(S=>u.jsx(yA,{...S},S.id))}),u.jsx("div",{className:"w-full flex pt-8 max-w-11/12",children:n&&u.jsx(Lh,{...n})})]})})]})},Oh=({rate:e})=>{const t=w.useMemo(()=>{if(e<=20)return u.jsx(Y,{name:"AngryFace",width:32,height:32});if(e>20&&e<=40)return u.jsx(Y,{name:"ConfusedFace",width:32,height:32});if(e>40&&e<=60)return u.jsx(Y,{name:"NeutralFaceIcon",width:32,height:32});if(e>60&&e<=80)return u.jsx(Y,{name:"Smiling",width:32,height:32});if(e>80&&e<=100)return u.jsx(Y,{name:"SmilingWithHearts",width:32,height:32})},[e]),A=w.useMemo(()=>`${Math.max(0,Math.min(100,e))}%`,[e]);return u.jsxs("div",{className:"w-full relative h-3 rounded-full",children:[u.jsx("div",{className:"w-full h-full absolute top-0 left-0 rounded-full sentiment-gradient"}),u.jsx("div",{style:{left:A,transform:"translateX(-50%)"},className:"absolute z-10 -top-[10px]",children:t})]})},bg={light:{"primary-foreground":"#F5F5F5"},dark:{"primary-hover":"#7473C8"}},zh=({label:e,checked:t,onClick:A,id:n})=>u.jsxs("div",{onClick:()=>A(n),className:"flex cursor-pointer flex-row gap-3 items-center justify-center",children:[u.jsx("div",{className:_("flex items-center justify-center rounded-full w-5 h-5",t?"bg-success-hover":"bg-background border-[7px] border-border"),children:t&&u.jsx(Y,{name:"Check",width:16,height:16,color:bg.light["primary-foreground"],"data-testid":"check-icon"})}),u.jsx("span",{className:_("text-sm font-normal",t?"line-through text-muted-foreground":"text-foreground"),children:e})]});var Lr="Collapsible",[Hh]=ze(Lr),[Vh,Zs]=Hh(Lr),yg=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,open:n,defaultOpen:r,disabled:o,onOpenChange:s,...i}=e,[a,l]=jt({prop:n,defaultProp:r??!1,onChange:s,caller:Lr});return u.jsx(Vh,{scope:A,disabled:o,contentId:ot(),open:a,onOpenToggle:C.useCallback(()=>l(c=>!c),[l]),children:u.jsx(se.div,{"data-state":Ks(a),"data-disabled":o?"":void 0,...i,ref:t})})});yg.displayName=Lr;var Dg="CollapsibleTrigger",Fg=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,...n}=e,r=Zs(Dg,A);return u.jsx(se.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Ks(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:t,onClick:J(e.onClick,r.onOpenToggle)})});Fg.displayName=Dg;var qs="CollapsibleContent",Ng=C.forwardRef((e,t)=>{const{forceMount:A,...n}=e,r=Zs(qs,e.__scopeCollapsible);return u.jsx(He,{present:A||r.open,children:({present:o})=>u.jsx(Gh,{...n,ref:t,present:o})})});Ng.displayName=qs;var Gh=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,present:n,children:r,...o}=e,s=Zs(qs,A),[i,a]=C.useState(n),l=C.useRef(null),c=Ce(t,l),g=C.useRef(0),d=g.current,f=C.useRef(0),E=f.current,B=s.open||i,h=C.useRef(B),Q=C.useRef(void 0);return C.useEffect(()=>{const m=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(m)},[]),Ze(()=>{const m=l.current;if(m){Q.current=Q.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const x=m.getBoundingClientRect();g.current=x.height,f.current=x.width,h.current||(m.style.transitionDuration=Q.current.transitionDuration,m.style.animationName=Q.current.animationName),a(n)}},[s.open,n]),u.jsx(se.div,{"data-state":Ks(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!B,...o,ref:c,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:B&&r})});function Ks(e){return e?"open":"closed"}var Yh=yg;function Zo({...e}){return u.jsx(Yh,{"data-slot":"collapsible",...e})}function qo({...e}){return u.jsx(Fg,{"data-slot":"collapsible-trigger",...e})}function Ko({...e}){return u.jsx(Ng,{"data-slot":"collapsible-content",...e})}const Pg=({id:e,title:t="GenAI Support",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>u.jsx(kt,{title:t,icon:u.jsx(Y,{name:"Sparkles",width:24,height:24,className:"text-foreground"}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Mg=({id:e,title:t="Great Job!",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>u.jsx(kt,{title:t,icon:u.jsx(Y,{name:"ClappingHands",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),jg=({id:e,title:t="Legal Thread",message:A,timestamp:n,showHelperButtons:r=!1,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:i="Ask GenAI",askManagerTitle:a="Ask Manager"})=>u.jsx(kt,{title:t,icon:u.jsx(Y,{name:"SkullAndCrossbones",width:24,height:24}),id:e,message:A,timestamp:n,showHelperButtons:r,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:i,askManagerTitle:a}),Tg=({title:e="Task Done",message:t,timestamp:A,id:n,taskCount:r,completedTaskCount:o,askGenAITitle:s="Ask GenAI",askManagerTitle:i="Ask Manager"})=>{const a=w.useMemo(()=>r<10?`0${r}`:r,[r]),l=w.useMemo(()=>o<10?`0${o}`:o,[o]);return u.jsx(kt,{id:n,icon:u.jsx(Y,{name:"Done",width:24,height:24}),title:e,message:t,timestamp:A,tag:r!==0&&u.jsx("div",{className:"bg-foreground-08 rounded-4xl p-1 flex items-center justify-center text-[11px] font-normal text-foreground",children:`${l} / ${a}`}),askGenAITitle:s,askManagerTitle:i})},kg=({id:e,title:t="Unhappy Customer",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>u.jsx(kt,{title:t,icon:u.jsx(Y,{name:"PoutingFace",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Rg=({id:e,title:t,message:A,timestamp:n,icon:r,askGenAITitle:o="Ask GenAI",askManagerTitle:s="Ask Manager",showFeedbackArea:i,scenarioId:a,feddbackTitle:l,feedbackHelpfullButtonTitle:c,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:d,feedbackSubmitText:f,feedbackThankYouMessage:E,feedbackSubmitButtonHoverTitle:B,feedbackCancelButtonTitle:h,showThankYou:Q,sendFeedback:m,matchId:x,feedbackLoading:b})=>u.jsx(kt,{id:e,title:t,message:A,timestamp:n,icon:r,scenarioId:a,askGenAITitle:o,askManagerTitle:s,showFeedbackArea:i,feddbackTitle:l,feedbackHelpfullButtonTitle:c,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:d,feedbackSubmitText:f,feedbackThankYouMessage:E,feedbackSubmitButtonHoverTitle:B,feedbackCancelButtonTitle:h,matchId:x,sendFeedback:m,feedbackLoading:b,showThankYou:Q});/**
22
22
  * @license lucide-react v0.477.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
@@ -108,6 +108,6 @@
108
108
 
109
109
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
110
110
 
111
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return C.useEffect(()=>{e&&(document.getElementById(e)||console.error(A))},[A,e]),null},Cw="DialogDescriptionWarning",fw=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cf(Cw).contentName}}.`;return C.useEffect(()=>{var o;const r=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},gf=_C,df=tf,Cf=Af,Hi=nf,ff=of,Bw=uf;function Ew({...e}){return u.jsx(gf,{"data-slot":"dialog",...e})}function Iw({...e}){return u.jsx(df,{"data-slot":"dialog-portal",...e})}function Qw({className:e,...t}){return u.jsx(Cf,{"data-slot":"dialog-overlay",className:_("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}const Bf=C.forwardRef(({className:e,children:t,hideCloseButton:A=!1,...n},r)=>u.jsxs(Iw,{"data-slot":"dialog-portal",children:[u.jsx(Qw,{}),u.jsxs(Hi,{ref:r,"data-slot":"dialog-content",className:_("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[u.jsx(Tr,{children:u.jsx(hw,{})}),t,!A&&u.jsxs(Bw,{className:"...",children:[u.jsx(Y,{name:"Close",width:16,height:16,color:"inherit"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Bf.displayName=Hi.displayName;function hw({className:e,...t}){return u.jsx(ff,{"data-slot":"dialog-title",className:_("text-lg leading-none font-semibold hidden",e),...t})}const Ef=({content:e,isOpen:t,onOpenChange:A,closeOnOutsideClick:n=!0})=>{const r=o=>{!o&&!n||A==null||A(o)};return u.jsx(Ew,{open:t,onOpenChange:r,children:u.jsx(Bf,{hideCloseButton:!0,className:"p-0 border-none",children:e})})};var ms=["Enter"," "],mw=["ArrowDown","PageUp","Home"],If=["ArrowUp","PageDown","End"],pw=[...mw,...If],vw={ltr:[...ms,"ArrowRight"],rtl:[...ms,"ArrowLeft"]},ww={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yn="Menu",[fn,xw,bw]=Ps(yn),[AA,yw]=ze(yn,[bw,Mr,Tt]),Zr=Mr(),Qf=Tt(),[Dw,nA]=AA(yn),[Fw,Dn]=AA(yn),hf=e=>{const{__scopeMenu:t,open:A=!1,children:n,dir:r,onOpenChange:o,modal:s=!0}=e,i=Zr(t),[a,l]=C.useState(null),c=C.useRef(!1),g=at(o),d=In(r);return C.useEffect(()=>{const f=()=>{c.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>c.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),u.jsx(ag,{...i,children:u.jsx(Dw,{scope:t,open:A,onOpenChange:g,content:a,onContentChange:l,children:u.jsx(Fw,{scope:t,onClose:C.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:c,dir:d,modal:s,children:n})})})};hf.displayName=yn;var Nw="MenuAnchor",Vi=C.forwardRef((e,t)=>{const{__scopeMenu:A,...n}=e,r=Zr(A);return u.jsx(ug,{...r,...n,ref:t})});Vi.displayName=Nw;var Gi="MenuPortal",[Pw,mf]=AA(Gi,{forceMount:void 0}),pf=e=>{const{__scopeMenu:t,forceMount:A,children:n,container:r}=e,o=nA(Gi,t);return u.jsx(Pw,{scope:t,forceMount:A,children:u.jsx(He,{present:A||o.open,children:u.jsx(jr,{asChild:!0,container:r,children:n})})})};pf.displayName=Gi;var Xe="MenuContent",[Mw,Yi]=AA(Xe),vf=C.forwardRef((e,t)=>{const A=mf(Xe,e.__scopeMenu),{forceMount:n=A.forceMount,...r}=e,o=nA(Xe,e.__scopeMenu),s=Dn(Xe,e.__scopeMenu);return u.jsx(fn.Provider,{scope:e.__scopeMenu,children:u.jsx(He,{present:n||o.open,children:u.jsx(fn.Slot,{scope:e.__scopeMenu,children:s.modal?u.jsx(jw,{...r,ref:t}):u.jsx(Tw,{...r,ref:t})})})})}),jw=C.forwardRef((e,t)=>{const A=nA(Xe,e.__scopeMenu),n=C.useRef(null),r=Ce(t,n);return C.useEffect(()=>{const o=n.current;if(o)return KC(o)},[]),u.jsx(Ui,{...e,ref:r,trapFocus:A.open,disableOutsidePointerEvents:A.open,disableOutsideScroll:!0,onFocusOutside:J(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>A.onOpenChange(!1)})}),Tw=C.forwardRef((e,t)=>{const A=nA(Xe,e.__scopeMenu);return u.jsx(Ui,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>A.onOpenChange(!1)})}),kw=wA("MenuContent.ScrollLock"),Ui=C.forwardRef((e,t)=>{const{__scopeMenu:A,loop:n=!1,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:a,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:g,onInteractOutside:d,onDismiss:f,disableOutsideScroll:E,...B}=e,h=nA(Xe,A),Q=Dn(Xe,A),m=Zr(A),x=Qf(A),b=xw(A),[I,v]=C.useState(null),p=C.useRef(null),y=Ce(t,p,h.onContentChange),N=C.useRef(0),T=C.useRef(""),O=C.useRef(0),z=C.useRef(null),F=C.useRef("right"),D=C.useRef(0),k=E?Li:C.Fragment,H=E?{as:kw,allowPinchZoom:!0}:void 0,S=P=>{var R,W;const G=T.current+P,$=b().filter(X=>!X.disabled),ne=document.activeElement,L=(R=$.find(X=>X.ref.current===ne))==null?void 0:R.textValue,j=$.map(X=>X.textValue),U=Xw(j,G,L),V=(W=$.find(X=>X.textValue===U))==null?void 0:W.ref.current;(function X(Ae){T.current=Ae,window.clearTimeout(N.current),Ae!==""&&(N.current=window.setTimeout(()=>X(""),1e3))})(G),V&&setTimeout(()=>V.focus())};C.useEffect(()=>()=>window.clearTimeout(N.current),[]),HC();const M=C.useCallback(P=>{var $,ne;return F.current===(($=z.current)==null?void 0:$.side)&&qw(P,(ne=z.current)==null?void 0:ne.area)},[]);return u.jsx(Mw,{scope:A,searchRef:T,onItemEnter:C.useCallback(P=>{M(P)&&P.preventDefault()},[M]),onItemLeave:C.useCallback(P=>{var G;M(P)||((G=p.current)==null||G.focus(),v(null))},[M]),onTriggerLeave:C.useCallback(P=>{M(P)&&P.preventDefault()},[M]),pointerGraceTimerRef:O,onPointerGraceIntentChange:C.useCallback(P=>{z.current=P},[]),children:u.jsx(k,{...H,children:u.jsx(Ri,{asChild:!0,trapped:r,onMountAutoFocus:J(o,P=>{var G;P.preventDefault(),(G=p.current)==null||G.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:u.jsx(yr,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:g,onInteractOutside:d,onDismiss:f,children:u.jsx(vr,{asChild:!0,...x,dir:Q.dir,orientation:"vertical",loop:n,currentTabStopId:I,onCurrentTabStopIdChange:v,onEntryFocus:J(a,P=>{Q.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(lg,{role:"menu","aria-orientation":"vertical","data-state":Of(h.open),"data-radix-menu-content":"",dir:Q.dir,...m,...B,ref:y,style:{outline:"none",...B.style},onKeyDown:J(B.onKeyDown,P=>{const $=P.target.closest("[data-radix-menu-content]")===P.currentTarget,ne=P.ctrlKey||P.altKey||P.metaKey,L=P.key.length===1;$&&(P.key==="Tab"&&P.preventDefault(),!ne&&L&&S(P.key));const j=p.current;if(P.target!==j||!pw.includes(P.key))return;P.preventDefault();const V=b().filter(R=>!R.disabled).map(R=>R.ref.current);If.includes(P.key)&&V.reverse(),Uw(V)}),onBlur:J(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(N.current),T.current="")}),onPointerMove:J(e.onPointerMove,Bn(P=>{const G=P.target,$=D.current!==P.clientX;if(P.currentTarget.contains(G)&&$){const ne=P.clientX>D.current?"right":"left";F.current=ne,D.current=P.clientX}}))})})})})})})});vf.displayName=Xe;var Rw="MenuGroup",Wi=C.forwardRef((e,t)=>{const{__scopeMenu:A,...n}=e;return u.jsx(se.div,{role:"group",...n,ref:t})});Wi.displayName=Rw;var Lw="MenuLabel",wf=C.forwardRef((e,t)=>{const{__scopeMenu:A,...n}=e;return u.jsx(se.div,{...n,ref:t})});wf.displayName=Lw;var hr="MenuItem",bl="menu.itemSelect",qr=C.forwardRef((e,t)=>{const{disabled:A=!1,onSelect:n,...r}=e,o=C.useRef(null),s=Dn(hr,e.__scopeMenu),i=Yi(hr,e.__scopeMenu),a=Ce(t,o),l=C.useRef(!1),c=()=>{const g=o.current;if(!A&&g){const d=new CustomEvent(bl,{bubbles:!0,cancelable:!0});g.addEventListener(bl,f=>n==null?void 0:n(f),{once:!0}),Jl(g,d),d.defaultPrevented?l.current=!1:s.onClose()}};return u.jsx(xf,{...r,ref:a,disabled:A,onClick:J(e.onClick,c),onPointerDown:g=>{var d;(d=e.onPointerDown)==null||d.call(e,g),l.current=!0},onPointerUp:J(e.onPointerUp,g=>{var d;l.current||(d=g.currentTarget)==null||d.click()}),onKeyDown:J(e.onKeyDown,g=>{const d=i.searchRef.current!=="";A||d&&g.key===" "||ms.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});qr.displayName=hr;var xf=C.forwardRef((e,t)=>{const{__scopeMenu:A,disabled:n=!1,textValue:r,...o}=e,s=Yi(hr,A),i=Qf(A),a=C.useRef(null),l=Ce(t,a),[c,g]=C.useState(!1),[d,f]=C.useState("");return C.useEffect(()=>{const E=a.current;E&&f((E.textContent??"").trim())},[o.children]),u.jsx(fn.ItemSlot,{scope:A,disabled:n,textValue:r??d,children:u.jsx(wr,{asChild:!0,...i,focusable:!n,children:u.jsx(se.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...o,ref:l,onPointerMove:J(e.onPointerMove,Bn(E=>{n?s.onItemLeave(E):(s.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:J(e.onPointerLeave,Bn(E=>s.onItemLeave(E))),onFocus:J(e.onFocus,()=>g(!0)),onBlur:J(e.onBlur,()=>g(!1))})})})}),Sw="MenuCheckboxItem",bf=C.forwardRef((e,t)=>{const{checked:A=!1,onCheckedChange:n,...r}=e;return u.jsx(Pf,{scope:e.__scopeMenu,checked:A,children:u.jsx(qr,{role:"menuitemcheckbox","aria-checked":mr(A)?"mixed":A,...r,ref:t,"data-state":Zi(A),onSelect:J(r.onSelect,()=>n==null?void 0:n(mr(A)?!0:!A),{checkForDefaultPrevented:!1})})})});bf.displayName=Sw;var yf="MenuRadioGroup",[Ow,zw]=AA(yf,{value:void 0,onValueChange:()=>{}}),Df=C.forwardRef((e,t)=>{const{value:A,onValueChange:n,...r}=e,o=at(n);return u.jsx(Ow,{scope:e.__scopeMenu,value:A,onValueChange:o,children:u.jsx(Wi,{...r,ref:t})})});Df.displayName=yf;var Ff="MenuRadioItem",Nf=C.forwardRef((e,t)=>{const{value:A,...n}=e,r=zw(Ff,e.__scopeMenu),o=A===r.value;return u.jsx(Pf,{scope:e.__scopeMenu,checked:o,children:u.jsx(qr,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":Zi(o),onSelect:J(n.onSelect,()=>{var s;return(s=r.onValueChange)==null?void 0:s.call(r,A)},{checkForDefaultPrevented:!1})})})});Nf.displayName=Ff;var Xi="MenuItemIndicator",[Pf,Hw]=AA(Xi,{checked:!1}),Mf=C.forwardRef((e,t)=>{const{__scopeMenu:A,forceMount:n,...r}=e,o=Hw(Xi,A);return u.jsx(He,{present:n||mr(o.checked)||o.checked===!0,children:u.jsx(se.span,{...r,ref:t,"data-state":Zi(o.checked)})})});Mf.displayName=Xi;var Vw="MenuSeparator",jf=C.forwardRef((e,t)=>{const{__scopeMenu:A,...n}=e;return u.jsx(se.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});jf.displayName=Vw;var Gw="MenuArrow",Tf=C.forwardRef((e,t)=>{const{__scopeMenu:A,...n}=e,r=Zr(A);return u.jsx(cg,{...r,...n,ref:t})});Tf.displayName=Gw;var Yw="MenuSub",[Hb,kf]=AA(Yw),_A="MenuSubTrigger",Rf=C.forwardRef((e,t)=>{const A=nA(_A,e.__scopeMenu),n=Dn(_A,e.__scopeMenu),r=kf(_A,e.__scopeMenu),o=Yi(_A,e.__scopeMenu),s=C.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:a}=o,l={__scopeMenu:e.__scopeMenu},c=C.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return C.useEffect(()=>c,[c]),C.useEffect(()=>{const g=i.current;return()=>{window.clearTimeout(g),a(null)}},[i,a]),u.jsx(Vi,{asChild:!0,...l,children:u.jsx(xf,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":A.open,"aria-controls":r.contentId,"data-state":Of(A.open),...e,ref:ys(t,r.onTriggerChange),onClick:g=>{var d;(d=e.onClick)==null||d.call(e,g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),A.open||A.onOpenChange(!0))},onPointerMove:J(e.onPointerMove,Bn(g=>{o.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!A.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{A.onOpenChange(!0),c()},100))})),onPointerLeave:J(e.onPointerLeave,Bn(g=>{var f,E;c();const d=(f=A.content)==null?void 0:f.getBoundingClientRect();if(d){const B=(E=A.content)==null?void 0:E.dataset.side,h=B==="right",Q=h?-5:5,m=d[h?"left":"right"],x=d[h?"right":"left"];o.onPointerGraceIntentChange({area:[{x:g.clientX+Q,y:g.clientY},{x:m,y:d.top},{x,y:d.top},{x,y:d.bottom},{x:m,y:d.bottom}],side:B}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(g),g.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:J(e.onKeyDown,g=>{var f;const d=o.searchRef.current!=="";e.disabled||d&&g.key===" "||vw[n.dir].includes(g.key)&&(A.onOpenChange(!0),(f=A.content)==null||f.focus(),g.preventDefault())})})})});Rf.displayName=_A;var Lf="MenuSubContent",Sf=C.forwardRef((e,t)=>{const A=mf(Xe,e.__scopeMenu),{forceMount:n=A.forceMount,...r}=e,o=nA(Xe,e.__scopeMenu),s=Dn(Xe,e.__scopeMenu),i=kf(Lf,e.__scopeMenu),a=C.useRef(null),l=Ce(t,a);return u.jsx(fn.Provider,{scope:e.__scopeMenu,children:u.jsx(He,{present:n||o.open,children:u.jsx(fn.Slot,{scope:e.__scopeMenu,children:u.jsx(Ui,{id:i.contentId,"aria-labelledby":i.triggerId,...r,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:c=>{var g;s.isUsingKeyboardRef.current&&((g=a.current)==null||g.focus()),c.preventDefault()},onCloseAutoFocus:c=>c.preventDefault(),onFocusOutside:J(e.onFocusOutside,c=>{c.target!==i.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:J(e.onEscapeKeyDown,c=>{s.onClose(),c.preventDefault()}),onKeyDown:J(e.onKeyDown,c=>{var f;const g=c.currentTarget.contains(c.target),d=ww[s.dir].includes(c.key);g&&d&&(o.onOpenChange(!1),(f=i.trigger)==null||f.focus(),c.preventDefault())})})})})})});Sf.displayName=Lf;function Of(e){return e?"open":"closed"}function mr(e){return e==="indeterminate"}function Zi(e){return mr(e)?"indeterminate":e?"checked":"unchecked"}function Uw(e){const t=document.activeElement;for(const A of e)if(A===t||(A.focus(),document.activeElement!==t))return}function Ww(e,t){return e.map((A,n)=>e[(t+n)%e.length])}function Xw(e,t,A){const r=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,o=A?e.indexOf(A):-1;let s=Ww(e,Math.max(o,0));r.length===1&&(s=s.filter(l=>l!==A));const a=s.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return a!==A?a:void 0}function Zw(e,t){const{x:A,y:n}=e;let r=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const i=t[o],a=t[s],l=i.x,c=i.y,g=a.x,d=a.y;c>n!=d>n&&A<(g-l)*(n-c)/(d-c)+l&&(r=!r)}return r}function qw(e,t){if(!t)return!1;const A={x:e.clientX,y:e.clientY};return Zw(A,t)}function Bn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Kw=hf,Jw=Vi,_w=pf,$w=vf,ex=Wi,tx=wf,Ax=qr,nx=bf,rx=Df,ox=Nf,sx=Mf,ix=jf,ax=Tf,ux=Rf,lx=Sf,Fn="Menubar",[ps,cx,gx]=Ps(Fn),[zf]=ze(Fn,[gx,Tt]),je=yw(),Hf=Tt(),[dx,qi]=zf(Fn),Vf=C.forwardRef((e,t)=>{const{__scopeMenubar:A,value:n,onValueChange:r,defaultValue:o,loop:s=!0,dir:i,...a}=e,l=In(i),c=Hf(A),[g,d]=jt({prop:n,onChange:r,defaultProp:o??"",caller:Fn}),[f,E]=C.useState(null);return u.jsx(dx,{scope:A,value:g,onMenuOpen:C.useCallback(B=>{d(B),E(B)},[d]),onMenuClose:C.useCallback(()=>d(""),[d]),onMenuToggle:C.useCallback(B=>{d(h=>h?"":B),E(B)},[d]),dir:l,loop:s,children:u.jsx(ps.Provider,{scope:A,children:u.jsx(ps.Slot,{scope:A,children:u.jsx(vr,{asChild:!0,...c,orientation:"horizontal",loop:s,dir:l,currentTabStopId:f,onCurrentTabStopIdChange:E,children:u.jsx(se.div,{role:"menubar",...a,ref:t})})})})})});Vf.displayName=Fn;var Ki="MenubarMenu",[Cx,Gf]=zf(Ki),Yf=e=>{const{__scopeMenubar:t,value:A,...n}=e,r=ot(),o=A||r||"LEGACY_REACT_AUTO_VALUE",s=qi(Ki,t),i=je(t),a=C.useRef(null),l=C.useRef(!1),c=s.value===o;return C.useEffect(()=>{c||(l.current=!1)},[c]),u.jsx(Cx,{scope:t,value:o,triggerId:ot(),triggerRef:a,contentId:ot(),wasKeyboardTriggerOpenRef:l,children:u.jsx(Kw,{...i,open:c,onOpenChange:g=>{g||s.onMenuClose()},modal:!1,dir:s.dir,...n})})};Yf.displayName=Ki;var vs="MenubarTrigger",Uf=C.forwardRef((e,t)=>{const{__scopeMenubar:A,disabled:n=!1,...r}=e,o=Hf(A),s=je(A),i=qi(vs,A),a=Gf(vs,A),l=C.useRef(null),c=Ce(t,l,a.triggerRef),[g,d]=C.useState(!1),f=i.value===a.value;return u.jsx(ps.ItemSlot,{scope:A,value:a.value,disabled:n,children:u.jsx(wr,{asChild:!0,...o,focusable:!n,tabStopId:a.value,children:u.jsx(Jw,{asChild:!0,...s,children:u.jsx(se.button,{type:"button",role:"menuitem",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?a.contentId:void 0,"data-highlighted":g?"":void 0,"data-state":f?"open":"closed","data-disabled":n?"":void 0,disabled:n,...r,ref:c,onPointerDown:J(e.onPointerDown,E=>{!n&&E.button===0&&E.ctrlKey===!1&&(i.onMenuOpen(a.value),f||E.preventDefault())}),onPointerEnter:J(e.onPointerEnter,()=>{var B;!!i.value&&!f&&(i.onMenuOpen(a.value),(B=l.current)==null||B.focus())}),onKeyDown:J(e.onKeyDown,E=>{n||(["Enter"," "].includes(E.key)&&i.onMenuToggle(a.value),E.key==="ArrowDown"&&i.onMenuOpen(a.value),["Enter"," ","ArrowDown"].includes(E.key)&&(a.wasKeyboardTriggerOpenRef.current=!0,E.preventDefault()))}),onFocus:J(e.onFocus,()=>d(!0)),onBlur:J(e.onBlur,()=>d(!1))})})})})});Uf.displayName=vs;var fx="MenubarPortal",Wf=e=>{const{__scopeMenubar:t,...A}=e,n=je(t);return u.jsx(_w,{...n,...A})};Wf.displayName=fx;var ws="MenubarContent",Xf=C.forwardRef((e,t)=>{const{__scopeMenubar:A,align:n="start",...r}=e,o=je(A),s=qi(ws,A),i=Gf(ws,A),a=cx(A),l=C.useRef(!1);return u.jsx($w,{id:i.contentId,"aria-labelledby":i.triggerId,"data-radix-menubar-content":"",...o,...r,ref:t,align:n,onCloseAutoFocus:J(e.onCloseAutoFocus,c=>{var d;!!!s.value&&!l.current&&((d=i.triggerRef.current)==null||d.focus()),l.current=!1,c.preventDefault()}),onFocusOutside:J(e.onFocusOutside,c=>{const g=c.target;a().some(f=>{var E;return(E=f.ref.current)==null?void 0:E.contains(g)})&&c.preventDefault()}),onInteractOutside:J(e.onInteractOutside,()=>{l.current=!0}),onEntryFocus:c=>{i.wasKeyboardTriggerOpenRef.current||c.preventDefault()},onKeyDown:J(e.onKeyDown,c=>{if(["ArrowRight","ArrowLeft"].includes(c.key)){const g=c.target,d=g.hasAttribute("data-radix-menubar-subtrigger"),f=g.closest("[data-radix-menubar-content]")!==c.currentTarget,B=(s.dir==="rtl"?"ArrowRight":"ArrowLeft")===c.key;if(!B&&d||f&&B)return;let m=a().filter(I=>!I.disabled).map(I=>I.value);B&&m.reverse();const x=m.indexOf(i.value);m=s.loop?Lx(m,x+1):m.slice(x+1);const[b]=m;b&&s.onMenuOpen(b)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});Xf.displayName=ws;var Bx="MenubarGroup",Ex=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(ex,{...r,...n,ref:t})});Ex.displayName=Bx;var Ix="MenubarLabel",Qx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(tx,{...r,...n,ref:t})});Qx.displayName=Ix;var hx="MenubarItem",Zf=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(Ax,{...r,...n,ref:t})});Zf.displayName=hx;var mx="MenubarCheckboxItem",px=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(nx,{...r,...n,ref:t})});px.displayName=mx;var vx="MenubarRadioGroup",wx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(rx,{...r,...n,ref:t})});wx.displayName=vx;var xx="MenubarRadioItem",bx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(ox,{...r,...n,ref:t})});bx.displayName=xx;var yx="MenubarItemIndicator",Dx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(sx,{...r,...n,ref:t})});Dx.displayName=yx;var Fx="MenubarSeparator",Nx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(ix,{...r,...n,ref:t})});Nx.displayName=Fx;var Px="MenubarArrow",Mx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(ax,{...r,...n,ref:t})});Mx.displayName=Px;var jx="MenubarSubTrigger",Tx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(ux,{"data-radix-menubar-subtrigger":"",...r,...n,ref:t})});Tx.displayName=jx;var kx="MenubarSubContent",Rx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(lx,{...r,"data-radix-menubar-content":"",...n,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});Rx.displayName=kx;function Lx(e,t){return e.map((A,n)=>e[(t+n)%e.length])}var Sx=Vf,Ox=Yf,zx=Uf,Hx=Wf,Vx=Xf,Gx=Zf;function Yx({className:e,...t}){return u.jsx(Sx,{"data-slot":"menubar",className:_("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...t})}function Ux({...e}){return u.jsx(Ox,{"data-slot":"menubar-menu",...e})}function Wx({...e}){return u.jsx(Hx,{"data-slot":"menubar-portal",...e})}function Xx({className:e,...t}){return u.jsx(zx,{"data-slot":"menubar-trigger",className:_("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",e),...t})}function Zx({className:e,align:t="start",alignOffset:A=-4,sideOffset:n=8,...r}){return u.jsx(Wx,{children:u.jsx(Vx,{"data-slot":"menubar-content",align:t,alignOffset:A,sideOffset:n,className:_("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...r})})}function yl({className:e,inset:t,variant:A="default",...n}){return u.jsx(Gx,{"data-slot":"menubar-item","data-inset":t,"data-variant":A,className:_("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}const qx=e=>e.split("_").filter(Boolean).map(t=>/^[A-Z0-9]+$/.test(t)?t:t.charAt(0)+t.slice(1)).join(" "),Dl=e=>e!=null&&e.trim()!=="",Kx=({data:e,onClose:t,showDetailsLabel:A,hideDetailsLabel:n,logo:r,closeLabel:o})=>{const[s,i]=w.useState(!1),a=Object.entries(e||{}),l=Dl((e==null?void 0:e.Copilot_Version)??null),c=l?e.Copilot_Version:"",g=a.filter(([d])=>d!=="Copilot_Version").filter(([,d])=>Dl(d));return u.jsxs("div",{className:"bg-popover text-popover-foreground rounded-lg shadow p-4 min-w-[320px] border border-border",children:[u.jsx("div",{className:"flex items-center gap-3 mb-3",children:r}),u.jsx("div",{className:"mb-3",children:l&&u.jsxs("div",{className:"text-[14px]",children:[u.jsx("span",{className:"font-semibold text-[14px]",children:"Product Version: "}),u.jsx("span",{className:"text-secondary-foreground text-[14px]",children:c})]})}),g.length>0&&u.jsx("div",{className:"mb-3",children:u.jsx(Qe,{variant:"ghost",size:"sm",onClick:()=>i(d=>!d),className:"underline p-0",children:u.jsx("span",{className:"text-secondary-foreground text-[14px]",children:s?n||"Hide Details":A||"Show Details"})})}),s&&g.length>0&&u.jsx("div",{className:"space-y-2",children:g.map(([d,f])=>u.jsxs("div",{className:"flex gap-2 text-[14px]",children:[u.jsxs("span",{className:"font-semibold",children:[qx(d),":"]}),u.jsx("span",{className:"text-popover-foreground",children:f})]},d))}),u.jsx("div",{className:"mt-4 flex justify-end",children:u.jsx(Qe,{variant:"outline",size:"sm",onClick:()=>t==null?void 0:t(),children:o||"Close"})})]})},qf=({fullName:e,onLogout:t,type:A="primary",logoutText:n="Logout",versionInfoContent:r,versionInfoLabel:o,showDetailsLabel:s,hideDetailsLabel:i,logo:a,closeLabel:l})=>{const[c,g]=w.useState(!1);return u.jsxs(u.Fragment,{children:[u.jsx(Yx,{className:"p-0 bg-transparent border-none shadow-none",children:u.jsxs(Ux,{children:[u.jsx(Xx,{className:"p-0",children:u.jsx(qt,{fullName:e,type:A})}),u.jsxs(Zx,{align:"end",className:"bg-popover min-w-32 border-radius-md border-border border shadow-md p-1",children:[u.jsx("div",{className:"text-sm font-semibold text-popover-foreground py-1 px-2",children:e}),r&&u.jsxs(yl,{onClick:()=>g(!0),className:"cursor-pointer","data-testid":"version-info-menu-item",children:[u.jsx(Y,{name:"About",className:"w-4 h-4 text-popover-foreground"}),u.jsx("span",{className:"text-sm font-medium text-secondary-foreground",children:o||"Version Info"})]}),u.jsxs(yl,{onClick:t,"data-testid":"logout-button",className:"cursor-pointer",children:[u.jsx(Y,{name:"Logout",className:"w-4 h-4 text-popover-foreground"}),u.jsx("span",{className:"text-sm font-medium text-secondary-foreground",children:n})]})]})]})}),r&&u.jsx(Ef,{isOpen:c,onOpenChange:g,content:u.jsx(Kx,{data:r,onClose:()=>g(!1),showDetailsLabel:s,hideDetailsLabel:i,logo:a,closeLabel:l})})]})},Jx=({rate:e,width:t="100%"})=>{const A=w.useMemo(()=>{if(e<=20)return u.jsx(Y,{name:"AngryFace",width:24,height:24});if(e>20&&e<=40)return u.jsx(Y,{name:"ConfusedFace",width:24,height:24});if(e>40&&e<=60)return u.jsx(Y,{name:"NeutralFaceIcon",width:24,height:24});if(e>60&&e<=80)return u.jsx(Y,{name:"Smiling",width:24,height:24});if(e>80&&e<=100)return u.jsx(Y,{name:"SmilingWithHearts",width:24,height:24})},[e]),n=w.useMemo(()=>`${Math.max(0,Math.min(100,e))}%`,[e]),r=typeof t=="number"?`${t}px`:t??"100%";return u.jsxs("div",{className:"relative h-1 min-[501px]:h-1.5 rounded-full",style:{width:r},children:[u.jsx("div",{className:"w-full h-full absolute top-0 left-0 rounded-full sentiment-gradient"}),u.jsx("div",{className:"absolute inset-y-0 left-[-10px] flex items-center -translate-x-1/2",children:u.jsx("svg",{width:"14",height:"14",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("rect",{x:"4.5",y:"8",width:"9",height:"2",rx:"1",fill:"#FF8183"})})}),u.jsx("div",{className:"absolute inset-y-0 right-[-10px] flex items-center translate-x-1/2",children:u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("rect",{x:"4.5",y:"8",width:"9",height:"2",rx:"1",fill:"#47D093"}),u.jsx("rect",{x:"8",y:"4.5",width:"2",height:"9",rx:"1",fill:"#47D093"})]})}),u.jsx("div",{style:{left:n,transform:"translateX(-50%)"},className:`absolute z-10 -top-[12px] flex items-center justify-center rounded-full border-[2px] bg-white ${e>50?"border-[#45D192]":"border-[#FF8182]"}`,children:u.jsx("div",{className:"p-[1px]",children:A})})]})},_x=({fullName:e,logo:t,action:A,userMenuComponent:n,avatarType:r="primary",logoutText:o="Logout",onLogout:s,versionInfoContent:i,versionInfoLabel:a,showDetailsLabel:l,hideDetailsLabel:c,closeLabel:g,conversationId:d,conversationIdLabel:f="Conversation ID:",sentimentMeterShow:E=!0,sentimentRate:B,sentimentWidth:h,biometricContent:Q})=>{const[m,x]=w.useState(!1);return u.jsxs("div",{className:"w-full h-[56px] px-6 py-2 flex items-center justify-between bg-background relative","data-testid":"header-container",children:[m&&u.jsx("button",{type:"button","aria-label":"Close conversation id",className:"fixed inset-0 z-20",onClick:()=>x(!1)}),t,u.jsxs("div",{className:"flex items-center gap-2 w-full",children:[u.jsxs("div",{className:"flex items-center gap-3",style:{width:"100%",justifyContent:"center",alignItems:"center"},children:[d&&u.jsxs("div",{className:"relative flex items-center z-30",children:[u.jsx("button",{type:"button",className:"flex md:hidden items-center justify-center w-7 h-7 rounded-full bg-[#F5F5F5] hover:bg-[#ededed] transition-colors","aria-label":"Show conversation id","aria-expanded":m,onClick:()=>x(b=>!b),children:u.jsx(Y,{name:"Unknown",width:16,height:16,className:"text-secondary-foreground"})}),u.jsxs("span",{className:"hidden md:inline-block text-[14px] text-secondary-foreground whitespace-nowrap px-3 py-2 rounded-[10px]",style:{backgroundColor:"#F5F5F5"},children:[f," ",d]}),m&&u.jsxs("div",{className:"absolute left-1/2 top-full mt-1 -translate-x-3 px-3 py-2 rounded-[10px] text-[14px] text-secondary-foreground whitespace-nowrap shadow-sm z-30 md:hidden",style:{backgroundColor:"#F5F5F5"},children:[f," ",d]})]}),d&&E&&u.jsx("div",{className:"h-5 w-px shrink-0 bg-border","aria-hidden":!0}),E&&u.jsx("div",{className:"min-w-[120px] ml-3",children:u.jsx(Jx,{rate:B??50,width:h})})]}),u.jsxs("div",{className:"flex items-center justify-end gap-2 flex-1",children:[u.jsx("div",{className:"ml-3 mr-3",children:Q}),n??u.jsx(qf,{fullName:e,onLogout:s,type:r,logoutText:o,versionInfoContent:i,versionInfoLabel:a,showDetailsLabel:l,hideDetailsLabel:c,logo:t,closeLabel:g}),A]})]})]})},$x=({items:e,activeItem:t,onClickItem:A})=>{var r,o;const n=(r=e.find(s=>s.id===t))==null?void 0:r.isDarkBg;return u.jsxs("div",{className:"hidden md:flex gap-3 flex-row-reverse h-full max-h-screen",children:[u.jsx("div",{className:"flex gap-2 flex-col",children:e.map(s=>u.jsx("div",{onClick:()=>A(s.id),className:_("w-10 h-10 hover:bg-secondary flex items-center justify-center cursor-pointer rounded-2xl ",s.id===t&&" border-2 border-primary"),children:u.jsx(Y,{name:s.icon,width:24,height:24,className:"text-primary"})},s.id))}),u.jsx("div",{className:_("w-full flex-1 rounded-2xl h-full min-h-full overflow-y-auto no-scrollbar",n?"bg-secondary":"bg-background"),children:(o=e.find(s=>s.id===t))==null?void 0:o.content},t)]})},Kf=({title:e,className:t,tabs:A,onClickClose:n})=>u.jsxs("div",{className:_("bg-background sm:bg-secondary rounded-2xl p-2 w-full h-full flex flex-col gap-2",t),children:[u.jsxs("div",{className:_("text-xl font-medium text-foreground py-2 px-4 flex items-center justify-between",!e&&"sm:hidden"),children:[e&&u.jsx("span",{children:e}),u.jsx(Qe,{variant:"ghost",className:"sm:hidden",onClick:n,children:u.jsx(Y,{name:"Close",width:16,height:16,className:"text-foreground"})})]}),u.jsx("div",{className:"bg-background rounded-t-4xl sm:pt-4 rounded-br-[12px] rounded-b-xl px-4 w-full h-full flex-1 overflow-hidden",children:u.jsx(Pc,{...A})})]});function eb(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],A=document.createElement("style");A.type="text/css",t.appendChild(A),A.styleSheet?A.styleSheet.cssText=e:A.appendChild(document.createTextNode(e))}const Jf=w.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Nn=()=>{const e=w.useContext(Jf);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};eb(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
111
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return C.useEffect(()=>{e&&(document.getElementById(e)||console.error(A))},[A,e]),null},Cw="DialogDescriptionWarning",fw=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cf(Cw).contentName}}.`;return C.useEffect(()=>{var o;const r=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},gf=_C,df=tf,Cf=Af,Hi=nf,ff=of,Bw=uf;function Ew({...e}){return u.jsx(gf,{"data-slot":"dialog",...e})}function Iw({...e}){return u.jsx(df,{"data-slot":"dialog-portal",...e})}function Qw({className:e,...t}){return u.jsx(Cf,{"data-slot":"dialog-overlay",className:_("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}const Bf=C.forwardRef(({className:e,children:t,hideCloseButton:A=!1,...n},r)=>u.jsxs(Iw,{"data-slot":"dialog-portal",children:[u.jsx(Qw,{}),u.jsxs(Hi,{ref:r,"data-slot":"dialog-content",className:_("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[u.jsx(Tr,{children:u.jsx(hw,{})}),t,!A&&u.jsxs(Bw,{className:"...",children:[u.jsx(Y,{name:"Close",width:16,height:16,color:"inherit"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Bf.displayName=Hi.displayName;function hw({className:e,...t}){return u.jsx(ff,{"data-slot":"dialog-title",className:_("text-lg leading-none font-semibold hidden",e),...t})}const Ef=({content:e,isOpen:t,onOpenChange:A,closeOnOutsideClick:n=!0})=>{const r=o=>{!o&&!n||A==null||A(o)};return u.jsx(Ew,{open:t,onOpenChange:r,children:u.jsx(Bf,{hideCloseButton:!0,className:"p-0 border-none",children:e})})};var ms=["Enter"," "],mw=["ArrowDown","PageUp","Home"],If=["ArrowUp","PageDown","End"],pw=[...mw,...If],vw={ltr:[...ms,"ArrowRight"],rtl:[...ms,"ArrowLeft"]},ww={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yn="Menu",[fn,xw,bw]=Ps(yn),[AA,yw]=ze(yn,[bw,Mr,Tt]),Zr=Mr(),Qf=Tt(),[Dw,nA]=AA(yn),[Fw,Dn]=AA(yn),hf=e=>{const{__scopeMenu:t,open:A=!1,children:n,dir:r,onOpenChange:o,modal:s=!0}=e,i=Zr(t),[a,l]=C.useState(null),c=C.useRef(!1),g=at(o),d=In(r);return C.useEffect(()=>{const f=()=>{c.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>c.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),u.jsx(ag,{...i,children:u.jsx(Dw,{scope:t,open:A,onOpenChange:g,content:a,onContentChange:l,children:u.jsx(Fw,{scope:t,onClose:C.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:c,dir:d,modal:s,children:n})})})};hf.displayName=yn;var Nw="MenuAnchor",Vi=C.forwardRef((e,t)=>{const{__scopeMenu:A,...n}=e,r=Zr(A);return u.jsx(ug,{...r,...n,ref:t})});Vi.displayName=Nw;var Gi="MenuPortal",[Pw,mf]=AA(Gi,{forceMount:void 0}),pf=e=>{const{__scopeMenu:t,forceMount:A,children:n,container:r}=e,o=nA(Gi,t);return u.jsx(Pw,{scope:t,forceMount:A,children:u.jsx(He,{present:A||o.open,children:u.jsx(jr,{asChild:!0,container:r,children:n})})})};pf.displayName=Gi;var Xe="MenuContent",[Mw,Yi]=AA(Xe),vf=C.forwardRef((e,t)=>{const A=mf(Xe,e.__scopeMenu),{forceMount:n=A.forceMount,...r}=e,o=nA(Xe,e.__scopeMenu),s=Dn(Xe,e.__scopeMenu);return u.jsx(fn.Provider,{scope:e.__scopeMenu,children:u.jsx(He,{present:n||o.open,children:u.jsx(fn.Slot,{scope:e.__scopeMenu,children:s.modal?u.jsx(jw,{...r,ref:t}):u.jsx(Tw,{...r,ref:t})})})})}),jw=C.forwardRef((e,t)=>{const A=nA(Xe,e.__scopeMenu),n=C.useRef(null),r=Ce(t,n);return C.useEffect(()=>{const o=n.current;if(o)return KC(o)},[]),u.jsx(Ui,{...e,ref:r,trapFocus:A.open,disableOutsidePointerEvents:A.open,disableOutsideScroll:!0,onFocusOutside:J(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>A.onOpenChange(!1)})}),Tw=C.forwardRef((e,t)=>{const A=nA(Xe,e.__scopeMenu);return u.jsx(Ui,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>A.onOpenChange(!1)})}),kw=wA("MenuContent.ScrollLock"),Ui=C.forwardRef((e,t)=>{const{__scopeMenu:A,loop:n=!1,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:a,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:g,onInteractOutside:d,onDismiss:f,disableOutsideScroll:E,...B}=e,h=nA(Xe,A),Q=Dn(Xe,A),m=Zr(A),x=Qf(A),b=xw(A),[I,v]=C.useState(null),p=C.useRef(null),y=Ce(t,p,h.onContentChange),N=C.useRef(0),T=C.useRef(""),O=C.useRef(0),z=C.useRef(null),F=C.useRef("right"),D=C.useRef(0),k=E?Li:C.Fragment,H=E?{as:kw,allowPinchZoom:!0}:void 0,S=P=>{var R,W;const G=T.current+P,$=b().filter(X=>!X.disabled),ne=document.activeElement,L=(R=$.find(X=>X.ref.current===ne))==null?void 0:R.textValue,j=$.map(X=>X.textValue),U=Xw(j,G,L),V=(W=$.find(X=>X.textValue===U))==null?void 0:W.ref.current;(function X(Ae){T.current=Ae,window.clearTimeout(N.current),Ae!==""&&(N.current=window.setTimeout(()=>X(""),1e3))})(G),V&&setTimeout(()=>V.focus())};C.useEffect(()=>()=>window.clearTimeout(N.current),[]),HC();const M=C.useCallback(P=>{var $,ne;return F.current===(($=z.current)==null?void 0:$.side)&&qw(P,(ne=z.current)==null?void 0:ne.area)},[]);return u.jsx(Mw,{scope:A,searchRef:T,onItemEnter:C.useCallback(P=>{M(P)&&P.preventDefault()},[M]),onItemLeave:C.useCallback(P=>{var G;M(P)||((G=p.current)==null||G.focus(),v(null))},[M]),onTriggerLeave:C.useCallback(P=>{M(P)&&P.preventDefault()},[M]),pointerGraceTimerRef:O,onPointerGraceIntentChange:C.useCallback(P=>{z.current=P},[]),children:u.jsx(k,{...H,children:u.jsx(Ri,{asChild:!0,trapped:r,onMountAutoFocus:J(o,P=>{var G;P.preventDefault(),(G=p.current)==null||G.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:u.jsx(yr,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:g,onInteractOutside:d,onDismiss:f,children:u.jsx(vr,{asChild:!0,...x,dir:Q.dir,orientation:"vertical",loop:n,currentTabStopId:I,onCurrentTabStopIdChange:v,onEntryFocus:J(a,P=>{Q.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(lg,{role:"menu","aria-orientation":"vertical","data-state":Of(h.open),"data-radix-menu-content":"",dir:Q.dir,...m,...B,ref:y,style:{outline:"none",...B.style},onKeyDown:J(B.onKeyDown,P=>{const $=P.target.closest("[data-radix-menu-content]")===P.currentTarget,ne=P.ctrlKey||P.altKey||P.metaKey,L=P.key.length===1;$&&(P.key==="Tab"&&P.preventDefault(),!ne&&L&&S(P.key));const j=p.current;if(P.target!==j||!pw.includes(P.key))return;P.preventDefault();const V=b().filter(R=>!R.disabled).map(R=>R.ref.current);If.includes(P.key)&&V.reverse(),Uw(V)}),onBlur:J(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(N.current),T.current="")}),onPointerMove:J(e.onPointerMove,Bn(P=>{const G=P.target,$=D.current!==P.clientX;if(P.currentTarget.contains(G)&&$){const ne=P.clientX>D.current?"right":"left";F.current=ne,D.current=P.clientX}}))})})})})})})});vf.displayName=Xe;var Rw="MenuGroup",Wi=C.forwardRef((e,t)=>{const{__scopeMenu:A,...n}=e;return u.jsx(se.div,{role:"group",...n,ref:t})});Wi.displayName=Rw;var Lw="MenuLabel",wf=C.forwardRef((e,t)=>{const{__scopeMenu:A,...n}=e;return u.jsx(se.div,{...n,ref:t})});wf.displayName=Lw;var hr="MenuItem",bl="menu.itemSelect",qr=C.forwardRef((e,t)=>{const{disabled:A=!1,onSelect:n,...r}=e,o=C.useRef(null),s=Dn(hr,e.__scopeMenu),i=Yi(hr,e.__scopeMenu),a=Ce(t,o),l=C.useRef(!1),c=()=>{const g=o.current;if(!A&&g){const d=new CustomEvent(bl,{bubbles:!0,cancelable:!0});g.addEventListener(bl,f=>n==null?void 0:n(f),{once:!0}),Jl(g,d),d.defaultPrevented?l.current=!1:s.onClose()}};return u.jsx(xf,{...r,ref:a,disabled:A,onClick:J(e.onClick,c),onPointerDown:g=>{var d;(d=e.onPointerDown)==null||d.call(e,g),l.current=!0},onPointerUp:J(e.onPointerUp,g=>{var d;l.current||(d=g.currentTarget)==null||d.click()}),onKeyDown:J(e.onKeyDown,g=>{const d=i.searchRef.current!=="";A||d&&g.key===" "||ms.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});qr.displayName=hr;var xf=C.forwardRef((e,t)=>{const{__scopeMenu:A,disabled:n=!1,textValue:r,...o}=e,s=Yi(hr,A),i=Qf(A),a=C.useRef(null),l=Ce(t,a),[c,g]=C.useState(!1),[d,f]=C.useState("");return C.useEffect(()=>{const E=a.current;E&&f((E.textContent??"").trim())},[o.children]),u.jsx(fn.ItemSlot,{scope:A,disabled:n,textValue:r??d,children:u.jsx(wr,{asChild:!0,...i,focusable:!n,children:u.jsx(se.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...o,ref:l,onPointerMove:J(e.onPointerMove,Bn(E=>{n?s.onItemLeave(E):(s.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:J(e.onPointerLeave,Bn(E=>s.onItemLeave(E))),onFocus:J(e.onFocus,()=>g(!0)),onBlur:J(e.onBlur,()=>g(!1))})})})}),Sw="MenuCheckboxItem",bf=C.forwardRef((e,t)=>{const{checked:A=!1,onCheckedChange:n,...r}=e;return u.jsx(Pf,{scope:e.__scopeMenu,checked:A,children:u.jsx(qr,{role:"menuitemcheckbox","aria-checked":mr(A)?"mixed":A,...r,ref:t,"data-state":Zi(A),onSelect:J(r.onSelect,()=>n==null?void 0:n(mr(A)?!0:!A),{checkForDefaultPrevented:!1})})})});bf.displayName=Sw;var yf="MenuRadioGroup",[Ow,zw]=AA(yf,{value:void 0,onValueChange:()=>{}}),Df=C.forwardRef((e,t)=>{const{value:A,onValueChange:n,...r}=e,o=at(n);return u.jsx(Ow,{scope:e.__scopeMenu,value:A,onValueChange:o,children:u.jsx(Wi,{...r,ref:t})})});Df.displayName=yf;var Ff="MenuRadioItem",Nf=C.forwardRef((e,t)=>{const{value:A,...n}=e,r=zw(Ff,e.__scopeMenu),o=A===r.value;return u.jsx(Pf,{scope:e.__scopeMenu,checked:o,children:u.jsx(qr,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":Zi(o),onSelect:J(n.onSelect,()=>{var s;return(s=r.onValueChange)==null?void 0:s.call(r,A)},{checkForDefaultPrevented:!1})})})});Nf.displayName=Ff;var Xi="MenuItemIndicator",[Pf,Hw]=AA(Xi,{checked:!1}),Mf=C.forwardRef((e,t)=>{const{__scopeMenu:A,forceMount:n,...r}=e,o=Hw(Xi,A);return u.jsx(He,{present:n||mr(o.checked)||o.checked===!0,children:u.jsx(se.span,{...r,ref:t,"data-state":Zi(o.checked)})})});Mf.displayName=Xi;var Vw="MenuSeparator",jf=C.forwardRef((e,t)=>{const{__scopeMenu:A,...n}=e;return u.jsx(se.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});jf.displayName=Vw;var Gw="MenuArrow",Tf=C.forwardRef((e,t)=>{const{__scopeMenu:A,...n}=e,r=Zr(A);return u.jsx(cg,{...r,...n,ref:t})});Tf.displayName=Gw;var Yw="MenuSub",[Hb,kf]=AA(Yw),_A="MenuSubTrigger",Rf=C.forwardRef((e,t)=>{const A=nA(_A,e.__scopeMenu),n=Dn(_A,e.__scopeMenu),r=kf(_A,e.__scopeMenu),o=Yi(_A,e.__scopeMenu),s=C.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:a}=o,l={__scopeMenu:e.__scopeMenu},c=C.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return C.useEffect(()=>c,[c]),C.useEffect(()=>{const g=i.current;return()=>{window.clearTimeout(g),a(null)}},[i,a]),u.jsx(Vi,{asChild:!0,...l,children:u.jsx(xf,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":A.open,"aria-controls":r.contentId,"data-state":Of(A.open),...e,ref:ys(t,r.onTriggerChange),onClick:g=>{var d;(d=e.onClick)==null||d.call(e,g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),A.open||A.onOpenChange(!0))},onPointerMove:J(e.onPointerMove,Bn(g=>{o.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!A.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{A.onOpenChange(!0),c()},100))})),onPointerLeave:J(e.onPointerLeave,Bn(g=>{var f,E;c();const d=(f=A.content)==null?void 0:f.getBoundingClientRect();if(d){const B=(E=A.content)==null?void 0:E.dataset.side,h=B==="right",Q=h?-5:5,m=d[h?"left":"right"],x=d[h?"right":"left"];o.onPointerGraceIntentChange({area:[{x:g.clientX+Q,y:g.clientY},{x:m,y:d.top},{x,y:d.top},{x,y:d.bottom},{x:m,y:d.bottom}],side:B}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(g),g.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:J(e.onKeyDown,g=>{var f;const d=o.searchRef.current!=="";e.disabled||d&&g.key===" "||vw[n.dir].includes(g.key)&&(A.onOpenChange(!0),(f=A.content)==null||f.focus(),g.preventDefault())})})})});Rf.displayName=_A;var Lf="MenuSubContent",Sf=C.forwardRef((e,t)=>{const A=mf(Xe,e.__scopeMenu),{forceMount:n=A.forceMount,...r}=e,o=nA(Xe,e.__scopeMenu),s=Dn(Xe,e.__scopeMenu),i=kf(Lf,e.__scopeMenu),a=C.useRef(null),l=Ce(t,a);return u.jsx(fn.Provider,{scope:e.__scopeMenu,children:u.jsx(He,{present:n||o.open,children:u.jsx(fn.Slot,{scope:e.__scopeMenu,children:u.jsx(Ui,{id:i.contentId,"aria-labelledby":i.triggerId,...r,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:c=>{var g;s.isUsingKeyboardRef.current&&((g=a.current)==null||g.focus()),c.preventDefault()},onCloseAutoFocus:c=>c.preventDefault(),onFocusOutside:J(e.onFocusOutside,c=>{c.target!==i.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:J(e.onEscapeKeyDown,c=>{s.onClose(),c.preventDefault()}),onKeyDown:J(e.onKeyDown,c=>{var f;const g=c.currentTarget.contains(c.target),d=ww[s.dir].includes(c.key);g&&d&&(o.onOpenChange(!1),(f=i.trigger)==null||f.focus(),c.preventDefault())})})})})})});Sf.displayName=Lf;function Of(e){return e?"open":"closed"}function mr(e){return e==="indeterminate"}function Zi(e){return mr(e)?"indeterminate":e?"checked":"unchecked"}function Uw(e){const t=document.activeElement;for(const A of e)if(A===t||(A.focus(),document.activeElement!==t))return}function Ww(e,t){return e.map((A,n)=>e[(t+n)%e.length])}function Xw(e,t,A){const r=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,o=A?e.indexOf(A):-1;let s=Ww(e,Math.max(o,0));r.length===1&&(s=s.filter(l=>l!==A));const a=s.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return a!==A?a:void 0}function Zw(e,t){const{x:A,y:n}=e;let r=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const i=t[o],a=t[s],l=i.x,c=i.y,g=a.x,d=a.y;c>n!=d>n&&A<(g-l)*(n-c)/(d-c)+l&&(r=!r)}return r}function qw(e,t){if(!t)return!1;const A={x:e.clientX,y:e.clientY};return Zw(A,t)}function Bn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Kw=hf,Jw=Vi,_w=pf,$w=vf,ex=Wi,tx=wf,Ax=qr,nx=bf,rx=Df,ox=Nf,sx=Mf,ix=jf,ax=Tf,ux=Rf,lx=Sf,Fn="Menubar",[ps,cx,gx]=Ps(Fn),[zf]=ze(Fn,[gx,Tt]),je=yw(),Hf=Tt(),[dx,qi]=zf(Fn),Vf=C.forwardRef((e,t)=>{const{__scopeMenubar:A,value:n,onValueChange:r,defaultValue:o,loop:s=!0,dir:i,...a}=e,l=In(i),c=Hf(A),[g,d]=jt({prop:n,onChange:r,defaultProp:o??"",caller:Fn}),[f,E]=C.useState(null);return u.jsx(dx,{scope:A,value:g,onMenuOpen:C.useCallback(B=>{d(B),E(B)},[d]),onMenuClose:C.useCallback(()=>d(""),[d]),onMenuToggle:C.useCallback(B=>{d(h=>h?"":B),E(B)},[d]),dir:l,loop:s,children:u.jsx(ps.Provider,{scope:A,children:u.jsx(ps.Slot,{scope:A,children:u.jsx(vr,{asChild:!0,...c,orientation:"horizontal",loop:s,dir:l,currentTabStopId:f,onCurrentTabStopIdChange:E,children:u.jsx(se.div,{role:"menubar",...a,ref:t})})})})})});Vf.displayName=Fn;var Ki="MenubarMenu",[Cx,Gf]=zf(Ki),Yf=e=>{const{__scopeMenubar:t,value:A,...n}=e,r=ot(),o=A||r||"LEGACY_REACT_AUTO_VALUE",s=qi(Ki,t),i=je(t),a=C.useRef(null),l=C.useRef(!1),c=s.value===o;return C.useEffect(()=>{c||(l.current=!1)},[c]),u.jsx(Cx,{scope:t,value:o,triggerId:ot(),triggerRef:a,contentId:ot(),wasKeyboardTriggerOpenRef:l,children:u.jsx(Kw,{...i,open:c,onOpenChange:g=>{g||s.onMenuClose()},modal:!1,dir:s.dir,...n})})};Yf.displayName=Ki;var vs="MenubarTrigger",Uf=C.forwardRef((e,t)=>{const{__scopeMenubar:A,disabled:n=!1,...r}=e,o=Hf(A),s=je(A),i=qi(vs,A),a=Gf(vs,A),l=C.useRef(null),c=Ce(t,l,a.triggerRef),[g,d]=C.useState(!1),f=i.value===a.value;return u.jsx(ps.ItemSlot,{scope:A,value:a.value,disabled:n,children:u.jsx(wr,{asChild:!0,...o,focusable:!n,tabStopId:a.value,children:u.jsx(Jw,{asChild:!0,...s,children:u.jsx(se.button,{type:"button",role:"menuitem",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?a.contentId:void 0,"data-highlighted":g?"":void 0,"data-state":f?"open":"closed","data-disabled":n?"":void 0,disabled:n,...r,ref:c,onPointerDown:J(e.onPointerDown,E=>{!n&&E.button===0&&E.ctrlKey===!1&&(i.onMenuOpen(a.value),f||E.preventDefault())}),onPointerEnter:J(e.onPointerEnter,()=>{var B;!!i.value&&!f&&(i.onMenuOpen(a.value),(B=l.current)==null||B.focus())}),onKeyDown:J(e.onKeyDown,E=>{n||(["Enter"," "].includes(E.key)&&i.onMenuToggle(a.value),E.key==="ArrowDown"&&i.onMenuOpen(a.value),["Enter"," ","ArrowDown"].includes(E.key)&&(a.wasKeyboardTriggerOpenRef.current=!0,E.preventDefault()))}),onFocus:J(e.onFocus,()=>d(!0)),onBlur:J(e.onBlur,()=>d(!1))})})})})});Uf.displayName=vs;var fx="MenubarPortal",Wf=e=>{const{__scopeMenubar:t,...A}=e,n=je(t);return u.jsx(_w,{...n,...A})};Wf.displayName=fx;var ws="MenubarContent",Xf=C.forwardRef((e,t)=>{const{__scopeMenubar:A,align:n="start",...r}=e,o=je(A),s=qi(ws,A),i=Gf(ws,A),a=cx(A),l=C.useRef(!1);return u.jsx($w,{id:i.contentId,"aria-labelledby":i.triggerId,"data-radix-menubar-content":"",...o,...r,ref:t,align:n,onCloseAutoFocus:J(e.onCloseAutoFocus,c=>{var d;!!!s.value&&!l.current&&((d=i.triggerRef.current)==null||d.focus()),l.current=!1,c.preventDefault()}),onFocusOutside:J(e.onFocusOutside,c=>{const g=c.target;a().some(f=>{var E;return(E=f.ref.current)==null?void 0:E.contains(g)})&&c.preventDefault()}),onInteractOutside:J(e.onInteractOutside,()=>{l.current=!0}),onEntryFocus:c=>{i.wasKeyboardTriggerOpenRef.current||c.preventDefault()},onKeyDown:J(e.onKeyDown,c=>{if(["ArrowRight","ArrowLeft"].includes(c.key)){const g=c.target,d=g.hasAttribute("data-radix-menubar-subtrigger"),f=g.closest("[data-radix-menubar-content]")!==c.currentTarget,B=(s.dir==="rtl"?"ArrowRight":"ArrowLeft")===c.key;if(!B&&d||f&&B)return;let m=a().filter(I=>!I.disabled).map(I=>I.value);B&&m.reverse();const x=m.indexOf(i.value);m=s.loop?Lx(m,x+1):m.slice(x+1);const[b]=m;b&&s.onMenuOpen(b)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});Xf.displayName=ws;var Bx="MenubarGroup",Ex=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(ex,{...r,...n,ref:t})});Ex.displayName=Bx;var Ix="MenubarLabel",Qx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(tx,{...r,...n,ref:t})});Qx.displayName=Ix;var hx="MenubarItem",Zf=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(Ax,{...r,...n,ref:t})});Zf.displayName=hx;var mx="MenubarCheckboxItem",px=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(nx,{...r,...n,ref:t})});px.displayName=mx;var vx="MenubarRadioGroup",wx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(rx,{...r,...n,ref:t})});wx.displayName=vx;var xx="MenubarRadioItem",bx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(ox,{...r,...n,ref:t})});bx.displayName=xx;var yx="MenubarItemIndicator",Dx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(sx,{...r,...n,ref:t})});Dx.displayName=yx;var Fx="MenubarSeparator",Nx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(ix,{...r,...n,ref:t})});Nx.displayName=Fx;var Px="MenubarArrow",Mx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(ax,{...r,...n,ref:t})});Mx.displayName=Px;var jx="MenubarSubTrigger",Tx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(ux,{"data-radix-menubar-subtrigger":"",...r,...n,ref:t})});Tx.displayName=jx;var kx="MenubarSubContent",Rx=C.forwardRef((e,t)=>{const{__scopeMenubar:A,...n}=e,r=je(A);return u.jsx(lx,{...r,"data-radix-menubar-content":"",...n,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});Rx.displayName=kx;function Lx(e,t){return e.map((A,n)=>e[(t+n)%e.length])}var Sx=Vf,Ox=Yf,zx=Uf,Hx=Wf,Vx=Xf,Gx=Zf;function Yx({className:e,...t}){return u.jsx(Sx,{"data-slot":"menubar",className:_("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...t})}function Ux({...e}){return u.jsx(Ox,{"data-slot":"menubar-menu",...e})}function Wx({...e}){return u.jsx(Hx,{"data-slot":"menubar-portal",...e})}function Xx({className:e,...t}){return u.jsx(zx,{"data-slot":"menubar-trigger",className:_("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",e),...t})}function Zx({className:e,align:t="start",alignOffset:A=-4,sideOffset:n=8,...r}){return u.jsx(Wx,{children:u.jsx(Vx,{"data-slot":"menubar-content",align:t,alignOffset:A,sideOffset:n,className:_("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...r})})}function yl({className:e,inset:t,variant:A="default",...n}){return u.jsx(Gx,{"data-slot":"menubar-item","data-inset":t,"data-variant":A,className:_("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}const qx=e=>e.split("_").filter(Boolean).map(t=>/^[A-Z0-9]+$/.test(t)?t:t.charAt(0)+t.slice(1)).join(" "),Dl=e=>e!=null&&e.trim()!=="",Kx=({data:e,onClose:t,showDetailsLabel:A,hideDetailsLabel:n,logo:r,closeLabel:o})=>{const[s,i]=w.useState(!1),a=Object.entries(e||{}),l=Dl((e==null?void 0:e.Copilot_Version)??null),c=l?e.Copilot_Version:"",g=a.filter(([d])=>d!=="Copilot_Version").filter(([,d])=>Dl(d));return u.jsxs("div",{className:"bg-popover text-popover-foreground rounded-lg shadow p-4 min-w-[320px] border border-border",children:[u.jsx("div",{className:"flex items-center gap-3 mb-3",children:r}),u.jsx("div",{className:"mb-3",children:l&&u.jsxs("div",{className:"text-[14px]",children:[u.jsx("span",{className:"font-semibold text-[14px]",children:"Product Version: "}),u.jsx("span",{className:"text-secondary-foreground text-[14px]",children:c})]})}),g.length>0&&u.jsx("div",{className:"mb-3",children:u.jsx(Qe,{variant:"ghost",size:"sm",onClick:()=>i(d=>!d),className:"underline p-0",children:u.jsx("span",{className:"text-secondary-foreground text-[14px]",children:s?n||"Hide Details":A||"Show Details"})})}),s&&g.length>0&&u.jsx("div",{className:"space-y-2",children:g.map(([d,f])=>u.jsxs("div",{className:"flex gap-2 text-[14px]",children:[u.jsxs("span",{className:"font-semibold",children:[qx(d),":"]}),u.jsx("span",{className:"text-popover-foreground",children:f})]},d))}),u.jsx("div",{className:"mt-4 flex justify-end",children:u.jsx(Qe,{variant:"outline",size:"sm",onClick:()=>t==null?void 0:t(),children:o||"Close"})})]})},qf=({fullName:e,onLogout:t,type:A="primary",logoutText:n="Logout",versionInfoContent:r,versionInfoLabel:o,showDetailsLabel:s,hideDetailsLabel:i,logo:a,closeLabel:l})=>{const[c,g]=w.useState(!1);return u.jsxs(u.Fragment,{children:[u.jsx(Yx,{className:"p-0 bg-transparent border-none shadow-none",children:u.jsxs(Ux,{children:[u.jsx(Xx,{className:"p-0",children:u.jsx(qt,{fullName:e,type:A})}),u.jsxs(Zx,{align:"end",className:"bg-popover min-w-32 border-radius-md border-border border shadow-md p-1",children:[u.jsx("div",{className:"text-sm font-semibold text-popover-foreground py-1 px-2",children:e}),r&&u.jsxs(yl,{onClick:()=>g(!0),className:"cursor-pointer","data-testid":"version-info-menu-item",children:[u.jsx(Y,{name:"About",className:"w-4 h-4 text-popover-foreground"}),u.jsx("span",{className:"text-sm font-medium text-secondary-foreground",children:o||"Version Info"})]}),u.jsxs(yl,{onClick:t,"data-testid":"logout-button",className:"cursor-pointer",children:[u.jsx(Y,{name:"Logout",className:"w-4 h-4 text-popover-foreground"}),u.jsx("span",{className:"text-sm font-medium text-secondary-foreground",children:n})]})]})]})}),r&&u.jsx(Ef,{isOpen:c,onOpenChange:g,content:u.jsx(Kx,{data:r,onClose:()=>g(!1),showDetailsLabel:s,hideDetailsLabel:i,logo:a,closeLabel:l})})]})},Jx=({rate:e,width:t="100%"})=>{const A=w.useMemo(()=>{if(e<=20)return u.jsx(Y,{name:"AngryFace",width:24,height:24});if(e>20&&e<=40)return u.jsx(Y,{name:"ConfusedFace",width:24,height:24});if(e>40&&e<=60)return u.jsx(Y,{name:"NeutralFaceIcon",width:24,height:24});if(e>60&&e<=80)return u.jsx(Y,{name:"Smiling",width:24,height:24});if(e>80&&e<=100)return u.jsx(Y,{name:"SmilingWithHearts",width:24,height:24})},[e]),n=w.useMemo(()=>`${Math.max(0,Math.min(100,e))}%`,[e]),r=typeof t=="number"?`${t}px`:t??"100%";return u.jsxs("div",{className:"relative h-1 min-[501px]:h-1.5 rounded-full",style:{width:r},children:[u.jsx("div",{className:"w-full h-full absolute top-0 left-0 rounded-full sentiment-gradient"}),u.jsx("div",{className:"absolute inset-y-0 left-[-10px] flex items-center -translate-x-1/2",children:u.jsx("svg",{width:"14",height:"14",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("rect",{x:"4.5",y:"8",width:"9",height:"2",rx:"1",fill:"#FF8183"})})}),u.jsx("div",{className:"absolute inset-y-0 right-[-10px] flex items-center translate-x-1/2",children:u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("rect",{x:"4.5",y:"8",width:"9",height:"2",rx:"1",fill:"#47D093"}),u.jsx("rect",{x:"8",y:"4.5",width:"2",height:"9",rx:"1",fill:"#47D093"})]})}),u.jsx("div",{style:{left:n,transform:"translateX(-50%)"},className:`absolute z-10 -top-[12px] flex items-center justify-center rounded-full border-[2px] bg-white ${e>50?"border-[#45D192]":"border-[#FF8182]"}`,children:u.jsx("div",{className:"p-[1px]",children:A})})]})},_x=({fullName:e,logo:t,action:A,userMenuComponent:n,avatarType:r="primary",logoutText:o="Logout",onLogout:s,versionInfoContent:i,versionInfoLabel:a,showDetailsLabel:l,hideDetailsLabel:c,closeLabel:g,conversationId:d,conversationIdLabel:f="Conversation ID:",sentimentMeterShow:E=!0,sentimentRate:B,sentimentWidth:h,biometricContent:Q})=>{const[m,x]=w.useState(!1);return u.jsxs("div",{className:"w-full h-[56px] px-6 py-2 flex items-center justify-between bg-background relative","data-testid":"header-container",children:[m&&u.jsx("button",{type:"button","aria-label":"Close conversation id",className:"fixed inset-0 z-20",onClick:()=>x(!1)}),t,u.jsxs("div",{className:"flex items-center gap-2 w-full",children:[u.jsxs("div",{className:"flex items-center gap-3",style:{width:"100%",justifyContent:"center",alignItems:"center",marginLeft:10},children:[d&&u.jsxs("div",{className:"relative flex items-center z-30",children:[u.jsx("button",{type:"button",className:"flex md:hidden items-center justify-center w-7 h-7 rounded-full bg-[#F5F5F5] hover:bg-[#ededed] transition-colors","aria-label":"Show conversation id","aria-expanded":m,onClick:()=>x(b=>!b),children:u.jsx(Y,{name:"Unknown",width:16,height:16,className:"text-secondary-foreground"})}),u.jsxs("span",{className:"hidden md:inline-block text-[14px] text-secondary-foreground whitespace-nowrap px-3 py-2 rounded-[10px]",style:{backgroundColor:"#F5F5F5"},children:[f," ",d]}),m&&u.jsxs("div",{className:"absolute left-1/2 top-full mt-1 -translate-x-3 px-3 py-2 rounded-[10px] text-[14px] text-secondary-foreground whitespace-nowrap shadow-sm z-30 md:hidden",style:{backgroundColor:"#F5F5F5"},children:[f," ",d]})]}),d&&E&&u.jsx("div",{className:"h-5 w-px shrink-0 bg-border","aria-hidden":!0}),E&&u.jsx("div",{className:"min-w-[120px] ml-3",children:u.jsx(Jx,{rate:B??50,width:h})})]}),u.jsxs("div",{className:"flex items-center justify-end gap-2 flex-1",children:[u.jsx("div",{className:"ml-3 mr-3",children:Q}),n??u.jsx(qf,{fullName:e,onLogout:s,type:r,logoutText:o,versionInfoContent:i,versionInfoLabel:a,showDetailsLabel:l,hideDetailsLabel:c,logo:t,closeLabel:g}),A]})]})]})},$x=({items:e,activeItem:t,onClickItem:A})=>{var r,o;const n=(r=e.find(s=>s.id===t))==null?void 0:r.isDarkBg;return u.jsxs("div",{className:"hidden md:flex gap-3 flex-row-reverse h-full max-h-screen",children:[u.jsx("div",{className:"flex gap-2 flex-col",children:e.map(s=>u.jsx("div",{onClick:()=>A(s.id),className:_("w-10 h-10 hover:bg-secondary flex items-center justify-center cursor-pointer rounded-2xl ",s.id===t&&" border-2 border-primary"),children:u.jsx(Y,{name:s.icon,width:24,height:24,className:"text-primary"})},s.id))}),u.jsx("div",{className:_("w-full flex-1 rounded-2xl h-full min-h-full overflow-y-auto no-scrollbar",n?"bg-secondary":"bg-background"),children:(o=e.find(s=>s.id===t))==null?void 0:o.content},t)]})},Kf=({title:e,className:t,tabs:A,onClickClose:n})=>u.jsxs("div",{className:_("bg-background sm:bg-secondary rounded-2xl p-2 w-full h-full flex flex-col gap-2",t),children:[u.jsxs("div",{className:_("text-xl font-medium text-foreground py-2 px-4 flex items-center justify-between",!e&&"sm:hidden"),children:[e&&u.jsx("span",{children:e}),u.jsx(Qe,{variant:"ghost",className:"sm:hidden",onClick:n,children:u.jsx(Y,{name:"Close",width:16,height:16,className:"text-foreground"})})]}),u.jsx("div",{className:"bg-background rounded-t-4xl sm:pt-4 rounded-br-[12px] rounded-b-xl px-4 w-full h-full flex-1 overflow-hidden",children:u.jsx(Pc,{...A})})]});function eb(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],A=document.createElement("style");A.type="text/css",t.appendChild(A),A.styleSheet?A.styleSheet.cssText=e:A.appendChild(document.createTextNode(e))}const Jf=w.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Nn=()=>{const e=w.useContext(Jf);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};eb(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
112
112
  [data-state=closed]
113
113
  ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function tb(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Ab(){return Ji(/^Mac/)}function nb(){return Ji(/^iPhone/)}function Fl(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function rb(){return Ji(/^iPad/)||Ab()&&navigator.maxTouchPoints>1}function _f(){return nb()||rb()}function Ji(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const ob=24,sb=typeof window<"u"?w.useLayoutEffect:w.useEffect;function Nl(...e){return(...t)=>{for(let A of e)typeof A=="function"&&A(...t)}}const To=typeof document<"u"&&window.visualViewport;function Pl(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function $f(e){for(Pl(e)&&(e=e.parentElement);e&&!Pl(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const ib=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Jn=0,ko;function ab(e={}){let{isDisabled:t}=e;sb(()=>{if(!t)return Jn++,Jn===1&&_f()&&(ko=ub()),()=>{Jn--,Jn===0&&(ko==null||ko())}},[t])}function ub(){let e,t=0,A=g=>{e=$f(g.target),!(e===document.documentElement&&e===document.body)&&(t=g.changedTouches[0].pageY)},n=g=>{if(!e||e===document.documentElement||e===document.body){g.preventDefault();return}let d=g.changedTouches[0].pageY,f=e.scrollTop,E=e.scrollHeight-e.clientHeight;E!==0&&((f<=0&&d>t||f>=E&&d<t)&&g.preventDefault(),t=d)},r=g=>{let d=g.target;xs(d)&&d!==document.activeElement&&(g.preventDefault(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""}))},o=g=>{let d=g.target;xs(d)&&(d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",To&&(To.height<window.innerHeight?requestAnimationFrame(()=>{Ml(d)}):To.addEventListener("resize",()=>Ml(d),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},i=window.pageXOffset,a=window.pageYOffset,l=Nl(lb(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let c=Nl(WA(document,"touchstart",A,{passive:!1,capture:!0}),WA(document,"touchmove",n,{passive:!1,capture:!0}),WA(document,"touchend",r,{passive:!1,capture:!0}),WA(document,"focus",o,!0),WA(window,"scroll",s));return()=>{l(),c(),window.scrollTo(i,a)}}function lb(e,t,A){let n=e.style[t];return e.style[t]=A,()=>{e.style[t]=n}}function WA(e,t,A,n){return e.addEventListener(t,A,n),()=>{e.removeEventListener(t,A,n)}}function Ml(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let A=$f(e);if(A!==document.documentElement&&A!==document.body&&A!==e){let n=A.getBoundingClientRect().top,r=e.getBoundingClientRect().top,o=e.getBoundingClientRect().bottom;const s=A.getBoundingClientRect().bottom+ob;o>s&&(A.scrollTop+=r-n)}e=A.parentElement}}function xs(e){return e instanceof HTMLInputElement&&!ib.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function cb(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function gb(...e){return t=>e.forEach(A=>cb(A,t))}function eB(...e){return C.useCallback(gb(...e),e)}const tB=new WeakMap;function be(e,t,A=!1){if(!e||!(e instanceof HTMLElement))return;let n={};Object.entries(t).forEach(([r,o])=>{if(r.startsWith("--")){e.style.setProperty(r,o);return}n[r]=e.style[r],e.style[r]=o}),!A&&tB.set(e,n)}function db(e,t){if(!e||!(e instanceof HTMLElement))return;let A=tB.get(e);A&&(e.style[t]=A[t])}const ve=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function _n(e,t){if(!e)return null;const A=window.getComputedStyle(e),n=A.transform||A.webkitTransform||A.mozTransform;let r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[ve(t)?13:12]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[ve(t)?5:4]):null)}function Cb(e){return 8*(Math.log(e+1)-2)}function Ro(e,t){if(!e)return()=>{};const A=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=A}}function fb(...e){return(...t)=>{for(const A of e)typeof A=="function"&&A(...t)}}const Be={DURATION:.5,EASE:[.32,.72,0,1]},AB=.4,Bb=.25,Eb=100,nB=8,Yt=16,bs=26,Lo="vaul-dragging";function rB(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...A)=>t.current==null?void 0:t.current.call(t,...A),[])}function Ib({defaultProp:e,onChange:t}){const A=w.useState(e),[n]=A,r=w.useRef(n),o=rB(t);return w.useEffect(()=>{r.current!==n&&(o(n),r.current=n)},[n,r,o]),A}function oB({prop:e,defaultProp:t,onChange:A=()=>{}}){const[n,r]=Ib({defaultProp:t,onChange:A}),o=e!==void 0,s=o?e:n,i=rB(A),a=w.useCallback(l=>{if(o){const g=typeof l=="function"?l(e):l;g!==e&&i(g)}else r(l)},[o,e,r,i]);return[s,a]}function Qb({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:A,drawerRef:n,overlayRef:r,fadeFromIndex:o,onSnapPointChange:s,direction:i="bottom",container:a,snapToSequentialPoint:l}){const[c,g]=oB({prop:e,defaultProp:A==null?void 0:A[0],onChange:t}),[d,f]=w.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);w.useEffect(()=>{function p(){f({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]);const E=w.useMemo(()=>c===(A==null?void 0:A[A.length-1])||null,[A,c]),B=w.useMemo(()=>{var p;return(p=A==null?void 0:A.findIndex(y=>y===c))!=null?p:null},[A,c]),h=A&&A.length>0&&(o||o===0)&&!Number.isNaN(o)&&A[o]===c||!A,Q=w.useMemo(()=>{const p=a?{width:a.getBoundingClientRect().width,height:a.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var y;return(y=A==null?void 0:A.map(N=>{const T=typeof N=="string";let O=0;if(T&&(O=parseInt(N,10)),ve(i)){const F=T?O:d?N*p.height:0;return d?i==="bottom"?p.height-F:-p.height+F:F}const z=T?O:d?N*p.width:0;return d?i==="right"?p.width-z:-p.width+z:z}))!=null?y:[]},[A,d,a]),m=w.useMemo(()=>B!==null?Q==null?void 0:Q[B]:null,[Q,B]),x=w.useCallback(p=>{var y;const N=(y=Q==null?void 0:Q.findIndex(T=>T===p))!=null?y:null;s(N),be(n.current,{transition:`transform ${Be.DURATION}s cubic-bezier(${Be.EASE.join(",")})`,transform:ve(i)?`translate3d(0, ${p}px, 0)`:`translate3d(${p}px, 0, 0)`}),Q&&N!==Q.length-1&&o!==void 0&&N!==o&&N<o?be(r.current,{transition:`opacity ${Be.DURATION}s cubic-bezier(${Be.EASE.join(",")})`,opacity:"0"}):be(r.current,{transition:`opacity ${Be.DURATION}s cubic-bezier(${Be.EASE.join(",")})`,opacity:"1"}),g(A==null?void 0:A[Math.max(N,0)])},[n.current,A,Q,o,r,g]);w.useEffect(()=>{if(c||e){var p;const y=(p=A==null?void 0:A.findIndex(N=>N===e||N===c))!=null?p:-1;Q&&y!==-1&&typeof Q[y]=="number"&&x(Q[y])}},[c,e,A,Q,x]);function b({draggedDistance:p,closeDrawer:y,velocity:N,dismissible:T}){if(o===void 0)return;const O=i==="bottom"||i==="right"?(m??0)-p:(m??0)+p,z=B===o-1,F=B===0,D=p>0;if(z&&be(r.current,{transition:`opacity ${Be.DURATION}s cubic-bezier(${Be.EASE.join(",")})`}),!l&&N>2&&!D){T?y():x(Q[0]);return}if(!l&&N>2&&D&&Q&&A){x(Q[A.length-1]);return}const k=Q==null?void 0:Q.reduce((S,M)=>typeof S!="number"||typeof M!="number"?S:Math.abs(M-O)<Math.abs(S-O)?M:S),H=ve(i)?window.innerHeight:window.innerWidth;if(N>AB&&Math.abs(p)<H*.4){const S=D?1:-1;if(S>0&&E&&A){x(Q[A.length-1]);return}if(F&&S<0&&T&&y(),B===null)return;x(Q[B+S]);return}x(k)}function I({draggedDistance:p}){if(m===null)return;const y=i==="bottom"||i==="right"?m-p:m+p;(i==="bottom"||i==="right")&&y<Q[Q.length-1]||(i==="top"||i==="left")&&y>Q[Q.length-1]||be(n.current,{transform:ve(i)?`translate3d(0, ${y}px, 0)`:`translate3d(${y}px, 0, 0)`})}function v(p,y){if(!A||typeof B!="number"||!Q||o===void 0)return null;const N=B===o-1;if(B>=o&&y)return 0;if(N&&!y)return 1;if(!h&&!N)return null;const O=N?B+1:B-1,z=N?Q[O]-Q[O-1]:Q[O+1]-Q[O],F=p/Math.abs(z);return N?1-F:F}return{isLastSnapPoint:E,activeSnapPoint:c,shouldFade:h,getPercentageDragged:v,setActiveSnapPoint:g,activeSnapPointIndex:B,onRelease:b,onDrag:I,snapPointsOffset:Q}}const hb=()=>()=>{};function mb(){const{direction:e,isOpen:t,shouldScaleBackground:A,setBackgroundColorOnScale:n,noBodyStyles:r}=Nn(),o=w.useRef(null),s=w.useMemo(()=>document.body.style.backgroundColor,[]);function i(){return(window.innerWidth-bs)/window.innerWidth}w.useEffect(()=>{if(t&&A){o.current&&clearTimeout(o.current);const a=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!a)return;fb(n&&!r?Ro(document.body,{background:"black"}):hb,Ro(a,{transformOrigin:ve(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Be.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Be.EASE.join(",")})`}));const l=Ro(a,{borderRadius:`${nB}px`,overflow:"hidden",...ve(e)?{transform:`scale(${i()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${i()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{l(),o.current=window.setTimeout(()=>{s?document.body.style.background=s:document.body.style.removeProperty("background")},Be.DURATION*1e3)}}},[t,A,s])}let XA=null;function pb({isOpen:e,modal:t,nested:A,hasBeenOpened:n,preventScrollRestoration:r,noBodyStyles:o}){const[s,i]=w.useState(()=>typeof window<"u"?window.location.href:""),a=w.useRef(0),l=w.useCallback(()=>{if(Fl()&&XA===null&&e&&!o){XA={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:g,innerHeight:d}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-a.current}px`,left:`${-g}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const f=d-window.innerHeight;f&&a.current>=d&&(document.body.style.top=`${-(a.current+f)}px`)}),300)}},[e]),c=w.useCallback(()=>{if(Fl()&&XA!==null&&!o){const g=-parseInt(document.body.style.top,10),d=-parseInt(document.body.style.left,10);Object.assign(document.body.style,XA),window.requestAnimationFrame(()=>{if(r&&s!==window.location.href){i(window.location.href);return}window.scrollTo(d,g)}),XA=null}},[s]);return w.useEffect(()=>{function g(){a.current=window.scrollY}return g(),window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}},[]),w.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||c()}},[t,c]),w.useEffect(()=>{A||!n||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout(()=>{c()},500)):c())},[e,n,s,t,A,l,c]),{restorePositionSetting:c}}function vb({open:e,onOpenChange:t,children:A,onDrag:n,onRelease:r,snapPoints:o,shouldScaleBackground:s=!1,setBackgroundColorOnScale:i=!0,closeThreshold:a=Bb,scrollLockTimeout:l=Eb,dismissible:c=!0,handleOnly:g=!1,fadeFromIndex:d=o&&o.length-1,activeSnapPoint:f,setActiveSnapPoint:E,fixed:B,modal:h=!0,onClose:Q,nested:m,noBodyStyles:x=!1,direction:b="bottom",defaultOpen:I=!1,disablePreventScroll:v=!0,snapToSequentialPoint:p=!1,preventScrollRestoration:y=!1,repositionInputs:N=!0,onAnimationEnd:T,container:O,autoFocus:z=!1}){var F,D;const[k=!1,H]=oB({defaultProp:I,prop:e,onChange:te=>{t==null||t(te),!te&&!m&&cB(),setTimeout(()=>{T==null||T(te)},Be.DURATION*1e3),te&&!h&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),te||(document.body.style.pointerEvents="auto")}}),[S,M]=w.useState(!1),[P,G]=w.useState(!1),[$,ne]=w.useState(!1),L=w.useRef(null),j=w.useRef(null),U=w.useRef(null),V=w.useRef(null),R=w.useRef(null),W=w.useRef(!1),X=w.useRef(null),Ae=w.useRef(0),le=w.useRef(!1),ge=w.useRef(!I),ae=w.useRef(0),K=w.useRef(null),Ne=w.useRef(((F=K.current)==null?void 0:F.getBoundingClientRect().height)||0),Te=w.useRef(((D=K.current)==null?void 0:D.getBoundingClientRect().width)||0),ct=w.useRef(0),ye=w.useCallback(te=>{o&&te===Lt.length-1&&(j.current=new Date)},[]),{activeSnapPoint:gt,activeSnapPointIndex:ht,setActiveSnapPoint:mt,onRelease:Mn,snapPointsOffset:Lt,onDrag:uB,shouldFade:_i,getPercentageDragged:lB}=Qb({snapPoints:o,activeSnapPointProp:f,setActiveSnapPointProp:E,drawerRef:K,fadeFromIndex:d,overlayRef:L,onSnapPointChange:ye,direction:b,container:O,snapToSequentialPoint:p});ab({isDisabled:!k||P||!h||$||!S||!N||!v});const{restorePositionSetting:cB}=pb({isOpen:k,modal:h,nested:m??!1,hasBeenOpened:S,preventScrollRestoration:y,noBodyStyles:x});function jn(){return(window.innerWidth-bs)/window.innerWidth}function gB(te){var ce,de;!c&&!o||K.current&&!K.current.contains(te.target)||(Ne.current=((ce=K.current)==null?void 0:ce.getBoundingClientRect().height)||0,Te.current=((de=K.current)==null?void 0:de.getBoundingClientRect().width)||0,G(!0),U.current=new Date,_f()&&window.addEventListener("touchend",()=>W.current=!1,{once:!0}),te.target.setPointerCapture(te.pointerId),Ae.current=ve(b)?te.pageY:te.pageX)}function $i(te,ce){var de;let ue=te;const me=(de=window.getSelection())==null?void 0:de.toString(),ke=K.current?_n(K.current,b):null,Pe=new Date;if(ue.tagName==="SELECT"||ue.hasAttribute("data-vaul-no-drag")||ue.closest("[data-vaul-no-drag]"))return!1;if(b==="right"||b==="left")return!0;if(j.current&&Pe.getTime()-j.current.getTime()<500)return!1;if(ke!==null&&(b==="bottom"?ke>0:ke<0))return!0;if(me&&me.length>0)return!1;if(R.current&&Pe.getTime()-R.current.getTime()<l&&ke===0||ce)return R.current=Pe,!1;for(;ue;){if(ue.scrollHeight>ue.clientHeight){if(ue.scrollTop!==0)return R.current=new Date,!1;if(ue.getAttribute("role")==="dialog")return!0}ue=ue.parentNode}return!0}function dB(te){if(K.current&&P){const ce=b==="bottom"||b==="right"?1:-1,de=(Ae.current-(ve(b)?te.pageY:te.pageX))*ce,ue=de>0,me=o&&!c&&!ue;if(me&&ht===0)return;const ke=Math.abs(de),Pe=document.querySelector("[data-vaul-drawer-wrapper]"),pt=b==="bottom"||b==="top"?Ne.current:Te.current;let qe=ke/pt;const St=lB(ke,ue);if(St!==null&&(qe=St),me&&qe>=1||!W.current&&!$i(te.target,ue))return;if(K.current.classList.add(Lo),W.current=!0,be(K.current,{transition:"none"}),be(L.current,{transition:"none"}),o&&uB({draggedDistance:de}),ue&&!o){const At=Cb(de),Tn=Math.min(At*-1,0)*ce;be(K.current,{transform:ve(b)?`translate3d(0, ${Tn}px, 0)`:`translate3d(${Tn}px, 0, 0)`});return}const vt=1-qe;if((_i||d&&ht===d-1)&&(n==null||n(te,qe),be(L.current,{opacity:`${vt}`,transition:"none"},!0)),Pe&&L.current&&s){const At=Math.min(jn()+qe*(1-jn()),1),Tn=8-qe*8,ta=Math.max(0,14-qe*14);be(Pe,{borderRadius:`${Tn}px`,transform:ve(b)?`scale(${At}) translate3d(0, ${ta}px, 0)`:`scale(${At}) translate3d(${ta}px, 0, 0)`,transition:"none"},!0)}if(!o){const At=ke*ce;be(K.current,{transform:ve(b)?`translate3d(0, ${At}px, 0)`:`translate3d(${At}px, 0, 0)`})}}}w.useEffect(()=>{window.requestAnimationFrame(()=>{ge.current=!0})},[]),w.useEffect(()=>{var te;function ce(){if(!K.current||!N)return;const de=document.activeElement;if(xs(de)||le.current){var ue;const me=((ue=window.visualViewport)==null?void 0:ue.height)||0,ke=window.innerHeight;let Pe=ke-me;const pt=K.current.getBoundingClientRect().height||0,qe=pt>ke*.8;ct.current||(ct.current=pt);const St=K.current.getBoundingClientRect().top;if(Math.abs(ae.current-Pe)>60&&(le.current=!le.current),o&&o.length>0&&Lt&&ht){const vt=Lt[ht]||0;Pe+=vt}if(ae.current=Pe,pt>me||le.current){const vt=K.current.getBoundingClientRect().height;let At=vt;vt>me&&(At=me-(qe?St:bs)),B?K.current.style.height=`${vt-Math.max(Pe,0)}px`:K.current.style.height=`${Math.max(At,me-St)}px`}else tb()||(K.current.style.height=`${ct.current}px`);o&&o.length>0&&!le.current?K.current.style.bottom="0px":K.current.style.bottom=`${Math.max(Pe,0)}px`}}return(te=window.visualViewport)==null||te.addEventListener("resize",ce),()=>{var de;return(de=window.visualViewport)==null?void 0:de.removeEventListener("resize",ce)}},[ht,o,Lt]);function SA(te){CB(),Q==null||Q(),te||H(!1),setTimeout(()=>{o&&mt(o[0])},Be.DURATION*1e3)}function ea(){if(!K.current)return;const te=document.querySelector("[data-vaul-drawer-wrapper]"),ce=_n(K.current,b);be(K.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Be.DURATION}s cubic-bezier(${Be.EASE.join(",")})`}),be(L.current,{transition:`opacity ${Be.DURATION}s cubic-bezier(${Be.EASE.join(",")})`,opacity:"1"}),s&&ce&&ce>0&&k&&be(te,{borderRadius:`${nB}px`,overflow:"hidden",...ve(b)?{transform:`scale(${jn()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${jn()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Be.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Be.EASE.join(",")})`},!0)}function CB(){!P||!K.current||(K.current.classList.remove(Lo),W.current=!1,G(!1),V.current=new Date)}function fB(te){if(!P||!K.current)return;K.current.classList.remove(Lo),W.current=!1,G(!1),V.current=new Date;const ce=_n(K.current,b);if(!te||!$i(te.target,!1)||!ce||Number.isNaN(ce)||U.current===null)return;const de=V.current.getTime()-U.current.getTime(),ue=Ae.current-(ve(b)?te.pageY:te.pageX),me=Math.abs(ue)/de;if(me>.05&&(ne(!0),setTimeout(()=>{ne(!1)},200)),o){Mn({draggedDistance:ue*(b==="bottom"||b==="right"?1:-1),closeDrawer:SA,velocity:me,dismissible:c}),r==null||r(te,!0);return}if(b==="bottom"||b==="right"?ue>0:ue<0){ea(),r==null||r(te,!0);return}if(me>AB){SA(),r==null||r(te,!1);return}var ke;const Pe=Math.min((ke=K.current.getBoundingClientRect().height)!=null?ke:0,window.innerHeight);var pt;const qe=Math.min((pt=K.current.getBoundingClientRect().width)!=null?pt:0,window.innerWidth),St=b==="left"||b==="right";if(Math.abs(ce)>=(St?qe:Pe)*a){SA(),r==null||r(te,!1);return}r==null||r(te,!0),ea()}w.useEffect(()=>(k&&(be(document.documentElement,{scrollBehavior:"auto"}),j.current=new Date),()=>{db(document.documentElement,"scrollBehavior")}),[k]);function BB(te){const ce=te?(window.innerWidth-Yt)/window.innerWidth:1,de=te?-Yt:0;X.current&&window.clearTimeout(X.current),be(K.current,{transition:`transform ${Be.DURATION}s cubic-bezier(${Be.EASE.join(",")})`,transform:ve(b)?`scale(${ce}) translate3d(0, ${de}px, 0)`:`scale(${ce}) translate3d(${de}px, 0, 0)`}),!te&&K.current&&(X.current=setTimeout(()=>{const ue=_n(K.current,b);be(K.current,{transition:"none",transform:ve(b)?`translate3d(0, ${ue}px, 0)`:`translate3d(${ue}px, 0, 0)`})},500))}function EB(te,ce){if(ce<0)return;const de=(window.innerWidth-Yt)/window.innerWidth,ue=de+ce*(1-de),me=-Yt+ce*Yt;be(K.current,{transform:ve(b)?`scale(${ue}) translate3d(0, ${me}px, 0)`:`scale(${ue}) translate3d(${me}px, 0, 0)`,transition:"none"})}function IB(te,ce){const de=ve(b)?window.innerHeight:window.innerWidth,ue=ce?(de-Yt)/de:1,me=ce?-Yt:0;ce&&be(K.current,{transition:`transform ${Be.DURATION}s cubic-bezier(${Be.EASE.join(",")})`,transform:ve(b)?`scale(${ue}) translate3d(0, ${me}px, 0)`:`scale(${ue}) translate3d(${me}px, 0, 0)`})}return w.useEffect(()=>{h||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[h]),w.createElement(gf,{defaultOpen:I,onOpenChange:te=>{!c&&!te||(te?M(!0):SA(!0),H(te))},open:k},w.createElement(Jf.Provider,{value:{activeSnapPoint:gt,snapPoints:o,setActiveSnapPoint:mt,drawerRef:K,overlayRef:L,onOpenChange:t,onPress:gB,onRelease:fB,onDrag:dB,dismissible:c,shouldAnimate:ge,handleOnly:g,isOpen:k,isDragging:P,shouldFade:_i,closeDrawer:SA,onNestedDrag:EB,onNestedOpenChange:BB,onNestedRelease:IB,keyboardIsOpen:le,modal:h,snapPointsOffset:Lt,activeSnapPointIndex:ht,direction:b,shouldScaleBackground:s,setBackgroundColorOnScale:i,noBodyStyles:x,container:O,autoFocus:z}},A))}const sB=w.forwardRef(function({...e},t){const{overlayRef:A,snapPoints:n,onRelease:r,shouldFade:o,isOpen:s,modal:i,shouldAnimate:a}=Nn(),l=eB(t,A),c=n&&n.length>0;if(!i)return null;const g=w.useCallback(d=>r(d),[r]);return w.createElement(Cf,{onMouseUp:g,ref:l,"data-vaul-overlay":"","data-vaul-snap-points":s&&c?"true":"false","data-vaul-snap-points-overlay":s&&o?"true":"false","data-vaul-animate":a!=null&&a.current?"true":"false",...e})});sB.displayName="Drawer.Overlay";const iB=w.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:A,...n},r){const{drawerRef:o,onPress:s,onRelease:i,onDrag:a,keyboardIsOpen:l,snapPointsOffset:c,activeSnapPointIndex:g,modal:d,isOpen:f,direction:E,snapPoints:B,container:h,handleOnly:Q,shouldAnimate:m,autoFocus:x}=Nn(),[b,I]=w.useState(!1),v=eB(r,o),p=w.useRef(null),y=w.useRef(null),N=w.useRef(!1),T=B&&B.length>0;mb();const O=(F,D,k=0)=>{if(N.current)return!0;const H=Math.abs(F.y),S=Math.abs(F.x),M=S>H,P=["bottom","right"].includes(D)?1:-1;if(D==="left"||D==="right"){if(!(F.x*P<0)&&S>=0&&S<=k)return M}else if(!(F.y*P<0)&&H>=0&&H<=k)return!M;return N.current=!0,!0};w.useEffect(()=>{T&&window.requestAnimationFrame(()=>{I(!0)})},[]);function z(F){p.current=null,N.current=!1,i(F)}return w.createElement(Hi,{"data-vaul-drawer-direction":E,"data-vaul-drawer":"","data-vaul-delayed-snap-points":b?"true":"false","data-vaul-snap-points":f&&T?"true":"false","data-vaul-custom-container":h?"true":"false","data-vaul-animate":m!=null&&m.current?"true":"false",...n,ref:v,style:c&&c.length>0?{"--snap-point-height":`${c[g??0]}px`,...t}:t,onPointerDown:F=>{Q||(n.onPointerDown==null||n.onPointerDown.call(n,F),p.current={x:F.pageX,y:F.pageY},s(F))},onOpenAutoFocus:F=>{A==null||A(F),x||F.preventDefault()},onPointerDownOutside:F=>{if(e==null||e(F),!d||F.defaultPrevented){F.preventDefault();return}l.current&&(l.current=!1)},onFocusOutside:F=>{if(!d){F.preventDefault();return}},onPointerMove:F=>{if(y.current=F,Q||(n.onPointerMove==null||n.onPointerMove.call(n,F),!p.current))return;const D=F.pageY-p.current.y,k=F.pageX-p.current.x,H=F.pointerType==="touch"?10:2;O({x:k,y:D},E,H)?a(F):(Math.abs(k)>H||Math.abs(D)>H)&&(p.current=null)},onPointerUp:F=>{n.onPointerUp==null||n.onPointerUp.call(n,F),p.current=null,N.current=!1,i(F)},onPointerOut:F=>{n.onPointerOut==null||n.onPointerOut.call(n,F),z(y.current)},onContextMenu:F=>{n.onContextMenu==null||n.onContextMenu.call(n,F),y.current&&z(y.current)}})});iB.displayName="Drawer.Content";const wb=250,xb=120,bb=w.forwardRef(function({preventCycle:e=!1,children:t,...A},n){const{closeDrawer:r,isDragging:o,snapPoints:s,activeSnapPoint:i,setActiveSnapPoint:a,dismissible:l,handleOnly:c,isOpen:g,onPress:d,onDrag:f}=Nn(),E=w.useRef(null),B=w.useRef(!1);function h(){if(B.current){x();return}window.setTimeout(()=>{Q()},xb)}function Q(){if(o||e||B.current){x();return}if(x(),!s||s.length===0){l||r();return}if(i===s[s.length-1]&&l){r();return}const I=s.findIndex(p=>p===i);if(I===-1)return;const v=s[I+1];a(v)}function m(){E.current=window.setTimeout(()=>{B.current=!0},wb)}function x(){E.current&&window.clearTimeout(E.current),B.current=!1}return w.createElement("div",{onClick:h,onPointerCancel:x,onPointerDown:b=>{c&&d(b),m()},onPointerMove:b=>{c&&f(b)},ref:n,"data-vaul-drawer-visible":g?"true":"false","data-vaul-handle":"","aria-hidden":"true",...A},w.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});bb.displayName="Drawer.Handle";function yb(e){const t=Nn(),{container:A=t.container,...n}=e;return w.createElement(df,{container:A,...n})}const Pn={Root:vb,Content:iB,Overlay:sB,Portal:yb,Title:ff};function Db({...e}){return u.jsx(Pn.Root,{"data-slot":"drawer",...e})}function Fb({...e}){return u.jsx(Pn.Portal,{"data-slot":"drawer-portal",...e})}function Nb({className:e,...t}){return u.jsx(Pn.Overlay,{"data-slot":"drawer-overlay",className:_("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-[#181C2AA3]",e),...t})}function Pb({className:e,children:t,...A}){return u.jsxs(Fb,{"data-slot":"drawer-portal",children:[u.jsx(Nb,{}),u.jsxs(Pn.Content,{"data-slot":"drawer-content",className:_("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[95vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",e),...A,children:[u.jsxs(Tr,{children:[" ",u.jsx(Mb,{})]}),t]})]})}function Mb({className:e,...t}){return u.jsx(Pn.Title,{"data-slot":"drawer-title",className:_("text-foreground font-semibold",e),...t})}const jb=({content:e,isOpen:t,onOpenChange:A})=>u.jsx(Db,{open:t,onOpenChange:A,children:u.jsx(Pb,{className:"rounded-t-2xl",children:e})}),aB=({isOpen:e,onOpenChange:t,supportProps:A,buttonClassName:n})=>u.jsxs(u.Fragment,{children:[u.jsx(Qe,{name:"mobile-chat",role:"button",onClick:()=>t(!0),className:_("group fixed bottom-6 right-6 z-50 w-16 h-16 rounded-full bg-popover transition-colors shadow-lg flex items-center justify-center sm:hidden hover:bg-popover",n),children:u.jsx(Y,{name:"Chat",width:28,height:26,className:"text-primary"})}),u.jsx(jb,{isOpen:e,onOpenChange:t,content:u.jsx(Kf,{...A,onClickClose:()=>t(!1),className:"h-[93vh]"})})]}),Tb=({leftPanel:e,rightPanel:t,isOpen:A,onOpenChange:n,supportProps:r,buttonClassName:o})=>{const s=pn();return u.jsxs(u.Fragment,{children:[u.jsxs(sd,{direction:s?"vertical":"horizontal",className:"bg-background rounded-t-3xl h-full w-full",children:[u.jsx(dr,{defaultSize:s?40:60,minSize:0,children:u.jsx("div",{className:"w-full h-full p-3",children:e})},`panel-1-${s}`),u.jsx(id,{}),u.jsx(dr,{defaultSize:s?60:40,minSize:6,children:u.jsx("div",{className:"w-full h-full p-3",children:t})},`panel-2-${s}`)]},`panel-group-${s}`),s&&r&&n&&u.jsx(aB,{isOpen:A||!1,onOpenChange:n,supportProps:r,buttonClassName:o})]})},kb={"not-enrolled":e=>u.jsx(Y,{name:"NotEnrolled",className:e+" text-[#FFA05B]"}),"new-user":e=>u.jsx(Y,{name:"NewUser",className:e+" text-input"}),available:e=>u.jsx(Y,{name:"Available",className:e+" text-input"}),cancelled:e=>u.jsx(Y,{name:"Fail",className:e+" text-destructive"}),failed:e=>u.jsx(Y,{name:"Fail",className:e+" text-destructive"}),enrolled:e=>u.jsx(Y,{name:"Enrolled",className:e+" text-success-hover"}),accept:e=>u.jsx(Y,{name:"Star",className:e+" text-star"}),"black-list":e=>u.jsx(Y,{name:"BlackList",className:e+" text-popover-foreground"}),suspended:e=>u.jsx(Y,{name:"Suspended",className:e+" text-destructive"})},Rb=({text:e,textColor:t,icon:A,type:n="accept",rate:r,tooltipText:o,tooltipTitle:s,tooltipPosition:i="top",integratedProject:a})=>{let l=pn();const c=()=>{const g=A||kb[n];if(a=="trusted"&&(l=!1),r){const d=[],f=r||0;if(l&&(f===2||f===3))return f===3?u.jsxs("div",{className:"flex flex-col items-center",children:[u.jsxs("div",{className:"flex",children:[g("size-3"),g("size-3")]}),u.jsx("div",{className:"flex justify-center -mt-1",children:g("size-3")})]}):u.jsxs("div",{className:"flex gap-0.5",children:[g("size-4"),g("size-4")]});for(let E=0;E<f;E++)d.push(g("size-5"));return u.jsx("div",{className:"flex gap-0.5",children:d})}else return g("size-5")};return s&&o?u.jsxs(Us,{children:[u.jsx(Ws,{asChild:!0,children:u.jsxs("div",{className:"flex items-center gap-1",children:[c(),!l&&u.jsx("span",{className:`${t} text-sm font-medium no-wrap`,style:{whiteSpace:"nowrap"},children:e})]})}),u.jsx(Xs,{className:"bg-background text-foreground m-1 border",side:i,children:u.jsxs("p",{className:"text-sm font-medium",children:[s,": ",o]})})]}):u.jsxs("div",{className:"flex items-center gap-1",children:[c(),!l&&u.jsx("span",{className:`${t} text-sm font-medium no-wrap`,style:{whiteSpace:"nowrap"},children:e})]})},Lb=({action:e,onClick:t,className:A})=>u.jsx(En,{variant:"default",className:`bg-primary rounded-full size-10 flex items-center justify-center shrink-0 p-0 ${A||""}`,onClick:t,children:e==="authenticate"?u.jsx(Y,{name:"Play",className:"text-background",width:16,height:16}):u.jsx(Y,{name:"Cycle",className:"text-card",width:20,height:18})}),Sb=({text:e="Authenticating",percentage:t,className:A,integratedProject:n})=>{let r=pn();const o=t!==void 0?`(%${t})`:"";return n=="trusted"&&(r=!1),r?u.jsx("div",{className:"flex gap-2 items-center",children:u.jsxs("div",{className:"bg-secondary-foreground rounded-xl p-2 flex items-center gap-2",children:[u.jsx(Y,{name:"Camera",className:"text-primary-brew"}),t!==void 0&&u.jsxs("div",{className:"text-primary-foreground text-sm font-medium",children:["%",t]})]})}):u.jsx("div",{className:"flex items-center gap-2",children:u.jsxs("div",{className:`w-full bg-secondary-foreground rounded-xl h-[3.250rem] p-2 flex flex-col justify-center gap-1.5 ${A||""}`,children:[u.jsxs("div",{className:"flex flex-row items-center justify-between w-full ",children:[u.jsx("span",{className:"text-primary-foreground text-sm font-medium no-wrap",style:{whiteSpace:"nowrap"},children:e}),u.jsx("span",{className:"text-primary-foreground text-sm font-medium no-wrap",style:{whiteSpace:"nowrap"},children:o})]}),u.jsx("div",{className:"w-full h-2 bg-background-12 rounded-full overflow-hidden",children:u.jsx("div",{className:"h-full rounded-full",style:{width:t!==void 0?`${t}%`:"100%",backgroundColor:bg.dark["primary-hover"]}})})]})})};exports.AIChat=Dm;exports.AsistantItem=zh;exports.AskManager=Fm;exports.Assistant=g3;exports.AuthButton=Lb;exports.AuthProgress=Sb;exports.Avatar=qt;exports.AvatarWithInfo=Qh;exports.Button=Qe;exports.ChatList=ym;exports.DefaultMoment=Rg;exports.GenAISupportMoment=Pg;exports.GoodJobMoment=Mg;exports.Header=_x;exports.Icon=Y;exports.LegalThreadMoment=jg;exports.LogoutMenuBar=qf;exports.MessageBubble=yA;exports.MessageSendBox=ti;exports.MobileChat=aB;exports.Modal=Ef;exports.Moment=xm;exports.MomentItem=kt;exports.SentimentMeter=Oh;exports.Sestek=Tb;exports.Settings=qI;exports.Sidebar=$x;exports.StatusBadge=Rb;exports.Support=Kf;exports.Tab=Pc;exports.TaskDoneMoment=Tg;exports.Transcript=Sh;exports.UnhappyCustomerMoment=kg;exports.buttonVariants=ql;
@@ -370,7 +370,7 @@ export declare interface LogoutMenuBarProps {
370
370
  sentimentWidth?: number | string;
371
371
  }
372
372
 
373
- export declare const MessageBubble: ({ sender, message, timestamp, icon, type, onClickAskAI, onClickAskManager, managerReplyTitle, showAskManagerButton, showAskAIButton, managerReplyMessage, additionalContent, onClickShowOriginalMessage, originalMessage, onResend, sentimentResult, }: MessageBubbleProps) => ReactNode;
373
+ export declare const MessageBubble: ({ sender, message, timestamp, icon, type, onClickAskAI, onClickAskManager, managerReplyTitle, showAskManagerButton, showAskAIButton, managerReplyMessage, additionalContent, onClickShowOriginalMessage, originalMessage, onResend, sentimentResult, positiveHoverText, negativeHoverText, }: MessageBubbleProps) => ReactNode;
374
374
 
375
375
  export declare enum MessageBubbleEnum {
376
376
  MESSAGE = "message",
@@ -387,6 +387,8 @@ export declare interface MessageBubbleProps {
387
387
  timestamp: string;
388
388
  icon?: ReactNode;
389
389
  sentimentResult?: 1 | 2;
390
+ positiveHoverText?: string;
391
+ negativeHoverText?: string;
390
392
  type: keyof typeof MessageBubbleEnum;
391
393
  onClickAskAI?: () => void;
392
394
  onClickAskManager?: () => void;
package/dist/index.es.js CHANGED
@@ -8885,9 +8885,11 @@ const En = ({
8885
8885
  onClickShowOriginalMessage: d,
8886
8886
  originalMessage: f,
8887
8887
  onResend: E,
8888
- sentimentResult: B
8888
+ sentimentResult: B,
8889
+ positiveHoverText: h,
8890
+ negativeHoverText: Q
8889
8891
  }) => {
8890
- const h = () => /* @__PURE__ */ F("div", { className: "flex flex-row gap-2 items-start w-full justify-end", children: [
8892
+ const m = () => /* @__PURE__ */ F("div", { className: "flex flex-row gap-2 items-start w-full justify-end", children: [
8891
8893
  /* @__PURE__ */ F("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: [
8892
8894
  /* @__PURE__ */ g("div", { className: "text-sm font-medium text-foreground", children: t }),
8893
8895
  f && f !== "" && /* @__PURE__ */ g(
@@ -8902,9 +8904,9 @@ const En = ({
8902
8904
  /* @__PURE__ */ g("div", { className: "text-xs w-full font-normal text-muted-foreground text-right", children: A }),
8903
8905
  n && /* @__PURE__ */ g("div", { className: "border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ", children: n })
8904
8906
  ] }),
8905
- /* @__PURE__ */ g(NA, { type: "secondary", fullName: e, sentimentResult: B })
8906
- ] }), Q = () => /* @__PURE__ */ F("div", { className: "flex flex-row gap-2 items-start w-full", children: [
8907
- /* @__PURE__ */ g(NA, { fullName: e, sentimentResult: B }),
8907
+ /* @__PURE__ */ g(NA, { type: "secondary", fullName: e, sentimentResult: B, positiveHoverText: h, negativeHoverText: Q })
8908
+ ] }), w = () => /* @__PURE__ */ F("div", { className: "flex flex-row gap-2 items-start w-full", children: [
8909
+ /* @__PURE__ */ g(NA, { fullName: e, sentimentResult: B, positiveHoverText: h, negativeHoverText: Q }),
8908
8910
  /* @__PURE__ */ F("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: [
8909
8911
  /* @__PURE__ */ g("div", { className: "text-sm font-normal text-client-chat-foreground", children: t }),
8910
8912
  /* @__PURE__ */ F("div", { className: "flex flex-row gap-2", children: [
@@ -8957,7 +8959,7 @@ const En = ({
8957
8959
  /* @__PURE__ */ g("div", { className: "text-xs w-full font-normal text-client-chat-foreground text-right", children: A }),
8958
8960
  n && /* @__PURE__ */ g("div", { className: "border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ", children: n })
8959
8961
  ] })
8960
- ] }), m = () => /* @__PURE__ */ F("div", { className: "flex flex-row gap-2 items-start w-full justify-end", children: [
8962
+ ] }), b = () => /* @__PURE__ */ F("div", { className: "flex flex-row gap-2 items-start w-full justify-end", children: [
8961
8963
  /* @__PURE__ */ F("div", { className: "rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-border", children: [
8962
8964
  /* @__PURE__ */ F("div", { className: "p-3 relative flex w-full flex-col gap-3 items-start bg-transparent", children: [
8963
8965
  /* @__PURE__ */ F("div", { className: "flex flex-row items-center justify-between w-full gap-3 text-foreground", children: [
@@ -8971,8 +8973,8 @@ const En = ({
8971
8973
  /* @__PURE__ */ g("div", { className: "text-xs w-full font-normal text-muted-foreground text-right", children: A })
8972
8974
  ] })
8973
8975
  ] }),
8974
- /* @__PURE__ */ g(NA, { type: "secondary", fullName: e, sentimentResult: B })
8975
- ] }), w = () => /* @__PURE__ */ F("div", { className: "flex flex-row gap-2 items-start w-full", children: [
8976
+ /* @__PURE__ */ g(NA, { type: "secondary", fullName: e, sentimentResult: B, positiveHoverText: h, negativeHoverText: Q })
8977
+ ] }), I = () => /* @__PURE__ */ F("div", { className: "flex flex-row gap-2 items-start w-full", children: [
8976
8978
  /* @__PURE__ */ g("div", { className: "w-10 h-10 flex rounded-full items-center justify-center bg-warning-background", children: /* @__PURE__ */ g(
8977
8979
  U,
8978
8980
  {
@@ -9026,7 +9028,7 @@ const En = ({
9026
9028
  /* @__PURE__ */ g("div", { className: "text-xs font-normal text-secondary-brew-2", children: A })
9027
9029
  ] })
9028
9030
  ] })
9029
- ] }), b = () => /* @__PURE__ */ F("div", { className: "bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col", children: [
9031
+ ] }), v = () => /* @__PURE__ */ F("div", { className: "bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col", children: [
9030
9032
  /* @__PURE__ */ F("div", { className: "text-foreground text-base font-medium flex items-center justify-between", children: [
9031
9033
  /* @__PURE__ */ F("div", { className: "flex gap-2", children: [
9032
9034
  n,
@@ -9038,11 +9040,11 @@ const En = ({
9038
9040
  /* @__PURE__ */ g("div", { className: "text-popover-foreground", children: c })
9039
9041
  ] });
9040
9042
  return {
9041
- MESSAGE: h(),
9042
- REPLY: Q(),
9043
- MANAGER_REPLY: m(),
9044
- AI_REPLY: w(),
9045
- INFO_MESSAGE: b()
9043
+ MESSAGE: m(),
9044
+ REPLY: w(),
9045
+ MANAGER_REPLY: b(),
9046
+ AI_REPLY: I(),
9047
+ INFO_MESSAGE: v()
9046
9048
  }[r];
9047
9049
  }, Yh = ({
9048
9050
  icon: e,
@@ -19624,7 +19626,8 @@ const t5 = (e) => e.split("_").filter(Boolean).map(
19624
19626
  style: {
19625
19627
  width: "100%",
19626
19628
  justifyContent: "center",
19627
- alignItems: "center"
19629
+ alignItems: "center",
19630
+ marginLeft: 10
19628
19631
  },
19629
19632
  children: [
19630
19633
  d && /* @__PURE__ */ F("div", { className: "relative flex items-center z-30", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sestek-component",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",