sestek-component 1.0.19 → 1.0.20

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
@@ -16,9 +16,9 @@
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var ia;function nQ(){return ia||(ia=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){l||r.startTransition===void 0||(l=!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]),u(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,u=r.useDebugValue,l=!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 aa;function rQ(){return aa||(aa=1,process.env.NODE_ENV==="production"?Sn.exports=AQ():Sn.exports=nQ()),Sn.exports}var oQ=rQ();function sQ(){return oQ.useSyncExternalStore(iQ,()=>!0,()=>!1)}function iQ(){return()=>{}}var Ts="Avatar",[aQ]=ze(Ts),[uQ,Pc]=aQ(Ts),Nc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,...n}=e,[r,o]=C.useState("idle");return c.jsx(uQ,{scope:A,imageLoadingStatus:r,onImageLoadingStatusChange:o,children:c.jsx(oe.span,{...n,ref:t})})});Nc.displayName=Ts;var Mc="AvatarImage",Tc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,src:n,onLoadingStatusChange:r=()=>{},...o}=e,s=Pc(Mc,A),i=lQ(n,o),a=at(u=>{r(u),s.onImageLoadingStatusChange(u)});return Ze(()=>{i!=="idle"&&a(i)},[i,a]),i==="loaded"?c.jsx(oe.img,{...o,ref:t,src:n}):null});Tc.displayName=Mc;var jc="AvatarFallback",kc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,delayMs:n,...r}=e,o=Pc(jc,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"?c.jsx(oe.span,{...r,ref:t}):null});kc.displayName=jc;function ua(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function lQ(e,{referrerPolicy:t,crossOrigin:A}){const n=sQ(),r=C.useRef(null),o=n?(r.current||(r.current=new window.Image),r.current):null,[s,i]=C.useState(()=>ua(o,e));return Ze(()=>{i(ua(o,e))},[o,e]),Ze(()=>{const a=g=>()=>{i(g)};if(!o)return;const u=a("loaded"),l=a("error");return o.addEventListener("load",u),o.addEventListener("error",l),t&&(o.referrerPolicy=t),typeof A=="string"&&(o.crossOrigin=A),()=>{o.removeEventListener("load",u),o.removeEventListener("error",l)}},[o,A,t]),s}var cQ=Nc,gQ=Tc,dQ=kc;function CQ({className:e,...t}){return c.jsx(cQ,{"data-slot":"avatar",className:$("relative flex size-10 shrink-0 overflow-hidden rounded-full",e),...t})}function fQ({className:e,...t}){return c.jsx(gQ,{"data-slot":"avatar-image",className:$("aspect-square size-full",e),...t})}function BQ({className:e,...t}){return c.jsx(dQ,{"data-slot":"avatar-fallback",className:$("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const qt=({url:e,fullName:t,type:A="primary",isActive:n=!1})=>{const r=()=>{if(!t)return null;const[s,i]=t.split(" ");return`${(s==null?void 0:s.charAt(0))??""}${(i==null?void 0:i.charAt(0))??""}`},o=()=>A==="primary"||A==="primary-light"?"text-primary-foreground dark:text-white":"text-secondary-foreground dark:text-white";return c.jsxs("div",{className:"relative w-fit h-fit",children:[c.jsxs(CQ,{children:[c.jsx(fQ,{role:"img",src:e}),c.jsx(BQ,{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?r():c.jsx(U,{name:"Unknown",className:$("w-4 h-5",o())})})]}),n&&c.jsx("div",{className:"w-2.5 h-2.5 bg-success rounded-full absolute bottom-0 right-0"})]})},EQ=({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)},u=l=>{l.stopPropagation(),i(!1)};return c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{onClick:a,className:`cursor-${s?"default":"pointer"}`,children:c.jsx(qt,{fullName:e,type:n})}),c.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:[c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsx("span",{className:"text-sm font-medium text-foreground whitespace-nowrap",children:e}),c.jsxs("div",{className:"flex flex-row gap-2",children:[c.jsx("span",{className:"text-xs text-foreground whitespace-nowrap",children:t}),c.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[r,": ",A]})]})]}),!o&&c.jsx("button",{onClick:u,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:c.jsx(U,{name:"Close",width:13,height:13,className:"text-foreground"})})]})]})};var zA={},oA={},On={},zt={},Ht={},to={},la;function Rc(){return la||(la=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})(to)),to}var ne={},ca;function ga(){if(ca)return ne;ca=1;var e=ne&&ne.__extends||(function(){var I=function(v,p){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,F){D.__proto__=F}||function(D,F){for(var j in F)Object.prototype.hasOwnProperty.call(F,j)&&(D[j]=F[j])},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 D(){this.constructor=v}v.prototype=p===null?Object.create(p):(D.prototype=p.prototype,new D)}})(),t=ne&&ne.__assign||function(){return t=Object.assign||function(I){for(var v,p=1,D=arguments.length;p<D;p++){v=arguments[p];for(var F in v)Object.prototype.hasOwnProperty.call(v,F)&&(I[F]=v[F])}return I},t.apply(this,arguments)};Object.defineProperty(ne,"__esModule",{value:!0}),ne.cloneNode=ne.hasChildren=ne.isDocument=ne.isDirective=ne.isComment=ne.isText=ne.isCDATA=ne.isTag=ne.Element=ne.Document=ne.CDATA=ne.NodeWithChildren=ne.ProcessingInstruction=ne.Comment=ne.Text=ne.DataNode=ne.Node=void 0;var A=Rc(),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})();ne.Node=n;var r=(function(I){e(v,I);function v(p){var D=I.call(this)||this;return D.data=p,D}return Object.defineProperty(v.prototype,"nodeValue",{get:function(){return this.data},set:function(p){this.data=p},enumerable:!1,configurable:!0}),v})(n);ne.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);ne.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);ne.Comment=s;var i=(function(I){e(v,I);function v(p,D){var F=I.call(this,D)||this;return F.name=p,F.type=A.ElementType.Directive,F}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),v})(r);ne.ProcessingInstruction=i;var a=(function(I){e(v,I);function v(p){var D=I.call(this)||this;return D.children=p,D}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);ne.NodeWithChildren=a;var u=(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);ne.CDATA=u;var l=(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);ne.Document=l;var g=(function(I){e(v,I);function v(p,D,F,j){F===void 0&&(F=[]),j===void 0&&(j=p==="script"?A.ElementType.Script:p==="style"?A.ElementType.Style:A.ElementType.Tag);var S=I.call(this,F)||this;return S.name=p,S.attribs=D,S.type=j,S}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(D){var F,j;return{name:D,value:p.attribs[D],namespace:(F=p["x-attribsNamespace"])===null||F===void 0?void 0:F[D],prefix:(j=p["x-attribsPrefix"])===null||j===void 0?void 0:j[D]}})},enumerable:!1,configurable:!0}),v})(a);ne.Element=g;function d(I){return(0,A.isTag)(I)}ne.isTag=d;function f(I){return I.type===A.ElementType.CDATA}ne.isCDATA=f;function E(I){return I.type===A.ElementType.Text}ne.isText=E;function B(I){return I.type===A.ElementType.Comment}ne.isComment=B;function h(I){return I.type===A.ElementType.Directive}ne.isDirective=h;function Q(I){return I.type===A.ElementType.Root}ne.isDocument=Q;function m(I){return Object.prototype.hasOwnProperty.call(I,"children")}ne.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 D=v?b(I.children):[],F=new g(I.name,t({},I.attribs),D);D.forEach(function(M){return M.parent=F}),I.namespace!=null&&(F.namespace=I.namespace),I["x-attribsNamespace"]&&(F["x-attribsNamespace"]=t({},I["x-attribsNamespace"])),I["x-attribsPrefix"]&&(F["x-attribsPrefix"]=t({},I["x-attribsPrefix"])),p=F}else if(f(I)){var D=v?b(I.children):[],j=new u(D);D.forEach(function(y){return y.parent=j}),p=j}else if(Q(I)){var D=v?b(I.children):[],S=new l(D);D.forEach(function(y){return y.parent=S}),I["x-mode"]&&(S["x-mode"]=I["x-mode"]),p=S}else if(h(I)){var O=new i(I.name,I.data);I["x-name"]!=null&&(O["x-name"]=I["x-name"],O["x-publicId"]=I["x-publicId"],O["x-systemId"]=I["x-systemId"]),p=O}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}ne.cloneNode=x;function b(I){for(var v=I.map(function(D){return x(D,!0)}),p=1;p<v.length;p++)v[p].prev=v[p-1],v[p-1].next=v[p];return v}return ne}var da;function Lc(){return da||(da=1,(function(e){var t=Ht&&Ht.__createBinding||(Object.create?(function(i,a,u,l){l===void 0&&(l=u);var g=Object.getOwnPropertyDescriptor(a,u);(!g||("get"in g?!a.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return a[u]}}),Object.defineProperty(i,l,g)}):(function(i,a,u,l){l===void 0&&(l=u),i[l]=a[u]})),A=Ht&&Ht.__exportStar||function(i,a){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(a,u)&&t(a,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=Rc(),r=ga();A(ga(),e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=(function(){function i(a,u,l){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(l=u,u=o),typeof a=="object"&&(u=a,a=void 0),this.callback=a??null,this.options=u??o,this.elementCB=l??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,u){var l=this.options.xmlMode?n.ElementType.Tag:void 0,g=new r.Element(a,u,void 0,l);this.addNode(g),this.tagStack.push(g)},i.prototype.ontext=function(a){var u=this.lastNode;if(u&&u.type===n.ElementType.Text)u.data+=a,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var l=new r.Text(a);this.addNode(l),this.lastNode=l}},i.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=a;return}var u=new r.Comment(a);this.addNode(u),this.lastNode=u},i.prototype.oncommentend=function(){this.lastNode=null},i.prototype.oncdatastart=function(){var a=new r.Text(""),u=new r.CDATA([a]);this.addNode(u),a.parent=u,this.lastNode=a},i.prototype.oncdataend=function(){this.lastNode=null},i.prototype.onprocessinginstruction=function(a,u){var l=new r.ProcessingInstruction(a,u);this.addNode(l)},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 u=this.tagStack[this.tagStack.length-1],l=u.children[u.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),u.children.push(a),l&&(a.prev=l,l.next=a),a.parent=u,this.lastNode=null},i})();e.DomHandler=s,e.default=s})(Ht)),Ht}var Ao={},Ca;function IQ(){return Ca||(Ca=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")})(Ao)),Ao}var fa;function Sc(){if(fa)return zt;fa=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.formatAttributes=n,zt.escapeSpecialCharacters=o,zt.revertEscapedCharacters=s,zt.formatDOM=i;var e=Lc(),t=IQ();function A(a){return t.CASE_SENSITIVE_TAG_NAMES_MAP[a]}function n(a){for(var u={},l=0,g=a.length;l<g;l++){var d=a[l];u[d.name]=d.value}return u}function r(a){a=a.toLowerCase();var u=A(a);return u||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,u,l){u===void 0&&(u=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=u,d.prev=Q,d.next=null,g.push(d)}return l&&(d=new e.ProcessingInstruction(l.substring(0,l.indexOf(" ")).toLowerCase(),l),d.next=g[0]||null,d.parent=u,g.unshift(d),g[1]&&(g[1].prev=g[0])),g}return zt}var Ba;function QQ(){if(Ba)return On;Ba=1,Object.defineProperty(On,"__esModule",{value:!0}),On.default=B;var e=Sc(),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`")},u=typeof window=="object"&&window.DOMParser;if(typeof u=="function"){var l=new u,g="text/html";a=function(h,Q){return Q&&(h="<".concat(Q,">").concat(h,"</").concat(Q,">")),l.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 On}var Ea;function hQ(){if(Ea)return oA;Ea=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(QQ()),A=Sc(),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 zn={},Ve={},HA={},Ia;function mQ(){if(Ia)return HA;Ia=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 Qa;function pQ(){if(Qa)return Ve;Qa=1;const e=0,t=1,A=2,n=3,r=4,o=5,s=6;function i(I){return u.hasOwnProperty(I)?u[I]:null}function a(I,v,p,D,F,j,S){this.acceptsBooleans=v===A||v===n||v===r,this.attributeName=D,this.attributeNamespace=F,this.mustUseProperty=p,this.propertyName=I,this.type=v,this.sanitizeURL=j,this.removeEmptyString=S}const u={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(I=>{u[I]=new a(I,e,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([I,v])=>{u[I]=new a(I,t,!1,v,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(I=>{u[I]=new a(I,A,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(I=>{u[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=>{u[I]=new a(I,n,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(I=>{u[I]=new a(I,n,!0,I,null,!1,!1)}),["capture","download"].forEach(I=>{u[I]=new a(I,r,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(I=>{u[I]=new a(I,s,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(I=>{u[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);u[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);u[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);u[v]=new a(v,t,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(I=>{u[I]=new a(I,t,!1,I.toLowerCase(),null,!1,!1)});const f="xlinkHref";u[f]=new a("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(I=>{u[I]=new a(I,t,!1,I.toLowerCase(),null,!0,!0)});const{CAMELCASE:E,SAME:B,possibleStandardNames:h}=mQ(),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={},no,ha;function vQ(){if(ha)return no;ha=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=`
19
+ */var ia;function nQ(){return ia||(ia=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){l||r.startTransition===void 0||(l=!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]),u(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,u=r.useDebugValue,l=!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 aa;function rQ(){return aa||(aa=1,process.env.NODE_ENV==="production"?Sn.exports=AQ():Sn.exports=nQ()),Sn.exports}var oQ=rQ();function sQ(){return oQ.useSyncExternalStore(iQ,()=>!0,()=>!1)}function iQ(){return()=>{}}var Ts="Avatar",[aQ]=ze(Ts),[uQ,Pc]=aQ(Ts),Nc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,...n}=e,[r,o]=C.useState("idle");return c.jsx(uQ,{scope:A,imageLoadingStatus:r,onImageLoadingStatusChange:o,children:c.jsx(oe.span,{...n,ref:t})})});Nc.displayName=Ts;var Mc="AvatarImage",Tc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,src:n,onLoadingStatusChange:r=()=>{},...o}=e,s=Pc(Mc,A),i=lQ(n,o),a=at(u=>{r(u),s.onImageLoadingStatusChange(u)});return Ze(()=>{i!=="idle"&&a(i)},[i,a]),i==="loaded"?c.jsx(oe.img,{...o,ref:t,src:n}):null});Tc.displayName=Mc;var jc="AvatarFallback",kc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,delayMs:n,...r}=e,o=Pc(jc,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"?c.jsx(oe.span,{...r,ref:t}):null});kc.displayName=jc;function ua(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function lQ(e,{referrerPolicy:t,crossOrigin:A}){const n=sQ(),r=C.useRef(null),o=n?(r.current||(r.current=new window.Image),r.current):null,[s,i]=C.useState(()=>ua(o,e));return Ze(()=>{i(ua(o,e))},[o,e]),Ze(()=>{const a=g=>()=>{i(g)};if(!o)return;const u=a("loaded"),l=a("error");return o.addEventListener("load",u),o.addEventListener("error",l),t&&(o.referrerPolicy=t),typeof A=="string"&&(o.crossOrigin=A),()=>{o.removeEventListener("load",u),o.removeEventListener("error",l)}},[o,A,t]),s}var cQ=Nc,gQ=Tc,dQ=kc;function CQ({className:e,...t}){return c.jsx(cQ,{"data-slot":"avatar",className:$("relative flex size-10 shrink-0 overflow-hidden rounded-full",e),...t})}function fQ({className:e,...t}){return c.jsx(gQ,{"data-slot":"avatar-image",className:$("aspect-square size-full",e),...t})}function BQ({className:e,...t}){return c.jsx(dQ,{"data-slot":"avatar-fallback",className:$("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const qt=({url:e,fullName:t,type:A="primary",isActive:n=!1})=>{const r=()=>{if(!t)return null;const[s,i]=t.split(" ");return`${(s==null?void 0:s.charAt(0))??""}${(i==null?void 0:i.charAt(0))??""}`},o=()=>A==="primary"||A==="primary-light"?"text-primary-foreground dark:text-white":"text-secondary-foreground dark:text-white";return c.jsxs("div",{className:"relative w-fit h-fit",children:[c.jsxs(CQ,{children:[c.jsx(fQ,{role:"img",src:e}),c.jsx(BQ,{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?r():c.jsx(U,{name:"Unknown",className:$("w-4 h-5",o())})})]}),n&&c.jsx("div",{className:"w-2.5 h-2.5 bg-success rounded-full absolute bottom-0 right-0"})]})},EQ=({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)},u=l=>{l.stopPropagation(),i(!1)};return c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{onClick:a,className:`cursor-${s?"default":"pointer"}`,children:c.jsx(qt,{fullName:e,type:n})}),c.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:[c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsx("span",{className:"text-sm font-medium text-foreground whitespace-nowrap",children:e}),c.jsxs("div",{className:"flex flex-row gap-2",children:[c.jsx("span",{className:"text-xs text-foreground whitespace-nowrap",children:t}),A&&c.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",id:"call-id-text",children:[r,": ",A]})]})]}),!o&&c.jsx("button",{onClick:u,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:c.jsx(U,{name:"Close",width:13,height:13,className:"text-foreground"})})]})]})};var zA={},oA={},On={},zt={},Ht={},to={},la;function Rc(){return la||(la=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})(to)),to}var ne={},ca;function ga(){if(ca)return ne;ca=1;var e=ne&&ne.__extends||(function(){var I=function(v,p){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,F){D.__proto__=F}||function(D,F){for(var j in F)Object.prototype.hasOwnProperty.call(F,j)&&(D[j]=F[j])},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 D(){this.constructor=v}v.prototype=p===null?Object.create(p):(D.prototype=p.prototype,new D)}})(),t=ne&&ne.__assign||function(){return t=Object.assign||function(I){for(var v,p=1,D=arguments.length;p<D;p++){v=arguments[p];for(var F in v)Object.prototype.hasOwnProperty.call(v,F)&&(I[F]=v[F])}return I},t.apply(this,arguments)};Object.defineProperty(ne,"__esModule",{value:!0}),ne.cloneNode=ne.hasChildren=ne.isDocument=ne.isDirective=ne.isComment=ne.isText=ne.isCDATA=ne.isTag=ne.Element=ne.Document=ne.CDATA=ne.NodeWithChildren=ne.ProcessingInstruction=ne.Comment=ne.Text=ne.DataNode=ne.Node=void 0;var A=Rc(),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})();ne.Node=n;var r=(function(I){e(v,I);function v(p){var D=I.call(this)||this;return D.data=p,D}return Object.defineProperty(v.prototype,"nodeValue",{get:function(){return this.data},set:function(p){this.data=p},enumerable:!1,configurable:!0}),v})(n);ne.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);ne.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);ne.Comment=s;var i=(function(I){e(v,I);function v(p,D){var F=I.call(this,D)||this;return F.name=p,F.type=A.ElementType.Directive,F}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),v})(r);ne.ProcessingInstruction=i;var a=(function(I){e(v,I);function v(p){var D=I.call(this)||this;return D.children=p,D}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);ne.NodeWithChildren=a;var u=(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);ne.CDATA=u;var l=(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);ne.Document=l;var g=(function(I){e(v,I);function v(p,D,F,j){F===void 0&&(F=[]),j===void 0&&(j=p==="script"?A.ElementType.Script:p==="style"?A.ElementType.Style:A.ElementType.Tag);var S=I.call(this,F)||this;return S.name=p,S.attribs=D,S.type=j,S}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(D){var F,j;return{name:D,value:p.attribs[D],namespace:(F=p["x-attribsNamespace"])===null||F===void 0?void 0:F[D],prefix:(j=p["x-attribsPrefix"])===null||j===void 0?void 0:j[D]}})},enumerable:!1,configurable:!0}),v})(a);ne.Element=g;function d(I){return(0,A.isTag)(I)}ne.isTag=d;function f(I){return I.type===A.ElementType.CDATA}ne.isCDATA=f;function E(I){return I.type===A.ElementType.Text}ne.isText=E;function B(I){return I.type===A.ElementType.Comment}ne.isComment=B;function h(I){return I.type===A.ElementType.Directive}ne.isDirective=h;function Q(I){return I.type===A.ElementType.Root}ne.isDocument=Q;function m(I){return Object.prototype.hasOwnProperty.call(I,"children")}ne.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 D=v?b(I.children):[],F=new g(I.name,t({},I.attribs),D);D.forEach(function(M){return M.parent=F}),I.namespace!=null&&(F.namespace=I.namespace),I["x-attribsNamespace"]&&(F["x-attribsNamespace"]=t({},I["x-attribsNamespace"])),I["x-attribsPrefix"]&&(F["x-attribsPrefix"]=t({},I["x-attribsPrefix"])),p=F}else if(f(I)){var D=v?b(I.children):[],j=new u(D);D.forEach(function(y){return y.parent=j}),p=j}else if(Q(I)){var D=v?b(I.children):[],S=new l(D);D.forEach(function(y){return y.parent=S}),I["x-mode"]&&(S["x-mode"]=I["x-mode"]),p=S}else if(h(I)){var O=new i(I.name,I.data);I["x-name"]!=null&&(O["x-name"]=I["x-name"],O["x-publicId"]=I["x-publicId"],O["x-systemId"]=I["x-systemId"]),p=O}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}ne.cloneNode=x;function b(I){for(var v=I.map(function(D){return x(D,!0)}),p=1;p<v.length;p++)v[p].prev=v[p-1],v[p-1].next=v[p];return v}return ne}var da;function Lc(){return da||(da=1,(function(e){var t=Ht&&Ht.__createBinding||(Object.create?(function(i,a,u,l){l===void 0&&(l=u);var g=Object.getOwnPropertyDescriptor(a,u);(!g||("get"in g?!a.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return a[u]}}),Object.defineProperty(i,l,g)}):(function(i,a,u,l){l===void 0&&(l=u),i[l]=a[u]})),A=Ht&&Ht.__exportStar||function(i,a){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(a,u)&&t(a,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=Rc(),r=ga();A(ga(),e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=(function(){function i(a,u,l){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(l=u,u=o),typeof a=="object"&&(u=a,a=void 0),this.callback=a??null,this.options=u??o,this.elementCB=l??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,u){var l=this.options.xmlMode?n.ElementType.Tag:void 0,g=new r.Element(a,u,void 0,l);this.addNode(g),this.tagStack.push(g)},i.prototype.ontext=function(a){var u=this.lastNode;if(u&&u.type===n.ElementType.Text)u.data+=a,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var l=new r.Text(a);this.addNode(l),this.lastNode=l}},i.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=a;return}var u=new r.Comment(a);this.addNode(u),this.lastNode=u},i.prototype.oncommentend=function(){this.lastNode=null},i.prototype.oncdatastart=function(){var a=new r.Text(""),u=new r.CDATA([a]);this.addNode(u),a.parent=u,this.lastNode=a},i.prototype.oncdataend=function(){this.lastNode=null},i.prototype.onprocessinginstruction=function(a,u){var l=new r.ProcessingInstruction(a,u);this.addNode(l)},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 u=this.tagStack[this.tagStack.length-1],l=u.children[u.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),u.children.push(a),l&&(a.prev=l,l.next=a),a.parent=u,this.lastNode=null},i})();e.DomHandler=s,e.default=s})(Ht)),Ht}var Ao={},Ca;function IQ(){return Ca||(Ca=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")})(Ao)),Ao}var fa;function Sc(){if(fa)return zt;fa=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.formatAttributes=n,zt.escapeSpecialCharacters=o,zt.revertEscapedCharacters=s,zt.formatDOM=i;var e=Lc(),t=IQ();function A(a){return t.CASE_SENSITIVE_TAG_NAMES_MAP[a]}function n(a){for(var u={},l=0,g=a.length;l<g;l++){var d=a[l];u[d.name]=d.value}return u}function r(a){a=a.toLowerCase();var u=A(a);return u||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,u,l){u===void 0&&(u=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=u,d.prev=Q,d.next=null,g.push(d)}return l&&(d=new e.ProcessingInstruction(l.substring(0,l.indexOf(" ")).toLowerCase(),l),d.next=g[0]||null,d.parent=u,g.unshift(d),g[1]&&(g[1].prev=g[0])),g}return zt}var Ba;function QQ(){if(Ba)return On;Ba=1,Object.defineProperty(On,"__esModule",{value:!0}),On.default=B;var e=Sc(),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`")},u=typeof window=="object"&&window.DOMParser;if(typeof u=="function"){var l=new u,g="text/html";a=function(h,Q){return Q&&(h="<".concat(Q,">").concat(h,"</").concat(Q,">")),l.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 On}var Ea;function hQ(){if(Ea)return oA;Ea=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(QQ()),A=Sc(),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 zn={},Ve={},HA={},Ia;function mQ(){if(Ia)return HA;Ia=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 Qa;function pQ(){if(Qa)return Ve;Qa=1;const e=0,t=1,A=2,n=3,r=4,o=5,s=6;function i(I){return u.hasOwnProperty(I)?u[I]:null}function a(I,v,p,D,F,j,S){this.acceptsBooleans=v===A||v===n||v===r,this.attributeName=D,this.attributeNamespace=F,this.mustUseProperty=p,this.propertyName=I,this.type=v,this.sanitizeURL=j,this.removeEmptyString=S}const u={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(I=>{u[I]=new a(I,e,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([I,v])=>{u[I]=new a(I,t,!1,v,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(I=>{u[I]=new a(I,A,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(I=>{u[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=>{u[I]=new a(I,n,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(I=>{u[I]=new a(I,n,!0,I,null,!1,!1)}),["capture","download"].forEach(I=>{u[I]=new a(I,r,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(I=>{u[I]=new a(I,s,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(I=>{u[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);u[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);u[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);u[v]=new a(v,t,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(I=>{u[I]=new a(I,t,!1,I.toLowerCase(),null,!1,!1)});const f="xlinkHref";u[f]=new a("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(I=>{u[I]=new a(I,t,!1,I.toLowerCase(),null,!0,!0)});const{CAMELCASE:E,SAME:B,possibleStandardNames:h}=mQ(),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={},no,ha;function vQ(){if(ha)return no;ha=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
  `,u="/",l="*",g="",d="comment",f="declaration";no=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(M){var y=M.match(t);y&&(Q+=y.length);var k=M.lastIndexOf(a);m=~k?M.length-k:m+M.length}function b(){var M={line:Q,column:m};return function(y){return y.position=new I(M),D(),y}}function I(M){this.start=M,this.end={line:Q,column:m},this.source=h.source}I.prototype.content=B;function v(M){var y=new Error(h.source+":"+Q+":"+m+": "+M);if(y.reason=M,y.filename=h.source,y.line=Q,y.column=m,y.source=B,!h.silent)throw y}function p(M){var y=M.exec(B);if(y){var k=y[0];return x(k),B=B.slice(k.length),y}}function D(){p(A)}function F(M){var y;for(M=M||[];y=j();)y!==!1&&M.push(y);return M}function j(){var M=b();if(!(u!=B.charAt(0)||l!=B.charAt(1))){for(var y=2;g!=B.charAt(y)&&(l!=B.charAt(y)||u!=B.charAt(y+1));)++y;if(y+=2,g===B.charAt(y-1))return v("End of comment missing");var k=B.slice(2,y-2);return m+=2,x(k),B=B.slice(y),m+=2,M({type:d,comment:k})}}function S(){var M=b(),y=p(n);if(y){if(j(),!p(r))return v("property missing ':'");var k=p(o),L=M({type:f,property:E(y[0].replace(e,g)),value:k?E(k[0].replace(e,g)):g});return p(s),L}}function O(){var M=[];F(M);for(var y;y=S();)y!==!1&&(M.push(y),F(M));return M}return D(),O()};function E(B){return B?B.replace(i,g):g}return no}var ma;function wQ(){if(ma)return sA;ma=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(vQ());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:u,value:l}=a;i?r(u,l,a):l&&(o=o||{},o[u]=l)}),o}return sA}var GA={},pa;function xQ(){if(pa)return GA;pa=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(u){return!u||A.test(u)||e.test(u)},s=function(u,l){return l.toUpperCase()},i=function(u,l){return"".concat(l,"-")},a=function(u,l){return l===void 0&&(l={}),o(u)?u:(u=u.toLowerCase(),l.reactCompat?u=u.replace(r,i):u=u.replace(n,i),u.replace(t,s))};return GA.camelCase=a,GA}var YA,va;function bQ(){if(va)return YA;va=1;var e=YA&&YA.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},t=e(wQ()),A=xQ();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 wa;function Oc(){return wa||(wa=1,(function(e){var t=VA&&VA.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};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(bQ()),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(l,g){return l.includes("-")?!r.has(l):!!(g&&typeof g.is=="string")}var s={reactCompat:!0};function i(l,g){if(typeof l=="string"){if(!l.trim()){g.style={};return}try{g.style=(0,n.default)(l,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(l){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(l.name)};e.canTextBeChildOfNode=a;var u=function(l){return l};e.returnFirstArg=u})(VA)),VA}var xa;function zc(){if(xa)return zn;xa=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=o;var e=pQ(),t=Oc(),A=["checked","value"],n=["input","select","textarea"],r={reset:!0,submit:!0};function o(i,a){i===void 0&&(i={});var u={},l=!!(i.type&&r[i.type]);for(var g in i){var d=i[g];if((0,e.isCustomAttribute)(g)){u[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)&&!l&&(E=s("default"+f)),u[E]=d,B&&B.type){case e.BOOLEAN:u[E]=!0;break;case e.OVERLOADED_BOOLEAN:d===""&&(u[E]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(u[g]=d)}return(0,t.setStyleProp)(i.style,u),u}function s(i){return e.possibleStandardNames[i]}return zn}var iA={},ba;function DQ(){if(ba)return iA;ba=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(zc()),n=Oc(),r={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function o(i,a){a===void 0&&(a={});for(var u=[],l=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(l){var x=a.replace(m,Q);if(B(x)){h>1&&(x=f(x,{key:x.key||Q})),u.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;u.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),u.push(g(E(m.name,v,p),m,Q))}return u.length===1?u[0]:u}function s(i){return n.PRESERVE_CUSTOM_ATTRIBUTES&&i.type==="tag"&&(0,n.isCustomComponent)(i.name,i.attribs)}return iA}var Da;function yQ(){return Da||(Da=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(hQ());e.htmlToDOM=A.default;var n=t(zc());e.attributesToProps=n.default;var r=t(DQ());e.domToReact=r.default;var o=Lc();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,u){if(typeof a!="string")throw new TypeError("First argument must be a string");return a?(0,r.default)((0,A.default)(a,(u==null?void 0:u.htmlparser2)||s),u):[]}})(zA)),zA}var FQ=yQ();const ya=Fc(FQ),PQ=ya.default||ya;var ZA={exports:{}};/*! https://mths.be/he v1.2.0 by @mathias | MIT license */var NQ=ZA.exports,Fa;function MQ(){return Fa||(Fa=1,(function(e,t){(function(A){var n=t,r=e&&e.exports==n&&e,o=typeof oa=="object"&&oa;(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,u=/<\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,l={"­":"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(N,V){return v.call(N,V)},D=function(N,V){for(var _=-1,te=N.length;++_<te;)if(N[_]==V)return!0;return!1},F=function(N,V){if(!N)return V;var _={},te;for(te in V)_[te]=p(N,te)?N[te]:V[te];return _},j=function(N,V){var _="";return N>=55296&&N<=57343||N>1114111?(V&&M("character reference outside the permissible Unicode range"),"�"):p(m,N)?(V&&M("disallowed character reference"),m[N]):(V&&D(x,N)&&M("disallowed character reference"),N>65535&&(N-=65536,_+=b(N>>>10&1023|55296),N=56320|N&1023),_+=b(N),_)},S=function(N){return"&#x"+N.toString(16).toUpperCase()+";"},O=function(N){return"&#"+N+";"},M=function(N){throw Error("Parse error: "+N)},y=function(N,V){V=F(V,y.options);var _=V.strict;_&&E.test(N)&&M("forbidden code point");var te=V.encodeEverything,P=V.useNamedReferences,H=V.allowUnsafeSymbols,G=V.decimal?O:S,Y=function(R){return G(R.charCodeAt(0))};return te?(N=N.replace(i,function(R){return P&&p(l,R)?"&"+l[R]+";":Y(R)}),P&&(N=N.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),P&&(N=N.replace(u,function(R){return"&"+l[R]+";"}))):P?(H||(N=N.replace(g,function(R){return"&"+l[R]+";"})),N=N.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),N=N.replace(u,function(R){return"&"+l[R]+";"})):H||(N=N.replace(g,Y)),N.replace(s,function(R){var W=R.charCodeAt(0),J=R.charCodeAt(1),ie=(W-55296)*1024+J-56320+65536;return G(ie)}).replace(a,Y)};y.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var k=function(N,V){V=F(V,k.options);var _=V.strict;return _&&f.test(N)&&M("malformed character reference"),N.replace(B,function(te,P,H,G,Y,R,W,J,ie){var le,ge,ae,q,Pe,je;return P?(Pe=P,h[Pe]):H?(Pe=H,je=G,je&&V.isAttributeValue?(_&&je=="="&&M("`&` did not start a character reference"),te):(_&&M("named character reference was not terminated by a semicolon"),Q[Pe]+(je||""))):Y?(ae=Y,ge=R,_&&!ge&&M("character reference was not terminated by a semicolon"),le=parseInt(ae,10),j(le,_)):W?(q=W,ge=J,_&&!ge&&M("character reference was not terminated by a semicolon"),le=parseInt(q,16),j(le,_)):(_&&M("named character reference was not terminated by a semicolon"),te)})};k.options={isAttributeValue:!1,strict:!1};var L=function(N){return N.replace(g,function(V){return d[V]})},z={version:"1.2.0",encode:y,decode:k,escape:L,unescape:k};if(n&&!n.nodeType)if(r)r.exports=z;else for(var T in z)p(z,T)&&(n[T]=z[T]);else A.he=z})(NQ)})(ZA,ZA.exports)),ZA.exports}var TQ=MQ();const jQ=Fc(TQ),kt=w.forwardRef(({title:e,message:t,timestamp:A,icon:n,tag:r,showHelperButtons:o,onClickAskGenAI:s,onClickAskManager:i,askGenAITitle:a="Ask GenAI",askManagerTitle:u="Ask Manager",isStacked:l,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:D,showThankYou:F},j)=>{const S=jQ.decode(t??""),[O,M]=w.useState(1),[y,k]=w.useState(!1),[L,z]=w.useState(""),T=()=>{k(te=>!te)},N=te=>{M(te)},V=({selectedFeedback:te,comment:P})=>{v==null||v({selectedFeedback:te??0,comment:P,scenarioId:f??"",matchId:p??""})},_=()=>{M(1),z(""),k(!1)};return c.jsxs("div",{ref:j,className:$("flex flex-col w-full h-fit rounded-xl md:rounded-3xl bg-primary-foreground md:bg-background gap-2 p-4",l?"shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] ":null,g),children:[c.jsxs("div",{className:"flex w-full flex-row items-center justify-between gap-6",children:[c.jsxs("div",{className:"flex flex-row",children:[n,c.jsx("div",{className:"ml-2 mr-1 text-base font-medium leading-6 text-foreground",children:e}),typeof r<"u"&&r]}),c.jsx("div",{className:"bg-foreground-08 rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-card-foreground",children:A})]}),c.jsx("div",{className:"text-sm md:text-base w-full font-normal text-foreground",children:c.jsxs("div",{className:"flex flex-row items-center justify-between gap-2",children:[PQ(S),d&&!F&&c.jsxs("button",{onClick:T,className:"relative group",title:E,style:{cursor:"pointer"},children:[c.jsx(U,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),c.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap",children:E})]})]})}),y&&!F&&c.jsxs("div",{className:"mt-4 space-y-4",children:[c.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("button",{onClick:()=>N(1),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",O===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:[c.jsx(U,{name:"LikeHand",width:16,height:16,style:{color:O===1?"#22c55e":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:h})]}),c.jsxs("button",{onClick:()=>N(0),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",O===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:[c.jsx(U,{name:"DisLikeHand",width:16,height:16,style:{color:O===0?"#ef4444":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:Q})]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:B}),c.jsx("textarea",{value:L,maxLength:500,onChange:te=>z(te.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}),c.jsxs("div",{className:"flex justify-end",children:[c.jsx(Qe,{onClick:_,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:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:I})}),c.jsx(Qe,{onClick:()=>V({selectedFeedback:O??0,comment:L}),isLoading:D,disabled:D,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:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:x})})]})]})]}),F&&c.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[c.jsx("span",{className:"text-sm font-medium",children:b}),c.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:c.jsx(U,{name:"Check",width:12,height:12,style:{color:"white"}})})]}),o&&c.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[c.jsx(Qe,{onClick:s,size:"sm",className:"bg-primary gap-2",children:c.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[c.jsx(U,{name:"Sparkles",width:16,height:16,className:"text-background"}),a]})}),c.jsx(Qe,{onClick:i,size:"sm",className:"bg-primary gap-2",children:c.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[c.jsx(U,{name:"HandRaised",width:16,height:16,className:"text-background"}),u]})})]})]})});kt.displayName="MomentItem";const xA=({sender:e,message:t,timestamp:A,icon:n,type:r,onClickAskAI:o,onClickAskManager:s,managerReplyTitle:i,showAskManagerButton:a,showAskAIButton:u,managerReplyMessage:l,additionalContent:g,onClickShowOriginalMessage:d,originalMessage:f,onResend:E})=>{const B=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[c.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:[c.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),f&&f!==""&&c.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}),c.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A}),n&&c.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]}),c.jsx(qt,{type:"secondary",fullName:e})]}),h=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[c.jsx(qt,{fullName:e}),c.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:[c.jsx("div",{className:"text-sm font-normal text-client-chat-foreground",children:t}),c.jsxs("div",{className:"flex flex-row gap-2",children:[u&&c.jsx(Qe,{name:"ai-helper",role:"button",onClick:o,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:c.jsx(U,{name:"Sparkles",width:24,height:24,className:"text-client-chat-link"})}),a&&c.jsx(Qe,{name:"manager-helper",role:"button",onClick:s,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:c.jsx(U,{name:"ChatBubble",width:24,height:24,className:"text-client-chat-link"})})]}),f&&f!==""&&c.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}),c.jsx("div",{className:"text-xs w-full font-normal text-client-chat-foreground text-right",children:A}),n&&c.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]})]}),Q=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[c.jsxs("div",{className:"rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-border",children:[c.jsxs("div",{className:"p-3 relative flex w-full flex-col gap-3 items-start bg-transparent",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between w-full gap-3 text-foreground",children:[i,c.jsx("div",{className:"w-fit bg-destructive rounded-md p-1 text-[15px] text-primary-foreground font-normal",children:A})]}),c.jsx("div",{className:"text-sm font-medium text-foreground",children:l})]}),c.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:[c.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),c.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A})]})]}),c.jsx(qt,{type:"secondary",fullName:e})]}),m=()=>{const I=async()=>{await AE(t)};return c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[c.jsx("div",{className:"w-10 h-10 flex rounded-full items-center justify-center bg-warning-background",children:c.jsx(U,{name:"Sparkles",width:24,height:24,className:"text-secondary-brew"})}),c.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:[c.jsx("div",{className:"text-sm font-medium text-secondary-brew-2",children:t}),c.jsxs("div",{className:"flex flex-row items-center justify-between w-full",children:[c.jsxs("div",{className:"flex flex-row items-start justify-center gap-1",children:[E&&c.jsx(Qe,{"aria-label":"Resend",className:"w-8 h-8 bg-transparent p-0 group",onClick:E,children:c.jsx(U,{name:"ArrowPathRoundedSquare",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})}),c.jsx(Qe,{"aria-label":"Copy",className:"w-8 h-8 bg-transparent p-0 group",onClick:I,children:c.jsx(U,{name:"Square2Stack",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})})]}),c.jsx("div",{className:"text-xs font-normal text-secondary-brew-2",children:A})]})]})]})},x=()=>c.jsxs("div",{className:"bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col",children:[c.jsxs("div",{className:"text-foreground text-base font-medium flex items-center justify-between",children:[c.jsxs("div",{className:"flex gap-2",children:[n," ",t]}),c.jsx("span",{className:"bg-destructive text-primary-foreground rounded px-1 py-0.5 text-sm font-normal",children:A})]}),c.jsx("div",{className:"text-popover-foreground",children:g})]});return{MESSAGE:B(),REPLY:h(),MANAGER_REPLY:Q(),AI_REPLY:m(),INFO_MESSAGE:x()}[r]},kQ=({icon:e,title:t,summary:A})=>c.jsxs("div",{className:"bg-warning-background rounded-2xl pt-4 pb-6 px-6 flex flex-col gap-1 items-start w-full",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center w-full",children:[e&&c.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}),c.jsx("div",{className:"font-medium text-base text-secondary-brew-2",children:t})]}),c.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[u,l]=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)&&(l(!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),l(!1),d("")},x=()=>{r||(l(!u),u||setTimeout(()=>{var I;return(I=h.current)==null?void 0:I.focus()},100))},b=I=>{I.key==="Escape"&&(l(!1),d(""))};return c.jsxs("div",{className:$("relative",o),ref:B,children:[a&&c.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:a}),c.jsxs("div",{className:"relative",children:[c.jsxs(En,{type:"button",variant:"outline",className:$("w-full justify-between",!f&&"text-muted-foreground"),onClick:x,disabled:r,children:[c.jsx("span",{className:"truncate",children:f?f.label:n}),c.jsx(U,{name:"ChevronDown",className:$("h-4 w-4 transition-transform duration-200 ml-2",u&&"rotate-180")})]}),u&&c.jsxs("div",{className:"absolute z-50 w-full top-full mt-1 bg-background border border-border rounded-md shadow-lg transform-none",children:[c.jsx("div",{className:"p-2 border-b border-border",children:c.jsx(Wl,{ref:h,placeholder:s,value:g,onChange:I=>d(I.target.value),onKeyDown:b,className:"h-8"})}),c.jsx("div",{className:"max-h-60 overflow-auto",children:Q.length>0?Q.map(I=>c.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)):c.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:i})})]})]})]})},RQ=({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:u="Auto-detect",targetLanguagePlaceholder:l="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,D]=w.useState(!0),[F,j]=w.useState(!0),S=w.useRef(t.length),O=w.useRef(t),M=w.useCallback(()=>{if(!v.current)return!1;const{scrollTop:L,scrollHeight:z,clientHeight:T}=v.current;return z-L-T<100},[]),y=w.useCallback(()=>{const L=M();j(L)},[M]),k=w.useCallback(()=>{v.current&&(v.current.scrollTop=v.current.scrollHeight)},[]);return w.useEffect(()=>{const L=t.length>S.current,z=JSON.stringify(t)!==JSON.stringify(O.current);(L||z)&&F&&setTimeout(()=>{k()},100),S.current=t.length,O.current=t},[t,F,k]),w.useEffect(()=>{const L=v.current;if(L)return L.addEventListener("scroll",y),()=>{L.removeEventListener("scroll",y)}},[y]),w.useEffect(()=>{v.current&&j(M())},[M]),w.useEffect(()=>{let L;return o==="translating"?L=setInterval(()=>{D(z=>!z)},1e3):D(!0),()=>{L&&clearInterval(L)}},[o]),c.jsxs("div",{className:"w-full flex flex-col h-full",children:[c.jsx("div",{className:"w-full flex-shrink-0 mb-3 md:mb-[26px]",children:e?c.jsxs("div",{className:"w-full flex flex-row items-center justify-between",children:[s&&c.jsx("div",{className:"text-lg font-medium text-foreground",children:s}),r&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`hidden md:flex gap-2 flex-${b}`,children:[I&&c.jsxs("div",{className:"flex flex-row items-center gap-4",children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-30"}),c.jsx(U,{name:"CustomerIcon",width:40,height:40}),c.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:c.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),c.jsx(U,{name:"AgentIcon",width:40,height:40}),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-30"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-6 py-3 h-10 ",children:[c.jsx(U,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[x&&(o==="idle"?i:a),c.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"}})]})]})]}),c.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&c.jsxs(c.Fragment,{children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-32"}),c.jsx(U,{name:"CustomerIcon",width:40,height:40}),c.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:c.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),c.jsx(U,{name:"AgentIcon",width:40,height:40}),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-32"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",children:[c.jsx(U,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:c.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"}})})]})]})]})]}):c.jsx("div",{className:"w-full flex items-center justify-center",children:r&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`hidden md:flex items-center gap-2 flex-${b}`,children:[I&&c.jsxs("div",{className:"flex flex-row items-center gap-4",children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-30"}),c.jsx(U,{name:"CustomerIcon",width:40,height:40}),c.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:c.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),c.jsx(U,{name:"AgentIcon",width:40,height:40}),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-30"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-3 py-3 h-10 ",children:[c.jsx(U,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[x&&(o==="idle"?i:a),c.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"}})]})]})]}),c.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&c.jsxs(c.Fragment,{children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-32"}),c.jsx(U,{name:"CustomerIcon",width:40,height:40}),c.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:c.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),c.jsx(U,{name:"AgentIcon",width:40,height:40}),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-32"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",children:[c.jsx(U,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:c.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"}})})]})]})]})})}),c.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:c.jsxs("div",{className:"flex flex-col w-full items-center justify-center pb-4 ",children:[c.jsx("div",{className:`flex flex-col gap-6 w-full pb-8 ${n?"border-b border-border":""}`,children:t.map(L=>c.jsx(xA,{...L},L.id))}),c.jsx("div",{className:"w-full flex pt-8 max-w-11/12",children:n&&c.jsx(kQ,{...n})})]})})]})},LQ=({rate:e})=>{const t=w.useMemo(()=>{if(e<=20)return c.jsx(U,{name:"AngryFace",width:32,height:32});if(e>20&&e<=40)return c.jsx(U,{name:"ConfusedFace",width:32,height:32});if(e>40&&e<=60)return c.jsx(U,{name:"NeutralFaceIcon",width:32,height:32});if(e>60&&e<=80)return c.jsx(U,{name:"Smiling",width:32,height:32});if(e>80&&e<=100)return c.jsx(U,{name:"SmilingWithHearts",width:32,height:32})},[e]),A=w.useMemo(()=>`${Math.max(0,Math.min(100,e))}%`,[e]);return c.jsxs("div",{className:"w-full relative h-3 rounded-full",children:[c.jsx("div",{className:"w-full h-full absolute top-0 left-0 rounded-full sentiment-gradient"}),c.jsx("div",{style:{left:A,transform:"translateX(-50%)"},className:"absolute z-10 -top-[10px]",children:t})]})},Hc={light:{"primary-foreground":"#F5F5F5"},dark:{"primary-hover":"#7473C8"}},SQ=({label:e,checked:t,onClick:A,id:n})=>c.jsxs("div",{onClick:()=>A(n),className:"flex cursor-pointer flex-row gap-3 items-center justify-center",children:[c.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&&c.jsx(U,{name:"Check",width:16,height:16,color:Hc.light["primary-foreground"],"data-testid":"check-icon"})}),c.jsx("span",{className:$("text-sm font-normal",t?"line-through text-muted-foreground":"text-foreground"),children:e})]});var Dr="Collapsible",[OQ]=ze(Dr),[zQ,js]=OQ(Dr),Vc=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,open:n,defaultOpen:r,disabled:o,onOpenChange:s,...i}=e,[a,u]=Tt({prop:n,defaultProp:r??!1,onChange:s,caller:Dr});return c.jsx(zQ,{scope:A,disabled:o,contentId:ot(),open:a,onOpenToggle:C.useCallback(()=>u(l=>!l),[u]),children:c.jsx(oe.div,{"data-state":Rs(a),"data-disabled":o?"":void 0,...i,ref:t})})});Vc.displayName=Dr;var Gc="CollapsibleTrigger",Yc=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,...n}=e,r=js(Gc,A);return c.jsx(oe.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Rs(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:t,onClick:K(e.onClick,r.onOpenToggle)})});Yc.displayName=Gc;var ks="CollapsibleContent",Uc=C.forwardRef((e,t)=>{const{forceMount:A,...n}=e,r=js(ks,e.__scopeCollapsible);return c.jsx(He,{present:A||r.open,children:({present:o})=>c.jsx(HQ,{...n,ref:t,present:o})})});Uc.displayName=ks;var HQ=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,present:n,children:r,...o}=e,s=js(ks,A),[i,a]=C.useState(n),u=C.useRef(null),l=Ce(t,u),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=u.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]),c.jsx(oe.div,{"data-state":Rs(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!B,...o,ref:l,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 Rs(e){return e?"open":"closed"}var VQ=Vc;function Vo({...e}){return c.jsx(VQ,{"data-slot":"collapsible",...e})}function Go({...e}){return c.jsx(Yc,{"data-slot":"collapsible-trigger",...e})}function Yo({...e}){return c.jsx(Uc,{"data-slot":"collapsible-content",...e})}const Wc=({id:e,title:t="GenAI Support",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(U,{name:"Sparkles",width:24,height:24,className:"text-foreground"}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Xc=({id:e,title:t="Great Job!",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(U,{name:"ClappingHands",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Zc=({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"})=>c.jsx(kt,{title:t,icon:c.jsx(U,{name:"SkullAndCrossbones",width:24,height:24}),id:e,message:A,timestamp:n,showHelperButtons:r,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:i,askManagerTitle:a}),qc=({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]),u=w.useMemo(()=>o<10?`0${o}`:o,[o]);return c.jsx(kt,{id:n,icon:c.jsx(U,{name:"Done",width:24,height:24}),title:e,message:t,timestamp:A,tag:r!==0&&c.jsx("div",{className:"bg-foreground-08 rounded-4xl p-1 flex items-center justify-center text-[11px] font-normal text-foreground",children:`${u} / ${a}`}),askGenAITitle:s,askManagerTitle:i})},Kc=({id:e,title:t="Unhappy Customer",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(U,{name:"PoutingFace",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Jc=({id:e,title:t,message:A,timestamp:n,icon:r,askGenAITitle:o="Ask GenAI",askManagerTitle:s="Ask Manager",showFeedbackArea:i,scenarioId:a,feddbackTitle:u,feedbackHelpfullButtonTitle:l,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:d,feedbackSubmitText:f,feedbackThankYouMessage:E,feedbackSubmitButtonHoverTitle:B,feedbackCancelButtonTitle:h,showThankYou:Q,sendFeedback:m,matchId:x,feedbackLoading:b})=>c.jsx(kt,{id:e,title:t,message:A,timestamp:n,icon:r,scenarioId:a,askGenAITitle:o,askManagerTitle:s,showFeedbackArea:i,feddbackTitle:u,feedbackHelpfullButtonTitle:l,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(N,V){return v.call(N,V)},D=function(N,V){for(var _=-1,te=N.length;++_<te;)if(N[_]==V)return!0;return!1},F=function(N,V){if(!N)return V;var _={},te;for(te in V)_[te]=p(N,te)?N[te]:V[te];return _},j=function(N,V){var _="";return N>=55296&&N<=57343||N>1114111?(V&&M("character reference outside the permissible Unicode range"),"�"):p(m,N)?(V&&M("disallowed character reference"),m[N]):(V&&D(x,N)&&M("disallowed character reference"),N>65535&&(N-=65536,_+=b(N>>>10&1023|55296),N=56320|N&1023),_+=b(N),_)},S=function(N){return"&#x"+N.toString(16).toUpperCase()+";"},O=function(N){return"&#"+N+";"},M=function(N){throw Error("Parse error: "+N)},y=function(N,V){V=F(V,y.options);var _=V.strict;_&&E.test(N)&&M("forbidden code point");var te=V.encodeEverything,P=V.useNamedReferences,H=V.allowUnsafeSymbols,G=V.decimal?O:S,Y=function(R){return G(R.charCodeAt(0))};return te?(N=N.replace(i,function(R){return P&&p(l,R)?"&"+l[R]+";":Y(R)}),P&&(N=N.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),P&&(N=N.replace(u,function(R){return"&"+l[R]+";"}))):P?(H||(N=N.replace(g,function(R){return"&"+l[R]+";"})),N=N.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),N=N.replace(u,function(R){return"&"+l[R]+";"})):H||(N=N.replace(g,Y)),N.replace(s,function(R){var W=R.charCodeAt(0),J=R.charCodeAt(1),ie=(W-55296)*1024+J-56320+65536;return G(ie)}).replace(a,Y)};y.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var k=function(N,V){V=F(V,k.options);var _=V.strict;return _&&f.test(N)&&M("malformed character reference"),N.replace(B,function(te,P,H,G,Y,R,W,J,ie){var le,ge,ae,q,Pe,je;return P?(Pe=P,h[Pe]):H?(Pe=H,je=G,je&&V.isAttributeValue?(_&&je=="="&&M("`&` did not start a character reference"),te):(_&&M("named character reference was not terminated by a semicolon"),Q[Pe]+(je||""))):Y?(ae=Y,ge=R,_&&!ge&&M("character reference was not terminated by a semicolon"),le=parseInt(ae,10),j(le,_)):W?(q=W,ge=J,_&&!ge&&M("character reference was not terminated by a semicolon"),le=parseInt(q,16),j(le,_)):(_&&M("named character reference was not terminated by a semicolon"),te)})};k.options={isAttributeValue:!1,strict:!1};var L=function(N){return N.replace(g,function(V){return d[V]})},z={version:"1.2.0",encode:y,decode:k,escape:L,unescape:k};if(n&&!n.nodeType)if(r)r.exports=z;else for(var T in z)p(z,T)&&(n[T]=z[T]);else A.he=z})(NQ)})(ZA,ZA.exports)),ZA.exports}var TQ=MQ();const jQ=Fc(TQ),kt=w.forwardRef(({title:e,message:t,timestamp:A,icon:n,tag:r,showHelperButtons:o,onClickAskGenAI:s,onClickAskManager:i,askGenAITitle:a="Ask GenAI",askManagerTitle:u="Ask Manager",isStacked:l,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:D,showThankYou:F},j)=>{const S=jQ.decode(t??""),[O,M]=w.useState(1),[y,k]=w.useState(!1),[L,z]=w.useState(""),T=()=>{k(te=>!te)},N=te=>{M(te)},V=({selectedFeedback:te,comment:P})=>{v==null||v({selectedFeedback:te??0,comment:P,scenarioId:f??"",matchId:p??""})},_=()=>{M(1),z(""),k(!1)};return c.jsxs("div",{ref:j,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",l?"shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] ":null,g),children:[c.jsxs("div",{className:"flex w-full flex-row items-center justify-between gap-6",children:[c.jsxs("div",{className:"flex flex-row",children:[n,c.jsx("div",{className:"ml-2 mr-1 text-base font-medium leading-6 text-foreground",children:e}),typeof r<"u"&&r]}),c.jsx("div",{className:"bg-foreground-08 rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-card-foreground",children:A})]}),c.jsx("div",{className:"text-sm md:text-base w-full font-normal text-foreground",children:c.jsxs("div",{className:"flex flex-row items-center justify-between gap-2",children:[c.jsx("div",{className:"flex-1 min-w-0 whitespace-pre-wrap break-words",children:PQ(S)}),d&&!F&&c.jsxs("button",{onClick:T,className:"relative group",title:E,style:{cursor:"pointer"},children:[c.jsx(U,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),c.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap",children:E})]})]})}),y&&!F&&c.jsxs("div",{className:"mt-4 space-y-4",children:[c.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("button",{onClick:()=>N(1),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",O===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:[c.jsx(U,{name:"LikeHand",width:16,height:16,style:{color:O===1?"#22c55e":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:h})]}),c.jsxs("button",{onClick:()=>N(0),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",O===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:[c.jsx(U,{name:"DisLikeHand",width:16,height:16,style:{color:O===0?"#ef4444":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:Q})]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:B}),c.jsx("textarea",{value:L,maxLength:500,onChange:te=>z(te.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}),c.jsxs("div",{className:"flex justify-end",children:[c.jsx(Qe,{onClick:_,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:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:I})}),c.jsx(Qe,{onClick:()=>V({selectedFeedback:O??0,comment:L}),isLoading:D,disabled:D,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:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:x})})]})]})]}),F&&c.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[c.jsx("span",{className:"text-sm font-medium",children:b}),c.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:c.jsx(U,{name:"Check",width:12,height:12,style:{color:"white"}})})]}),o&&c.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[c.jsx(Qe,{onClick:s,size:"sm",className:"bg-primary gap-2",children:c.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[c.jsx(U,{name:"Sparkles",width:16,height:16,className:"text-background"}),a]})}),c.jsx(Qe,{onClick:i,size:"sm",className:"bg-primary gap-2",children:c.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[c.jsx(U,{name:"HandRaised",width:16,height:16,className:"text-background"}),u]})})]})]})});kt.displayName="MomentItem";const xA=({sender:e,message:t,timestamp:A,icon:n,type:r,onClickAskAI:o,onClickAskManager:s,managerReplyTitle:i,showAskManagerButton:a,showAskAIButton:u,managerReplyMessage:l,additionalContent:g,onClickShowOriginalMessage:d,originalMessage:f,onResend:E})=>{const B=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[c.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:[c.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),f&&f!==""&&c.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}),c.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A}),n&&c.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]}),c.jsx(qt,{type:"secondary",fullName:e})]}),h=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[c.jsx(qt,{fullName:e}),c.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:[c.jsx("div",{className:"text-sm font-normal text-client-chat-foreground",children:t}),c.jsxs("div",{className:"flex flex-row gap-2",children:[u&&c.jsx(Qe,{name:"ai-helper",role:"button",onClick:o,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:c.jsx(U,{name:"Sparkles",width:24,height:24,className:"text-client-chat-link"})}),a&&c.jsx(Qe,{name:"manager-helper",role:"button",onClick:s,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:c.jsx(U,{name:"ChatBubble",width:24,height:24,className:"text-client-chat-link"})})]}),f&&f!==""&&c.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}),c.jsx("div",{className:"text-xs w-full font-normal text-client-chat-foreground text-right",children:A}),n&&c.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]})]}),Q=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[c.jsxs("div",{className:"rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-border",children:[c.jsxs("div",{className:"p-3 relative flex w-full flex-col gap-3 items-start bg-transparent",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between w-full gap-3 text-foreground",children:[i,c.jsx("div",{className:"w-fit bg-destructive rounded-md p-1 text-[15px] text-primary-foreground font-normal",children:A})]}),c.jsx("div",{className:"text-sm font-medium text-foreground",children:l})]}),c.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:[c.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),c.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A})]})]}),c.jsx(qt,{type:"secondary",fullName:e})]}),m=()=>{const I=async()=>{await AE(t)};return c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[c.jsx("div",{className:"w-10 h-10 flex rounded-full items-center justify-center bg-warning-background",children:c.jsx(U,{name:"Sparkles",width:24,height:24,className:"text-secondary-brew"})}),c.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:[c.jsx("div",{className:"text-sm font-medium text-secondary-brew-2",children:t}),c.jsxs("div",{className:"flex flex-row items-center justify-between w-full",children:[c.jsxs("div",{className:"flex flex-row items-start justify-center gap-1",children:[E&&c.jsx(Qe,{"aria-label":"Resend",className:"w-8 h-8 bg-transparent p-0 group",onClick:E,children:c.jsx(U,{name:"ArrowPathRoundedSquare",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})}),c.jsx(Qe,{"aria-label":"Copy",className:"w-8 h-8 bg-transparent p-0 group",onClick:I,children:c.jsx(U,{name:"Square2Stack",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})})]}),c.jsx("div",{className:"text-xs font-normal text-secondary-brew-2",children:A})]})]})]})},x=()=>c.jsxs("div",{className:"bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col",children:[c.jsxs("div",{className:"text-foreground text-base font-medium flex items-center justify-between",children:[c.jsxs("div",{className:"flex gap-2",children:[n," ",t]}),c.jsx("span",{className:"bg-destructive text-primary-foreground rounded px-1 py-0.5 text-sm font-normal",children:A})]}),c.jsx("div",{className:"text-popover-foreground",children:g})]});return{MESSAGE:B(),REPLY:h(),MANAGER_REPLY:Q(),AI_REPLY:m(),INFO_MESSAGE:x()}[r]},kQ=({icon:e,title:t,summary:A})=>c.jsxs("div",{className:"bg-warning-background rounded-2xl pt-4 pb-6 px-6 flex flex-col gap-1 items-start w-full",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center w-full",children:[e&&c.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}),c.jsx("div",{className:"font-medium text-base text-secondary-brew-2",children:t})]}),c.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[u,l]=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)&&(l(!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),l(!1),d("")},x=()=>{r||(l(!u),u||setTimeout(()=>{var I;return(I=h.current)==null?void 0:I.focus()},100))},b=I=>{I.key==="Escape"&&(l(!1),d(""))};return c.jsxs("div",{className:$("relative",o),ref:B,children:[a&&c.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:a}),c.jsxs("div",{className:"relative",children:[c.jsxs(En,{type:"button",variant:"outline",className:$("w-full justify-between",!f&&"text-muted-foreground"),onClick:x,disabled:r,children:[c.jsx("span",{className:"truncate",children:f?f.label:n}),c.jsx(U,{name:"ChevronDown",className:$("h-4 w-4 transition-transform duration-200 ml-2",u&&"rotate-180")})]}),u&&c.jsxs("div",{className:"absolute z-50 w-full top-full mt-1 bg-background border border-border rounded-md shadow-lg transform-none",children:[c.jsx("div",{className:"p-2 border-b border-border",children:c.jsx(Wl,{ref:h,placeholder:s,value:g,onChange:I=>d(I.target.value),onKeyDown:b,className:"h-8"})}),c.jsx("div",{className:"max-h-60 overflow-auto",children:Q.length>0?Q.map(I=>c.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)):c.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:i})})]})]})]})},RQ=({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:u="Auto-detect",targetLanguagePlaceholder:l="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,D]=w.useState(!0),[F,j]=w.useState(!0),S=w.useRef(t.length),O=w.useRef(t),M=w.useCallback(()=>{if(!v.current)return!1;const{scrollTop:L,scrollHeight:z,clientHeight:T}=v.current;return z-L-T<100},[]),y=w.useCallback(()=>{const L=M();j(L)},[M]),k=w.useCallback(()=>{v.current&&(v.current.scrollTop=v.current.scrollHeight)},[]);return w.useEffect(()=>{const L=t.length>S.current,z=JSON.stringify(t)!==JSON.stringify(O.current);(L||z)&&F&&setTimeout(()=>{k()},100),S.current=t.length,O.current=t},[t,F,k]),w.useEffect(()=>{const L=v.current;if(L)return L.addEventListener("scroll",y),()=>{L.removeEventListener("scroll",y)}},[y]),w.useEffect(()=>{v.current&&j(M())},[M]),w.useEffect(()=>{let L;return o==="translating"?L=setInterval(()=>{D(z=>!z)},1e3):D(!0),()=>{L&&clearInterval(L)}},[o]),c.jsxs("div",{className:"w-full flex flex-col h-full",children:[c.jsx("div",{className:"w-full flex-shrink-0 mb-3 md:mb-[26px]",children:e?c.jsxs("div",{className:"w-full flex flex-row items-center justify-between",children:[s&&c.jsx("div",{className:"text-lg font-medium text-foreground",children:s}),r&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`hidden md:flex gap-2 flex-${b}`,children:[I&&c.jsxs("div",{className:"flex flex-row items-center gap-4",children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-30"}),c.jsx(U,{name:"CustomerIcon",width:40,height:40}),c.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:c.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),c.jsx(U,{name:"AgentIcon",width:40,height:40}),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-30"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-6 py-3 h-10 ",children:[c.jsx(U,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[x&&(o==="idle"?i:a),c.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"}})]})]})]}),c.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&c.jsxs(c.Fragment,{children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-32"}),c.jsx(U,{name:"CustomerIcon",width:40,height:40}),c.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:c.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),c.jsx(U,{name:"AgentIcon",width:40,height:40}),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-32"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",children:[c.jsx(U,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:c.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"}})})]})]})]})]}):c.jsx("div",{className:"w-full flex items-center justify-center",children:r&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`hidden md:flex items-center gap-2 flex-${b}`,children:[I&&c.jsxs("div",{className:"flex flex-row items-center gap-4",children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-30"}),c.jsx(U,{name:"CustomerIcon",width:40,height:40}),c.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:c.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),c.jsx(U,{name:"AgentIcon",width:40,height:40}),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-30"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-3 py-3 h-10 ",children:[c.jsx(U,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[x&&(o==="idle"?i:a),c.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"}})]})]})]}),c.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&c.jsxs(c.Fragment,{children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-32"}),c.jsx(U,{name:"CustomerIcon",width:40,height:40}),c.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:c.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),c.jsx(U,{name:"AgentIcon",width:40,height:40}),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-32"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",children:[c.jsx(U,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:c.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"}})})]})]})]})})}),c.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:c.jsxs("div",{className:"flex flex-col w-full items-center justify-center pb-4 ",children:[c.jsx("div",{className:`flex flex-col gap-6 w-full pb-8 ${n?"border-b border-border":""}`,id:"transcript-container",children:t.map(L=>c.jsx(xA,{...L},L.id))}),c.jsx("div",{className:"w-full flex pt-8 max-w-11/12",children:n&&c.jsx(kQ,{...n})})]})})]})},LQ=({rate:e})=>{const t=w.useMemo(()=>{if(e<=20)return c.jsx(U,{name:"AngryFace",width:32,height:32});if(e>20&&e<=40)return c.jsx(U,{name:"ConfusedFace",width:32,height:32});if(e>40&&e<=60)return c.jsx(U,{name:"NeutralFaceIcon",width:32,height:32});if(e>60&&e<=80)return c.jsx(U,{name:"Smiling",width:32,height:32});if(e>80&&e<=100)return c.jsx(U,{name:"SmilingWithHearts",width:32,height:32})},[e]),A=w.useMemo(()=>`${Math.max(0,Math.min(100,e))}%`,[e]);return c.jsxs("div",{className:"w-full relative h-3 rounded-full",children:[c.jsx("div",{className:"w-full h-full absolute top-0 left-0 rounded-full sentiment-gradient"}),c.jsx("div",{style:{left:A,transform:"translateX(-50%)"},className:"absolute z-10 -top-[10px]",children:t})]})},Hc={light:{"primary-foreground":"#F5F5F5"},dark:{"primary-hover":"#7473C8"}},SQ=({label:e,checked:t,onClick:A,id:n})=>c.jsxs("div",{onClick:()=>A(n),className:"flex cursor-pointer flex-row gap-3 items-center justify-center",children:[c.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&&c.jsx(U,{name:"Check",width:16,height:16,color:Hc.light["primary-foreground"],"data-testid":"check-icon"})}),c.jsx("span",{className:$("text-sm font-normal",t?"line-through text-muted-foreground":"text-foreground"),children:e})]});var Dr="Collapsible",[OQ]=ze(Dr),[zQ,js]=OQ(Dr),Vc=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,open:n,defaultOpen:r,disabled:o,onOpenChange:s,...i}=e,[a,u]=Tt({prop:n,defaultProp:r??!1,onChange:s,caller:Dr});return c.jsx(zQ,{scope:A,disabled:o,contentId:ot(),open:a,onOpenToggle:C.useCallback(()=>u(l=>!l),[u]),children:c.jsx(oe.div,{"data-state":Rs(a),"data-disabled":o?"":void 0,...i,ref:t})})});Vc.displayName=Dr;var Gc="CollapsibleTrigger",Yc=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,...n}=e,r=js(Gc,A);return c.jsx(oe.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Rs(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:t,onClick:K(e.onClick,r.onOpenToggle)})});Yc.displayName=Gc;var ks="CollapsibleContent",Uc=C.forwardRef((e,t)=>{const{forceMount:A,...n}=e,r=js(ks,e.__scopeCollapsible);return c.jsx(He,{present:A||r.open,children:({present:o})=>c.jsx(HQ,{...n,ref:t,present:o})})});Uc.displayName=ks;var HQ=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,present:n,children:r,...o}=e,s=js(ks,A),[i,a]=C.useState(n),u=C.useRef(null),l=Ce(t,u),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=u.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]),c.jsx(oe.div,{"data-state":Rs(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!B,...o,ref:l,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 Rs(e){return e?"open":"closed"}var VQ=Vc;function Vo({...e}){return c.jsx(VQ,{"data-slot":"collapsible",...e})}function Go({...e}){return c.jsx(Yc,{"data-slot":"collapsible-trigger",...e})}function Yo({...e}){return c.jsx(Uc,{"data-slot":"collapsible-content",...e})}const Wc=({id:e,title:t="GenAI Support",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(U,{name:"Sparkles",width:24,height:24,className:"text-foreground"}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Xc=({id:e,title:t="Great Job!",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(U,{name:"ClappingHands",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Zc=({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"})=>c.jsx(kt,{title:t,icon:c.jsx(U,{name:"SkullAndCrossbones",width:24,height:24}),id:e,message:A,timestamp:n,showHelperButtons:r,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:i,askManagerTitle:a}),qc=({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]),u=w.useMemo(()=>o<10?`0${o}`:o,[o]);return c.jsx(kt,{id:n,icon:c.jsx(U,{name:"Done",width:24,height:24}),title:e,message:t,timestamp:A,tag:r!==0&&c.jsx("div",{className:"bg-foreground-08 rounded-4xl p-1 flex items-center justify-center text-[11px] font-normal text-foreground",children:`${u} / ${a}`}),askGenAITitle:s,askManagerTitle:i})},Kc=({id:e,title:t="Unhappy Customer",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(U,{name:"PoutingFace",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Jc=({id:e,title:t,message:A,timestamp:n,icon:r,askGenAITitle:o="Ask GenAI",askManagerTitle:s="Ask Manager",showFeedbackArea:i,scenarioId:a,feddbackTitle:u,feedbackHelpfullButtonTitle:l,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:d,feedbackSubmitText:f,feedbackThankYouMessage:E,feedbackSubmitButtonHoverTitle:B,feedbackCancelButtonTitle:h,showThankYou:Q,sendFeedback:m,matchId:x,feedbackLoading:b})=>c.jsx(kt,{id:e,title:t,message:A,timestamp:n,icon:r,scenarioId:a,askGenAITitle:o,askManagerTitle:s,showFeedbackArea:i,feddbackTitle:u,feedbackHelpfullButtonTitle:l,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.
@@ -48,7 +48,7 @@
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const ZQ=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],qQ=$c("LoaderCircle",ZQ),yr=w.createContext(null);yr.displayName="PanelGroupContext";const he={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Ls=10,Kt=w.useLayoutEffect,Pa=C.useId,KQ=typeof Pa=="function"?Pa:()=>null;let JQ=0;function Ss(e=null){const t=KQ(),A=w.useRef(e||t||null);return A.current===null&&(A.current=""+JQ++),e??A.current}function eg({children:e,className:t="",collapsedSize:A,collapsible:n,defaultSize:r,forwardedRef:o,id:s,maxSize:i,minSize:a,onCollapse:u,onExpand:l,onResize:g,order:d,style:f,tagName:E="div",...B}){const h=w.useContext(yr);if(h===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:Q,expandPanel:m,getPanelSize:x,getPanelStyle:b,groupId:I,isPanelCollapsed:v,reevaluatePanelConstraints:p,registerPanel:D,resizePanel:F,unregisterPanel:j}=h,S=Ss(s),O=w.useRef({callbacks:{onCollapse:u,onExpand:l,onResize:g},constraints:{collapsedSize:A,collapsible:n,defaultSize:r,maxSize:i,minSize:a},id:S,idIsFromProps:s!==void 0,order:d});w.useRef({didLogMissingDefaultSizeWarning:!1}),Kt(()=>{const{callbacks:y,constraints:k}=O.current,L={...k};O.current.id=S,O.current.idIsFromProps=s!==void 0,O.current.order=d,y.onCollapse=u,y.onExpand=l,y.onResize=g,k.collapsedSize=A,k.collapsible=n,k.defaultSize=r,k.maxSize=i,k.minSize=a,(L.collapsedSize!==k.collapsedSize||L.collapsible!==k.collapsible||L.maxSize!==k.maxSize||L.minSize!==k.minSize)&&p(O.current,L)}),Kt(()=>{const y=O.current;return D(y),()=>{j(y)}},[d,S,D,j]),w.useImperativeHandle(o,()=>({collapse:()=>{Q(O.current)},expand:y=>{m(O.current,y)},getId(){return S},getSize(){return x(O.current)},isCollapsed(){return v(O.current)},isExpanded(){return!v(O.current)},resize:y=>{F(O.current,y)}}),[Q,m,x,v,S,F]);const M=b(O.current,r);return w.createElement(E,{...B,children:e,className:t,id:S,style:{...M,...f},[he.groupId]:I,[he.panel]:"",[he.panelCollapsible]:n||void 0,[he.panelId]:S,[he.panelSize]:parseFloat(""+M.flexGrow).toFixed(1)})}const tg=w.forwardRef((e,t)=>w.createElement(eg,{...e,forwardedRef:t}));eg.displayName="Panel";tg.displayName="forwardRef(Panel)";let Uo=null,$n=-1,yt=null;function _Q(e,t){if(t){const A=(t&sg)!==0,n=(t&ig)!==0,r=(t&ag)!==0,o=(t&ug)!==0;if(A)return r?"se-resize":o?"ne-resize":"e-resize";if(n)return r?"sw-resize":o?"nw-resize":"w-resize";if(r)return"s-resize";if(o)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function $Q(){yt!==null&&(document.head.removeChild(yt),Uo=null,yt=null,$n=-1)}function ro(e,t){var A,n;const r=_Q(e,t);if(Uo!==r){if(Uo=r,yt===null&&(yt=document.createElement("style"),document.head.appendChild(yt)),$n>=0){var o;(o=yt.sheet)===null||o===void 0||o.removeRule($n)}$n=(A=(n=yt.sheet)===null||n===void 0?void 0:n.insertRule(`*{cursor: ${r} !important;}`))!==null&&A!==void 0?A:-1}}function Ag(e){return e.type==="keydown"}function ng(e){return e.type.startsWith("pointer")}function rg(e){return e.type.startsWith("mouse")}function Fr(e){if(ng(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(rg(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function e2(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function t2(e,t,A){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function A2(e,t){if(e===t)throw new Error("Cannot compare node with itself");const A={a:Ta(e),b:Ta(t)};let n;for(;A.a.at(-1)===A.b.at(-1);)e=A.a.pop(),t=A.b.pop(),n=e;re(n,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Ma(Na(A.a)),b:Ma(Na(A.b))};if(r.a===r.b){const o=n.childNodes,s={a:A.a.at(-1),b:A.b.at(-1)};let i=o.length;for(;i--;){const a=o[i];if(a===s.a)return 1;if(a===s.b)return-1}}return Math.sign(r.a-r.b)}const n2=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function r2(e){var t;const A=getComputedStyle((t=og(e))!==null&&t!==void 0?t:e).display;return A==="flex"||A==="inline-flex"}function o2(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||r2(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||n2.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Na(e){let t=e.length;for(;t--;){const A=e[t];if(re(A,"Missing node"),o2(A))return A}return null}function Ma(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ta(e){const t=[];for(;e;)t.push(e),e=og(e);return t}function og(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const sg=1,ig=2,ag=4,ug=8,s2=e2()==="coarse";let Je=[],hA=!1,Wt=new Map,Pr=new Map;const nn=new Set;function i2(e,t,A,n,r){var o;const{ownerDocument:s}=t,i={direction:A,element:t,hitAreaMargins:n,setResizeHandlerState:r},a=(o=Wt.get(s))!==null&&o!==void 0?o:0;return Wt.set(s,a+1),nn.add(i),ir(),function(){var l;Pr.delete(e),nn.delete(i);const g=(l=Wt.get(s))!==null&&l!==void 0?l:1;if(Wt.set(s,g-1),ir(),g===1&&Wt.delete(s),Je.includes(i)){const d=Je.indexOf(i);d>=0&&Je.splice(d,1),zs(),r("up",!0,null)}}}function a2(e){const{target:t}=e,{x:A,y:n}=Fr(e);hA=!0,Os({target:t,x:A,y:n}),ir(),Je.length>0&&(ar("down",e),e.preventDefault(),lg(t)||e.stopImmediatePropagation())}function oo(e){const{x:t,y:A}=Fr(e);if(hA&&e.buttons===0&&(hA=!1,ar("up",e)),!hA){const{target:n}=e;Os({target:n,x:t,y:A})}ar("move",e),zs(),Je.length>0&&e.preventDefault()}function so(e){const{target:t}=e,{x:A,y:n}=Fr(e);Pr.clear(),hA=!1,Je.length>0&&(e.preventDefault(),lg(t)||e.stopImmediatePropagation()),ar("up",e),Os({target:t,x:A,y:n}),zs(),ir()}function lg(e){let t=e;for(;t;){if(t.hasAttribute(he.resizeHandle))return!0;t=t.parentElement}return!1}function Os({target:e,x:t,y:A}){Je.splice(0);let n=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(n=e),nn.forEach(r=>{const{element:o,hitAreaMargins:s}=r,i=o.getBoundingClientRect(),{bottom:a,left:u,right:l,top:g}=i,d=s2?s.coarse:s.fine;if(t>=u-d&&t<=l+d&&A>=g-d&&A<=a+d){if(n!==null&&document.contains(n)&&o!==n&&!o.contains(n)&&!n.contains(o)&&A2(n,o)>0){let E=n,B=!1;for(;E&&!E.contains(o);){if(t2(E.getBoundingClientRect(),i)){B=!0;break}E=E.parentElement}if(B)return}Je.push(r)}})}function io(e,t){Pr.set(e,t)}function zs(){let e=!1,t=!1;Je.forEach(n=>{const{direction:r}=n;r==="horizontal"?e=!0:t=!0});let A=0;Pr.forEach(n=>{A|=n}),e&&t?ro("intersection",A):e?ro("horizontal",A):t?ro("vertical",A):$Q()}let ao=new AbortController;function ir(){ao.abort(),ao=new AbortController;const e={capture:!0,signal:ao.signal};nn.size&&(hA?(Je.length>0&&Wt.forEach((t,A)=>{const{body:n}=A;t>0&&(n.addEventListener("contextmenu",so,e),n.addEventListener("pointerleave",oo,e),n.addEventListener("pointermove",oo,e))}),window.addEventListener("pointerup",so,e),window.addEventListener("pointercancel",so,e)):Wt.forEach((t,A)=>{const{body:n}=A;t>0&&(n.addEventListener("pointerdown",a2,e),n.addEventListener("pointermove",oo,e))}))}function ar(e,t){nn.forEach(A=>{const{setResizeHandlerState:n}=A,r=Je.includes(A);n(e,r,t)})}function u2(){const[e,t]=w.useState(0);return w.useCallback(()=>t(A=>A+1),[])}function re(e,t){if(!e)throw console.error(t),Error(t)}function $t(e,t,A=Ls){return e.toFixed(A)===t.toFixed(A)?0:e>t?1:-1}function Ct(e,t,A=Ls){return $t(e,t,A)===0}function Le(e,t,A){return $t(e,t,A)===0}function l2(e,t,A){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=e[n],o=t[n];if(!Le(r,o,A))return!1}return!0}function dA({panelConstraints:e,panelIndex:t,size:A}){const n=e[t];re(n!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:r=0,collapsible:o,maxSize:s=100,minSize:i=0}=n;if($t(A,i)<0)if(o){const a=(r+i)/2;$t(A,a)<0?A=r:A=i}else A=i;return A=Math.min(s,A),A=parseFloat(A.toFixed(Ls)),A}function qA({delta:e,initialLayout:t,panelConstraints:A,pivotIndices:n,prevLayout:r,trigger:o}){if(Le(e,0))return t;const s=[...t],[i,a]=n;re(i!=null,"Invalid first pivot index"),re(a!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const g=e<0?a:i,d=A[g];re(d,`Panel constraints not found for index ${g}`);const{collapsedSize:f=0,collapsible:E,minSize:B=0}=d;if(E){const h=t[g];if(re(h!=null,`Previous layout not found for panel index ${g}`),Le(h,f)){const Q=B-h;$t(Q,Math.abs(e))>0&&(e=e<0?0-Q:Q)}}}{const g=e<0?i:a,d=A[g];re(d,`No panel constraints found for index ${g}`);const{collapsedSize:f=0,collapsible:E,minSize:B=0}=d;if(E){const h=t[g];if(re(h!=null,`Previous layout not found for panel index ${g}`),Le(h,B)){const Q=h-f;$t(Q,Math.abs(e))>0&&(e=e<0?0-Q:Q)}}}}{const g=e<0?1:-1;let d=e<0?a:i,f=0;for(;;){const B=t[d];re(B!=null,`Previous layout not found for panel index ${d}`);const Q=dA({panelConstraints:A,panelIndex:d,size:100})-B;if(f+=Q,d+=g,d<0||d>=A.length)break}const E=Math.min(Math.abs(e),Math.abs(f));e=e<0?0-E:E}{let d=e<0?i:a;for(;d>=0&&d<A.length;){const f=Math.abs(e)-Math.abs(u),E=t[d];re(E!=null,`Previous layout not found for panel index ${d}`);const B=E-f,h=dA({panelConstraints:A,panelIndex:d,size:B});if(!Le(E,h)&&(u+=E-h,s[d]=h,u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?d--:d++}}if(l2(r,s))return r;{const g=e<0?a:i,d=t[g];re(d!=null,`Previous layout not found for panel index ${g}`);const f=d+u,E=dA({panelConstraints:A,panelIndex:g,size:f});if(s[g]=E,!Le(E,f)){let B=f-E,Q=e<0?a:i;for(;Q>=0&&Q<A.length;){const m=s[Q];re(m!=null,`Previous layout not found for panel index ${Q}`);const x=m+B,b=dA({panelConstraints:A,panelIndex:Q,size:x});if(Le(m,b)||(B-=b-m,s[Q]=b),Le(B,0))break;e>0?Q--:Q++}}}const l=s.reduce((g,d)=>d+g,0);return Le(l,100)?s:r}function c2({layout:e,panelsArray:t,pivotIndices:A}){let n=0,r=100,o=0,s=0;const i=A[0];re(i!=null,"No pivot index found"),t.forEach((g,d)=>{const{constraints:f}=g,{maxSize:E=100,minSize:B=0}=f;d===i?(n=B,r=E):(o+=B,s+=E)});const a=Math.min(r,100-o),u=Math.max(n,100-s),l=e[i];return{valueMax:a,valueMin:u,valueNow:l}}function rn(e,t=document){return Array.from(t.querySelectorAll(`[${he.resizeHandleId}][data-panel-group-id="${e}"]`))}function cg(e,t,A=document){const r=rn(e,A).findIndex(o=>o.getAttribute(he.resizeHandleId)===t);return r??null}function gg(e,t,A){const n=cg(e,t,A);return n!=null?[n,n+1]:[-1,-1]}function dg(e,t=document){var A;if(t instanceof HTMLElement&&(t==null||(A=t.dataset)===null||A===void 0?void 0:A.panelGroupId)==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function Nr(e,t=document){const A=t.querySelector(`[${he.resizeHandleId}="${e}"]`);return A||null}function g2(e,t,A,n=document){var r,o,s,i;const a=Nr(t,n),u=rn(e,n),l=a?u.indexOf(a):-1,g=(r=(o=A[l])===null||o===void 0?void 0:o.id)!==null&&r!==void 0?r:null,d=(s=(i=A[l+1])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null;return[g,d]}function d2({committedValuesRef:e,eagerValuesRef:t,groupId:A,layout:n,panelDataArray:r,panelGroupElement:o,setLayout:s}){w.useRef({didWarnAboutMissingResizeHandle:!1}),Kt(()=>{if(!o)return;const i=rn(A,o);for(let a=0;a<r.length-1;a++){const{valueMax:u,valueMin:l,valueNow:g}=c2({layout:n,panelsArray:r,pivotIndices:[a,a+1]}),d=i[a];if(d!=null){const f=r[a];re(f,`No panel data found for index "${a}"`),d.setAttribute("aria-controls",f.id),d.setAttribute("aria-valuemax",""+Math.round(u)),d.setAttribute("aria-valuemin",""+Math.round(l)),d.setAttribute("aria-valuenow",g!=null?""+Math.round(g):"")}}return()=>{i.forEach((a,u)=>{a.removeAttribute("aria-controls"),a.removeAttribute("aria-valuemax"),a.removeAttribute("aria-valuemin"),a.removeAttribute("aria-valuenow")})}},[A,n,r,o]),w.useEffect(()=>{if(!o)return;const i=t.current;re(i,"Eager values not found");const{panelDataArray:a}=i,u=dg(A,o);re(u!=null,`No group found for id "${A}"`);const l=rn(A,o);re(l,`No resize handles found for group id "${A}"`);const g=l.map(d=>{const f=d.getAttribute(he.resizeHandleId);re(f,"Resize handle element has no handle id attribute");const[E,B]=g2(A,f,a,o);if(E==null||B==null)return()=>{};const h=Q=>{if(!Q.defaultPrevented)switch(Q.key){case"Enter":{Q.preventDefault();const m=a.findIndex(x=>x.id===E);if(m>=0){const x=a[m];re(x,`No panel data found for index ${m}`);const b=n[m],{collapsedSize:I=0,collapsible:v,minSize:p=0}=x.constraints;if(b!=null&&v){const D=qA({delta:Le(b,I)?p-I:I-b,initialLayout:n,panelConstraints:a.map(F=>F.constraints),pivotIndices:gg(A,f,o),prevLayout:n,trigger:"keyboard"});n!==D&&s(D)}}break}}};return d.addEventListener("keydown",h),()=>{d.removeEventListener("keydown",h)}});return()=>{g.forEach(d=>d())}},[o,e,t,A,n,r,s])}function ja(e,t){if(e.length!==t.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[A])return!1;return!0}function Cg(e,t){const A=e==="horizontal",{x:n,y:r}=Fr(t);return A?n:r}function C2(e,t,A,n,r){const o=A==="horizontal",s=Nr(t,r);re(s,`No resize handle element found for id "${t}"`);const i=s.getAttribute(he.groupId);re(i,"Resize handle element has no group id attribute");let{initialCursorPosition:a}=n;const u=Cg(A,e),l=dg(i,r);re(l,`No group element found for id "${i}"`);const g=l.getBoundingClientRect(),d=o?g.width:g.height;return(u-a)/d*100}function f2(e,t,A,n,r,o){if(Ag(e)){const s=A==="horizontal";let i=0;e.shiftKey?i=100:r!=null?i=r:i=10;let a=0;switch(e.key){case"ArrowDown":a=s?0:i;break;case"ArrowLeft":a=s?-i:0;break;case"ArrowRight":a=s?i:0;break;case"ArrowUp":a=s?0:-i;break;case"End":a=100;break;case"Home":a=-100;break}return a}else return n==null?0:C2(e,t,A,n,o)}function B2({panelDataArray:e}){const t=Array(e.length),A=e.map(o=>o.constraints);let n=0,r=100;for(let o=0;o<e.length;o++){const s=A[o];re(s,`Panel constraints not found for index ${o}`);const{defaultSize:i}=s;i!=null&&(n++,t[o]=i,r-=i)}for(let o=0;o<e.length;o++){const s=A[o];re(s,`Panel constraints not found for index ${o}`);const{defaultSize:i}=s;if(i!=null)continue;const a=e.length-n,u=r/a;n++,t[o]=u,r-=u}return t}function aA(e,t,A){t.forEach((n,r)=>{const o=e[r];re(o,`Panel data not found for index ${r}`);const{callbacks:s,constraints:i,id:a}=o,{collapsedSize:u=0,collapsible:l}=i,g=A[a];if(g==null||n!==g){A[a]=n;const{onCollapse:d,onExpand:f,onResize:E}=s;E&&E(n,g),l&&(d||f)&&(f&&(g==null||Ct(g,u))&&!Ct(n,u)&&f(),d&&(g==null||!Ct(g,u))&&Ct(n,u)&&d())}})}function Hn(e,t){if(e.length!==t.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!=t[A])return!1;return!0}function E2({defaultSize:e,dragState:t,layout:A,panelData:n,panelIndex:r,precision:o=3}){const s=A[r];let i;return s==null?i=e!=null?e.toPrecision(o):"1":n.length===1?i="1":i=s.toPrecision(o),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function I2(e,t=10){let A=null;return(...r)=>{A!==null&&clearTimeout(A),A=setTimeout(()=>{e(...r)},t)}}function ka(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,A)=>{localStorage.setItem(t,A)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function fg(e){return`react-resizable-panels:${e}`}function Bg(e){return e.map(t=>{const{constraints:A,id:n,idIsFromProps:r,order:o}=t;return r?n:o?`${o}:${JSON.stringify(A)}`:JSON.stringify(A)}).sort((t,A)=>t.localeCompare(A)).join(",")}function Eg(e,t){try{const A=fg(e),n=t.getItem(A);if(n){const r=JSON.parse(n);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Q2(e,t,A){var n,r;const o=(n=Eg(e,A))!==null&&n!==void 0?n:{},s=Bg(t);return(r=o[s])!==null&&r!==void 0?r:null}function h2(e,t,A,n,r){var o;const s=fg(e),i=Bg(t),a=(o=Eg(e,r))!==null&&o!==void 0?o:{};a[i]={expandToSizes:Object.fromEntries(A.entries()),layout:n};try{r.setItem(s,JSON.stringify(a))}catch(u){console.error(u)}}function Ra({layout:e,panelConstraints:t}){const A=[...e],n=A.reduce((o,s)=>o+s,0);if(A.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${A.map(o=>`${o}%`).join(", ")}`);if(!Le(n,100)&&A.length>0)for(let o=0;o<t.length;o++){const s=A[o];re(s!=null,`No layout data found for index ${o}`);const i=100/n*s;A[o]=i}let r=0;for(let o=0;o<t.length;o++){const s=A[o];re(s!=null,`No layout data found for index ${o}`);const i=dA({panelConstraints:t,panelIndex:o,size:s});s!=i&&(r+=s-i,A[o]=i)}if(!Le(r,0))for(let o=0;o<t.length;o++){const s=A[o];re(s!=null,`No layout data found for index ${o}`);const i=s+r,a=dA({panelConstraints:t,panelIndex:o,size:i});if(s!==a&&(r-=a-s,A[o]=a,Le(r,0)))break}return A}const m2=100,KA={getItem:e=>(ka(KA),KA.getItem(e)),setItem:(e,t)=>{ka(KA),KA.setItem(e,t)}},La={};function Ig({autoSaveId:e=null,children:t,className:A="",direction:n,forwardedRef:r,id:o=null,onLayout:s=null,keyboardResizeBy:i=null,storage:a=KA,style:u,tagName:l="div",...g}){const d=Ss(o),f=w.useRef(null),[E,B]=w.useState(null),[h,Q]=w.useState([]),m=u2(),x=w.useRef({}),b=w.useRef(new Map),I=w.useRef(0),v=w.useRef({autoSaveId:e,direction:n,dragState:E,id:d,keyboardResizeBy:i,onLayout:s,storage:a}),p=w.useRef({layout:h,panelDataArray:[],panelDataArrayChanged:!1});w.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),w.useImperativeHandle(r,()=>({getId:()=>v.current.id,getLayout:()=>{const{layout:P}=p.current;return P},setLayout:P=>{const{onLayout:H}=v.current,{layout:G,panelDataArray:Y}=p.current,R=Ra({layout:P,panelConstraints:Y.map(W=>W.constraints)});ja(G,R)||(Q(R),p.current.layout=R,H&&H(R),aA(Y,R,x.current))}}),[]),Kt(()=>{v.current.autoSaveId=e,v.current.direction=n,v.current.dragState=E,v.current.id=d,v.current.onLayout=s,v.current.storage=a}),d2({committedValuesRef:v,eagerValuesRef:p,groupId:d,layout:h,panelDataArray:p.current.panelDataArray,setLayout:Q,panelGroupElement:f.current}),w.useEffect(()=>{const{panelDataArray:P}=p.current;if(e){if(h.length===0||h.length!==P.length)return;let H=La[e];H==null&&(H=I2(h2,m2),La[e]=H);const G=[...P],Y=new Map(b.current);H(e,G,Y,h,a)}},[e,h,a]),w.useEffect(()=>{});const D=w.useCallback(P=>{const{onLayout:H}=v.current,{layout:G,panelDataArray:Y}=p.current;if(P.constraints.collapsible){const R=Y.map(le=>le.constraints),{collapsedSize:W=0,panelSize:J,pivotIndices:ie}=Vt(Y,P,G);if(re(J!=null,`Panel size not found for panel "${P.id}"`),!Ct(J,W)){b.current.set(P.id,J);const ge=gA(Y,P)===Y.length-1?J-W:W-J,ae=qA({delta:ge,initialLayout:G,panelConstraints:R,pivotIndices:ie,prevLayout:G,trigger:"imperative-api"});Hn(G,ae)||(Q(ae),p.current.layout=ae,H&&H(ae),aA(Y,ae,x.current))}}},[]),F=w.useCallback((P,H)=>{const{onLayout:G}=v.current,{layout:Y,panelDataArray:R}=p.current;if(P.constraints.collapsible){const W=R.map(q=>q.constraints),{collapsedSize:J=0,panelSize:ie=0,minSize:le=0,pivotIndices:ge}=Vt(R,P,Y),ae=H??le;if(Ct(ie,J)){const q=b.current.get(P.id),Pe=q!=null&&q>=ae?q:ae,ct=gA(R,P)===R.length-1?ie-Pe:Pe-ie,De=qA({delta:ct,initialLayout:Y,panelConstraints:W,pivotIndices:ge,prevLayout:Y,trigger:"imperative-api"});Hn(Y,De)||(Q(De),p.current.layout=De,G&&G(De),aA(R,De,x.current))}}},[]),j=w.useCallback(P=>{const{layout:H,panelDataArray:G}=p.current,{panelSize:Y}=Vt(G,P,H);return re(Y!=null,`Panel size not found for panel "${P.id}"`),Y},[]),S=w.useCallback((P,H)=>{const{panelDataArray:G}=p.current,Y=gA(G,P);return E2({defaultSize:H,dragState:E,layout:h,panelData:G,panelIndex:Y})},[E,h]),O=w.useCallback(P=>{const{layout:H,panelDataArray:G}=p.current,{collapsedSize:Y=0,collapsible:R,panelSize:W}=Vt(G,P,H);return re(W!=null,`Panel size not found for panel "${P.id}"`),R===!0&&Ct(W,Y)},[]),M=w.useCallback(P=>{const{layout:H,panelDataArray:G}=p.current,{collapsedSize:Y=0,collapsible:R,panelSize:W}=Vt(G,P,H);return re(W!=null,`Panel size not found for panel "${P.id}"`),!R||$t(W,Y)>0},[]),y=w.useCallback(P=>{const{panelDataArray:H}=p.current;H.push(P),H.sort((G,Y)=>{const R=G.order,W=Y.order;return R==null&&W==null?0:R==null?-1:W==null?1:R-W}),p.current.panelDataArrayChanged=!0,m()},[m]);Kt(()=>{if(p.current.panelDataArrayChanged){p.current.panelDataArrayChanged=!1;const{autoSaveId:P,onLayout:H,storage:G}=v.current,{layout:Y,panelDataArray:R}=p.current;let W=null;if(P){const ie=Q2(P,R,G);ie&&(b.current=new Map(Object.entries(ie.expandToSizes)),W=ie.layout)}W==null&&(W=B2({panelDataArray:R}));const J=Ra({layout:W,panelConstraints:R.map(ie=>ie.constraints)});ja(Y,J)||(Q(J),p.current.layout=J,H&&H(J),aA(R,J,x.current))}}),Kt(()=>{const P=p.current;return()=>{P.layout=[]}},[]);const k=w.useCallback(P=>{let H=!1;const G=f.current;return G&&window.getComputedStyle(G,null).getPropertyValue("direction")==="rtl"&&(H=!0),function(R){R.preventDefault();const W=f.current;if(!W)return()=>null;const{direction:J,dragState:ie,id:le,keyboardResizeBy:ge,onLayout:ae}=v.current,{layout:q,panelDataArray:Pe}=p.current,{initialLayout:je}=ie??{},ct=gg(le,P,W);let De=f2(R,P,J,ie,ge,W);const gt=J==="horizontal";gt&&H&&(De=-De);const ht=Pe.map(Lt=>Lt.constraints),mt=qA({delta:De,initialLayout:je??q,panelConstraints:ht,pivotIndices:ct,prevLayout:q,trigger:Ag(R)?"keyboard":"mouse-or-touch"}),Mn=!Hn(q,mt);(ng(R)||rg(R))&&I.current!=De&&(I.current=De,!Mn&&De!==0?gt?io(P,De<0?sg:ig):io(P,De<0?ag:ug):io(P,0)),Mn&&(Q(mt),p.current.layout=mt,ae&&ae(mt),aA(Pe,mt,x.current))}},[]),L=w.useCallback((P,H)=>{const{onLayout:G}=v.current,{layout:Y,panelDataArray:R}=p.current,W=R.map(q=>q.constraints),{panelSize:J,pivotIndices:ie}=Vt(R,P,Y);re(J!=null,`Panel size not found for panel "${P.id}"`);const ge=gA(R,P)===R.length-1?J-H:H-J,ae=qA({delta:ge,initialLayout:Y,panelConstraints:W,pivotIndices:ie,prevLayout:Y,trigger:"imperative-api"});Hn(Y,ae)||(Q(ae),p.current.layout=ae,G&&G(ae),aA(R,ae,x.current))},[]),z=w.useCallback((P,H)=>{const{layout:G,panelDataArray:Y}=p.current,{collapsedSize:R=0,collapsible:W}=H,{collapsedSize:J=0,collapsible:ie,maxSize:le=100,minSize:ge=0}=P.constraints,{panelSize:ae}=Vt(Y,P,G);ae!=null&&(W&&ie&&Ct(ae,R)?Ct(R,J)||L(P,J):ae<ge?L(P,ge):ae>le&&L(P,le))},[L]),T=w.useCallback((P,H)=>{const{direction:G}=v.current,{layout:Y}=p.current;if(!f.current)return;const R=Nr(P,f.current);re(R,`Drag handle element not found for id "${P}"`);const W=Cg(G,H);B({dragHandleId:P,dragHandleRect:R.getBoundingClientRect(),initialCursorPosition:W,initialLayout:Y})},[]),N=w.useCallback(()=>{B(null)},[]),V=w.useCallback(P=>{const{panelDataArray:H}=p.current,G=gA(H,P);G>=0&&(H.splice(G,1),delete x.current[P.id],p.current.panelDataArrayChanged=!0,m())},[m]),_=w.useMemo(()=>({collapsePanel:D,direction:n,dragState:E,expandPanel:F,getPanelSize:j,getPanelStyle:S,groupId:d,isPanelCollapsed:O,isPanelExpanded:M,reevaluatePanelConstraints:z,registerPanel:y,registerResizeHandle:k,resizePanel:L,startDragging:T,stopDragging:N,unregisterPanel:V,panelGroupElement:f.current}),[D,E,n,F,j,S,d,O,M,z,y,k,L,T,N,V]),te={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return w.createElement(yr.Provider,{value:_},w.createElement(l,{...g,children:t,className:A,id:o,ref:f,style:{...te,...u},[he.group]:"",[he.groupDirection]:n,[he.groupId]:d}))}const Qg=w.forwardRef((e,t)=>w.createElement(Ig,{...e,forwardedRef:t}));Ig.displayName="PanelGroup";Qg.displayName="forwardRef(PanelGroup)";function gA(e,t){return e.findIndex(A=>A===t||A.id===t.id)}function Vt(e,t,A){const n=gA(e,t),o=n===e.length-1?[n-1,n]:[n,n+1],s=A[n];return{...t.constraints,panelSize:s,pivotIndices:o}}function p2({disabled:e,handleId:t,resizeHandler:A,panelGroupElement:n}){w.useEffect(()=>{if(e||A==null||n==null)return;const r=Nr(t,n);if(r==null)return;const o=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),A(s);break}case"F6":{s.preventDefault();const i=r.getAttribute(he.groupId);re(i,`No group element found for id "${i}"`);const a=rn(i,n),u=cg(i,t,n);re(u!==null,`No resize element found for id "${t}"`);const l=s.shiftKey?u>0?u-1:a.length-1:u+1<a.length?u+1:0;a[l].focus();break}}};return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}},[n,e,t,A])}function hg({children:e=null,className:t="",disabled:A=!1,hitAreaMargins:n,id:r,onBlur:o,onClick:s,onDragging:i,onFocus:a,onPointerDown:u,onPointerUp:l,style:g={},tabIndex:d=0,tagName:f="div",...E}){var B,h;const Q=w.useRef(null),m=w.useRef({onClick:s,onDragging:i,onPointerDown:u,onPointerUp:l});w.useEffect(()=>{m.current.onClick=s,m.current.onDragging=i,m.current.onPointerDown=u,m.current.onPointerUp=l});const x=w.useContext(yr);if(x===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:b,groupId:I,registerResizeHandle:v,startDragging:p,stopDragging:D,panelGroupElement:F}=x,j=Ss(r),[S,O]=w.useState("inactive"),[M,y]=w.useState(!1),[k,L]=w.useState(null),z=w.useRef({state:S});Kt(()=>{z.current.state=S}),w.useEffect(()=>{if(A)L(null);else{const _=v(j);L(()=>_)}},[A,j,v]);const T=(B=n==null?void 0:n.coarse)!==null&&B!==void 0?B:15,N=(h=n==null?void 0:n.fine)!==null&&h!==void 0?h:5;w.useEffect(()=>{if(A||k==null)return;const _=Q.current;re(_,"Element ref not attached");let te=!1;return i2(j,_,b,{coarse:T,fine:N},(H,G,Y)=>{if(!G){O("inactive");return}switch(H){case"down":{O("drag"),te=!1,re(Y,'Expected event to be defined for "down" action'),p(j,Y);const{onDragging:R,onPointerDown:W}=m.current;R==null||R(!0),W==null||W();break}case"move":{const{state:R}=z.current;te=!0,R!=="drag"&&O("hover"),re(Y,'Expected event to be defined for "move" action'),k(Y);break}case"up":{O("hover"),D();const{onClick:R,onDragging:W,onPointerUp:J}=m.current;W==null||W(!1),J==null||J(),te||R==null||R();break}}})},[T,b,A,N,v,j,k,p,D]),p2({disabled:A,handleId:j,resizeHandler:k,panelGroupElement:F});const V={touchAction:"none",userSelect:"none"};return w.createElement(f,{...E,children:e,className:t,id:r,onBlur:()=>{y(!1),o==null||o()},onFocus:()=>{y(!0),a==null||a()},ref:Q,role:"separator",style:{...V,...g},tabIndex:d,[he.groupDirection]:b,[he.groupId]:I,[he.resizeHandle]:"",[he.resizeHandleActive]:S==="drag"?"pointer":M?"keyboard":void 0,[he.resizeHandleEnabled]:!A,[he.resizeHandleId]:j,[he.resizeHandleState]:S})}hg.displayName="PanelResizeHandle";function mg({className:e,...t}){return c.jsx(Qg,{"data-slot":"resizable-panel-group",className:$("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}function ur({...e}){return c.jsx(tg,{"data-slot":"resizable-panel",...e})}function pg({withHandle:e,className:t,...A}){return c.jsx(hg,{"data-slot":"resizable-handle",className:$("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...A,children:e&&c.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:c.jsx(XQ,{className:"size-2.5"})})})}const hn=()=>{const[e,t]=w.useState(!1);return w.useEffect(()=>{const A=()=>{t(window.innerWidth<768)};return A(),window.addEventListener("resize",A),()=>{window.removeEventListener("resize",A)}},[]),e},v2=({items:e,isDefaultOpen:t=!1,isStandalone:A=!1,resizableContent:n,title:r="Moments",feddbackTitle:o,feedbackHelpfullButtonTitle:s,feedbackNotHelpfullButtonTitle:i,feedbackCommentPlaceholder:a,feedbackSubmitText:u,feedbackThankYouMessage:l,feedbackCancelButtonTitle:g,feedbackSubmitButtonHoverTitle:d})=>{const[f,E]=w.useState(t),B=w.useRef(null),h=w.useRef(null),Q=w.useRef([]),[m,x]=w.useState([]),[b,I]=w.useState(!1),[v,p]=w.useState(null),D=hn(),F=w.useMemo(()=>[...e].reverse(),[e]);w.useEffect(()=>{Q.current=Array(F.length).fill(null)},[F.length]);const j=()=>{if(!h.current)return;const y=h.current.getBoundingClientRect(),k=[];Q.current.forEach((L,z)=>{if(!L)return;const T=L.getBoundingClientRect();T.top<y.bottom&&T.bottom>y.top&&k.push(z)}),x(k)};w.useEffect(()=>{if(t&&!b){const y=setTimeout(()=>{j(),I(!0)},200);return()=>clearTimeout(y)}},[b,t]),w.useEffect(()=>{const y=h.current;if(y&&f){const k=setTimeout(()=>{j()},100);return y.addEventListener("scroll",j),()=>{clearTimeout(k),y.removeEventListener("scroll",j)}}},[f]),w.useEffect(()=>{const y=()=>{f&&j()};return window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)},[f]);const S=y=>{if(v===y||D||m.length<=5||!m.includes(y))return 1;const L=[...m].sort((T,N)=>T-N).indexOf(y);return L<5?1:Math.max(0,.6-(L-5)*.1)},O=y=>{switch(y.type){case"task-done":return c.jsx(qc,{id:y.id,title:r,message:y.message,timestamp:y.timestamp,completedTaskCount:y.completedTaskCount??0,taskCount:y.taskCount??0});case"good-job":return c.jsx(Xc,{id:y.id,title:r,message:y.message,timestamp:y.timestamp});case"legal-thread":return c.jsx(Zc,{id:y.id,title:r,message:y.message,timestamp:y.timestamp,onClickAskGenAI:()=>{var k;return(k=y.onClickAskGenAI)==null?void 0:k.call(y)},onClickAskManager:()=>{var k;return(k=y.onClickAskManager)==null?void 0:k.call(y)}});case"unhappy-customer":return c.jsx(Kc,{id:y.id,title:r,message:y.message,timestamp:y.timestamp});case"genai-support":return c.jsx(Wc,{id:y.id,title:r,message:y.message,timestamp:y.timestamp});case"default":return c.jsx(Jc,{id:y.id,title:y.title??y.type,message:y.message,timestamp:y.timestamp,icon:y.icon,scenarioId:y.scenarioId,showFeedbackArea:y.showFeedbackArea,feedbackSubmitButtonHoverTitle:d??"",feedbackCancelButtonTitle:g??"",feddbackTitle:o,feedbackHelpfullButtonTitle:s,feedbackNotHelpfullButtonTitle:i,feedbackCommentPlaceholder:a,feedbackSubmitText:u,feedbackThankYouMessage:l,matchId:(y==null?void 0:y.matchId)??"",sendFeedback:y==null?void 0:y.sendFeedback,showThankYou:y==null?void 0:y.showThankYou,feedbackLoading:y==null?void 0:y.feedbackLoading})}},M=(y,k)=>c.jsx("div",{ref:L=>{Q.current[k]=L},onMouseEnter:()=>p(k),onMouseLeave:()=>p(null),children:y});return c.jsx("div",{ref:B,className:$("relative",!A&&!n?"max-h-[500px]":"h-full"),children:!A&&n?c.jsxs(mg,{direction:"vertical",className:"h-full md:pb-2",children:[c.jsx(ur,{defaultSize:D?60:35,children:e.length==1?c.jsxs("div",{className:"w-full flex flex-col gap-2 md:px-6 md:py-4 px-3 py-3",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center justify-start h-10",children:[c.jsx("span",{className:"text-lg font-medium text-foreground",children:r}),c.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),F.map((y,k)=>c.jsx("div",{children:M(O(y),k)},`item-${y.id||k}`))]}):c.jsx("div",{className:"h-full flex flex-col md:px-6 md:py-4 px-3 py-3",children:c.jsxs(Vo,{defaultOpen:t,open:f,onOpenChange:y=>{E(y),y&&setTimeout(j,100)},className:"h-full flex flex-col",children:[c.jsxs(Go,{className:"w-full flex flex-row items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[c.jsx("span",{className:"text-lg font-medium text-foreground",children:r}),c.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),c.jsx("div",{className:"h-10 w-10 p-2 flex items-center justify-center",children:c.jsx(U,{name:"ChevronDown",width:16,height:9,className:"text-foreground"})})]}),!f&&F.length>0&&c.jsxs("div",{className:"w-full relative flex items-center justify-center rounded-xl md:rounded-3xl",children:[c.jsx("div",{className:"z-[3] w-full shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-xl md:rounded-3xl",ref:y=>{Q.current[0]=y},children:O(F[0])}),!D&&e.length>1&&c.jsx("div",{className:"z-[2] absolute -bottom-2 w-[calc(100%-16px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"}),!D&&e.length>2&&c.jsx("div",{className:"z-[1] absolute -bottom-4 w-[calc(100%-32px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"})]}),c.jsx(Yo,{className:"flex-1 overflow-y-auto flex flex-col gap-2 max-h-[calc(100vh-68px)]",ref:h,children:F.map((y,k)=>c.jsx("div",{style:{opacity:S(k),transition:"opacity 0.2s ease-in-out"},children:M(O(y),k)},`item-${y.id||k}`))})]})})},`panel-1-${D}`),c.jsx(pg,{}),c.jsx(ur,{defaultSize:D?40:65,children:c.jsx("div",{className:"h-full overflow-y-auto no-scrollbar",children:n})},`panel-2-${D}`)]},`panel-group-${D}`):c.jsx(c.Fragment,{children:e.length==1?c.jsxs("div",{className:"w-full flex flex-col gap-2 px-6 py-4",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center justify-start h-10",children:[c.jsx("span",{className:"text-lg font-medium text-foreground",children:r}),c.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),F.map((y,k)=>c.jsx("div",{children:M(O(y),k)},`item-${y.id||k}`))]}):c.jsx("div",{className:"h-full flex flex-col px-6 py-4",children:c.jsxs(Vo,{defaultOpen:t,open:f,onOpenChange:y=>{E(y),y&&setTimeout(j,100)},className:"h-full flex flex-col",children:[c.jsxs(Go,{className:"w-full flex flex-row items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[c.jsx("span",{className:"text-lg font-medium text-foreground",children:r}),c.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),c.jsx("div",{className:"h-10 w-10 p-2 flex items-center justify-center",children:f?c.jsx(U,{name:"ChevronUp",width:24,height:24,className:"text-foreground"}):c.jsx(U,{name:"ChevronDown",width:24,height:24,className:"text-foreground"})})]}),!f&&F.length>0&&c.jsxs("div",{className:"w-full relative flex items-center justify-center rounded-xl md:rounded-3xl",children:[c.jsx("div",{className:"z-[3] w-full shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-xl md:rounded-3xl",ref:y=>{Q.current[0]=y},children:O(F[0])}),!D&&e.length>1&&c.jsx("div",{className:"z-[2] absolute -bottom-2 w-[calc(100%-16px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"}),!D&&e.length>2&&c.jsx("div",{className:"z-[1] absolute -bottom-4 w-[calc(100%-32px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"})]}),c.jsx(Yo,{className:"flex-1 overflow-y-auto flex flex-col gap-2 max-h-[calc(100vh-68px)]",ref:h,children:F.map((y,k)=>c.jsx("div",{style:{opacity:S(k),transition:"opacity 0.2s ease-in-out"},children:M(O(y),k)},`item-${y.id||k}`))})]})})})})};function w2({className:e,...t}){return c.jsx("textarea",{"data-slot":"textarea",className:$("border-input text-sm placeholder:text-muted-foreground focus-visible:border-primary focus-visible:border-2 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...t})}const Hs=({value:e,onChange:t,onSendClick:A,placeholder:n="Type something...",...r})=>{const o=w.useRef(null);w.useEffect(()=>{const i=o.current;if(!i)return;i.style.height="0px";const u=24*5,g=Math.min(Math.max(i.scrollHeight,52),u);i.style.height=`${g}px`,i.style.overflowY=i.scrollHeight>u?"auto":"hidden"},[e]);const s=i=>{i.key==="Enter"&&(i.preventDefault(),A())};return c.jsxs("div",{className:"relative w-full",children:[c.jsx(w2,{ref:o,value:e,onChange:t,onKeyDown:s,className:"!py-4 resize-none box-border !pl-4 min-h-[52px] h-auto !pr-[71px] !w-full",placeholder:n,...r}),c.jsx(Qe,{size:"sm",className:"bg-primary absolute top-2 right-2 px-[15.5px] rounded-full",onClick:A,children:c.jsx(U,{name:"Send",width:16,height:16,className:"text-background"})})]})},x2=({isShown:e,personList:t,onClick:A})=>e?c.jsx("div",{className:"flex flex-col items-center justify-center gap-3",children:t.map(n=>c.jsxs("div",{className:`w-fit cursor-pointer h-fit relative${n.isDisable?" opacity-50":""}`,onClick:()=>A(n.id),children:[c.jsx(qt,{type:"secondary",fullName:n.fullName}),n.isActive&&c.jsx("div",{className:"w-2.5 h-2.5 bg-success rounded-full absolute bottom-0 right-0"})]},n.id))}):null,b2=({suggestion:e={items:[],messages:[]},messages:t,input:A,showInput:n=!0,onInputChange:r,onSend:o,onSuggestionClick:s,onSearchDocClick:i,placeholder:a="Type something...",searchDocText:u="Search in Doc",searchDocLoadingText:l="Searching...",showSearchDocButton:g=!0})=>{var h;const[d,f]=w.useState(!1),E=()=>{A.trim()&&(o(A.trim()),r(""))},B=async()=>{if(i){f(!0);try{await i()}finally{f(!1)}}};return c.jsxs("div",{className:"flex flex-col h-full w-full bg-background gap-6 rounded-b-xl rounded-t-4xl",children:[c.jsx("div",{className:"flex-1 overflow-y-auto",children:c.jsx("div",{className:"flex flex-col gap-2 ",children:t==null?void 0:t.map(Q=>w.createElement(xA,{...Q,key:Q.id}))})}),e&&c.jsxs("div",{className:"flex flex-col gap-2.5",children:[e.messages&&e.messages.length>0&&((h=e.messages)==null?void 0:h.map(Q=>c.jsx("div",{className:"border-t pt-4",children:c.jsx(xA,{...Q})},Q.id))),e.items&&e.items.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2 items-start justify-end",children:e.items.map((Q,m)=>c.jsx(Qe,{className:"rounded-lg text-primary text-sm font-medium px-3 py-1.5 bg-secondary hover:bg-secondary/70",onClick:()=>s==null?void 0:s(Q),children:Q},m))})]}),c.jsxs("div",{className:"border-t p-4 flex flex-col gap-2",children:[g&&c.jsx(Qe,{className:"flex rounded-lg text-primary py-1 px-3 bg-secondary hover:bg-secondary/70 items-center justify-center",onClick:B,disabled:d,children:d?c.jsxs(c.Fragment,{children:[c.jsx(qQ,{className:"animate-spin mr-2 h-4 w-4"}),l]}):u}),n&&c.jsx(Hs,{value:A,onChange:Q=>r(Q.target.value),onSendClick:E,placeholder:a})]})]})},D2=({suggestion:e={items:[],messages:[]},messages:t,input:A,showInput:n=!0,onInputChange:r,onSend:o,onSuggestionClick:s,placeholder:i="Type something..."})=>{var l;const a=g=>{s==null||s(g)},u=()=>{A.trim()&&(o(A.trim()),r(""))};return c.jsxs("div",{className:"flex flex-col h-full w-full bg-background gap-6 rounded-b-xl rounded-t-4xl",children:[c.jsx("div",{className:"flex-1 overflow-y-auto",children:c.jsx("div",{className:"flex flex-col gap-2.5",children:t==null?void 0:t.map(g=>w.createElement(xA,{...g,key:g.id}))})}),e&&c.jsxs("div",{className:"flex flex-col gap-2.5 ",children:[e.messages&&e.messages.length>0&&((l=e.messages)==null?void 0:l.map(g=>c.jsx("div",{className:"border-t pt-4",children:c.jsx(xA,{...g})},g.id))),e.items&&e.items.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2 items-start justify-end",children:e.items.map((g,d)=>c.jsx(Qe,{className:"rounded-lg whitespace-pre-wrap text-left text-primary text-sm font-medium px-3 py-1.8 bg-secondary hover:bg-secondary/70",onClick:()=>a(g),children:g},d))})]}),n&&c.jsx("div",{className:"border-t p-4",children:c.jsx(Hs,{value:A,onChange:g=>r(g.target.value),onSendClick:u,placeholder:i})})]})},Vs=w.createContext({});function Gs(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ys=typeof window<"u",vg=Ys?w.useLayoutEffect:w.useEffect,Mr=w.createContext(null);function Us(e,t){e.indexOf(t)===-1&&e.push(t)}function Ws(e,t){const A=e.indexOf(t);A>-1&&e.splice(A,1)}const ft=(e,t,A)=>A>t?t:A<e?e:A;function Wo(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let MA=()=>{},Bt=()=>{};process.env.NODE_ENV!=="production"&&(MA=(e,t,A)=>{!e&&typeof console<"u"&&console.warn(Wo(t,A))},Bt=(e,t,A)=>{if(!e)throw new Error(Wo(t,A))});const Et={},wg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function xg(e){return typeof e=="object"&&e!==null}const bg=e=>/^0[^.\s]+$/u.test(e);function Xs(e){let t;return()=>(t===void 0&&(t=e()),t)}const We=e=>e,y2=(e,t)=>A=>t(e(A)),mn=(...e)=>e.reduce(y2),on=(e,t,A)=>{const n=t-e;return n===0?1:(A-e)/n};class Zs{constructor(){this.subscriptions=[]}add(t){return Us(this.subscriptions,t),()=>Ws(this.subscriptions,t)}notify(t,A,n){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,A,n);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(t,A,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _e=e=>e*1e3,Ue=e=>e/1e3;function Dg(e,t){return t?e*(1e3/t):0}const Sa=new Set;function qs(e,t,A){e||Sa.has(t)||(console.warn(Wo(t,A)),Sa.add(t))}const yg=(e,t,A)=>(((1-3*A+3*t)*e+(3*A-6*t))*e+3*t)*e,F2=1e-7,P2=12;function N2(e,t,A,n,r){let o,s,i=0;do s=t+(A-t)/2,o=yg(s,n,r)-e,o>0?A=s:t=s;while(Math.abs(o)>F2&&++i<P2);return s}function pn(e,t,A,n){if(e===t&&A===n)return We;const r=o=>N2(o,0,1,e,A);return o=>o===0||o===1?o:yg(r(o),t,n)}const Fg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pg=e=>t=>1-e(1-t),Ng=pn(.33,1.53,.69,.99),Ks=Pg(Ng),Mg=Fg(Ks),Tg=e=>(e*=2)<1?.5*Ks(e):.5*(2-Math.pow(2,-10*(e-1))),Js=e=>1-Math.sin(Math.acos(e)),jg=Pg(Js),kg=Fg(Js),M2=pn(.42,0,1,1),T2=pn(0,0,.58,1),Rg=pn(.42,0,.58,1),j2=e=>Array.isArray(e)&&typeof e[0]!="number",Lg=e=>Array.isArray(e)&&typeof e[0]=="number",Oa={linear:We,easeIn:M2,easeInOut:Rg,easeOut:T2,circIn:Js,circInOut:kg,circOut:jg,backIn:Ks,backInOut:Mg,backOut:Ng,anticipate:Tg},k2=e=>typeof e=="string",za=e=>{if(Lg(e)){Bt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,A,n,r]=e;return pn(t,A,n,r)}else if(k2(e))return Bt(Oa[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Oa[e];return e},Vn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function R2(e,t){let A=new Set,n=new Set,r=!1,o=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function a(l){s.has(l)&&(u.schedule(l),e()),l(i)}const u={schedule:(l,g=!1,d=!1)=>{const E=d&&r?A:n;return g&&s.add(l),E.has(l)||E.add(l),l},cancel:l=>{n.delete(l),s.delete(l)},process:l=>{if(i=l,r){o=!0;return}r=!0,[A,n]=[n,A],A.forEach(a),A.clear(),r=!1,o&&(o=!1,u.process(l))}};return u}const L2=40;function Sg(e,t){let A=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>A=!0,s=Vn.reduce((x,b)=>(x[b]=R2(o),x),{}),{setup:i,read:a,resolveKeyframes:u,preUpdate:l,update:g,preRender:d,render:f,postRender:E}=s,B=()=>{const x=Et.useManualTiming?r.timestamp:performance.now();A=!1,Et.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(x-r.timestamp,L2),1)),r.timestamp=x,r.isProcessing=!0,i.process(r),a.process(r),u.process(r),l.process(r),g.process(r),d.process(r),f.process(r),E.process(r),r.isProcessing=!1,A&&t&&(n=!1,e(B))},h=()=>{A=!0,n=!0,r.isProcessing||e(B)};return{schedule:Vn.reduce((x,b)=>{const I=s[b];return x[b]=(v,p=!1,D=!1)=>(A||h(),I.schedule(v,p,D)),x},{}),cancel:x=>{for(let b=0;b<Vn.length;b++)s[Vn[b]].cancel(x)},state:r,steps:s}}const{schedule:fe,cancel:Ft,state:ye,steps:uo}=Sg(typeof requestAnimationFrame<"u"?requestAnimationFrame:We,!0);let er;function S2(){er=void 0}const Re={now:()=>(er===void 0&&Re.set(ye.isProcessing||Et.useManualTiming?ye.timestamp:performance.now()),er),set:e=>{er=e,queueMicrotask(S2)}},Og=e=>t=>typeof t=="string"&&t.startsWith(e),_s=Og("--"),O2=Og("var(--"),$s=e=>O2(e)?z2.test(e.split("/*")[0].trim()):!1,z2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,TA={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},sn={...TA,transform:e=>ft(0,1,e)},Gn={...TA,default:1},$A=e=>Math.round(e*1e5)/1e5,ei=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function H2(e){return e==null}const V2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ti=(e,t)=>A=>!!(typeof A=="string"&&V2.test(A)&&A.startsWith(e)||t&&!H2(A)&&Object.prototype.hasOwnProperty.call(A,t)),zg=(e,t,A)=>n=>{if(typeof n!="string")return n;const[r,o,s,i]=n.match(ei);return{[e]:parseFloat(r),[t]:parseFloat(o),[A]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}},G2=e=>ft(0,255,e),lo={...TA,transform:e=>Math.round(G2(e))},Xt={test:ti("rgb","red"),parse:zg("red","green","blue"),transform:({red:e,green:t,blue:A,alpha:n=1})=>"rgba("+lo.transform(e)+", "+lo.transform(t)+", "+lo.transform(A)+", "+$A(sn.transform(n))+")"};function Y2(e){let t="",A="",n="",r="";return e.length>5?(t=e.substring(1,3),A=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),A=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,A+=A,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(A,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}}const Xo={test:ti("#"),parse:Y2,transform:Xt.transform},vn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bt=vn("deg"),st=vn("%"),ee=vn("px"),U2=vn("vh"),W2=vn("vw"),Ha={...st,parse:e=>st.parse(e)/100,transform:e=>st.transform(e*100)},CA={test:ti("hsl","hue"),parse:zg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:A,alpha:n=1})=>"hsla("+Math.round(e)+", "+st.transform($A(t))+", "+st.transform($A(A))+", "+$A(sn.transform(n))+")"},we={test:e=>Xt.test(e)||Xo.test(e)||CA.test(e),parse:e=>Xt.test(e)?Xt.parse(e):CA.test(e)?CA.parse(e):Xo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Xt.transform(e):CA.transform(e),getAnimatableNone:e=>{const t=we.parse(e);return t.alpha=0,we.transform(t)}},X2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Z2(e){var t,A;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ei))==null?void 0:t.length)||0)+(((A=e.match(X2))==null?void 0:A.length)||0)>0}const Hg="number",Vg="color",q2="var",K2="var(",Va="${}",J2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function an(e){const t=e.toString(),A=[],n={color:[],number:[],var:[]},r=[];let o=0;const i=t.replace(J2,a=>(we.test(a)?(n.color.push(o),r.push(Vg),A.push(we.parse(a))):a.startsWith(K2)?(n.var.push(o),r.push(q2),A.push(a)):(n.number.push(o),r.push(Hg),A.push(parseFloat(a))),++o,Va)).split(Va);return{values:A,split:i,indexes:n,types:r}}function Gg(e){return an(e).values}function Yg(e){const{split:t,types:A}=an(e),n=t.length;return r=>{let o="";for(let s=0;s<n;s++)if(o+=t[s],r[s]!==void 0){const i=A[s];i===Hg?o+=$A(r[s]):i===Vg?o+=we.transform(r[s]):o+=r[s]}return o}}const _2=e=>typeof e=="number"?0:we.test(e)?we.getAnimatableNone(e):e;function $2(e){const t=Gg(e);return Yg(e)(t.map(_2))}const Pt={test:Z2,parse:Gg,createTransformer:Yg,getAnimatableNone:$2};function co(e,t,A){return A<0&&(A+=1),A>1&&(A-=1),A<1/6?e+(t-e)*6*A:A<1/2?t:A<2/3?e+(t-e)*(2/3-A)*6:e}function eh({hue:e,saturation:t,lightness:A,alpha:n}){e/=360,t/=100,A/=100;let r=0,o=0,s=0;if(!t)r=o=s=A;else{const i=A<.5?A*(1+t):A+t-A*t,a=2*A-i;r=co(a,i,e+1/3),o=co(a,i,e),s=co(a,i,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}function lr(e,t){return A=>A>0?t:e}const Ie=(e,t,A)=>e+(t-e)*A,go=(e,t,A)=>{const n=e*e,r=A*(t*t-n)+n;return r<0?0:Math.sqrt(r)},th=[Xo,Xt,CA],Ah=e=>th.find(t=>t.test(e));function Ga(e){const t=Ah(e);if(MA(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let A=t.parse(e);return t===CA&&(A=eh(A)),A}const Ya=(e,t)=>{const A=Ga(e),n=Ga(t);if(!A||!n)return lr(e,t);const r={...A};return o=>(r.red=go(A.red,n.red,o),r.green=go(A.green,n.green,o),r.blue=go(A.blue,n.blue,o),r.alpha=Ie(A.alpha,n.alpha,o),Xt.transform(r))},Zo=new Set(["none","hidden"]);function nh(e,t){return Zo.has(e)?A=>A<=0?e:t:A=>A>=1?t:e}function rh(e,t){return A=>Ie(e,t,A)}function Ai(e){return typeof e=="number"?rh:typeof e=="string"?$s(e)?lr:we.test(e)?Ya:ih:Array.isArray(e)?Ug:typeof e=="object"?we.test(e)?Ya:oh:lr}function Ug(e,t){const A=[...e],n=A.length,r=e.map((o,s)=>Ai(o)(o,t[s]));return o=>{for(let s=0;s<n;s++)A[s]=r[s](o);return A}}function oh(e,t){const A={...e,...t},n={};for(const r in A)e[r]!==void 0&&t[r]!==void 0&&(n[r]=Ai(e[r])(e[r],t[r]));return r=>{for(const o in n)A[o]=n[o](r);return A}}function sh(e,t){const A=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const o=t.types[r],s=e.indexes[o][n[o]],i=e.values[s]??0;A[r]=i,n[o]++}return A}const ih=(e,t)=>{const A=Pt.createTransformer(t),n=an(e),r=an(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?Zo.has(e)&&!r.values.length||Zo.has(t)&&!n.values.length?nh(e,t):mn(Ug(sh(n,r),r.values),A):(MA(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),lr(e,t))};function Wg(e,t,A){return typeof e=="number"&&typeof t=="number"&&typeof A=="number"?Ie(e,t,A):Ai(e)(e,t)}const ah=e=>{const t=({timestamp:A})=>e(A);return{start:(A=!0)=>fe.update(t,A),stop:()=>Ft(t),now:()=>ye.isProcessing?ye.timestamp:Re.now()}},Xg=(e,t,A=10)=>{let n="";const r=Math.max(Math.round(t/A),2);for(let o=0;o<r;o++)n+=Math.round(e(o/(r-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},cr=2e4;function ni(e){let t=0;const A=50;let n=e.next(t);for(;!n.done&&t<cr;)t+=A,n=e.next(t);return t>=cr?1/0:t}function uh(e,t=100,A){const n=A({...e,keyframes:[0,t]}),r=Math.min(ni(n),cr);return{type:"keyframes",ease:o=>n.next(r*o).value/t,duration:Ue(r)}}const lh=5;function Zg(e,t,A){const n=Math.max(t-lh,0);return Dg(A-e(n),t-n)}const Ee={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Co=.001;function ch({duration:e=Ee.duration,bounce:t=Ee.bounce,velocity:A=Ee.velocity,mass:n=Ee.mass}){let r,o;MA(e<=_e(Ee.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=ft(Ee.minDamping,Ee.maxDamping,s),e=ft(Ee.minDuration,Ee.maxDuration,Ue(e)),s<1?(r=u=>{const l=u*s,g=l*e,d=l-A,f=qo(u,s),E=Math.exp(-g);return Co-d/f*E},o=u=>{const g=u*s*e,d=g*A+A,f=Math.pow(s,2)*Math.pow(u,2)*e,E=Math.exp(-g),B=qo(Math.pow(u,2),s);return(-r(u)+Co>0?-1:1)*((d-f)*E)/B}):(r=u=>{const l=Math.exp(-u*e),g=(u-A)*e+1;return-Co+l*g},o=u=>{const l=Math.exp(-u*e),g=(A-u)*(e*e);return l*g});const i=5/e,a=dh(r,o,i);if(e=_e(e),isNaN(a))return{stiffness:Ee.stiffness,damping:Ee.damping,duration:e};{const u=Math.pow(a,2)*n;return{stiffness:u,damping:s*2*Math.sqrt(n*u),duration:e}}}const gh=12;function dh(e,t,A){let n=A;for(let r=1;r<gh;r++)n=n-e(n)/t(n);return n}function qo(e,t){return e*Math.sqrt(1-t*t)}const Ch=["duration","bounce"],fh=["stiffness","damping","mass"];function Ua(e,t){return t.some(A=>e[A]!==void 0)}function Bh(e){let t={velocity:Ee.velocity,stiffness:Ee.stiffness,damping:Ee.damping,mass:Ee.mass,isResolvedFromDuration:!1,...e};if(!Ua(e,fh)&&Ua(e,Ch))if(e.visualDuration){const A=e.visualDuration,n=2*Math.PI/(A*1.2),r=n*n,o=2*ft(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Ee.mass,stiffness:r,damping:o}}else{const A=ch(e);t={...t,...A,mass:Ee.mass},t.isResolvedFromDuration=!0}return t}function gr(e=Ee.visualDuration,t=Ee.bounce){const A=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:r}=A;const o=A.keyframes[0],s=A.keyframes[A.keyframes.length-1],i={done:!1,value:o},{stiffness:a,damping:u,mass:l,duration:g,velocity:d,isResolvedFromDuration:f}=Bh({...A,velocity:-Ue(A.velocity||0)}),E=d||0,B=u/(2*Math.sqrt(a*l)),h=s-o,Q=Ue(Math.sqrt(a/l)),m=Math.abs(h)<5;n||(n=m?Ee.restSpeed.granular:Ee.restSpeed.default),r||(r=m?Ee.restDelta.granular:Ee.restDelta.default);let x;if(B<1){const I=qo(Q,B);x=v=>{const p=Math.exp(-B*Q*v);return s-p*((E+B*Q*h)/I*Math.sin(I*v)+h*Math.cos(I*v))}}else if(B===1)x=I=>s-Math.exp(-Q*I)*(h+(E+Q*h)*I);else{const I=Q*Math.sqrt(B*B-1);x=v=>{const p=Math.exp(-B*Q*v),D=Math.min(I*v,300);return s-p*((E+B*Q*h)*Math.sinh(D)+I*h*Math.cosh(D))/I}}const b={calculatedDuration:f&&g||null,next:I=>{const v=x(I);if(f)i.done=I>=g;else{let p=I===0?E:0;B<1&&(p=I===0?_e(E):Zg(x,I,v));const D=Math.abs(p)<=n,F=Math.abs(s-v)<=r;i.done=D&&F}return i.value=i.done?s:v,i},toString:()=>{const I=Math.min(ni(b),cr),v=Xg(p=>b.next(I*p).value,I,30);return I+"ms "+v},toTransition:()=>{}};return b}gr.applyToOptions=e=>{const t=uh(e,100,gr);return e.ease=t.ease,e.duration=_e(t.duration),e.type="keyframes",e};function Ko({keyframes:e,velocity:t=0,power:A=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:i,max:a,restDelta:u=.5,restSpeed:l}){const g=e[0],d={done:!1,value:g},f=D=>i!==void 0&&D<i||a!==void 0&&D>a,E=D=>i===void 0?a:a===void 0||Math.abs(i-D)<Math.abs(a-D)?i:a;let B=A*t;const h=g+B,Q=s===void 0?h:s(h);Q!==h&&(B=Q-g);const m=D=>-B*Math.exp(-D/n),x=D=>Q+m(D),b=D=>{const F=m(D),j=x(D);d.done=Math.abs(F)<=u,d.value=d.done?Q:j};let I,v;const p=D=>{f(d.value)&&(I=D,v=gr({keyframes:[d.value,E(d.value)],velocity:Zg(x,D,d.value),damping:r,stiffness:o,restDelta:u,restSpeed:l}))};return p(0),{calculatedDuration:null,next:D=>{let F=!1;return!v&&I===void 0&&(F=!0,b(D),p(D)),I!==void 0&&D>=I?v.next(D-I):(!F&&b(D),d)}}}function Eh(e,t,A){const n=[],r=A||Et.mix||Wg,o=e.length-1;for(let s=0;s<o;s++){let i=r(e[s],e[s+1]);if(t){const a=Array.isArray(t)?t[s]||We:t;i=mn(a,i)}n.push(i)}return n}function Ih(e,t,{clamp:A=!0,ease:n,mixer:r}={}){const o=e.length;if(Bt(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=Eh(t,n,r),a=i.length,u=l=>{if(s&&l<e[0])return t[0];let g=0;if(a>1)for(;g<e.length-2&&!(l<e[g+1]);g++);const d=on(e[g],e[g+1],l);return i[g](d)};return A?l=>u(ft(e[0],e[o-1],l)):u}function Qh(e,t){const A=e[e.length-1];for(let n=1;n<=t;n++){const r=on(0,t,n);e.push(Ie(A,1,r))}}function hh(e){const t=[0];return Qh(t,e.length-1),t}function mh(e,t){return e.map(A=>A*t)}function ph(e,t){return e.map(()=>t||Rg).splice(0,e.length-1)}function fA({duration:e=300,keyframes:t,times:A,ease:n="easeInOut"}){const r=j2(n)?n.map(za):za(n),o={done:!1,value:t[0]},s=mh(A&&A.length===t.length?A:hh(t),e),i=Ih(s,t,{ease:Array.isArray(r)?r:ph(t,r)});return{calculatedDuration:e,next:a=>(o.value=i(a),o.done=a>=e,o)}}const vh=e=>e!==null;function ri(e,{repeat:t,repeatType:A="loop"},n,r=1){const o=e.filter(vh),i=r<0||t&&A!=="loop"&&t%2===1?0:o.length-1;return!i||n===void 0?o[i]:n}const wh={decay:Ko,inertia:Ko,tween:fA,keyframes:fA,spring:gr};function qg(e){typeof e.type=="string"&&(e.type=wh[e.type])}class oi{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,A){return this.finished.then(t,A)}}const xh=e=>e/100;class si extends oi{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,r;const{motionValue:A}=this.options;A&&A.updatedAt!==Re.now()&&this.tick(Re.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(n=this.options).onStop)==null||r.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;qg(t);const{type:A=fA,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=t;let{keyframes:i}=t;const a=A||fA;process.env.NODE_ENV!=="production"&&a!==fA&&Bt(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`,"spring-two-frames"),a!==fA&&typeof i[0]!="number"&&(this.mixKeyframes=mn(xh,Wg(i[0],i[1])),i=[0,100]);const u=a({...t,keyframes:i});o==="mirror"&&(this.mirroredGenerator=a({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=ni(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=u}updateTime(t){const A=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=A}tick(t,A=!1){const{generator:n,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:a}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:l,repeat:g,repeatType:d,repeatDelay:f,type:E,onUpdate:B,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),A?this.currentTime=t:this.updateTime(t);const Q=this.currentTime-u*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?Q<0:Q>r;this.currentTime=Math.max(Q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let x=this.currentTime,b=n;if(g){const D=Math.min(this.currentTime,r)/i;let F=Math.floor(D),j=D%1;!j&&D>=1&&(j=1),j===1&&F--,F=Math.min(F,g+1),!!(F%2)&&(d==="reverse"?(j=1-j,f&&(j-=f/i)):d==="mirror"&&(b=s)),x=ft(0,1,j)*i}const I=m?{done:!1,value:l[0]}:b.next(x);o&&(I.value=o(I.value));let{done:v}=I;!m&&a!==null&&(v=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const p=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&v);return p&&E!==Ko&&(I.value=ri(l,this.options,h,this.speed)),B&&B(I.value),p&&this.finish(),I}then(t,A){return this.finished.then(t,A)}get duration(){return Ue(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(this.currentTime)}set time(t){var A;t=_e(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(A=this.driver)==null||A.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Re.now());const A=this.playbackSpeed!==t;this.playbackSpeed=t,A&&(this.time=Ue(this.currentTime))}play(){var r,o;if(this.isStopped)return;const{driver:t=ah,startTime:A}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(o=(r=this.options).onPlay)==null||o.call(r);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=A??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Re.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,A;this.notifyFinished(),this.teardown(),this.state="finished",(A=(t=this.options).onComplete)==null||A.call(t)}cancel(){var t,A;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(A=(t=this.options).onCancel)==null||A.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var A;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(A=this.driver)==null||A.stop(),t.observe(this)}}function bh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Zt=e=>e*180/Math.PI,Jo=e=>{const t=Zt(Math.atan2(e[1],e[0]));return _o(t)},Dh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Jo,rotateZ:Jo,skewX:e=>Zt(Math.atan(e[1])),skewY:e=>Zt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_o=e=>(e=e%360,e<0&&(e+=360),e),Wa=Jo,Xa=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Za=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),yh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Xa,scaleY:Za,scale:e=>(Xa(e)+Za(e))/2,rotateX:e=>_o(Zt(Math.atan2(e[6],e[5]))),rotateY:e=>_o(Zt(Math.atan2(-e[2],e[0]))),rotateZ:Wa,rotate:Wa,skewX:e=>Zt(Math.atan(e[4])),skewY:e=>Zt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function $o(e){return e.includes("scale")?1:0}function es(e,t){if(!e||e==="none")return $o(t);const A=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,r;if(A)n=yh,r=A;else{const i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Dh,r=i}if(!r)return $o(t);const o=n[t],s=r[1].split(",").map(Ph);return typeof o=="function"?o(s):s[o]}const Fh=(e,t)=>{const{transform:A="none"}=getComputedStyle(e);return es(A,t)};function Ph(e){return parseFloat(e.trim())}const jA=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kA=new Set(jA),qa=e=>e===TA||e===ee,Nh=new Set(["x","y","z"]),Mh=jA.filter(e=>!Nh.has(e));function Th(e){const t=[];return Mh.forEach(A=>{const n=e.getValue(A);n!==void 0&&(t.push([A,n.get()]),n.set(A.startsWith("scale")?1:0))}),t}const Jt={width:({x:e},{paddingLeft:t="0",paddingRight:A="0"})=>e.max-e.min-parseFloat(t)-parseFloat(A),height:({y:e},{paddingTop:t="0",paddingBottom:A="0"})=>e.max-e.min-parseFloat(t)-parseFloat(A),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>es(t,"x"),y:(e,{transform:t})=>es(t,"y")};Jt.translateX=Jt.x;Jt.translateY=Jt.y;const _t=new Set;let ts=!1,As=!1,ns=!1;function Kg(){if(As){const e=Array.from(_t).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),A=new Map;t.forEach(n=>{const r=Th(n);r.length&&(A.set(n,r),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const r=A.get(n);r&&r.forEach(([o,s])=>{var i;(i=n.getValue(o))==null||i.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}As=!1,ts=!1,_t.forEach(e=>e.complete(ns)),_t.clear()}function Jg(){_t.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(As=!0)})}function jh(){ns=!0,Jg(),Kg(),ns=!1}class ii{constructor(t,A,n,r,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=A,this.name=n,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(_t.add(this),ts||(ts=!0,fe.read(Jg),fe.resolveKeyframes(Kg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:A,element:n,motionValue:r}=this;if(t[0]===null){const o=r==null?void 0:r.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(n&&A){const i=n.readValue(A,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),r&&o===void 0&&r.set(t[0])}bh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),_t.delete(this)}cancel(){this.state==="scheduled"&&(_t.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kh=e=>e.startsWith("--");function Rh(e,t,A){kh(t)?e.style.setProperty(t,A):e.style[t]=A}const Lh=Xs(()=>window.ScrollTimeline!==void 0),Sh={};function Oh(e,t){const A=Xs(e);return()=>Sh[t]??A()}const _g=Oh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),JA=([e,t,A,n])=>`cubic-bezier(${e}, ${t}, ${A}, ${n})`,Ka={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:JA([0,.65,.55,1]),circOut:JA([.55,0,1,.45]),backIn:JA([.31,.01,.66,-.59]),backOut:JA([.33,1.53,.69,.99])};function $g(e,t){if(e)return typeof e=="function"?_g()?Xg(e,t):"ease-out":Lg(e)?JA(e):Array.isArray(e)?e.map(A=>$g(A,t)||Ka.easeOut):Ka[e]}function zh(e,t,A,{delay:n=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:i="easeOut",times:a}={},u=void 0){const l={[t]:A};a&&(l.offset=a);const g=$g(i,r);Array.isArray(g)&&(l.easing=g);const d={delay:n,duration:r,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(l,d)}function ed(e){return typeof e=="function"&&"applyToOptions"in e}function Hh({type:e,...t}){return ed(e)&&_g()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Vh extends oi{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:A,name:n,keyframes:r,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:i,onComplete:a}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,Bt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Hh(t);this.animation=zh(A,n,r,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=ri(r,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(l):Rh(A,n,l),this.animation.cancel()}a==null||a(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,A;(A=(t=this.animation).finish)==null||A.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,A;this.isPseudoElement||(A=(t=this.animation).commitStyles)==null||A.call(t)}get duration(){var A,n;const t=((n=(A=this.animation.effect)==null?void 0:A.getComputedTiming)==null?void 0:n.call(A).duration)||0;return Ue(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=_e(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:A}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Lh()?(this.animation.timeline=t,We):A(this)}}const td={anticipate:Tg,backInOut:Mg,circInOut:kg};function Gh(e){return e in td}function Yh(e){typeof e.ease=="string"&&Gh(e.ease)&&(e.ease=td[e.ease])}const Ja=10;class Uh extends Vh{constructor(t){Yh(t),qg(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:A,onUpdate:n,onComplete:r,element:o,...s}=this.options;if(!A)return;if(t!==void 0){A.set(t);return}const i=new si({...s,autoplay:!1}),a=_e(this.finishedTime??this.time);A.setWithVelocity(i.sample(a-Ja).value,i.sample(a).value,Ja),i.stop()}}const _a=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pt.test(e)||e==="0")&&!e.startsWith("url("));function Wh(e){const t=e[0];if(e.length===1)return!0;for(let A=0;A<e.length;A++)if(e[A]!==t)return!0}function Xh(e,t,A,n){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=_a(r,t),i=_a(o,t);return MA(s===i,`You are trying to animate ${t} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!s||!i?!1:Wh(e)||(A==="spring"||ed(A))&&n}function rs(e){e.duration=0,e.type="keyframes"}const Zh=new Set(["opacity","clipPath","filter","transform"]),qh=Xs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Kh(e){var l;const{motionValue:t,name:A,repeatDelay:n,repeatType:r,damping:o,type:s}=e;if(!(((l=t==null?void 0:t.owner)==null?void 0:l.current)instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=t.owner.getProps();return qh()&&A&&Zh.has(A)&&(A!=="transform"||!u)&&!a&&!n&&r!=="mirror"&&o!==0&&s!=="inertia"}const Jh=40;class _h extends oi{constructor({autoplay:t=!0,delay:A=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",keyframes:i,name:a,motionValue:u,element:l,...g}){var E;super(),this.stop=()=>{var B,h;this._animation&&(this._animation.stop(),(B=this.stopTimeline)==null||B.call(this)),(h=this.keyframeResolver)==null||h.cancel()},this.createdAt=Re.now();const d={autoplay:t,delay:A,type:n,repeat:r,repeatDelay:o,repeatType:s,name:a,motionValue:u,element:l,...g},f=(l==null?void 0:l.KeyframeResolver)||ii;this.keyframeResolver=new f(i,(B,h,Q)=>this.onKeyframesResolved(B,h,d,!Q),a,u,l),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(t,A,n,r){this.keyframeResolver=void 0;const{name:o,type:s,velocity:i,delay:a,isHandoff:u,onUpdate:l}=n;this.resolvedAt=Re.now(),Xh(t,o,s,i)||((Et.instantAnimations||!a)&&(l==null||l(ri(t,n,A))),t[0]=t[t.length-1],rs(n),n.repeat=0);const d={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>Jh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:A,...n,keyframes:t},f=!u&&Kh(d)?new Uh({...d,element:d.motionValue.owner.current}):new si(d);f.finished.then(()=>this.notifyFinished()).catch(We),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,A){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),jh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const $h=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function em(e){const t=$h.exec(e);if(!t)return[,];const[,A,n,r]=t;return[`--${A??n}`,r]}const tm=4;function Ad(e,t,A=1){Bt(A<=tm,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,r]=em(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const s=o.trim();return wg(s)?parseFloat(s):s}return $s(r)?Ad(r,t,A+1):r}function ai(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const nd=new Set(["width","height","top","left","right","bottom",...jA]),Am={test:e=>e==="auto",parse:e=>e},rd=e=>t=>t.test(e),od=[TA,ee,st,bt,W2,U2,Am],$a=e=>od.find(rd(e));function nm(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bg(e):!0}const rm=new Set(["brightness","contrast","saturate","opacity"]);function om(e){const[t,A]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=A.match(ei)||[];if(!n)return e;const r=A.replace(n,"");let o=rm.has(t)?1:0;return n!==A&&(o*=100),t+"("+o+r+")"}const sm=/\b([a-z-]*)\(.*?\)/gu,os={...Pt,getAnimatableNone:e=>{const t=e.match(sm);return t?t.map(om).join(" "):e}},eu={...TA,transform:Math.round},im={rotate:bt,rotateX:bt,rotateY:bt,rotateZ:bt,scale:Gn,scaleX:Gn,scaleY:Gn,scaleZ:Gn,skew:bt,skewX:bt,skewY:bt,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:sn,originX:Ha,originY:Ha,originZ:ee},ui={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,radius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,top:ee,right:ee,bottom:ee,left:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,backgroundPositionX:ee,backgroundPositionY:ee,...im,zIndex:eu,fillOpacity:sn,strokeOpacity:sn,numOctaves:eu},am={...ui,color:we,backgroundColor:we,outlineColor:we,fill:we,stroke:we,borderColor:we,borderTopColor:we,borderRightColor:we,borderBottomColor:we,borderLeftColor:we,filter:os,WebkitFilter:os},sd=e=>am[e];function id(e,t){let A=sd(e);return A!==os&&(A=Pt),A.getAnimatableNone?A.getAnimatableNone(t):void 0}const um=new Set(["auto","none","0"]);function lm(e,t,A){let n=0,r;for(;n<e.length&&!r;){const o=e[n];typeof o=="string"&&!um.has(o)&&an(o).values.length&&(r=e[n]),n++}if(r&&A)for(const o of t)e[o]=id(A,r)}class cm extends ii{constructor(t,A,n,r,o){super(t,A,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:A,name:n}=this;if(!A||!A.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="string"&&(u=u.trim(),$s(u))){const l=Ad(u,A.current);l!==void 0&&(t[a]=l),a===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!nd.has(n)||t.length!==2)return;const[r,o]=t,s=$a(r),i=$a(o);if(s!==i)if(qa(s)&&qa(i))for(let a=0;a<t.length;a++){const u=t[a];typeof u=="string"&&(t[a]=parseFloat(u))}else Jt[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:A}=this,n=[];for(let r=0;r<t.length;r++)(t[r]===null||nm(t[r]))&&n.push(r);n.length&&lm(t,n,A)}measureInitialState(){const{element:t,unresolvedKeyframes:A,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Jt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),A[0]=this.measuredOrigin;const r=A[A.length-1];r!==void 0&&t.getValue(n,r).jump(r,!1)}measureEndState(){var i;const{element:t,name:A,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const r=t.getValue(A);r&&r.jump(this.measuredOrigin,!1);const o=n.length-1,s=n[o];n[o]=Jt[A](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(i=this.removedTransforms)!=null&&i.length&&this.removedTransforms.forEach(([a,u])=>{t.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function gm(e,t,A){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const r=(A==null?void 0:A[e])??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const ad=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ud(e){return xg(e)&&"offsetHeight"in e}const tu=30,dm=e=>!isNaN(parseFloat(e));class Cm{constructor(t,A={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{var o;const r=Re.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=A.owner}setCurrent(t){this.current=t,this.updatedAt=Re.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=dm(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&qs(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,A){this.events[t]||(this.events[t]=new Zs);const n=this.events[t].add(A);return t==="change"?()=>{n(),fe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,A){this.passiveEffect=t,this.stopPassiveEffect=A}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,A,n){this.set(A),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,A=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,A&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Re.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>tu)return 0;const A=Math.min(this.updatedAt-this.prevUpdatedAt,tu);return Dg(parseFloat(this.current)-parseFloat(this.prevFrameValue),A)}start(t){return this.stop(),new Promise(A=>{this.hasAnimated=!0,this.animation=t(A),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,A;(t=this.dependents)==null||t.clear(),(A=this.events.destroy)==null||A.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bA(e,t){return new Cm(e,t)}const{schedule:li}=Sg(queueMicrotask,!1),Ke={x:!1,y:!1};function ld(){return Ke.x||Ke.y}function fm(e){return e==="x"||e==="y"?Ke[e]?null:(Ke[e]=!0,()=>{Ke[e]=!1}):Ke.x||Ke.y?null:(Ke.x=Ke.y=!0,()=>{Ke.x=Ke.y=!1})}function cd(e,t){const A=gm(e),n=new AbortController,r={passive:!0,...t,signal:n.signal};return[A,r,()=>n.abort()]}function Au(e){return!(e.pointerType==="touch"||ld())}function Bm(e,t,A={}){const[n,r,o]=cd(e,A),s=i=>{if(!Au(i))return;const{target:a}=i,u=t(a,i);if(typeof u!="function"||!a)return;const l=g=>{Au(g)&&(u(g),a.removeEventListener("pointerleave",l))};a.addEventListener("pointerleave",l,r)};return n.forEach(i=>{i.addEventListener("pointerenter",s,r)}),o}const gd=(e,t)=>t?e===t?!0:gd(e,t.parentElement):!1,ci=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Em=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Im(e){return Em.has(e.tagName)||e.tabIndex!==-1}const tr=new WeakSet;function nu(e){return t=>{t.key==="Enter"&&e(t)}}function fo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Qm=(e,t)=>{const A=e.currentTarget;if(!A)return;const n=nu(()=>{if(tr.has(A))return;fo(A,"down");const r=nu(()=>{fo(A,"up")}),o=()=>fo(A,"cancel");A.addEventListener("keyup",r,t),A.addEventListener("blur",o,t)});A.addEventListener("keydown",n,t),A.addEventListener("blur",()=>A.removeEventListener("keydown",n),t)};function ru(e){return ci(e)&&!ld()}function hm(e,t,A={}){const[n,r,o]=cd(e,A),s=i=>{const a=i.currentTarget;if(!ru(i))return;tr.add(a);const u=t(a,i),l=(f,E)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",d),tr.has(a)&&tr.delete(a),ru(f)&&typeof u=="function"&&u(f,{success:E})},g=f=>{l(f,a===window||a===document||A.useGlobalTarget||gd(a,f.target))},d=f=>{l(f,!1)};window.addEventListener("pointerup",g,r),window.addEventListener("pointercancel",d,r)};return n.forEach(i=>{(A.useGlobalTarget?window:i).addEventListener("pointerdown",s,r),ud(i)&&(i.addEventListener("focus",u=>Qm(u,r)),!Im(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),o}function dd(e){return xg(e)&&"ownerSVGElement"in e}function mm(e){return dd(e)&&e.tagName==="svg"}const Fe=e=>!!(e&&e.getVelocity),pm=[...od,we,Pt],vm=e=>pm.find(rd(e)),gi=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ou(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wm(...e){return t=>{let A=!1;const n=e.map(r=>{const o=ou(r,t);return!A&&typeof o=="function"&&(A=!0),o});if(A)return()=>{for(let r=0;r<n.length;r++){const o=n[r];typeof o=="function"?o():ou(e[r],null)}}}}function xm(...e){return C.useCallback(wm(...e),e)}class bm extends C.Component{getSnapshotBeforeUpdate(t){const A=this.props.childRef.current;if(A&&t.isPresent&&!this.props.isPresent){const n=A.offsetParent,r=ud(n)&&n.offsetWidth||0,o=this.props.sizeRef.current;o.height=A.offsetHeight||0,o.width=A.offsetWidth||0,o.top=A.offsetTop,o.left=A.offsetLeft,o.right=r-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Dm({children:e,isPresent:t,anchorX:A,root:n}){const r=w.useId(),o=w.useRef(null),s=w.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=w.useContext(gi),a=xm(o,e==null?void 0:e.ref);return w.useInsertionEffect(()=>{const{width:u,height:l,top:g,left:d,right:f}=s.current;if(t||!o.current||!u||!l)return;const E=A==="left"?`left: ${d}`:`right: ${f}`;o.current.dataset.motionPopId=r;const B=document.createElement("style");i&&(B.nonce=i);const h=n??document.head;return h.appendChild(B),B.sheet&&B.sheet.insertRule(`
51
+ */const ZQ=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],qQ=$c("LoaderCircle",ZQ),yr=w.createContext(null);yr.displayName="PanelGroupContext";const he={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Ls=10,Kt=w.useLayoutEffect,Pa=C.useId,KQ=typeof Pa=="function"?Pa:()=>null;let JQ=0;function Ss(e=null){const t=KQ(),A=w.useRef(e||t||null);return A.current===null&&(A.current=""+JQ++),e??A.current}function eg({children:e,className:t="",collapsedSize:A,collapsible:n,defaultSize:r,forwardedRef:o,id:s,maxSize:i,minSize:a,onCollapse:u,onExpand:l,onResize:g,order:d,style:f,tagName:E="div",...B}){const h=w.useContext(yr);if(h===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:Q,expandPanel:m,getPanelSize:x,getPanelStyle:b,groupId:I,isPanelCollapsed:v,reevaluatePanelConstraints:p,registerPanel:D,resizePanel:F,unregisterPanel:j}=h,S=Ss(s),O=w.useRef({callbacks:{onCollapse:u,onExpand:l,onResize:g},constraints:{collapsedSize:A,collapsible:n,defaultSize:r,maxSize:i,minSize:a},id:S,idIsFromProps:s!==void 0,order:d});w.useRef({didLogMissingDefaultSizeWarning:!1}),Kt(()=>{const{callbacks:y,constraints:k}=O.current,L={...k};O.current.id=S,O.current.idIsFromProps=s!==void 0,O.current.order=d,y.onCollapse=u,y.onExpand=l,y.onResize=g,k.collapsedSize=A,k.collapsible=n,k.defaultSize=r,k.maxSize=i,k.minSize=a,(L.collapsedSize!==k.collapsedSize||L.collapsible!==k.collapsible||L.maxSize!==k.maxSize||L.minSize!==k.minSize)&&p(O.current,L)}),Kt(()=>{const y=O.current;return D(y),()=>{j(y)}},[d,S,D,j]),w.useImperativeHandle(o,()=>({collapse:()=>{Q(O.current)},expand:y=>{m(O.current,y)},getId(){return S},getSize(){return x(O.current)},isCollapsed(){return v(O.current)},isExpanded(){return!v(O.current)},resize:y=>{F(O.current,y)}}),[Q,m,x,v,S,F]);const M=b(O.current,r);return w.createElement(E,{...B,children:e,className:t,id:S,style:{...M,...f},[he.groupId]:I,[he.panel]:"",[he.panelCollapsible]:n||void 0,[he.panelId]:S,[he.panelSize]:parseFloat(""+M.flexGrow).toFixed(1)})}const tg=w.forwardRef((e,t)=>w.createElement(eg,{...e,forwardedRef:t}));eg.displayName="Panel";tg.displayName="forwardRef(Panel)";let Uo=null,$n=-1,yt=null;function _Q(e,t){if(t){const A=(t&sg)!==0,n=(t&ig)!==0,r=(t&ag)!==0,o=(t&ug)!==0;if(A)return r?"se-resize":o?"ne-resize":"e-resize";if(n)return r?"sw-resize":o?"nw-resize":"w-resize";if(r)return"s-resize";if(o)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function $Q(){yt!==null&&(document.head.removeChild(yt),Uo=null,yt=null,$n=-1)}function ro(e,t){var A,n;const r=_Q(e,t);if(Uo!==r){if(Uo=r,yt===null&&(yt=document.createElement("style"),document.head.appendChild(yt)),$n>=0){var o;(o=yt.sheet)===null||o===void 0||o.removeRule($n)}$n=(A=(n=yt.sheet)===null||n===void 0?void 0:n.insertRule(`*{cursor: ${r} !important;}`))!==null&&A!==void 0?A:-1}}function Ag(e){return e.type==="keydown"}function ng(e){return e.type.startsWith("pointer")}function rg(e){return e.type.startsWith("mouse")}function Fr(e){if(ng(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(rg(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function e2(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function t2(e,t,A){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function A2(e,t){if(e===t)throw new Error("Cannot compare node with itself");const A={a:Ta(e),b:Ta(t)};let n;for(;A.a.at(-1)===A.b.at(-1);)e=A.a.pop(),t=A.b.pop(),n=e;re(n,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Ma(Na(A.a)),b:Ma(Na(A.b))};if(r.a===r.b){const o=n.childNodes,s={a:A.a.at(-1),b:A.b.at(-1)};let i=o.length;for(;i--;){const a=o[i];if(a===s.a)return 1;if(a===s.b)return-1}}return Math.sign(r.a-r.b)}const n2=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function r2(e){var t;const A=getComputedStyle((t=og(e))!==null&&t!==void 0?t:e).display;return A==="flex"||A==="inline-flex"}function o2(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||r2(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||n2.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Na(e){let t=e.length;for(;t--;){const A=e[t];if(re(A,"Missing node"),o2(A))return A}return null}function Ma(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ta(e){const t=[];for(;e;)t.push(e),e=og(e);return t}function og(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const sg=1,ig=2,ag=4,ug=8,s2=e2()==="coarse";let Je=[],hA=!1,Wt=new Map,Pr=new Map;const nn=new Set;function i2(e,t,A,n,r){var o;const{ownerDocument:s}=t,i={direction:A,element:t,hitAreaMargins:n,setResizeHandlerState:r},a=(o=Wt.get(s))!==null&&o!==void 0?o:0;return Wt.set(s,a+1),nn.add(i),ir(),function(){var l;Pr.delete(e),nn.delete(i);const g=(l=Wt.get(s))!==null&&l!==void 0?l:1;if(Wt.set(s,g-1),ir(),g===1&&Wt.delete(s),Je.includes(i)){const d=Je.indexOf(i);d>=0&&Je.splice(d,1),zs(),r("up",!0,null)}}}function a2(e){const{target:t}=e,{x:A,y:n}=Fr(e);hA=!0,Os({target:t,x:A,y:n}),ir(),Je.length>0&&(ar("down",e),e.preventDefault(),lg(t)||e.stopImmediatePropagation())}function oo(e){const{x:t,y:A}=Fr(e);if(hA&&e.buttons===0&&(hA=!1,ar("up",e)),!hA){const{target:n}=e;Os({target:n,x:t,y:A})}ar("move",e),zs(),Je.length>0&&e.preventDefault()}function so(e){const{target:t}=e,{x:A,y:n}=Fr(e);Pr.clear(),hA=!1,Je.length>0&&(e.preventDefault(),lg(t)||e.stopImmediatePropagation()),ar("up",e),Os({target:t,x:A,y:n}),zs(),ir()}function lg(e){let t=e;for(;t;){if(t.hasAttribute(he.resizeHandle))return!0;t=t.parentElement}return!1}function Os({target:e,x:t,y:A}){Je.splice(0);let n=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(n=e),nn.forEach(r=>{const{element:o,hitAreaMargins:s}=r,i=o.getBoundingClientRect(),{bottom:a,left:u,right:l,top:g}=i,d=s2?s.coarse:s.fine;if(t>=u-d&&t<=l+d&&A>=g-d&&A<=a+d){if(n!==null&&document.contains(n)&&o!==n&&!o.contains(n)&&!n.contains(o)&&A2(n,o)>0){let E=n,B=!1;for(;E&&!E.contains(o);){if(t2(E.getBoundingClientRect(),i)){B=!0;break}E=E.parentElement}if(B)return}Je.push(r)}})}function io(e,t){Pr.set(e,t)}function zs(){let e=!1,t=!1;Je.forEach(n=>{const{direction:r}=n;r==="horizontal"?e=!0:t=!0});let A=0;Pr.forEach(n=>{A|=n}),e&&t?ro("intersection",A):e?ro("horizontal",A):t?ro("vertical",A):$Q()}let ao=new AbortController;function ir(){ao.abort(),ao=new AbortController;const e={capture:!0,signal:ao.signal};nn.size&&(hA?(Je.length>0&&Wt.forEach((t,A)=>{const{body:n}=A;t>0&&(n.addEventListener("contextmenu",so,e),n.addEventListener("pointerleave",oo,e),n.addEventListener("pointermove",oo,e))}),window.addEventListener("pointerup",so,e),window.addEventListener("pointercancel",so,e)):Wt.forEach((t,A)=>{const{body:n}=A;t>0&&(n.addEventListener("pointerdown",a2,e),n.addEventListener("pointermove",oo,e))}))}function ar(e,t){nn.forEach(A=>{const{setResizeHandlerState:n}=A,r=Je.includes(A);n(e,r,t)})}function u2(){const[e,t]=w.useState(0);return w.useCallback(()=>t(A=>A+1),[])}function re(e,t){if(!e)throw console.error(t),Error(t)}function $t(e,t,A=Ls){return e.toFixed(A)===t.toFixed(A)?0:e>t?1:-1}function Ct(e,t,A=Ls){return $t(e,t,A)===0}function Le(e,t,A){return $t(e,t,A)===0}function l2(e,t,A){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=e[n],o=t[n];if(!Le(r,o,A))return!1}return!0}function dA({panelConstraints:e,panelIndex:t,size:A}){const n=e[t];re(n!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:r=0,collapsible:o,maxSize:s=100,minSize:i=0}=n;if($t(A,i)<0)if(o){const a=(r+i)/2;$t(A,a)<0?A=r:A=i}else A=i;return A=Math.min(s,A),A=parseFloat(A.toFixed(Ls)),A}function qA({delta:e,initialLayout:t,panelConstraints:A,pivotIndices:n,prevLayout:r,trigger:o}){if(Le(e,0))return t;const s=[...t],[i,a]=n;re(i!=null,"Invalid first pivot index"),re(a!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const g=e<0?a:i,d=A[g];re(d,`Panel constraints not found for index ${g}`);const{collapsedSize:f=0,collapsible:E,minSize:B=0}=d;if(E){const h=t[g];if(re(h!=null,`Previous layout not found for panel index ${g}`),Le(h,f)){const Q=B-h;$t(Q,Math.abs(e))>0&&(e=e<0?0-Q:Q)}}}{const g=e<0?i:a,d=A[g];re(d,`No panel constraints found for index ${g}`);const{collapsedSize:f=0,collapsible:E,minSize:B=0}=d;if(E){const h=t[g];if(re(h!=null,`Previous layout not found for panel index ${g}`),Le(h,B)){const Q=h-f;$t(Q,Math.abs(e))>0&&(e=e<0?0-Q:Q)}}}}{const g=e<0?1:-1;let d=e<0?a:i,f=0;for(;;){const B=t[d];re(B!=null,`Previous layout not found for panel index ${d}`);const Q=dA({panelConstraints:A,panelIndex:d,size:100})-B;if(f+=Q,d+=g,d<0||d>=A.length)break}const E=Math.min(Math.abs(e),Math.abs(f));e=e<0?0-E:E}{let d=e<0?i:a;for(;d>=0&&d<A.length;){const f=Math.abs(e)-Math.abs(u),E=t[d];re(E!=null,`Previous layout not found for panel index ${d}`);const B=E-f,h=dA({panelConstraints:A,panelIndex:d,size:B});if(!Le(E,h)&&(u+=E-h,s[d]=h,u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?d--:d++}}if(l2(r,s))return r;{const g=e<0?a:i,d=t[g];re(d!=null,`Previous layout not found for panel index ${g}`);const f=d+u,E=dA({panelConstraints:A,panelIndex:g,size:f});if(s[g]=E,!Le(E,f)){let B=f-E,Q=e<0?a:i;for(;Q>=0&&Q<A.length;){const m=s[Q];re(m!=null,`Previous layout not found for panel index ${Q}`);const x=m+B,b=dA({panelConstraints:A,panelIndex:Q,size:x});if(Le(m,b)||(B-=b-m,s[Q]=b),Le(B,0))break;e>0?Q--:Q++}}}const l=s.reduce((g,d)=>d+g,0);return Le(l,100)?s:r}function c2({layout:e,panelsArray:t,pivotIndices:A}){let n=0,r=100,o=0,s=0;const i=A[0];re(i!=null,"No pivot index found"),t.forEach((g,d)=>{const{constraints:f}=g,{maxSize:E=100,minSize:B=0}=f;d===i?(n=B,r=E):(o+=B,s+=E)});const a=Math.min(r,100-o),u=Math.max(n,100-s),l=e[i];return{valueMax:a,valueMin:u,valueNow:l}}function rn(e,t=document){return Array.from(t.querySelectorAll(`[${he.resizeHandleId}][data-panel-group-id="${e}"]`))}function cg(e,t,A=document){const r=rn(e,A).findIndex(o=>o.getAttribute(he.resizeHandleId)===t);return r??null}function gg(e,t,A){const n=cg(e,t,A);return n!=null?[n,n+1]:[-1,-1]}function dg(e,t=document){var A;if(t instanceof HTMLElement&&(t==null||(A=t.dataset)===null||A===void 0?void 0:A.panelGroupId)==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function Nr(e,t=document){const A=t.querySelector(`[${he.resizeHandleId}="${e}"]`);return A||null}function g2(e,t,A,n=document){var r,o,s,i;const a=Nr(t,n),u=rn(e,n),l=a?u.indexOf(a):-1,g=(r=(o=A[l])===null||o===void 0?void 0:o.id)!==null&&r!==void 0?r:null,d=(s=(i=A[l+1])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null;return[g,d]}function d2({committedValuesRef:e,eagerValuesRef:t,groupId:A,layout:n,panelDataArray:r,panelGroupElement:o,setLayout:s}){w.useRef({didWarnAboutMissingResizeHandle:!1}),Kt(()=>{if(!o)return;const i=rn(A,o);for(let a=0;a<r.length-1;a++){const{valueMax:u,valueMin:l,valueNow:g}=c2({layout:n,panelsArray:r,pivotIndices:[a,a+1]}),d=i[a];if(d!=null){const f=r[a];re(f,`No panel data found for index "${a}"`),d.setAttribute("aria-controls",f.id),d.setAttribute("aria-valuemax",""+Math.round(u)),d.setAttribute("aria-valuemin",""+Math.round(l)),d.setAttribute("aria-valuenow",g!=null?""+Math.round(g):"")}}return()=>{i.forEach((a,u)=>{a.removeAttribute("aria-controls"),a.removeAttribute("aria-valuemax"),a.removeAttribute("aria-valuemin"),a.removeAttribute("aria-valuenow")})}},[A,n,r,o]),w.useEffect(()=>{if(!o)return;const i=t.current;re(i,"Eager values not found");const{panelDataArray:a}=i,u=dg(A,o);re(u!=null,`No group found for id "${A}"`);const l=rn(A,o);re(l,`No resize handles found for group id "${A}"`);const g=l.map(d=>{const f=d.getAttribute(he.resizeHandleId);re(f,"Resize handle element has no handle id attribute");const[E,B]=g2(A,f,a,o);if(E==null||B==null)return()=>{};const h=Q=>{if(!Q.defaultPrevented)switch(Q.key){case"Enter":{Q.preventDefault();const m=a.findIndex(x=>x.id===E);if(m>=0){const x=a[m];re(x,`No panel data found for index ${m}`);const b=n[m],{collapsedSize:I=0,collapsible:v,minSize:p=0}=x.constraints;if(b!=null&&v){const D=qA({delta:Le(b,I)?p-I:I-b,initialLayout:n,panelConstraints:a.map(F=>F.constraints),pivotIndices:gg(A,f,o),prevLayout:n,trigger:"keyboard"});n!==D&&s(D)}}break}}};return d.addEventListener("keydown",h),()=>{d.removeEventListener("keydown",h)}});return()=>{g.forEach(d=>d())}},[o,e,t,A,n,r,s])}function ja(e,t){if(e.length!==t.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[A])return!1;return!0}function Cg(e,t){const A=e==="horizontal",{x:n,y:r}=Fr(t);return A?n:r}function C2(e,t,A,n,r){const o=A==="horizontal",s=Nr(t,r);re(s,`No resize handle element found for id "${t}"`);const i=s.getAttribute(he.groupId);re(i,"Resize handle element has no group id attribute");let{initialCursorPosition:a}=n;const u=Cg(A,e),l=dg(i,r);re(l,`No group element found for id "${i}"`);const g=l.getBoundingClientRect(),d=o?g.width:g.height;return(u-a)/d*100}function f2(e,t,A,n,r,o){if(Ag(e)){const s=A==="horizontal";let i=0;e.shiftKey?i=100:r!=null?i=r:i=10;let a=0;switch(e.key){case"ArrowDown":a=s?0:i;break;case"ArrowLeft":a=s?-i:0;break;case"ArrowRight":a=s?i:0;break;case"ArrowUp":a=s?0:-i;break;case"End":a=100;break;case"Home":a=-100;break}return a}else return n==null?0:C2(e,t,A,n,o)}function B2({panelDataArray:e}){const t=Array(e.length),A=e.map(o=>o.constraints);let n=0,r=100;for(let o=0;o<e.length;o++){const s=A[o];re(s,`Panel constraints not found for index ${o}`);const{defaultSize:i}=s;i!=null&&(n++,t[o]=i,r-=i)}for(let o=0;o<e.length;o++){const s=A[o];re(s,`Panel constraints not found for index ${o}`);const{defaultSize:i}=s;if(i!=null)continue;const a=e.length-n,u=r/a;n++,t[o]=u,r-=u}return t}function aA(e,t,A){t.forEach((n,r)=>{const o=e[r];re(o,`Panel data not found for index ${r}`);const{callbacks:s,constraints:i,id:a}=o,{collapsedSize:u=0,collapsible:l}=i,g=A[a];if(g==null||n!==g){A[a]=n;const{onCollapse:d,onExpand:f,onResize:E}=s;E&&E(n,g),l&&(d||f)&&(f&&(g==null||Ct(g,u))&&!Ct(n,u)&&f(),d&&(g==null||!Ct(g,u))&&Ct(n,u)&&d())}})}function Hn(e,t){if(e.length!==t.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!=t[A])return!1;return!0}function E2({defaultSize:e,dragState:t,layout:A,panelData:n,panelIndex:r,precision:o=3}){const s=A[r];let i;return s==null?i=e!=null?e.toPrecision(o):"1":n.length===1?i="1":i=s.toPrecision(o),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function I2(e,t=10){let A=null;return(...r)=>{A!==null&&clearTimeout(A),A=setTimeout(()=>{e(...r)},t)}}function ka(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,A)=>{localStorage.setItem(t,A)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function fg(e){return`react-resizable-panels:${e}`}function Bg(e){return e.map(t=>{const{constraints:A,id:n,idIsFromProps:r,order:o}=t;return r?n:o?`${o}:${JSON.stringify(A)}`:JSON.stringify(A)}).sort((t,A)=>t.localeCompare(A)).join(",")}function Eg(e,t){try{const A=fg(e),n=t.getItem(A);if(n){const r=JSON.parse(n);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Q2(e,t,A){var n,r;const o=(n=Eg(e,A))!==null&&n!==void 0?n:{},s=Bg(t);return(r=o[s])!==null&&r!==void 0?r:null}function h2(e,t,A,n,r){var o;const s=fg(e),i=Bg(t),a=(o=Eg(e,r))!==null&&o!==void 0?o:{};a[i]={expandToSizes:Object.fromEntries(A.entries()),layout:n};try{r.setItem(s,JSON.stringify(a))}catch(u){console.error(u)}}function Ra({layout:e,panelConstraints:t}){const A=[...e],n=A.reduce((o,s)=>o+s,0);if(A.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${A.map(o=>`${o}%`).join(", ")}`);if(!Le(n,100)&&A.length>0)for(let o=0;o<t.length;o++){const s=A[o];re(s!=null,`No layout data found for index ${o}`);const i=100/n*s;A[o]=i}let r=0;for(let o=0;o<t.length;o++){const s=A[o];re(s!=null,`No layout data found for index ${o}`);const i=dA({panelConstraints:t,panelIndex:o,size:s});s!=i&&(r+=s-i,A[o]=i)}if(!Le(r,0))for(let o=0;o<t.length;o++){const s=A[o];re(s!=null,`No layout data found for index ${o}`);const i=s+r,a=dA({panelConstraints:t,panelIndex:o,size:i});if(s!==a&&(r-=a-s,A[o]=a,Le(r,0)))break}return A}const m2=100,KA={getItem:e=>(ka(KA),KA.getItem(e)),setItem:(e,t)=>{ka(KA),KA.setItem(e,t)}},La={};function Ig({autoSaveId:e=null,children:t,className:A="",direction:n,forwardedRef:r,id:o=null,onLayout:s=null,keyboardResizeBy:i=null,storage:a=KA,style:u,tagName:l="div",...g}){const d=Ss(o),f=w.useRef(null),[E,B]=w.useState(null),[h,Q]=w.useState([]),m=u2(),x=w.useRef({}),b=w.useRef(new Map),I=w.useRef(0),v=w.useRef({autoSaveId:e,direction:n,dragState:E,id:d,keyboardResizeBy:i,onLayout:s,storage:a}),p=w.useRef({layout:h,panelDataArray:[],panelDataArrayChanged:!1});w.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),w.useImperativeHandle(r,()=>({getId:()=>v.current.id,getLayout:()=>{const{layout:P}=p.current;return P},setLayout:P=>{const{onLayout:H}=v.current,{layout:G,panelDataArray:Y}=p.current,R=Ra({layout:P,panelConstraints:Y.map(W=>W.constraints)});ja(G,R)||(Q(R),p.current.layout=R,H&&H(R),aA(Y,R,x.current))}}),[]),Kt(()=>{v.current.autoSaveId=e,v.current.direction=n,v.current.dragState=E,v.current.id=d,v.current.onLayout=s,v.current.storage=a}),d2({committedValuesRef:v,eagerValuesRef:p,groupId:d,layout:h,panelDataArray:p.current.panelDataArray,setLayout:Q,panelGroupElement:f.current}),w.useEffect(()=>{const{panelDataArray:P}=p.current;if(e){if(h.length===0||h.length!==P.length)return;let H=La[e];H==null&&(H=I2(h2,m2),La[e]=H);const G=[...P],Y=new Map(b.current);H(e,G,Y,h,a)}},[e,h,a]),w.useEffect(()=>{});const D=w.useCallback(P=>{const{onLayout:H}=v.current,{layout:G,panelDataArray:Y}=p.current;if(P.constraints.collapsible){const R=Y.map(le=>le.constraints),{collapsedSize:W=0,panelSize:J,pivotIndices:ie}=Vt(Y,P,G);if(re(J!=null,`Panel size not found for panel "${P.id}"`),!Ct(J,W)){b.current.set(P.id,J);const ge=gA(Y,P)===Y.length-1?J-W:W-J,ae=qA({delta:ge,initialLayout:G,panelConstraints:R,pivotIndices:ie,prevLayout:G,trigger:"imperative-api"});Hn(G,ae)||(Q(ae),p.current.layout=ae,H&&H(ae),aA(Y,ae,x.current))}}},[]),F=w.useCallback((P,H)=>{const{onLayout:G}=v.current,{layout:Y,panelDataArray:R}=p.current;if(P.constraints.collapsible){const W=R.map(q=>q.constraints),{collapsedSize:J=0,panelSize:ie=0,minSize:le=0,pivotIndices:ge}=Vt(R,P,Y),ae=H??le;if(Ct(ie,J)){const q=b.current.get(P.id),Pe=q!=null&&q>=ae?q:ae,ct=gA(R,P)===R.length-1?ie-Pe:Pe-ie,De=qA({delta:ct,initialLayout:Y,panelConstraints:W,pivotIndices:ge,prevLayout:Y,trigger:"imperative-api"});Hn(Y,De)||(Q(De),p.current.layout=De,G&&G(De),aA(R,De,x.current))}}},[]),j=w.useCallback(P=>{const{layout:H,panelDataArray:G}=p.current,{panelSize:Y}=Vt(G,P,H);return re(Y!=null,`Panel size not found for panel "${P.id}"`),Y},[]),S=w.useCallback((P,H)=>{const{panelDataArray:G}=p.current,Y=gA(G,P);return E2({defaultSize:H,dragState:E,layout:h,panelData:G,panelIndex:Y})},[E,h]),O=w.useCallback(P=>{const{layout:H,panelDataArray:G}=p.current,{collapsedSize:Y=0,collapsible:R,panelSize:W}=Vt(G,P,H);return re(W!=null,`Panel size not found for panel "${P.id}"`),R===!0&&Ct(W,Y)},[]),M=w.useCallback(P=>{const{layout:H,panelDataArray:G}=p.current,{collapsedSize:Y=0,collapsible:R,panelSize:W}=Vt(G,P,H);return re(W!=null,`Panel size not found for panel "${P.id}"`),!R||$t(W,Y)>0},[]),y=w.useCallback(P=>{const{panelDataArray:H}=p.current;H.push(P),H.sort((G,Y)=>{const R=G.order,W=Y.order;return R==null&&W==null?0:R==null?-1:W==null?1:R-W}),p.current.panelDataArrayChanged=!0,m()},[m]);Kt(()=>{if(p.current.panelDataArrayChanged){p.current.panelDataArrayChanged=!1;const{autoSaveId:P,onLayout:H,storage:G}=v.current,{layout:Y,panelDataArray:R}=p.current;let W=null;if(P){const ie=Q2(P,R,G);ie&&(b.current=new Map(Object.entries(ie.expandToSizes)),W=ie.layout)}W==null&&(W=B2({panelDataArray:R}));const J=Ra({layout:W,panelConstraints:R.map(ie=>ie.constraints)});ja(Y,J)||(Q(J),p.current.layout=J,H&&H(J),aA(R,J,x.current))}}),Kt(()=>{const P=p.current;return()=>{P.layout=[]}},[]);const k=w.useCallback(P=>{let H=!1;const G=f.current;return G&&window.getComputedStyle(G,null).getPropertyValue("direction")==="rtl"&&(H=!0),function(R){R.preventDefault();const W=f.current;if(!W)return()=>null;const{direction:J,dragState:ie,id:le,keyboardResizeBy:ge,onLayout:ae}=v.current,{layout:q,panelDataArray:Pe}=p.current,{initialLayout:je}=ie??{},ct=gg(le,P,W);let De=f2(R,P,J,ie,ge,W);const gt=J==="horizontal";gt&&H&&(De=-De);const ht=Pe.map(Lt=>Lt.constraints),mt=qA({delta:De,initialLayout:je??q,panelConstraints:ht,pivotIndices:ct,prevLayout:q,trigger:Ag(R)?"keyboard":"mouse-or-touch"}),Mn=!Hn(q,mt);(ng(R)||rg(R))&&I.current!=De&&(I.current=De,!Mn&&De!==0?gt?io(P,De<0?sg:ig):io(P,De<0?ag:ug):io(P,0)),Mn&&(Q(mt),p.current.layout=mt,ae&&ae(mt),aA(Pe,mt,x.current))}},[]),L=w.useCallback((P,H)=>{const{onLayout:G}=v.current,{layout:Y,panelDataArray:R}=p.current,W=R.map(q=>q.constraints),{panelSize:J,pivotIndices:ie}=Vt(R,P,Y);re(J!=null,`Panel size not found for panel "${P.id}"`);const ge=gA(R,P)===R.length-1?J-H:H-J,ae=qA({delta:ge,initialLayout:Y,panelConstraints:W,pivotIndices:ie,prevLayout:Y,trigger:"imperative-api"});Hn(Y,ae)||(Q(ae),p.current.layout=ae,G&&G(ae),aA(R,ae,x.current))},[]),z=w.useCallback((P,H)=>{const{layout:G,panelDataArray:Y}=p.current,{collapsedSize:R=0,collapsible:W}=H,{collapsedSize:J=0,collapsible:ie,maxSize:le=100,minSize:ge=0}=P.constraints,{panelSize:ae}=Vt(Y,P,G);ae!=null&&(W&&ie&&Ct(ae,R)?Ct(R,J)||L(P,J):ae<ge?L(P,ge):ae>le&&L(P,le))},[L]),T=w.useCallback((P,H)=>{const{direction:G}=v.current,{layout:Y}=p.current;if(!f.current)return;const R=Nr(P,f.current);re(R,`Drag handle element not found for id "${P}"`);const W=Cg(G,H);B({dragHandleId:P,dragHandleRect:R.getBoundingClientRect(),initialCursorPosition:W,initialLayout:Y})},[]),N=w.useCallback(()=>{B(null)},[]),V=w.useCallback(P=>{const{panelDataArray:H}=p.current,G=gA(H,P);G>=0&&(H.splice(G,1),delete x.current[P.id],p.current.panelDataArrayChanged=!0,m())},[m]),_=w.useMemo(()=>({collapsePanel:D,direction:n,dragState:E,expandPanel:F,getPanelSize:j,getPanelStyle:S,groupId:d,isPanelCollapsed:O,isPanelExpanded:M,reevaluatePanelConstraints:z,registerPanel:y,registerResizeHandle:k,resizePanel:L,startDragging:T,stopDragging:N,unregisterPanel:V,panelGroupElement:f.current}),[D,E,n,F,j,S,d,O,M,z,y,k,L,T,N,V]),te={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return w.createElement(yr.Provider,{value:_},w.createElement(l,{...g,children:t,className:A,id:o,ref:f,style:{...te,...u},[he.group]:"",[he.groupDirection]:n,[he.groupId]:d}))}const Qg=w.forwardRef((e,t)=>w.createElement(Ig,{...e,forwardedRef:t}));Ig.displayName="PanelGroup";Qg.displayName="forwardRef(PanelGroup)";function gA(e,t){return e.findIndex(A=>A===t||A.id===t.id)}function Vt(e,t,A){const n=gA(e,t),o=n===e.length-1?[n-1,n]:[n,n+1],s=A[n];return{...t.constraints,panelSize:s,pivotIndices:o}}function p2({disabled:e,handleId:t,resizeHandler:A,panelGroupElement:n}){w.useEffect(()=>{if(e||A==null||n==null)return;const r=Nr(t,n);if(r==null)return;const o=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),A(s);break}case"F6":{s.preventDefault();const i=r.getAttribute(he.groupId);re(i,`No group element found for id "${i}"`);const a=rn(i,n),u=cg(i,t,n);re(u!==null,`No resize element found for id "${t}"`);const l=s.shiftKey?u>0?u-1:a.length-1:u+1<a.length?u+1:0;a[l].focus();break}}};return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}},[n,e,t,A])}function hg({children:e=null,className:t="",disabled:A=!1,hitAreaMargins:n,id:r,onBlur:o,onClick:s,onDragging:i,onFocus:a,onPointerDown:u,onPointerUp:l,style:g={},tabIndex:d=0,tagName:f="div",...E}){var B,h;const Q=w.useRef(null),m=w.useRef({onClick:s,onDragging:i,onPointerDown:u,onPointerUp:l});w.useEffect(()=>{m.current.onClick=s,m.current.onDragging=i,m.current.onPointerDown=u,m.current.onPointerUp=l});const x=w.useContext(yr);if(x===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:b,groupId:I,registerResizeHandle:v,startDragging:p,stopDragging:D,panelGroupElement:F}=x,j=Ss(r),[S,O]=w.useState("inactive"),[M,y]=w.useState(!1),[k,L]=w.useState(null),z=w.useRef({state:S});Kt(()=>{z.current.state=S}),w.useEffect(()=>{if(A)L(null);else{const _=v(j);L(()=>_)}},[A,j,v]);const T=(B=n==null?void 0:n.coarse)!==null&&B!==void 0?B:15,N=(h=n==null?void 0:n.fine)!==null&&h!==void 0?h:5;w.useEffect(()=>{if(A||k==null)return;const _=Q.current;re(_,"Element ref not attached");let te=!1;return i2(j,_,b,{coarse:T,fine:N},(H,G,Y)=>{if(!G){O("inactive");return}switch(H){case"down":{O("drag"),te=!1,re(Y,'Expected event to be defined for "down" action'),p(j,Y);const{onDragging:R,onPointerDown:W}=m.current;R==null||R(!0),W==null||W();break}case"move":{const{state:R}=z.current;te=!0,R!=="drag"&&O("hover"),re(Y,'Expected event to be defined for "move" action'),k(Y);break}case"up":{O("hover"),D();const{onClick:R,onDragging:W,onPointerUp:J}=m.current;W==null||W(!1),J==null||J(),te||R==null||R();break}}})},[T,b,A,N,v,j,k,p,D]),p2({disabled:A,handleId:j,resizeHandler:k,panelGroupElement:F});const V={touchAction:"none",userSelect:"none"};return w.createElement(f,{...E,children:e,className:t,id:r,onBlur:()=>{y(!1),o==null||o()},onFocus:()=>{y(!0),a==null||a()},ref:Q,role:"separator",style:{...V,...g},tabIndex:d,[he.groupDirection]:b,[he.groupId]:I,[he.resizeHandle]:"",[he.resizeHandleActive]:S==="drag"?"pointer":M?"keyboard":void 0,[he.resizeHandleEnabled]:!A,[he.resizeHandleId]:j,[he.resizeHandleState]:S})}hg.displayName="PanelResizeHandle";function mg({className:e,...t}){return c.jsx(Qg,{"data-slot":"resizable-panel-group",className:$("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}function ur({...e}){return c.jsx(tg,{"data-slot":"resizable-panel",...e})}function pg({withHandle:e,className:t,...A}){return c.jsx(hg,{"data-slot":"resizable-handle",className:$("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...A,children:e&&c.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:c.jsx(XQ,{className:"size-2.5"})})})}const hn=()=>{const[e,t]=w.useState(!1);return w.useEffect(()=>{const A=()=>{t(window.innerWidth<768)};return A(),window.addEventListener("resize",A),()=>{window.removeEventListener("resize",A)}},[]),e},v2=({items:e,isDefaultOpen:t=!1,isStandalone:A=!1,resizableContent:n,title:r="Moments",feddbackTitle:o,feedbackHelpfullButtonTitle:s,feedbackNotHelpfullButtonTitle:i,feedbackCommentPlaceholder:a,feedbackSubmitText:u,feedbackThankYouMessage:l,feedbackCancelButtonTitle:g,feedbackSubmitButtonHoverTitle:d})=>{const[f,E]=w.useState(t),B=w.useRef(null),h=w.useRef(null),Q=w.useRef([]),[m,x]=w.useState([]),[b,I]=w.useState(!1),[v,p]=w.useState(null),D=hn(),F=w.useMemo(()=>[...e].reverse(),[e]);w.useEffect(()=>{Q.current=Array(F.length).fill(null)},[F.length]);const j=()=>{if(!h.current)return;const y=h.current.getBoundingClientRect(),k=[];Q.current.forEach((L,z)=>{if(!L)return;const T=L.getBoundingClientRect();T.top<y.bottom&&T.bottom>y.top&&k.push(z)}),x(k)};w.useEffect(()=>{if(t&&!b){const y=setTimeout(()=>{j(),I(!0)},200);return()=>clearTimeout(y)}},[b,t]),w.useEffect(()=>{const y=h.current;if(y&&f){const k=setTimeout(()=>{j()},100);return y.addEventListener("scroll",j),()=>{clearTimeout(k),y.removeEventListener("scroll",j)}}},[f]),w.useEffect(()=>{const y=()=>{f&&j()};return window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)},[f]);const S=y=>{if(v===y||D||m.length<=5||!m.includes(y))return 1;const L=[...m].sort((T,N)=>T-N).indexOf(y);return L<5?1:Math.max(0,.6-(L-5)*.1)},O=y=>{switch(y.type){case"task-done":return c.jsx(qc,{id:y.id,title:r,message:y.message,timestamp:y.timestamp,completedTaskCount:y.completedTaskCount??0,taskCount:y.taskCount??0});case"good-job":return c.jsx(Xc,{id:y.id,title:r,message:y.message,timestamp:y.timestamp});case"legal-thread":return c.jsx(Zc,{id:y.id,title:r,message:y.message,timestamp:y.timestamp,onClickAskGenAI:()=>{var k;return(k=y.onClickAskGenAI)==null?void 0:k.call(y)},onClickAskManager:()=>{var k;return(k=y.onClickAskManager)==null?void 0:k.call(y)}});case"unhappy-customer":return c.jsx(Kc,{id:y.id,title:r,message:y.message,timestamp:y.timestamp});case"genai-support":return c.jsx(Wc,{id:y.id,title:r,message:y.message,timestamp:y.timestamp});case"default":return c.jsx(Jc,{id:y.id,title:y.title??y.type,message:y.message,timestamp:y.timestamp,icon:y.icon,scenarioId:y.scenarioId,showFeedbackArea:y.showFeedbackArea,feedbackSubmitButtonHoverTitle:d??"",feedbackCancelButtonTitle:g??"",feddbackTitle:o,feedbackHelpfullButtonTitle:s,feedbackNotHelpfullButtonTitle:i,feedbackCommentPlaceholder:a,feedbackSubmitText:u,feedbackThankYouMessage:l,matchId:(y==null?void 0:y.matchId)??"",sendFeedback:y==null?void 0:y.sendFeedback,showThankYou:y==null?void 0:y.showThankYou,feedbackLoading:y==null?void 0:y.feedbackLoading})}},M=(y,k)=>c.jsx("div",{ref:L=>{Q.current[k]=L},onMouseEnter:()=>p(k),onMouseLeave:()=>p(null),children:y});return c.jsx("div",{ref:B,className:$("relative",!A&&!n?"max-h-[500px]":"h-full"),children:!A&&n?c.jsxs(mg,{direction:"vertical",className:"h-full md:pb-2",children:[c.jsx(ur,{defaultSize:D?60:35,children:e.length==1?c.jsxs("div",{className:"w-full flex flex-col gap-2 md:px-6 md:py-4 px-3 py-3",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center justify-start h-10",children:[c.jsx("span",{className:"text-lg font-medium text-foreground",children:r}),c.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),F.map((y,k)=>c.jsx("div",{children:M(O(y),k)},`item-${y.id||k}`))]}):c.jsx("div",{className:"h-full flex flex-col md:px-6 md:py-4 px-3 py-3",children:c.jsxs(Vo,{defaultOpen:t,open:f,onOpenChange:y=>{E(y),y&&setTimeout(j,100)},className:"h-full flex flex-col",children:[c.jsxs(Go,{className:"w-full flex flex-row items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[c.jsx("span",{className:"text-lg font-medium text-foreground",children:r}),c.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),c.jsx("div",{className:"h-10 w-10 p-2 flex items-center justify-center",children:c.jsx(U,{name:"ChevronDown",width:16,height:9,className:"text-foreground"})})]}),!f&&F.length>0&&c.jsxs("div",{className:"w-full relative flex items-center justify-center rounded-xl md:rounded-3xl",children:[c.jsx("div",{className:"z-[3] w-full shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-xl md:rounded-3xl",ref:y=>{Q.current[0]=y},children:O(F[0])}),!D&&e.length>1&&c.jsx("div",{className:"z-[2] absolute -bottom-2 w-[calc(100%-16px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"}),!D&&e.length>2&&c.jsx("div",{className:"z-[1] absolute -bottom-4 w-[calc(100%-32px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"})]}),c.jsx(Yo,{className:"flex-1 overflow-y-auto flex flex-col gap-2 max-h-[calc(100vh-68px)]",id:"moments-content",ref:h,children:F.map((y,k)=>c.jsx("div",{style:{opacity:S(k),transition:"opacity 0.2s ease-in-out"},children:M(O(y),k)},`item-${y.id||k}`))})]})})},`panel-1-${D}`),c.jsx(pg,{}),c.jsx(ur,{defaultSize:D?40:65,children:c.jsx("div",{className:"h-full overflow-y-auto no-scrollbar",children:n})},`panel-2-${D}`)]},`panel-group-${D}`):c.jsx(c.Fragment,{children:e.length==1?c.jsxs("div",{className:"w-full flex flex-col gap-2 px-6 py-4",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center justify-start h-10",children:[c.jsx("span",{className:"text-lg font-medium text-foreground",children:r}),c.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),F.map((y,k)=>c.jsx("div",{children:M(O(y),k)},`item-${y.id||k}`))]}):c.jsx("div",{className:"h-full flex flex-col px-6 py-4",children:c.jsxs(Vo,{defaultOpen:t,open:f,onOpenChange:y=>{E(y),y&&setTimeout(j,100)},className:"h-full flex flex-col",children:[c.jsxs(Go,{className:"w-full flex flex-row items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center justify-center",children:[c.jsx("span",{className:"text-lg font-medium text-foreground",children:r}),c.jsx("div",{className:"w-6 h-6 flex items-center justify-center bg-foreground-08 text-secondary-foreground rounded-full",children:e.length})]}),c.jsx("div",{className:"h-10 w-10 p-2 flex items-center justify-center",children:f?c.jsx(U,{name:"ChevronUp",width:24,height:24,className:"text-foreground"}):c.jsx(U,{name:"ChevronDown",width:24,height:24,className:"text-foreground"})})]}),!f&&F.length>0&&c.jsxs("div",{className:"w-full relative flex items-center justify-center rounded-xl md:rounded-3xl",children:[c.jsx("div",{className:"z-[3] w-full shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-xl md:rounded-3xl",ref:y=>{Q.current[0]=y},children:O(F[0])}),!D&&e.length>1&&c.jsx("div",{className:"z-[2] absolute -bottom-2 w-[calc(100%-16px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"}),!D&&e.length>2&&c.jsx("div",{className:"z-[1] absolute -bottom-4 w-[calc(100%-32px)] h-12 shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] rounded-3xl bg-background-08"})]}),c.jsx(Yo,{className:"flex-1 overflow-y-auto flex flex-col gap-2 max-h-[calc(100vh-68px)]",id:"moments-content",ref:h,children:F.map((y,k)=>c.jsx("div",{style:{opacity:S(k),transition:"opacity 0.2s ease-in-out"},children:M(O(y),k)},`item-${y.id||k}`))})]})})})})};function w2({className:e,...t}){return c.jsx("textarea",{"data-slot":"textarea",className:$("border-input text-sm placeholder:text-muted-foreground focus-visible:border-primary focus-visible:border-2 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...t})}const Hs=({value:e,onChange:t,onSendClick:A,placeholder:n="Type something...",...r})=>{const o=w.useRef(null);w.useEffect(()=>{const i=o.current;if(!i)return;i.style.height="0px";const u=24*5,g=Math.min(Math.max(i.scrollHeight,52),u);i.style.height=`${g}px`,i.style.overflowY=i.scrollHeight>u?"auto":"hidden"},[e]);const s=i=>{i.key==="Enter"&&(i.preventDefault(),A())};return c.jsxs("div",{className:"relative w-full",children:[c.jsx(w2,{ref:o,value:e,onChange:t,onKeyDown:s,className:"!py-4 resize-none box-border !pl-4 min-h-[52px] h-auto !pr-[71px] !w-full",placeholder:n,...r}),c.jsx(Qe,{size:"sm",className:"bg-primary absolute top-2 right-2 px-[15.5px] rounded-full",onClick:A,children:c.jsx(U,{name:"Send",width:16,height:16,className:"text-background"})})]})},x2=({isShown:e,personList:t,onClick:A})=>e?c.jsx("div",{className:"flex flex-col items-center justify-center gap-3",children:t.map(n=>c.jsxs("div",{className:`w-fit cursor-pointer h-fit relative${n.isDisable?" opacity-50":""}`,onClick:()=>A(n.id),children:[c.jsx(qt,{type:"secondary",fullName:n.fullName}),n.isActive&&c.jsx("div",{className:"w-2.5 h-2.5 bg-success rounded-full absolute bottom-0 right-0"})]},n.id))}):null,b2=({suggestion:e={items:[],messages:[]},messages:t,input:A,showInput:n=!0,onInputChange:r,onSend:o,onSuggestionClick:s,onSearchDocClick:i,placeholder:a="Type something...",searchDocText:u="Search in Doc",searchDocLoadingText:l="Searching...",showSearchDocButton:g=!0})=>{var h;const[d,f]=w.useState(!1),E=()=>{A.trim()&&(o(A.trim()),r(""))},B=async()=>{if(i){f(!0);try{await i()}finally{f(!1)}}};return c.jsxs("div",{className:"flex flex-col h-full w-full bg-background gap-6 rounded-b-xl rounded-t-4xl",children:[c.jsx("div",{className:"flex-1 overflow-y-auto",children:c.jsx("div",{className:"flex flex-col gap-2 ",children:t==null?void 0:t.map(Q=>w.createElement(xA,{...Q,key:Q.id}))})}),e&&c.jsxs("div",{className:"flex flex-col gap-2.5",children:[e.messages&&e.messages.length>0&&((h=e.messages)==null?void 0:h.map(Q=>c.jsx("div",{className:"border-t pt-4",children:c.jsx(xA,{...Q})},Q.id))),e.items&&e.items.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2 items-start justify-end",children:e.items.map((Q,m)=>c.jsx(Qe,{className:"rounded-lg text-primary text-sm font-medium px-3 py-1.5 bg-secondary hover:bg-secondary/70",onClick:()=>s==null?void 0:s(Q),children:Q},m))})]}),c.jsxs("div",{className:"border-t p-4 flex flex-col gap-2",children:[g&&c.jsx(Qe,{className:"flex rounded-lg text-primary py-1 px-3 bg-secondary hover:bg-secondary/70 items-center justify-center",onClick:B,disabled:d,children:d?c.jsxs(c.Fragment,{children:[c.jsx(qQ,{className:"animate-spin mr-2 h-4 w-4"}),l]}):u}),n&&c.jsx(Hs,{value:A,onChange:Q=>r(Q.target.value),onSendClick:E,placeholder:a})]})]})},D2=({suggestion:e={items:[],messages:[]},messages:t,input:A,showInput:n=!0,onInputChange:r,onSend:o,onSuggestionClick:s,placeholder:i="Type something..."})=>{var l;const a=g=>{s==null||s(g)},u=()=>{A.trim()&&(o(A.trim()),r(""))};return c.jsxs("div",{className:"flex flex-col h-full w-full bg-background gap-6 rounded-b-xl rounded-t-4xl",children:[c.jsx("div",{className:"flex-1 overflow-y-auto",children:c.jsx("div",{className:"flex flex-col gap-2.5",id:"supervisor-chat-container",children:t==null?void 0:t.map(g=>w.createElement(xA,{...g,key:g.id}))})}),e&&c.jsxs("div",{className:"flex flex-col gap-2.5 ",children:[e.messages&&e.messages.length>0&&((l=e.messages)==null?void 0:l.map(g=>c.jsx("div",{className:"border-t pt-4",children:c.jsx(xA,{...g})},g.id))),e.items&&e.items.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2 items-start justify-end",children:e.items.map((g,d)=>c.jsx(Qe,{className:"rounded-lg whitespace-pre-wrap text-left text-primary text-sm font-medium px-3 py-1.8 bg-secondary hover:bg-secondary/70",onClick:()=>a(g),children:g},d))})]}),n&&c.jsx("div",{className:"border-t p-4",children:c.jsx(Hs,{value:A,onChange:g=>r(g.target.value),onSendClick:u,placeholder:i})})]})},Vs=w.createContext({});function Gs(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ys=typeof window<"u",vg=Ys?w.useLayoutEffect:w.useEffect,Mr=w.createContext(null);function Us(e,t){e.indexOf(t)===-1&&e.push(t)}function Ws(e,t){const A=e.indexOf(t);A>-1&&e.splice(A,1)}const ft=(e,t,A)=>A>t?t:A<e?e:A;function Wo(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let MA=()=>{},Bt=()=>{};process.env.NODE_ENV!=="production"&&(MA=(e,t,A)=>{!e&&typeof console<"u"&&console.warn(Wo(t,A))},Bt=(e,t,A)=>{if(!e)throw new Error(Wo(t,A))});const Et={},wg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function xg(e){return typeof e=="object"&&e!==null}const bg=e=>/^0[^.\s]+$/u.test(e);function Xs(e){let t;return()=>(t===void 0&&(t=e()),t)}const We=e=>e,y2=(e,t)=>A=>t(e(A)),mn=(...e)=>e.reduce(y2),on=(e,t,A)=>{const n=t-e;return n===0?1:(A-e)/n};class Zs{constructor(){this.subscriptions=[]}add(t){return Us(this.subscriptions,t),()=>Ws(this.subscriptions,t)}notify(t,A,n){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,A,n);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(t,A,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _e=e=>e*1e3,Ue=e=>e/1e3;function Dg(e,t){return t?e*(1e3/t):0}const Sa=new Set;function qs(e,t,A){e||Sa.has(t)||(console.warn(Wo(t,A)),Sa.add(t))}const yg=(e,t,A)=>(((1-3*A+3*t)*e+(3*A-6*t))*e+3*t)*e,F2=1e-7,P2=12;function N2(e,t,A,n,r){let o,s,i=0;do s=t+(A-t)/2,o=yg(s,n,r)-e,o>0?A=s:t=s;while(Math.abs(o)>F2&&++i<P2);return s}function pn(e,t,A,n){if(e===t&&A===n)return We;const r=o=>N2(o,0,1,e,A);return o=>o===0||o===1?o:yg(r(o),t,n)}const Fg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pg=e=>t=>1-e(1-t),Ng=pn(.33,1.53,.69,.99),Ks=Pg(Ng),Mg=Fg(Ks),Tg=e=>(e*=2)<1?.5*Ks(e):.5*(2-Math.pow(2,-10*(e-1))),Js=e=>1-Math.sin(Math.acos(e)),jg=Pg(Js),kg=Fg(Js),M2=pn(.42,0,1,1),T2=pn(0,0,.58,1),Rg=pn(.42,0,.58,1),j2=e=>Array.isArray(e)&&typeof e[0]!="number",Lg=e=>Array.isArray(e)&&typeof e[0]=="number",Oa={linear:We,easeIn:M2,easeInOut:Rg,easeOut:T2,circIn:Js,circInOut:kg,circOut:jg,backIn:Ks,backInOut:Mg,backOut:Ng,anticipate:Tg},k2=e=>typeof e=="string",za=e=>{if(Lg(e)){Bt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,A,n,r]=e;return pn(t,A,n,r)}else if(k2(e))return Bt(Oa[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Oa[e];return e},Vn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function R2(e,t){let A=new Set,n=new Set,r=!1,o=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function a(l){s.has(l)&&(u.schedule(l),e()),l(i)}const u={schedule:(l,g=!1,d=!1)=>{const E=d&&r?A:n;return g&&s.add(l),E.has(l)||E.add(l),l},cancel:l=>{n.delete(l),s.delete(l)},process:l=>{if(i=l,r){o=!0;return}r=!0,[A,n]=[n,A],A.forEach(a),A.clear(),r=!1,o&&(o=!1,u.process(l))}};return u}const L2=40;function Sg(e,t){let A=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>A=!0,s=Vn.reduce((x,b)=>(x[b]=R2(o),x),{}),{setup:i,read:a,resolveKeyframes:u,preUpdate:l,update:g,preRender:d,render:f,postRender:E}=s,B=()=>{const x=Et.useManualTiming?r.timestamp:performance.now();A=!1,Et.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(x-r.timestamp,L2),1)),r.timestamp=x,r.isProcessing=!0,i.process(r),a.process(r),u.process(r),l.process(r),g.process(r),d.process(r),f.process(r),E.process(r),r.isProcessing=!1,A&&t&&(n=!1,e(B))},h=()=>{A=!0,n=!0,r.isProcessing||e(B)};return{schedule:Vn.reduce((x,b)=>{const I=s[b];return x[b]=(v,p=!1,D=!1)=>(A||h(),I.schedule(v,p,D)),x},{}),cancel:x=>{for(let b=0;b<Vn.length;b++)s[Vn[b]].cancel(x)},state:r,steps:s}}const{schedule:fe,cancel:Ft,state:ye,steps:uo}=Sg(typeof requestAnimationFrame<"u"?requestAnimationFrame:We,!0);let er;function S2(){er=void 0}const Re={now:()=>(er===void 0&&Re.set(ye.isProcessing||Et.useManualTiming?ye.timestamp:performance.now()),er),set:e=>{er=e,queueMicrotask(S2)}},Og=e=>t=>typeof t=="string"&&t.startsWith(e),_s=Og("--"),O2=Og("var(--"),$s=e=>O2(e)?z2.test(e.split("/*")[0].trim()):!1,z2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,TA={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},sn={...TA,transform:e=>ft(0,1,e)},Gn={...TA,default:1},$A=e=>Math.round(e*1e5)/1e5,ei=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function H2(e){return e==null}const V2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ti=(e,t)=>A=>!!(typeof A=="string"&&V2.test(A)&&A.startsWith(e)||t&&!H2(A)&&Object.prototype.hasOwnProperty.call(A,t)),zg=(e,t,A)=>n=>{if(typeof n!="string")return n;const[r,o,s,i]=n.match(ei);return{[e]:parseFloat(r),[t]:parseFloat(o),[A]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}},G2=e=>ft(0,255,e),lo={...TA,transform:e=>Math.round(G2(e))},Xt={test:ti("rgb","red"),parse:zg("red","green","blue"),transform:({red:e,green:t,blue:A,alpha:n=1})=>"rgba("+lo.transform(e)+", "+lo.transform(t)+", "+lo.transform(A)+", "+$A(sn.transform(n))+")"};function Y2(e){let t="",A="",n="",r="";return e.length>5?(t=e.substring(1,3),A=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),A=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,A+=A,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(A,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}}const Xo={test:ti("#"),parse:Y2,transform:Xt.transform},vn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bt=vn("deg"),st=vn("%"),ee=vn("px"),U2=vn("vh"),W2=vn("vw"),Ha={...st,parse:e=>st.parse(e)/100,transform:e=>st.transform(e*100)},CA={test:ti("hsl","hue"),parse:zg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:A,alpha:n=1})=>"hsla("+Math.round(e)+", "+st.transform($A(t))+", "+st.transform($A(A))+", "+$A(sn.transform(n))+")"},we={test:e=>Xt.test(e)||Xo.test(e)||CA.test(e),parse:e=>Xt.test(e)?Xt.parse(e):CA.test(e)?CA.parse(e):Xo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Xt.transform(e):CA.transform(e),getAnimatableNone:e=>{const t=we.parse(e);return t.alpha=0,we.transform(t)}},X2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Z2(e){var t,A;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ei))==null?void 0:t.length)||0)+(((A=e.match(X2))==null?void 0:A.length)||0)>0}const Hg="number",Vg="color",q2="var",K2="var(",Va="${}",J2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function an(e){const t=e.toString(),A=[],n={color:[],number:[],var:[]},r=[];let o=0;const i=t.replace(J2,a=>(we.test(a)?(n.color.push(o),r.push(Vg),A.push(we.parse(a))):a.startsWith(K2)?(n.var.push(o),r.push(q2),A.push(a)):(n.number.push(o),r.push(Hg),A.push(parseFloat(a))),++o,Va)).split(Va);return{values:A,split:i,indexes:n,types:r}}function Gg(e){return an(e).values}function Yg(e){const{split:t,types:A}=an(e),n=t.length;return r=>{let o="";for(let s=0;s<n;s++)if(o+=t[s],r[s]!==void 0){const i=A[s];i===Hg?o+=$A(r[s]):i===Vg?o+=we.transform(r[s]):o+=r[s]}return o}}const _2=e=>typeof e=="number"?0:we.test(e)?we.getAnimatableNone(e):e;function $2(e){const t=Gg(e);return Yg(e)(t.map(_2))}const Pt={test:Z2,parse:Gg,createTransformer:Yg,getAnimatableNone:$2};function co(e,t,A){return A<0&&(A+=1),A>1&&(A-=1),A<1/6?e+(t-e)*6*A:A<1/2?t:A<2/3?e+(t-e)*(2/3-A)*6:e}function eh({hue:e,saturation:t,lightness:A,alpha:n}){e/=360,t/=100,A/=100;let r=0,o=0,s=0;if(!t)r=o=s=A;else{const i=A<.5?A*(1+t):A+t-A*t,a=2*A-i;r=co(a,i,e+1/3),o=co(a,i,e),s=co(a,i,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}function lr(e,t){return A=>A>0?t:e}const Ie=(e,t,A)=>e+(t-e)*A,go=(e,t,A)=>{const n=e*e,r=A*(t*t-n)+n;return r<0?0:Math.sqrt(r)},th=[Xo,Xt,CA],Ah=e=>th.find(t=>t.test(e));function Ga(e){const t=Ah(e);if(MA(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let A=t.parse(e);return t===CA&&(A=eh(A)),A}const Ya=(e,t)=>{const A=Ga(e),n=Ga(t);if(!A||!n)return lr(e,t);const r={...A};return o=>(r.red=go(A.red,n.red,o),r.green=go(A.green,n.green,o),r.blue=go(A.blue,n.blue,o),r.alpha=Ie(A.alpha,n.alpha,o),Xt.transform(r))},Zo=new Set(["none","hidden"]);function nh(e,t){return Zo.has(e)?A=>A<=0?e:t:A=>A>=1?t:e}function rh(e,t){return A=>Ie(e,t,A)}function Ai(e){return typeof e=="number"?rh:typeof e=="string"?$s(e)?lr:we.test(e)?Ya:ih:Array.isArray(e)?Ug:typeof e=="object"?we.test(e)?Ya:oh:lr}function Ug(e,t){const A=[...e],n=A.length,r=e.map((o,s)=>Ai(o)(o,t[s]));return o=>{for(let s=0;s<n;s++)A[s]=r[s](o);return A}}function oh(e,t){const A={...e,...t},n={};for(const r in A)e[r]!==void 0&&t[r]!==void 0&&(n[r]=Ai(e[r])(e[r],t[r]));return r=>{for(const o in n)A[o]=n[o](r);return A}}function sh(e,t){const A=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const o=t.types[r],s=e.indexes[o][n[o]],i=e.values[s]??0;A[r]=i,n[o]++}return A}const ih=(e,t)=>{const A=Pt.createTransformer(t),n=an(e),r=an(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?Zo.has(e)&&!r.values.length||Zo.has(t)&&!n.values.length?nh(e,t):mn(Ug(sh(n,r),r.values),A):(MA(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),lr(e,t))};function Wg(e,t,A){return typeof e=="number"&&typeof t=="number"&&typeof A=="number"?Ie(e,t,A):Ai(e)(e,t)}const ah=e=>{const t=({timestamp:A})=>e(A);return{start:(A=!0)=>fe.update(t,A),stop:()=>Ft(t),now:()=>ye.isProcessing?ye.timestamp:Re.now()}},Xg=(e,t,A=10)=>{let n="";const r=Math.max(Math.round(t/A),2);for(let o=0;o<r;o++)n+=Math.round(e(o/(r-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},cr=2e4;function ni(e){let t=0;const A=50;let n=e.next(t);for(;!n.done&&t<cr;)t+=A,n=e.next(t);return t>=cr?1/0:t}function uh(e,t=100,A){const n=A({...e,keyframes:[0,t]}),r=Math.min(ni(n),cr);return{type:"keyframes",ease:o=>n.next(r*o).value/t,duration:Ue(r)}}const lh=5;function Zg(e,t,A){const n=Math.max(t-lh,0);return Dg(A-e(n),t-n)}const Ee={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Co=.001;function ch({duration:e=Ee.duration,bounce:t=Ee.bounce,velocity:A=Ee.velocity,mass:n=Ee.mass}){let r,o;MA(e<=_e(Ee.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=ft(Ee.minDamping,Ee.maxDamping,s),e=ft(Ee.minDuration,Ee.maxDuration,Ue(e)),s<1?(r=u=>{const l=u*s,g=l*e,d=l-A,f=qo(u,s),E=Math.exp(-g);return Co-d/f*E},o=u=>{const g=u*s*e,d=g*A+A,f=Math.pow(s,2)*Math.pow(u,2)*e,E=Math.exp(-g),B=qo(Math.pow(u,2),s);return(-r(u)+Co>0?-1:1)*((d-f)*E)/B}):(r=u=>{const l=Math.exp(-u*e),g=(u-A)*e+1;return-Co+l*g},o=u=>{const l=Math.exp(-u*e),g=(A-u)*(e*e);return l*g});const i=5/e,a=dh(r,o,i);if(e=_e(e),isNaN(a))return{stiffness:Ee.stiffness,damping:Ee.damping,duration:e};{const u=Math.pow(a,2)*n;return{stiffness:u,damping:s*2*Math.sqrt(n*u),duration:e}}}const gh=12;function dh(e,t,A){let n=A;for(let r=1;r<gh;r++)n=n-e(n)/t(n);return n}function qo(e,t){return e*Math.sqrt(1-t*t)}const Ch=["duration","bounce"],fh=["stiffness","damping","mass"];function Ua(e,t){return t.some(A=>e[A]!==void 0)}function Bh(e){let t={velocity:Ee.velocity,stiffness:Ee.stiffness,damping:Ee.damping,mass:Ee.mass,isResolvedFromDuration:!1,...e};if(!Ua(e,fh)&&Ua(e,Ch))if(e.visualDuration){const A=e.visualDuration,n=2*Math.PI/(A*1.2),r=n*n,o=2*ft(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Ee.mass,stiffness:r,damping:o}}else{const A=ch(e);t={...t,...A,mass:Ee.mass},t.isResolvedFromDuration=!0}return t}function gr(e=Ee.visualDuration,t=Ee.bounce){const A=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:r}=A;const o=A.keyframes[0],s=A.keyframes[A.keyframes.length-1],i={done:!1,value:o},{stiffness:a,damping:u,mass:l,duration:g,velocity:d,isResolvedFromDuration:f}=Bh({...A,velocity:-Ue(A.velocity||0)}),E=d||0,B=u/(2*Math.sqrt(a*l)),h=s-o,Q=Ue(Math.sqrt(a/l)),m=Math.abs(h)<5;n||(n=m?Ee.restSpeed.granular:Ee.restSpeed.default),r||(r=m?Ee.restDelta.granular:Ee.restDelta.default);let x;if(B<1){const I=qo(Q,B);x=v=>{const p=Math.exp(-B*Q*v);return s-p*((E+B*Q*h)/I*Math.sin(I*v)+h*Math.cos(I*v))}}else if(B===1)x=I=>s-Math.exp(-Q*I)*(h+(E+Q*h)*I);else{const I=Q*Math.sqrt(B*B-1);x=v=>{const p=Math.exp(-B*Q*v),D=Math.min(I*v,300);return s-p*((E+B*Q*h)*Math.sinh(D)+I*h*Math.cosh(D))/I}}const b={calculatedDuration:f&&g||null,next:I=>{const v=x(I);if(f)i.done=I>=g;else{let p=I===0?E:0;B<1&&(p=I===0?_e(E):Zg(x,I,v));const D=Math.abs(p)<=n,F=Math.abs(s-v)<=r;i.done=D&&F}return i.value=i.done?s:v,i},toString:()=>{const I=Math.min(ni(b),cr),v=Xg(p=>b.next(I*p).value,I,30);return I+"ms "+v},toTransition:()=>{}};return b}gr.applyToOptions=e=>{const t=uh(e,100,gr);return e.ease=t.ease,e.duration=_e(t.duration),e.type="keyframes",e};function Ko({keyframes:e,velocity:t=0,power:A=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:i,max:a,restDelta:u=.5,restSpeed:l}){const g=e[0],d={done:!1,value:g},f=D=>i!==void 0&&D<i||a!==void 0&&D>a,E=D=>i===void 0?a:a===void 0||Math.abs(i-D)<Math.abs(a-D)?i:a;let B=A*t;const h=g+B,Q=s===void 0?h:s(h);Q!==h&&(B=Q-g);const m=D=>-B*Math.exp(-D/n),x=D=>Q+m(D),b=D=>{const F=m(D),j=x(D);d.done=Math.abs(F)<=u,d.value=d.done?Q:j};let I,v;const p=D=>{f(d.value)&&(I=D,v=gr({keyframes:[d.value,E(d.value)],velocity:Zg(x,D,d.value),damping:r,stiffness:o,restDelta:u,restSpeed:l}))};return p(0),{calculatedDuration:null,next:D=>{let F=!1;return!v&&I===void 0&&(F=!0,b(D),p(D)),I!==void 0&&D>=I?v.next(D-I):(!F&&b(D),d)}}}function Eh(e,t,A){const n=[],r=A||Et.mix||Wg,o=e.length-1;for(let s=0;s<o;s++){let i=r(e[s],e[s+1]);if(t){const a=Array.isArray(t)?t[s]||We:t;i=mn(a,i)}n.push(i)}return n}function Ih(e,t,{clamp:A=!0,ease:n,mixer:r}={}){const o=e.length;if(Bt(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=Eh(t,n,r),a=i.length,u=l=>{if(s&&l<e[0])return t[0];let g=0;if(a>1)for(;g<e.length-2&&!(l<e[g+1]);g++);const d=on(e[g],e[g+1],l);return i[g](d)};return A?l=>u(ft(e[0],e[o-1],l)):u}function Qh(e,t){const A=e[e.length-1];for(let n=1;n<=t;n++){const r=on(0,t,n);e.push(Ie(A,1,r))}}function hh(e){const t=[0];return Qh(t,e.length-1),t}function mh(e,t){return e.map(A=>A*t)}function ph(e,t){return e.map(()=>t||Rg).splice(0,e.length-1)}function fA({duration:e=300,keyframes:t,times:A,ease:n="easeInOut"}){const r=j2(n)?n.map(za):za(n),o={done:!1,value:t[0]},s=mh(A&&A.length===t.length?A:hh(t),e),i=Ih(s,t,{ease:Array.isArray(r)?r:ph(t,r)});return{calculatedDuration:e,next:a=>(o.value=i(a),o.done=a>=e,o)}}const vh=e=>e!==null;function ri(e,{repeat:t,repeatType:A="loop"},n,r=1){const o=e.filter(vh),i=r<0||t&&A!=="loop"&&t%2===1?0:o.length-1;return!i||n===void 0?o[i]:n}const wh={decay:Ko,inertia:Ko,tween:fA,keyframes:fA,spring:gr};function qg(e){typeof e.type=="string"&&(e.type=wh[e.type])}class oi{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,A){return this.finished.then(t,A)}}const xh=e=>e/100;class si extends oi{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,r;const{motionValue:A}=this.options;A&&A.updatedAt!==Re.now()&&this.tick(Re.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(n=this.options).onStop)==null||r.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;qg(t);const{type:A=fA,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=t;let{keyframes:i}=t;const a=A||fA;process.env.NODE_ENV!=="production"&&a!==fA&&Bt(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`,"spring-two-frames"),a!==fA&&typeof i[0]!="number"&&(this.mixKeyframes=mn(xh,Wg(i[0],i[1])),i=[0,100]);const u=a({...t,keyframes:i});o==="mirror"&&(this.mirroredGenerator=a({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=ni(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=u}updateTime(t){const A=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=A}tick(t,A=!1){const{generator:n,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:a}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:l,repeat:g,repeatType:d,repeatDelay:f,type:E,onUpdate:B,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),A?this.currentTime=t:this.updateTime(t);const Q=this.currentTime-u*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?Q<0:Q>r;this.currentTime=Math.max(Q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let x=this.currentTime,b=n;if(g){const D=Math.min(this.currentTime,r)/i;let F=Math.floor(D),j=D%1;!j&&D>=1&&(j=1),j===1&&F--,F=Math.min(F,g+1),!!(F%2)&&(d==="reverse"?(j=1-j,f&&(j-=f/i)):d==="mirror"&&(b=s)),x=ft(0,1,j)*i}const I=m?{done:!1,value:l[0]}:b.next(x);o&&(I.value=o(I.value));let{done:v}=I;!m&&a!==null&&(v=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const p=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&v);return p&&E!==Ko&&(I.value=ri(l,this.options,h,this.speed)),B&&B(I.value),p&&this.finish(),I}then(t,A){return this.finished.then(t,A)}get duration(){return Ue(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(this.currentTime)}set time(t){var A;t=_e(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(A=this.driver)==null||A.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Re.now());const A=this.playbackSpeed!==t;this.playbackSpeed=t,A&&(this.time=Ue(this.currentTime))}play(){var r,o;if(this.isStopped)return;const{driver:t=ah,startTime:A}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(o=(r=this.options).onPlay)==null||o.call(r);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=A??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Re.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,A;this.notifyFinished(),this.teardown(),this.state="finished",(A=(t=this.options).onComplete)==null||A.call(t)}cancel(){var t,A;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(A=(t=this.options).onCancel)==null||A.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var A;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(A=this.driver)==null||A.stop(),t.observe(this)}}function bh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Zt=e=>e*180/Math.PI,Jo=e=>{const t=Zt(Math.atan2(e[1],e[0]));return _o(t)},Dh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Jo,rotateZ:Jo,skewX:e=>Zt(Math.atan(e[1])),skewY:e=>Zt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_o=e=>(e=e%360,e<0&&(e+=360),e),Wa=Jo,Xa=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Za=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),yh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Xa,scaleY:Za,scale:e=>(Xa(e)+Za(e))/2,rotateX:e=>_o(Zt(Math.atan2(e[6],e[5]))),rotateY:e=>_o(Zt(Math.atan2(-e[2],e[0]))),rotateZ:Wa,rotate:Wa,skewX:e=>Zt(Math.atan(e[4])),skewY:e=>Zt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function $o(e){return e.includes("scale")?1:0}function es(e,t){if(!e||e==="none")return $o(t);const A=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,r;if(A)n=yh,r=A;else{const i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Dh,r=i}if(!r)return $o(t);const o=n[t],s=r[1].split(",").map(Ph);return typeof o=="function"?o(s):s[o]}const Fh=(e,t)=>{const{transform:A="none"}=getComputedStyle(e);return es(A,t)};function Ph(e){return parseFloat(e.trim())}const jA=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kA=new Set(jA),qa=e=>e===TA||e===ee,Nh=new Set(["x","y","z"]),Mh=jA.filter(e=>!Nh.has(e));function Th(e){const t=[];return Mh.forEach(A=>{const n=e.getValue(A);n!==void 0&&(t.push([A,n.get()]),n.set(A.startsWith("scale")?1:0))}),t}const Jt={width:({x:e},{paddingLeft:t="0",paddingRight:A="0"})=>e.max-e.min-parseFloat(t)-parseFloat(A),height:({y:e},{paddingTop:t="0",paddingBottom:A="0"})=>e.max-e.min-parseFloat(t)-parseFloat(A),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>es(t,"x"),y:(e,{transform:t})=>es(t,"y")};Jt.translateX=Jt.x;Jt.translateY=Jt.y;const _t=new Set;let ts=!1,As=!1,ns=!1;function Kg(){if(As){const e=Array.from(_t).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),A=new Map;t.forEach(n=>{const r=Th(n);r.length&&(A.set(n,r),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const r=A.get(n);r&&r.forEach(([o,s])=>{var i;(i=n.getValue(o))==null||i.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}As=!1,ts=!1,_t.forEach(e=>e.complete(ns)),_t.clear()}function Jg(){_t.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(As=!0)})}function jh(){ns=!0,Jg(),Kg(),ns=!1}class ii{constructor(t,A,n,r,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=A,this.name=n,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(_t.add(this),ts||(ts=!0,fe.read(Jg),fe.resolveKeyframes(Kg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:A,element:n,motionValue:r}=this;if(t[0]===null){const o=r==null?void 0:r.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(n&&A){const i=n.readValue(A,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),r&&o===void 0&&r.set(t[0])}bh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),_t.delete(this)}cancel(){this.state==="scheduled"&&(_t.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kh=e=>e.startsWith("--");function Rh(e,t,A){kh(t)?e.style.setProperty(t,A):e.style[t]=A}const Lh=Xs(()=>window.ScrollTimeline!==void 0),Sh={};function Oh(e,t){const A=Xs(e);return()=>Sh[t]??A()}const _g=Oh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),JA=([e,t,A,n])=>`cubic-bezier(${e}, ${t}, ${A}, ${n})`,Ka={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:JA([0,.65,.55,1]),circOut:JA([.55,0,1,.45]),backIn:JA([.31,.01,.66,-.59]),backOut:JA([.33,1.53,.69,.99])};function $g(e,t){if(e)return typeof e=="function"?_g()?Xg(e,t):"ease-out":Lg(e)?JA(e):Array.isArray(e)?e.map(A=>$g(A,t)||Ka.easeOut):Ka[e]}function zh(e,t,A,{delay:n=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:i="easeOut",times:a}={},u=void 0){const l={[t]:A};a&&(l.offset=a);const g=$g(i,r);Array.isArray(g)&&(l.easing=g);const d={delay:n,duration:r,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(l,d)}function ed(e){return typeof e=="function"&&"applyToOptions"in e}function Hh({type:e,...t}){return ed(e)&&_g()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Vh extends oi{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:A,name:n,keyframes:r,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:i,onComplete:a}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,Bt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Hh(t);this.animation=zh(A,n,r,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=ri(r,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(l):Rh(A,n,l),this.animation.cancel()}a==null||a(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,A;(A=(t=this.animation).finish)==null||A.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,A;this.isPseudoElement||(A=(t=this.animation).commitStyles)==null||A.call(t)}get duration(){var A,n;const t=((n=(A=this.animation.effect)==null?void 0:A.getComputedTiming)==null?void 0:n.call(A).duration)||0;return Ue(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=_e(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:A}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Lh()?(this.animation.timeline=t,We):A(this)}}const td={anticipate:Tg,backInOut:Mg,circInOut:kg};function Gh(e){return e in td}function Yh(e){typeof e.ease=="string"&&Gh(e.ease)&&(e.ease=td[e.ease])}const Ja=10;class Uh extends Vh{constructor(t){Yh(t),qg(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:A,onUpdate:n,onComplete:r,element:o,...s}=this.options;if(!A)return;if(t!==void 0){A.set(t);return}const i=new si({...s,autoplay:!1}),a=_e(this.finishedTime??this.time);A.setWithVelocity(i.sample(a-Ja).value,i.sample(a).value,Ja),i.stop()}}const _a=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pt.test(e)||e==="0")&&!e.startsWith("url("));function Wh(e){const t=e[0];if(e.length===1)return!0;for(let A=0;A<e.length;A++)if(e[A]!==t)return!0}function Xh(e,t,A,n){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=_a(r,t),i=_a(o,t);return MA(s===i,`You are trying to animate ${t} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!s||!i?!1:Wh(e)||(A==="spring"||ed(A))&&n}function rs(e){e.duration=0,e.type="keyframes"}const Zh=new Set(["opacity","clipPath","filter","transform"]),qh=Xs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Kh(e){var l;const{motionValue:t,name:A,repeatDelay:n,repeatType:r,damping:o,type:s}=e;if(!(((l=t==null?void 0:t.owner)==null?void 0:l.current)instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=t.owner.getProps();return qh()&&A&&Zh.has(A)&&(A!=="transform"||!u)&&!a&&!n&&r!=="mirror"&&o!==0&&s!=="inertia"}const Jh=40;class _h extends oi{constructor({autoplay:t=!0,delay:A=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",keyframes:i,name:a,motionValue:u,element:l,...g}){var E;super(),this.stop=()=>{var B,h;this._animation&&(this._animation.stop(),(B=this.stopTimeline)==null||B.call(this)),(h=this.keyframeResolver)==null||h.cancel()},this.createdAt=Re.now();const d={autoplay:t,delay:A,type:n,repeat:r,repeatDelay:o,repeatType:s,name:a,motionValue:u,element:l,...g},f=(l==null?void 0:l.KeyframeResolver)||ii;this.keyframeResolver=new f(i,(B,h,Q)=>this.onKeyframesResolved(B,h,d,!Q),a,u,l),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(t,A,n,r){this.keyframeResolver=void 0;const{name:o,type:s,velocity:i,delay:a,isHandoff:u,onUpdate:l}=n;this.resolvedAt=Re.now(),Xh(t,o,s,i)||((Et.instantAnimations||!a)&&(l==null||l(ri(t,n,A))),t[0]=t[t.length-1],rs(n),n.repeat=0);const d={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>Jh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:A,...n,keyframes:t},f=!u&&Kh(d)?new Uh({...d,element:d.motionValue.owner.current}):new si(d);f.finished.then(()=>this.notifyFinished()).catch(We),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,A){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),jh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const $h=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function em(e){const t=$h.exec(e);if(!t)return[,];const[,A,n,r]=t;return[`--${A??n}`,r]}const tm=4;function Ad(e,t,A=1){Bt(A<=tm,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,r]=em(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const s=o.trim();return wg(s)?parseFloat(s):s}return $s(r)?Ad(r,t,A+1):r}function ai(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const nd=new Set(["width","height","top","left","right","bottom",...jA]),Am={test:e=>e==="auto",parse:e=>e},rd=e=>t=>t.test(e),od=[TA,ee,st,bt,W2,U2,Am],$a=e=>od.find(rd(e));function nm(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bg(e):!0}const rm=new Set(["brightness","contrast","saturate","opacity"]);function om(e){const[t,A]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=A.match(ei)||[];if(!n)return e;const r=A.replace(n,"");let o=rm.has(t)?1:0;return n!==A&&(o*=100),t+"("+o+r+")"}const sm=/\b([a-z-]*)\(.*?\)/gu,os={...Pt,getAnimatableNone:e=>{const t=e.match(sm);return t?t.map(om).join(" "):e}},eu={...TA,transform:Math.round},im={rotate:bt,rotateX:bt,rotateY:bt,rotateZ:bt,scale:Gn,scaleX:Gn,scaleY:Gn,scaleZ:Gn,skew:bt,skewX:bt,skewY:bt,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:sn,originX:Ha,originY:Ha,originZ:ee},ui={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,radius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,top:ee,right:ee,bottom:ee,left:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,backgroundPositionX:ee,backgroundPositionY:ee,...im,zIndex:eu,fillOpacity:sn,strokeOpacity:sn,numOctaves:eu},am={...ui,color:we,backgroundColor:we,outlineColor:we,fill:we,stroke:we,borderColor:we,borderTopColor:we,borderRightColor:we,borderBottomColor:we,borderLeftColor:we,filter:os,WebkitFilter:os},sd=e=>am[e];function id(e,t){let A=sd(e);return A!==os&&(A=Pt),A.getAnimatableNone?A.getAnimatableNone(t):void 0}const um=new Set(["auto","none","0"]);function lm(e,t,A){let n=0,r;for(;n<e.length&&!r;){const o=e[n];typeof o=="string"&&!um.has(o)&&an(o).values.length&&(r=e[n]),n++}if(r&&A)for(const o of t)e[o]=id(A,r)}class cm extends ii{constructor(t,A,n,r,o){super(t,A,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:A,name:n}=this;if(!A||!A.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="string"&&(u=u.trim(),$s(u))){const l=Ad(u,A.current);l!==void 0&&(t[a]=l),a===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!nd.has(n)||t.length!==2)return;const[r,o]=t,s=$a(r),i=$a(o);if(s!==i)if(qa(s)&&qa(i))for(let a=0;a<t.length;a++){const u=t[a];typeof u=="string"&&(t[a]=parseFloat(u))}else Jt[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:A}=this,n=[];for(let r=0;r<t.length;r++)(t[r]===null||nm(t[r]))&&n.push(r);n.length&&lm(t,n,A)}measureInitialState(){const{element:t,unresolvedKeyframes:A,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Jt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),A[0]=this.measuredOrigin;const r=A[A.length-1];r!==void 0&&t.getValue(n,r).jump(r,!1)}measureEndState(){var i;const{element:t,name:A,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const r=t.getValue(A);r&&r.jump(this.measuredOrigin,!1);const o=n.length-1,s=n[o];n[o]=Jt[A](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(i=this.removedTransforms)!=null&&i.length&&this.removedTransforms.forEach(([a,u])=>{t.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function gm(e,t,A){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const r=(A==null?void 0:A[e])??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const ad=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ud(e){return xg(e)&&"offsetHeight"in e}const tu=30,dm=e=>!isNaN(parseFloat(e));class Cm{constructor(t,A={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{var o;const r=Re.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=A.owner}setCurrent(t){this.current=t,this.updatedAt=Re.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=dm(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&qs(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,A){this.events[t]||(this.events[t]=new Zs);const n=this.events[t].add(A);return t==="change"?()=>{n(),fe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,A){this.passiveEffect=t,this.stopPassiveEffect=A}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,A,n){this.set(A),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,A=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,A&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Re.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>tu)return 0;const A=Math.min(this.updatedAt-this.prevUpdatedAt,tu);return Dg(parseFloat(this.current)-parseFloat(this.prevFrameValue),A)}start(t){return this.stop(),new Promise(A=>{this.hasAnimated=!0,this.animation=t(A),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,A;(t=this.dependents)==null||t.clear(),(A=this.events.destroy)==null||A.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bA(e,t){return new Cm(e,t)}const{schedule:li}=Sg(queueMicrotask,!1),Ke={x:!1,y:!1};function ld(){return Ke.x||Ke.y}function fm(e){return e==="x"||e==="y"?Ke[e]?null:(Ke[e]=!0,()=>{Ke[e]=!1}):Ke.x||Ke.y?null:(Ke.x=Ke.y=!0,()=>{Ke.x=Ke.y=!1})}function cd(e,t){const A=gm(e),n=new AbortController,r={passive:!0,...t,signal:n.signal};return[A,r,()=>n.abort()]}function Au(e){return!(e.pointerType==="touch"||ld())}function Bm(e,t,A={}){const[n,r,o]=cd(e,A),s=i=>{if(!Au(i))return;const{target:a}=i,u=t(a,i);if(typeof u!="function"||!a)return;const l=g=>{Au(g)&&(u(g),a.removeEventListener("pointerleave",l))};a.addEventListener("pointerleave",l,r)};return n.forEach(i=>{i.addEventListener("pointerenter",s,r)}),o}const gd=(e,t)=>t?e===t?!0:gd(e,t.parentElement):!1,ci=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Em=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Im(e){return Em.has(e.tagName)||e.tabIndex!==-1}const tr=new WeakSet;function nu(e){return t=>{t.key==="Enter"&&e(t)}}function fo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Qm=(e,t)=>{const A=e.currentTarget;if(!A)return;const n=nu(()=>{if(tr.has(A))return;fo(A,"down");const r=nu(()=>{fo(A,"up")}),o=()=>fo(A,"cancel");A.addEventListener("keyup",r,t),A.addEventListener("blur",o,t)});A.addEventListener("keydown",n,t),A.addEventListener("blur",()=>A.removeEventListener("keydown",n),t)};function ru(e){return ci(e)&&!ld()}function hm(e,t,A={}){const[n,r,o]=cd(e,A),s=i=>{const a=i.currentTarget;if(!ru(i))return;tr.add(a);const u=t(a,i),l=(f,E)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",d),tr.has(a)&&tr.delete(a),ru(f)&&typeof u=="function"&&u(f,{success:E})},g=f=>{l(f,a===window||a===document||A.useGlobalTarget||gd(a,f.target))},d=f=>{l(f,!1)};window.addEventListener("pointerup",g,r),window.addEventListener("pointercancel",d,r)};return n.forEach(i=>{(A.useGlobalTarget?window:i).addEventListener("pointerdown",s,r),ud(i)&&(i.addEventListener("focus",u=>Qm(u,r)),!Im(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),o}function dd(e){return xg(e)&&"ownerSVGElement"in e}function mm(e){return dd(e)&&e.tagName==="svg"}const Fe=e=>!!(e&&e.getVelocity),pm=[...od,we,Pt],vm=e=>pm.find(rd(e)),gi=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ou(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wm(...e){return t=>{let A=!1;const n=e.map(r=>{const o=ou(r,t);return!A&&typeof o=="function"&&(A=!0),o});if(A)return()=>{for(let r=0;r<n.length;r++){const o=n[r];typeof o=="function"?o():ou(e[r],null)}}}}function xm(...e){return C.useCallback(wm(...e),e)}class bm extends C.Component{getSnapshotBeforeUpdate(t){const A=this.props.childRef.current;if(A&&t.isPresent&&!this.props.isPresent){const n=A.offsetParent,r=ud(n)&&n.offsetWidth||0,o=this.props.sizeRef.current;o.height=A.offsetHeight||0,o.width=A.offsetWidth||0,o.top=A.offsetTop,o.left=A.offsetLeft,o.right=r-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Dm({children:e,isPresent:t,anchorX:A,root:n}){const r=w.useId(),o=w.useRef(null),s=w.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=w.useContext(gi),a=xm(o,e==null?void 0:e.ref);return w.useInsertionEffect(()=>{const{width:u,height:l,top:g,left:d,right:f}=s.current;if(t||!o.current||!u||!l)return;const E=A==="left"?`left: ${d}`:`right: ${f}`;o.current.dataset.motionPopId=r;const B=document.createElement("style");i&&(B.nonce=i);const h=n??document.head;return h.appendChild(B),B.sheet&&B.sheet.insertRule(`
52
52
  [data-motion-pop-id="${r}"] {
53
53
  position: absolute !important;
54
54
  width: ${u}px !important;
@@ -56,7 +56,7 @@
56
56
  ${E}px !important;
57
57
  top: ${g}px !important;
58
58
  }
59
- `),()=>{h.contains(B)&&h.removeChild(B)}},[t]),c.jsx(bm,{isPresent:t,childRef:o,sizeRef:s,children:C.cloneElement(e,{ref:a})})}const ym=({children:e,initial:t,isPresent:A,onExitComplete:n,custom:r,presenceAffectsLayout:o,mode:s,anchorX:i,root:a})=>{const u=Gs(Fm),l=w.useId();let g=!0,d=w.useMemo(()=>(g=!1,{id:l,initial:t,isPresent:A,custom:r,onExitComplete:f=>{u.set(f,!0);for(const E of u.values())if(!E)return;n&&n()},register:f=>(u.set(f,!1),()=>u.delete(f))}),[A,u,n]);return o&&g&&(d={...d}),w.useMemo(()=>{u.forEach((f,E)=>u.set(E,!1))},[A]),C.useEffect(()=>{!A&&!u.size&&n&&n()},[A]),s==="popLayout"&&(e=c.jsx(Dm,{isPresent:A,anchorX:i,root:a,children:e})),c.jsx(Mr.Provider,{value:d,children:e})};function Fm(){return new Map}function Cd(e=!0){const t=w.useContext(Mr);if(t===null)return[!0,null];const{isPresent:A,onExitComplete:n,register:r}=t,o=w.useId();w.useEffect(()=>{if(e)return r(o)},[e]);const s=w.useCallback(()=>e&&n&&n(o),[o,n,e]);return!A&&n?[!1,s]:[!0]}const Yn=e=>e.key||"";function su(e){const t=[];return w.Children.forEach(e,A=>{w.isValidElement(A)&&t.push(A)}),t}const Pm=({children:e,custom:t,initial:A=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:o="sync",propagate:s=!1,anchorX:i="left",root:a})=>{const[u,l]=Cd(s),g=w.useMemo(()=>su(e),[e]),d=s&&!u?[]:g.map(Yn),f=w.useRef(!0),E=w.useRef(g),B=Gs(()=>new Map),[h,Q]=w.useState(g),[m,x]=w.useState(g);vg(()=>{f.current=!1,E.current=g;for(let v=0;v<m.length;v++){const p=Yn(m[v]);d.includes(p)?B.delete(p):B.get(p)!==!0&&B.set(p,!1)}},[m,d.length,d.join("-")]);const b=[];if(g!==h){let v=[...g];for(let p=0;p<m.length;p++){const D=m[p],F=Yn(D);d.includes(F)||(v.splice(p,0,D),b.push(D))}return o==="wait"&&b.length&&(v=b),x(su(v)),Q(g),null}process.env.NODE_ENV!=="production"&&o==="wait"&&m.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=w.useContext(Vs);return c.jsx(c.Fragment,{children:m.map(v=>{const p=Yn(v),D=s&&!u?!1:g===m||d.includes(p),F=()=>{if(B.has(p))B.set(p,!0);else return;let j=!0;B.forEach(S=>{S||(j=!1)}),j&&(I==null||I(),x(E.current),s&&(l==null||l()),n&&n())};return c.jsx(ym,{isPresent:D,initial:!f.current||A?void 0:!1,custom:t,presenceAffectsLayout:r,mode:o,root:a,onExitComplete:D?void 0:F,anchorX:i,children:v},p)})})},fd=w.createContext({strict:!1}),iu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},DA={};for(const e in iu)DA[e]={isEnabled:t=>iu[e].some(A=>!!t[A])};function Nm(e){for(const t in e)DA[t]={...DA[t],...e[t]}}const Mm=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function dr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Mm.has(e)}let Bd=e=>!dr(e);function Tm(e){typeof e=="function"&&(Bd=t=>t.startsWith("on")?!dr(t):e(t))}try{Tm(require("@emotion/is-prop-valid").default)}catch{}function jm(e,t,A){const n={};for(const r in e)r==="values"&&typeof e.values=="object"||(Bd(r)||A===!0&&dr(r)||!t&&!dr(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}const Tr=w.createContext({});function jr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function un(e){return typeof e=="string"||Array.isArray(e)}const di=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ci=["initial",...di];function kr(e){return jr(e.animate)||Ci.some(t=>un(e[t]))}function Ed(e){return!!(kr(e)||e.variants)}function km(e,t){if(kr(e)){const{initial:A,animate:n}=e;return{initial:A===!1||un(A)?A:void 0,animate:un(n)?n:void 0}}return e.inherit!==!1?t:{}}function Rm(e){const{initial:t,animate:A}=km(e,w.useContext(Tr));return w.useMemo(()=>({initial:t,animate:A}),[au(t),au(A)])}function au(e){return Array.isArray(e)?e.join(" "):e}const ln={};function Lm(e){for(const t in e)ln[t]=e[t],_s(t)&&(ln[t].isCSSVariable=!0)}function Id(e,{layout:t,layoutId:A}){return kA.has(e)||e.startsWith("origin")||(t||A!==void 0)&&(!!ln[e]||e==="opacity")}const Sm={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Om=jA.length;function zm(e,t,A){let n="",r=!0;for(let o=0;o<Om;o++){const s=jA[o],i=e[s];if(i===void 0)continue;let a=!0;if(typeof i=="number"?a=i===(s.startsWith("scale")?1:0):a=parseFloat(i)===0,!a||A){const u=ad(i,ui[s]);if(!a){r=!1;const l=Sm[s]||s;n+=`${l}(${u}) `}A&&(t[s]=u)}}return n=n.trim(),A?n=A(t,r?"":n):r&&(n="none"),n}function fi(e,t,A){const{style:n,vars:r,transformOrigin:o}=e;let s=!1,i=!1;for(const a in t){const u=t[a];if(kA.has(a)){s=!0;continue}else if(_s(a)){r[a]=u;continue}else{const l=ad(u,ui[a]);a.startsWith("origin")?(i=!0,o[a]=l):n[a]=l}}if(t.transform||(s||A?n.transform=zm(t,e.transform,A):n.transform&&(n.transform="none")),i){const{originX:a="50%",originY:u="50%",originZ:l=0}=o;n.transformOrigin=`${a} ${u} ${l}`}}const Bi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qd(e,t,A){for(const n in t)!Fe(t[n])&&!Id(n,A)&&(e[n]=t[n])}function Hm({transformTemplate:e},t){return w.useMemo(()=>{const A=Bi();return fi(A,t,e),Object.assign({},A.vars,A.style)},[t])}function Vm(e,t){const A=e.style||{},n={};return Qd(n,A,e),Object.assign(n,Hm(e,t)),n}function Gm(e,t){const A={},n=Vm(e,t);return e.drag&&e.dragListener!==!1&&(A.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(A.tabIndex=0),A.style=n,A}const Ym={offset:"stroke-dashoffset",array:"stroke-dasharray"},Um={offset:"strokeDashoffset",array:"strokeDasharray"};function Wm(e,t,A=1,n=0,r=!0){e.pathLength=1;const o=r?Ym:Um;e[o.offset]=ee.transform(-n);const s=ee.transform(t),i=ee.transform(A);e[o.array]=`${s} ${i}`}function hd(e,{attrX:t,attrY:A,attrScale:n,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...i},a,u,l){if(fi(e,i,u),a){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:d}=e;g.transform&&(d.transform=g.transform,delete g.transform),(d.transform||g.transformOrigin)&&(d.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),d.transform&&(d.transformBox=(l==null?void 0:l.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),A!==void 0&&(g.y=A),n!==void 0&&(g.scale=n),r!==void 0&&Wm(g,r,o,s,!1)}const md=()=>({...Bi(),attrs:{}}),pd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xm(e,t,A,n){const r=w.useMemo(()=>{const o=md();return hd(o,t,pd(n),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Qd(o,e.style,e),r.style={...o,...r.style}}return r}const Zm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ei(e){return typeof e!="string"||e.includes("-")?!1:!!(Zm.indexOf(e)>-1||/[A-Z]/u.test(e))}function qm(e,t,A,{latestValues:n},r,o=!1){const i=(Ei(e)?Xm:Gm)(t,n,r,e),a=jm(t,typeof e=="string",o),u=e!==w.Fragment?{...a,...i,ref:A}:{},{children:l}=t,g=w.useMemo(()=>Fe(l)?l.get():l,[l]);return w.createElement(e,{...u,children:g})}function uu(e){const t=[{},{}];return e==null||e.values.forEach((A,n)=>{t[0][n]=A.get(),t[1][n]=A.getVelocity()}),t}function Ii(e,t,A,n){if(typeof t=="function"){const[r,o]=uu(n);t=t(A!==void 0?A:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=uu(n);t=t(A!==void 0?A:e.custom,r,o)}return t}function Ar(e){return Fe(e)?e.get():e}function Km({scrapeMotionValuesFromProps:e,createRenderState:t},A,n,r){return{latestValues:Jm(A,n,r,e),renderState:t()}}function Jm(e,t,A,n){const r={},o=n(e,{});for(const d in o)r[d]=Ar(o[d]);let{initial:s,animate:i}=e;const a=kr(e),u=Ed(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let l=A?A.initial===!1:!1;l=l||s===!1;const g=l?i:s;if(g&&typeof g!="boolean"&&!jr(g)){const d=Array.isArray(g)?g:[g];for(let f=0;f<d.length;f++){const E=Ii(e,d[f]);if(E){const{transitionEnd:B,transition:h,...Q}=E;for(const m in Q){let x=Q[m];if(Array.isArray(x)){const b=l?x.length-1:0;x=x[b]}x!==null&&(r[m]=x)}for(const m in B)r[m]=B[m]}}}return r}const vd=e=>(t,A)=>{const n=w.useContext(Tr),r=w.useContext(Mr),o=()=>Km(e,t,n,r);return A?o():Gs(o)};function Qi(e,t,A){var o;const{style:n}=e,r={};for(const s in n)(Fe(n[s])||t.style&&Fe(t.style[s])||Id(s,e)||((o=A==null?void 0:A.getValue(s))==null?void 0:o.liveStyle)!==void 0)&&(r[s]=n[s]);return r}const _m=vd({scrapeMotionValuesFromProps:Qi,createRenderState:Bi});function wd(e,t,A){const n=Qi(e,t,A);for(const r in e)if(Fe(e[r])||Fe(t[r])){const o=jA.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}const $m=vd({scrapeMotionValuesFromProps:wd,createRenderState:md}),ep=Symbol.for("motionComponentSymbol");function BA(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tp(e,t,A){return w.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),A&&(typeof A=="function"?A(n):BA(A)&&(A.current=n))},[t])}const hi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ap="framerAppearId",xd="data-"+hi(Ap),bd=w.createContext({});function np(e,t,A,n,r){var B,h;const{visualElement:o}=w.useContext(Tr),s=w.useContext(fd),i=w.useContext(Mr),a=w.useContext(gi).reducedMotion,u=w.useRef(null);n=n||s.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:o,props:A,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:a}));const l=u.current,g=w.useContext(bd);l&&!l.projection&&r&&(l.type==="html"||l.type==="svg")&&rp(u.current,A,r,g);const d=w.useRef(!1);w.useInsertionEffect(()=>{l&&d.current&&l.update(A,i)});const f=A[xd],E=w.useRef(!!f&&!((B=window.MotionHandoffIsComplete)!=null&&B.call(window,f))&&((h=window.MotionHasOptimisedAnimation)==null?void 0:h.call(window,f)));return vg(()=>{l&&(d.current=!0,window.MotionIsMounted=!0,l.updateFeatures(),l.scheduleRenderMicrotask(),E.current&&l.animationState&&l.animationState.animateChanges())}),w.useEffect(()=>{l&&(!E.current&&l.animationState&&l.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var Q;(Q=window.MotionHandoffMarkAsComplete)==null||Q.call(window,f)}),E.current=!1),l.enteringChildren=void 0)}),l}function rp(e,t,A,n){const{layoutId:r,layout:o,drag:s,dragConstraints:i,layoutScroll:a,layoutRoot:u,layoutCrossfade:l}=t;e.projection=new A(e.latestValues,t["data-framer-portal-id"]?void 0:Dd(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||i&&BA(i),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,crossfade:l,layoutScroll:a,layoutRoot:u})}function Dd(e){if(e)return e.options.allowProjection!==!1?e.projection:Dd(e.parent)}function Bo(e,{forwardMotionProps:t=!1}={},A,n){A&&Nm(A);const r=Ei(e)?$m:_m;function o(i,a){let u;const l={...w.useContext(gi),...i,layoutId:op(i)},{isStatic:g}=l,d=Rm(i),f=r(i,g);if(!g&&Ys){sp(l,A);const E=ip(l);u=E.MeasureLayout,d.visualElement=np(e,f,l,n,E.ProjectionNode)}return c.jsxs(Tr.Provider,{value:d,children:[u&&d.visualElement?c.jsx(u,{visualElement:d.visualElement,...l}):null,qm(e,i,tp(f,d.visualElement,a),f,g,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=w.forwardRef(o);return s[ep]=e,s}function op({layoutId:e}){const t=w.useContext(Vs).id;return t&&e!==void 0?t+"-"+e:e}function sp(e,t){const A=w.useContext(fd).strict;if(process.env.NODE_ENV!=="production"&&t&&A){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?MA(!1,n,"lazy-strict-mode"):Bt(!1,n,"lazy-strict-mode")}}function ip(e){const{drag:t,layout:A}=DA;if(!t&&!A)return{};const n={...t,...A};return{MeasureLayout:t!=null&&t.isEnabled(e)||A!=null&&A.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function ap(e,t){if(typeof Proxy>"u")return Bo;const A=new Map,n=(o,s)=>Bo(o,s,e,t),r=(o,s)=>(process.env.NODE_ENV!=="production"&&qs(!1,"motion() is deprecated. Use motion.create() instead."),n(o,s));return new Proxy(r,{get:(o,s)=>s==="create"?n:(A.has(s)||A.set(s,Bo(s,void 0,e,t)),A.get(s))})}function yd({top:e,left:t,right:A,bottom:n}){return{x:{min:t,max:A},y:{min:e,max:n}}}function up({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lp(e,t){if(!t)return e;const A=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:A.y,left:A.x,bottom:n.y,right:n.x}}function Eo(e){return e===void 0||e===1}function ss({scale:e,scaleX:t,scaleY:A}){return!Eo(e)||!Eo(t)||!Eo(A)}function Ut(e){return ss(e)||Fd(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Fd(e){return lu(e.x)||lu(e.y)}function lu(e){return e&&e!=="0%"}function Cr(e,t,A){const n=e-A,r=t*n;return A+r}function cu(e,t,A,n,r){return r!==void 0&&(e=Cr(e,r,n)),Cr(e,A,n)+t}function is(e,t=0,A=1,n,r){e.min=cu(e.min,t,A,n,r),e.max=cu(e.max,t,A,n,r)}function Pd(e,{x:t,y:A}){is(e.x,t.translate,t.scale,t.originPoint),is(e.y,A.translate,A.scale,A.originPoint)}const gu=.999999999999,du=1.0000000000001;function cp(e,t,A,n=!1){const r=A.length;if(!r)return;t.x=t.y=1;let o,s;for(let i=0;i<r;i++){o=A[i],s=o.projectionDelta;const{visualElement:a}=o.options;a&&a.props.style&&a.props.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&IA(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Pd(e,s)),n&&Ut(o.latestValues)&&IA(e,o.latestValues))}t.x<du&&t.x>gu&&(t.x=1),t.y<du&&t.y>gu&&(t.y=1)}function EA(e,t){e.min=e.min+t,e.max=e.max+t}function Cu(e,t,A,n,r=.5){const o=Ie(e.min,e.max,r);is(e,t,A,o,n)}function IA(e,t){Cu(e.x,t.x,t.scaleX,t.scale,t.originX),Cu(e.y,t.y,t.scaleY,t.scale,t.originY)}function Nd(e,t){return yd(lp(e.getBoundingClientRect(),t))}function gp(e,t,A){const n=Nd(e,A),{scroll:r}=t;return r&&(EA(n.x,r.offset.x),EA(n.y,r.offset.y)),n}const fu=()=>({translate:0,scale:1,origin:0,originPoint:0}),QA=()=>({x:fu(),y:fu()}),Bu=()=>({min:0,max:0}),pe=()=>({x:Bu(),y:Bu()}),as={current:null},Md={current:!1};function dp(){if(Md.current=!0,!!Ys)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>as.current=e.matches;e.addEventListener("change",t),t()}else as.current=!1}const Cp=new WeakMap;function fp(e,t,A){for(const n in t){const r=t[n],o=A[n];if(Fe(r))e.addValue(n,r);else if(Fe(o))e.addValue(n,bA(r,{owner:e}));else if(o!==r)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(n);e.addValue(n,bA(s!==void 0?s:r,{owner:e}))}}for(const n in A)t[n]===void 0&&e.removeValue(n);return t}const Eu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Bp{scrapeMotionValuesFromProps(t,A,n){return{}}constructor({parent:t,props:A,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ii,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=Re.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,fe.render(this.render,!1,!0))};const{latestValues:a,renderState:u}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=A.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=A,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.blockInitialAnimation=!!o,this.isControllingVariants=kr(A),this.isVariantNode=Ed(A),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...g}=this.scrapeMotionValuesFromProps(A,{},this);for(const d in g){const f=g[d];a[d]!==void 0&&Fe(f)&&f.set(a[d])}}mount(t){var A;this.current=t,Cp.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Md.current||dp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:as.current,process.env.NODE_ENV!=="production"&&qs(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(A=this.parent)==null||A.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ft(this.notifyUpdate),Ft(this.render),this.valueSubscriptions.forEach(A=>A()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const A in this.events)this.events[A].clear();for(const A in this.features){const n=this.features[A];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,A){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=kA.has(t);n&&this.onBindTransform&&this.onBindTransform();const r=A.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&fe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,A)),this.valueSubscriptions.set(t,()=>{r(),o&&o(),A.owner&&A.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in DA){const A=DA[t];if(!A)continue;const{isEnabled:n,Feature:r}=A;if(!this.features[t]&&r&&n(this.props)&&(this.features[t]=new r(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,A){this.latestValues[t]=A}update(t,A){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=A;for(let n=0;n<Eu.length;n++){const r=Eu[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=t[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=fp(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const A=this.getClosestVariantNode();if(A)return A.variantChildren&&A.variantChildren.add(t),()=>A.variantChildren.delete(t)}addValue(t,A){const n=this.values.get(t);A!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,A),this.values.set(t,A),this.latestValues[t]=A.get())}removeValue(t){this.values.delete(t);const A=this.valueSubscriptions.get(t);A&&(A(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,A){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&A!==void 0&&(n=bA(A===null?void 0:A,{owner:this}),this.addValue(t,n)),n}readValue(t,A){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(wg(n)||bg(n))?n=parseFloat(n):!vm(n)&&Pt.test(A)&&(n=id(t,A)),this.setBaseTarget(t,Fe(n)?n.get():n)),Fe(n)?n.get():n}setBaseTarget(t,A){this.baseTarget[t]=A}getBaseTarget(t){var o;const{initial:A}=this.props;let n;if(typeof A=="string"||typeof A=="object"){const s=Ii(this.props,A,(o=this.presenceContext)==null?void 0:o.custom);s&&(n=s[t])}if(A&&n!==void 0)return n;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!Fe(r)?r:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,A){return this.events[t]||(this.events[t]=new Zs),this.events[t].add(A)}notify(t,...A){this.events[t]&&this.events[t].notify(...A)}scheduleRenderMicrotask(){li.render(this.render)}}class Td extends Bp{constructor(){super(...arguments),this.KeyframeResolver=cm}sortInstanceNodePosition(t,A){return t.compareDocumentPosition(A)&2?1:-1}getBaseTargetFromProps(t,A){return t.style?t.style[A]:void 0}removeValueFromRenderState(t,{vars:A,style:n}){delete A[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fe(t)&&(this.childSubscription=t.on("change",A=>{this.current&&(this.current.textContent=`${A}`)}))}}function jd(e,{style:t,vars:A},n,r){const o=e.style;let s;for(s in t)o[s]=t[s];r==null||r.applyProjectionStyles(o,n);for(s in A)o.setProperty(s,A[s])}function Ep(e){return window.getComputedStyle(e)}class Ip extends Td{constructor(){super(...arguments),this.type="html",this.renderInstance=jd}readValueFromInstance(t,A){var n;if(kA.has(A))return(n=this.projection)!=null&&n.isProjecting?$o(A):Fh(t,A);{const r=Ep(t),o=(_s(A)?r.getPropertyValue(A):r[A])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:A}){return Nd(t,A)}build(t,A,n){fi(t,A,n.transformTemplate)}scrapeMotionValuesFromProps(t,A,n){return Qi(t,A,n)}}const kd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Qp(e,t,A,n){jd(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(kd.has(r)?r:hi(r),t.attrs[r])}class hp extends Td{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pe}getBaseTargetFromProps(t,A){return t[A]}readValueFromInstance(t,A){if(kA.has(A)){const n=sd(A);return n&&n.default||0}return A=kd.has(A)?A:hi(A),t.getAttribute(A)}scrapeMotionValuesFromProps(t,A,n){return wd(t,A,n)}build(t,A,n){hd(t,A,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,A,n,r){Qp(t,A,n,r)}mount(t){this.isSVGTag=pd(t.tagName),super.mount(t)}}const mp=(e,t)=>Ei(e)?new hp(t):new Ip(t,{allowProjection:e!==w.Fragment});function mA(e,t,A){const n=e.getProps();return Ii(n,t,A!==void 0?A:n.custom,e)}const us=e=>Array.isArray(e);function pp(e,t,A){e.hasValue(t)?e.getValue(t).set(A):e.addValue(t,bA(A))}function vp(e){return us(e)?e[e.length-1]||0:e}function wp(e,t){const A=mA(e,t);let{transitionEnd:n={},transition:r={},...o}=A||{};o={...o,...n};for(const s in o){const i=vp(o[s]);pp(e,s,i)}}function xp(e){return!!(Fe(e)&&e.add)}function ls(e,t){const A=e.getValue("willChange");if(xp(A))return A.add(t);if(!A&&Et.WillChange){const n=new Et.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function Rd(e){return e.props[xd]}const bp=e=>e!==null;function Dp(e,{repeat:t,repeatType:A="loop"},n){const r=e.filter(bp),o=t&&A!=="loop"&&t%2===1?0:r.length-1;return r[o]}const yp={type:"spring",stiffness:500,damping:25,restSpeed:10},Fp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pp={type:"keyframes",duration:.8},Np={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mp=(e,{keyframes:t})=>t.length>2?Pp:kA.has(e)?e.startsWith("scale")?Fp(t[1]):yp:Np;function Tp({when:e,delay:t,delayChildren:A,staggerChildren:n,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:i,from:a,elapsed:u,...l}){return!!Object.keys(l).length}const mi=(e,t,A,n={},r,o)=>s=>{const i=ai(n,e)||{},a=i.delay||n.delay||0;let{elapsed:u=0}=n;u=u-_e(a);const l={keyframes:Array.isArray(A)?A:[null,A],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:d=>{t.set(d),i.onUpdate&&i.onUpdate(d)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:o?void 0:r};Tp(i)||Object.assign(l,Mp(e,l)),l.duration&&(l.duration=_e(l.duration)),l.repeatDelay&&(l.repeatDelay=_e(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let g=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(rs(l),l.delay===0&&(g=!0)),(Et.instantAnimations||Et.skipAnimations)&&(g=!0,rs(l),l.delay=0),l.allowFlatten=!i.type&&!i.ease,g&&!o&&t.get()!==void 0){const d=Dp(l.keyframes,i);if(d!==void 0){fe.update(()=>{l.onUpdate(d),l.onComplete()});return}}return i.isSync?new si(l):new _h(l)};function jp({protectedKeys:e,needsAnimating:t},A){const n=e.hasOwnProperty(A)&&t[A]!==!0;return t[A]=!1,n}function Ld(e,t,{delay:A=0,transitionOverride:n,type:r}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...i}=t;n&&(o=n);const a=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const l in i){const g=e.getValue(l,e.latestValues[l]??null),d=i[l];if(d===void 0||u&&jp(u,l))continue;const f={delay:A,...ai(o||{},l)},E=g.get();if(E!==void 0&&!g.isAnimating&&!Array.isArray(d)&&d===E&&!f.velocity)continue;let B=!1;if(window.MotionHandoffAnimation){const Q=Rd(e);if(Q){const m=window.MotionHandoffAnimation(Q,l,fe);m!==null&&(f.startTime=m,B=!0)}}ls(e,l),g.start(mi(l,g,d,e.shouldReduceMotion&&nd.has(l)?{type:!1}:f,e,B));const h=g.animation;h&&a.push(h)}return s&&Promise.all(a).then(()=>{fe.update(()=>{s&&wp(e,s)})}),a}function Sd(e,t,A,n=0,r=1){const o=Array.from(e).sort((u,l)=>u.sortNodePosition(l)).indexOf(t),s=e.size,i=(s-1)*n;return typeof A=="function"?A(o,s):r===1?o*n:i-o*n}function cs(e,t,A={}){var a;const n=mA(e,t,A.type==="exit"?(a=e.presenceContext)==null?void 0:a.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=n||{};A.transitionOverride&&(r=A.transitionOverride);const o=n?()=>Promise.all(Ld(e,n,A)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:g,staggerDirection:d}=r;return kp(e,t,u,l,g,d,A)}:()=>Promise.resolve(),{when:i}=r;if(i){const[u,l]=i==="beforeChildren"?[o,s]:[s,o];return u().then(()=>l())}else return Promise.all([o(),s(A.delay)])}function kp(e,t,A=0,n=0,r=0,o=1,s){const i=[];for(const a of e.variantChildren)a.notify("AnimationStart",t),i.push(cs(a,t,{...s,delay:A+(typeof n=="function"?0:n)+Sd(e.variantChildren,a,n,r,o)}).then(()=>a.notify("AnimationComplete",t)));return Promise.all(i)}function Rp(e,t,A={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const r=t.map(o=>cs(e,o,A));n=Promise.all(r)}else if(typeof t=="string")n=cs(e,t,A);else{const r=typeof t=="function"?mA(e,t,A.custom):t;n=Promise.all(Ld(e,r,A))}return n.then(()=>{e.notify("AnimationComplete",t)})}function Od(e,t){if(!Array.isArray(t))return!1;const A=t.length;if(A!==e.length)return!1;for(let n=0;n<A;n++)if(t[n]!==e[n])return!1;return!0}const Lp=Ci.length;function zd(e){if(!e)return;if(!e.isControllingVariants){const A=e.parent?zd(e.parent)||{}:{};return e.props.initial!==void 0&&(A.initial=e.props.initial),A}const t={};for(let A=0;A<Lp;A++){const n=Ci[A],r=e.props[n];(un(r)||r===!1)&&(t[n]=r)}return t}const Sp=[...di].reverse(),Op=di.length;function zp(e){return t=>Promise.all(t.map(({animation:A,options:n})=>Rp(e,A,n)))}function Hp(e){let t=zp(e),A=Iu(),n=!0;const r=a=>(u,l)=>{var d;const g=mA(e,l,a==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(g){const{transition:f,transitionEnd:E,...B}=g;u={...u,...B,...E}}return u};function o(a){t=a(e)}function s(a){const{props:u}=e,l=zd(e.parent)||{},g=[],d=new Set;let f={},E=1/0;for(let h=0;h<Op;h++){const Q=Sp[h],m=A[Q],x=u[Q]!==void 0?u[Q]:l[Q],b=un(x),I=Q===a?m.isActive:null;I===!1&&(E=h);let v=x===l[Q]&&x!==u[Q]&&b;if(v&&n&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...f},!m.isActive&&I===null||!x&&!m.prevProp||jr(x)||typeof x=="boolean")continue;const p=Vp(m.prevProp,x);let D=p||Q===a&&m.isActive&&!v&&b||h>E&&b,F=!1;const j=Array.isArray(x)?x:[x];let S=j.reduce(r(Q),{});I===!1&&(S={});const{prevResolvedValues:O={}}=m,M={...O,...S},y=z=>{D=!0,d.has(z)&&(F=!0,d.delete(z)),m.needsAnimating[z]=!0;const T=e.getValue(z);T&&(T.liveStyle=!1)};for(const z in M){const T=S[z],N=O[z];if(f.hasOwnProperty(z))continue;let V=!1;us(T)&&us(N)?V=!Od(T,N):V=T!==N,V?T!=null?y(z):d.add(z):T!==void 0&&d.has(z)?y(z):m.protectedKeys[z]=!0}m.prevProp=x,m.prevResolvedValues=S,m.isActive&&(f={...f,...S}),n&&e.blockInitialAnimation&&(D=!1);const k=v&&p;D&&(!k||F)&&g.push(...j.map(z=>{const T={type:Q};if(typeof z=="string"&&n&&!k&&e.manuallyAnimateOnMount&&e.parent){const{parent:N}=e,V=mA(N,z);if(N.enteringChildren&&V){const{delayChildren:_}=V.transition||{};T.delay=Sd(N.enteringChildren,e,_)}}return{animation:z,options:T}}))}if(d.size){const h={};if(typeof u.initial!="boolean"){const Q=mA(e,Array.isArray(u.initial)?u.initial[0]:u.initial);Q&&Q.transition&&(h.transition=Q.transition)}d.forEach(Q=>{const m=e.getBaseTarget(Q),x=e.getValue(Q);x&&(x.liveStyle=!0),h[Q]=m??null}),g.push({animation:h})}let B=!!g.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(B=!1),n=!1,B?t(g):Promise.resolve()}function i(a,u){var g;if(A[a].isActive===u)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(d=>{var f;return(f=d.animationState)==null?void 0:f.setActive(a,u)}),A[a].isActive=u;const l=s(a);for(const d in A)A[d].protectedKeys={};return l}return{animateChanges:s,setActive:i,setAnimateFunction:o,getState:()=>A,reset:()=>{A=Iu()}}}function Vp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Od(t,e):!1}function Gt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Iu(){return{animate:Gt(!0),whileInView:Gt(),whileHover:Gt(),whileTap:Gt(),whileDrag:Gt(),whileFocus:Gt(),exit:Gt()}}class Rt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Gp extends Rt{constructor(t){super(t),t.animationState||(t.animationState=Hp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();jr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:A}=this.node.prevProps||{};t!==A&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Yp=0;class Up extends Rt{constructor(){super(...arguments),this.id=Yp++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:A}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const r=this.node.animationState.setActive("exit",!t);A&&!t&&r.then(()=>{A(this.id)})}mount(){const{register:t,onExitComplete:A}=this.node.presenceContext||{};A&&A(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Wp={animation:{Feature:Gp},exit:{Feature:Up}};function cn(e,t,A,n={passive:!0}){return e.addEventListener(t,A,n),()=>e.removeEventListener(t,A)}function wn(e){return{point:{x:e.pageX,y:e.pageY}}}const Xp=e=>t=>ci(t)&&e(t,wn(t));function en(e,t,A,n){return cn(e,t,Xp(A),n)}const Hd=1e-4,Zp=1-Hd,qp=1+Hd,Vd=.01,Kp=0-Vd,Jp=0+Vd;function Me(e){return e.max-e.min}function _p(e,t,A){return Math.abs(e-t)<=A}function Qu(e,t,A,n=.5){e.origin=n,e.originPoint=Ie(t.min,t.max,e.origin),e.scale=Me(A)/Me(t),e.translate=Ie(A.min,A.max,e.origin)-e.originPoint,(e.scale>=Zp&&e.scale<=qp||isNaN(e.scale))&&(e.scale=1),(e.translate>=Kp&&e.translate<=Jp||isNaN(e.translate))&&(e.translate=0)}function tn(e,t,A,n){Qu(e.x,t.x,A.x,n?n.originX:void 0),Qu(e.y,t.y,A.y,n?n.originY:void 0)}function hu(e,t,A){e.min=A.min+t.min,e.max=e.min+Me(t)}function $p(e,t,A){hu(e.x,t.x,A.x),hu(e.y,t.y,A.y)}function mu(e,t,A){e.min=t.min-A.min,e.max=e.min+Me(t)}function An(e,t,A){mu(e.x,t.x,A.x),mu(e.y,t.y,A.y)}function Ye(e){return[e("x"),e("y")]}const Gd=({current:e})=>e?e.ownerDocument.defaultView:null,pu=(e,t)=>Math.abs(e-t);function e1(e,t){const A=pu(e.x,t.x),n=pu(e.y,t.y);return Math.sqrt(A**2+n**2)}class Yd{constructor(t,A,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Qo(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,E=e1(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!E)return;const{point:B}=d,{timestamp:h}=ye;this.history.push({...B,timestamp:h});const{onStart:Q,onMove:m}=this.handlers;f||(Q&&Q(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Io(f,this.transformPagePoint),fe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:E,onSessionEnd:B,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Q=Qo(d.type==="pointercancel"?this.lastMoveEventInfo:Io(f,this.transformPagePoint),this.history);this.startEvent&&E&&E(d,Q),B&&B(d,Q)},!ci(t))return;this.dragSnapToOrigin=o,this.handlers=A,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=r||window;const i=wn(t),a=Io(i,this.transformPagePoint),{point:u}=a,{timestamp:l}=ye;this.history=[{...u,timestamp:l}];const{onSessionStart:g}=A;g&&g(t,Qo(a,this.history)),this.removeListeners=mn(en(this.contextWindow,"pointermove",this.handlePointerMove),en(this.contextWindow,"pointerup",this.handlePointerUp),en(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ft(this.updatePoint)}}function Io(e,t){return t?{point:t(e.point)}:e}function vu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qo({point:e},t){return{point:e,delta:vu(e,Ud(t)),offset:vu(e,t1(t)),velocity:A1(t,.1)}}function t1(e){return e[0]}function Ud(e){return e[e.length-1]}function A1(e,t){if(e.length<2)return{x:0,y:0};let A=e.length-1,n=null;const r=Ud(e);for(;A>=0&&(n=e[A],!(r.timestamp-n.timestamp>_e(t)));)A--;if(!n)return{x:0,y:0};const o=Ue(r.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-n.x)/o,y:(r.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function n1(e,{min:t,max:A},n){return t!==void 0&&e<t?e=n?Ie(t,e,n.min):Math.max(e,t):A!==void 0&&e>A&&(e=n?Ie(A,e,n.max):Math.min(e,A)),e}function wu(e,t,A){return{min:t!==void 0?e.min+t:void 0,max:A!==void 0?e.max+A-(e.max-e.min):void 0}}function r1(e,{top:t,left:A,bottom:n,right:r}){return{x:wu(e.x,A,r),y:wu(e.y,t,n)}}function xu(e,t){let A=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([A,n]=[n,A]),{min:A,max:n}}function o1(e,t){return{x:xu(e.x,t.x),y:xu(e.y,t.y)}}function s1(e,t){let A=.5;const n=Me(e),r=Me(t);return r>n?A=on(t.min,t.max-n,e.min):n>r&&(A=on(e.min,e.max-r,t.min)),ft(0,1,A)}function i1(e,t){const A={};return t.min!==void 0&&(A.min=t.min-e.min),t.max!==void 0&&(A.max=t.max-e.min),A}const gs=.35;function a1(e=gs){return e===!1?e=0:e===!0&&(e=gs),{x:bu(e,"left","right"),y:bu(e,"top","bottom")}}function bu(e,t,A){return{min:Du(e,t),max:Du(e,A)}}function Du(e,t){return typeof e=="number"?e:e[t]||0}const u1=new WeakMap;class l1{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:A=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=g=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),A&&this.snapToCursor(wn(g).point)},s=(g,d)=>{const{drag:f,dragPropagation:E,onDragStart:B}=this.getProps();if(f&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fm(f),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ye(Q=>{let m=this.getAxisMotionValue(Q).get()||0;if(st.test(m)){const{projection:x}=this.visualElement;if(x&&x.layout){const b=x.layout.layoutBox[Q];b&&(m=Me(b)*(parseFloat(m)/100))}}this.originPoint[Q]=m}),B&&fe.postRender(()=>B(g,d)),ls(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},i=(g,d)=>{this.latestPointerEvent=g,this.latestPanInfo=d;const{dragPropagation:f,dragDirectionLock:E,onDirectionLock:B,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:Q}=d;if(E&&this.currentDirection===null){this.currentDirection=c1(Q),this.currentDirection!==null&&B&&B(this.currentDirection);return}this.updateAxis("x",d.point,Q),this.updateAxis("y",d.point,Q),this.visualElement.render(),h&&h(g,d)},a=(g,d)=>{this.latestPointerEvent=g,this.latestPanInfo=d,this.stop(g,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ye(g=>{var d;return this.getAnimationState(g)==="paused"&&((d=this.getAxisMotionValue(g).animation)==null?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Yd(t,{onSessionStart:o,onStart:s,onMove:i,onSessionEnd:a,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Gd(this.visualElement)})}stop(t,A){const n=t||this.latestPointerEvent,r=A||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!n)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&fe.postRender(()=>i(n,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:A}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),A&&A.setActive("whileDrag",!1)}updateAxis(t,A,n){const{drag:r}=this.getProps();if(!n||!Un(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=n1(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:A}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,r=this.constraints;t&&BA(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=r1(n.layoutBox,t):this.constraints=!1,this.elastic=a1(A),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ye(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=i1(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:A}=this.getProps();if(!t||!BA(t))return!1;const n=t.current;Bt(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=gp(n,r.root,this.visualElement.getTransformPagePoint());let s=o1(r.layout.layoutBox,o);if(A){const i=A(up(s));this.hasMutatedConstraints=!!i,i&&(s=yd(i))}return s}startAnimation(t){const{drag:A,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),a=this.constraints||{},u=Ye(l=>{if(!Un(l,A,this.currentDirection))return;let g=a&&a[l]||{};s&&(g={min:0,max:0});const d=r?200:1e6,f=r?40:1e7,E={type:"inertia",velocity:n?t[l]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(l,E)});return Promise.all(u).then(i)}startAxisValueAnimation(t,A){const n=this.getAxisMotionValue(t);return ls(this.visualElement,t),n.start(mi(t,n,0,A,this.visualElement,!1))}stopAnimation(){Ye(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ye(t=>{var A;return(A=this.getAxisMotionValue(t).animation)==null?void 0:A.pause()})}getAnimationState(t){var A;return(A=this.getAxisMotionValue(t).animation)==null?void 0:A.state}getAxisMotionValue(t){const A=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),r=n[A];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Ye(A=>{const{drag:n}=this.getProps();if(!Un(A,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(A);if(r&&r.layout){const{min:s,max:i}=r.layout.layoutBox[A];o.set(t[A]-Ie(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:A}=this.getProps(),{projection:n}=this.visualElement;if(!BA(A)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ye(s=>{const i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){const a=i.get();r[s]=s1({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ye(s=>{if(!Un(s,t,null))return;const i=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];i.set(Ie(a,u,r[s]))})}addListeners(){if(!this.visualElement.current)return;u1.set(this.visualElement,this);const t=this.visualElement.current,A=en(t,"pointerdown",a=>{const{drag:u,dragListener:l=!0}=this.getProps();u&&l&&this.start(a)}),n=()=>{const{dragConstraints:a}=this.getProps();BA(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),fe.read(n);const s=cn(window,"resize",()=>this.scalePositionWithinConstraints()),i=r.addEventListener("didUpdate",(({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ye(l=>{const g=this.getAxisMotionValue(l);g&&(this.originPoint[l]+=a[l].translate,g.set(g.get()+a[l].translate))}),this.visualElement.render())}));return()=>{s(),A(),o(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:A=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=gs,dragMomentum:i=!0}=t;return{...t,drag:A,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:i}}}function Un(e,t,A){return(t===!0||t===e)&&(A===null||A===e)}function c1(e,t=10){let A=null;return Math.abs(e.y)>t?A="y":Math.abs(e.x)>t&&(A="x"),A}class g1 extends Rt{constructor(t){super(t),this.removeGroupControls=We,this.removeListeners=We,this.controls=new l1(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||We}unmount(){this.removeGroupControls(),this.removeListeners()}}const yu=e=>(t,A)=>{e&&fe.postRender(()=>e(t,A))};class d1 extends Rt{constructor(){super(...arguments),this.removePointerDownListener=We}onPointerDown(t){this.session=new Yd(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gd(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:A,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:yu(t),onStart:yu(A),onMove:n,onEnd:(o,s)=>{delete this.session,r&&fe.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=en(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const nr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const UA={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const A=Fu(e,t.target.x),n=Fu(e,t.target.y);return`${A}% ${n}%`}},C1={correct:(e,{treeScale:t,projectionDelta:A})=>{const n=e,r=Pt.parse(e);if(r.length>5)return n;const o=Pt.createTransformer(e),s=typeof r[0]!="number"?1:0,i=A.x.scale*t.x,a=A.y.scale*t.y;r[0+s]/=i,r[1+s]/=a;const u=Ie(i,a,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),o(r)}};let ho=!1;class f1 extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:A,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;Lm(B1),o&&(A.group&&A.group.add(o),n&&n.register&&r&&n.register(o),ho&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),nr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:A,visualElement:n,drag:r,isPresent:o}=this.props,{projection:s}=n;return s&&(s.isPresent=o,ho=!0,r||t.layoutDependency!==A||A===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||fe.postRender(()=>{const i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),li.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:A,switchLayoutGroup:n}=this.props,{projection:r}=t;ho=!0,r&&(r.scheduleCheckAfterUnmount(),A&&A.group&&A.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wd(e){const[t,A]=Cd(),n=w.useContext(Vs);return c.jsx(f1,{...e,layoutGroup:n,switchLayoutGroup:w.useContext(bd),isPresent:t,safeToRemove:A})}const B1={borderRadius:{...UA,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:UA,borderTopRightRadius:UA,borderBottomLeftRadius:UA,borderBottomRightRadius:UA,boxShadow:C1};function E1(e,t,A){const n=Fe(e)?e:bA(e);return n.start(mi("",n,t,A)),n.animation}const I1=(e,t)=>e.depth-t.depth;class Q1{constructor(){this.children=[],this.isDirty=!1}add(t){Us(this.children,t),this.isDirty=!0}remove(t){Ws(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(I1),this.isDirty=!1,this.children.forEach(t)}}function h1(e,t){const A=Re.now(),n=({timestamp:r})=>{const o=r-A;o>=t&&(Ft(n),e(o-t))};return fe.setup(n,!0),()=>Ft(n)}const Xd=["TopLeft","TopRight","BottomLeft","BottomRight"],m1=Xd.length,Pu=e=>typeof e=="string"?parseFloat(e):e,Nu=e=>typeof e=="number"||ee.test(e);function p1(e,t,A,n,r,o){r?(e.opacity=Ie(0,A.opacity??1,v1(n)),e.opacityExit=Ie(t.opacity??1,0,w1(n))):o&&(e.opacity=Ie(t.opacity??1,A.opacity??1,n));for(let s=0;s<m1;s++){const i=`border${Xd[s]}Radius`;let a=Mu(t,i),u=Mu(A,i);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Nu(a)===Nu(u)?(e[i]=Math.max(Ie(Pu(a),Pu(u),n),0),(st.test(u)||st.test(a))&&(e[i]+="%")):e[i]=u}(t.rotate||A.rotate)&&(e.rotate=Ie(t.rotate||0,A.rotate||0,n))}function Mu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const v1=Zd(0,.5,jg),w1=Zd(.5,.95,We);function Zd(e,t,A){return n=>n<e?0:n>t?1:A(on(e,t,n))}function Tu(e,t){e.min=t.min,e.max=t.max}function Ge(e,t){Tu(e.x,t.x),Tu(e.y,t.y)}function ju(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ku(e,t,A,n,r){return e-=t,e=Cr(e,1/A,n),r!==void 0&&(e=Cr(e,1/r,n)),e}function x1(e,t=0,A=1,n=.5,r,o=e,s=e){if(st.test(t)&&(t=parseFloat(t),t=Ie(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Ie(o.min,o.max,n);e===o&&(i-=t),e.min=ku(e.min,t,A,i,r),e.max=ku(e.max,t,A,i,r)}function Ru(e,t,[A,n,r],o,s){x1(e,t[A],t[n],t[r],t.scale,o,s)}const b1=["x","scaleX","originX"],D1=["y","scaleY","originY"];function Lu(e,t,A,n){Ru(e.x,t,b1,A?A.x:void 0,n?n.x:void 0),Ru(e.y,t,D1,A?A.y:void 0,n?n.y:void 0)}function Su(e){return e.translate===0&&e.scale===1}function qd(e){return Su(e.x)&&Su(e.y)}function Ou(e,t){return e.min===t.min&&e.max===t.max}function y1(e,t){return Ou(e.x,t.x)&&Ou(e.y,t.y)}function zu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Kd(e,t){return zu(e.x,t.x)&&zu(e.y,t.y)}function Hu(e){return Me(e.x)/Me(e.y)}function Vu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class F1{constructor(){this.members=[]}add(t){Us(this.members,t),t.scheduleRender()}remove(t){if(Ws(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const A=this.members[this.members.length-1];A&&this.promote(A)}}relegate(t){const A=this.members.findIndex(r=>t===r);if(A===0)return!1;let n;for(let r=A;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,A){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,A&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:A,resumingFrom:n}=t;A.onExitComplete&&A.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function P1(e,t,A){let n="";const r=e.x.translate/t.x,o=e.y.translate/t.y,s=(A==null?void 0:A.z)||0;if((r||o||s)&&(n=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),A){const{transformPerspective:u,rotate:l,rotateX:g,rotateY:d,skewX:f,skewY:E}=A;u&&(n=`perspective(${u}px) ${n}`),l&&(n+=`rotate(${l}deg) `),g&&(n+=`rotateX(${g}deg) `),d&&(n+=`rotateY(${d}deg) `),f&&(n+=`skewX(${f}deg) `),E&&(n+=`skewY(${E}deg) `)}const i=e.x.scale*t.x,a=e.y.scale*t.y;return(i!==1||a!==1)&&(n+=`scale(${i}, ${a})`),n||"none"}const mo=["","X","Y","Z"],N1=1e3;let M1=0;function po(e,t,A,n){const{latestValues:r}=t;r[e]&&(A[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Jd(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const A=Rd(t);if(window.MotionHasOptimisedAnimation(A,"transform")){const{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(A,"transform",fe,!(r||o))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Jd(n)}function _d({attachResizeListener:e,defaultParent:t,measureScroll:A,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(s={},i=t==null?void 0:t()){this.id=M1++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(k1),this.nodes.forEach(O1),this.nodes.forEach(z1),this.nodes.forEach(R1)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Q1)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Zs),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){const a=this.eventHandlers.get(s);a&&a.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=dd(s)&&!mm(s),this.instance=s;const{layoutId:i,layout:a,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(a||i)&&(this.isLayoutDirty=!0),e){let l,g=0;const d=()=>this.root.updateBlockedByResize=!1;fe.read(()=>{g=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==g&&(g=f,this.root.updateBlockedByResize=!0,l&&l(),l=h1(d,250),nr.hasAnimatedSinceResize&&(nr.hasAnimatedSinceResize=!1,this.nodes.forEach(Uu)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&u&&(i||a)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:g,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||u.getDefaultTransition()||U1,{onLayoutAnimationStart:B,onLayoutAnimationComplete:h}=u.getProps(),Q=!this.targetLayout||!Kd(this.targetLayout,f),m=!g&&d;if(this.options.layoutRoot||this.resumeFrom||m||g&&(Q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...ai(E,"layout"),onPlay:B,onComplete:h};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(l,m)}else g||Uu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(H1),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jd(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const g=this.path[l];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:i,layout:a}=this.options;if(i===void 0&&!a)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Yu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(S1),this.nodes.forEach(T1),this.nodes.forEach(j1)):this.nodes.forEach(Yu),this.clearAllSnapshots();const i=Re.now();ye.delta=ft(0,1e3/60,i-ye.timestamp),ye.timestamp=i,ye.isProcessing=!0,uo.update.process(ye),uo.preRender.process(ye),uo.render.process(ye),ye.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,li.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(L1),this.sharedNodes.forEach(V1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){fe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Me(this.snapshot.measuredBox.x)&&!Me(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=pe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&this.instance){const a=n(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:a,offset:A(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!qd(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;s&&this.instance&&(i||Ut(this.latestValues)||l)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const i=this.measurePageBox();let a=this.removeElementScroll(i);return s&&(a=this.removeTransform(a)),W1(a),{animationId:this.root.animationId,measuredBox:i,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:s}=this.options;if(!s)return pe();const i=s.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(X1))){const{scroll:l}=this.root;l&&(EA(i.x,l.offset.x),EA(i.y,l.offset.y))}return i}removeElementScroll(s){var a;const i=pe();if(Ge(i,s),(a=this.scroll)!=null&&a.wasRoot)return i;for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:g,options:d}=l;l!==this.root&&g&&d.layoutScroll&&(g.wasRoot&&Ge(i,s),EA(i.x,g.offset.x),EA(i.y,g.offset.y))}return i}applyTransform(s,i=!1){const a=pe();Ge(a,s);for(let u=0;u<this.path.length;u++){const l=this.path[u];!i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&IA(a,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),Ut(l.latestValues)&&IA(a,l.latestValues)}return Ut(this.latestValues)&&IA(a,this.latestValues),a}removeTransform(s){const i=pe();Ge(i,s);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!Ut(u.latestValues))continue;ss(u.latestValues)&&u.updateSnapshot();const l=pe(),g=u.measurePageBox();Ge(l,g),Lu(i,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,l)}return Ut(this.latestValues)&&Lu(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ye.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var d;const i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);const a=!!this.resumingFrom||this!==i;if(!(s||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:g}=this.options;if(!(!this.layout||!(l||g))){if(this.resolvedRelativeTargetAt=ye.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pe(),this.relativeTargetOrigin=pe(),An(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),Ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=pe(),this.targetWithTransforms=pe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$p(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ge(this.target,this.layout.layoutBox),Pd(this.target,this.targetDelta)):Ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pe(),this.relativeTargetOrigin=pe(),An(this.relativeTargetOrigin,this.target,f.target),Ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ss(this.parent.latestValues)||Fd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var E;const s=this.getLead(),i=!!this.resumingFrom||this!==s;let a=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(a=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(a=!1),this.resolvedRelativeTargetAt===ye.timestamp&&(a=!1),a)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;Ge(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,d=this.treeScale.y;cp(this.layoutCorrected,this.treeScale,this.path,i),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=pe());const{target:f}=s;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ju(this.prevProjectionDelta.x,this.projectionDelta.x),ju(this.prevProjectionDelta.y,this.projectionDelta.y)),tn(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==d||!Vu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var i;if((i=this.options.visualElement)==null||i.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=QA(),this.projectionDelta=QA(),this.projectionDeltaWithTransform=QA()}setAnimationOrigin(s,i=!1){const a=this.snapshot,u=a?a.latestValues:{},l={...this.latestValues},g=QA();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const d=pe(),f=a?a.source:void 0,E=this.layout?this.layout.source:void 0,B=f!==E,h=this.getStack(),Q=!h||h.members.length<=1,m=!!(B&&!Q&&this.options.crossfade===!0&&!this.path.some(Y1));this.animationProgress=0;let x;this.mixTargetDelta=b=>{const I=b/1e3;Wu(g.x,s.x,I),Wu(g.y,s.y,I),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(An(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),G1(this.relativeTarget,this.relativeTargetOrigin,d,I),x&&y1(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=pe()),Ge(x,this.relativeTarget)),B&&(this.animationValues=l,p1(l,u,this.latestValues,I,m,Q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var i,a,u;this.notifyListeners("animationStart"),(i=this.currentAnimation)==null||i.stop(),(u=(a=this.resumingFrom)==null?void 0:a.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fe.update(()=>{nr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bA(0)),this.currentAnimation=E1(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(N1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:i,target:a,layout:u,latestValues:l}=s;if(!(!i||!a||!u)){if(this!==s&&this.layout&&u&&$d(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||pe();const g=Me(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+g;const d=Me(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}Ge(i,a),IA(i,l),tn(this.projectionDeltaWithTransform,this.layoutCorrected,i,l)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new F1),this.sharedNodes.get(s).add(i);const u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var i;const{layoutId:s}=this.options;return s?((i=this.getStack())==null?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:s}=this.options;return s?(i=this.getStack())==null?void 0:i.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let i=!1;const{latestValues:a}=s;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(i=!0),!i)return;const u={};a.z&&po("z",s,u,this.animationValues);for(let l=0;l<mo.length;l++)po(`rotate${mo[l]}`,s,u,this.animationValues),po(`skew${mo[l]}`,s,u,this.animationValues);s.render();for(const l in u)s.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);s.scheduleRender()}applyProjectionStyles(s,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const a=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Ar(i==null?void 0:i.pointerEvents)||"",s.transform=a?a(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Ar(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!Ut(this.latestValues)&&(s.transform=a?a({},""):"none",this.hasProjected=!1);return}s.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let g=P1(this.projectionDeltaWithTransform,this.treeScale,l);a&&(g=a(l,g)),s.transform=g;const{x:d,y:f}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,u.animationValues?s.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:s.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const E in ln){if(l[E]===void 0)continue;const{correct:B,applyTo:h,isCSSVariable:Q}=ln[E],m=g==="none"?l[E]:B(l[E],u);if(h){const x=h.length;for(let b=0;b<x;b++)s[h[b]]=m}else Q?this.options.visualElement.renderState.vars[E]=m:s[E]=m}this.options.layoutId&&(s.pointerEvents=u===this?Ar(i==null?void 0:i.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)==null?void 0:i.stop()}),this.root.nodes.forEach(Gu),this.root.sharedNodes.clear()}}}function T1(e){e.updateLayout()}function j1(e){var A;const t=((A=e.resumeFrom)==null?void 0:A.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?Ye(g=>{const d=s?t.measuredBox[g]:t.layoutBox[g],f=Me(d);d.min=n[g].min,d.max=d.min+f}):$d(o,t.layoutBox,n)&&Ye(g=>{const d=s?t.measuredBox[g]:t.layoutBox[g],f=Me(n[g]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+f)});const i=QA();tn(i,n,t.layoutBox);const a=QA();s?tn(a,e.applyTransform(r,!0),t.measuredBox):tn(a,n,t.layoutBox);const u=!qd(i);let l=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:d,layout:f}=g;if(d&&f){const E=pe();An(E,t.layoutBox,d.layoutBox);const B=pe();An(B,n,f.layoutBox),Kd(E,B)||(l=!0),g.options.layoutRoot&&(e.relativeTarget=B,e.relativeTargetOrigin=E,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function k1(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function R1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function L1(e){e.clearSnapshot()}function Gu(e){e.clearMeasurements()}function Yu(e){e.isLayoutDirty=!1}function S1(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function O1(e){e.resolveTargetDelta()}function z1(e){e.calcProjection()}function H1(e){e.resetSkewAndRotation()}function V1(e){e.removeLeadSnapshot()}function Wu(e,t,A){e.translate=Ie(t.translate,0,A),e.scale=Ie(t.scale,1,A),e.origin=t.origin,e.originPoint=t.originPoint}function Xu(e,t,A,n){e.min=Ie(t.min,A.min,n),e.max=Ie(t.max,A.max,n)}function G1(e,t,A,n){Xu(e.x,t.x,A.x,n),Xu(e.y,t.y,A.y,n)}function Y1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const U1={duration:.45,ease:[.4,0,.1,1]},Zu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qu=Zu("applewebkit/")&&!Zu("chrome/")?Math.round:We;function Ku(e){e.min=qu(e.min),e.max=qu(e.max)}function W1(e){Ku(e.x),Ku(e.y)}function $d(e,t,A){return e==="position"||e==="preserve-aspect"&&!_p(Hu(t),Hu(A),.2)}function X1(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Z1=_d({attachResizeListener:(e,t)=>cn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vo={current:void 0},eC=_d({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vo.current){const e=new Z1({});e.mount(window),e.setOptions({layoutScroll:!0}),vo.current=e}return vo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),q1={pan:{Feature:d1},drag:{Feature:g1,ProjectionNode:eC,MeasureLayout:Wd}};function Ju(e,t,A){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",A==="Start");const r="onHover"+A,o=n[r];o&&fe.postRender(()=>o(t,wn(t)))}class K1 extends Rt{mount(){const{current:t}=this.node;t&&(this.unmount=Bm(t,(A,n)=>(Ju(this.node,n,"Start"),r=>Ju(this.node,r,"End"))))}unmount(){}}class J1 extends Rt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mn(cn(this.node.current,"focus",()=>this.onFocus()),cn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _u(e,t,A){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",A==="Start");const r="onTap"+(A==="End"?"":A),o=n[r];o&&fe.postRender(()=>o(t,wn(t)))}class _1 extends Rt{mount(){const{current:t}=this.node;t&&(this.unmount=hm(t,(A,n)=>(_u(this.node,n,"Start"),(r,{success:o})=>_u(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ds=new WeakMap,wo=new WeakMap,$1=e=>{const t=ds.get(e.target);t&&t(e)},e0=e=>{e.forEach($1)};function t0({root:e,...t}){const A=e||document;wo.has(A)||wo.set(A,{});const n=wo.get(A),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(e0,{root:e,...t})),n[r]}function A0(e,t,A){const n=t0(t);return ds.set(e,A),n.observe(e),()=>{ds.delete(e),n.unobserve(e)}}const n0={some:0,all:1};class r0 extends Rt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:A,margin:n,amount:r="some",once:o}=t,s={root:A?A.current:void 0,rootMargin:n,threshold:typeof r=="number"?r:n0[r]},i=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:g}=this.node.getProps(),d=u?l:g;d&&d(a)};return A0(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:A}=this.node;["amount","margin","root"].some(o0(t,A))&&this.startObserver()}unmount(){}}function o0({viewport:e={}},{viewport:t={}}={}){return A=>e[A]!==t[A]}const s0={inView:{Feature:r0},tap:{Feature:_1},focus:{Feature:J1},hover:{Feature:K1}},i0={layout:{ProjectionNode:eC,MeasureLayout:Wd}},a0={...Wp,...s0,...q1,...i0},u0=ap(a0,mp),l0=({title:e,steps:t,isStandalone:A=!1,isOpen:n=!0,onOpenChange:r,onToggleStep:o,scenarioId:s,feddbackTitle:i,feedbackHelpfullButtonTitle:a,feedbackNotHelpfullButtonTitle:u,feedbackCommentPlaceholder:l,feedbackCancelButtonTitle:g,feedbackSubmitButtonHoverTitle:d,feedbackSubmitText:f,feedbackThankYouMessage:E,matchId:B,sendFeedback:h,showThankYou:Q,feedbackLoading:m,showFeedbackArea:x})=>{const b=t.filter(P=>P.isCompleted).length,I=t.length,v=hn(),[p,D]=w.useState(new Set),[F,j]=w.useState(new Set),[S,O]=w.useState(1),[M,y]=w.useState(!1),[k,L]=w.useState(""),z=()=>{y(P=>!P)},T=P=>{O(P)},N=({selectedFeedback:P,comment:H})=>{h==null||h({selectedFeedback:P??0,comment:H,scenarioId:s??"",matchId:B??""})},V=()=>{O(1),L(""),y(!1)},_=P=>{D(H=>{const G=new Set(H);return G.has(P)?G.delete(P):G.add(P),G})},te=P=>{j(H=>{const G=new Set(H);return G.has(P)?G.delete(P):G.add(P),G})};return c.jsx(Vo,{open:n,onOpenChange:r,children:c.jsxs("div",{className:"bg-background md:bg-secondary md:px-6 md:py-4 px-3 py-3 rounded-2xl w-full h-full flex flex-col",children:[c.jsx("style",{children:`
59
+ `),()=>{h.contains(B)&&h.removeChild(B)}},[t]),c.jsx(bm,{isPresent:t,childRef:o,sizeRef:s,children:C.cloneElement(e,{ref:a})})}const ym=({children:e,initial:t,isPresent:A,onExitComplete:n,custom:r,presenceAffectsLayout:o,mode:s,anchorX:i,root:a})=>{const u=Gs(Fm),l=w.useId();let g=!0,d=w.useMemo(()=>(g=!1,{id:l,initial:t,isPresent:A,custom:r,onExitComplete:f=>{u.set(f,!0);for(const E of u.values())if(!E)return;n&&n()},register:f=>(u.set(f,!1),()=>u.delete(f))}),[A,u,n]);return o&&g&&(d={...d}),w.useMemo(()=>{u.forEach((f,E)=>u.set(E,!1))},[A]),C.useEffect(()=>{!A&&!u.size&&n&&n()},[A]),s==="popLayout"&&(e=c.jsx(Dm,{isPresent:A,anchorX:i,root:a,children:e})),c.jsx(Mr.Provider,{value:d,children:e})};function Fm(){return new Map}function Cd(e=!0){const t=w.useContext(Mr);if(t===null)return[!0,null];const{isPresent:A,onExitComplete:n,register:r}=t,o=w.useId();w.useEffect(()=>{if(e)return r(o)},[e]);const s=w.useCallback(()=>e&&n&&n(o),[o,n,e]);return!A&&n?[!1,s]:[!0]}const Yn=e=>e.key||"";function su(e){const t=[];return w.Children.forEach(e,A=>{w.isValidElement(A)&&t.push(A)}),t}const Pm=({children:e,custom:t,initial:A=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:o="sync",propagate:s=!1,anchorX:i="left",root:a})=>{const[u,l]=Cd(s),g=w.useMemo(()=>su(e),[e]),d=s&&!u?[]:g.map(Yn),f=w.useRef(!0),E=w.useRef(g),B=Gs(()=>new Map),[h,Q]=w.useState(g),[m,x]=w.useState(g);vg(()=>{f.current=!1,E.current=g;for(let v=0;v<m.length;v++){const p=Yn(m[v]);d.includes(p)?B.delete(p):B.get(p)!==!0&&B.set(p,!1)}},[m,d.length,d.join("-")]);const b=[];if(g!==h){let v=[...g];for(let p=0;p<m.length;p++){const D=m[p],F=Yn(D);d.includes(F)||(v.splice(p,0,D),b.push(D))}return o==="wait"&&b.length&&(v=b),x(su(v)),Q(g),null}process.env.NODE_ENV!=="production"&&o==="wait"&&m.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=w.useContext(Vs);return c.jsx(c.Fragment,{children:m.map(v=>{const p=Yn(v),D=s&&!u?!1:g===m||d.includes(p),F=()=>{if(B.has(p))B.set(p,!0);else return;let j=!0;B.forEach(S=>{S||(j=!1)}),j&&(I==null||I(),x(E.current),s&&(l==null||l()),n&&n())};return c.jsx(ym,{isPresent:D,initial:!f.current||A?void 0:!1,custom:t,presenceAffectsLayout:r,mode:o,root:a,onExitComplete:D?void 0:F,anchorX:i,children:v},p)})})},fd=w.createContext({strict:!1}),iu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},DA={};for(const e in iu)DA[e]={isEnabled:t=>iu[e].some(A=>!!t[A])};function Nm(e){for(const t in e)DA[t]={...DA[t],...e[t]}}const Mm=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function dr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Mm.has(e)}let Bd=e=>!dr(e);function Tm(e){typeof e=="function"&&(Bd=t=>t.startsWith("on")?!dr(t):e(t))}try{Tm(require("@emotion/is-prop-valid").default)}catch{}function jm(e,t,A){const n={};for(const r in e)r==="values"&&typeof e.values=="object"||(Bd(r)||A===!0&&dr(r)||!t&&!dr(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}const Tr=w.createContext({});function jr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function un(e){return typeof e=="string"||Array.isArray(e)}const di=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ci=["initial",...di];function kr(e){return jr(e.animate)||Ci.some(t=>un(e[t]))}function Ed(e){return!!(kr(e)||e.variants)}function km(e,t){if(kr(e)){const{initial:A,animate:n}=e;return{initial:A===!1||un(A)?A:void 0,animate:un(n)?n:void 0}}return e.inherit!==!1?t:{}}function Rm(e){const{initial:t,animate:A}=km(e,w.useContext(Tr));return w.useMemo(()=>({initial:t,animate:A}),[au(t),au(A)])}function au(e){return Array.isArray(e)?e.join(" "):e}const ln={};function Lm(e){for(const t in e)ln[t]=e[t],_s(t)&&(ln[t].isCSSVariable=!0)}function Id(e,{layout:t,layoutId:A}){return kA.has(e)||e.startsWith("origin")||(t||A!==void 0)&&(!!ln[e]||e==="opacity")}const Sm={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Om=jA.length;function zm(e,t,A){let n="",r=!0;for(let o=0;o<Om;o++){const s=jA[o],i=e[s];if(i===void 0)continue;let a=!0;if(typeof i=="number"?a=i===(s.startsWith("scale")?1:0):a=parseFloat(i)===0,!a||A){const u=ad(i,ui[s]);if(!a){r=!1;const l=Sm[s]||s;n+=`${l}(${u}) `}A&&(t[s]=u)}}return n=n.trim(),A?n=A(t,r?"":n):r&&(n="none"),n}function fi(e,t,A){const{style:n,vars:r,transformOrigin:o}=e;let s=!1,i=!1;for(const a in t){const u=t[a];if(kA.has(a)){s=!0;continue}else if(_s(a)){r[a]=u;continue}else{const l=ad(u,ui[a]);a.startsWith("origin")?(i=!0,o[a]=l):n[a]=l}}if(t.transform||(s||A?n.transform=zm(t,e.transform,A):n.transform&&(n.transform="none")),i){const{originX:a="50%",originY:u="50%",originZ:l=0}=o;n.transformOrigin=`${a} ${u} ${l}`}}const Bi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qd(e,t,A){for(const n in t)!Fe(t[n])&&!Id(n,A)&&(e[n]=t[n])}function Hm({transformTemplate:e},t){return w.useMemo(()=>{const A=Bi();return fi(A,t,e),Object.assign({},A.vars,A.style)},[t])}function Vm(e,t){const A=e.style||{},n={};return Qd(n,A,e),Object.assign(n,Hm(e,t)),n}function Gm(e,t){const A={},n=Vm(e,t);return e.drag&&e.dragListener!==!1&&(A.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(A.tabIndex=0),A.style=n,A}const Ym={offset:"stroke-dashoffset",array:"stroke-dasharray"},Um={offset:"strokeDashoffset",array:"strokeDasharray"};function Wm(e,t,A=1,n=0,r=!0){e.pathLength=1;const o=r?Ym:Um;e[o.offset]=ee.transform(-n);const s=ee.transform(t),i=ee.transform(A);e[o.array]=`${s} ${i}`}function hd(e,{attrX:t,attrY:A,attrScale:n,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...i},a,u,l){if(fi(e,i,u),a){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:d}=e;g.transform&&(d.transform=g.transform,delete g.transform),(d.transform||g.transformOrigin)&&(d.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),d.transform&&(d.transformBox=(l==null?void 0:l.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),A!==void 0&&(g.y=A),n!==void 0&&(g.scale=n),r!==void 0&&Wm(g,r,o,s,!1)}const md=()=>({...Bi(),attrs:{}}),pd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xm(e,t,A,n){const r=w.useMemo(()=>{const o=md();return hd(o,t,pd(n),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Qd(o,e.style,e),r.style={...o,...r.style}}return r}const Zm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ei(e){return typeof e!="string"||e.includes("-")?!1:!!(Zm.indexOf(e)>-1||/[A-Z]/u.test(e))}function qm(e,t,A,{latestValues:n},r,o=!1){const i=(Ei(e)?Xm:Gm)(t,n,r,e),a=jm(t,typeof e=="string",o),u=e!==w.Fragment?{...a,...i,ref:A}:{},{children:l}=t,g=w.useMemo(()=>Fe(l)?l.get():l,[l]);return w.createElement(e,{...u,children:g})}function uu(e){const t=[{},{}];return e==null||e.values.forEach((A,n)=>{t[0][n]=A.get(),t[1][n]=A.getVelocity()}),t}function Ii(e,t,A,n){if(typeof t=="function"){const[r,o]=uu(n);t=t(A!==void 0?A:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=uu(n);t=t(A!==void 0?A:e.custom,r,o)}return t}function Ar(e){return Fe(e)?e.get():e}function Km({scrapeMotionValuesFromProps:e,createRenderState:t},A,n,r){return{latestValues:Jm(A,n,r,e),renderState:t()}}function Jm(e,t,A,n){const r={},o=n(e,{});for(const d in o)r[d]=Ar(o[d]);let{initial:s,animate:i}=e;const a=kr(e),u=Ed(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let l=A?A.initial===!1:!1;l=l||s===!1;const g=l?i:s;if(g&&typeof g!="boolean"&&!jr(g)){const d=Array.isArray(g)?g:[g];for(let f=0;f<d.length;f++){const E=Ii(e,d[f]);if(E){const{transitionEnd:B,transition:h,...Q}=E;for(const m in Q){let x=Q[m];if(Array.isArray(x)){const b=l?x.length-1:0;x=x[b]}x!==null&&(r[m]=x)}for(const m in B)r[m]=B[m]}}}return r}const vd=e=>(t,A)=>{const n=w.useContext(Tr),r=w.useContext(Mr),o=()=>Km(e,t,n,r);return A?o():Gs(o)};function Qi(e,t,A){var o;const{style:n}=e,r={};for(const s in n)(Fe(n[s])||t.style&&Fe(t.style[s])||Id(s,e)||((o=A==null?void 0:A.getValue(s))==null?void 0:o.liveStyle)!==void 0)&&(r[s]=n[s]);return r}const _m=vd({scrapeMotionValuesFromProps:Qi,createRenderState:Bi});function wd(e,t,A){const n=Qi(e,t,A);for(const r in e)if(Fe(e[r])||Fe(t[r])){const o=jA.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}const $m=vd({scrapeMotionValuesFromProps:wd,createRenderState:md}),ep=Symbol.for("motionComponentSymbol");function BA(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tp(e,t,A){return w.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),A&&(typeof A=="function"?A(n):BA(A)&&(A.current=n))},[t])}const hi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ap="framerAppearId",xd="data-"+hi(Ap),bd=w.createContext({});function np(e,t,A,n,r){var B,h;const{visualElement:o}=w.useContext(Tr),s=w.useContext(fd),i=w.useContext(Mr),a=w.useContext(gi).reducedMotion,u=w.useRef(null);n=n||s.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:o,props:A,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:a}));const l=u.current,g=w.useContext(bd);l&&!l.projection&&r&&(l.type==="html"||l.type==="svg")&&rp(u.current,A,r,g);const d=w.useRef(!1);w.useInsertionEffect(()=>{l&&d.current&&l.update(A,i)});const f=A[xd],E=w.useRef(!!f&&!((B=window.MotionHandoffIsComplete)!=null&&B.call(window,f))&&((h=window.MotionHasOptimisedAnimation)==null?void 0:h.call(window,f)));return vg(()=>{l&&(d.current=!0,window.MotionIsMounted=!0,l.updateFeatures(),l.scheduleRenderMicrotask(),E.current&&l.animationState&&l.animationState.animateChanges())}),w.useEffect(()=>{l&&(!E.current&&l.animationState&&l.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var Q;(Q=window.MotionHandoffMarkAsComplete)==null||Q.call(window,f)}),E.current=!1),l.enteringChildren=void 0)}),l}function rp(e,t,A,n){const{layoutId:r,layout:o,drag:s,dragConstraints:i,layoutScroll:a,layoutRoot:u,layoutCrossfade:l}=t;e.projection=new A(e.latestValues,t["data-framer-portal-id"]?void 0:Dd(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||i&&BA(i),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,crossfade:l,layoutScroll:a,layoutRoot:u})}function Dd(e){if(e)return e.options.allowProjection!==!1?e.projection:Dd(e.parent)}function Bo(e,{forwardMotionProps:t=!1}={},A,n){A&&Nm(A);const r=Ei(e)?$m:_m;function o(i,a){let u;const l={...w.useContext(gi),...i,layoutId:op(i)},{isStatic:g}=l,d=Rm(i),f=r(i,g);if(!g&&Ys){sp(l,A);const E=ip(l);u=E.MeasureLayout,d.visualElement=np(e,f,l,n,E.ProjectionNode)}return c.jsxs(Tr.Provider,{value:d,children:[u&&d.visualElement?c.jsx(u,{visualElement:d.visualElement,...l}):null,qm(e,i,tp(f,d.visualElement,a),f,g,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=w.forwardRef(o);return s[ep]=e,s}function op({layoutId:e}){const t=w.useContext(Vs).id;return t&&e!==void 0?t+"-"+e:e}function sp(e,t){const A=w.useContext(fd).strict;if(process.env.NODE_ENV!=="production"&&t&&A){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?MA(!1,n,"lazy-strict-mode"):Bt(!1,n,"lazy-strict-mode")}}function ip(e){const{drag:t,layout:A}=DA;if(!t&&!A)return{};const n={...t,...A};return{MeasureLayout:t!=null&&t.isEnabled(e)||A!=null&&A.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function ap(e,t){if(typeof Proxy>"u")return Bo;const A=new Map,n=(o,s)=>Bo(o,s,e,t),r=(o,s)=>(process.env.NODE_ENV!=="production"&&qs(!1,"motion() is deprecated. Use motion.create() instead."),n(o,s));return new Proxy(r,{get:(o,s)=>s==="create"?n:(A.has(s)||A.set(s,Bo(s,void 0,e,t)),A.get(s))})}function yd({top:e,left:t,right:A,bottom:n}){return{x:{min:t,max:A},y:{min:e,max:n}}}function up({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lp(e,t){if(!t)return e;const A=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:A.y,left:A.x,bottom:n.y,right:n.x}}function Eo(e){return e===void 0||e===1}function ss({scale:e,scaleX:t,scaleY:A}){return!Eo(e)||!Eo(t)||!Eo(A)}function Ut(e){return ss(e)||Fd(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Fd(e){return lu(e.x)||lu(e.y)}function lu(e){return e&&e!=="0%"}function Cr(e,t,A){const n=e-A,r=t*n;return A+r}function cu(e,t,A,n,r){return r!==void 0&&(e=Cr(e,r,n)),Cr(e,A,n)+t}function is(e,t=0,A=1,n,r){e.min=cu(e.min,t,A,n,r),e.max=cu(e.max,t,A,n,r)}function Pd(e,{x:t,y:A}){is(e.x,t.translate,t.scale,t.originPoint),is(e.y,A.translate,A.scale,A.originPoint)}const gu=.999999999999,du=1.0000000000001;function cp(e,t,A,n=!1){const r=A.length;if(!r)return;t.x=t.y=1;let o,s;for(let i=0;i<r;i++){o=A[i],s=o.projectionDelta;const{visualElement:a}=o.options;a&&a.props.style&&a.props.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&IA(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Pd(e,s)),n&&Ut(o.latestValues)&&IA(e,o.latestValues))}t.x<du&&t.x>gu&&(t.x=1),t.y<du&&t.y>gu&&(t.y=1)}function EA(e,t){e.min=e.min+t,e.max=e.max+t}function Cu(e,t,A,n,r=.5){const o=Ie(e.min,e.max,r);is(e,t,A,o,n)}function IA(e,t){Cu(e.x,t.x,t.scaleX,t.scale,t.originX),Cu(e.y,t.y,t.scaleY,t.scale,t.originY)}function Nd(e,t){return yd(lp(e.getBoundingClientRect(),t))}function gp(e,t,A){const n=Nd(e,A),{scroll:r}=t;return r&&(EA(n.x,r.offset.x),EA(n.y,r.offset.y)),n}const fu=()=>({translate:0,scale:1,origin:0,originPoint:0}),QA=()=>({x:fu(),y:fu()}),Bu=()=>({min:0,max:0}),pe=()=>({x:Bu(),y:Bu()}),as={current:null},Md={current:!1};function dp(){if(Md.current=!0,!!Ys)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>as.current=e.matches;e.addEventListener("change",t),t()}else as.current=!1}const Cp=new WeakMap;function fp(e,t,A){for(const n in t){const r=t[n],o=A[n];if(Fe(r))e.addValue(n,r);else if(Fe(o))e.addValue(n,bA(r,{owner:e}));else if(o!==r)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(n);e.addValue(n,bA(s!==void 0?s:r,{owner:e}))}}for(const n in A)t[n]===void 0&&e.removeValue(n);return t}const Eu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Bp{scrapeMotionValuesFromProps(t,A,n){return{}}constructor({parent:t,props:A,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ii,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=Re.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,fe.render(this.render,!1,!0))};const{latestValues:a,renderState:u}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=A.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=A,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.blockInitialAnimation=!!o,this.isControllingVariants=kr(A),this.isVariantNode=Ed(A),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...g}=this.scrapeMotionValuesFromProps(A,{},this);for(const d in g){const f=g[d];a[d]!==void 0&&Fe(f)&&f.set(a[d])}}mount(t){var A;this.current=t,Cp.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Md.current||dp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:as.current,process.env.NODE_ENV!=="production"&&qs(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(A=this.parent)==null||A.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ft(this.notifyUpdate),Ft(this.render),this.valueSubscriptions.forEach(A=>A()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const A in this.events)this.events[A].clear();for(const A in this.features){const n=this.features[A];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,A){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=kA.has(t);n&&this.onBindTransform&&this.onBindTransform();const r=A.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&fe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,A)),this.valueSubscriptions.set(t,()=>{r(),o&&o(),A.owner&&A.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in DA){const A=DA[t];if(!A)continue;const{isEnabled:n,Feature:r}=A;if(!this.features[t]&&r&&n(this.props)&&(this.features[t]=new r(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,A){this.latestValues[t]=A}update(t,A){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=A;for(let n=0;n<Eu.length;n++){const r=Eu[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=t[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=fp(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const A=this.getClosestVariantNode();if(A)return A.variantChildren&&A.variantChildren.add(t),()=>A.variantChildren.delete(t)}addValue(t,A){const n=this.values.get(t);A!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,A),this.values.set(t,A),this.latestValues[t]=A.get())}removeValue(t){this.values.delete(t);const A=this.valueSubscriptions.get(t);A&&(A(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,A){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&A!==void 0&&(n=bA(A===null?void 0:A,{owner:this}),this.addValue(t,n)),n}readValue(t,A){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(wg(n)||bg(n))?n=parseFloat(n):!vm(n)&&Pt.test(A)&&(n=id(t,A)),this.setBaseTarget(t,Fe(n)?n.get():n)),Fe(n)?n.get():n}setBaseTarget(t,A){this.baseTarget[t]=A}getBaseTarget(t){var o;const{initial:A}=this.props;let n;if(typeof A=="string"||typeof A=="object"){const s=Ii(this.props,A,(o=this.presenceContext)==null?void 0:o.custom);s&&(n=s[t])}if(A&&n!==void 0)return n;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!Fe(r)?r:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,A){return this.events[t]||(this.events[t]=new Zs),this.events[t].add(A)}notify(t,...A){this.events[t]&&this.events[t].notify(...A)}scheduleRenderMicrotask(){li.render(this.render)}}class Td extends Bp{constructor(){super(...arguments),this.KeyframeResolver=cm}sortInstanceNodePosition(t,A){return t.compareDocumentPosition(A)&2?1:-1}getBaseTargetFromProps(t,A){return t.style?t.style[A]:void 0}removeValueFromRenderState(t,{vars:A,style:n}){delete A[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fe(t)&&(this.childSubscription=t.on("change",A=>{this.current&&(this.current.textContent=`${A}`)}))}}function jd(e,{style:t,vars:A},n,r){const o=e.style;let s;for(s in t)o[s]=t[s];r==null||r.applyProjectionStyles(o,n);for(s in A)o.setProperty(s,A[s])}function Ep(e){return window.getComputedStyle(e)}class Ip extends Td{constructor(){super(...arguments),this.type="html",this.renderInstance=jd}readValueFromInstance(t,A){var n;if(kA.has(A))return(n=this.projection)!=null&&n.isProjecting?$o(A):Fh(t,A);{const r=Ep(t),o=(_s(A)?r.getPropertyValue(A):r[A])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:A}){return Nd(t,A)}build(t,A,n){fi(t,A,n.transformTemplate)}scrapeMotionValuesFromProps(t,A,n){return Qi(t,A,n)}}const kd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Qp(e,t,A,n){jd(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(kd.has(r)?r:hi(r),t.attrs[r])}class hp extends Td{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pe}getBaseTargetFromProps(t,A){return t[A]}readValueFromInstance(t,A){if(kA.has(A)){const n=sd(A);return n&&n.default||0}return A=kd.has(A)?A:hi(A),t.getAttribute(A)}scrapeMotionValuesFromProps(t,A,n){return wd(t,A,n)}build(t,A,n){hd(t,A,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,A,n,r){Qp(t,A,n,r)}mount(t){this.isSVGTag=pd(t.tagName),super.mount(t)}}const mp=(e,t)=>Ei(e)?new hp(t):new Ip(t,{allowProjection:e!==w.Fragment});function mA(e,t,A){const n=e.getProps();return Ii(n,t,A!==void 0?A:n.custom,e)}const us=e=>Array.isArray(e);function pp(e,t,A){e.hasValue(t)?e.getValue(t).set(A):e.addValue(t,bA(A))}function vp(e){return us(e)?e[e.length-1]||0:e}function wp(e,t){const A=mA(e,t);let{transitionEnd:n={},transition:r={},...o}=A||{};o={...o,...n};for(const s in o){const i=vp(o[s]);pp(e,s,i)}}function xp(e){return!!(Fe(e)&&e.add)}function ls(e,t){const A=e.getValue("willChange");if(xp(A))return A.add(t);if(!A&&Et.WillChange){const n=new Et.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function Rd(e){return e.props[xd]}const bp=e=>e!==null;function Dp(e,{repeat:t,repeatType:A="loop"},n){const r=e.filter(bp),o=t&&A!=="loop"&&t%2===1?0:r.length-1;return r[o]}const yp={type:"spring",stiffness:500,damping:25,restSpeed:10},Fp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pp={type:"keyframes",duration:.8},Np={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mp=(e,{keyframes:t})=>t.length>2?Pp:kA.has(e)?e.startsWith("scale")?Fp(t[1]):yp:Np;function Tp({when:e,delay:t,delayChildren:A,staggerChildren:n,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:i,from:a,elapsed:u,...l}){return!!Object.keys(l).length}const mi=(e,t,A,n={},r,o)=>s=>{const i=ai(n,e)||{},a=i.delay||n.delay||0;let{elapsed:u=0}=n;u=u-_e(a);const l={keyframes:Array.isArray(A)?A:[null,A],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:d=>{t.set(d),i.onUpdate&&i.onUpdate(d)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:o?void 0:r};Tp(i)||Object.assign(l,Mp(e,l)),l.duration&&(l.duration=_e(l.duration)),l.repeatDelay&&(l.repeatDelay=_e(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let g=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(rs(l),l.delay===0&&(g=!0)),(Et.instantAnimations||Et.skipAnimations)&&(g=!0,rs(l),l.delay=0),l.allowFlatten=!i.type&&!i.ease,g&&!o&&t.get()!==void 0){const d=Dp(l.keyframes,i);if(d!==void 0){fe.update(()=>{l.onUpdate(d),l.onComplete()});return}}return i.isSync?new si(l):new _h(l)};function jp({protectedKeys:e,needsAnimating:t},A){const n=e.hasOwnProperty(A)&&t[A]!==!0;return t[A]=!1,n}function Ld(e,t,{delay:A=0,transitionOverride:n,type:r}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...i}=t;n&&(o=n);const a=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const l in i){const g=e.getValue(l,e.latestValues[l]??null),d=i[l];if(d===void 0||u&&jp(u,l))continue;const f={delay:A,...ai(o||{},l)},E=g.get();if(E!==void 0&&!g.isAnimating&&!Array.isArray(d)&&d===E&&!f.velocity)continue;let B=!1;if(window.MotionHandoffAnimation){const Q=Rd(e);if(Q){const m=window.MotionHandoffAnimation(Q,l,fe);m!==null&&(f.startTime=m,B=!0)}}ls(e,l),g.start(mi(l,g,d,e.shouldReduceMotion&&nd.has(l)?{type:!1}:f,e,B));const h=g.animation;h&&a.push(h)}return s&&Promise.all(a).then(()=>{fe.update(()=>{s&&wp(e,s)})}),a}function Sd(e,t,A,n=0,r=1){const o=Array.from(e).sort((u,l)=>u.sortNodePosition(l)).indexOf(t),s=e.size,i=(s-1)*n;return typeof A=="function"?A(o,s):r===1?o*n:i-o*n}function cs(e,t,A={}){var a;const n=mA(e,t,A.type==="exit"?(a=e.presenceContext)==null?void 0:a.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=n||{};A.transitionOverride&&(r=A.transitionOverride);const o=n?()=>Promise.all(Ld(e,n,A)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:g,staggerDirection:d}=r;return kp(e,t,u,l,g,d,A)}:()=>Promise.resolve(),{when:i}=r;if(i){const[u,l]=i==="beforeChildren"?[o,s]:[s,o];return u().then(()=>l())}else return Promise.all([o(),s(A.delay)])}function kp(e,t,A=0,n=0,r=0,o=1,s){const i=[];for(const a of e.variantChildren)a.notify("AnimationStart",t),i.push(cs(a,t,{...s,delay:A+(typeof n=="function"?0:n)+Sd(e.variantChildren,a,n,r,o)}).then(()=>a.notify("AnimationComplete",t)));return Promise.all(i)}function Rp(e,t,A={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const r=t.map(o=>cs(e,o,A));n=Promise.all(r)}else if(typeof t=="string")n=cs(e,t,A);else{const r=typeof t=="function"?mA(e,t,A.custom):t;n=Promise.all(Ld(e,r,A))}return n.then(()=>{e.notify("AnimationComplete",t)})}function Od(e,t){if(!Array.isArray(t))return!1;const A=t.length;if(A!==e.length)return!1;for(let n=0;n<A;n++)if(t[n]!==e[n])return!1;return!0}const Lp=Ci.length;function zd(e){if(!e)return;if(!e.isControllingVariants){const A=e.parent?zd(e.parent)||{}:{};return e.props.initial!==void 0&&(A.initial=e.props.initial),A}const t={};for(let A=0;A<Lp;A++){const n=Ci[A],r=e.props[n];(un(r)||r===!1)&&(t[n]=r)}return t}const Sp=[...di].reverse(),Op=di.length;function zp(e){return t=>Promise.all(t.map(({animation:A,options:n})=>Rp(e,A,n)))}function Hp(e){let t=zp(e),A=Iu(),n=!0;const r=a=>(u,l)=>{var d;const g=mA(e,l,a==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(g){const{transition:f,transitionEnd:E,...B}=g;u={...u,...B,...E}}return u};function o(a){t=a(e)}function s(a){const{props:u}=e,l=zd(e.parent)||{},g=[],d=new Set;let f={},E=1/0;for(let h=0;h<Op;h++){const Q=Sp[h],m=A[Q],x=u[Q]!==void 0?u[Q]:l[Q],b=un(x),I=Q===a?m.isActive:null;I===!1&&(E=h);let v=x===l[Q]&&x!==u[Q]&&b;if(v&&n&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...f},!m.isActive&&I===null||!x&&!m.prevProp||jr(x)||typeof x=="boolean")continue;const p=Vp(m.prevProp,x);let D=p||Q===a&&m.isActive&&!v&&b||h>E&&b,F=!1;const j=Array.isArray(x)?x:[x];let S=j.reduce(r(Q),{});I===!1&&(S={});const{prevResolvedValues:O={}}=m,M={...O,...S},y=z=>{D=!0,d.has(z)&&(F=!0,d.delete(z)),m.needsAnimating[z]=!0;const T=e.getValue(z);T&&(T.liveStyle=!1)};for(const z in M){const T=S[z],N=O[z];if(f.hasOwnProperty(z))continue;let V=!1;us(T)&&us(N)?V=!Od(T,N):V=T!==N,V?T!=null?y(z):d.add(z):T!==void 0&&d.has(z)?y(z):m.protectedKeys[z]=!0}m.prevProp=x,m.prevResolvedValues=S,m.isActive&&(f={...f,...S}),n&&e.blockInitialAnimation&&(D=!1);const k=v&&p;D&&(!k||F)&&g.push(...j.map(z=>{const T={type:Q};if(typeof z=="string"&&n&&!k&&e.manuallyAnimateOnMount&&e.parent){const{parent:N}=e,V=mA(N,z);if(N.enteringChildren&&V){const{delayChildren:_}=V.transition||{};T.delay=Sd(N.enteringChildren,e,_)}}return{animation:z,options:T}}))}if(d.size){const h={};if(typeof u.initial!="boolean"){const Q=mA(e,Array.isArray(u.initial)?u.initial[0]:u.initial);Q&&Q.transition&&(h.transition=Q.transition)}d.forEach(Q=>{const m=e.getBaseTarget(Q),x=e.getValue(Q);x&&(x.liveStyle=!0),h[Q]=m??null}),g.push({animation:h})}let B=!!g.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(B=!1),n=!1,B?t(g):Promise.resolve()}function i(a,u){var g;if(A[a].isActive===u)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(d=>{var f;return(f=d.animationState)==null?void 0:f.setActive(a,u)}),A[a].isActive=u;const l=s(a);for(const d in A)A[d].protectedKeys={};return l}return{animateChanges:s,setActive:i,setAnimateFunction:o,getState:()=>A,reset:()=>{A=Iu()}}}function Vp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Od(t,e):!1}function Gt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Iu(){return{animate:Gt(!0),whileInView:Gt(),whileHover:Gt(),whileTap:Gt(),whileDrag:Gt(),whileFocus:Gt(),exit:Gt()}}class Rt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Gp extends Rt{constructor(t){super(t),t.animationState||(t.animationState=Hp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();jr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:A}=this.node.prevProps||{};t!==A&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Yp=0;class Up extends Rt{constructor(){super(...arguments),this.id=Yp++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:A}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const r=this.node.animationState.setActive("exit",!t);A&&!t&&r.then(()=>{A(this.id)})}mount(){const{register:t,onExitComplete:A}=this.node.presenceContext||{};A&&A(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Wp={animation:{Feature:Gp},exit:{Feature:Up}};function cn(e,t,A,n={passive:!0}){return e.addEventListener(t,A,n),()=>e.removeEventListener(t,A)}function wn(e){return{point:{x:e.pageX,y:e.pageY}}}const Xp=e=>t=>ci(t)&&e(t,wn(t));function en(e,t,A,n){return cn(e,t,Xp(A),n)}const Hd=1e-4,Zp=1-Hd,qp=1+Hd,Vd=.01,Kp=0-Vd,Jp=0+Vd;function Me(e){return e.max-e.min}function _p(e,t,A){return Math.abs(e-t)<=A}function Qu(e,t,A,n=.5){e.origin=n,e.originPoint=Ie(t.min,t.max,e.origin),e.scale=Me(A)/Me(t),e.translate=Ie(A.min,A.max,e.origin)-e.originPoint,(e.scale>=Zp&&e.scale<=qp||isNaN(e.scale))&&(e.scale=1),(e.translate>=Kp&&e.translate<=Jp||isNaN(e.translate))&&(e.translate=0)}function tn(e,t,A,n){Qu(e.x,t.x,A.x,n?n.originX:void 0),Qu(e.y,t.y,A.y,n?n.originY:void 0)}function hu(e,t,A){e.min=A.min+t.min,e.max=e.min+Me(t)}function $p(e,t,A){hu(e.x,t.x,A.x),hu(e.y,t.y,A.y)}function mu(e,t,A){e.min=t.min-A.min,e.max=e.min+Me(t)}function An(e,t,A){mu(e.x,t.x,A.x),mu(e.y,t.y,A.y)}function Ye(e){return[e("x"),e("y")]}const Gd=({current:e})=>e?e.ownerDocument.defaultView:null,pu=(e,t)=>Math.abs(e-t);function e1(e,t){const A=pu(e.x,t.x),n=pu(e.y,t.y);return Math.sqrt(A**2+n**2)}class Yd{constructor(t,A,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Qo(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,E=e1(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!E)return;const{point:B}=d,{timestamp:h}=ye;this.history.push({...B,timestamp:h});const{onStart:Q,onMove:m}=this.handlers;f||(Q&&Q(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Io(f,this.transformPagePoint),fe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:E,onSessionEnd:B,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Q=Qo(d.type==="pointercancel"?this.lastMoveEventInfo:Io(f,this.transformPagePoint),this.history);this.startEvent&&E&&E(d,Q),B&&B(d,Q)},!ci(t))return;this.dragSnapToOrigin=o,this.handlers=A,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=r||window;const i=wn(t),a=Io(i,this.transformPagePoint),{point:u}=a,{timestamp:l}=ye;this.history=[{...u,timestamp:l}];const{onSessionStart:g}=A;g&&g(t,Qo(a,this.history)),this.removeListeners=mn(en(this.contextWindow,"pointermove",this.handlePointerMove),en(this.contextWindow,"pointerup",this.handlePointerUp),en(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ft(this.updatePoint)}}function Io(e,t){return t?{point:t(e.point)}:e}function vu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qo({point:e},t){return{point:e,delta:vu(e,Ud(t)),offset:vu(e,t1(t)),velocity:A1(t,.1)}}function t1(e){return e[0]}function Ud(e){return e[e.length-1]}function A1(e,t){if(e.length<2)return{x:0,y:0};let A=e.length-1,n=null;const r=Ud(e);for(;A>=0&&(n=e[A],!(r.timestamp-n.timestamp>_e(t)));)A--;if(!n)return{x:0,y:0};const o=Ue(r.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-n.x)/o,y:(r.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function n1(e,{min:t,max:A},n){return t!==void 0&&e<t?e=n?Ie(t,e,n.min):Math.max(e,t):A!==void 0&&e>A&&(e=n?Ie(A,e,n.max):Math.min(e,A)),e}function wu(e,t,A){return{min:t!==void 0?e.min+t:void 0,max:A!==void 0?e.max+A-(e.max-e.min):void 0}}function r1(e,{top:t,left:A,bottom:n,right:r}){return{x:wu(e.x,A,r),y:wu(e.y,t,n)}}function xu(e,t){let A=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([A,n]=[n,A]),{min:A,max:n}}function o1(e,t){return{x:xu(e.x,t.x),y:xu(e.y,t.y)}}function s1(e,t){let A=.5;const n=Me(e),r=Me(t);return r>n?A=on(t.min,t.max-n,e.min):n>r&&(A=on(e.min,e.max-r,t.min)),ft(0,1,A)}function i1(e,t){const A={};return t.min!==void 0&&(A.min=t.min-e.min),t.max!==void 0&&(A.max=t.max-e.min),A}const gs=.35;function a1(e=gs){return e===!1?e=0:e===!0&&(e=gs),{x:bu(e,"left","right"),y:bu(e,"top","bottom")}}function bu(e,t,A){return{min:Du(e,t),max:Du(e,A)}}function Du(e,t){return typeof e=="number"?e:e[t]||0}const u1=new WeakMap;class l1{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:A=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=g=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),A&&this.snapToCursor(wn(g).point)},s=(g,d)=>{const{drag:f,dragPropagation:E,onDragStart:B}=this.getProps();if(f&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fm(f),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ye(Q=>{let m=this.getAxisMotionValue(Q).get()||0;if(st.test(m)){const{projection:x}=this.visualElement;if(x&&x.layout){const b=x.layout.layoutBox[Q];b&&(m=Me(b)*(parseFloat(m)/100))}}this.originPoint[Q]=m}),B&&fe.postRender(()=>B(g,d)),ls(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},i=(g,d)=>{this.latestPointerEvent=g,this.latestPanInfo=d;const{dragPropagation:f,dragDirectionLock:E,onDirectionLock:B,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:Q}=d;if(E&&this.currentDirection===null){this.currentDirection=c1(Q),this.currentDirection!==null&&B&&B(this.currentDirection);return}this.updateAxis("x",d.point,Q),this.updateAxis("y",d.point,Q),this.visualElement.render(),h&&h(g,d)},a=(g,d)=>{this.latestPointerEvent=g,this.latestPanInfo=d,this.stop(g,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ye(g=>{var d;return this.getAnimationState(g)==="paused"&&((d=this.getAxisMotionValue(g).animation)==null?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Yd(t,{onSessionStart:o,onStart:s,onMove:i,onSessionEnd:a,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Gd(this.visualElement)})}stop(t,A){const n=t||this.latestPointerEvent,r=A||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!n)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&fe.postRender(()=>i(n,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:A}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),A&&A.setActive("whileDrag",!1)}updateAxis(t,A,n){const{drag:r}=this.getProps();if(!n||!Un(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=n1(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:A}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,r=this.constraints;t&&BA(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=r1(n.layoutBox,t):this.constraints=!1,this.elastic=a1(A),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ye(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=i1(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:A}=this.getProps();if(!t||!BA(t))return!1;const n=t.current;Bt(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=gp(n,r.root,this.visualElement.getTransformPagePoint());let s=o1(r.layout.layoutBox,o);if(A){const i=A(up(s));this.hasMutatedConstraints=!!i,i&&(s=yd(i))}return s}startAnimation(t){const{drag:A,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),a=this.constraints||{},u=Ye(l=>{if(!Un(l,A,this.currentDirection))return;let g=a&&a[l]||{};s&&(g={min:0,max:0});const d=r?200:1e6,f=r?40:1e7,E={type:"inertia",velocity:n?t[l]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(l,E)});return Promise.all(u).then(i)}startAxisValueAnimation(t,A){const n=this.getAxisMotionValue(t);return ls(this.visualElement,t),n.start(mi(t,n,0,A,this.visualElement,!1))}stopAnimation(){Ye(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ye(t=>{var A;return(A=this.getAxisMotionValue(t).animation)==null?void 0:A.pause()})}getAnimationState(t){var A;return(A=this.getAxisMotionValue(t).animation)==null?void 0:A.state}getAxisMotionValue(t){const A=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),r=n[A];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Ye(A=>{const{drag:n}=this.getProps();if(!Un(A,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(A);if(r&&r.layout){const{min:s,max:i}=r.layout.layoutBox[A];o.set(t[A]-Ie(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:A}=this.getProps(),{projection:n}=this.visualElement;if(!BA(A)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ye(s=>{const i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){const a=i.get();r[s]=s1({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ye(s=>{if(!Un(s,t,null))return;const i=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];i.set(Ie(a,u,r[s]))})}addListeners(){if(!this.visualElement.current)return;u1.set(this.visualElement,this);const t=this.visualElement.current,A=en(t,"pointerdown",a=>{const{drag:u,dragListener:l=!0}=this.getProps();u&&l&&this.start(a)}),n=()=>{const{dragConstraints:a}=this.getProps();BA(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),fe.read(n);const s=cn(window,"resize",()=>this.scalePositionWithinConstraints()),i=r.addEventListener("didUpdate",(({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ye(l=>{const g=this.getAxisMotionValue(l);g&&(this.originPoint[l]+=a[l].translate,g.set(g.get()+a[l].translate))}),this.visualElement.render())}));return()=>{s(),A(),o(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:A=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=gs,dragMomentum:i=!0}=t;return{...t,drag:A,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:i}}}function Un(e,t,A){return(t===!0||t===e)&&(A===null||A===e)}function c1(e,t=10){let A=null;return Math.abs(e.y)>t?A="y":Math.abs(e.x)>t&&(A="x"),A}class g1 extends Rt{constructor(t){super(t),this.removeGroupControls=We,this.removeListeners=We,this.controls=new l1(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||We}unmount(){this.removeGroupControls(),this.removeListeners()}}const yu=e=>(t,A)=>{e&&fe.postRender(()=>e(t,A))};class d1 extends Rt{constructor(){super(...arguments),this.removePointerDownListener=We}onPointerDown(t){this.session=new Yd(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gd(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:A,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:yu(t),onStart:yu(A),onMove:n,onEnd:(o,s)=>{delete this.session,r&&fe.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=en(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const nr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const UA={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const A=Fu(e,t.target.x),n=Fu(e,t.target.y);return`${A}% ${n}%`}},C1={correct:(e,{treeScale:t,projectionDelta:A})=>{const n=e,r=Pt.parse(e);if(r.length>5)return n;const o=Pt.createTransformer(e),s=typeof r[0]!="number"?1:0,i=A.x.scale*t.x,a=A.y.scale*t.y;r[0+s]/=i,r[1+s]/=a;const u=Ie(i,a,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),o(r)}};let ho=!1;class f1 extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:A,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;Lm(B1),o&&(A.group&&A.group.add(o),n&&n.register&&r&&n.register(o),ho&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),nr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:A,visualElement:n,drag:r,isPresent:o}=this.props,{projection:s}=n;return s&&(s.isPresent=o,ho=!0,r||t.layoutDependency!==A||A===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||fe.postRender(()=>{const i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),li.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:A,switchLayoutGroup:n}=this.props,{projection:r}=t;ho=!0,r&&(r.scheduleCheckAfterUnmount(),A&&A.group&&A.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wd(e){const[t,A]=Cd(),n=w.useContext(Vs);return c.jsx(f1,{...e,layoutGroup:n,switchLayoutGroup:w.useContext(bd),isPresent:t,safeToRemove:A})}const B1={borderRadius:{...UA,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:UA,borderTopRightRadius:UA,borderBottomLeftRadius:UA,borderBottomRightRadius:UA,boxShadow:C1};function E1(e,t,A){const n=Fe(e)?e:bA(e);return n.start(mi("",n,t,A)),n.animation}const I1=(e,t)=>e.depth-t.depth;class Q1{constructor(){this.children=[],this.isDirty=!1}add(t){Us(this.children,t),this.isDirty=!0}remove(t){Ws(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(I1),this.isDirty=!1,this.children.forEach(t)}}function h1(e,t){const A=Re.now(),n=({timestamp:r})=>{const o=r-A;o>=t&&(Ft(n),e(o-t))};return fe.setup(n,!0),()=>Ft(n)}const Xd=["TopLeft","TopRight","BottomLeft","BottomRight"],m1=Xd.length,Pu=e=>typeof e=="string"?parseFloat(e):e,Nu=e=>typeof e=="number"||ee.test(e);function p1(e,t,A,n,r,o){r?(e.opacity=Ie(0,A.opacity??1,v1(n)),e.opacityExit=Ie(t.opacity??1,0,w1(n))):o&&(e.opacity=Ie(t.opacity??1,A.opacity??1,n));for(let s=0;s<m1;s++){const i=`border${Xd[s]}Radius`;let a=Mu(t,i),u=Mu(A,i);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Nu(a)===Nu(u)?(e[i]=Math.max(Ie(Pu(a),Pu(u),n),0),(st.test(u)||st.test(a))&&(e[i]+="%")):e[i]=u}(t.rotate||A.rotate)&&(e.rotate=Ie(t.rotate||0,A.rotate||0,n))}function Mu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const v1=Zd(0,.5,jg),w1=Zd(.5,.95,We);function Zd(e,t,A){return n=>n<e?0:n>t?1:A(on(e,t,n))}function Tu(e,t){e.min=t.min,e.max=t.max}function Ge(e,t){Tu(e.x,t.x),Tu(e.y,t.y)}function ju(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ku(e,t,A,n,r){return e-=t,e=Cr(e,1/A,n),r!==void 0&&(e=Cr(e,1/r,n)),e}function x1(e,t=0,A=1,n=.5,r,o=e,s=e){if(st.test(t)&&(t=parseFloat(t),t=Ie(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Ie(o.min,o.max,n);e===o&&(i-=t),e.min=ku(e.min,t,A,i,r),e.max=ku(e.max,t,A,i,r)}function Ru(e,t,[A,n,r],o,s){x1(e,t[A],t[n],t[r],t.scale,o,s)}const b1=["x","scaleX","originX"],D1=["y","scaleY","originY"];function Lu(e,t,A,n){Ru(e.x,t,b1,A?A.x:void 0,n?n.x:void 0),Ru(e.y,t,D1,A?A.y:void 0,n?n.y:void 0)}function Su(e){return e.translate===0&&e.scale===1}function qd(e){return Su(e.x)&&Su(e.y)}function Ou(e,t){return e.min===t.min&&e.max===t.max}function y1(e,t){return Ou(e.x,t.x)&&Ou(e.y,t.y)}function zu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Kd(e,t){return zu(e.x,t.x)&&zu(e.y,t.y)}function Hu(e){return Me(e.x)/Me(e.y)}function Vu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class F1{constructor(){this.members=[]}add(t){Us(this.members,t),t.scheduleRender()}remove(t){if(Ws(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const A=this.members[this.members.length-1];A&&this.promote(A)}}relegate(t){const A=this.members.findIndex(r=>t===r);if(A===0)return!1;let n;for(let r=A;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,A){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,A&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:A,resumingFrom:n}=t;A.onExitComplete&&A.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function P1(e,t,A){let n="";const r=e.x.translate/t.x,o=e.y.translate/t.y,s=(A==null?void 0:A.z)||0;if((r||o||s)&&(n=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),A){const{transformPerspective:u,rotate:l,rotateX:g,rotateY:d,skewX:f,skewY:E}=A;u&&(n=`perspective(${u}px) ${n}`),l&&(n+=`rotate(${l}deg) `),g&&(n+=`rotateX(${g}deg) `),d&&(n+=`rotateY(${d}deg) `),f&&(n+=`skewX(${f}deg) `),E&&(n+=`skewY(${E}deg) `)}const i=e.x.scale*t.x,a=e.y.scale*t.y;return(i!==1||a!==1)&&(n+=`scale(${i}, ${a})`),n||"none"}const mo=["","X","Y","Z"],N1=1e3;let M1=0;function po(e,t,A,n){const{latestValues:r}=t;r[e]&&(A[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Jd(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const A=Rd(t);if(window.MotionHasOptimisedAnimation(A,"transform")){const{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(A,"transform",fe,!(r||o))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Jd(n)}function _d({attachResizeListener:e,defaultParent:t,measureScroll:A,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(s={},i=t==null?void 0:t()){this.id=M1++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(k1),this.nodes.forEach(O1),this.nodes.forEach(z1),this.nodes.forEach(R1)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Q1)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Zs),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){const a=this.eventHandlers.get(s);a&&a.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=dd(s)&&!mm(s),this.instance=s;const{layoutId:i,layout:a,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(a||i)&&(this.isLayoutDirty=!0),e){let l,g=0;const d=()=>this.root.updateBlockedByResize=!1;fe.read(()=>{g=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==g&&(g=f,this.root.updateBlockedByResize=!0,l&&l(),l=h1(d,250),nr.hasAnimatedSinceResize&&(nr.hasAnimatedSinceResize=!1,this.nodes.forEach(Uu)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&u&&(i||a)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:g,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||u.getDefaultTransition()||U1,{onLayoutAnimationStart:B,onLayoutAnimationComplete:h}=u.getProps(),Q=!this.targetLayout||!Kd(this.targetLayout,f),m=!g&&d;if(this.options.layoutRoot||this.resumeFrom||m||g&&(Q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...ai(E,"layout"),onPlay:B,onComplete:h};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(l,m)}else g||Uu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(H1),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jd(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const g=this.path[l];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:i,layout:a}=this.options;if(i===void 0&&!a)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Yu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(S1),this.nodes.forEach(T1),this.nodes.forEach(j1)):this.nodes.forEach(Yu),this.clearAllSnapshots();const i=Re.now();ye.delta=ft(0,1e3/60,i-ye.timestamp),ye.timestamp=i,ye.isProcessing=!0,uo.update.process(ye),uo.preRender.process(ye),uo.render.process(ye),ye.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,li.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(L1),this.sharedNodes.forEach(V1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){fe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Me(this.snapshot.measuredBox.x)&&!Me(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=pe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&this.instance){const a=n(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:a,offset:A(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!qd(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;s&&this.instance&&(i||Ut(this.latestValues)||l)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const i=this.measurePageBox();let a=this.removeElementScroll(i);return s&&(a=this.removeTransform(a)),W1(a),{animationId:this.root.animationId,measuredBox:i,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:s}=this.options;if(!s)return pe();const i=s.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(X1))){const{scroll:l}=this.root;l&&(EA(i.x,l.offset.x),EA(i.y,l.offset.y))}return i}removeElementScroll(s){var a;const i=pe();if(Ge(i,s),(a=this.scroll)!=null&&a.wasRoot)return i;for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:g,options:d}=l;l!==this.root&&g&&d.layoutScroll&&(g.wasRoot&&Ge(i,s),EA(i.x,g.offset.x),EA(i.y,g.offset.y))}return i}applyTransform(s,i=!1){const a=pe();Ge(a,s);for(let u=0;u<this.path.length;u++){const l=this.path[u];!i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&IA(a,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),Ut(l.latestValues)&&IA(a,l.latestValues)}return Ut(this.latestValues)&&IA(a,this.latestValues),a}removeTransform(s){const i=pe();Ge(i,s);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!Ut(u.latestValues))continue;ss(u.latestValues)&&u.updateSnapshot();const l=pe(),g=u.measurePageBox();Ge(l,g),Lu(i,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,l)}return Ut(this.latestValues)&&Lu(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ye.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var d;const i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);const a=!!this.resumingFrom||this!==i;if(!(s||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:g}=this.options;if(!(!this.layout||!(l||g))){if(this.resolvedRelativeTargetAt=ye.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pe(),this.relativeTargetOrigin=pe(),An(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),Ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=pe(),this.targetWithTransforms=pe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$p(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ge(this.target,this.layout.layoutBox),Pd(this.target,this.targetDelta)):Ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pe(),this.relativeTargetOrigin=pe(),An(this.relativeTargetOrigin,this.target,f.target),Ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ss(this.parent.latestValues)||Fd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var E;const s=this.getLead(),i=!!this.resumingFrom||this!==s;let a=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(a=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(a=!1),this.resolvedRelativeTargetAt===ye.timestamp&&(a=!1),a)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;Ge(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,d=this.treeScale.y;cp(this.layoutCorrected,this.treeScale,this.path,i),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=pe());const{target:f}=s;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ju(this.prevProjectionDelta.x,this.projectionDelta.x),ju(this.prevProjectionDelta.y,this.projectionDelta.y)),tn(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==d||!Vu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var i;if((i=this.options.visualElement)==null||i.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=QA(),this.projectionDelta=QA(),this.projectionDeltaWithTransform=QA()}setAnimationOrigin(s,i=!1){const a=this.snapshot,u=a?a.latestValues:{},l={...this.latestValues},g=QA();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const d=pe(),f=a?a.source:void 0,E=this.layout?this.layout.source:void 0,B=f!==E,h=this.getStack(),Q=!h||h.members.length<=1,m=!!(B&&!Q&&this.options.crossfade===!0&&!this.path.some(Y1));this.animationProgress=0;let x;this.mixTargetDelta=b=>{const I=b/1e3;Wu(g.x,s.x,I),Wu(g.y,s.y,I),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(An(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),G1(this.relativeTarget,this.relativeTargetOrigin,d,I),x&&y1(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=pe()),Ge(x,this.relativeTarget)),B&&(this.animationValues=l,p1(l,u,this.latestValues,I,m,Q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var i,a,u;this.notifyListeners("animationStart"),(i=this.currentAnimation)==null||i.stop(),(u=(a=this.resumingFrom)==null?void 0:a.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fe.update(()=>{nr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bA(0)),this.currentAnimation=E1(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(N1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:i,target:a,layout:u,latestValues:l}=s;if(!(!i||!a||!u)){if(this!==s&&this.layout&&u&&$d(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||pe();const g=Me(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+g;const d=Me(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}Ge(i,a),IA(i,l),tn(this.projectionDeltaWithTransform,this.layoutCorrected,i,l)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new F1),this.sharedNodes.get(s).add(i);const u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var i;const{layoutId:s}=this.options;return s?((i=this.getStack())==null?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:s}=this.options;return s?(i=this.getStack())==null?void 0:i.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let i=!1;const{latestValues:a}=s;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(i=!0),!i)return;const u={};a.z&&po("z",s,u,this.animationValues);for(let l=0;l<mo.length;l++)po(`rotate${mo[l]}`,s,u,this.animationValues),po(`skew${mo[l]}`,s,u,this.animationValues);s.render();for(const l in u)s.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);s.scheduleRender()}applyProjectionStyles(s,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const a=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Ar(i==null?void 0:i.pointerEvents)||"",s.transform=a?a(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Ar(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!Ut(this.latestValues)&&(s.transform=a?a({},""):"none",this.hasProjected=!1);return}s.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let g=P1(this.projectionDeltaWithTransform,this.treeScale,l);a&&(g=a(l,g)),s.transform=g;const{x:d,y:f}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,u.animationValues?s.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:s.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const E in ln){if(l[E]===void 0)continue;const{correct:B,applyTo:h,isCSSVariable:Q}=ln[E],m=g==="none"?l[E]:B(l[E],u);if(h){const x=h.length;for(let b=0;b<x;b++)s[h[b]]=m}else Q?this.options.visualElement.renderState.vars[E]=m:s[E]=m}this.options.layoutId&&(s.pointerEvents=u===this?Ar(i==null?void 0:i.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)==null?void 0:i.stop()}),this.root.nodes.forEach(Gu),this.root.sharedNodes.clear()}}}function T1(e){e.updateLayout()}function j1(e){var A;const t=((A=e.resumeFrom)==null?void 0:A.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?Ye(g=>{const d=s?t.measuredBox[g]:t.layoutBox[g],f=Me(d);d.min=n[g].min,d.max=d.min+f}):$d(o,t.layoutBox,n)&&Ye(g=>{const d=s?t.measuredBox[g]:t.layoutBox[g],f=Me(n[g]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+f)});const i=QA();tn(i,n,t.layoutBox);const a=QA();s?tn(a,e.applyTransform(r,!0),t.measuredBox):tn(a,n,t.layoutBox);const u=!qd(i);let l=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:d,layout:f}=g;if(d&&f){const E=pe();An(E,t.layoutBox,d.layoutBox);const B=pe();An(B,n,f.layoutBox),Kd(E,B)||(l=!0),g.options.layoutRoot&&(e.relativeTarget=B,e.relativeTargetOrigin=E,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function k1(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function R1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function L1(e){e.clearSnapshot()}function Gu(e){e.clearMeasurements()}function Yu(e){e.isLayoutDirty=!1}function S1(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function O1(e){e.resolveTargetDelta()}function z1(e){e.calcProjection()}function H1(e){e.resetSkewAndRotation()}function V1(e){e.removeLeadSnapshot()}function Wu(e,t,A){e.translate=Ie(t.translate,0,A),e.scale=Ie(t.scale,1,A),e.origin=t.origin,e.originPoint=t.originPoint}function Xu(e,t,A,n){e.min=Ie(t.min,A.min,n),e.max=Ie(t.max,A.max,n)}function G1(e,t,A,n){Xu(e.x,t.x,A.x,n),Xu(e.y,t.y,A.y,n)}function Y1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const U1={duration:.45,ease:[.4,0,.1,1]},Zu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qu=Zu("applewebkit/")&&!Zu("chrome/")?Math.round:We;function Ku(e){e.min=qu(e.min),e.max=qu(e.max)}function W1(e){Ku(e.x),Ku(e.y)}function $d(e,t,A){return e==="position"||e==="preserve-aspect"&&!_p(Hu(t),Hu(A),.2)}function X1(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Z1=_d({attachResizeListener:(e,t)=>cn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vo={current:void 0},eC=_d({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vo.current){const e=new Z1({});e.mount(window),e.setOptions({layoutScroll:!0}),vo.current=e}return vo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),q1={pan:{Feature:d1},drag:{Feature:g1,ProjectionNode:eC,MeasureLayout:Wd}};function Ju(e,t,A){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",A==="Start");const r="onHover"+A,o=n[r];o&&fe.postRender(()=>o(t,wn(t)))}class K1 extends Rt{mount(){const{current:t}=this.node;t&&(this.unmount=Bm(t,(A,n)=>(Ju(this.node,n,"Start"),r=>Ju(this.node,r,"End"))))}unmount(){}}class J1 extends Rt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mn(cn(this.node.current,"focus",()=>this.onFocus()),cn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _u(e,t,A){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",A==="Start");const r="onTap"+(A==="End"?"":A),o=n[r];o&&fe.postRender(()=>o(t,wn(t)))}class _1 extends Rt{mount(){const{current:t}=this.node;t&&(this.unmount=hm(t,(A,n)=>(_u(this.node,n,"Start"),(r,{success:o})=>_u(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ds=new WeakMap,wo=new WeakMap,$1=e=>{const t=ds.get(e.target);t&&t(e)},e0=e=>{e.forEach($1)};function t0({root:e,...t}){const A=e||document;wo.has(A)||wo.set(A,{});const n=wo.get(A),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(e0,{root:e,...t})),n[r]}function A0(e,t,A){const n=t0(t);return ds.set(e,A),n.observe(e),()=>{ds.delete(e),n.unobserve(e)}}const n0={some:0,all:1};class r0 extends Rt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:A,margin:n,amount:r="some",once:o}=t,s={root:A?A.current:void 0,rootMargin:n,threshold:typeof r=="number"?r:n0[r]},i=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:g}=this.node.getProps(),d=u?l:g;d&&d(a)};return A0(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:A}=this.node;["amount","margin","root"].some(o0(t,A))&&this.startObserver()}unmount(){}}function o0({viewport:e={}},{viewport:t={}}={}){return A=>e[A]!==t[A]}const s0={inView:{Feature:r0},tap:{Feature:_1},focus:{Feature:J1},hover:{Feature:K1}},i0={layout:{ProjectionNode:eC,MeasureLayout:Wd}},a0={...Wp,...s0,...q1,...i0},u0=ap(a0,mp),l0=({title:e,steps:t,isStandalone:A=!1,isOpen:n=!0,onOpenChange:r,onToggleStep:o,scenarioId:s,feddbackTitle:i,feedbackHelpfullButtonTitle:a,feedbackNotHelpfullButtonTitle:u,feedbackCommentPlaceholder:l,feedbackCancelButtonTitle:g,feedbackSubmitButtonHoverTitle:d,feedbackSubmitText:f,feedbackThankYouMessage:E,matchId:B,sendFeedback:h,showThankYou:Q,feedbackLoading:m,showFeedbackArea:x})=>{const b=t.filter(P=>P.isCompleted).length,I=t.length,v=hn(),[p,D]=w.useState(new Set),[F,j]=w.useState(new Set),[S,O]=w.useState(1),[M,y]=w.useState(!1),[k,L]=w.useState(""),z=()=>{y(P=>!P)},T=P=>{O(P)},N=({selectedFeedback:P,comment:H})=>{h==null||h({selectedFeedback:P??0,comment:H,scenarioId:s??"",matchId:B??""})},V=()=>{O(1),L(""),y(!1)},_=P=>{D(H=>{const G=new Set(H);return G.has(P)?G.delete(P):G.add(P),G})},te=P=>{j(H=>{const G=new Set(H);return G.has(P)?G.delete(P):G.add(P),G})};return c.jsx(Vo,{open:n,onOpenChange:r,children:c.jsxs("div",{className:"bg-background md:bg-secondary md:px-6 md:py-4 px-3 py-3 rounded-2xl w-full h-full flex flex-col notification-checklist-container",children:[c.jsx("style",{children:`
60
60
  .hide-scrollbar {
61
61
  -ms-overflow-style: none; /* IE and Edge */
62
62
  scrollbar-width: none; /* Firefox */