@eshal-bot/chat-widget 0.2.11 → 0.2.12

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.
@@ -17,7 +17,7 @@ var Se={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
17
17
  *
18
18
  * This source code is licensed under the ISC license.
19
19
  * See the LICENSE file in the root directory of this source tree.
20
- */let tt=null;function nt(t){e.useEffect(()=>{if(!Ze||!t)return;const e=t.split(",")[0]?.trim();if(!e||et.has(e))return;if((e=>{const t=e.trim().toLowerCase();return!t||!!Qe.has(t)||Je.some(e=>t.includes(e))})(e))return void et.add(e);let n=!0;return(async()=>{try{tt||(tt=Promise.resolve().then(function(){return xr}));const t=await tt,r=t&&"default"in t?t.default:t,a=(e=>e.trim().replace(/\s+/g,"+"))(e);r.load({google:{families:[`${a}:300,400,500,600,700`]},fontactive:e=>{n&&et.add(e)},fontinactive:e=>{n&&et.add(e),console.warn(`Warning: failed to load Google Font: ${e}`)}})}catch(e){console.error("Warning: WebFont loader error:",e)}})(),()=>{n=!1}},[t])}function rt(e){return"string"==typeof e&&/^https?:\/\//i.test(e)?e:void 0}const at="__eshalChatWidgetCitationContext",ot="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0,it=ot?ot[at]||(ot[at]=e.createContext(null)):e.createContext(null);function st(){return Promise.resolve().then(function(){return R2})}const lt=e.lazy(st);class ct extends e.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e){console.error("[widget] markdown chunk failed to load, showing plain text:",e)}render(){return this.state.failed?this.props.fallback:this.props.children}}const ut=/(```|`[^`]+`|(^|\n)\s{0,3}#{1,6}\s|(^|\n)\s*[-*+]\s|(^|\n)\s*\d+\.\s|(^|\n)\s*>\s|\[[^\]]*\]\([^)]*\)|\*\*|__|~~|(^|\n)\s*\||\[\d+\])/;const dt=({content:e,isDark:t,textColor:r,fontFamily:a,fontSize:o})=>n.jsx("p",{className:"leading-relaxed [&:first-child]:!mt-0 whitespace-pre-wrap break-words",style:{color:r||(t?"#f3f4f6":"#1A1A1A"),fontFamily:a||"Inter",fontSize:o||"14px",margin:0,lineHeight:"1.6",padding:0,overflowWrap:"break-word"},children:e}),pt=({content:t,isStreaming:r,isDark:a=!1,isRtl:o=!1,textColor:i,fontFamily:s,fontSize:l,onButtonClick:c,provideCitations:u=!0})=>{const[d,p]=e.useState(""),[f,g]=e.useState(!1),m=e.useRef(t),h=e.useRef(0),b=e.useRef(null),y=e.useRef(0);e.useEffect(()=>{if(t!==m.current){if(m.current=t,h.current>=t.length)return p(t),void g(!1);t.length<d.length&&(h.current=0,p(""))}if(!r)return p(t),g(!1),void(b.current&&cancelAnimationFrame(b.current));g(!0);const e=n=>{if(n-y.current<16)b.current=requestAnimationFrame(e);else if(y.current=n,h.current<t.length){const n=Math.max(2,Math.floor(4*Math.random())),r=Math.min(h.current+n,t.length);p(t.slice(0,r)),h.current=r,b.current=requestAnimationFrame(e)}else g(!1)};return b.current=requestAnimationFrame(e),()=>{b.current&&cancelAnimationFrame(b.current)}},[t,r]);const v=function(e){return"string"==typeof e&&0!==e.length&&ut.test(e)}(d);return n.jsxs("div",{className:"relative",dir:"auto",style:{textAlign:o?"right":"left",color:i||(a?"#f3f4f6":"#1A1A1A"),fontFamily:s||"Inter",fontSize:l||"14px",margin:0,padding:0},children:[v?n.jsx(ct,{fallback:n.jsx(dt,{content:d,isDark:a,textColor:i,fontFamily:s,fontSize:l}),children:n.jsx(e.Suspense,{fallback:n.jsx(dt,{content:d,isDark:a,textColor:i,fontFamily:s,fontSize:l}),children:n.jsx(lt,{content:d,isStreaming:r,isDark:a,isRtl:o,textColor:i,fontFamily:s,fontSize:l,onButtonClick:c,provideCitations:u})})}):n.jsx(dt,{content:d,isDark:a,textColor:i,fontFamily:s,fontSize:l}),f&&n.jsx("span",{className:"inline-block w-1.5 h-4 bg-blue-500 ms-0.5 animate-pulse align-text-bottom",style:{animationDuration:"0.8s"}})]})},ft=({isDark:e,t:t})=>n.jsxs("div",{className:"flex gap-1.5",role:"status","aria-label":t("agentIsTyping"),children:[n.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"0ms"},"aria-hidden":"true"}),n.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"150ms"},"aria-hidden":"true"}),n.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"300ms"},"aria-hidden":"true"})]}),gt=({question:e,options:t,onDecision:r,disabled:a,isDark:o=!1})=>n.jsxs("div",{className:"mt-3 p-3 rounded-lg border "+(o?"bg-blue-900/30 border-blue-700/50":"bg-blue-50 border-blue-200"),children:[n.jsx("p",{className:"text-sm font-medium mb-2 "+(o?"text-gray-100":"text-gray-900"),children:e}),n.jsx("div",{className:"space-y-2",children:t.map(e=>n.jsx("button",{onClick:()=>r(e.id,e.label),disabled:a,className:"w-full text-left px-3 py-2 text-sm rounded transition-all "+(o?"bg-gray-800 border border-gray-700 hover:bg-blue-900/50 hover:border-blue-600 disabled:opacity-50 disabled:cursor-not-allowed":"bg-white border border-gray-300 hover:bg-blue-50 hover:border-blue-400 disabled:opacity-50 disabled:cursor-not-allowed"),children:e.label},e.id))})]});function mt({content:t,isDark:r}){const[a,o]=e.useState(!1),i=e.useCallback(()=>{t&&(navigator.clipboard?.writeText(t).catch(()=>{}),o(!0),setTimeout(()=>o(!1),1500))},[t]);return n.jsx("button",{type:"button",onClick:i,className:"p-0.5 rounded transition-colors "+(r?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":a?"Copied":"Copy message",title:a?"Copied":"Copy message",children:a?n.jsx(Oe,{className:"w-3 h-3 text-green-500"}):n.jsx(Re,{className:"w-3 h-3"})})}const ht=({message:t,formatTime:r,isDark:a,primaryColor:o,agentMessageBubbleColor:i,resolvedAgentBubbleColor:s,textColor:l,assistantTextColor:c,fontFamily:u,agentMessageBubbleFontFamily:d,agentMessageBubbleFontSize:p,fontSize:f,isRtl:g,onDecision:m,companyLogo:h,conciergeName:b,companyName:y,apiBaseUrl:v,getAuthToken:w,onPromptSuggestionClick:S,allowFeedback:x=!0,provideCitations:E=!0,onFeedback:k,headerTextColor:A,t:T})=>{const O="string"==typeof t.content?t.content:"",C=t.isProcessing&&(!O||0===O.length),I=$(O,g),[N,_]=e.useState(()=>t?.feedback??null),[R,P]=e.useState(!1),[L,D]=e.useState(null),[M,j]=e.useState(""),F=e.useRef(null),B=e.useCallback(e=>{if(k&&O){if(N===e)return _(null),P(!1),D(null),j(""),void k(O,null);if("like"===e)return _("like"),P(!1),D(null),j(""),void k(O,"like");_(null),D("dislike"),P(!0),j(""),setTimeout(()=>F.current?.focus(),100)}},[N,k,O]),U=e.useCallback(()=>{k&&O&&L&&(_(L),k(O,L,M.trim()||void 0),P(!1),j(""),D(null))},[k,O,L,M]),z=e.useCallback(()=>{P(!1),j(""),D(null)},[]),G=!0===t?.isError,q=G?a?"rgba(239,68,68,0.15)":"#fee2e2":null!=s?s:null!=i?i:a?"#1f2937":"#FFFFFF",H=null!=i&&"#ffffff"!==i&&"#FFFFFF"!==i&&"#1f2937"!==i,V=G?a?"#fca5a5":"#991b1b":null!=c?c:null!=l?l:a?"#f3f4f6":"#1A1A1A",W=null!=d?d:null!=u?u:"Inter",Y=null!=p?p:null!=f?f:"14px";nt(W);const{onSourceActivate:K,downloadingKey:X}=function({apiBaseUrl:t,getAuthToken:n}){const[r,a]=e.useState(null),o=e.useCallback(async e=>{if(!e)return;const r=e.url||e.source_id||e.sourceid||e.source_name||"",o=String(e.source_id||e.sourceid||"").startsWith("attachment:"),i="string"==typeof e.url&&e.url.includes("/api/v1/sharepoint/file/"),s="file"===e.source_type||i||o||!(!e.source_id&&!e.sourceid)&&!e.url;if(!s){const t=rt(e.url);if(t)try{window.open(t,"_blank","noopener,noreferrer")}catch{}return}if(t||o){a(r),console.debug("[widget] citation download starting:",{source_id:e.source_id||e.sourceid,source_name:e.source_name,source_type:e.source_type,isAttachment:o,isSharePointProxy:i,isFileLike:s});try{let r;if(o){if(!e.url)throw new Error("attachment has no URL");const t={};if("function"==typeof n){const e=await n();e&&(t.Authorization=`Bearer ${e}`)}r=await fetch(e.url,{method:"GET",headers:t,credentials:"include"})}else if(i){const a=e.url.startsWith("http")?e.url:`${t.replace(/\/$/,"")}${e.url}`,o={};if("function"==typeof n){const e=await n();e&&(o.Authorization=`Bearer ${e}`)}r=await fetch(a,{method:"GET",headers:o,credentials:"include"})}else{const a=`${t.replace(/\/$/,"")}/api/v1/support/file-download`,o={"Content-Type":"application/json"};if("function"==typeof n){const e=await n();e&&(o.Authorization=`Bearer ${e}`)}r=await fetch(a,{method:"POST",headers:o,credentials:"include",body:JSON.stringify({source_id:e.source_id||e.sourceid,file_name:e.url||"",source_name:e.source_name||""})})}if(!r.ok){const e=await r.json().catch(()=>({}));throw new Error(e.details||e.error||r.statusText)}const a=await r.blob(),s=r.headers.get("content-disposition");let l=e.source_name||"download";if(!o){const e=s&&/filename\*?=(?:UTF-8'')?["']?([^"'\s;]+)["']?/i.exec(s);if(e)try{l=decodeURIComponent(e[1].replace(/\\"/g,'"'))}catch{}}const c=document.createElement("a"),u=URL.createObjectURL(a);c.href=u,c.download=l,document.body.appendChild(c),c.click(),c.remove(),URL.revokeObjectURL(u)}catch(e){console.error("[widget] source download failed:",e)}finally{a(null)}}else console.warn("[widget] citation download skipped: apiBaseUrl missing and source is not an attachment (no fallback URL to fetch). Source:",e)},[t,n]);return{onSourceActivate:o,downloadingKey:r}}({apiBaseUrl:v,getAuthToken:w}),Z=e.useMemo(()=>({sources:t.sources||[],sourcesPreliminary:!!t.sourcesPreliminary,onSourceActivate:K,downloadingKey:X,textColor:V}),[t.sources,t.sourcesPreliminary,K,X,V]);return n.jsx(it.Provider,{value:Z,children:n.jsxs("div",{className:"flex gap-3 flex-row animate-in min-w-0",children:[n.jsx("div",{className:"flex-shrink-0 mt-1",children:n.jsx("div",{className:"w-8 h-8 rounded-full overflow-hidden flex items-center justify-center",style:{backgroundColor:o||"#2563eb"},children:h?n.jsx("div",{className:"w-full h-full bg-white/10 flex items-center justify-center",children:n.jsx("img",{src:h,alt:b||y||"Assistant avatar",className:"object-contain rounded-full",style:{width:"100%",height:"100%"}})}):n.jsx("div",{className:"w-full h-full flex items-center justify-center",style:{fontSize:"18px",fontFamily:u||"Inter",color:A||"#FFFFFF"},children:(b||"A").charAt(0).toUpperCase()})})}),n.jsxs("div",{className:"flex flex-col items-start min-w-0 max-w-[75%]",children:[n.jsx("div",{className:"rounded-2xl px-4 py-2.5 shadow-sm border rounded-tl-sm rtl:rounded-tl-2xl rtl:rounded-tr-sm min-w-0 max-w-full overflow-hidden "+(H?"border-transparent":a?"border-gray-700":"border-gray-200"),style:{backgroundColor:q,color:V,fontFamily:W,fontSize:Y,direction:I?"rtl":"ltr",textAlign:I?"right":"left",...H?{borderColor:`${q}33`}:{}},children:C?n.jsx(ft,{isDark:a,t:T}):n.jsx(n.Fragment,{children:t.requiresDecision&&t.decisionData&&m?n.jsxs("div",{children:[O&&n.jsx("div",{className:"mb-3",children:n.jsx(pt,{content:O,isStreaming:t.isProcessing,isDark:a,isRtl:I,textColor:V,fontFamily:W,fontSize:Y,onButtonClick:S,provideCitations:E})}),n.jsx(gt,{question:t.decisionData.question,options:t.decisionData.options,onDecision:(e,n)=>m(t.decisionData.decisionId,e,n),disabled:!!t.decisionResponse,isDark:a}),t.decisionResponse&&n.jsxs("div",{className:"mt-2 text-xs "+(a?"text-gray-400":"text-gray-500"),children:["Selected: ",t.decisionResponse.selectedOption]})]}):O?n.jsx(n.Fragment,{children:n.jsx(pt,{content:O,isStreaming:t.isProcessing,isDark:a,isRtl:I,textColor:V,fontFamily:W,fontSize:Y,onButtonClick:S,provideCitations:E})}):null})}),n.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5 px-1",children:[n.jsx("p",{className:"text-xs leading-none "+(a?"text-gray-400":"text-gray-500"),dir:"auto",children:r(t.timestamp)}),!C&&!t.isProcessing&&O&&n.jsx(mt,{content:O,isDark:a}),!1!==x&&k&&!C&&!t.isProcessing&&O&&"welcome"!==t.type&&!t.isWelcome&&n.jsxs("div",{className:"flex items-center gap-0.5 ms-0.5",children:[n.jsx("button",{type:"button",onClick:()=>B("like"),className:"p-0.5 rounded transition-colors "+("like"===N||"like"===L?"text-green-500":a?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":"Like",children:n.jsx(Ye,{className:"w-3 h-3"})}),n.jsx("button",{type:"button",onClick:()=>B("dislike"),className:"p-0.5 rounded transition-colors "+("dislike"===N||"dislike"===L?"text-red-500":a?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":"Dislike",children:n.jsx(We,{className:"w-3 h-3"})})]})]}),R&&"dislike"===L&&n.jsxs("div",{className:"mt-2 w-full rounded-xl border p-3 shadow "+(a?"bg-gray-800 border-gray-700":"bg-white border-gray-200"),style:{direction:g?"rtl":"ltr"},children:[n.jsx("textarea",{ref:F,value:M,onChange:e=>j(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key?(e.preventDefault(),U()):"Escape"===e.key&&(e.preventDefault(),z())},placeholder:T("feedbackPlaceholder"),"aria-label":T("feedbackPlaceholder"),rows:2,className:"w-full resize-none rounded-lg border px-2 py-1.5 text-xs focus:outline-none focus:ring-1 "+(a?"bg-gray-900 border-gray-700 text-gray-100 placeholder-gray-500 focus:ring-gray-600":"bg-white border-gray-200 text-gray-900 placeholder-gray-400 focus:ring-gray-300"),style:{fontFamily:W,textAlign:g?"right":"left"}}),n.jsxs("div",{className:"flex items-center justify-end gap-1.5 mt-1.5",children:[n.jsx("button",{type:"button",onClick:z,className:"text-xs px-2 py-1 rounded transition-colors "+(a?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"),style:{border:"none",background:"transparent",cursor:"pointer"},children:T("cancel")}),n.jsx("button",{type:"button",onClick:U,className:"text-xs px-2.5 py-1 rounded text-white transition-opacity hover:opacity-90",style:{backgroundColor:o||"#2563eb",border:"none",cursor:"pointer"},children:T("submit")})]})]})]})]})})},bt=({message:e,formatTime:t,userMessageBoxColor:r,primaryColor:a,resolvedUserMessageColor:o,textColor:i,userTextColor:s,fontFamily:l,userMessageBubbleFontFamily:c,userMessageBubbleFontSize:u,fontSize:d,isDark:p,isRtl:f,t:g,onRetryMessage:m})=>{const h=null!=o?o:null!=r?r:null!=a?a:"#2563eb",b=null!=s?s:null!=i?i:"#FFFFFF",y=null!=c?c:null!=l?l:"Inter",v=null!=u?u:null!=d?d:"14px",w=$("string"==typeof e?.content?e.content:"",f);nt(y);const S=Array.isArray(e.attachments)?e.attachments:[];return n.jsx("div",{className:"flex gap-3 flex-row-reverse animate-in",children:n.jsxs("div",{className:"flex flex-col items-end max-w-[75%]",children:[S.length>0&&n.jsx("div",{className:"mb-1.5 flex flex-wrap justify-end gap-1.5",children:S.map((e,t)=>String(e.mimeType||"").startsWith("image/")&&e.url?n.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block rounded-md overflow-hidden",style:{maxWidth:160},title:e.filename,children:n.jsx("img",{src:e.url,alt:e.filename||"attachment",style:{maxWidth:160,maxHeight:160,display:"block"}})},e.storageKey||t):n.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs",style:{backgroundColor:p?"#1f2937":"#f3f4f6",color:p?"#e5e7eb":"#374151",border:"1px solid "+(p?"#374151":"#e5e7eb"),maxWidth:200},title:e.filename,children:[n.jsx(Me,{size:12}),n.jsx("span",{className:"truncate",style:{maxWidth:140,direction:"ltr"},children:e.filename})]},e.storageKey||t))}),e.content&&""!==e.content.trim()&&n.jsx("div",{className:"rounded-2xl px-4 py-2.5 shadow-lg "+(w?"rounded-tl-sm":"rounded-tr-sm"),dir:"auto",style:{background:`linear-gradient(135deg, ${h} 0%, ${h}dd 100%)`,fontFamily:y,direction:w?"rtl":"ltr",textAlign:w?"right":"left"},children:n.jsx("p",{className:"whitespace-pre-wrap break-words",dir:"auto",style:{color:b,fontFamily:y,fontSize:v,lineHeight:"1.5",textAlign:w?"right":"left",overflowWrap:"break-word",margin:0,padding:0},children:e.content})}),n.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5 px-1",children:[n.jsx("p",{className:"text-xs leading-none "+(p?"text-gray-400":"text-gray-500"),dir:"auto",children:t(e.timestamp)}),e.content&&""!==e.content.trim()&&n.jsx(mt,{content:e.content,isDark:p})]}),"failed"===e.status&&n.jsxs("div",{className:"flex items-center gap-1.5 mt-1 px-1","data-testid":"message-failed-state",children:[n.jsx("span",{className:"text-xs leading-none",style:{color:"#dc2626"},dir:"auto",children:g("messageNotDelivered")}),"function"==typeof m&&n.jsx("button",{type:"button",onClick:()=>m(e),className:"text-xs leading-none font-medium underline",style:{color:"#dc2626"},dir:"auto",children:g("retrySend")})]})]})})},yt=({message:t,isDark:r,primaryColor:a,agentMessageBubbleColor:o,userMessageBoxColor:i,resolvedUserMessageColor:s,resolvedAgentBubbleColor:l,textColor:c,assistantTextColor:u,userTextColor:d,fontFamily:p,agentMessageBubbleFontFamily:f,agentMessageBubbleFontSize:g,userMessageBubbleFontFamily:m,userMessageBubbleFontSize:h,fontSize:b,formatTime:y,isRtl:v,onDecision:w,companyLogo:S,conciergeName:x,companyName:E,apiBaseUrl:k,getAuthToken:A,onPromptSuggestionClick:T,allowFeedback:O,provideCitations:C,onFeedback:I,headerTextColor:N,onRetryMessage:_,defaultLanguage:R="en"})=>{const P=e.useMemo(()=>G(R),[R]);return t?"user"===t.role?n.jsx(bt,{message:t,formatTime:y,userMessageBoxColor:i,primaryColor:a,resolvedUserMessageColor:s,textColor:c,userTextColor:d,fontFamily:p,userMessageBubbleFontFamily:m,userMessageBubbleFontSize:h,fontSize:b,isDark:r,isRtl:v,t:P,onRetryMessage:_}):n.jsx(ht,{message:t,formatTime:y,isDark:r,primaryColor:a,agentMessageBubbleColor:o,resolvedAgentBubbleColor:l,textColor:c,assistantTextColor:u,fontFamily:p,agentMessageBubbleFontFamily:f,agentMessageBubbleFontSize:g,fontSize:b,isRtl:v,onDecision:w,companyLogo:S,conciergeName:x,companyName:E,apiBaseUrl:k,getAuthToken:A,onPromptSuggestionClick:T,allowFeedback:O,provideCitations:C,onFeedback:I,headerTextColor:N,t:P}):null};var vt=e.memo(yt);const wt=(e,t,n)=>Number.isNaN(e)?t:Math.min(Math.max(e,t),n),St=e=>{if(!e)return null;const t=(e=>e?.trim().toLowerCase()??"")(e),n=(e=>{const t=e.match(/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i);if(!t)return null;let n=t[1];3===n.length&&(n=n.split("").map(e=>`${e}${e}`).join(""));const r=parseInt(n.slice(0,2),16),a=parseInt(n.slice(2,4),16),o=parseInt(n.slice(4,6),16);return[r,a,o].some(e=>Number.isNaN(e))?null:{r:r,g:a,b:o}})(t);if(n)return n;const r=(e=>{const t=e.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*(\d*\.?\d+))?\s*\)$/i);return t?{r:wt(Number.parseInt(t[1],10),0,255),g:wt(Number.parseInt(t[2],10),0,255),b:wt(Number.parseInt(t[3],10),0,255)}:null})(t);return r||null},xt=({r:e,g:t,b:n})=>{const r=e=>{const t=wt(Math.round(e),0,255).toString(16);return 1===t.length?`0${t}`:t};return`#${r(e)}${r(t)}${r(n)}`},Et=(e,t,n)=>{const r=wt(n,0,1);return{r:Math.round(e.r+(t.r-e.r)*r),g:Math.round(e.g+(t.g-e.g)*r),b:Math.round(e.b+(t.b-e.b)*r)}},kt=(e,t)=>{const n=wt(t,0,1);return`rgba(${wt(Math.round(e.r),0,255)}, ${wt(Math.round(e.g),0,255)}, ${wt(Math.round(e.b),0,255)}, ${n})`},At={background:"#f8fafc",hoverBackground:"#f1f5f9",border:"#e2e8f0",hoverBorder:"#cbd5f5",shadow:"0 4px 12px rgba(15, 23, 42, 0.08)",hoverShadow:"0 6px 20px rgba(15, 23, 42, 0.14)"},Tt={background:"#1f2937",hoverBackground:"#27364a",border:"#334155",hoverBorder:"#3b4c63",shadow:"0 4px 12px rgba(15, 23, 42, 0.45)",hoverShadow:"0 6px 20px rgba(15, 23, 42, 0.55)"},Ot=(e,t)=>{const n=St(e);if(!n)return(e=>e?Tt:At)(t);const r=(({r:e,g:t,b:n})=>{const r=[e,t,n].map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*r[0]+.7152*r[1]+.0722*r[2]})(n),a=St("#0f172a")??{r:15,g:23,b:42},o=St(t?"#f8fafc":"#f9fafb")??{r:249,g:250,b:251},i=St(t?"#334155":"#e2e8f0")??{r:226,g:232,b:240};let s,l;if(r>=.6){const e=t?.5:.7,r=Math.min(1,e+.15);s=Et(n,a,e),l=Et(n,a,r)}else if(r<=.35){const e=t?.9:.8,r=Math.min(1,e+(t?.05:.12));s=Et(n,o,e),l=Et(n,o,r)}else{const e=t?.45:.6,r=Math.min(1,e+.1);s=Et(n,i,e),l=Et(n,i,r)}const c=Et(n,s,.65),u=Et(n,l,.7),d=`0 4px 12px ${kt(n,t?.28:.12)}`,p=`0 6px 20px ${kt(n,t?.35:.18)}`;return{background:xt(s),hoverBackground:xt(l),border:xt(c),hoverBorder:xt(u),shadow:d,hoverShadow:p}},Ct=({questions:t,isDark:r,palette:a,resolvedTextColor:o,fontFamily:i,fontSize:s,isRtl:l,onQuestionClick:c,applyHoverState:u,headingLabel:d})=>{const p=e.useRef(null),[f,g]=e.useState(!1),[m,h]=e.useState(!1),b=e.useCallback(()=>{const e=p.current;if(!e)return;const{scrollLeft:t,scrollWidth:n,clientWidth:r}=e;g(Math.abs(t)>1),h(Math.abs(t)+r<n-1)},[]);e.useEffect(()=>{b();const e=p.current;if(!e)return;const t=new ResizeObserver(b);return t.observe(e),()=>t.disconnect()},[b,t]);const y=e.useCallback(e=>{const t=p.current;if(!t)return;const n="left"===e?-150:150;t.scrollBy({left:l?-n:n,behavior:"smooth"})},[l]),v=r?"rgba(31,41,55,0.85)":"rgba(255,255,255,0.85)",w=r?"#e5e7eb":"#374151",S=r?"#4b5563":"#d1d5db";return n.jsxs("div",{className:"px-4 py-4 border-t "+(r?"border-gray-700/50":"border-gray-200/60"),children:[n.jsxs("div",{className:"text-xs mb-3 font-semibold tracking-wide uppercase "+(r?"text-gray-400":"text-gray-500"),children:[d||"Quick questions",":"]}),n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx("button",{onClick:()=>y("left"),disabled:!f,"aria-label":"Scroll left",className:"flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full shadow-sm transition-all duration-200 hover:shadow-md active:scale-95",style:{backgroundColor:v,border:`1px solid ${S}`,color:w,backdropFilter:"blur(4px)",opacity:f?1:.35,cursor:f?"pointer":"default"},children:n.jsx(Ce,{size:16})}),n.jsx("div",{ref:p,onScroll:b,className:"flex-1 flex gap-3 overflow-x-auto pb-2",style:{scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"},children:t.map((e,t)=>{const r=$(e,l);return n.jsxs("button",{onClick:()=>c?.(e),className:"group relative text-sm px-5 py-2.5 rounded-full font-medium transition-all duration-300 hover:scale-105 active:scale-95 whitespace-nowrap flex-shrink-0 overflow-hidden backdrop-blur-sm "+(r?"text-right":"text-left"),style:{direction:r?"rtl":"ltr",backgroundColor:a.background,border:`1.5px solid ${a.border}`,boxShadow:a.shadow},onMouseEnter:e=>{u(e.currentTarget,!0),e.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:e=>{u(e.currentTarget,!1),e.currentTarget.style.transform="translateY(0)"},children:[n.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-white/0 via-white/5 to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-xl"}),n.jsx("span",{className:"relative z-10",style:{direction:r?"rtl":"ltr",color:o,fontFamily:i,fontSize:s,textAlign:r?"right":"left"},children:e})]},t)})}),n.jsx("button",{onClick:()=>y("right"),disabled:!m,"aria-label":"Scroll right",className:"flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full shadow-sm transition-all duration-200 hover:shadow-md active:scale-95",style:{backgroundColor:v,border:`1px solid ${S}`,color:w,backdropFilter:"blur(4px)",opacity:m?1:.35,cursor:m?"pointer":"default"},children:n.jsx(Ie,{size:16})})]})]})},It=({questions:t=[],isDark:r=!1,primaryColor:a="#2563eb",onQuestionClick:o,isTyping:i=!1,layout:s="vertical",fontFamily:l="Inter",fontSize:c="14px",textColor:u,isRtl:d=!1,questionTextColor:p,questionBoxColor:f,headingLabel:g})=>{if(!t.length||i)return null;const m=p??u??(r?"#f3f4f6":"#111827"),h=e.useMemo(()=>Ot(m,r),[m,r]),b=(e,t)=>{e.style.backgroundColor=t?h.hoverBackground:h.background,e.style.borderColor=t?h.hoverBorder:h.border,e.style.boxShadow=t?h.hoverShadow:h.shadow};return"horizontal"===s?n.jsx(Ct,{questions:t,isDark:r,palette:h,resolvedTextColor:m,fontFamily:l,fontSize:c,isRtl:d,onQuestionClick:o,applyHoverState:b,headingLabel:g}):n.jsxs("div",{style:{paddingInlineStart:"50px"},children:[g?n.jsx("div",{className:"mb-2",style:{color:r?"#9ca3af":"#6b7280",fontFamily:l,fontSize:`calc(${c} - 1px)`},children:g}):null,n.jsx("div",{className:"flex flex-wrap gap-2",children:t.map((e,t)=>{const i=$(e,d);return n.jsx("button",{onClick:()=>o?.(e),className:"transition-all duration-200 active:scale-[0.97]",style:{direction:i?"rtl":"ltr",fontFamily:l,fontSize:c,color:a,backgroundColor:r?"transparent":"#ffffff",border:`1.5px solid ${a}`,borderRadius:"9999px",padding:"5px 14px",fontWeight:500,lineHeight:"1.4",whiteSpace:"normal",textAlign:i?"right":"left"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=`${a}14`},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=r?"transparent":"#ffffff"},children:e},t)})})]})},Nt=({active:t=!1,processing:r=!1,deviceId:a,barWidth:o=3,barGap:i=1,barRadius:s=1.5,barColor:l,fadeEdges:c=!0,fadeWidth:u=24,barHeight:d=4,height:p=64,sensitivity:f=1,smoothingTimeConstant:g=.8,fftSize:m=256,historySize:h=60,updateRate:b=30,mode:y="static",onError:v,onStreamReady:w,onStreamEnd:S,className:x,...E})=>{const k=e.useRef(null),A=e.useRef(null),T=e.useRef([]),O=e.useRef(null),C=e.useRef(null),I=e.useRef(null),N=e.useRef(0),_=e.useRef(0),R=e.useRef(null),P=e.useRef([]),L=e.useRef(0),D=e.useRef([]),M=e.useRef(!0),j=e.useRef(null),F=e.useRef(0),B="number"==typeof p?`${p}px`:p;return e.useEffect(()=>{const e=k.current,t=A.current;if(!e||!t)return;const n=new ResizeObserver(()=>{const n=t.getBoundingClientRect(),r=window.devicePixelRatio||1;e.width=n.width*r,e.height=n.height*r,e.style.width=`${n.width}px`,e.style.height=`${n.height}px`;const a=e.getContext("2d");a&&a.scale(r,r),j.current=null,F.current=n.width,M.current=!0});return n.observe(t),()=>n.disconnect()},[]),e.useEffect(()=>{if(r&&!t){let e=0;L.current=0;const t=()=>{e+=.03,L.current=Math.min(1,L.current+.02);const n=[],r=Math.floor((A.current?.getBoundingClientRect().width||200)/(o+i));if("static"===y){const t=Math.floor(r/2);for(let a=0;a<r;a++){const r=(a-t)/t,o=1-.4*Math.abs(r),i=(.2+(.25*Math.sin(1.5*e+3*r)+.2*Math.sin(.8*e-2*r)+.15*Math.cos(2*e+r)))*o;let s=i;if(P.current.length>0&&L.current<1){const e=Math.min(a,P.current.length-1);s=(P.current[e]||0)*(1-L.current)+i*L.current}n.push(Math.max(.05,Math.min(1,s)))}}else for(let t=0;t<r;t++){const a=(t-r/2)/(r/2),o=1-.4*Math.abs(a),i=(.2+(.25*Math.sin(1.5*e+.15*t)+.2*Math.sin(.8*e-.1*t)+.15*Math.cos(2*e+.05*t)))*o;let s=i;if(P.current.length>0&&L.current<1){const e=Math.floor(t/r*P.current.length);s=(P.current[e]||0)*(1-L.current)+i*L.current}n.push(Math.max(.05,Math.min(1,s)))}"static"===y?D.current=n:T.current=n,M.current=!0,R.current=requestAnimationFrame(t)};return t(),()=>{R.current&&cancelAnimationFrame(R.current)}}if(!t&&!r){if("static"===y?D.current.length>0:T.current.length>0){let e=0;const t=()=>{e+=.03,e<1?("static"===y?D.current=D.current.map(t=>t*(1-e)):T.current=T.current.map(t=>t*(1-e)),M.current=!0,requestAnimationFrame(t)):"static"===y?D.current=[]:T.current=[]};t()}}},[r,t,o,i,y]),e.useEffect(()=>{if(!t)return I.current&&(I.current.getTracks().forEach(e=>e.stop()),I.current=null,S?.()),C.current&&"closed"!==C.current.state&&(C.current.close(),C.current=null),void(N.current&&(cancelAnimationFrame(N.current),N.current=0));return(async()=>{try{const e=await navigator.mediaDevices.getUserMedia({audio:a?{deviceId:{exact:a},echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});I.current=e,w?.(e);const t=new(window.AudioContext||window.webkitAudioContext),n=t.createAnalyser();n.fftSize=m,n.smoothingTimeConstant=g;t.createMediaStreamSource(e).connect(n),C.current=t,O.current=n,T.current=[]}catch(e){v?.(e)}})(),()=>{I.current&&(I.current.getTracks().forEach(e=>e.stop()),I.current=null,S?.()),C.current&&"closed"!==C.current.state&&(C.current.close(),C.current=null),N.current&&(cancelAnimationFrame(N.current),N.current=0)}},[t,a,m,g,v,w,S]),e.useEffect(()=>{const e=k.current;if(!e)return;const n=e.getContext("2d");if(!n)return;let a;const p=g=>{const m=e.getBoundingClientRect();if(t&&g-_.current>b&&(_.current=g,O.current)){const e=new Uint8Array(O.current.frequencyBinCount);if(O.current.getByteFrequencyData(e),"static"===y){const t=Math.floor(.05*e.length),n=Math.floor(.4*e.length),r=e.slice(t,n),a=Math.floor(m.width/(o+i)),s=Math.floor(a/2),l=[];for(let e=s-1;e>=0;e--){const t=Math.floor(e/s*r.length),n=Math.min(1,r[t]/255*f);l.push(Math.max(.05,n))}for(let e=0;e<s;e++){const t=Math.floor(e/s*r.length),n=Math.min(1,r[t]/255*f);l.push(Math.max(.05,n))}D.current=l,P.current=l}else{let t=0;const n=Math.floor(.05*e.length),r=Math.floor(.4*e.length),a=e.slice(n,r);for(let e=0;e<a.length;e++)t+=a[e];const o=t/a.length/255*f;T.current.push(Math.min(1,Math.max(.05,o))),P.current=[...T.current],T.current.length>h&&T.current.shift()}M.current=!0}if(!M.current&&!t)return void(a=requestAnimationFrame(p));M.current=t,n.clearRect(0,0,m.width,m.height);const v=l||getComputedStyle(e).color||"#000",w=o+i,S=Math.floor(m.width/w),x=m.height/2;if("static"===y){const e=r||t||D.current.length>0?D.current:[];for(let t=0;t<S&&t<e.length;t++){const r=e[t]||.1,a=t*w,i=Math.max(d,r*m.height*.8),l=x-i/2;n.fillStyle=v,n.globalAlpha=.4+.6*r,s>0?(n.beginPath(),n.roundRect(a,l,o,i,s),n.fill()):n.fillRect(a,l,o,i)}}else for(let e=0;e<S&&e<T.current.length;e++){const t=T.current.length-1-e,r=T.current[t]||.1,a=m.width-(e+1)*w,i=Math.max(d,r*m.height*.8),l=x-i/2;n.fillStyle=v,n.globalAlpha=.4+.6*r,s>0?(n.beginPath(),n.roundRect(a,l,o,i,s),n.fill()):n.fillRect(a,l,o,i)}if(c&&u>0&&m.width>0){if(!j.current||F.current!==m.width){const e=n.createLinearGradient(0,0,m.width,0),t=Math.min(.3,u/m.width);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(t,"rgba(255,255,255,0)"),e.addColorStop(1-t,"rgba(255,255,255,0)"),e.addColorStop(1,"rgba(255,255,255,1)"),j.current=e,F.current=m.width}n.globalCompositeOperation="destination-out",n.fillStyle=j.current,n.fillRect(0,0,m.width,m.height),n.globalCompositeOperation="source-over"}n.globalAlpha=1,a=requestAnimationFrame(p)};return a=requestAnimationFrame(p),()=>{a&&cancelAnimationFrame(a)}},[t,r,f,b,h,o,d,i,s,l,c,u,y]),n.jsxs("div",{className:X("relative h-full w-full",x),ref:A,style:{height:B},"aria-label":t?"Live audio waveform":r?"Processing audio":"Audio waveform idle",role:"img",...E,children:[!t&&!r&&n.jsx("div",{className:"border-muted-foreground/20 absolute top-1/2 right-0 left-0 -translate-y-1/2 border-t-2 border-dotted"}),n.jsx("canvas",{className:"block h-full w-full",ref:k,"aria-hidden":"true"})]})},_t=({messages:t=[],isDark:r,primaryColor:a,isLoading:o,agentMessageBubbleColor:i,userMessageBoxColor:s,textColor:l,assistantTextColor:c,userTextColor:u,fontFamily:d,agentMessageBubbleFontFamily:p,agentMessageBubbleFontSize:f,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:m,fontSize:h,formatTime:y,isRtl:v=!1,defaultLanguage:w="en",quickQuestions:S=[],shouldShowQuickQuestions:x=!1,onQuickQuestion:E,quickQuestionsLayout:k="vertical",onDecision:A,disclaimerEnabled:T=!1,disclaimerText:O,disclaimerPosition:C="top",disclaimerLinkUrl:I,disclaimerLinkLabel:N,resolvedAgentBubbleColor:_,resolvedUserMessageColor:R,resolvedTextColor:P,isVoiceSessionActive:L=!1,voiceStatus:D="idle",messagesContainerRef:M,companyLogo:j,chatbotAvatarEnabled:F,chatbotAvatar:B,conciergeName:U,companyName:z,apiBaseUrl:G,getAuthToken:q,onPromptSuggestionClick:H,conversationResetKey:V,allowFeedback:W,provideCitations:Y,onFeedback:X,headerTextColor:Z,onRetryMessage:Q,beforePromptsSlot:J=null,promptsSlot:ee=null,quickQuestionsHeadingLabel:te})=>{const ne=e.useRef(null),re=e.useRef(!0),ae=e.useRef(!1),oe=e.useMemo(()=>t.map(e=>`${e.id}:${e.content?.length??0}:${e.isProcessing?1:0}`).join("|"),[t]),ie=e.useCallback(()=>{const e=M?.current;if(!e)return;const t=e.scrollHeight-e.scrollTop-e.clientHeight;re.current=t<160},[M]);e.useEffect(()=>{const e=M?.current;if(e)return e.addEventListener("scroll",ie,{passive:!0}),ie(),()=>{e.removeEventListener("scroll",ie)}},[ie,M]),e.useEffect(()=>{V&&(re.current=!0,ae.current=!1)},[V]),e.useEffect(()=>{if(ae.current||0===t.length||"undefined"==typeof window)return;ae.current=!0;let e,n=!1;const r=window.requestAnimationFrame(()=>{n||(e=window.requestAnimationFrame(()=>{n||(ne.current?.scrollIntoView({behavior:"instant",block:"end"}),re.current=!0)}))});return()=>{n=!0,window.cancelAnimationFrame(r),window.cancelAnimationFrame(e)}},[0===t.length]),e.useEffect(()=>{if(!re.current)return;if("undefined"==typeof window)return;let e=!1;const t=window.requestAnimationFrame(()=>{e||ne.current?.scrollIntoView({behavior:"smooth",block:"end"})});return()=>{e=!0,window.cancelAnimationFrame(t)}},[oe,o]),e.useEffect(()=>{if(!L||"connected"!==D)return;if("undefined"==typeof window)return;let e=!1;const t=window.requestAnimationFrame(()=>{e||ne.current?.scrollIntoView({behavior:"smooth",block:"end"})});return()=>{e=!0,window.cancelAnimationFrame(t)}},[L,D]);const se=e.useMemo(()=>K(I),[I]),le=e.useMemo(()=>$(O,v),[O,v]);return n.jsxs(n.Fragment,{children:[T&&O&&"top"===C&&n.jsx("div",{className:"flex justify-center",children:n.jsx("div",{className:"rounded-lg px-2 py-1 ",style:{color:r?"#d1d5db":"#6b7280",fontFamily:null!=d?d:"Inter",fontSize:null!=h?`calc(${h} - 2px)`:"12px",direction:le?"rtl":"ltr",textAlign:"center",borderColor:r?"#374151":"#e5e7eb"},children:n.jsxs("p",{className:"leading-relaxed whitespace-pre-wrap break-words inline",dir:le?"rtl":"ltr",style:{color:r?"#d1d5db":"#6b7280",fontFamily:null!=d?d:"Inter",fontSize:null!=h?`calc(${h} - 2px)`:"12px"},children:[O,se&&N&&n.jsx("a",{href:se,target:"_blank",rel:"noopener noreferrer",title:se,style:{color:r?"#93c5fd":"#2563eb",marginInlineStart:"4px",verticalAlign:"middle",display:"inline-flex",alignItems:"center"},children:N})]})})}),t.map(e=>n.jsx(vt,{message:e,isDark:r,primaryColor:a,agentMessageBubbleColor:i,userMessageBoxColor:s,resolvedUserMessageColor:R,resolvedAgentBubbleColor:_,textColor:l,assistantTextColor:c,userTextColor:u,fontFamily:d,agentMessageBubbleFontFamily:p,agentMessageBubbleFontSize:f,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:m,fontSize:h,formatTime:y,isRtl:$(e.content,v),onDecision:A,onPromptSuggestionClick:H,companyLogo:F&&B?B:j,conciergeName:U,companyName:z,apiBaseUrl:G,getAuthToken:q,allowFeedback:W,provideCitations:Y,onFeedback:X,headerTextColor:Z,onRetryMessage:Q,defaultLanguage:w},e.id)),(()=>{const e=t[t.length-1],S=o&&"user"===e?.role,x=t.some(e=>"assistant"===e.role&&(e.isProcessing||!e.content));return S&&!x?n.jsx(vt,{message:b(),isDark:r,primaryColor:a,agentMessageBubbleColor:i,resolvedAgentBubbleColor:_,userMessageBoxColor:s,textColor:l,assistantTextColor:c,userTextColor:u,fontFamily:d,agentMessageBubbleFontFamily:p,agentMessageBubbleFontSize:f,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:m,fontSize:h,formatTime:y,isRtl:v,onDecision:A,companyLogo:F&&B?B:j,conciergeName:U,companyName:z,apiBaseUrl:G,getAuthToken:q,headerTextColor:Z,defaultLanguage:w},"skeleton-waiting"):null})(),J,ee?n.jsx("div",{className:"pt-1",children:ee}):x&&S.length>0&&n.jsx("div",{className:"pt-1",children:n.jsx(It,{questions:S,isDark:r,primaryColor:a,onQuestionClick:E,isTyping:o,layout:k,fontFamily:d,fontSize:h,textColor:l,isRtl:v,questionTextColor:c,questionBoxColor:i,headingLabel:te})}),L&&"connected"===D&&!o&&n.jsx("div",{className:"flex gap-3 flex-row-reverse animate-in",children:n.jsx("div",{className:"flex flex-col items-end max-w-[75%] w-full",children:n.jsxs("div",{className:"rounded-2xl px-4 py-2.5 shadow-lg rounded-tr-sm w-full",style:{background:`linear-gradient(135deg, ${R||a||"#2563eb"} 0%, ${R||a||"#2563eb"}dd 100%)`,width:"100px"},children:[n.jsx("span",{className:"sr-only",children:"Listening for voice input"}),n.jsx(Nt,{active:!0,barWidth:2,barHeight:4,barGap:2,barColor:u||P||"#FFFFFF",height:20,fadeEdges:!0,className:"min-w-[60px]","aria-hidden":"true"})]})})}),n.jsx("div",{ref:ne,className:"h-px"})]})};function Rt(e,t){return String(e||"").replace(/\/+$/,"")+(t.startsWith("/")?t:`/${t}`)}function Pt({apiEndpoint:e,conversationId:t,size:n,authHeader:r}){fetch(Rt(e,"/api/v1/chat-attachments/release"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversationId:t,size:n})}).catch(()=>{})}function Lt({orgId:t,conversationId:n,config:r,apiEndpoint:a,authHeader:o,onError:i}){const[s,l]=e.useState([]),c=e.useRef(new Map),u=e.useRef(0),d=e.useRef(s);d.current=s;const p=e.useRef({conversationId:n,bytes:0});p.current.conversationId!==n&&(p.current={conversationId:n,bytes:0});const f=e.useCallback(()=>(u.current+=1,`att-${Date.now()}-${u.current}`),[]),g=e.useCallback((e,t)=>{l(n=>n.map(n=>n.id===e?{...n,...t}:n))},[]),m=e.useCallback((e,t,n)=>{const r={status:"error",error:{code:t,message:n}};l(t=>{const n=t.map(t=>t.id===e?{...t,...r}:t),a=n.find(t=>t.id===e);return a&&i&&i(a),n})},[i]),h=e.useCallback((e,t)=>{if(!r?.fileUploadEnabled)return{ok:!1,code:"feature_disabled",message:"File uploads are not enabled for this organization."};if(t>=r.fileUploadMaxFiles)return{ok:!1,code:"too_many_files",message:`Max ${r.fileUploadMaxFiles} files per message.`};const n=1024*r.fileUploadMaxSizeMB*1024;if(p.current.bytes+e.size>n){return{ok:!1,code:"size_exceeded",message:`This conversation has already used ${(p.current.bytes/1048576).toFixed(1)} MB of its ${r.fileUploadMaxSizeMB} MB upload limit - this file won't fit.`}}const a=(e.type||"").toLowerCase(),o=new Set((r.fileUploadAllowedMimes||[]).map(e=>String(e).toLowerCase()));return o.size>0&&!o.has(a)?{ok:!1,code:"mime_not_allowed",message:`File type "${e.type||"unknown"}" is not allowed.`}:{ok:!0}},[r]),b=e.useCallback(async(e,t)=>{let r;try{r=await fetch(Rt(a,"/api/v1/chat-attachments/presign"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...o?{Authorization:o}:{}},body:JSON.stringify({filename:t.name,mimeType:t.type,size:t.size,conversationId:n})})}catch(n){return p.current.bytes=Math.max(0,p.current.bytes-t.size),void m(e,"network","Network error while requesting upload.")}if(!r.ok){let n="Upload rejected by the server.",a="unknown";try{const e=await r.json();e?.error&&(n=e.error),e?.code&&(a=function(e){switch(e){case"feature_disabled":case"size_exceeded":case"mime_not_allowed":case"storage_unavailable":return e;default:return"unknown"}}(e.code))}catch{}return p.current.bytes=Math.max(0,p.current.bytes-t.size),void m(e,a,n)}let i=0;const s=()=>{i>0&&(Pt({apiEndpoint:a,conversationId:n,size:i,authHeader:o}),i=0,g(e,{reservedBytes:0}))},l=()=>{p.current.bytes=Math.max(0,p.current.bytes-t.size)};let u;try{u=await r.json()}catch{return Pt({apiEndpoint:a,conversationId:n,size:t.size,authHeader:o}),l(),g(e,{reservedBytes:0}),void m(e,"unknown","Malformed presign response.")}let d,f;("boolean"==typeof u.reserved?u.reserved:!u.useMultipart)&&(i=t.size,g(e,{reservedBytes:t.size}));try{if(u.useMultipart){const r=await function({url:e,file:t,conversationId:n,authHeader:r,onProgress:a,registerXhr:o}){return new Promise((r,i)=>{const s=new XMLHttpRequest;o(s),s.open("POST",e,!0),s.withCredentials=!0;const l=new FormData;l.append("conversationId",n),l.append("file",t,t.name),s.upload.onprogress=e=>{e.lengthComputable&&a(Math.round(e.loaded/e.total*100))},s.onload=()=>{if(s.status>=200&&s.status<300)try{const e=JSON.parse(s.responseText);r({url:"string"==typeof e?.url?e.url:void 0,storageKey:"string"==typeof e?.storageKey?e.storageKey:void 0})}catch{r({})}else i(new Error(`upload_status_${s.status}`))},s.onerror=()=>i(new Error("network")),s.onabort=()=>i({aborted:!0}),s.send(l)})}({url:Rt(a,"/api/v1/chat-attachments/multipart"),file:t,conversationId:n,authHeader:o,onProgress:t=>g(e,{progress:t}),registerXhr:t=>c.current.set(e,t)});d=r.url,f=r.storageKey,i=t.size,g(e,{reservedBytes:t.size})}else{if(!u.uploadUrl)throw new Error("presign_missing_target");{await function({url:e,file:t,onProgress:n,registerXhr:r}){return new Promise((a,o)=>{const i=new XMLHttpRequest;r(i),i.open("PUT",e,!0),i.setRequestHeader("x-ms-blob-type","BlockBlob"),t.type&&i.setRequestHeader("Content-Type",t.type),i.upload.onprogress=e=>{e.lengthComputable&&n(Math.round(e.loaded/e.total*100))},i.onload=()=>{i.status>=200&&i.status<300?a():o(new Error(`upload_status_${i.status}`))},i.onerror=()=>o(new Error("network")),i.onabort=()=>o({aborted:!0}),i.send(t)})}({url:u.uploadUrl,file:t,onProgress:t=>g(e,{progress:t}),registerXhr:t=>c.current.set(e,t)});const n=await async function({apiEndpoint:e,storageKey:t,filename:n,mimeType:r,authHeader:a}){let o;try{o=await fetch(Rt(e,"/api/v1/chat-attachments/confirm"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...a?{Authorization:a}:{}},body:JSON.stringify({storageKey:t,filename:n,mimeType:r})})}catch{return{ok:!1,code:"network",message:"Network error while verifying upload."}}if(o.ok)return{ok:!0};let i="Upload rejected - file content did not match its declared type.",s="content_mismatch";try{const e=await o.json();e?.error&&(i=e.error),"password_protected"===e?.code&&(s="password_protected")}catch{}return{ok:!1,code:s,message:i}}({apiEndpoint:a,storageKey:u.storageKey,filename:t.name,mimeType:t.type,authHeader:o});if(!n.ok)return c.current.delete(e),s(),l(),void m(e,n.code,n.message)}}}catch(t){if(c.current.delete(e),t&&t.aborted)return;return s(),l(),void m(e,"network","Upload failed. Please retry.")}c.current.delete(e),g(e,{status:"ready",progress:100,storageKey:f||u.storageKey,...d?{url:d}:{}})},[a,o,n,m,g]),y=e.useCallback(async e=>{const t=Array.from(e);for(const e of t){const t=d.current.filter(e=>"error"!==e.status).length,n=h(e,t),r=f();if(!n.ok){const t={id:r,filename:e.name,size:e.size,mimeType:e.type,status:"error",error:{code:n.code,message:n.message}};l(e=>(i&&i(t),[...e,t]));continue}const a={id:r,filename:e.name,size:e.size,mimeType:e.type,status:"uploading",progress:0,reservedBytes:0};l(e=>[...e,a]),p.current.bytes+=e.size,b(r,e)}},[h,b,f,i]),v=e.useCallback(e=>{const t=c.current.get(e);t&&(t.abort(),c.current.delete(e));const r=d.current.find(t=>t.id===e);r&&r.reservedBytes>0&&(Pt({apiEndpoint:a,conversationId:n,size:r.reservedBytes,authHeader:o}),p.current.bytes=Math.max(0,p.current.bytes-r.reservedBytes)),l(t=>t.filter(t=>t.id!==e))},[a,o,n]),w=e.useCallback(()=>{for(const e of c.current.values())e.abort();c.current.clear(),l([])},[]),S=e.useMemo(()=>s.some(e=>"validating"===e.status||"uploading"===e.status),[s]),x=e.useCallback(()=>s.filter(e=>"ready"===e.status&&"string"==typeof e.storageKey).map(e=>({filename:e.filename,mimeType:e.mimeType,size:e.size,storageKey:e.storageKey,url:e.url})),[s]);return{attachments:s,addFiles:y,removeAttachment:v,clearAll:w,isBusy:S,toSendPayload:x}}function Dt(e){if(!e||e<1024)return`${e||0} B`;const t=["KB","MB","GB"];let n=e/1024,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r+=1;return`${n.toFixed(n>=10?0:1)} ${t[r]}`}function Mt({attachment:e,onRemove:t,isDark:r}){const a="error"===e.status,o="uploading"===e.status,i="ready"===e.status,s=a?r?"rgba(239,68,68,0.15)":"#fee2e2":r?"#1f2937":"#f3f4f6",l=a?r?"#b91c1c":"#fca5a5":r?"#374151":"#e5e7eb",c=a?r?"#fca5a5":"#b91c1c":r?"#e5e7eb":"#374151",u=a?`${e.filename} - ${e.error?.message||"error"}`:o?`${e.filename} - uploading`:`${e.filename} - ready`;return n.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full pl-2 pr-1 py-1 text-xs",style:{backgroundColor:s,border:`1px solid ${l}`,color:c,maxWidth:240},title:a?e.error?.message:e.filename,"aria-label":u,children:[a?n.jsx(Ne,{size:12,"aria-hidden":"true"}):o?n.jsx(Fe,{size:12,className:"animate-spin","aria-hidden":"true"}):n.jsx(Me,{size:12,"aria-hidden":"true"}),n.jsx("span",{className:"truncate",style:{maxWidth:140,direction:"ltr"},children:e.filename}),i&&n.jsx("span",{className:"opacity-70 text-chip",children:Dt(e.size)}),o&&"number"==typeof e.progress&&n.jsxs("span",{className:"opacity-70 text-chip",children:[e.progress,"%"]}),n.jsx("button",{type:"button",onClick:()=>t(e.id),className:"w-4 h-4 rounded-full inline-flex items-center justify-center",style:{backgroundColor:"transparent",border:"none",color:c,cursor:"pointer"},"aria-label":"Remove attachment",children:n.jsx(Xe,{size:12})})]})}const jt=({suggestions:e,onSuggestionClick:t,promptPrimary:r,promptTextColor:a,promptFontFamily:o,promptFontSize:i,isRtl:s,t:l,questionDisplay:c=!0})=>n.jsx("div",{className:"mb-2 px-5",children:n.jsx("div",{className:"flex flex-col gap-2",role:"group","aria-label":l("suggestedQuestions"),children:e.map((e,l)=>{const u=((e,t=!0)=>{if(!e||"string"==typeof e)return e||"";const n="string"==typeof e.text?e.text:"";if(!t)return n;const r="string"==typeof e.submitText?e.submitText.trim():"";return r&&r!==n?r:n})(e,c),d=$(u,s);return n.jsx("button",{type:"button",onClick:()=>t(e.submitText||e.text||e,e,l),dir:d?"rtl":"ltr",className:"block w-full rounded-2xl px-4 py-2 border-0 transition-transform duration-150 active:scale-[0.99] "+(d?"text-right":"text-left"),style:{direction:d?"rtl":"ltr",textAlign:d?"right":"left",background:`linear-gradient(135deg, ${r} 0%, ${r}dd 100%)`,color:a,fontFamily:o,fontSize:i},children:u},`${e.text||e}-${l}`)})})}),Ft=({onStopGeneration:t,inputValue:a,setInputValue:o,onSend:i,isDark:s,primaryColor:l,isOpen:c,isMinimized:u,isLoading:d,isConversationLoading:p=!1,placeholder:f,textColor:g,fontFamily:m,fontSize:h,isRtl:b=!1,csatVisible:y=!1,enableVoiceInteraction:v=!1,isVoiceSessionActive:w=!1,voiceStatus:S="idle",voiceError:x=null,onVoiceToggle:E,onBidiSubmit:k,disclaimerEnabled:A=!1,disclaimerText:T,disclaimerPosition:O="top",disclaimerLinkUrl:C,disclaimerLinkLabel:I,showPoweredBy:N=!0,onboardingQuestions:_=[],onboardingActive:R=!1,onboardingCompleted:P=!1,userMessageBubbleFontFamily:M,onboardingEnabled:j=!1,userMessageBubbleFontSize:B,userMessageBoxColor:U,resolvedUserMessageColor:z,userTextColor:q,promptSuggestions:H,onPromptSuggestionClick:V,autoPromptQuestionDisplay:W=!0,tagSelectorNode:Y=null,showResolveButton:Z=!1,onResolve:Q,defaultLanguage:J="en",chatFeatures:ee,apiEndpoint:te,organizationId:ne,conversationId:re})=>{const ae=e.useMemo(()=>G(J),[J]),oe=e.useMemo(()=>function(e){const t=F(e),n=D[t]||L;return{beforeBrand:n.poweredByBefore??n.poweredBy??L.poweredByBefore,afterBrand:n.poweredByAfter??""}}(J),[J]),ie=e.useMemo(()=>$(a,b),[a,b]),[se,le]=e.useState(!1),[ce,ue]=e.useState(!1),de=e.useMemo(()=>({fileUploadEnabled:ee?.fileUploadEnabled??!1,fileUploadMaxSizeMB:ee?.fileUploadMaxSizeMB??10,fileUploadMaxFiles:ee?.fileUploadMaxFiles??3,fileUploadAllowedMimes:ee?.fileUploadAllowedMimes??[]}),[ee]),{attachments:pe,addFiles:fe,removeAttachment:ge,clearAll:me,isBusy:he,toSendPayload:be}=Lt({orgId:ne,conversationId:re,config:de,apiEndpoint:te,authHeader:void 0}),ye=e.useRef(null),ve=!!de.fileUploadEnabled&&!!te,we=pe.length>=de.fileUploadMaxFiles,Se=`Max ${de.fileUploadMaxFiles} files per message.`,xe=e.useMemo(()=>de.fileUploadAllowedMimes.length>0?de.fileUploadAllowedMimes.join(","):void 0,[de.fileUploadAllowedMimes]),[Ee,ke]=e.useState({top:0,left:0,placement:"top",arrowOffset:0}),[Te,Oe]=e.useState(!1),Ce=e.useRef(null),Ie=e.useRef(null),Ne=e.useRef(null),_e=e.useRef(null);nt(m),nt(M),e.useEffect(()=>{c&&!u&&Ie.current?.focus()},[c,u]),e.useEffect(()=>{const e=Ie.current;if(e){e.style.height="auto";const t=e.scrollHeight,n=a.trim().length>0?20:48,r=Math.max(n,Math.min(t,120));e.style.height=`${r}px`}},[a]);const Re=e.useCallback(()=>{const e=be();e.length>0?(i(void 0,e),me()):i()},[be,me,i]),Pe=pe.some(e=>"ready"===e.status),Le=!a.trim()&&!Pe||d||p||he,De=s?"#374151":"#e5e7eb",Me=_&&_.length>0,je=y||p||j&&(Me&&!P)||"connecting"===S,Be=y?ae("pleaseSubmitRatingFirst"):Me?R?ae("completeOnboardingToEnableVoice"):P?"":ae("sendMessageToCompleteOnboarding"):"",Ue=()=>{if(!Ne.current)return;const e=Ne.current.getBoundingClientRect(),t=220,n=e.top,r=window.innerHeight-e.bottom;let a="top",o=0,i=0;n>=73?(a="top",o=e.top-60-5-8,i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10)):r>=68?(a="bottom",o=e.bottom+8,i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10)):(a="top",o=Math.max(10,e.top-60-5-8),i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10));return{top:o,left:i,placement:a,arrowOffset:e.left+e.width/2-i}};e.useEffect(()=>{if(ce&&Be){const e=()=>{const e=Ue();ke(e)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}}},[ce,Be]),e.useEffect(()=>()=>{Ce.current&&clearTimeout(Ce.current)},[]);const $e=null!=z?z:null!=U?U:null!=l?l:"#2563eb",He=null!=q?q:null!=g?g:"#FFFFFF",Ve=null!=M?M:null!=m?m:"Inter",We=null!=B?B:null!=h?h:null,Ye=We?`calc(${We} - 2px)`:"12px",Ke=K(C);return n.jsxs("div",{className:"py-4 flex-shrink-0 relative "+(s?"bg-gray-900":"bg-white"),style:{overflow:"visible"},children:[Y||H.length>0&&V&&n.jsx(jt,{suggestions:H,onSuggestionClick:V,questionDisplay:W,promptPrimary:$e,promptTextColor:He,promptFontFamily:Ve,promptFontSize:Ye,isRtl:b,t:ae}),n.jsx("div",{className:"my-4",style:{height:"1px",backgroundColor:De}}),ve&&pe.length>0&&n.jsx("div",{className:"px-5 mb-2 flex flex-wrap gap-1.5",children:pe.map(e=>n.jsx(Mt,{attachment:e,onRemove:ge,isDark:s},e.id))}),n.jsxs("div",{className:"flex items-center px-5 gap-1.5",children:[ve&&n.jsx("input",{ref:ye,type:"file",multiple:!0,accept:xe,"aria-label":ae("uploadFile"),className:"hidden",style:{display:"none"},onChange:e=>{const t=e.target.files;t&&t.length&&!we&&fe(t),e.currentTarget.value=""}}),n.jsxs("div",{className:`flex-1 flex items-center gap-1 px-1 min-h-[48px] ${s?"bg-gray-800":"bg-gray-50"} rounded-2xl transition-all duration-200`,style:{borderStyle:"solid",borderColor:a&&a.trim().length>0?l||"#2563eb":De,borderWidth:a&&a.trim().length>0?"2px":"1px"},children:[ve&&n.jsxs("div",{className:"relative group shrink-0",children:[n.jsx("button",{type:"button",onClick:()=>ye.current&&ye.current.click(),disabled:y||p||d||we,"aria-label":we?Se:"Attach file",title:we?Se:"Attach file",className:`h-8 w-8 rounded-lg flex items-center justify-center transition-colors duration-200 ${s?"text-gray-300 hover:bg-gray-700":"text-gray-500 hover:bg-gray-200"} disabled:opacity-40 disabled:cursor-not-allowed`,style:{border:"none"},children:n.jsx(ze,{className:"w-4 h-4"})}),we&&n.jsx("div",{role:"tooltip",className:"pointer-events-none absolute bottom-full left-1/2 -translate-x-1/2 mb-2 opacity-0 group-hover:opacity-100 transition-opacity px-3 py-1.5 text-xs rounded-lg whitespace-nowrap shadow-lg "+(s?"bg-gray-700 text-gray-100":"bg-gray-800 text-white"),children:Se})]}),n.jsx("div",{className:"relative flex-1 flex items-center min-w-0",children:n.jsx("textarea",{id:"chat-widget-input",ref:Ie,"aria-label":f||ae("typeYourMessage"),value:a,onChange:e=>{o(e.target.value)},onFocus:()=>le(!0),onBlur:()=>le(!1),onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(e.preventDefault(),w&&k)return void k();if(Le)return;Re()}},placeholder:p?ae("agentIsLoading"):f||ae("typeYourMessage"),rows:1,disabled:y||p||d||w&&"connected"!==S,dir:ie?"rtl":"ltr",className:`w-full px-3 bg-transparent rounded-xl leading-normal ${s?"text-gray-100":"text-gray-900"} placeholder-gray-400 resize-none outline-none scrollbar-hide break-words`,style:{height:"auto",maxHeight:"120px",minHeight:"48px",paddingTop:a.trim().length>0?"12px":"0px",paddingBottom:a.trim().length>0?"12px":"0px",lineHeight:a.trim().length>0?"1.4":"48px",fontFamily:M||m||"Inter",fontSize:h||"14px",color:s?"#F3F4F6":"#1F2937",textAlign:ie?"right":"left",direction:ie?"rtl":"ltr",wordSpacing:"0",letterSpacing:"0"}})}),v&&n.jsxs("div",{className:"relative shrink-0",onMouseEnter:()=>{if(je&&Be){Ce.current&&(clearTimeout(Ce.current),Ce.current=null);const e=Ue();ke(e),ue(!0)}},onMouseLeave:()=>{Ce.current&&(clearTimeout(Ce.current),Ce.current=null),ue(!1)},children:[n.jsx("button",{style:{border:"none"},ref:Ne,type:"button",onClick:E,"aria-label":ae(w?"stopVoiceInput":"startVoiceInput"),className:`h-8 w-8 rounded-lg flex items-center justify-center transition-colors duration-200 ${w?"bg-red-500 text-white hover:bg-red-600":s?"text-gray-300 hover:bg-gray-700":"text-gray-500 hover:bg-gray-200"} ${je?"opacity-60 cursor-not-allowed":""}`,disabled:je,children:"connecting"===S?n.jsx(Fe,{className:"w-4 h-4 animate-spin"}):n.jsx(Ae,{className:"w-4 h-4"})}),ce&&Be&&"undefined"!=typeof document&&r.createPortal(n.jsxs("div",{ref:_e,className:"px-3 py-1.5 text-xs shadow-md pointer-events-none",style:{position:"fixed",top:`${Ee.top}px`,left:`${Ee.left}px`,maxWidth:"220px",whiteSpace:"normal",wordWrap:"break-word",minWidth:"180px",zIndex:999999,backgroundColor:s?"#1f2937":"#ffffff",color:s?"#f3f4f6":"#111827",border:s?"1px solid #374151":"1px solid #e5e7eb",borderRadius:"top"===Ee.placement?"6px 6px 6px 6px":"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",overflow:"visible"},children:[n.jsx("div",{className:"text-left leading-relaxed",children:Be}),"top"===Ee.placement&&n.jsxs(n.Fragment,{children:[n.jsx("div",{style:{position:"absolute",top:"100%",left:`${Ee.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:s?"6px solid #374151":"6px solid #e5e7eb",pointerEvents:"none"}}),n.jsx("div",{style:{position:"absolute",top:"100%",left:`${Ee.arrowOffset}px`,transform:"translateX(-50%)",marginTop:"-1px",width:0,height:0,borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:s?"5px solid #1f2937":"5px solid #ffffff",pointerEvents:"none"}})]}),"bottom"===Ee.placement&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"absolute bottom-full",style:{left:`${Ee.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderBottom:s?"5px solid #374151":"5px solid #e5e7eb"}}),n.jsx("div",{className:"absolute bottom-full -mb-px",style:{left:`${Ee.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderBottom:s?"4px solid #1f2937":"4px solid #ffffff"}})]})]}),document.body)]})]}),d&&!w&&"function"==typeof t?n.jsx("button",{onClick:t,className:"h-10 w-10 flex-shrink-0 rounded-xl transition-all duration-200 flex items-center justify-center shadow-md scale-100",style:{backgroundColor:l,color:"white",border:"none"},"aria-label":ae("stopGenerating"),children:n.jsx(qe,{className:"w-3.5 h-3.5",fill:"currentColor"})}):n.jsx("button",{onClick:w&&k?k:Re,disabled:y||Le||w&&"connected"!==S,className:"h-10 w-10 flex-shrink-0 rounded-xl transition-all duration-200 flex items-center justify-center shadow-md disabled:opacity-40 disabled:cursor-not-allowed disabled:shadow-none "+(a.trim()?"scale-100":"scale-95"),style:{backgroundColor:a.trim()?l:s?"#374151":"#e5e7eb",color:a.trim()?"white":"#9ca3af",border:"none"},"aria-label":ae("sendMessage"),children:n.jsx(Ge,{className:"w-4 h-4 transition-transform",style:b?{transform:"rotate(-90deg)"}:void 0})})]}),w&&n.jsxs("p",{"aria-live":"polite",className:`text-xs mt-2 px-5 ${"connected"===S?"text-status-success":"text-gray-500"} flex items-center gap-1`,children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-current inline-flex"}),ae("connected"===S?"voiceSessionLive":"connectingVoice")]}),x&&n.jsx("p",{role:"alert",className:"text-xs mt-1 px-5 text-status-error",children:ae(x)===x?ae("voiceUnavailable"):ae(x)}),A&&T&&"footer"===O&&n.jsxs("p",{className:"text-xs mt-2 px-5 text-center",style:{color:s?"#d1d5db":"#6b7280",fontFamily:m||"Inter",fontSize:h?`calc(${h} - 2px)`:"12px",direction:b?"rtl":"ltr"},dir:b?"rtl":"ltr",children:[T,Ke&&I&&n.jsx("a",{href:Ke,target:"_blank",rel:"noopener noreferrer",title:Ke,style:{color:s?"#93c5fd":"#2563eb",marginInlineStart:"4px",verticalAlign:"middle",display:"inline-flex",alignItems:"center"},children:I})]}),N&&n.jsx("div",{className:"mt-1.5 flex justify-center",children:n.jsx("a",{href:"https://eshal.ai",target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:n.jsxs("span",{dir:"ltr",className:"inline-flex items-center gap-1.5 py-1.5 px-3",children:[oe.beforeBrand&&n.jsx("span",{className:X("font-sans text-[10px] font-medium",s?"text-gray-400":"text-gray-500"),children:oe.beforeBrand}),Te?n.jsx("span",{className:X("font-sans text-[10px] font-semibold",s?"text-gray-300":"text-gray-600"),children:"ESHAL"}):n.jsx("img",{src:s?"data:image/svg+xml,%3csvg width='219' height='54' xmlns='http://www.w3.org/2000/svg' version='1.0'%3e%3cg class='layer'%3e%3ctitle%3eEshal Logo%3c/title%3e%3cg clip-path='url(%23a)' transform='translate(-.708 -1.076)'%3e%3cg clip-path='url(%23b)'%3e%3cpath d='M21.79 54.75h4.5l3.93-.56 4.49-1.4 3.38-1.97 2.81-2.25 2.24-2.81 2.25-3.93 1.13-3.09v-.85l-3.65-1.12h-.57l-1.96 4.5-1.97 3.09-2.81 2.53-3.93 1.96-3.38.85-2.81.28h-2.81l-4.21-.57-3.94-1.4-2.81-1.97-2.25-2.24-1.96-3.38-1.41-4.21-.56-3.37-.28-3.1v-3.65l.56-5.06 1.12-4.21 1.97-3.94 2.53-2.81 2.25-1.68 2.81-1.41 3.37-.84 2.25-.28H26l4.78.84 4.5 2.25 2.53 2.53 1.4 2.53.56 2.53-.28 3.65-1.12 2.25-1.41 1.69-1.4.55-1.13-4.21-1.68-2.81-1.97-1.97-3.09-1.4-1.12-.28h-5.34l-3.09 1.12-2.25 1.69-1.41 1.97-.84 3.09.28 3.08 1.4 2.82 1.97 1.96 2.81 1.41 2.25.56 4.78.28 3.09-.28.84-.28-1.12 3.09-1.69 1.97-2.25.84h-3.65l-2.81-1.12-1.68-1.41-3.38 2.25.56 1.13 1.13 1.4 2.81 1.69 2.81.84h4.78l2.81-.84 2.53-1.69 1.96-2.25L35 34.8l.84-4.5 3.65-2.24 2.53-2.53 1.69-3.09.56-2.25.28-2.81-.56-3.93-1.12-2.82-2.25-3.09-3.09-2.81-4.22-2.25-4.5-1.12-2.52-.28h-4.5l-3.93.56-4.5 1.41-3.38 1.96-3.37 3.1-2.52 3.65-1.97 4.49-1.13 4.78-.28 2.25v9.27l.84 5.06 1.69 4.78 1.69 3.09 2.25 2.81 2.8 2.53 2.82 1.69 5.06 1.68zm1.12-27.54-2.53-.84-1.4-1.12-.84-1.69.28-2.53 1.12-1.4 2.25-1.13H26l2.81 1.41 1.41 1.97.84 2.8v2.25l-1.12.28zm0 0' fill='white'/%3e%3c/g%3e%3c/g%3e%3cpath d='M82.381 38.435v6.48h-27.06V9.965h26.41v6.5h-18.36v7.57h16.22v6.3h-16.22v8.1zm16.432 7.07c-2.77 0-5.44-.37-8.02-1.11-2.57-.75-4.65-1.72-6.22-2.92l2.75-6.09c1.5 1.09 3.28 1.98 5.34 2.64 2.07.67 4.13 1 6.19 1q3.45 0 5.1-1.02t1.65-2.73c0-.83-.33-1.52-.98-2.06-.65-.55-1.48-1-2.5-1.33-1.01-.33-2.39-.7-4.11-1.1-2.67-.63-4.85-1.26-6.55-1.89s-3.15-1.64-4.37-3.04c-1.21-1.41-1.82-3.27-1.82-5.6 0-2.03.55-3.86 1.64-5.51 1.11-1.66 2.76-2.96 4.97-3.92 2.22-.97 4.93-1.46 8.13-1.46 2.22 0 4.4.27 6.53.8s4 1.3 5.59 2.3l-2.5 6.14c-3.23-1.82-6.45-2.74-9.67-2.74-2.27 0-3.95.37-5.03 1.1-1.07.73-1.61 1.69-1.61 2.89q0 1.8 1.86 2.67c1.25.59 3.16 1.16 5.72 1.72 2.66.63 4.85 1.27 6.55 1.9 1.69.63 3.14 1.63 4.36 2.99 1.21 1.37 1.82 3.21 1.82 5.55 0 2-.56 3.82-1.67 5.46q-1.68 2.475-5.01 3.93c-2.23.95-4.95 1.43-8.14 1.43m50.913-35.54v34.95h-8.08v-14.33h-15.88v14.33h-8.09V9.965h8.09v13.78h15.88V9.965zm29.811 27.47h-16.22l-3.1 7.48h-8.29l15.58-34.95h7.98l15.62 34.95h-8.48zm-2.55-6.15-5.55-13.37-5.53 13.37zm16.274-21.32h8.09v28.36h17.52v6.59h-25.61zm0 0' fill='white'/%3e%3c/g%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='219' height='54' xmlns='http://www.w3.org/2000/svg' version='1.0'%3e%3cg class='layer'%3e%3ctitle%3eEshal Logo%3c/title%3e%3cg clip-path='url(%23a)' transform='translate(-.708 -1.076)'%3e%3cg clip-path='url(%23b)'%3e%3cpath d='M21.79 54.75h4.5l3.93-.56 4.49-1.4 3.38-1.97 2.81-2.25 2.24-2.81 2.25-3.93 1.13-3.09v-.85l-3.65-1.12h-.57l-1.96 4.5-1.97 3.09-2.81 2.53-3.93 1.96-3.38.85-2.81.28h-2.81l-4.21-.57-3.94-1.4-2.81-1.97-2.25-2.24-1.96-3.38-1.41-4.21-.56-3.37-.28-3.1v-3.65l.56-5.06 1.12-4.21 1.97-3.94 2.53-2.81 2.25-1.68 2.81-1.41 3.37-.84 2.25-.28H26l4.78.84 4.5 2.25 2.53 2.53 1.4 2.53.56 2.53-.28 3.65-1.12 2.25-1.41 1.69-1.4.55-1.13-4.21-1.68-2.81-1.97-1.97-3.09-1.4-1.12-.28h-5.34l-3.09 1.12-2.25 1.69-1.41 1.97-.84 3.09.28 3.08 1.4 2.82 1.97 1.96 2.81 1.41 2.25.56 4.78.28 3.09-.28.84-.28-1.12 3.09-1.69 1.97-2.25.84h-3.65l-2.81-1.12-1.68-1.41-3.38 2.25.56 1.13 1.13 1.4 2.81 1.69 2.81.84h4.78l2.81-.84 2.53-1.69 1.96-2.25L35 34.8l.84-4.5 3.65-2.24 2.53-2.53 1.69-3.09.56-2.25.28-2.81-.56-3.93-1.12-2.82-2.25-3.09-3.09-2.81-4.22-2.25-4.5-1.12-2.52-.28h-4.5l-3.93.56-4.5 1.41-3.38 1.96-3.37 3.1-2.52 3.65-1.97 4.49-1.13 4.78-.28 2.25v9.27l.84 5.06 1.69 4.78 1.69 3.09 2.25 2.81 2.8 2.53 2.82 1.69 5.06 1.68zm1.12-27.54-2.53-.84-1.4-1.12-.84-1.69.28-2.53 1.12-1.4 2.25-1.13H26l2.81 1.41 1.41 1.97.84 2.8v2.25l-1.12.28zm0 0' fill='black'/%3e%3c/g%3e%3c/g%3e%3cpath d='M82.381 38.435v6.48h-27.06V9.965h26.41v6.5h-18.36v7.57h16.22v6.3h-16.22v8.1zm16.432 7.07c-2.77 0-5.44-.37-8.02-1.11-2.57-.75-4.65-1.72-6.22-2.92l2.75-6.09c1.5 1.09 3.28 1.98 5.34 2.64 2.07.67 4.13 1 6.19 1q3.45 0 5.1-1.02t1.65-2.73c0-.83-.33-1.52-.98-2.06-.65-.55-1.48-1-2.5-1.33-1.01-.33-2.39-.7-4.11-1.1-2.67-.63-4.85-1.26-6.55-1.89s-3.15-1.64-4.37-3.04c-1.21-1.41-1.82-3.27-1.82-5.6 0-2.03.55-3.86 1.64-5.51 1.11-1.66 2.76-2.96 4.97-3.92 2.22-.97 4.93-1.46 8.13-1.46 2.22 0 4.4.27 6.53.8s4 1.3 5.59 2.3l-2.5 6.14c-3.23-1.82-6.45-2.74-9.67-2.74-2.27 0-3.95.37-5.03 1.1-1.07.73-1.61 1.69-1.61 2.89q0 1.8 1.86 2.67c1.25.59 3.16 1.16 5.72 1.72 2.66.63 4.85 1.27 6.55 1.9 1.69.63 3.14 1.63 4.36 2.99 1.21 1.37 1.82 3.21 1.82 5.55 0 2-.56 3.82-1.67 5.46q-1.68 2.475-5.01 3.93c-2.23.95-4.95 1.43-8.14 1.43m50.913-35.54v34.95h-8.08v-14.33h-15.88v14.33h-8.09V9.965h8.09v13.78h15.88V9.965zm29.811 27.47h-16.22l-3.1 7.48h-8.29l15.58-34.95h7.98l15.62 34.95h-8.48zm-2.55-6.15-5.55-13.37-5.53 13.37zm16.274-21.32h8.09v28.36h17.52v6.59h-25.61zm0 0' fill='black'/%3e%3c/g%3e%3c/svg%3e",alt:"ESHAL",className:X("h-3",s?"opacity-60":"opacity-50"),onError:()=>Oe(!0)}),oe.afterBrand&&n.jsx("span",{className:X("font-sans text-[10px] font-medium",s?"text-gray-400":"text-gray-500"),children:oe.afterBrand})]})})})]})},Bt=["sun","mon","tue","wed","thu","fri","sat"];function Ut(e){if(!e||"string"!=typeof e)return null;const t=e.match(/^(\d{1,2}):(\d{2})/);if(!t)return null;const n=parseInt(t[1],10),r=parseInt(t[2],10);return Number.isNaN(n)||Number.isNaN(r)?null:60*n+r}function zt(e,t=new Date,n={}){if(!e||!e.showStatus)return null;const r=n.online||"Online now",a=n.officeOpen||"Online now",o=n.offlineFallback||"Offline";if("officeHours"!==e.statusMode)return{online:!0,label:r};const i=e.officeHours||{},{dayKey:s,minutes:l}=function(e,t){try{const n=new Intl.DateTimeFormat("en-US",{timeZone:e||void 0,weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(t),r=(n.find(e=>"weekday"===e.type)||{}).value||"";let a=parseInt((n.find(e=>"hour"===e.type)||{}).value||"0",10);const o=parseInt((n.find(e=>"minute"===e.type)||{}).value||"0",10);return 24===a&&(a=0),{dayKey:r.slice(0,3).toLowerCase(),minutes:60*a+o}}catch{return{dayKey:Bt[t.getDay()],minutes:60*t.getHours()+t.getMinutes()}}}(i.timezone,t),c=Array.isArray(i.days)?i.days.map(e=>String(e).slice(0,3).toLowerCase()):[],u=Ut(i.open),d=Ut(i.close);if(c.includes(s)&&(null!=u&&null!=d&&(u<=d?l>=u&&l<d:l>=u||l<d))){return{online:!0,label:(i.onlineMessage||"").trim()||a}}return{online:!1,label:(i.offlineMessage||"").trim()||o}}const $t=({conciergeName:t,companyName:r,companyLogo:a,primaryColor:o,isDark:i,isMinimized:s=!1,textColor:l,fontFamily:c,fontSize:u,onToggleTheme:d,onMinimize:p,onClose:f,headerTextBold:g=!1,headerTextItalic:m=!1,headerTextColor:h,headerFontFamily:b,headerFontSize:y,subtitle:v=null,showStatus:w=!1,statusMode:S="always",officeHours:x=null,onRefreshChat:E,onCopyChat:k,defaultLanguage:A="en"})=>{const T=o,O=h||"#FFFFFF",C=b||c||"Inter",I=y||u;nt(C);const N=e.useMemo(()=>G(A),[A]),_=B(A),R=e.useMemo(()=>$(v,_),[v,_]),P=e.useMemo(()=>zt({showStatus:w,statusMode:S,officeHours:x}),[w,S,x]),[L,D]=e.useState(!1),M=e.useRef(null),j=e.useRef(null);e.useEffect(()=>{if(!L)return;const e=e=>{M.current&&!e.composedPath().includes(M.current)&&D(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[L]);const F=e.useRef(!1);e.useEffect(()=>{if(L){F.current=!0;const e=M.current?.querySelector('[role="menuitem"]');e?.focus()}else F.current&&(F.current=!1,j.current?.focus())},[L]);const U=O;return n.jsxs("div",{className:`text-white ${s?"px-4 py-2.5":"px-3 py-4"} flex items-center justify-between relative overflow-visible rounded-t-2xl z-[60]`,style:{background:T,fontFamily:C},children:[n.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 pl-1",children:[n.jsxs("div",{className:"relative w-11 h-11 flex-shrink-0",children:[n.jsx("div",{className:"w-full h-full rounded-full overflow-hidden flex items-center justify-center bg-white/20",children:a?n.jsx("img",{src:a,alt:"Logo",style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},loading:"lazy"}):n.jsx("span",{className:"text-lg font-semibold leading-none",style:{color:U},children:(t||r||"")?.charAt(0)?.toUpperCase()})}),P?n.jsx("span",{title:P.label,className:X("absolute bottom-0 h-3 w-3 rounded-full ring-2 ring-white",_?"left-0":"right-0"),style:{backgroundColor:P.online?"#22c55e":"#9ca3af",boxShadow:P.online?"0 0 0 3px rgba(34,197,94,0.25)":"none"},"aria-hidden":"true"}):null]}),n.jsxs("div",{className:"flex flex-col justify-center min-w-0",style:{fontFamily:C},children:[n.jsx("h3",{title:t,className:X("font-semibold leading-snug truncate",g&&"font-bold",m&&"italic"),style:{fontSize:I?`calc(${I} + 2px)`:"15px",color:U},children:t}),v?n.jsx("p",{title:v,className:"leading-snug truncate opacity-75",dir:R?"rtl":"ltr",style:{fontSize:"12px",color:U,textAlign:R?"right":"left"},children:v}):null]})]}),n.jsxs("div",{className:"flex items-center gap-0 relative z-10 text-white flex-shrink-0 ml-1",children:[n.jsxs("div",{className:"relative",ref:M,children:[n.jsx("button",{type:"button",ref:j,"aria-label":N("menu"),"aria-expanded":L,"aria-haspopup":"true",onClick:()=>D(e=>!e),onKeyDown:e=>{"Escape"===e.key&&L&&(e.preventDefault(),D(!1))},className:"inline-flex h-7 w-7 items-center justify-center cursor-pointer transition-opacity duration-200 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 rounded-full border-0 bg-transparent p-0",style:{color:U},children:n.jsx(Le,{className:"w-4 h-4",strokeWidth:1.6})}),L&&n.jsxs("div",{role:"menu","aria-label":N("menu"),dir:_?"rtl":"ltr",onKeyDown:e=>{if("Escape"===e.key)return e.preventDefault(),void D(!1);if("Tab"===e.key){const t=M.current?Array.from(M.current.querySelectorAll('[role="menuitem"]')):[];if(0===t.length)return;const n=t[0],r=t[t.length-1],a=document.activeElement;e.shiftKey&&a===n?(e.preventDefault(),r.focus()):e.shiftKey||a!==r||(e.preventDefault(),n.focus())}},className:`absolute top-full mt-1 w-44 rounded-xl border shadow-lg py-1 z-[9999] animate-in fade-in slide-in-from-top-1 duration-150 ${_?"left-0":"right-0"} ${i?"bg-gray-800 border-gray-700":"bg-white border-gray-200"}`,style:{fontFamily:C},children:[n.jsxs("button",{role:"menuitem",onClick:()=>{D(!1),E?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(i?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:C,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:_?"right":"left"},children:[n.jsx($e,{className:"w-3.5 h-3.5 flex-shrink-0"}),N("refreshChat")]}),n.jsxs("button",{role:"menuitem",onClick:()=>{D(!1),k?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(i?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:C,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:_?"right":"left"},children:[n.jsx(Re,{className:"w-3.5 h-3.5 flex-shrink-0"}),N("copyChat")]}),n.jsxs("button",{role:"menuitem",onClick:()=>{D(!1),d?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(i?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:C,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:_?"right":"left"},children:[i?n.jsx(Ve,{className:"w-3.5 h-3.5 flex-shrink-0"}):n.jsx(Ue,{className:"w-3.5 h-3.5 flex-shrink-0"}),N(i?"lightMode":"nightMode")]})]})]}),n.jsx("button",{type:"button","aria-label":N("close"),onClick:f,className:"inline-flex h-7 w-7 items-center justify-center cursor-pointer transition-opacity duration-200 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 rounded-full border-0 bg-transparent p-0",style:{color:U},children:n.jsx(Xe,{className:"w-3.5 h-3.5",strokeWidth:1.6})})]})]})},Gt=({questions:t=[],collapsiblePrompt:r,onSubmit:a,primaryColor:o="#2563eb",isRtl:i=!1,isDark:s=!1,defaultLanguage:l="en"})=>{const c=e.useMemo(()=>G(l),[l]),[u,d]=e.useState({}),[p,f]=e.useState({}),[g,m]=e.useState(!1),h=e.useRef({}),b=[...t].sort((e,t)=>Q(e.fieldType)-Q(t.fieldType));return n.jsx("div",{className:"flex flex-col items-center justify-center p-5 h-full min-h-0 z-50 relative ",style:s?{backgroundColor:"#10141C"}:void 0,children:n.jsxs("div",{className:"w-full max-w-sm rounded-3xl shadow-xl border p-8 transition-colors duration-300 bg-white border-gray-100",style:s?{backgroundColor:"#1E232B",border:"1px solid #2A303C",borderRadius:"14px"}:void 0,children:[r&&n.jsx("div",{className:"mb-5 text-left",children:n.jsx("h3",{className:"transition-colors duration-300 text-h4 font-semibold "+(s?"text-white":"text-[#4A5568]"),children:r})}),n.jsxs("form",{onSubmit:async e=>{e.preventDefault();const t=(()=>{const e={};return b.forEach(t=>{const n=t.fieldType||"question",r=(u[n]??"").trim(),a=t.collectionPrompt||t.askToType||t.question||t.label||n,o=!0===t.required||"true"===t.required;r?("fullName"!==n&&"name"!==n||r.length<2&&(e[n]=c("nameInvalid")),"email"!==n||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)||(e[n]=c("emailInvalid")),"phone"!==n&&"mobileno"!==n||/^[+]?[\d\s-]{8,15}$/.test(r)||(e[n]=c("phoneInvalid"))):o&&(e[n]="email"===n?c("emailRequired"):"fullName"===n||"name"===n?c("nameRequired"):"phone"===n||"mobileno"===n?c("phoneRequired"):`${a} ${c("fieldRequiredSuffix")}`)}),f(e),e})();if(Object.keys(t).length>0){const e=b.map((e,t)=>e.fieldType||`question_${t}`).find(e=>t[e]);return void h.current[e]?.focus()}m(!0);try{await a(u)}finally{m(!1)}},className:"space-y-4",noValidate:!0,children:[b.map((e,t)=>{const r=e.fieldType||`question_${t}`,a=e.collectionPrompt||e.askToType||e.question||e.label;if(!a?.trim())return null;let o="text";"email"===r&&(o="email"),"phone"!==r&&"mobileno"!==r||(o="tel");const l=(r||"").toLowerCase(),g="fullname"===l||"name"===l||"username"===l,m="phone"===l||"mobileno"===l,b="email"===l?c("onboardingEmailPlaceholder"):g?c("onboardingNamePlaceholder"):m?c("onboardingPhonePlaceholder"):a,y=p[r],v="w-full h-12 rounded-lg text-sm px-4 outline-none border transition-colors focus:ring-0 "+(s?"text-white placeholder:text-[#A2A9B2] focus:border-[#5A6069]":"bg-white text-gray-900 placeholder:text-[#8C8C8C] focus:border-[#B0B0B0]"),w=y?"!border-status-error focus:!border-status-error":"",S=`onboarding-field-${r}`,x=`${S}-error`;return n.jsxs("div",{className:"space-y-1",children:[n.jsx("label",{htmlFor:S,className:"sr-only",children:a}),n.jsx("input",{id:S,ref:e=>{h.current[r]=e},placeholder:b,type:o,value:u[r]??"",onChange:e=>((e,t)=>{d(n=>({...n,[e]:t})),p[e]&&f(t=>{const n={...t};return delete n[e],n})})(r,e.target.value),className:`${v} ${w}`,"aria-invalid":y?"true":"false","aria-describedby":y?x:void 0,style:{direction:i?"rtl":"ltr",...s?{backgroundColor:"#272C35",borderWidth:"1px",borderStyle:"solid",borderColor:y?void 0:"#3F444C"}:{borderWidth:"1px",borderStyle:"solid",borderColor:y?void 0:"#E0E0E0"}}}),y&&n.jsx("p",{id:x,role:"alert",className:"text-xs text-status-error px-1",children:p[r]})]},r)}),n.jsx("button",{type:"submit",disabled:g,"aria-busy":g,"aria-label":g?c("submitting"):void 0,className:"w-full h-12 text-sm border-none font-semibold shadow-xl hover:shadow-xl hover:scale-[1.02] active:scale-[0.98] transition-all rounded-xl mt-4 text-white",style:{backgroundColor:o},children:g?n.jsx(Fe,{className:"w-5 h-5 animate-spin","aria-hidden":"true"}):c("startChat")})]})]})})},qt=({categories:t=[],selectedCategoryId:r=null,onSelect:a,isDark:o=!1,primaryColor:i="#2563eb",fontFamily:s="Inter",isRtl:l=!1})=>{const c=e.useRef(null),[u,d]=e.useState(!1),[p,f]=e.useState(!1),g=e.useCallback(()=>{const e=c.current;if(!e)return;const{scrollLeft:t,scrollWidth:n,clientWidth:r}=e;d(Math.abs(t)>1),f(Math.abs(t)+r<n-1)},[]);e.useEffect(()=>{g();const e=c.current;if(!e)return;const t=new ResizeObserver(g);return t.observe(e),()=>t.disconnect()},[g,t]);const m=e.useCallback(e=>{const t=c.current;if(!t)return;const n="left"===e?-150:150;t.scrollBy({left:l?-n:n,behavior:"smooth"})},[l]);if(!Array.isArray(t)||0===t.length)return null;const h=o?"rgba(31,41,55,0.85)":"rgba(255,255,255,0.95)",b=o?"#e5e7eb":"#374151",y=o?"#4b5563":"#d1d5db",v=o?"#111827":"#ffffff",w=o?"#374151":"#e5e7eb";return n.jsxs("div",{className:"flex-shrink-0 px-2 py-2 border-b flex items-center gap-1",style:{backgroundColor:v,borderColor:w,fontFamily:s,direction:l?"rtl":"ltr"},role:"region","aria-label":"Filter by category",children:[n.jsx("button",{type:"button",onClick:()=>m("left"),disabled:!u,"aria-label":"Scroll categories left",className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200",style:{backgroundColor:h,border:`1px solid ${y}`,color:b,opacity:u?1:.3,cursor:u?"pointer":"default"},children:n.jsx(Ce,{size:14})}),n.jsx("div",{ref:c,onScroll:g,className:"flex-1 flex gap-2 overflow-x-auto",style:{scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"},children:t.map(e=>{const t=r===e.id;return n.jsx("button",{type:"button",onClick:()=>a?.(t?null:e.id),"aria-pressed":t,className:"flex-shrink-0 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all duration-150 whitespace-nowrap",style:{backgroundColor:o?"#1f2937":"#ffffff",border:t?`1.5px solid ${i}`:"1px solid "+(o?"#374151":"#e5e7eb"),color:t?i:o?"#e5e7eb":"#374151",fontFamily:s},children:n.jsx("span",{children:e.label})},e.id)})}),n.jsx("button",{type:"button",onClick:()=>m("right"),disabled:!p,"aria-label":"Scroll categories right",className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200",style:{backgroundColor:h,border:`1px solid ${y}`,color:b,opacity:p?1:.3,cursor:p?"pointer":"default"},children:n.jsx(Ie,{size:14})})]})},Ht=({categories:e=[],selectedCategoryId:t=null,onSelect:r,isDark:a=!1,primaryColor:o="#2563eb",fontFamily:i="Inter",fontSize:s="14px",isRtl:l=!1,label:c="Choose a topic to get started:"})=>{if(!Array.isArray(e)||0===e.length)return null;const u=a?"#9ca3af":"#6b7280";return n.jsxs("div",{className:"pl-[50px] pt-1",style:{direction:l?"rtl":"ltr",paddingLeft:l?0:50,paddingRight:l?50:void 0},role:"region","aria-label":"Category filter",children:[n.jsx("div",{className:"mb-2",style:{color:u,fontFamily:i,fontSize:`calc(${s} - 1px)`},children:c}),n.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(e=>{const l=t===e.id;return n.jsx("button",{type:"button",onClick:()=>r?.(l?null:e.id),"aria-pressed":l,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full transition-all duration-150 hover:scale-[1.02] active:scale-[0.98]",style:{backgroundColor:a?"#1f2937":"#ffffff",border:l?`1.5px solid ${o}`:"1px solid "+(a?"#374151":"#e5e7eb"),color:l?o:a?"#e5e7eb":"#374151",fontFamily:i,fontSize:`calc(${s} - 1px)`,fontWeight:500},children:e.label},e.id)})})]})};const Vt=[{value:"😡",label:"😡",bg:"bg-red-200"},{value:"😕",label:"😕",bg:"bg-orange-200"},{value:"😐",label:"😐",bg:"bg-yellow-200"},{value:"😊",label:"😊",bg:"bg-green-200"},{value:"😍",label:"😍",bg:"bg-pink-200"}],Wt=[{value:"positive",label:"👍"},{value:"negative",label:"👎"}],Yt=[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"}],Kt=[{value:"1",label:"⭐"},{value:"2",label:"⭐"},{value:"3",label:"⭐"},{value:"4",label:"⭐"},{value:"5",label:"⭐"}],Xt=({format:t="EMOJI",prompt:r="How was your experience?",onRating:a,disabled:o=!1,isDark:i=!1,primaryColor:s="#2563eb",defaultLanguage:l="en"})=>{const c=e.useMemo(()=>G(l),[l]),[u,d]=e.useState(null),[p,f]=e.useState(null),[g,m]=e.useState(!1),h=async e=>{if(!o&&!g){d(e),m(!0);try{a&&a(e,t)}finally{m(!1)}}},b=(()=>{switch(t){case"THUMBS":return Wt;case"NUMERIC":return Yt;case"STARS":return Kt;default:return Vt}})();return n.jsxs("div",{className:X("transition-all duration-200 rounded-xl px-4",i?"bg-slate-800/50":"bg-slate-50/50"),children:[n.jsx("p",{className:X("text-sm font-semibold text-center mb-3",i?"text-gray-300":"text-gray-500/80"),children:r}),n.jsxs("div",{className:"flex justify-center items-center",children:["EMOJI"===t&&n.jsx("div",{className:"flex gap-2 justify-center items-center",children:b.map(e=>n.jsx("button",{onClick:()=>h(e.value),disabled:o||g,className:X("flex items-center justify-center text-2xl transition-transform","bg-transparent border-0 p-0 cursor-pointer","hover:scale-110 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed","focus:outline-none focus:ring-0",u===e.value?"":"opacity-80"),children:n.jsx("span",{role:"img","aria-label":`${c("rate")} ${e.value}`,children:e.label})},e.value))}),"THUMBS"===t&&n.jsx("div",{className:"flex gap-6 justify-center items-center",role:"group","aria-label":c("rateExperience"),children:b.map(e=>n.jsx("button",{"aria-label":1===e.value?c("thumbsUp"):c("thumbsDown"),onClick:()=>h(e.value),disabled:o||g,className:X("w-10 h-10 rounded-xl border flex items-center justify-center shadow-md text-2xl transition-all","hover:scale-105 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed","drop-shadow-md",i?"bg-gray-700 border-gray-600 hover:bg-gray-600":"bg-white border-gray-100 hover:bg-gray-50",u===e.value&&"ring-2 ring-primary/40 scale-110"),style:{borderColor:u===e.value?s:void 0},children:n.jsx("span",{className:"drop-shadow-md","aria-hidden":"true",children:e.label})},e.value))}),"NUMERIC"===t&&n.jsx("div",{className:"flex gap-2 justify-center items-center",role:"group","aria-label":c("rateExperience"),children:b.map(e=>n.jsx("button",{"aria-label":`${c("rate")} ${e.value}`,onClick:()=>h(e.value),disabled:o||g,className:X("w-10 h-10 rounded-lg flex items-center justify-center text-sm font-semibold transition-all","hover:scale-105 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed",u===e.value?"ring-2 ring-primary/40 scale-110 shadow-md text-white":i?"bg-gray-700 border border-gray-600 text-gray-300 hover:bg-gray-600":"bg-white border border-gray-200 text-gray-700 hover:bg-gray-50"),style:{backgroundColor:u===e.value?s:void 0,borderColor:u===e.value?s:void 0},children:e.label},e.value))}),"STARS"===t&&n.jsx("div",{className:"flex gap-2 justify-center items-center",onMouseLeave:()=>f(null),children:b.map(e=>{const t=p===e.value;return n.jsx("button",{onClick:()=>h(e.value),onMouseEnter:()=>f(e.value),disabled:o||g,className:X("flex items-center justify-center text-2xl","bg-transparent border-0 p-0 cursor-pointer focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed"),style:{transform:t?"scale(1.25)":"scale(1)",filter:t?"brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.15))":"none",opacity:t?1:.6,transition:"all 0.2s ease"},"aria-label":`${c("rate")} ${e.value}`,children:n.jsx("span",{"aria-hidden":"true",children:e.label})},e.value)})})]}),g&&n.jsx("p",{"aria-live":"polite",className:X("text-xs mt-3 text-center",i?"text-slate-400":"text-slate-500"),children:c("submittingFeedback")})]})};async function Zt({apiBaseUrl:e,conversationId:t,chip:n,submitText:r,position:a,source:o="widget",getAuthToken:i,enabled:s=!0}={}){try{if(!1===s)return!1;if(!e||"string"!=typeof e)return!1;if(!t||"string"!=typeof t)return!1;const l=function({chip:e,submitText:t,position:n,conversationId:r,source:a="widget"}={}){const o=e&&"object"==typeof e,i=o&&"string"==typeof e.text?e.text:"",s="string"==typeof t&&t?t:o&&"string"==typeof e.submitText?e.submitText:"string"==typeof e?e:"",l=i||s;if(!l)return null;const c={conversationId:r,chipText:l,submitText:s||void 0,position:Number.isInteger(n)?n:void 0,source:a},u=o?e?.promptId:void 0;return"string"==typeof u&&u&&(c.promptId=u),c}({chip:n,submitText:r,position:a,conversationId:t,source:o});if(!l)return!1;const c=`${e.replace(/\/$/,"")}/api/v1/support/chip-click`,u=JSON.stringify(l);let d;if("function"==typeof i)try{d=await i()}catch{d=void 0}if(!d&&"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon&&"undefined"!=typeof Blob)try{if(navigator.sendBeacon(c,new Blob([u],{type:"application/json"})))return!0}catch{}if("function"!=typeof fetch)return!1;const p={"Content-Type":"application/json"};return d&&(p.Authorization=`Bearer ${d}`),await fetch(c,{method:"POST",headers:p,credentials:"include",keepalive:!0,body:u}),!0}catch{return!1}}const Qt="#ffffff",Jt="#f5f5f5",en="#000000",tn="#1f2937",nn="#f3f4f6",rn="#2563eb",an="eshal:widget:size",on=(e,t)=>!e||(e=>e?.trim().toLowerCase())(e)===t,sn=e=>(e instanceof Date?e:new Date(e)).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}).replace(/am|pm/i,e=>e.toUpperCase()),ln=e=>{const t=(e||"EMOJI").toString().trim().toUpperCase();return"THUMBS"===t||"THUMB"===t?"THUMBS":"STARS"===t||"STAR"===t?"STARS":"NUMERIC"===t||"NUMBER"===t?"NUMERIC":"EMOJI"},cn=({isOpen:t,isMinimized:r,isDark:a,onStopGeneration:o,primaryColor:i,textColor:s,conciergeName:l,companyName:c,companyLogo:u,chatbotAvatarEnabled:d,chatbotAvatar:p,messages:f,isLoading:g,isConversationLoading:m=!1,inputValue:h,setInputValue:b,onSend:y,onDirectSend:v,onToggleTheme:w,onMinimize:S,onClose:x,quickQuestions:E=[],quickQuestionsEnabled:k,onQuickQuestion:A,quickQuestionsLayout:T="vertical",agentMessageBubbleColor:O,userMessageBoxColor:C,assistantTextColor:I,userTextColor:N,fontFamily:_="Inter",agentMessageBubbleFontFamily:R,agentMessageBubbleFontSize:P,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:D,fontSize:M="14px",defaultLanguage:j="en",onDecision:F,headerTextBold:U=!1,headerTextItalic:z=!1,headerTextColor:$,headerFontFamily:q,headerFontSize:H,subtitle:V=null,showStatus:W=!1,statusMode:Y="always",officeHours:K=null,enableVoiceInteraction:Z=!1,isVoiceSessionActive:Q=!1,voiceStatus:ee="idle",voiceError:te=null,voiceConclusionForCsat:ne=!1,onVoiceToggle:re,onBidiSubmit:ae,disclaimerEnabled:ie=!1,disclaimerText:se,disclaimerPosition:le="top",disclaimerLinkUrl:ce,disclaimerLinkLabel:ue,showPoweredBy:de=!0,apiBaseUrl:pe,apiKey:fe,getAuthToken:ge,conversationId:me,conciergeId:he,onboardingQuestions:be=[],onboardingActive:ye=!1,onboardingCompleted:ve=!1,onOnboardingFormSubmit:we,collectionPrompt:Se,csatEnabled:xe=!1,csatFormat:Ee="EMOJI",csatPrompt:ke="How was your experience?",onPromptSuggestionClick:Ae,onboardingEnabled:Te=!1,onResetConversation:Oe,sessionExpiringSoon:Ce=!1,autoPromptEnabled:Ie=!0,autoPromptQuestionDisplay:Ne=!0,autoPromptClickTelemetry:_e=!0,allowFeedback:Re=!0,provideCitations:Pe=!0,onFeedback:Le,onRetryMessage:De,onRefreshChat:Me,onCopyChat:je,filterCategories:Fe=[],showFilterStep:Be=!1,widgetFilter:Ue=null,onWidgetFilterChange:ze,onSynthesizeAssistantMessage:$e,launcherPosition:Ge="bottom-right",chatFeatures:qe,organizationId:Ve})=>{nt(_);const We=e.useRef(null),Ye=e.useRef(null),Ke=e.useMemo(()=>G(j),[j]);e.useEffect(()=>{Ye.current?.focus()},[]);const Xe=e.useCallback((e,t,n)=>{Zt({apiBaseUrl:pe,conversationId:me,chip:t,submitText:null==e?void 0:String(e),position:n,source:"widget",getAuthToken:ge,enabled:_e})},[pe,ge,me,_e]),Ze=e.useCallback((e,t,n)=>{t&&"object"==typeof t&&Xe(e,t,n),Ae?Ae(e):v?.(e)},[Ae,v,Xe]),Qe=Ge.includes("right"),Je=Ge.includes("bottom"),[et,tt]=e.useState(()=>{if("undefined"==typeof window)return null;try{const e=window.localStorage.getItem(an);if(!e)return null;const t=JSON.parse(e);if("number"==typeof t?.width&&"number"==typeof t?.height&&t.width>=320&&t.height>=400)return t}catch{}return null}),rt=e.useRef(null),at=e.useRef({x:0,y:0}),ot=e.useRef({width:380,height:650});e.useEffect(()=>{const e=e=>{const t=rt.current;if(!t)return;const n=e.clientX-at.current.x,r=e.clientY-at.current.y,a={...ot.current},o=.92*window.innerWidth,i=.85*window.innerHeight;if("corner"===t||"horizontal"===t){const e=Qe?ot.current.width-n:ot.current.width+n;a.width=Math.min(Math.max(320,e),o)}if("corner"===t||"vertical"===t){const e=Je?ot.current.height-r:ot.current.height+r;a.height=Math.min(Math.max(400,e),i)}tt(a)},t=()=>{rt.current&&(rt.current=null,document.body.style.cursor="",document.body.style.userSelect="")};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[Qe,Je]),e.useEffect(()=>{if(et)try{window.localStorage.setItem(an,JSON.stringify(et))}catch{}},[et]);const it=(e,t)=>{t.preventDefault(),t.stopPropagation(),rt.current=e,at.current={x:t.clientX,y:t.clientY},ot.current=et??{width:380,height:650};const n={corner:Qe===Je?"nwse-resize":"nesw-resize",horizontal:"ew-resize",vertical:"ns-resize"};document.body.style.cursor=n[e],document.body.style.userSelect="none"},[st,lt]=e.useState(!1),[ct,ut]=e.useState(()=>{try{return oe(Ve)?.csatSubmitted??!1}catch{return!1}}),[dt,pt]=e.useState(!1),[ft,gt]=e.useState(!1),[mt,ht]=e.useState(0),[bt,yt]=e.useState(""),[vt,wt]=e.useState(!1);e.useEffect(()=>{try{const e=oe(Ve)?.csatSubmitted??!1;ut(e),e&&lt(!1)}catch{}},[me]),function(t,n=[],r={}){const{enabled:a=!0,threshold:o=30,behavior:i="smooth",delay:s=0}=r,l=e.useRef(!0);e.useRef(0),e.useEffect(()=>{if(!a||!t.current)return;const e=t.current,n=()=>{const t=e.scrollHeight-e.scrollTop-e.clientHeight;l.current=t<o},r=()=>{n()};e.addEventListener("scroll",r,{passive:!0}),n();const c=setTimeout(()=>{l.current&&e&&e.scrollTo({top:e.scrollHeight,behavior:i})},s);return()=>{e.removeEventListener("scroll",r),clearTimeout(c)}},[t,a,o,i,s,...n])}(We,[f,g],{enabled:!0,threshold:30,behavior:"smooth",delay:0});const St=B(j),xt=e.useMemo(()=>a?on(O,Qt)?tn:O||tn:O||Qt,[O,a]),Et=e.useMemo(()=>a?on(s,en)?nn:s||nn:s||en,[a,s]),kt=e.useMemo(()=>a?on(C,Jt)?i||rn:C||i||rn:C||Jt,[a,i,C]),At=Ke(ft?"conversationResolved":"typeYourMessage"),Tt=f?.some?.(e=>"user"===e.role),Ot=e.useMemo(()=>(f||[]).filter(e=>"user"===e.role).length,[f]),[Ct,It]=e.useState(0),Nt=Ue?.category?(Fe||[]).find(e=>e.id===Ue.category):null,Rt=e.useCallback(e=>{if(!ze)return;const t=Ue?.category||null;if(e){if(ze({category:e,tags:[]}),It(Ot),!Tt&&e!==t&&$e){const t=(Fe||[]).find(t=>t.id===e),n=t?.label||e,r=Ke("categoryTopicsHeading").replace("{category}",n);$e(r,{replaceMarker:"category-intro"})}}else ze(null)},[ze,Ue,Ot,Fe,Tt,$e,Ke]);e.useCallback(e=>{const t=Ue?.category||Nt?.id;t&&ze&&ze({category:t,tags:[e]}),v&&v(e)},[Ue,Nt,ze,v]);const Pt=Array.isArray(Fe)&&Fe.length>0,Lt=Pt&&!Tt&&!Ue?.category,Dt=!Tt&&E.length>0&&k&&!Ue?.category,Mt=be&&be.length>0,jt=Boolean(xe),Bt=Te&&Mt&&!ve,Ut=e.useCallback(async()=>{if(jt&&!vt&&!ft&&0!==mt){wt(!0);try{const e={"Content-Type":"application/json"};if("function"==typeof ge){const t=await ge();t&&(e.Authorization=`Bearer ${t}`)}const t=ln(Ee),n=await fetch(`${pe.replace(/\/$/,"")}/api/v1/support/csat`,{method:"POST",headers:e,credentials:"include",body:JSON.stringify({conversationId:me,rating:String(mt),ratingFormat:t,conciergeId:he,feedback:bt||void 0})});n.ok?(pt(!1),ht(0),yt(""),ze&&ze(null),Me?Me():Oe&&Oe()):console.error("Failed to submit resolve feedback:",await n.text())}catch(e){console.error("Error submitting resolve feedback:",e)}finally{wt(!1)}}},[jt,vt,ft,mt,bt,me,ge,he,pe,Ee,Oe,Me,ze]),zt=e.useCallback(()=>{if(!jt||!me||!Tt)return ze&&ze(null),Me?Me():Oe&&Oe(),void x?.();dt?(pt(!1),x?.()):ft?x?.():pt(!0)},[jt,me,Tt,dt,ft,x,ze,Me,Oe]);e.useEffect(()=>{jt||(dt&&pt(!1),ft&&gt(!1),0!==mt&&ht(0),bt&&yt(""))},[jt,dt,ft,mt,bt]);const Vt=e.useMemo(()=>{if(!f||!Array.isArray(f))return[];for(let e=f.length-1;e>=0;e-=1)if("assistant"===f[e]?.role){const t=f[e].prompts;return Array.isArray(t)?t:[]}return[]},[f]),Wt=e.useRef([]);e.useEffect(()=>{Vt.length>0?Wt.current=Vt:f&&0!==f.length&&f.some(e=>"user"===e.role)||(Wt.current=[])},[Vt,f]);const Yt=e.useRef(Ot);e.useEffect(()=>{Ot!==Yt.current&&(Yt.current=Ot,Wt.current=[])},[Ot]);const Kt=Vt.length>0?Vt:Wt.current;e.useEffect(()=>{if(!xe)return;if(!st)return;if(ct)return;const e=We.current;if(!e)return;const t=window.requestAnimationFrame(()=>{e.scrollTo({top:e.scrollHeight,behavior:"smooth"})});return()=>{window.cancelAnimationFrame(t)}},[st,xe,ct]);const cn=()=>{const e=ln(Ee);if("STARS"===e)return n.jsx("div",{className:"flex justify-center gap-2 mb-5",role:"group","aria-label":Ke("rateExperience"),children:[1,2,3,4,5].map(e=>n.jsx("button",{"aria-label":`${Ke("rate")} ${e}`,onClick:()=>ht(e),className:"transition-all duration-150 hover:scale-110 active:scale-95 bg-transparent border-0 p-0 cursor-pointer",disabled:vt,children:n.jsx(He,{className:X("w-8 h-8 transition-colors",e<=mt?"text-yellow-400 drop-shadow-sm":a?"text-gray-600":"text-gray-300"),fill:e<=mt?"#FBBF24":"none"})},e))});if("THUMBS"===e)return n.jsx("div",{className:"flex gap-4 justify-center mb-5",role:"group","aria-label":Ke("rateExperience"),children:[{value:"positive",emoji:"👍"},{value:"negative",emoji:"👎"}].map(e=>n.jsx("button",{"aria-label":"positive"===e.value?Ke("thumbsUp"):Ke("thumbsDown"),onClick:()=>ht(e.value),disabled:vt,className:X("w-12 h-12 rounded-xl border flex items-center justify-center text-2xl transition-all hover:scale-105 active:scale-95",mt===e.value?"ring-2 ring-blue-300 scale-110 shadow-lg":"",a?"bg-gray-700 border-gray-600 hover:bg-gray-600":"bg-white border-gray-200 hover:bg-gray-50"),children:n.jsx("span",{className:"drop-shadow-md",children:e.emoji})},e.value))});return n.jsx("div",{className:"flex gap-2 justify-center items-center mb-5",role:"group","aria-label":Ke("rateExperience"),children:[{value:1,emoji:"😡"},{value:2,emoji:"😕"},{value:3,emoji:"😐"},{value:4,emoji:"😊"},{value:5,emoji:"😍"}].map(e=>n.jsx("button",{"aria-label":`${Ke("rate")} ${e.value}`,onClick:()=>ht(e.value),disabled:vt,className:X("rounded-full w-10 h-10 flex items-center justify-center text-xl transition-all hover:scale-110 active:scale-95 bg-transparent border-0 p-0 cursor-pointer",mt===e.value?"ring-2 ring-blue-100 scale-125 bg-gradient-to-b from-yellow-200 to-yellow-400 shadow-md":"grayscale-[0.3] opacity-80 hover:grayscale-0"),children:n.jsx("span",{role:"img","aria-label":`${Ke("rate")} ${e.value}`,className:"drop-shadow-sm filter",children:e.emoji})},e.value))})};if(!t)return null;const un=!r&&et?{width:et.width,height:et.height,maxWidth:"92vw",maxHeight:"85vh"}:void 0;return n.jsxs("div",{dir:St?"rtl":"ltr",className:"relative flex-shrink-0 z-50 "+(r?"w-80 h-auto":""),style:un,children:[!r&&n.jsxs(n.Fragment,{children:[n.jsx("div",{onMouseDown:e=>it("horizontal",e),className:"absolute top-0 h-full w-1.5 cursor-ew-resize hover:bg-blue-500/20 transition-colors z-[70] "+(Qe?"left-0":"right-0"),"aria-hidden":!0}),n.jsx("div",{onMouseDown:e=>it("vertical",e),className:"absolute left-0 w-full h-1.5 cursor-ns-resize hover:bg-blue-500/20 transition-colors z-[70] "+(Je?"top-0":"bottom-0"),"aria-hidden":!0})]}),n.jsxs("div",{id:"chat-window-panel",ref:Ye,role:"dialog","aria-modal":"true","aria-label":Ke("openChat"),tabIndex:-1,className:`relative focus:outline-none ${et||r?"":"w-[380px]"} ${et||r?"":"h-[650px]"} ${r?"w-80 h-auto":""} ${et&&!r?"w-full h-full":""} max-w-[92vw] border rounded-2xl shadow-2xl bg-white border-gray-200 flex flex-col ${r?"":"max-h-[85vh]"} overflow-hidden ${a?"bg-gray-900 border-gray-700":""}`,children:[!r&&n.jsx("div",{onMouseDown:e=>it("corner",e),"aria-hidden":"true",className:`absolute w-4 h-4 ${Qe===Je?"cursor-nwse-resize":"cursor-nesw-resize"} text-gray-400 hover:text-blue-500 transition-colors z-[71] flex p-0.5 ${Je?"top-0 items-start":"bottom-0 items-end"} ${Qe?"left-0 justify-start":"right-0 justify-end"}`,children:n.jsx("svg",{viewBox:"0 0 12 12",className:"w-3 h-3 "+(Je&&Qe?"rotate-180":Je?"-rotate-90":Qe?"rotate-90":""),"aria-hidden":!0,children:n.jsx("path",{d:"M11 1 L1 11 M11 5 L5 11 M11 9 L9 11",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round"})})}),n.jsx($t,{conciergeName:l,companyName:c,companyLogo:u,primaryColor:i,isDark:a,isMinimized:r,textColor:Et,fontFamily:_,fontSize:M,onToggleTheme:w,onMinimize:S,onClose:zt,headerTextBold:U,headerTextItalic:z,headerTextColor:$,headerFontFamily:q,headerFontSize:H,subtitle:V,showStatus:W,statusMode:Y,officeHours:K,onRefreshChat:Me,onCopyChat:je,defaultLanguage:j}),!r&&Pt&&!Lt&&!(dt&&!ft)&&!(ye&&!ve)&&n.jsx(qt,{categories:Fe,selectedCategoryId:Ue?.category||null,onSelect:Rt,isDark:a,primaryColor:i,fontFamily:_,isRtl:St}),!r&&n.jsxs(n.Fragment,{children:[n.jsx("div",{ref:We,role:"log","aria-live":"polite",className:`chat-messages flex-1 overflow-y-auto px-3 py-4 space-y-4 ${a?"bg-gray-900":"bg-gradient-to-b from-gray-50/50 to-white"} break-words`,children:dt&&!ft?n.jsx("div",{className:"animate-in slide-in-from-top-4 fade-in duration-300 mt-4 mx-2",children:n.jsxs("div",{className:X("w-full rounded-3xl p-6 shadow-lg",a?"bg-gray-800 shadow-black/20":"bg-white shadow-gray-200/80"),children:[n.jsx("p",{className:X("text-sm font-medium text-center mb-5 [font-family:inherit]",a?"text-gray-300":"text-gray-500"),children:ke||Ke("feedbackPrompt")}),cn(),n.jsx("textarea",{"aria-label":Ke("feedbackPlaceholder"),value:bt,onChange:e=>{e.target.value.length<=1e3&&yt(e.target.value)},maxLength:1e3,placeholder:Ke("feedbackPlaceholder"),rows:4,disabled:vt,className:X("w-full rounded-xl border px-4 py-3 text-sm [font-family:inherit] resize-none outline-none transition-colors mb-5",a?"bg-gray-700 border-gray-600 text-gray-100 placeholder-gray-400":"bg-gray-50 border-gray-200 text-gray-900 placeholder-gray-400")}),n.jsxs("div",{className:"relative group",children:[n.jsx("button",{onClick:Ut,disabled:0===mt||vt,"aria-describedby":0===mt?"resolve-rating-hint":void 0,className:X("w-full py-3.5 rounded-xl text-sm font-semibold [font-family:inherit] transition-all duration-200 border-none outline-none focus:outline-none active:outline-none focus:ring-0 active:ring-0","disabled:opacity-50 disabled:cursor-not-allowed",a?"bg-gray-700 text-gray-100 hover:bg-gray-600":"bg-gray-100 text-gray-700 hover:bg-gray-200"),children:Ke(vt?"submitting":"submitFeedback")}),0===mt&&!vt&&n.jsx("div",{id:"resolve-rating-hint",role:"tooltip",className:"absolute -top-8 left-1/2 -translate-x-1/2 whitespace-nowrap px-2 py-1 rounded-md text-xs bg-gray-800 text-white opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",children:Ke("selectRatingFirst")})]})]})}):ye&&!ve&&we?n.jsx(Gt,{questions:be,onPromptSuggestionClick:Ze,collapsiblePrompt:Se,onSubmit:we,primaryColor:i,isRtl:St,isDark:a,defaultLanguage:j}):n.jsxs(n.Fragment,{children:[Ce&&n.jsx("div",{role:"status",className:"mx-3 mt-1 mb-2 rounded-lg px-3 py-2 text-xs font-medium "+(a?"bg-amber-900/40 text-amber-200 border border-amber-700/50":"bg-amber-50 text-amber-800 border border-amber-200"),children:Ke("sessionExpiringSoon")}),n.jsx(_t,{messages:f,isDark:a,primaryColor:i,isLoading:g,agentMessageBubbleColor:O,userMessageBoxColor:C,textColor:s,assistantTextColor:I,userTextColor:N,fontFamily:_,agentMessageBubbleFontFamily:R,agentMessageBubbleFontSize:P,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:D,fontSize:M,formatTime:sn,isRtl:St,defaultLanguage:j,quickQuestions:E,shouldShowQuickQuestions:Dt,onQuickQuestion:A??v,quickQuestionsLayout:T,onDecision:F,disclaimerEnabled:ie,disclaimerText:se,disclaimerPosition:le,disclaimerLinkUrl:ce,disclaimerLinkLabel:ue,resolvedAgentBubbleColor:xt,resolvedUserMessageColor:kt,resolvedTextColor:Et,isVoiceSessionActive:Q,voiceStatus:ee,messagesContainerRef:We,companyLogo:u,chatbotAvatarEnabled:d,chatbotAvatar:p,conciergeName:l,companyName:c,apiBaseUrl:pe,getAuthToken:ge,onPromptSuggestionClick:Ze,conversationResetKey:me,allowFeedback:Re,provideCitations:Pe,onFeedback:Le,onRetryMessage:De,headerTextColor:$,beforePromptsSlot:Lt?n.jsx(Ht,{categories:Fe,selectedCategoryId:Ue?.category||null,onSelect:Rt,isDark:a,primaryColor:i,fontFamily:_,fontSize:M,isRtl:St,label:Ke("chooseTopicLabel")}):null,quickQuestionsHeadingLabel:Pt?Ke("quickQuestionsHeadingLabel"):void 0}),st&&xe&&!ct&&n.jsx("div",{className:"",children:n.jsx(Xt,{format:ln(Ee),prompt:ke||Ke("howWasYourExperience"),onRating:async(e,t)=>{ut(!0),lt(!1),(e=>{try{const t=oe(e);if(!t)return;t.csatSubmitted=!0,localStorage.setItem(`${J}_${e}`,JSON.stringify(t))}catch{}})(void 0);try{const n={"Content-Type":"application/json"};if("function"==typeof ge){const e=await ge();e&&(n.Authorization=`Bearer ${e}`)}const r=await fetch(`${pe.replace(/\/$/,"")}/api/v1/support/csat`,{method:"POST",headers:n,credentials:"include",body:JSON.stringify({conversationId:me,rating:e,ratingFormat:t,conciergeId:he})});r.ok||console.error("CSAT submission failed:",await r.text())}catch(e){console.error("CSAT submission error:",e)}},disabled:!1,isDark:a,primaryColor:i,defaultLanguage:j})})]})}),!(ye&&!ve)&&n.jsx(Ft,{onStopGeneration:o,inputValue:h,setInputValue:b,onSend:y,isDark:a,primaryColor:i,isOpen:t,isMinimized:r,isLoading:g,isConversationLoading:m,placeholder:At,textColor:Et,fontFamily:_,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:D,fontSize:M,isRtl:St,csatVisible:st&&xe&&!ct||jt&&(dt||ft),enableVoiceInteraction:Z,isVoiceSessionActive:Q,voiceStatus:ee,voiceError:te,onVoiceToggle:re,onBidiSubmit:ae,disclaimerEnabled:ie,disclaimerText:se,disclaimerPosition:le,disclaimerLinkUrl:ce,disclaimerLinkLabel:ue,showPoweredBy:de,defaultLanguage:j,onboardingQuestions:be,onboardingActive:ye,onboardingCompleted:ve,onboardingEnabled:Te,userMessageBoxColor:C,resolvedUserMessageColor:kt,userTextColor:N,promptSuggestions:dt||ft||!1===Ie||g?[]:Kt,onPromptSuggestionClick:Ze,autoPromptQuestionDisplay:Ne,tagSelectorNode:null,showResolveButton:jt&&Tt&&!ft&&!dt&&!st&&!Bt,onResolve:()=>{jt&&pt(!0)},chatFeatures:qe,apiEndpoint:pe,organizationId:Ve,conversationId:me})]})]})]})},un=new Map;const dn=e.forwardRef(({isDark:t,primaryColor:r,onToggle:a,textColor:o,headerTextColor:i,defaultLanguage:s="en",isOpen:l=!1,className:c},u)=>{const d=e.useMemo(()=>G(s),[s]),p=r,f=i||"#FFFFFF";return n.jsxs("button",{ref:u,onClick:a,className:`group relative w-16 h-16 rounded-full shadow-2xl transition-all duration-300 flex items-center justify-center text-white overflow-hidden hover:scale-110 ${c||""}`,style:{background:`linear-gradient(135deg, ${p} 0%, ${p}dd 100%)`,boxShadow:`0 10px 30px ${p}40`,border:"none"},"aria-label":d(l?"closeChat":"openChat"),"aria-expanded":l,"aria-controls":"chat-window-panel",children:[n.jsx("div",{className:"absolute inset-0 rounded-full bg-white/20 scale-0 group-hover:scale-100 transition-transform duration-500"}),n.jsx("div",{className:"relative z-10 transition-transform duration-300",children:n.jsx(Be,{className:"w-7 h-7",style:{color:f}})})]})});dn.displayName="ToggleButton";const pn="0.2.11",fn=({getAuthToken:t,apiBaseUrl:r,darkMode:a,primaryColor:o,position:i,companyName:s,conciergeName:l,companyLogo:c,welcomeMessage:u,quickQuestions:d,quickQuestionsEnabled:p,quickQuestionsLayout:f="vertical",textColor:g,agentMessageBubbleColor:m,userMessageBoxColor:h,assistantTextColor:b,userTextColor:y,fontFamily:v,fontSize:w,defaultLanguage:S,apiKey:x,agentMessageBubbleFontFamily:E,agentMessageBubbleFontSize:k,userMessageBubbleFontFamily:A,userMessageBubbleFontSize:T,autoOpen:O=!1,openDelay:C=0,locale:I,className:N="",headerTextBold:_,headerTextItalic:R,enableVoiceInteraction:P,disclaimerEnabled:L,disclaimerText:D,disclaimerPosition:M,disclaimerLinkUrl:j,disclaimerLinkLabel:F,showPoweredBy:B,onboardingQuestions:U,collectionPrompt:z,allowedDomains:$,onboardingEnabled:G,wsBaseUrl:q})=>{const[H,V]=e.useState(null),[W,Y]=e.useState(!0),[X,Z]=e.useState(null),[Q,J]=e.useState(!1),ee=e.useRef(!1);e.useEffect(()=>{if(ee.current)return;(async()=>{if(!r)return Z("apiBaseUrl is required"),void Y(!1);try{Y(!0);const e=await(async(e,t)=>{if(!e)throw new Error("apiBaseUrl is required");try{const n=e.replace(/\/$/,""),r=pn?`${n}/api/v1/deploy-agent?wv=${encodeURIComponent(pn)}`:`${n}/api/v1/deploy-agent`,a={"Content-Type":"application/json"};if("function"==typeof t){const e=await t();e&&(a.Authorization=`Bearer ${e}`)}const o=await fetch(r,{method:"GET",headers:a,credentials:"include"});if(404===o.status)return null;if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return await o.json()}catch(e){throw console.error("Failed to fetch agent configuration:",e),e}})(r,t);if(null===e)return ee.current=!0,J(!0),V(null),void Z(null);V(e),Z(null)}catch(e){console.error("Failed to load agent configuration:",e),Z(e.message||"Failed to load configuration")}finally{Y(!1)}})()},[r,t]);const te=e.useMemo(()=>{if(!H)return null;const e=H.config??{},t=e.identity??{},n=e.branding??{},r=e.typography??{},f=e.messages??{},x=e.voice??{},O=e.onboarding??{},C=e.disclaimer??{},I=e.csat??{},N=e.inactivity??{},q=e.behavior??{},V=e.security??{},W=e.layout??{},Y=S??f.defaultLocale??"en",X=f.bundles?.[Y]??{},Z=f.bundles?.en??{},Q={welcome:X.welcome||Z.welcome,fallback:X.fallback||Z.fallback,quickQuestions:Array.isArray(X.quickQuestions)&&X.quickQuestions.length>0?X.quickQuestions:Z.quickQuestions},J=$??V.allowedDomains??(V.domains??[]).map(e=>"string"==typeof e?e:e.domain).filter(Boolean)??[];return{darkMode:a??!1,primaryColor:o??n.brandColor??"#2563eb",companyName:s??t.companyName??"Support Team",conciergeName:l??t.conciergeName,companyLogo:c??n.avatar??null,chatbotAvatarEnabled:n.chatbotAvatarEnabled??!1,chatbotAvatar:n.chatbotAvatar??null,welcomeMessage:u??Q.welcome??"Hi! How can we help?",fallbackMessage:Q.fallback,quickQuestions:d??Q.quickQuestions??[],quickQuestionsEnabled:p??f.quickQuestionsEnabled,textColor:g??"#000000",agentMessageBubbleColor:m??r.agentMessageBubbleColor,userMessageBoxColor:h??r.userMessageBoxColor,assistantTextColor:b??r.assistantTextColor??"#000000",userTextColor:y??r.userTextColor??"#000000",fontFamily:v??r.agentMessageBubbleFontFamily??"Inter",fontSize:w??r.agentMessageBubbleFontSize??"14px",defaultLanguage:Y,headerTextBold:_??r.headerTextBold??!1,headerTextItalic:R??r.headerTextItalic??!1,headerTextColor:r.headerTextColor??"#FFFFFF",headerFontFamily:r.headerFontFamily,headerFontSize:r.headerFontSize,subtitle:t.subtitle??null,showStatus:t.showStatus??!1,statusMode:t.statusMode??"always",officeHours:t.officeHours??null,enableVoiceInteraction:P??x.enableVoiceInteraction??!1,disclaimerEnabled:L??C.enabled??!1,disclaimerText:D??C.text,disclaimerPosition:M??(ee=C.position,ee?ee.toLowerCase():"top"),disclaimerLinkUrl:K(j??C.linkUrl),disclaimerLinkLabel:F??C.linkLabel,showPoweredBy:B??n.showPoweredBy??!0,onboardingQuestions:U??O.questions??[],collectionPrompt:z??O.collapsiblePrompt??"Before we begin, I need to verify your details.",allowedDomains:J,launcherPosition:i??(e=>e?e.toLowerCase().replace(/_/g,"-"):"bottom-right")(W.launcherPosition),onboardingEnabled:G??O.enabled??!1,inactivityTimeoutValue:N.timeoutValue??null,inactivityTimeoutUnit:N.timeoutUnit??null,agentMessageBubbleFontFamily:E??r.agentMessageBubbleFontFamily??v??"Inter",agentMessageBubbleFontSize:k??r.agentMessageBubbleFontSize??w??"14px",userMessageBubbleFontFamily:A??r.userMessageBubbleFontFamily??v??"Inter",userMessageBubbleFontSize:T??r.userMessageBubbleFontSize??w??"14px",csatEnabled:I.enabled??!1,csatFormat:I.format??"EMOJI",csatPrompt:I.prompt??"How was your experience?",autoPromptEnabled:q.autoPromptEnabled??!0,autoPromptQuestionDisplay:q.autoPromptQuestionDisplay??!0,autoPromptClickTelemetry:q.autoPromptClickTelemetry??!0,allowFeedback:q.allowFeedback??!0,provideCitations:q.provideCitations??!0,organizationId:H.organizationId??null,chatFeatures:e.chatFeatures??null};var ee},[H,a,o,i,s,l,c,u,d,p,g,m,h,b,y,v,w,S,_,R,P,L,D,M,F,j,B,U,G,z,$,E,k,A,T]),ne=e.useMemo(()=>!te||((e=[])=>{if("undefined"==typeof window)return!1;const t=window.location.hostname.toLowerCase(),n=window.location.host.toLowerCase();return!(!e||0===e.length)&&e.some(e=>{const r=e.toLowerCase().trim();return r.includes(":")?n===r:t===r||t.endsWith("."+r)})})(te.allowedDomains),[te]),re=e.useMemo(()=>({welcomeMessage:"Hi! How can we help?",quickQuestions:[],apiBaseUrl:r||"",apiKey:x||"",getAuthToken:t,autoOpen:!1,openDelay:0,darkMode:!1,enableVoiceInteraction:!1,onboardingQuestions:[],onboardingEnabled:!1,collectionPrompt:void 0}),[r,x,t]),{isOpen:ae,isMinimized:oe,isDark:ie,messages:se,inputValue:le,isLoading:ce,widgetRef:ue,setInputValue:de,handleSend:pe,stopGeneration:fe,handleQuickQuestion:ge,sendMessage:me,retryMessage:he,toggleChat:ye,toggleTheme:ve,toggleMinimize:we,closeChat:Se,handleDecision:xe,isVoiceSessionActive:Ee,voiceStatus:ke,voiceError:Ae,voiceConclusionForCsat:Te,handleVoiceToggle:Oe,sendBidiTextMessage:Ce,onboardingActive:Ie,onboardingCompleted:Ne,handleOnboardingFormSubmit:_e,conversationId:Re,resetConversation:Pe,sessionExpiringSoon:Le,updateMessageFeedback:De,widgetFilter:Me,setWidgetFilter:je,addAssistantMessage:Fe}=be(te?{welcomeMessage:te.welcomeMessage,fallbackMessage:te.fallbackMessage,quickQuestions:te.quickQuestions,apiBaseUrl:r,wsBaseUrl:q??H?.wsBaseUrl,apiKey:x,locale:te.defaultLanguage||I,organizationId:te.organizationId,getAuthToken:t,autoOpen:O,openDelay:C,darkMode:te.darkMode,enableVoiceInteraction:te.enableVoiceInteraction,onboardingQuestions:te.onboardingQuestions,onboardingEnabled:te.onboardingEnabled,collectionPrompt:te.collectionPrompt,provideCitations:te.provideCitations,inactivityTimeoutValue:te.inactivityTimeoutValue,inactivityTimeoutUnit:te.inactivityTimeoutUnit,messageLimits:H?.messageLimits}:re),Be=e.useRef(null),Ue=e.useRef(ae);e.useEffect(()=>{Ue.current&&!ae&&Be.current?.focus(),Ue.current=ae},[ae]);const ze=e.useCallback((e,n,a)=>{if(De(e,n),!Re||!r)return;const o=r.replace(/\/$/,"");(async()=>{try{const r={"Content-Type":"application/json"};if("function"==typeof t){const e=await t();e&&(r.Authorization=`Bearer ${e}`)}await fetch(`${o}/api/v1/support/feedback`,{method:"POST",headers:r,credentials:"include",body:JSON.stringify({messageContent:e,conversationId:Re,feedback:n,feedbackText:a})})}catch(e){console.error("Feedback submission error:",e)}})()},[Re,r,t,De]),$e=e.useCallback(()=>{Pe&&Pe()},[Pe]),{categories:Ge,hasFilters:qe}=function(t,n){const r=!!t,[a,o]=e.useState({categories:[],loading:r,error:null});e.useEffect(()=>{if(!t)return void o({categories:[],loading:!1,error:null});const e=n?`${t}|__session__`:`${t}|__proxy__`,r=un.get(e);if(r)return void o({categories:r,loading:!1,error:null});let a=!1;o(e=>({...e,loading:!0,error:null}));const i=`${t.replace(/\/$/,"")}/api/v1/widget/filters`;return(async()=>{try{const t={Accept:"application/json"};if("function"==typeof n){const e=await n();e&&(t.Authorization=`Bearer ${e}`)}const r=await fetch(i,{method:"GET",headers:t});if(!r.ok)throw new Error(`filter catalog HTTP ${r.status}`);const s=await r.json(),l=Array.isArray(s?.categories)?s.categories:[];if(a)return;un.set(e,l),o({categories:l,loading:!1,error:null})}catch(e){if(a)return;console.warn("[useFilterCatalog] catalog fetch failed:",e),o({categories:[],loading:!1,error:e})}})(),()=>{a=!0}},[t,n]);const i=e.useMemo(()=>Array.isArray(a.categories)&&a.categories.length>0,[a.categories]);return{...a,hasFilters:i}}(r,t),He=e.useCallback(()=>{const e=se.filter(e=>e.content&&""!==e.content.trim()).map(e=>`${"user"===e.role?"You":te?.conciergeName||"Assistant"}: ${e.content}`).join("\n\n");e&&navigator.clipboard.writeText(e).catch(()=>{})},[se,te?.conciergeName]);if(e.useEffect(()=>{ue.current&&te&&(ue.current.style.setProperty("--cw-primary",te.primaryColor),te.fontFamily&&ue.current.style.setProperty("--cw-font-family",te.fontFamily),te.textColor&&ue.current.style.setProperty("--cw-text-color",te.textColor))},[te,ue]),W)return null;if(Q)return null;if(X||!te)return console.error("ChatWidget configuration error:",X),null;if(!ne)return null;const Ve={"bottom-right":"bottom-5 right-5","bottom-left":"bottom-5 left-5","top-right":"top-5 right-5","top-left":"top-5 left-5"};return n.jsx("div",{id:"chat-widget-root",children:n.jsxs("div",{ref:ue,className:`chat-widget-root fixed flex flex-col ${te.launcherPosition?.includes("left")?"items-start":"items-end"} z-[999999] ${ie?"dark":""} ${N} ${Ve[te.launcherPosition]||Ve["bottom-right"]}`,children:[n.jsx(cn,{isOpen:ae,isMinimized:oe,isDark:ie,launcherPosition:te.launcherPosition,primaryColor:te.primaryColor,textColor:te.textColor,companyName:te.companyName,conciergeName:te.conciergeName,companyLogo:te.companyLogo,chatbotAvatarEnabled:te.chatbotAvatarEnabled,chatbotAvatar:te.chatbotAvatar,messages:se,isLoading:ce,inputValue:le,setInputValue:de,onSend:pe,onStopGeneration:fe,onDirectSend:me,onToggleTheme:ve,onMinimize:we,onClose:Se,quickQuestions:te.quickQuestions,quickQuestionsEnabled:te.quickQuestionsEnabled,onQuickQuestion:ge,quickQuestionsLayout:f,agentMessageBubbleColor:te.agentMessageBubbleColor,userMessageBoxColor:te.userMessageBoxColor,assistantTextColor:te.assistantTextColor,userTextColor:te.userTextColor,fontFamily:te.fontFamily,agentMessageBubbleFontFamily:te.agentMessageBubbleFontFamily,agentMessageBubbleFontSize:te.agentMessageBubbleFontSize,userMessageBubbleFontFamily:te.userMessageBubbleFontFamily,userMessageBubbleFontSize:te.userMessageBubbleFontSize,fontSize:te.fontSize,defaultLanguage:te.defaultLanguage||I,onDecision:xe,headerTextBold:te.headerTextBold,headerTextItalic:te.headerTextItalic,headerTextColor:te.headerTextColor,headerFontFamily:te.headerFontFamily,headerFontSize:te.headerFontSize,subtitle:te.subtitle,showStatus:te.showStatus,statusMode:te.statusMode,officeHours:te.officeHours,enableVoiceInteraction:te.enableVoiceInteraction,isVoiceSessionActive:Ee,voiceStatus:ke,voiceError:Ae,voiceConclusionForCsat:Te,onVoiceToggle:Oe,onBidiSubmit:()=>Ce(le),disclaimerEnabled:te.disclaimerEnabled,disclaimerText:te.disclaimerText,disclaimerPosition:te.disclaimerPosition,disclaimerLinkUrl:te.disclaimerLinkUrl,disclaimerLinkLabel:te.disclaimerLinkLabel,showPoweredBy:te.showPoweredBy,apiBaseUrl:r,apiKey:x,getAuthToken:t,conversationId:Re,conciergeId:H?.conciergeId??H?.id,onboardingQuestions:te.onboardingQuestions,onboardingActive:Ie,onboardingCompleted:Ne,onOnboardingFormSubmit:_e,collectionPrompt:te.collectionPrompt,csatEnabled:te.csatEnabled,csatFormat:te.csatFormat,csatPrompt:te.csatPrompt,onboardingEnabled:te.onboardingEnabled,onResetConversation:Pe,sessionExpiringSoon:Le,autoPromptEnabled:te.autoPromptEnabled,autoPromptQuestionDisplay:te.autoPromptQuestionDisplay,autoPromptClickTelemetry:te.autoPromptClickTelemetry,allowFeedback:te.allowFeedback,provideCitations:te.provideCitations,onFeedback:ze,onRetryMessage:he,onRefreshChat:$e,onCopyChat:He,filterCategories:Ge,showFilterStep:qe,widgetFilter:Me,onWidgetFilterChange:je,onSynthesizeAssistantMessage:Fe,chatFeatures:te.chatFeatures,organizationId:te.organizationId}),n.jsx(dn,{ref:Be,isDark:ie,primaryColor:te.primaryColor,onToggle:ye,textColor:te.textColor,headerTextColor:te.headerTextColor,defaultLanguage:te.defaultLanguage||I,isOpen:ae,className:ae?"hidden":void 0})]})})};var gn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},mn={exports:{}};function hn(e){try{const t=window[e];return t.setItem("__ft__","1"),t.removeItem("__ft__"),"1"}catch{return"0"}}function bn(){try{return Array.from(navigator.plugins||[]).map(e=>`${e.name}::${e.filename}`).sort().join("|")}catch{return""}}function yn(){try{return Array.from(navigator.mimeTypes||[]).map(e=>e.type).sort().join("|")}catch{return""}}function vn(){try{const e=document.createElement("canvas");e.width=240,e.height=60;const t=e.getContext("2d");return t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.font="11pt no-real-font-abc",t.fillText("user-trace:canvas,🔍<canvas>",2,15),t.fillStyle="rgba(102,204,0,0.7)",t.font="18pt Arial",t.fillText("user-trace:canvas,🔍<canvas>",4,45),e.toDataURL().slice(-50)}catch{return"nocanvas"}}function wn(){try{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)return"nowebgl";const n=t.getExtension("WEBGL_debug_renderer_info"),r=n?t.getParameter(n.UNMASKED_VENDOR_WEBGL):t.getParameter(t.VENDOR);return`${r}::${n?t.getParameter(n.UNMASKED_RENDERER_WEBGL):t.getParameter(t.RENDERER)}`}catch{return"nowebgl"}}function Sn(){const e=["Arial","Courier New","Georgia","Times New Roman","Verdana","Helvetica","Comic Sans MS","Impact","Tahoma","Trebuchet MS","Palatino Linotype","Lucida Console","Lucida Sans Unicode","MS Sans Serif","MS Serif","Symbol","Wingdings","Franklin Gothic Medium","Book Antiqua","Garamond","Calibri","Cambria","Consolas","Candara","Optima","Segoe UI","Gill Sans","Century Gothic","Futura"];try{const t=document.createElement("canvas").getContext("2d"),n="monospace",r="mmmmmmmmmmlli",a="72px";t.font=`${a} ${n}`;const o=t.measureText(r).width;return e.filter(e=>(t.font=`${a} '${e}', ${n}`,t.measureText(r).width!==o)).join(",")}catch{return""}}function xn(){try{return window.OfflineAudioContext||window.webkitOfflineAudioContext?"audio-supported":"noaudio"}catch{return"noaudio"}}var En={generateFingerprint:function(){const e=function(){const e=navigator||{},t=screen||{};return{userAgent:e.userAgent||"",language:e.language||"",languages:(e.languages||[]).join(","),platform:e.platform||"",hardwareConcurrency:e.hardwareConcurrency||0,deviceMemory:e.deviceMemory||0,maxTouchPoints:e.maxTouchPoints||0,cookieEnabled:e.cookieEnabled?"1":"0",doNotTrack:e.doNotTrack||"unknown",screenWidth:t.width||0,screenHeight:t.height||0,colorDepth:t.colorDepth||0,pixelDepth:t.pixelDepth||0,devicePixelRatio:"undefined"!=typeof devicePixelRatio?devicePixelRatio:1,timezoneOffset:(new Date).getTimezoneOffset(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"",sessionStorage:hn("sessionStorage"),localStorage:hn("localStorage"),indexedDB:"undefined"!=typeof indexedDB?"1":"0",cpuClass:e.cpuClass||"unknown",oscpu:e.oscpu||"unknown",vendor:e.vendor||"",vendorSub:e.vendorSub||"",productSub:e.productSub||"",plugins:bn(),mimeTypes:yn(),canvas:vn(),webgl:wn(),fonts:Sn(),audioContext:xn()}}(),t=function(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t^e.charCodeAt(n),t&=t;return(t>>>0).toString(16).padStart(8,"0")}(Object.values(e).join("|||")),n=["nocanvas"!==e.canvas,"nowebgl"!==e.webgl&&""!==e.webgl,""!==e.fonts,""!==e.plugins,e.hardwareConcurrency>0,""!==e.timezone];return{id:t,signals:e,confidence:Math.round(n.filter(Boolean).length/n.length*100)}}};const kn=[{url:"https://api.ipify.org?format=json",parse:e=>e.ip},{url:"https://api64.ipify.org?format=json",parse:e=>e.ip},{url:"https://api.my-ip.io/v2/ip.json",parse:e=>e.ip},{url:"https://ipapi.co/json/",parse:e=>e.ip}];async function An(e,t=4e3){const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{const t=await fetch(e,{signal:n.signal});if(!t.ok)throw new Error(`HTTP ${t.status}`);return await t.json()}finally{clearTimeout(r)}}function Tn(e){return/^(\d{1,3}\.){3}\d{1,3}$/.test(e)||/^[0-9a-f:]{2,39}$/i.test(e)}var On={detectIP:async function(){for(const e of kn)try{const t=await An(e.url),n=e.parse(t);if(n&&Tn(n))return{ip:n,source:new URL(e.url).hostname}}catch{}return null},getIPVersion:function(e){return e?/^(\d{1,3}\.){3}\d{1,3}$/.test(e)?"v4":/^[0-9a-f:]{2,39}$/i.test(e)?"v6":"unknown":"unknown"}};let Cn={apiKeys:{},preferredProvider:null,timeoutMs:5e3};function In(e={}){const t=[e.ipinfo&&{name:"ipinfo.io",tier:"free-with-key",freeLimit:"50,000 req/month",signup:"https://ipinfo.io/signup",buildUrl:t=>`https://ipinfo.io/${t}/json?token=${e.ipinfo}`,parse:e=>{if(e.error)throw new Error(e.error.message||"Failed");const[t,n]=(e.loc||"0,0").split(",").map(Number);return{ip:e.ip||"",country:e.country||"",countryCode:e.country||"",region:e.region||"",regionCode:"",city:e.city||"",zip:e.postal||"",latitude:t,longitude:n,timezone:e.timezone||"",isp:e.org||"",org:e.org||"",proxy:!1,hosting:!1}}},e.ipgeolocation&&{name:"ipgeolocation.io",tier:"free-with-key",freeLimit:"1,000 req/day",signup:"https://ipgeolocation.io/signup.html",buildUrl:t=>`https://api.ipgeolocation.io/ipgeo?apiKey=${e.ipgeolocation}&ip=${t}`,parse:e=>{if(e.message)throw new Error(e.message);return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code2||"",region:e.state_prov||"",regionCode:e.state_code||"",city:e.city||"",zip:e.zipcode||"",latitude:parseFloat(e.latitude)||0,longitude:parseFloat(e.longitude)||0,timezone:e.time_zone?.name||"",isp:e.isp||"",org:e.organization||"",proxy:e.security?.is_proxy||!1,hosting:e.security?.is_hosting||!1}}},e.abstractapi&&{name:"abstractapi.com",tier:"free-with-key",freeLimit:"20,000 req/month",signup:"https://app.abstractapi.com/users/signup?target=/api/ip-geolocation",buildUrl:t=>`https://ipgeolocation.abstractapi.com/v1/?api_key=${e.abstractapi}&ip_address=${t}`,parse:e=>{if(e.error)throw new Error(e.error.message||"Failed");return{ip:e.ip_address||"",country:e.country||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_iso_code||"",city:e.city||"",zip:e.postal_code||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone?.name||"",isp:e.connection?.isp_name||"",org:e.connection?.org_name||"",proxy:e.security?.is_vpn||!1,hosting:e.security?.is_hosting||!1}}},e.ip2location&&{name:"ip2location.io",tier:"free-with-key",freeLimit:"30,000 req/month",signup:"https://www.ip2location.io/sign-up",buildUrl:t=>`https://api.ip2location.io/?key=${e.ip2location}&ip=${t}&format=json`,parse:e=>{if(e.error)throw new Error(e.error.error_message||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region_name||"",regionCode:"",city:e.city_name||"",zip:e.zip_code||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.time_zone||"",isp:e.isp||"",org:e.domain||"",proxy:e.is_proxy||!1,hosting:!1}}},e.ipstack&&{name:"ipstack.com",tier:"free-with-key",freeLimit:"100 req/month",signup:"https://ipstack.com/product",buildUrl:t=>`https://api.ipstack.com/${t}?access_key=${e.ipstack}`,parse:e=>{if(e.error)throw new Error(e.error.info||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region_name||"",regionCode:e.region_code||"",city:e.city||"",zip:e.zip||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.time_zone?.id||"",isp:e.connection?.isp||"",org:"",proxy:!1,hosting:!1}}}].filter(Boolean),n=[{name:"ip-api.com",tier:"free",freeLimit:"45 req/min (no key needed)",buildUrl:e=>`https://ip-api.com/json/${e}?fields=status,message,country,countryCode,region,regionName,city,zip,lat,lon,timezone,isp,org,proxy,hosting,query`,parse:e=>{if("success"!==e.status)throw new Error(e.message||"Failed");return{ip:e.query||"",country:e.country||"",countryCode:e.countryCode||"",region:e.regionName||"",regionCode:e.region||"",city:e.city||"",zip:e.zip||"",latitude:e.lat||0,longitude:e.lon||0,timezone:e.timezone||"",isp:e.isp||"",org:e.org||"",proxy:e.proxy||!1,hosting:e.hosting||!1}}},{name:"ipwho.is",tier:"free",freeLimit:"unlimited (fair use, no key needed)",buildUrl:e=>`https://ipwho.is/${e}`,parse:e=>{if(!e.success)throw new Error(e.message||"Failed");return{ip:e.ip||"",country:e.country||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_code||"",city:e.city||"",zip:e.postal||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone?.id||"",isp:e.connection?.isp||"",org:e.connection?.org||"",proxy:!1,hosting:!1}}},{name:"ipapi.co",tier:"free",freeLimit:"1,000 req/day (no key needed)",buildUrl:e=>`https://ipapi.co/${e}/json/`,parse:e=>{if(e.error)throw new Error(e.reason||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_code||"",city:e.city||"",zip:e.postal||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone||"",isp:e.org||"",org:e.org||"",proxy:!1,hosting:!1}}},{name:"freeipapi.com",tier:"free",freeLimit:"unlimited (fair use, no key needed)",buildUrl:e=>`https://freeipapi.com/api/json/${e}`,parse:e=>({ip:e.ipAddress||"",country:e.countryName||"",countryCode:e.countryCode||"",region:e.regionName||"",regionCode:e.regionCode||"",city:e.cityName||"",zip:e.zipCode||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timeZone||"",isp:"",org:"",proxy:!1,hosting:!1})}],r=["freeipapi.com","ipwho.is","ipapi.co","ip-api.com"];return n.sort((e,t)=>r.indexOf(e.name)-r.indexOf(t.name)),[...t,...n]}async function Nn(e,t=5e3){const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{const t=await fetch(e,{signal:n.signal});if(!t.ok)throw new Error(`HTTP ${t.status}`);return await t.json()}finally{clearTimeout(r)}}const _n={enableHighAccuracy:!0,timeout:8e3,maximumAge:3e5};function Rn(e={}){return new Promise(t=>"undefined"!=typeof navigator&&navigator.geolocation?"undefined"!=typeof window&&!1===window.isSecureContext?t(null):void navigator.geolocation.getCurrentPosition(e=>t({latitude:e.coords.latitude,longitude:e.coords.longitude,accuracy:e.coords.accuracy}),()=>t(null),{..._n,...e}):t(null))}async function Pn(e,t,n={}){if("number"!=typeof e||"number"!=typeof t)return null;const r=n.timeoutMs||Cn.timeoutMs||5e3,a=`https://api.bigdatacloud.net/data/reverse-geocode-client?latitude=${e}&longitude=${t}&localityLanguage=${n.localityLanguage||"en"}`;try{const n=await Nn(a,r),o=n.city||n.locality||"";return o||n.countryName?{city:o,region:n.principalSubdivision||"",regionCode:(n.principalSubdivisionCode||"").split("-").pop()||"",country:n.countryName||"",countryCode:n.countryCode||"",latitude:e,longitude:t}:null}catch{return null}}var Ln={configureGeo:function(e={}){e.apiKeys&&(Cn.apiKeys={...Cn.apiKeys,...e.apiKeys}),void 0!==e.preferredProvider&&(Cn.preferredProvider=e.preferredProvider),void 0!==e.timeoutMs&&(Cn.timeoutMs=e.timeoutMs)},resolveLocation:async function(e,t={}){const n={apiKeys:{...Cn.apiKeys,...t.apiKeys||{}},preferredProvider:t.preferredProvider||Cn.preferredProvider,timeoutMs:t.timeoutMs||Cn.timeoutMs};let r=In(n.apiKeys);if(n.preferredProvider){const e=r.findIndex(e=>e.name===n.preferredProvider);if(e>0){const[t]=r.splice(e,1);r.unshift(t)}}for(const t of r)try{const r=await Nn(t.buildUrl(e),n.timeoutMs);return{...t.parse(r),source:t.name,tier:t.tier}}catch{}return null},listProviders:function(e={}){return In({...Cn.apiKeys,...e}).map(({name:e,tier:t,freeLimit:n,signup:r})=>({name:e,tier:t,freeLimit:n,signup:r||"—"}))},getBrowserGeolocation:Rn,getGeolocationPermission:async function(){try{if("undefined"==typeof navigator||!navigator.permissions||!navigator.permissions.query)return"unsupported";return(await navigator.permissions.query({name:"geolocation"})).state}catch{return"unsupported"}},reverseGeocode:Pn,getBrowserLocation:async function(e={}){const t=await Rn(e);if(!t)return null;const n=await Pn(t.latitude,t.longitude,e),r=!(!n||!n.city&&!n.country);return{...r?n:{},latitude:t.latitude,longitude:t.longitude,accuracy:t.accuracy,...r?{source:"gps"}:{}}},toMapsUrl:function(e,t){return`https://www.google.com/maps?q=${e},${t}`}};const Dn="__ut_sid__",Mn="__ut_uid__",jn="__ut_meta__";function Fn(){const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;const t=Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("");return[t.slice(0,8),t.slice(8,12),t.slice(12,16),t.slice(16,20),t.slice(20)].join("-")}function Bn(e,t){try{return e.getItem(t)}catch{return null}}function Un(e,t,n){try{return e.setItem(t,n),!0}catch{return!1}}var zn={getOrCreateUserID:function(){let e=Bn(localStorage,Mn),t=!1;return e||(e=Fn(),t=!0,Un(localStorage,Mn,e)),{uid:e,isNew:t}},getOrCreateSessionID:function(){let e=Bn(sessionStorage,Dn),t=!1;return e||(e=Fn(),t=!0,Un(sessionStorage,Dn,e)),{sid:e,isNew:t}},saveSessionMeta:function(e){try{const t=JSON.stringify({...e,savedAt:(new Date).toISOString()});Un(localStorage,jn,t)}catch{}},loadSessionMeta:function(){try{const e=Bn(localStorage,jn);return e?JSON.parse(e):null}catch{return null}},clearSession:function(){try{localStorage.removeItem(Mn)}catch{}try{localStorage.removeItem(jn)}catch{}try{sessionStorage.removeItem(Dn)}catch{}},getBrowserContext:function(){return{userAgent:navigator.userAgent,platform:navigator.platform||"unknown",language:navigator.language||"unknown",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,screenRes:`${screen.width}x${screen.height}`,viewportRes:`${window.innerWidth}x${window.innerHeight}`,colorDepth:screen.colorDepth,touchSupport:navigator.maxTouchPoints>0,cookieEnabled:navigator.cookieEnabled,referrer:document.referrer||null,currentUrl:window.location.href,loadedAt:(new Date).toISOString()}}};const{generateFingerprint:$n}=En,{detectIP:Gn,getIPVersion:qn}=On,{configureGeo:Hn,resolveLocation:Vn,listProviders:Wn,getBrowserGeolocation:Yn,getGeolocationPermission:Kn,reverseGeocode:Xn,getBrowserLocation:Zn,toMapsUrl:Qn}=Ln,{getOrCreateUserID:Jn,getOrCreateSessionID:er,saveSessionMeta:tr,loadSessionMeta:nr,clearSession:rr,getBrowserContext:ar}=zn;mn.exports=class{constructor(e={}){this._options={onReady:e.onReady||null,onError:e.onError||null,geoFromBrowser:void 0===e.geoFromBrowser||e.geoFromBrowser,geoApiKeys:e.geoApiKeys||null,geoOptions:e.geoOptions||null,cache:!1!==e.cache,maxAgeMs:e.maxAgeMs||3e5,autoInit:e.autoInit||!1,webhookUrl:e.webhookUrl||null},this.profile=null,this._ready=!1,this._options.autoInit&&this.init().catch(()=>{})}async init(){if(this._options.cache){const e=nr();if(e&&e.savedAt){if(Date.now()-new Date(e.savedAt).getTime()<this._options.maxAgeMs)return this.profile=e,this._ready=!0,this._options.onReady&&this._options.onReady(this.profile),this.profile}}try{const{uid:e,isNew:t}=Jn(),{sid:n,isNew:r}=er(),{id:a,signals:o,confidence:i}=$n(),s=this._options.geoApiKeys?{apiKeys:this._options.geoApiKeys}:{},[l,c]=await Promise.all([(async()=>{const e=await Gn(),t=e?.ip||"unknown",n="unknown"!==t?await Vn(t,s):null;return{ip:t,ipVersion:e?qn(t):"unknown",geo:n}})(),this._collectBrowserLocation()]),{ip:u,ipVersion:d}=l;let p=l.geo,f=null;c&&(f={latitude:c.latitude,longitude:c.longitude,accuracy:c.accuracy},"gps"===c.source&&(p={...p||{},...c}));const g=ar();return this.profile={uid:e,sid:n,isNewUser:t,isNewSession:r,fingerprintId:a,fingerprintConfidence:i,ip:u,ipVersion:d,geo:p||null,browserGeo:f||null,browser:g,raw:o,createdAt:(new Date).toISOString(),...p?{mapsUrl:Qn(p.latitude,p.longitude)}:{}},tr(this.profile),this._options.webhookUrl&&this._sendToWebhook(this.profile),this._ready=!0,this._options.onReady&&this._options.onReady(this.profile),this.profile}catch(e){throw this._options.onError&&this._options.onError(e),e}}async _collectBrowserLocation(){const e=this._options.geoFromBrowser;if(!e)return null;if("auto"===e){if("granted"!==await Kn())return null}return Zn(this._options.geoOptions||{})}async captureBrowserLocation(e={}){const t=await Zn({...this._options.geoOptions||{},...e});return t&&this.profile?(this.profile.browserGeo={latitude:t.latitude,longitude:t.longitude,accuracy:t.accuracy},this.profile.mapsUrl=Qn(t.latitude,t.longitude),"gps"===t.source&&(this.profile.geo={...this.profile.geo||{},...t}),tr(this.profile),this._options.onReady&&this._options.onReady(this.profile),this.profile):this.profile}getProfile(){return this.profile}isKnownUser(e){return this.profile?.uid===e}async refresh(){return rr(),this.profile=null,this._ready=!1,this.init()}clear(){rr(),this.profile=null,this._ready=!1}getSummary(){if(!this.profile)return null;const{uid:e,sid:t,fingerprintId:n,ip:r,geo:a,browser:o,createdAt:i}=this.profile;return{uid:e,sid:t,fingerprintId:n,ip:r,country:a?.country||"unknown",city:a?.city||"unknown",isp:a?.isp||"unknown",proxy:a?.proxy||!1,timezone:a?.timezone||o.timezone,userAgent:o.userAgent,language:o.language,createdAt:i}}async _sendToWebhook(e){try{await fetch(this._options.webhookUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch{}}};var or=mn.exports.generateFingerprint=$n,ir=mn.exports.detectIP=Gn,sr=mn.exports.configureGeo=Hn,lr=mn.exports.resolveLocation=Vn,cr=mn.exports.listProviders=Wn,ur=mn.exports.getBrowserGeolocation=Yn,dr=mn.exports.getGeolocationPermission=Kn,pr=mn.exports.reverseGeocode=Xn,fr=mn.exports.getBrowserLocation=Zn,gr=mn.exports.getOrCreateUserID=Jn,mr=mn.exports.getOrCreateSessionID=er,hr=mn.exports.clearSession=rr,br=mn.exports.getBrowserContext=ar,yr=mn.exports,vr=o({__proto__:null,clearSession:hr,configureGeo:sr,default:yr,detectIP:ir,generateFingerprint:or,getBrowserContext:br,getBrowserGeolocation:ur,getBrowserLocation:fr,getGeolocationPermission:dr,getOrCreateSessionID:mr,getOrCreateUserID:gr,listProviders:cr,resolveLocation:lr,reverseGeocode:pr},[yr]),wr={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,a,o){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var a=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var a in n)n.hasOwnProperty(a)&&("style"==a?t.style.cssText=n[a]:t.setAttribute(a,n[a]));return r&&t.appendChild(e.c.createTextNode(r)),t}function l(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),a=0;a<t.length;a+=1){for(var o=!1,i=0;i<r.length;i+=1)if(t[a]===r[i]){o=!0;break}o||r.push(t[a])}for(t=[],a=0;a<r.length;a+=1){for(o=!1,i=0;i<n.length;i+=1)if(r[a]===n[i]){o=!0;break}o||t.push(r[a])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(e,t){for(var n=e.className.split(/\s+/),r=0,a=n.length;r<a;r++)if(n[r]==t)return!0;return!1}function p(e,t,n){function r(){u&&a&&o&&(u(c),u=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var a=!1,o=!0,c=null,u=n||null;i?(t.onload=function(){a=!0,r()},t.onerror=function(){a=!0,c=Error("Stylesheet failed to load"),r()}):setTimeout(function(){a=!0,r()},0),l(e,"head",t)}function f(e,t,n,r){var a=e.c.getElementsByTagName("head")[0];if(a){var o=s(e,"script",{src:t}),i=!1;return o.onload=o.onreadystatechange=function(){i||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(i=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&a.removeChild(o))},a.appendChild(o),setTimeout(function(){i||(i=!0,n&&n(Error("Script load timeout")))},r||5e3),o}return null}function g(){this.a=0,this.c=null}function m(e){return e.a++,function(){e.a--,b(e)}}function h(e,t){e.c=t,b(e)}function b(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function v(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function S(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function E(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function k(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function A(e){if(e.g){var t=d(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),u(e.f,n,r)}T(e,"inactive")}function T(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,S(n)):e.h[t]())}function O(){this.c={}}function C(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function I(e){l(e.c,"body",e.a)}function N(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function _(e,t,n,r,a,o){this.g=e,this.j=t,this.a=r,this.c=n,this.f=a||3e3,this.h=o||void 0}function R(e,t,n,r,a,o,i){this.v=e,this.B=t,this.c=n,this.a=r,this.s=i||"BESbswy",this.f={},this.w=a||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new C(this.c,this.s),this.h=new C(this.c,this.s),this.j=new C(this.c,this.s),this.m=new C(this.c,this.s),e=N(e=new v(this.a.c+",serif",S(this.a))),this.g.a.style.cssText=e,e=N(e=new v(this.a.c+",sans-serif",S(this.a))),this.h.a.style.cssText=e,e=N(e=new v("serif",S(this.a))),this.j.a.style.cssText=e,e=N(e=new v("sans-serif",S(this.a))),this.m.a.style.cssText=e,I(this.g),I(this.h),I(this.j),I(this.m)}y.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},_.prototype.start=function(){var e=this.c.o.document,t=this,n=a(),r=new Promise(function(r,o){!function i(){a()-n>=t.f?o():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then(function(e){1<=e.length?r():setTimeout(i,25)},function(){o()})}()}),o=null,i=new Promise(function(e,n){o=setTimeout(n,t.f)});Promise.race([i,r]).then(function(){o&&(clearTimeout(o),o=null),t.g(t.a)},function(){t.j(t.a)})};var P={D:"serif",C:"sans-serif"},L=null;function D(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function M(e,t,n){for(var r in P)if(P.hasOwnProperty(r)&&t===e.f[P[r]]&&n===e.f[P[r]])return!0;return!1}function j(e){var t,n=e.g.a.offsetWidth,o=e.h.a.offsetWidth;(t=n===e.f.serif&&o===e.f["sans-serif"])||(t=D()&&M(e,n,o)),t?a()-e.A>=e.w?D()&&M(e,n,o)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?F(e,e.v):F(e,e.B):function(e){setTimeout(r(function(){j(this)},e),50)}(e):F(e,e.v)}function F(e,t){setTimeout(r(function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)},e),0)}function B(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),j(this)};var U=null;function z(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),T(e,"active")):A(e.a))}function $(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function G(e,t,n,a,o){var i=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=o||null,s=a||{};if(0===n.length&&i)A(t.a);else{t.f+=n.length,i&&(t.j=i);var l,c=[];for(l=0;l<n.length;l++){var d=n[l],p=s[d.c],f=t.a,g=d;if(f.g&&u(f.f,[f.a.c("wf",g.c,S(g).toString(),"loading")]),T(f,"fontloading",g),f=null,null===U)if(window.FontFace){g=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);U=g?42<parseInt(g[1],10):!m}else U=!1;f=U?new _(r(t.g,t),r(t.h,t),t.c,d,t.s,p):new R(r(t.g,t),r(t.h,t),t.c,d,t.s,e,p),c.push(f)}for(l=0;l<c.length;l++)c[l].start()}},0)}function q(e,t){this.c=e,this.a=t}function H(e,t){this.c=e,this.a=t}function V(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,S(e).toString(),"active")],[t.a.c("wf",e.c,S(e).toString(),"loading"),t.a.c("wf",e.c,S(e).toString(),"inactive")]),T(t,"fontactive",e),this.m=!0,z(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var n=d(t.f,t.a.c("wf",e.c,S(e).toString(),"active")),r=[],a=[t.a.c("wf",e.c,S(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,S(e).toString(),"inactive")),u(t.f,r,a)}T(t,"fontinactive",e),z(this)},$.prototype.load=function(e){this.c=new o(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],a=n.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),T(e,"loading")}(t);r=function(e,t,n){var r,a=[];for(r in t)if(t.hasOwnProperty(r)){var o=e.c[r];o&&a.push(o(t[r],n))}return a}(e.a,n,e.c);var o=new B(e.c,t,a);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load(function(t,n,r){G(e,o,t,n,r)})}(this,new k(this.c,e),e)},q.prototype.load=function(e){function t(){if(o["__mti_fntLst"+r]){var n,a=o["__mti_fntLst"+r](),i=[];if(a)for(var s=0;s<a.length;s++){var l=a[s].fontfamily;null!=a[s].fontStyle&&null!=a[s].fontWeight?(n=a[s].fontStyle+a[s].fontWeight,i.push(new v(l,n))):i.push(new v(l))}e(i)}else setTimeout(function(){t()},50)}var n=this,r=n.a.projectId,a=n.a.version;if(r){var o=n.c.o;f(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(a?"?v="+a:""),function(a){a?e([]):(o["__MonotypeConfiguration__"+r]=function(){return n.a},t())}).id="__MonotypeAPIScript__"+r}else e([])},H.prototype.load=function(e){var t,n,r=this.a.urls||[],a=this.a.families||[],o=this.a.testStrings||{},i=new g;for(t=0,n=r.length;t<n;t++)p(this.c,r[t],m(i));var s=[];for(t=0,n=a.length;t<n;t++)if((r=a[t].split(":"))[1])for(var l=r[1].split(","),c=0;c<l.length;c+=1)s.push(new v(r[0],l[c]));else s.push(new v(r[0]));h(i,function(){e(s,o)})};var W="https://fonts.googleapis.com/css";function Y(e){this.f=e,this.a=[],this.c={}}var K={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},X={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Z={i:"i",italic:"i",n:"n",normal:"n"},Q=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function J(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new g,n=this.c,r=new V(this.a.api,this.a.text),a=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var a=t[r].split(":");3==a.length&&e.f.push(a.pop());var o="";2==a.length&&""!=a[1]&&(o=":"),e.a.push(a.join(o))}}(r,a);var o=new Y(a);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),a=r[0].replace(/\+/g," "),o=["n4"];if(2<=r.length){var i;if(i=[],s=r[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var u;if((u=s[c]).match(/^[\w-]+$/))if(null==(d=Q.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":Z[u],null==(d=d[1])||""==d)d="4";else var d=X[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&i.push(u)}0<i.length&&(o=i),3==r.length&&(i=[],0<(r=(r=r[2])?r.split(","):i).length&&(r=K[r[0]])&&(e.c[a]=r))}for(e.c[a]||(r=K[a])&&(e.c[a]=r),r=0;r<o.length;r+=1)e.a.push(new v(a,o[r]))}}(o),p(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),m(t)),h(t,function(){e(o.a,o.c,ee)})},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?f(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],a=0;a<t.length;a+=2)for(var o=t[a],i=t[a+1],s=0;s<i.length;s++)r.push(new v(o,i[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}},2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var a=0,o=n.fonts.length;a<o;++a){var i=n.fonts[a];r.a.push(new v(i.name,E("font-weight:"+i.weight+";font-style:"+i.style)))}e(r.a)},f(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var re=new $(window);re.a.c.custom=function(e,t){return new H(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new q(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new J(t,e)};var ae={load:r(re.load,re)};e.exports?e.exports=ae:(window.WebFont=ae,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(wr);var Sr=wr.exports,xr=o({__proto__:null,default:Sr},[Sr]);function Er(){}function kr(){}const Ar=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Tr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Or={};function Cr(e,t){return(Or.jsx?Tr:Ar).test(e)}const Ir=/[ \t\n\f\r]/g;function Nr(e){return""===e.replace(Ir,"")}let _r=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function Rr(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new _r(n,r,t)}function Pr(e){return e.toLowerCase()}_r.prototype.normal={},_r.prototype.property={},_r.prototype.space=void 0;let Lr=class{constructor(e,t){this.attribute=t,this.property=e}};Lr.prototype.attribute="",Lr.prototype.booleanish=!1,Lr.prototype.boolean=!1,Lr.prototype.commaOrSpaceSeparated=!1,Lr.prototype.commaSeparated=!1,Lr.prototype.defined=!1,Lr.prototype.mustUseProperty=!1,Lr.prototype.number=!1,Lr.prototype.overloadedBoolean=!1,Lr.prototype.property="",Lr.prototype.spaceSeparated=!1,Lr.prototype.space=void 0;let Dr=0;const Mr=Gr(),jr=Gr(),Fr=Gr(),Br=Gr(),Ur=Gr(),zr=Gr(),$r=Gr();function Gr(){return 2**++Dr}var qr=Object.freeze({__proto__:null,boolean:Mr,booleanish:jr,commaOrSpaceSeparated:$r,commaSeparated:zr,number:Br,overloadedBoolean:Fr,spaceSeparated:Ur});const Hr=Object.keys(qr);let Vr=class extends Lr{constructor(e,t,n,r){let a=-1;if(super(e,t),Wr(this,"space",r),"number"==typeof n)for(;++a<Hr.length;){const e=Hr[a];Wr(this,Hr[a],(n&qr[e])===qr[e])}}};function Wr(e,t,n){n&&(e[t]=n)}function Yr(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new Vr(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Pr(r)]=r,n[Pr(o.attribute)]=r}return new _r(t,n,e.space)}Vr.prototype.defined=!0;const Kr=Yr({properties:{ariaActiveDescendant:null,ariaAtomic:jr,ariaAutoComplete:null,ariaBusy:jr,ariaChecked:jr,ariaColCount:Br,ariaColIndex:Br,ariaColSpan:Br,ariaControls:Ur,ariaCurrent:null,ariaDescribedBy:Ur,ariaDetails:null,ariaDisabled:jr,ariaDropEffect:Ur,ariaErrorMessage:null,ariaExpanded:jr,ariaFlowTo:Ur,ariaGrabbed:jr,ariaHasPopup:null,ariaHidden:jr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ur,ariaLevel:Br,ariaLive:null,ariaModal:jr,ariaMultiLine:jr,ariaMultiSelectable:jr,ariaOrientation:null,ariaOwns:Ur,ariaPlaceholder:null,ariaPosInSet:Br,ariaPressed:jr,ariaReadOnly:jr,ariaRelevant:null,ariaRequired:jr,ariaRoleDescription:Ur,ariaRowCount:Br,ariaRowIndex:Br,ariaRowSpan:Br,ariaSelected:jr,ariaSetSize:Br,ariaSort:null,ariaValueMax:Br,ariaValueMin:Br,ariaValueNow:Br,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Xr(e,t){return t in e?e[t]:t}function Zr(e,t){return Xr(e,t.toLowerCase())}const Qr=Yr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zr,acceptCharset:Ur,accessKey:Ur,action:null,allow:null,allowFullScreen:Mr,allowPaymentRequest:Mr,allowUserMedia:Mr,alt:null,as:null,async:Mr,autoCapitalize:null,autoComplete:Ur,autoFocus:Mr,autoPlay:Mr,blocking:Ur,capture:null,charSet:null,checked:Mr,cite:null,className:Ur,cols:Br,colSpan:null,content:null,contentEditable:jr,controls:Mr,controlsList:Ur,coords:Br|zr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mr,defer:Mr,dir:null,dirName:null,disabled:Mr,download:Fr,draggable:jr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mr,formTarget:null,headers:Ur,height:Br,hidden:Fr,high:Br,href:null,hrefLang:null,htmlFor:Ur,httpEquiv:Ur,id:null,imageSizes:null,imageSrcSet:null,inert:Mr,inputMode:null,integrity:null,is:null,isMap:Mr,itemId:null,itemProp:Ur,itemRef:Ur,itemScope:Mr,itemType:Ur,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mr,low:Br,manifest:null,max:null,maxLength:Br,media:null,method:null,min:null,minLength:Br,multiple:Mr,muted:Mr,name:null,nonce:null,noModule:Mr,noValidate:Mr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Mr,optimum:Br,pattern:null,ping:Ur,placeholder:null,playsInline:Mr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mr,referrerPolicy:null,rel:Ur,required:Mr,reversed:Mr,rows:Br,rowSpan:Br,sandbox:Ur,scope:null,scoped:Mr,seamless:Mr,selected:Mr,shadowRootClonable:Mr,shadowRootDelegatesFocus:Mr,shadowRootMode:null,shape:null,size:Br,sizes:null,slot:null,span:Br,spellCheck:jr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Br,step:null,style:null,tabIndex:Br,target:null,title:null,translate:null,type:null,typeMustMatch:Mr,useMap:null,value:jr,width:Br,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ur,axis:null,background:null,bgColor:null,border:Br,borderColor:null,bottomMargin:Br,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mr,declare:Mr,event:null,face:null,frame:null,frameBorder:null,hSpace:Br,leftMargin:Br,link:null,longDesc:null,lowSrc:null,marginHeight:Br,marginWidth:Br,noResize:Mr,noHref:Mr,noShade:Mr,noWrap:Mr,object:null,profile:null,prompt:null,rev:null,rightMargin:Br,rules:null,scheme:null,scrolling:jr,standby:null,summary:null,text:null,topMargin:Br,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Br,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mr,disableRemotePlayback:Mr,prefix:null,property:null,results:Br,security:null,unselectable:null},space:"html",transform:Zr}),Jr=Yr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:$r,accentHeight:Br,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Br,amplitude:Br,arabicForm:null,ascent:Br,attributeName:null,attributeType:null,azimuth:Br,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Br,by:null,calcMode:null,capHeight:Br,className:Ur,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Br,diffuseConstant:Br,direction:null,display:null,dur:null,divisor:Br,dominantBaseline:null,download:Mr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Br,enableBackground:null,end:null,event:null,exponent:Br,externalResourcesRequired:null,fill:null,fillOpacity:Br,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zr,g2:zr,glyphName:zr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Br,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Br,horizOriginX:Br,horizOriginY:Br,id:null,ideographic:Br,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Br,k:Br,k1:Br,k2:Br,k3:Br,k4:Br,kernelMatrix:$r,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Br,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Br,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Br,overlineThickness:Br,paintOrder:null,panose1:null,path:null,pathLength:Br,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ur,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Br,pointsAtY:Br,pointsAtZ:Br,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$r,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$r,rev:$r,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$r,requiredFeatures:$r,requiredFonts:$r,requiredFormats:$r,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Br,specularExponent:Br,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Br,strikethroughThickness:Br,string:null,stroke:null,strokeDashArray:$r,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Br,strokeOpacity:Br,strokeWidth:null,style:null,surfaceScale:Br,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$r,tabIndex:Br,tableValues:null,target:null,targetX:Br,targetY:Br,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$r,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Br,underlineThickness:Br,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Br,values:null,vAlphabetic:Br,vMathematical:Br,vectorEffect:null,vHanging:Br,vIdeographic:Br,version:null,vertAdvY:Br,vertOriginX:Br,vertOriginY:Br,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Br,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xr}),ea=Yr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),ta=Yr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zr}),na=Yr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ra={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},aa=/[A-Z]/g,oa=/-[a-z]/g,ia=/^data[-\w.:]+$/i;function sa(e){return"-"+e.toLowerCase()}function la(e){return e.charAt(1).toUpperCase()}const ca=Rr([Kr,Qr,ea,ta,na],"html"),ua=Rr([Kr,Jr,ea,ta,na],"svg");var da={},pa=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,fa=/\n/g,ga=/^\s*/,ma=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ha=/^:\s*/,ba=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ya=/^[;\s]*/,va=/^\s+|\s+$/g,wa="";function Sa(e){return e?e.replace(va,wa):wa}var xa=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(e){var t=e.match(fa);t&&(n+=t.length);var a=e.lastIndexOf("\n");r=~a?e.length-a:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new i(e),c(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(a){var o=new Error(t.source+":"+n+":"+r+": "+a);if(o.reason=a,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function l(t){var n=t.exec(e);if(n){var r=n[0];return a(r),e=e.slice(r.length),n}}function c(){l(ga)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;wa!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,wa===e.charAt(n-1))return s("End of comment missing");var i=e.slice(2,n-2);return r+=2,a(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function p(){var e=o(),t=l(ma);if(t){if(d(),!l(ha))return s("property missing ':'");var n=l(ba),r=e({type:"declaration",property:Sa(t[0].replace(pa,wa)),value:n?Sa(n[0].replace(pa,wa)):wa});return l(ya),r}}return i.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()},Ea=gn&&gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(da,"__esModule",{value:!0}),da.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,ka.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:o}=e;a?t(r,o,e):o&&(n=n||{},n[r]=o)}),n};const ka=Ea(xa);var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.camelCase=void 0;var Ta=/^--[a-zA-Z0-9_-]+$/,Oa=/-([a-z])/g,Ca=/^[^-]+$/,Ia=/^-(webkit|moz|ms|o|khtml)-/,Na=/^-(ms)-/,_a=function(e,t){return t.toUpperCase()},Ra=function(e,t){return"".concat(t,"-")};Aa.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Ca.test(e)||Ta.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Na,Ra):e.replace(Ia,Ra)).replace(Oa,_a))};var Pa=(gn&&gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(da),La=Aa;function Da(e,t){var n={};return e&&"string"==typeof e?((0,Pa.default)(e,function(e,r){e&&r&&(n[(0,La.camelCase)(e,t)]=r)}),n):n}Da.default=Da;var Ma=Da;const ja=Ba("end"),Fa=Ba("start");function Ba(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Ua(e){return e&&"object"==typeof e?"position"in e||"type"in e?$a(e.position):"start"in e||"end"in e?$a(e):"line"in e||"column"in e?za(e):"":""}function za(e){return Ga(e&&e.line)+":"+Ga(e&&e.column)}function $a(e){return za(e&&e.start)+"-"+za(e&&e.end)}function Ga(e){return e&&"number"==typeof e?e:1}class qa extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(o=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=i?i.line:void 0,this.name=Ua(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qa.prototype.file="",qa.prototype.name="",qa.prototype.reason="",qa.prototype.message="",qa.prototype.stack="",qa.prototype.column=void 0,qa.prototype.line=void 0,qa.prototype.ancestors=void 0,qa.prototype.cause=void 0,qa.prototype.fatal=void 0,qa.prototype.place=void 0,qa.prototype.ruleId=void 0,qa.prototype.source=void 0;const Ha={}.hasOwnProperty,Va=new Map,Wa=/[A-Z]/g,Ya=new Set(["table","tbody","thead","tfoot","tr"]),Ka=new Set(["td","th"]),Xa="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Za(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,a,o){const i=Array.isArray(a.children),s=Fa(n);return t(r,a,o,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,a,o){const i=Array.isArray(a.children)?n:t;return o?i(r,a,o):i(r,a)}}(0,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ua:ca,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=Qa(a,e,void 0);return o&&"string"!=typeof o?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function Qa(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=ua,e.schema=a);e.ancestors.push(t);const o=ro(e,t.tagName,!1),i=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&Ha.call(t.properties,a)){const o=no(e,a,t.properties[a]);if(o){const[a,i]=o;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof i&&Ka.has(t.tagName)?r=i:n[a]=i}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=to(e,t);Ya.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Nr(t.value):Nr(t));var t}));return Ja(e,i,o,t),eo(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ao(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=ua,e.schema=a);e.ancestors.push(t);const o=null===t.name?e.Fragment:ro(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];Er(t.type);const a=t.expression;Er(a.type);const o=a.properties[0];Er(o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ao(e,t.position);else{const a=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];Er(t.type),o=e.evaluater.evaluateExpression(t.expression)}else ao(e,t.position);else o=null===r.value||r.value;n[a]=o}return n}(e,t),s=to(e,t);return Ja(e,i,o,t),eo(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ao(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return eo(r,to(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Ja(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eo(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function to(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Va;for(;++r<t.children.length;){const o=t.children[r];let i;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=a.get(e)||0;i=e+"-"+t,a.set(e,t+1)}}const s=Qa(e,o,i);void 0!==s&&n.push(s)}return n}function no(e,t,n){const r=function(e,t){const n=Pr(t);let r=t,a=Lr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ia.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(oa,la);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!oa.test(e)){let n=e.replace(aa,sa);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=Vr}return new a(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Ma(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new qa("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Xa+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Ha.call(e,n)&&(t[oo(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ra[r.property]||r.property:r.attribute,n]}}function ro(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=Cr(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=Cr(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Ha.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ao(e)}function ao(e,t){const n=new qa("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Xa+"#cannot-handle-mdx-estrees-without-createevaluater",n}function oo(e){let t=e.replace(Wa,io);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function io(e){return"-"+e.toLowerCase()}const so={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},lo={};function co(e,t){return uo(e,"boolean"!=typeof lo.includeImageAlt||lo.includeImageAlt,"boolean"!=typeof lo.includeHtml||lo.includeHtml)}function uo(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return po(e.children,t,n)}return Array.isArray(e)?po(e,t,n):""}function po(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=uo(e[a],t,n);return r.join("")}const fo={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",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:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",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:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},go={}.hasOwnProperty;function mo(e){return!!go.call(fo,e)&&fo[e]}function ho(e,t,n,r){const a=e.length;let o,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function bo(e,t){return e.length>0?(ho(e,e.length,0,t),e):t}const yo={}.hasOwnProperty;function vo(e){const t={};let n=-1;for(;++n<e.length;)wo(t,e[n]);return t}function wo(e,t){let n;for(n in t){const r=(yo.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){yo.call(r,o)||(r[o]=[]);const e=a[o];So(r[o],Array.isArray(e)?e:e?[e]:[])}}}function So(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ho(e,0,0,r)}function xo(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Eo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ko=Mo(/[A-Za-z]/),Ao=Mo(/[\dA-Za-z]/),To=Mo(/[#-'*+\--9=?A-Z^-~]/);function Oo(e){return null!==e&&(e<32||127===e)}const Co=Mo(/\d/),Io=Mo(/[\dA-Fa-f]/),No=Mo(/[!-/:-@[-`{-~]/);function _o(e){return null!==e&&e<-2}function Ro(e){return null!==e&&(e<0||32===e)}function Po(e){return-2===e||-1===e||32===e}const Lo=Mo(/\p{P}|\p{S}/u),Do=Mo(/\s/);function Mo(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function jo(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let i="";if(37===o&&Ao(e.charCodeAt(n+1))&&Ao(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(i=String.fromCharCode(o,t),a=1):i="�"}else i=String.fromCharCode(o);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Fo(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(Po(r))return e.enter(n),i(r);return t(r)};function i(r){return Po(r)&&o++<a?(e.consume(r),i):(e.exit(n),t(r))}}const Bo={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Fo(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):_o(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const Uo={tokenize:function(e){const t=this,n=[];let r,a,o,i=0;return s;function s(r){if(i<n.length){const a=n[i];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(r)}return c(r)}function l(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let a,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){a=t.events[o][1].end;break}b(i);let s=n;for(;s<t.events.length;)t.events[s][1].end={...a},s++;return ho(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(a){if(i===n.length){if(!r)return p(a);if(r.currentConstruct&&r.currentConstruct.concrete)return g(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zo,u,d)(a)}function u(e){return r&&y(),b(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,g(e)}function p(n){return t.containerState={},e.attempt(zo,f,g)(n)}function f(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function g(n){return null===n?(r&&y(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),m(n))}function m(n){return null===n?(h(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):_o(n)?(e.consume(n),h(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(n),m)}function h(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let a,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){s=t.events[l][1].end;break}a=!0}for(b(i),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;ho(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},zo={tokenize:function(e,t,n){return Fo(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function $o(e){return null===e||Ro(e)||Do(e)?1:Lo(e)?2:void 0}function Go(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const qo={name:"attention",resolveAll:function(e,t){let n,r,a,o,i,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};Ho(d,-s),Ho(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...i.end}},e[n][1].end={...o.start},e[u][1].start={...i.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=bo(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=bo(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=bo(l,Go(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=bo(l,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=bo(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ho(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=$o(r);let o;return function(t){return o=t,e.enter("attentionSequence"),i(t)};function i(s){if(s===o)return e.consume(s),i;const l=e.exit("attentionSequence"),c=$o(s),u=!c||2===c&&a||n.includes(s),d=!a||2===a&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(a||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}}};function Ho(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Vo={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return ko(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||Ao(e)?(r=1,i(e)):l(e)}function i(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Ao(t))&&r++<32?(e.consume(t),i):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Oo(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):To(t)?(e.consume(t),l):n(t)}function c(e){return Ao(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Ao(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const Wo={partial:!0,tokenize:function(e,t,n){return function(t){return Po(t)?Fo(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||_o(e)?t(e):n(e)}}};const Yo={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Po(t))return Fo(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(Yo,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return Po(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const Ko={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return No(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Xo={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,o,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=Ao,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Io,c):(e.enter("characterReferenceValue"),a=7,o=Co,c(t))}function c(s){if(59===s&&i){const a=e.exit("characterReferenceValue");return o!==Ao||mo(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&i++<a?(e.consume(s),c):n(s)}}};const Zo={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Qo={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Po(t)?Fo(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(a++,e.consume(t),u):a>=s?(e.exit("codeFencedFenceSequence"),Po(t)?Fo(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||_o(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,i=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Po(t)?Fo(e,c,"whitespace")(t):c(t))}function c(n){return null===n||_o(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Zo,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||_o(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Po(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Fo(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||_o(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||_o(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function f(t){return e.attempt(a,y,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&Po(t)?Fo(e,h,"linePrefix",i+1)(t):h(t)}function h(t){return null===t||_o(t)?e.check(Zo,f,y)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||_o(t)?(e.exit("codeFlowValue"),h(t)):(e.consume(t),b)}function y(n){return e.exit("codeFenced"),t(n)}}};const Jo={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Fo(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):_o(t)?e.attempt(ei,o,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||_o(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},ei={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):_o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):Fo(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):_o(e)?a(e):n(e)}}};const ti={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}t=a-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),o++,i):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),r=0,c(t)):_o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||_o(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}};class ni{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&ri(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ri(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ri(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);ri(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ri(this.left,t.reverse())}}}function ri(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ai(e){const t={};let n,r,a,o,i,s,l,c=-1;const u=new ni(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,oi(u,c)),c=t[c],l=!0);else if(n[1]._container){for(a=c,r=void 0;a--;)if(o=u.get(a),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=a);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return ho(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function oi(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,l=[],c={};let u,d,p=-1,f=n,g=0,m=0;const h=[m];for(;f;){for(;e.get(++a)[1]!==f;);o.push(a),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,h.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):h.pop(),p=h.length;p--;){const t=s.slice(h[p],h[p+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return c}const ii={resolve:function(e){return ai(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):_o(t)?e.check(si,o,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},si={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Fo(e,a,"linePrefix")};function a(a){if(null===a||_o(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}};function li(e,t,n,r,a,o,i,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||Oo(t))return n(t);return e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||_o(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function g(a){return u||null!==a&&41!==a&&!Ro(a)?u<c&&40===a?(e.consume(a),u++,g):41===a?(e.consume(a),u--,g):null===a||32===a||40===a||Oo(a)?n(a):(e.consume(a),92===a?m:g):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}function ci(e,t,n,r,a,o){const i=this;let s,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(o),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):_o(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||_o(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Po(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function ui(e,t,n,r,a,o){let i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,s;return n(t)};function s(n){return n===i?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===i?(e.exit(o),s(i)):null===t?n(t):_o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Fo(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||_o(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function di(e,t){let n;return function r(a){if(_o(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(Po(a))return Fo(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}const pi={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return ci.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return a=Eo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return Ro(t)?di(e,s)(t):s(t)}function s(t){return li(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(fi,c,c)(t)}function c(t){return Po(t)?Fo(e,u,"whitespace")(t):u(t)}function u(o){return null===o||_o(o)?(e.exit("definition"),r.parser.defined.push(a),t(o)):n(o)}}},fi={partial:!0,tokenize:function(e,t,n){return function(t){return Ro(t)?di(e,r)(t):n(t)};function r(t){return ui(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return Po(t)?Fo(e,o,"whitespace")(t):o(t)}function o(e){return null===e||_o(e)?t(e):n(e)}}};const gi={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return _o(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const mi={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);a-2>o&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4);a>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},r={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},ho(e,o,a-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||Ro(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||_o(n)?(e.exit("atxHeading"),t(n)):Po(n)?Fo(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||Ro(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}};const hi=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bi=["pre","script","style","textarea"],yi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let a,o,i,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,f):63===s?(e.consume(s),a=3,r.interrupt?t:L):ko(s)?(e.consume(s),i=String.fromCharCode(s),g):n(s)}function u(o){return 45===o?(e.consume(o),a=2,d):91===o?(e.consume(o),a=5,s=0,p):ko(o)?(e.consume(o),a=4,r.interrupt?t:L):n(o)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:L):n(a)}function p(a){const o="CDATA[";return a===o.charCodeAt(s++)?(e.consume(a),6===s?r.interrupt?t:T:p):n(a)}function f(t){return ko(t)?(e.consume(t),i=String.fromCharCode(t),g):n(t)}function g(s){if(null===s||47===s||62===s||Ro(s)){const l=47===s,c=i.toLowerCase();return l||o||!bi.includes(c)?hi.includes(i.toLowerCase())?(a=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?h(s):b(s)):(a=1,r.interrupt?t(s):T(s))}return 45===s||Ao(s)?(e.consume(s),i+=String.fromCharCode(s),g):n(s)}function m(a){return 62===a?(e.consume(a),r.interrupt?t:T):n(a)}function h(t){return Po(t)?(e.consume(t),h):k(t)}function b(t){return 47===t?(e.consume(t),k):58===t||95===t||ko(t)?(e.consume(t),y):Po(t)?(e.consume(t),b):k(t)}function y(t){return 45===t||46===t||58===t||95===t||Ao(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),w):Po(t)?(e.consume(t),v):b(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,S):Po(t)?(e.consume(t),w):x(t)}function S(t){return t===l?(e.consume(t),l=null,E):null===t||_o(t)?n(t):(e.consume(t),S)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Ro(t)?v(t):(e.consume(t),x)}function E(e){return 47===e||62===e||Po(e)?b(e):n(e)}function k(t){return 62===t?(e.consume(t),A):n(t)}function A(t){return null===t||_o(t)?T(t):Po(t)?(e.consume(t),A):n(t)}function T(t){return 45===t&&2===a?(e.consume(t),N):60===t&&1===a?(e.consume(t),_):62===t&&4===a?(e.consume(t),D):63===t&&3===a?(e.consume(t),L):93===t&&5===a?(e.consume(t),P):!_o(t)||6!==a&&7!==a?null===t||_o(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(vi,M,O)(t))}function O(t){return e.check(wi,C,M)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||_o(t)?O(t):(e.enter("htmlFlowData"),T(t))}function N(t){return 45===t?(e.consume(t),L):T(t)}function _(t){return 47===t?(e.consume(t),i="",R):T(t)}function R(t){if(62===t){const n=i.toLowerCase();return bi.includes(n)?(e.consume(t),D):T(t)}return ko(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),R):T(t)}function P(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===a?(e.consume(t),L):T(t)}function D(t){return null===t||_o(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(n){return e.exit("htmlFlow"),t(n)}}},vi={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Wo,t,n)}}},wi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(_o(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Si={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,o,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),y):ko(t)?(e.consume(t),E):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,f):ko(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):_o(t)?(i=u,R(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?_(e):45===e?d(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?g:f):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),m):_o(t)?(i=g,R(t)):(e.consume(t),g)}function m(t){return 93===t?(e.consume(t),h):g(t)}function h(t){return 62===t?_(t):93===t?(e.consume(t),h):g(t)}function b(t){return null===t||62===t?_(t):_o(t)?(i=b,R(t)):(e.consume(t),b)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):_o(t)?(i=y,R(t)):(e.consume(t),y)}function v(e){return 62===e?_(e):y(e)}function w(t){return ko(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||Ao(t)?(e.consume(t),S):x(t)}function x(t){return _o(t)?(i=x,R(t)):Po(t)?(e.consume(t),x):_(t)}function E(t){return 45===t||Ao(t)?(e.consume(t),E):47===t||62===t||Ro(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),_):58===t||95===t||ko(t)?(e.consume(t),A):_o(t)?(i=k,R(t)):Po(t)?(e.consume(t),k):_(t)}function A(t){return 45===t||46===t||58===t||95===t||Ao(t)?(e.consume(t),A):T(t)}function T(t){return 61===t?(e.consume(t),O):_o(t)?(i=T,R(t)):Po(t)?(e.consume(t),T):k(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,C):_o(t)?(i=O,R(t)):Po(t)?(e.consume(t),O):(e.consume(t),I)}function C(t){return t===a?(e.consume(t),a=void 0,N):null===t?n(t):_o(t)?(i=C,R(t)):(e.consume(t),C)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Ro(t)?k(t):(e.consume(t),I)}function N(e){return 47===e||62===e||Ro(e)?k(e):n(e)}function _(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return Po(t)?Fo(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}};const xi={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&ho(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,a,o,i=e.length,s=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=i);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=bo(o,e.slice(r+1,r+s+3)),o=bo(o,[["enter",u,t]]),o=bo(o,Go(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),o=bo(o,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),o=bo(o,e.slice(a+1)),o=bo(o,[["exit",l,t]]),ho(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let a,o,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return function(t){if(!a)return n(t);if(a._inactive)return u(t);return o=r.parser.defined.includes(Eo(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(Ei,c,o?c:u)(t):91===t?e.attempt(ki,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(Ai,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},Ei={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Ro(t)?di(e,a)(t):a(t)}function a(t){return 41===t?c(t):li(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Ro(t)?di(e,s)(t):c(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?ui(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Ro(t)?di(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},ki={tokenize:function(e,t,n){const r=this;return function(t){return ci.call(r,e,a,o,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(Eo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Ai={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Ti={name:"labelStartImage",resolveAll:xi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Oi={name:"labelStartLink",resolveAll:xi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Ci={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Fo(e,t,"linePrefix")}}};const Ii={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),i(o)):a>=3&&(null===o||_o(o))?(e.exit("thematicBreak"),t(o)):n(o)}function i(t){return t===r?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),Po(t)?Fo(e,o,"whitespace")(t):o(t))}}};const Ni={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wo,a,o);function a(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Fo(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!Po(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ri,t,i)(n))}function i(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Fo(e,e.attempt(Ni,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:Co(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(Ii,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Co(t)&&++i<10?(e.consume(t),s):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Wo,r.interrupt?n:c,e.attempt(_i,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return Po(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},_i={partial:!0,tokenize:function(e,t,n){const r=this;return Fo(e,function(e){const a=r.events[r.events.length-1];return!Po(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Ri={partial:!0,tokenize:function(e,t,n){const r=this;return Fo(e,function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Pi={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=i;return e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let i,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){i="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===a?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Po(t)?Fo(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||_o(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const Li={tokenize:function(e){const t=this,n=e.attempt(Wo,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,Fo(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ii,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Di={resolveAll:Bi()},Mi=Fi("string"),ji=Fi("text");function Fi(e){return{resolveAll:Bi("text"===e?Ui:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,o,i);return o;function o(e){return l(e)?a(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Bi(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function Ui(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let o,i=a.length,s=-1,l=0;for(;i--;){const e=a[i];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const a={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const zi={42:Ni,43:Ni,45:Ni,48:Ni,49:Ni,50:Ni,51:Ni,52:Ni,53:Ni,54:Ni,55:Ni,56:Ni,57:Ni,62:Yo},$i={91:pi},Gi={[-2]:Jo,[-1]:Jo,32:Jo},qi={35:mi,42:Ii,45:[Pi,Ii],60:yi,61:Pi,95:Ii,96:Qo,126:Qo},Hi={38:Xo,92:Ko},Vi={[-5]:Ci,[-4]:Ci,[-3]:Ci,33:Ti,38:Xo,42:qo,60:[Vo,Si],91:Oi,92:[gi,Ko],93:xi,95:qo,96:ti},Wi={null:[qo,Di]};var Yi=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:$i,disable:{null:[]},document:zi,flow:qi,flowInitial:Gi,insideSpan:Wi,string:Hi,text:Vi});function Ki(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let i=[],s=[];const l={attempt:h(function(e,t){b(e,t.from)}),check:h(m),consume:function(e){_o(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:h(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,y()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let i;if("string"==typeof o)i=o;else switch(o){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&a)continue;i=" ";break;default:i=String.fromCharCode(o)}a=-2===o,r.push(i)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(i=bo(i,e),f(),null!==i[i.length-1])return[];return b(t,0),c.events=Go(o,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,o)];else{if(i=e.slice(n,a),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}o>0&&i.push(e[a].slice(0,o))}return i}(i,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:o}}function f(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){u=u(e)}function m(e,t){t.restore()}function h(e,t){return function(n,a,o){let i,u,d,f;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return i=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){f=function(){const e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,o=Array.from(s);return{from:a,restore:i};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=o,y()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return b();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,h,b)(n)}}function h(t){return e(d,f),a}function b(e){return f.restore(),++u<i.length?m(i[u]):o}}}function b(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&ho(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const Xi=/[\0\t\n\r]/g;const Zi=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Qi(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return xo(n.slice(t?2:1),t?16:10)}return mo(n)||e}const Ji={}.hasOwnProperty;function es(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:A,autolinkEmail:A,atxHeading:o(Z),blockQuote:o(V),characterEscape:A,characterReference:A,codeFenced:o(W),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(W,i),codeText:o(Y,i),codeTextData:A,data:A,codeFlowValue:A,definition:o(K),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(X),hardBreakEscape:o(Q),hardBreakTrailing:o(Q),htmlFlow:o(J,i),htmlFlowData:A,htmlText:o(J,i),htmlTextData:A,image:o(ee),label:i,link:o(te),listItem:o(re),listItemValue:p,listOrdered:o(ne,d),listUnordered:o(ne),paragraph:o(ae),reference:B,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(Z),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:H,autolinkProtocol:q,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:$,characterReference:G,codeFenced:l(h),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:T,codeIndented:l(b),codeText:l(_),codeTextData:T,data:T,definition:l(),definitionDestinationString:w,definitionLabelString:y,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(C),hardBreakTrailing:l(C),htmlFlow:l(I),htmlFlowData:T,htmlText:l(N),htmlTextData:T,image:l(P),label:D,labelText:L,lineEnding:O,link:l(R),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:M,resourceTitleString:j,resource:F,setextHeading:l(k),setextHeadingLineSequence:E,setextHeadingText:x,strong:l(),thematicBreak:l()}};ns(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:i,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=a(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];Ji.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||as).call(o,void 0,e[0])}for(r.position={start:ts(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ts(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function a(e,t,n){let r,a,o,i,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||l||o||(o=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=s;for(a=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!a||o<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,o=void 0,i=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ts(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Ua({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||as).call(this,e,r[0])}n.position.end=ts(e.end)}function u(){return co(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function h(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Eo(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function A(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:ts(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ts(e.end)}function O(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=ts(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(A.call(this,e),T.call(this,e))}function C(){this.data.atHardBreak=!0}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function _(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Zi,Qi)}(t),n.identifier=Eo(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function j(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Eo(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function $(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=xo(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=mo(t)}this.stack[this.stack.length-1].value+=r}function G(e){this.stack.pop().position.end=ts(e.end)}function q(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function H(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function W(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function Q(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!ai(e););return e}(function(e){const t={constructs:vo([Yi,...(e||{}).extensions||[]]),content:n(Bo),defined:[],document:n(Uo),flow:n(Li),lazy:{},string:n(Mi),text:n(ji)};return t;function n(e){return function(n){return Ki(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,o,i){const s=[];let l,c,u,d,p;for(a=n+("string"==typeof a?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,n="",r&&(65279===a.charCodeAt(0)&&u++,r=void 0);u<a.length;){if(Xi.lastIndex=u,l=Xi.exec(a),d=l&&void 0!==l.index?l.index:a.length,p=a.charCodeAt(d),!l){n=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function ts(e){return{line:e.line,column:e.column,offset:e.offset}}function ns(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ns(e,r):rs(e,r)}}function rs(e,t){let n;for(n in t)if(Ji.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function as(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ua({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ua({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ua({start:t.start,end:t.end})+") is still open")}function os(e){const t=this;t.parser=function(n){return es(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function is(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&"text"===i.type?i.value+=r:a.push({type:"text",value:r}),a}function ss(e){const t=e.spread;return null==t?e.children.length>1:t}function ls(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(cs(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(cs(t.slice(a),a>0,!1)),o.join("")}function cs(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const us={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=jo(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return is(e,t);const a={src:jo(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:jo(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return is(e,t);const a={href:jo(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:jo(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ss(n[r])}return t}(n):ss(t),o={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}const l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Fa(t.children[1]),i=ja(t.children[t.children.length-1]);o&&i&&(r.position={start:o,end:i}),a.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,i=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<i;){const n=t.children[s],r={},i=o?o[s]:void 0;i&&(r.align=i);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:ls(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ds,yaml:ds,definition:ds,footnoteDefinition:ds};function ds(){}const ps="object"==typeof self?self:globalThis,fs=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new ps[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new ps[o](i),a)};return r})(new Map,e)(0),gs="",{toString:ms}={},{keys:hs}=Object,bs=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=ms.call(e).slice(8,-1);switch(n){case"Array":return[1,gs];case"Object":return[2,gs];case"Date":return[3,gs];case"RegExp":return[4,gs];case"Map":return[5,gs];case"Set":return[6,gs];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},ys=([e,t])=>0===e&&("function"===t||"symbol"===t),vs=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},o=r=>{if(n.has(r))return n.get(r);let[i,s]=bs(r);switch(i){case 0:{let t=r;switch(s){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([i,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([i,e],r);for(const t of r)e.push(o(t));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=a([i,n],r);for(const t of hs(r))!e&&ys(bs(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return a([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([i,{source:e,flags:t}],r)}case 5:{const t=[],n=a([i,t],r);for(const[n,a]of r)(e||!ys(bs(n))&&!ys(bs(a)))&&t.push([o(n),o(a)]);return n}case 6:{const t=[],n=a([i,t],r);for(const n of r)!e&&ys(bs(n))||t.push(o(n));return n}}const{message:l}=r;return a([i,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r};var ws="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?fs(vs(e,t)):structuredClone(e):(e,t)=>fs(vs(e,t));function Ss(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function xs(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Es=function(e){if(null==e)return As;if("function"==typeof e)return ks(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Es(e[n]);return ks(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return ks(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return ks(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function ks(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function As(){return!0}const Ts=[],Os=!0,Cs=!1,Is="skip";function Ns(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const o=Es(a),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Ts;if((!t||o(a,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Os,e];return null==e?Ts:[e]}(n(a,l)),p[0]===Cs))return p;if("children"in a&&a.children){const t=a;if(t.children&&p[0]!==Is)for(u=(r?t.children.length:-1)+i,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Cs)return c;u="number"==typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function _s(e,t,n,r){let a,o,i;"function"==typeof t&&"function"!=typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=r),Ns(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},a)}const Rs={}.hasOwnProperty,Ps={};function Ls(e,t){e.position&&(t.position=function(e){const t=Fa(e),n=ja(e);if(t&&n)return{start:t,end:n}}(e))}function Ds(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&a&&Object.assign(n.properties,ws(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Ms(e,t){const n=t.data||{},r=!("value"in t)||Rs.call(n,"hProperties")||Rs.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function js(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Fs(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Bs(e,t){const n=function(e,t){const n=t||Ps,r=new Map,a=new Map,o=new Map,i={...us,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=s.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=Fs(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=Fs(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:Ds,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=s.handlers[n];if(Rs.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=ws(n);return r.children=s.all(e),r}return ws(e)}return(s.options.unknownHandler||Ms)(s,e,t)},options:n,patch:Ls,wrap:js};return _s(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ss,r=e.options.footnoteBackLabel||xs,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const o=e.all(a),i=String(a.identifier).toUpperCase(),c=jo(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else o.push(...d);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(a,g),s.push(g)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ws(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:"\n"},a),o}function Us(e,t){return e&&"run"in e?async function(n,r){const a=Bs(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Bs(n,{file:r,...e||t})}}function zs(e){if(e)throw e}var $s=Object.prototype.hasOwnProperty,Gs=Object.prototype.toString,qs=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Vs=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Gs.call(e)},Ws=function(e){if(!e||"[object Object]"!==Gs.call(e))return!1;var t,n=$s.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&$s.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||$s.call(e,t)},Ys=function(e,t){qs&&"__proto__"===t.name?qs(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ks=function(e,t){if("__proto__"===t){if(!$s.call(e,t))return;if(Hs)return Hs(e,t).value}return e[t]},Xs=function e(){var t,n,r,a,o,i,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Ks(s,n),s!==(a=Ks(t,n))&&(u&&a&&(Ws(a)||(o=Vs(a)))?(o?(o=!1,i=r&&Vs(r)?r:[]):i=r&&Ws(r)?r:{},Ys(s,{name:n,newValue:e(u,i,a)})):void 0!==a&&Ys(s,{name:n,newValue:a}));return s};function Zs(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Qs(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(o,...i){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==i[l]&&void 0!==i[l]||(i[l]=t[l]);t=i,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let i;r&&t.push(a);try{i=e.apply(this,t)}catch(e){if(r&&n)throw e;return a(e)}r||(i&&i.then&&"function"==typeof i.then?i.then(o,a):i instanceof Error?a(i):o(i))}function a(e,...r){n||(n=!0,t(e,...r))}function o(e){a(null,e)}}(s,a)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const Js={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');el(e);let n,r=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));r===a?a=i:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(el(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){el(e);let t,n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=n+1;break}}if(o<0||r<0||0===i||1===i&&o===r-1&&o===a+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)el(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){el(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",o=0):(a=a.slice(0,r),o=a.length-1-a.lastIndexOf("/")),i=l,s=0;continue}}else if(a.length>0){a="",o=0,i=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function el(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tl={cwd:function(){return"/"}};function nl(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function rl(e){if("string"==typeof e)e=new URL(e);else if(!nl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const al=["history","path","basename","stem","extname","dirname"];class ol{constructor(e){let t;t=e?nl(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":tl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<al.length;){const e=al[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)al.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Js.basename(this.path):void 0}set basename(e){sl(e,"basename"),il(e,"basename"),this.path=Js.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Js.dirname(this.path):void 0}set dirname(e){ll(this.basename,"dirname"),this.path=Js.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?Js.extname(this.path):void 0}set extname(e){if(il(e,"extname"),ll(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Js.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nl(e)&&(e=rl(e)),sl(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Js.basename(this.path,this.extname):void 0}set stem(e){sl(e,"stem"),il(e,"stem"),this.path=Js.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new qa(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function il(e,t){if(e&&e.includes(Js.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Js.sep+"`")}function sl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ll(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const cl=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ul={}.hasOwnProperty;class dl extends cl{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Qs()}copy(){const e=new dl;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Xs(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(ml("data",this.frozen),this.namespace[e]=t,this):ul.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ml("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=yl(e),n=this.parser||this.Parser;return fl("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),fl("process",this.parser||this.Parser),gl("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const o=yl(e),i=n.parse(o);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,o,function(e,t,r){if(e||!t||!r)return s(e);const a=t,o=n.stringify(a,r);var i;"string"==typeof(i=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),fl("processSync",this.parser||this.Parser),gl("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,zs(e),t=r}),bl("processSync","process",n),t}run(e,t,n){hl(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){const i=yl(t);r.run(e,i,function(t,r,i){const s=r||e;t?o(t):a?a(s):n(void 0,s,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){zs(e),n=t,r=!0}),bl("runSync","run",r),n}stringify(e,t){this.freeze();const n=yl(t),r=this.compiler||this.Compiler;return gl("stringify",r),hl(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(ml("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):o(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=Xs(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const i=n[a][1];Zs(i)&&Zs(r)&&(r=Xs(!0,i,r)),n[a]=[e,r,...o]}}}}const pl=(new dl).freeze();function fl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function gl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function ml(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hl(e){if(!Zs(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function bl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yl(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ol(e)}const vl=[],wl={allowDangerousHtml:!0},Sl=/^(https?|ircs?|mailto|xmpp)$/i,xl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function El(e){const t=function(e){const t=e.rehypePlugins||vl,n=e.remarkPlugins||vl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...wl}:wl,a=pl().use(os).use(n).use(Us,r).use(t);return a}(e),r=function(e){const t=e.children||"",n=new ol;"string"==typeof t&&(n.value=t);return n}(e);return function(e,t){const r=t.allowedElements,a=t.allowElement,o=t.components,i=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||kl;for(const e of xl)Object.hasOwn(t,e.from)&&kr((e.from,e.to&&e.to,e.id));t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]});return _s(e,u),Za(e,{Fragment:n.Fragment,components:o,ignoreInvalidStyle:!0,jsx:n.jsx,jsxs:n.jsxs,passKeys:!0,passNode:!0});function u(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return s?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in so)if(Object.hasOwn(so,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=so[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&a&&"number"==typeof t&&(o=!a(e,t,n)),o&&n&&"number"==typeof t)return l&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(t.runSync(t.parse(r),r),e)}function kl(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||Sl.test(e.slice(0,t))?e:""}function Al(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function Tl(e,t,n){const r=Es((n||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Ol(e[0]),Cl(e[1])])}return t}(t);let o=-1;for(;++o<a.length;)Ns(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[o][0],i=a[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let o=i(...d,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function Ol(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Cl(e){return"function"==typeof e?e:function(){return e}}const Il="phrasing",Nl=["autolink","link","image","label"];function _l(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Rl(e){this.config.enter.autolinkProtocol.call(this,e)}function Pl(e){this.config.exit.autolinkProtocol.call(this,e)}function Ll(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Dl(e){this.config.exit.autolinkEmail.call(this,e)}function Ml(e){this.exit(e)}function jl(e){Tl(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Fl],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Bl]],{ignore:["link","linkReference"]})}function Fl(e,t,n,r,a){let o="";if(!Ul(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Al(e,"(");let o=Al(e,")");for(;-1!==r&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function Bl(e,t,n,r){return!(!Ul(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Ul(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Do(n)||Lo(n))&&(!t||47!==n)}function zl(){this.buffer()}function $l(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Gl(){this.buffer()}function ql(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Hl(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Eo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Vl(e){this.exit(e)}function Wl(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Eo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Yl(e){this.exit(e)}function Kl(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),i(),o+=a.move("]"),o}function Xl(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const o=r.createTracker(a);let i=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");i+=o.move(r.safe(r.associationId(e),{before:i,after:"]"})),l(),i+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),i+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?Ql:Zl)));return s(),i},footnoteReference:Kl},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Zl(e,t,n){return 0===t?e:Ql(e,t,n)}function Ql(e,t,n){return(n?"":" ")+e}Kl.peek=function(){return"["};const Jl=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ec(e){this.enter({type:"delete",children:[]},e)}function tc(e){this.exit(e)}function nc(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function rc(e){return e.length}function ac(e){return null==e?"":String(e)}function oc(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function ic(e,t,n){return">"+(n?"":" ")+e}function sc(e,t){return lc(e,t.inConstruct,!0)&&!lc(e,t.notInConstruct,!1)}function lc(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function cc(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&sc(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function uc(e,t,n){return(n?"":" ")+e}function dc(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function pc(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fc(e,t,n){const r=$o(e),a=$o(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function gc(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),i=n.createTracker(r),s=i.move(a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=fc(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=pc(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=fc(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+pc(d));const f=i.move(a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function mc(e){return e.value||""}function hc(e,t,n,r){const a=dc(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),i(),c}function bc(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function yc(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function vc(e,t){const n=co(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function wc(e,t,n,r){const a=dc(n),o='"'===a?"Quote":"Apostrophe",i=n.createTracker(r);let s,l;if(vc(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(l=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=i.move(" "+a),c+=i.move(n.safe(e.title,{before:c,after:a,...i.current()})),c+=i.move(a),l()),c+=i.move(")"),s(),c}function Sc(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function xc(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ec(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}nc.peek=function(){return"~"},gc.peek=function(e,t,n){return n.options.emphasis||"*"},mc.peek=function(){return"<"},hc.peek=function(){return"!"},bc.peek=function(){return"!"},yc.peek=function(){return"`"},wc.peek=function(e,t,n){return vc(e,n)?"<":"["},Sc.peek=function(){return"["};const kc=Es(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ac(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),i=n.createTracker(r),s=i.move(a+a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=fc(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=pc(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=fc(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+pc(d));const f=i.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}Ac.peek=function(e,t,n){return n.options.strong||"*"};const Tc={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const i=n.indentLines(n.containerFlow(e,o.current()),ic);return a(),i},break:cc,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,uc);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++o>i&&(i=o):o=1,a=r+t.length,r=n.indexOf(t,a);return i}(o,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=dc(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),i(),c},emphasis:gc,hardBreak:cc,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return _s(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Cs}),Boolean((!e.depth||e.depth<3)&&co(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=pc(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),l(),s(),c},html:mc,image:hc,imageReference:bc,inlineCode:yc,link:wc,linkReference:Sc,list:function(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):xc(n);const s=e.ordered?"."===i?")":".":function(e){const t=xc(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Ec(n)===i&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(i=s),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=o,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||xc(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const s=n.createTracker(r);s.move(o+" ".repeat(i-o.length)),s.shift(i);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?o:o+" ".repeat(i-o.length))+e});return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),a(),i},root:function(e,t,n,r){return(e.children.some(function(e){return kc(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Ac,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Ec(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Oc(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Cc(e){this.exit(e),this.data.inTable=void 0}function Ic(e){this.enter({type:"tableRow",children:[]},e)}function Nc(e){this.exit(e)}function _c(e){this.enter({type:"tableCell",children:[]},e)}function Rc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Pc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Pc(e,t){return"|"===t?t:e}function Lc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Tc.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const o=[],i=t.enter("table");for(;++a<r.length;)o[a]=l(r[a],t,n);return i(),o}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const a=l(e,n,r),o=s([a]);return o.slice(0,o.indexOf("\n"))}}};function i(e,t,n,r){const a=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||rc,o=[],i=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const i=ac(e[u][o]);if(!1!==n.alignDelimiters){const e=a(i);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(i)}i[u]=t,s[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)o[d]=oc(r[d]);else{const e=oc(r);for(;++d<c;)o[d]=e}d=-1;const p=[],f=[];for(;++d<c;){const e=o[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[d]&&(l[d]=a),f[d]=a),p[d]=i}i.splice(1,0,p),s.splice(1,0,f),u=-1;const g=[];for(;++u<i.length;){const e=i[u],t=s[u];d=-1;const r=[];for(;++d<c;){const a=e[d]||"";let i="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=o[d];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),s=i):s=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===c-1||r.push("|")}g.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return g.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const o=[],s=t.enter("tableRow");for(;++a<r.length;)o[a]=i(r[a],0,t,n);return s(),o}}function Dc(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Mc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function jc(e,t,n,r){const a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(i);let l=Tc.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),l}const Fc={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),a;return n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},Bc={tokenize:function(e,t,n){let r,a,o;return i;function i(t){return 46===t||95===t?e.check(zc,l,s)(t):null===t||Ro(t)||Do(t)||45!==t&&Lo(t)?l(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function l(e){return a||r||!o?n(e):t(e)}},partial:!0},Uc={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(zc,t,o)(i):null===i||Ro(i)||Do(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&r++,e.consume(t),a}},partial:!0},zc={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||Ro(i)||Do(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||Ro(e)||Do(e)?t(e):r(e)}function o(e){return ko(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):ko(t)?(e.consume(t),i):n(t)}},partial:!0},$c={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Ao(e)?n(e):t(e)}},partial:!0},Gc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Yc.call(r,r.previous)||Qc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fc,e.attempt(Bc,e.attempt(Uc,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Yc},qc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",o=!1;return function(t){if((72===t||104===t)&&Kc.call(r,r.previous)&&!Qc(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i;return n(t)};function i(t){if(ko(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||Oo(t)||Ro(t)||Do(t)||Lo(t)?n(t):e.attempt(Bc,e.attempt(Uc,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Kc},Hc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,o;return function(t){if(!Zc(t)||!Xc.call(r,r.previous)||Qc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)};function i(t){return Zc(t)?(e.consume(t),i):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check($c,c,l)(t):45===t||95===t||Ao(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(i){return o&&a&&ko(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:Xc},Vc={};let Wc=48;for(;Wc<123;)Vc[Wc]=Hc,Wc++,58===Wc?Wc=65:91===Wc&&(Wc=97);function Yc(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Ro(e)}function Kc(e){return!ko(e)}function Xc(e){return!(47===e||Zc(e))}function Zc(e){return 43===e||45===e||46===e||95===e||Ao(e)}function Qc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Vc[43]=Hc,Vc[45]=Hc,Vc[46]=Hc,Vc[95]=Hc,Vc[72]=[Hc,qc],Vc[104]=[Hc,qc],Vc[87]=[Hc,Gc],Vc[119]=[Hc,Gc];const Jc={tokenize:function(e,t,n){const r=this;return Fo(e,function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function eu(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return n(a);const s=Eo(r.sliceSerialize({start:i.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function tu(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function nu(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(i>999||93===s&&!o||null===s||91===s||Ro(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return a.includes(Eo(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Ro(s)||(o=!0),i++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function ru(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||Ro(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Eo(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Ro(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),Fo(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function au(e,t,n){return e.check(Wo,t,e.attempt(Jc,t,n))}function ou(e){e.exit("gfmFootnoteDefinition")}function iu(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,o=this.events;let i=0;return function(t){if(126===a&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=$o(a);if(126===o)return i>1?r(o):(e.consume(o),i++,s);if(i<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=$o(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&ho(i,i.length,0,Go(s,e.slice(r+1,n),t)),ho(i,i.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),ho(e,r-1,n-r+3,i),n=r+i.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class su{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function lu(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function cu(e,t,n){const r=this;let a,o=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?w:s;if(o===w&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,i+=1,l(e)}(t)}function l(t){return null===t?n(t):_o(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Po(t)?Fo(e,l,"whitespace")(t):(i+=1,a&&(a=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Ro(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,Po(t)?Fo(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?g(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):v(t)}function f(t){return Po(t)?Fo(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||_o(t)?y(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),h(t)):v(t)}function h(t){return 45===t?(e.consume(t),h):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(t))}function b(t){return Po(t)?Fo(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||_o(n))&&a&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function w(t){return e.enter("tableRow"),S(t)}function S(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),S):null===n||_o(n)?(e.exit("tableRow"),t(n)):Po(n)?Fo(e,S,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||Ro(t)?(e.exit("data"),S(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function uu(e,t){let n,r,a,o=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new su;for(;++o<e.length;){const f=e[o],g=f[1];"enter"===f[0]?"tableHead"===g.type?(u=!1,0!==d&&(pu(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===g.type||"tableDelimiterRow"===g.type?(i=!0,a=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===g.type?2:r?3:1):!s||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type?"tableCellDivider"===g.type&&(i?i=!1:(0!==l[1]&&(c[0]=c[1],a=du(p,t,l,s,void 0,a)),l=c,c=[l[1],o,0,0])):(i=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=du(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=o)):"tableHead"===g.type?(u=!0,d=o):"tableRow"===g.type||"tableDelimiterRow"===g.type?(d=o,0!==l[1]?(c[0]=c[1],a=du(p,t,l,s,o,a)):0!==c[1]&&(a=du(p,t,c,s,o,a)),s=0):!s||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type||(c[3]=o)}for(0!==d&&pu(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=lu(t.events,o))}return e}function du(e,t,n,r,a,o){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},fu(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=fu(t.events,n[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const a=fu(t.events,n[2]),o=fu(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},fu(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function pu(e,t,n,r,a){const o=[],i=fu(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function fu(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const gu={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return Ro(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return _o(r)?t(r):Po(r)?e.check({tokenize:mu},t,n)(r):n(r)}}};function mu(e,t,n){return Fo(e,function(e){return null===e?n(e):t(e)},"whitespace")}const hu={};function bu(e){const t=e||hu,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return vo([{text:Vc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ru,continuation:{tokenize:au},exit:ou}},text:{91:{name:"gfmFootnoteCall",tokenize:nu},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eu,resolveTo:tu}}},iu(e),{flow:{null:{name:"table",tokenize:cu,resolveAll:uu}}},{text:{91:gu}}])}(t)),a.push([{transforms:[jl],enter:{literalAutolink:_l,literalAutolinkEmail:Rl,literalAutolinkHttp:Rl,literalAutolinkWww:Rl},exit:{literalAutolink:Ml,literalAutolinkEmail:Dl,literalAutolinkHttp:Pl,literalAutolinkWww:Ll}},{enter:{gfmFootnoteCallString:zl,gfmFootnoteCall:$l,gfmFootnoteDefinitionLabelString:Gl,gfmFootnoteDefinition:ql},exit:{gfmFootnoteCallString:Hl,gfmFootnoteCall:Vl,gfmFootnoteDefinitionLabelString:Wl,gfmFootnoteDefinition:Yl}},{canContainEols:["delete"],enter:{strikethrough:ec},exit:{strikethrough:tc}},{enter:{table:Oc,tableData:_c,tableHeader:_c,tableRow:Ic},exit:{codeText:Rc,table:Cc,tableData:Nc,tableHeader:Nc,tableRow:Nc}},{exit:{taskListCheckValueChecked:Dc,taskListCheckValueUnchecked:Dc,paragraph:Mc}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Il,notInConstruct:Nl},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Il,notInConstruct:Nl},{character:":",before:"[ps]",after:"\\/",inConstruct:Il,notInConstruct:Nl}]},Xl(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Jl}],handlers:{delete:nc}},Lc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:jc}}]}}(t))}function yu(){return{type:"break"}}function vu(){return function(e){!function(e){Tl(e,[/\r?\n|\r/g,yu])}(e)}}function wu(){return e=>{_s(e,"listItem",e=>{_s(e,"break",(e,t,n)=>{n&&void 0!==t&&(n.children[t]={type:"text",value:"\n"})})})}}function Su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xu(e){return function(e){if(Array.isArray(e))return Su(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Su(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Su(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eu(e){return Eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eu(e)}function ku(e){var t=function(e,t){if("object"!=Eu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Eu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Eu(t)?t:t+""}function Au(e,t,n){return(t=ku(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(null,arguments)}function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(n),!0).forEach(function(t){Au(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Iu={};function Nu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t,n,r=e.join(".");return Iu[r]||(Iu[r]=0===(n=(t=e).length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),Iu[r]}(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return Cu(Cu({},e),n[t])},t)}function _u(e){return e.join(" ")}function Ru(t){var n=t.node,r=t.stylesheet,a=t.style,o=void 0===a?{}:a,i=t.useInlineStyles,s=t.key,l=n.properties,c=n.type,u=n.tagName,d=n.value;if("text"===c)return d;if(u){var p,f=function(e,t){var n=0;return function(r){return n+=1,r.map(function(r,a){return Ru({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}(r,i);if(i){var g=Object.keys(r).reduce(function(e,t){return t.split(".").forEach(function(t){e.includes(t)||e.push(t)}),e},[]),m=l.className&&l.className.includes("token")?["token"]:[],h=l.className&&m.concat(l.className.filter(function(e){return!g.includes(e)}));p=Cu(Cu({},l),{},{className:_u(h)||void 0,style:Nu(l.className,Object.assign({},l.style,o),r)})}else p=Cu(Cu({},l),{},{className:_u(l.className)});var b=f(n.children);return e.createElement(u,Tu({key:s},p),b)}}var Pu=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach(function(t){Au(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Mu=/\n/g;function ju(t){var n=t.codeString,r=t.codeStyle,a=t.containerStyle,o=void 0===a?{float:"left",paddingRight:"10px"}:a,i=t.numberStyle,s=void 0===i?{}:i,l=t.startingLineNumber;return e.createElement("code",{style:Object.assign({},r,o)},function(t){var n=t.lines,r=t.startingLineNumber,a=t.style;return n.map(function(t,n){var o=n+r;return e.createElement("span",{key:"line-".concat(n),className:"react-syntax-highlighter-line-number",style:"function"==typeof a?a(o):a},"".concat(o,"\n"))})}({lines:n.replace(/\n$/,"").split("\n"),style:s,startingLineNumber:l}))}function Fu(e){return"".concat(e.toString().length,".25em")}function Bu(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Uu(e,t,n){var r={display:"inline-block",minWidth:Fu(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a="function"==typeof e?e(t):e;return Du(Du({},r),a)}function zu(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,s=void 0===i?{}:i,l=e.className,c=void 0===l?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,p=e.wrapLines,f=void 0!==p&&p?Du({},"function"==typeof s?s(n):s):{};if(f.className=f.className?[].concat(xu(f.className.trim().split(/\s+/)),xu(c)):c,n&&o){var g=Uu(r,n,a);t.unshift(Bu(n,g))}return d&u&&(f.style=Du({display:"flex"},f.style)),{type:"element",tagName:"span",properties:f,children:t}}function $u(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r<e.length;r++){var a=e[r];if("text"===a.type)n.push(zu({children:[a],className:xu(new Set(t))}));else if(a.children){var o=t.concat(a.properties.className);$u(a.children,o).forEach(function(e){return n.push(e)})}}return n}function Gu(e,t,n,r,a,o,i,s,l){var c,u=$u(e.value),d=[],p=-1,f=0;function g(e,o){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,o){return zu({children:e,lineNumber:o,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:r,wrapLongLines:l,wrapLines:t})}(e,o,c):function(e,t){if(r&&t&&a){var n=Uu(s,t,i);e.unshift(Bu(t,n))}return e}(e,o)}for(var m=function(){var e=u[f],t=e.children[0].value;if(t.match(Mu)){var n=t.split("\n");n.forEach(function(t,a){var i=r&&d.length+o,s={type:"text",value:"".concat(t,"\n")};if(0===a){var l=g(u.slice(p+1,f).concat(zu({children:[s],className:e.properties.className})),i);d.push(l)}else if(a===n.length-1){var c=u[f+1]&&u[f+1].children&&u[f+1].children[0],m={type:"text",value:"".concat(t)};if(c){var h=zu({children:[m],className:e.properties.className});u.splice(f+1,0,h)}else{var b=g([m],i,e.properties.className);d.push(b)}}else{var y=g([s],i,e.properties.className);d.push(y)}}),p=f}f++};f<u.length;)m();if(p!==u.length-1){var h=u.slice(p+1,u.length);if(h&&h.length){var b=g(h,r&&d.length+o);d.push(b)}}return t?d:(c=[]).concat.apply(c,d)}function qu(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return Ru({node:e,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(t)})})}function Hu(e){return e&&void 0!==e.highlightAuto}var Vu=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Wu.call(n,r)&&(e[r]=n[r])}return e},Wu=Object.prototype.hasOwnProperty;var Yu=Xu,Ku=Xu.prototype;function Xu(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}Ku.space=null,Ku.normal={},Ku.property={};var Zu=Vu,Qu=Yu,Ju=function(e){var t,n,r=e.length,a=[],o=[],i=-1;for(;++i<r;)t=e[i],a.push(t.property),o.push(t.normal),n=t.space;return new Qu(Zu.apply(null,a),Zu.apply(null,o),n)};var ed=function(e){return e.toLowerCase()};var td=rd,nd=rd.prototype;function rd(e,t){this.property=e,this.attribute=t}nd.space=null,nd.attribute=null,nd.property=null,nd.boolean=!1,nd.booleanish=!1,nd.overloadedBoolean=!1,nd.number=!1,nd.commaSeparated=!1,nd.spaceSeparated=!1,nd.commaOrSpaceSeparated=!1,nd.mustUseProperty=!1,nd.defined=!1;var ad={},od=0;function id(){return Math.pow(2,++od)}ad.boolean=id(),ad.booleanish=id(),ad.overloadedBoolean=id(),ad.number=id(),ad.spaceSeparated=id(),ad.commaSeparated=id(),ad.commaOrSpaceSeparated=id();var sd=td,ld=ad,cd=pd;pd.prototype=new sd,pd.prototype.defined=!0;var ud=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],dd=ud.length;function pd(e,t,n,r){var a,o=-1;for(fd(this,"space",r),sd.call(this,e,t);++o<dd;)fd(this,a=ud[o],(n&ld[a])===ld[a])}function fd(e,t,n){n&&(e[t]=n)}var gd=ed,md=Yu,hd=cd,bd=function(e){var t,n,r=e.space,a=e.mustUseProperty||[],o=e.attributes||{},i=e.properties,s=e.transform,l={},c={};for(t in i)n=new hd(t,s(o,t),i[t],r),-1!==a.indexOf(t)&&(n.mustUseProperty=!0),l[t]=n,c[gd(t)]=t,c[gd(n.attribute)]=t;return new md(l,c,r)};var yd=bd({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var vd=bd({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});var wd=function(e,t){return t in e?e[t]:t};var Sd=wd,xd=function(e,t){return Sd(e,t.toLowerCase())};var Ed=bd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xd,properties:{xmlns:null,xmlnsXLink:null}}),kd=ad,Ad=bd,Td=kd.booleanish,Od=kd.number,Cd=kd.spaceSeparated,Id=Ad({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Td,ariaAutoComplete:null,ariaBusy:Td,ariaChecked:Td,ariaColCount:Od,ariaColIndex:Od,ariaColSpan:Od,ariaControls:Cd,ariaCurrent:null,ariaDescribedBy:Cd,ariaDetails:null,ariaDisabled:Td,ariaDropEffect:Cd,ariaErrorMessage:null,ariaExpanded:Td,ariaFlowTo:Cd,ariaGrabbed:Td,ariaHasPopup:null,ariaHidden:Td,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cd,ariaLevel:Od,ariaLive:null,ariaModal:Td,ariaMultiLine:Td,ariaMultiSelectable:Td,ariaOrientation:null,ariaOwns:Cd,ariaPlaceholder:null,ariaPosInSet:Od,ariaPressed:Td,ariaReadOnly:Td,ariaRelevant:null,ariaRequired:Td,ariaRoleDescription:Cd,ariaRowCount:Od,ariaRowIndex:Od,ariaRowSpan:Od,ariaSelected:Td,ariaSetSize:Od,ariaSort:null,ariaValueMax:Od,ariaValueMin:Od,ariaValueNow:Od,ariaValueText:null,role:null}});var Nd=ad,_d=bd,Rd=xd,Pd=Nd.boolean,Ld=Nd.overloadedBoolean,Dd=Nd.booleanish,Md=Nd.number,jd=Nd.spaceSeparated,Fd=Nd.commaSeparated,Bd=Ju([vd,yd,Ed,Id,_d({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Rd,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fd,acceptCharset:jd,accessKey:jd,action:null,allow:null,allowFullScreen:Pd,allowPaymentRequest:Pd,allowUserMedia:Pd,alt:null,as:null,async:Pd,autoCapitalize:null,autoComplete:jd,autoFocus:Pd,autoPlay:Pd,capture:Pd,charSet:null,checked:Pd,cite:null,className:jd,cols:Md,colSpan:null,content:null,contentEditable:Dd,controls:Pd,controlsList:jd,coords:Md|Fd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pd,defer:Pd,dir:null,dirName:null,disabled:Pd,download:Ld,draggable:Dd,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pd,formTarget:null,headers:jd,height:Md,hidden:Pd,high:Md,href:null,hrefLang:null,htmlFor:jd,httpEquiv:jd,id:null,imageSizes:null,imageSrcSet:Fd,inputMode:null,integrity:null,is:null,isMap:Pd,itemId:null,itemProp:jd,itemRef:jd,itemScope:Pd,itemType:jd,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pd,low:Md,manifest:null,max:null,maxLength:Md,media:null,method:null,min:null,minLength:Md,multiple:Pd,muted:Pd,name:null,nonce:null,noModule:Pd,noValidate:Pd,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pd,optimum:Md,pattern:null,ping:jd,placeholder:null,playsInline:Pd,poster:null,preload:null,readOnly:Pd,referrerPolicy:null,rel:jd,required:Pd,reversed:Pd,rows:Md,rowSpan:Md,sandbox:jd,scope:null,scoped:Pd,seamless:Pd,selected:Pd,shape:null,size:Md,sizes:null,slot:null,span:Md,spellCheck:Dd,src:null,srcDoc:null,srcLang:null,srcSet:Fd,start:Md,step:null,style:null,tabIndex:Md,target:null,title:null,translate:null,type:null,typeMustMatch:Pd,useMap:null,value:Dd,width:Md,wrap:null,align:null,aLink:null,archive:jd,axis:null,background:null,bgColor:null,border:Md,borderColor:null,bottomMargin:Md,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pd,declare:Pd,event:null,face:null,frame:null,frameBorder:null,hSpace:Md,leftMargin:Md,link:null,longDesc:null,lowSrc:null,marginHeight:Md,marginWidth:Md,noResize:Pd,noHref:Pd,noShade:Pd,noWrap:Pd,object:null,profile:null,prompt:null,rev:null,rightMargin:Md,rules:null,scheme:null,scrolling:Dd,standby:null,summary:null,text:null,topMargin:Md,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Md,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pd,disableRemotePlayback:Pd,prefix:null,property:null,results:Md,security:null,unselectable:null}})]),Ud=ed,zd=cd,$d=td,Gd="data",qd=function(e,t){var n=Ud(t),r=t,a=$d;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===Gd&&Hd.test(t)&&("-"===t.charAt(4)?r=function(e){var t=e.slice(5).replace(Vd,Kd);return Gd+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(Vd.test(t))return e;t=t.replace(Wd,Yd),"-"!==t.charAt(0)&&(t="-"+t);return Gd+t}(t),a=zd);return new a(r,t)},Hd=/^data[-\w.:]+$/i,Vd=/-[a-z]/g,Wd=/[A-Z]/g;function Yd(e){return"-"+e.toLowerCase()}function Kd(e){return e.charAt(1).toUpperCase()}var Xd=function(e,t){var n,r,a,o=e||"",i=t||"div",s={},l=0;for(;l<o.length;)Zd.lastIndex=l,a=Zd.exec(o),(n=o.slice(l,a?a.index:o.length))&&(r?"#"===r?s.id=n:s.className?s.className.push(n):s.className=[n]:i=n,l+=n.length),a&&(r=a[0],l++);return{type:"element",tagName:i,properties:s,children:[]}},Zd=/[#.]/g;var Qd={parse:function(e){var t=String(e||Jd).trim();return t===Jd?[]:t.split(tp)},stringify:function(e){return e.join(ep).trim()}},Jd="",ep=" ",tp=/[ \t\n\r\f]+/g;var np={parse:function(e){var t,n=[],r=String(e||op),a=r.indexOf(rp),o=0,i=!1;for(;!i;)-1===a&&(a=r.length,i=!0),!(t=r.slice(o,a).trim())&&i||n.push(t),o=a+1,a=r.indexOf(rp,o);return n},stringify:function(e,t){var n=t||{},r=!1===n.padLeft?op:ap,a=n.padRight?ap:op;e[e.length-1]===op&&(e=e.concat(op));return e.join(a+rp+r).trim()}},rp=",",ap=" ",op="";var ip=qd,sp=ed,lp=Xd,cp=Qd.parse,up=np.parse,dp=function(e,t,n){var r=n?function(e){var t,n=e.length,r=-1,a={};for(;++r<n;)a[(t=e[r]).toLowerCase()]=t;return a}(n):null;return function(e,n){var o,i=lp(e,t),s=Array.prototype.slice.call(arguments,2),l=i.tagName.toLowerCase();i.tagName=r&&pp.call(r,l)?r[l]:l,n&&function(e,t){return"string"==typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!=typeof n)return!1;if("object"==typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,i)&&(s.unshift(n),n=null);if(n)for(o in n)a(i.properties,o,n[o]);fp(i.children,s),"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]);return i};function a(t,n,r){var a,o,i;null!=r&&r==r&&(o=(a=ip(e,n)).property,"string"==typeof(i=r)&&(a.spaceSeparated?i=cp(i):a.commaSeparated?i=up(i):a.commaOrSpaceSeparated&&(i=cp(up(i).join(" ")))),"style"===o&&"string"!=typeof r&&(i=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(i)),"className"===o&&t.className&&(i=t.className.concat(i)),t[o]=function(e,t,n){var r,a,o;if("object"!=typeof n||!("length"in n))return gp(e,t,n);a=n.length,r=-1,o=[];for(;++r<a;)o[r]=gp(e,t,n[r]);return o}(a,o,i))}},pp={}.hasOwnProperty;function fp(e,t){var n,r;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)fp(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function gp(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&sp(n)!==sp(t)||(r=!0)),r}var mp=dp(Bd,"div");mp.displayName="html";var hp=mp,bp=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57};var yp=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57};var vp=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90};var wp=vp,Sp=bp;var xp={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"⁡",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",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:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"⁣",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",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:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"­",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Ep=function(e){return!!kp.call(xp,e)&&xp[e]},kp={}.hasOwnProperty;var Ap={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},Tp={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:"Ÿ"},Op=bp,Cp=yp,Ip=function(e){return wp(e)||Sp(e)},Np=Ep,_p=function(e,t){var n,r,a={};t||(t={});for(r in Dp)n=t[r],a[r]=null==n?Dp[r]:n;(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start);return function(e,t){var n,r,a,o,i,s,l,c,u,d,p,f,g,m,h,b,y,v,w,S=t.additional,x=t.nonTerminated,E=t.text,k=t.reference,A=t.warning,T=t.textContext,O=t.referenceContext,C=t.warningContext,I=t.position,N=t.indent||[],_=e.length,R=0,P=-1,L=I.column||1,D=I.line||1,M="",j=[];"string"==typeof S&&(S=S.charCodeAt(0));b=F(),c=A?B:Lp,R--,_++;for(;++R<_;)if(i===jp&&(L=N[P]||1),(i=e.charCodeAt(R))===Up){if((l=e.charCodeAt(R+1))===Mp||l===jp||l===Fp||l===Bp||l===Up||l===$p||l!=l||S&&l===S){M+=Pp(i),L++;continue}for(f=g=R+1,w=g,l===qp?(w=++f,(l=e.charCodeAt(w))===Hp||l===Vp?(m=Kp,w=++f):m=Xp):m=Yp,n="",p="",o="",h=Qp[m],w--;++w<_&&h(l=e.charCodeAt(w));)o+=Pp(l),m===Yp&&Rp.call(Ap,o)&&(n=o,p=Ap[o]);(a=e.charCodeAt(w)===zp)&&(w++,(r=m===Yp&&Np(o))&&(n=o,p=r)),v=1+w-g,(a||x)&&(o?m===Yp?(a&&!p?c(rf,1):(n!==o&&(v=1+(w=f+n.length)-f,a=!1),a||(u=n?Jp:tf,t.attribute?(l=e.charCodeAt(w))===Gp?(c(u,v),p=null):Ip(l)?p=null:c(u,v):c(u,v))),s=p):(a||c(ef,v),lf(s=parseInt(o,Zp[m]))?(c(of,v),s=Pp(Wp)):s in Tp?(c(af,v),s=Tp[s]):(d="",cf(s)&&c(af,v),s>65535&&(d+=Pp((s-=65536)>>>10|55296),s=56320|1023&s),s=d+Pp(s))):m!==Yp&&c(nf,v)),s?(U(),b=F(),R=w-1,L+=w-g+1,j.push(s),(y=F()).offset++,k&&k.call(O,s,{start:b,end:y},e.slice(g-1,w)),b=y):(o=e.slice(g-1,w),M+=o,L+=o.length,R=w-1)}else 10===i&&(D++,P++,L=0),i==i?(M+=Pp(i),L++):U();return j.join("");function F(){return{line:D,column:L,offset:R+(I.offset||0)}}function B(e,t){var n=F();n.column+=t,n.offset+=t,A.call(C,sf[e],n,e)}function U(){M&&(j.push(M),E&&E.call(T,M,{start:b,end:F()}),M="")}}(e,a)},Rp={}.hasOwnProperty,Pp=String.fromCharCode,Lp=Function.prototype,Dp={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Mp=9,jp=10,Fp=12,Bp=32,Up=38,zp=59,$p=60,Gp=61,qp=35,Hp=88,Vp=120,Wp=65533,Yp="named",Kp="hexadecimal",Xp="decimal",Zp={};Zp[Kp]=16,Zp[Xp]=10;var Qp={};Qp[Yp]=Ip,Qp[Xp]=Op,Qp[Kp]=Cp;var Jp=1,ef=2,tf=3,nf=4,rf=5,af=6,of=7,sf={};function lf(e){return e>=55296&&e<=57343||e>1114111}function cf(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}sf[Jp]="Named character references must be terminated by a semicolon",sf[ef]="Numeric character references must be terminated by a semicolon",sf[tf]="Named character references cannot be empty",sf[nf]="Numeric character references cannot be empty",sf[rf]="Named character references must be known",sf[af]="Numeric character references cannot be disallowed",sf[of]="Numeric character references cannot be outside the permissible Unicode range";var uf={exports:{}};!function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},a.util.type(t)){case"Object":if(o=a.util.objId(t),n[o])return n[o];for(var i in r={},n[o]=r,t)t.hasOwnProperty(i)&&(r[i]=e(t[i],n));return r;case"Array":return o=a.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach(function(t,a){r[a]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=a.util.clone(a.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||a.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var c=r[e];return r[e]=i,a.languages.DFS(a.languages,function(t,n){n===c&&t!=e&&(this[t]=i)}),i},DFS:function e(t,n,r,o){o=o||{};var i=a.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=a.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlightAll:function(e,t){a.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var o,i=0;o=r.elements[i++];)a.highlightElement(o,!0===t,r.callback)},highlightElement:function(t,n,r){var o=a.util.getLanguage(t),i=a.languages[o];a.util.setLanguage(t,o);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&a.util.setLanguage(s,o);var l={element:t,language:o,grammar:i,code:t.textContent};function c(e){l.highlightedCode=e,a.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a.hooks.run("after-highlight",l),a.hooks.run("complete",l),r&&r.call(l.element)}if(a.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return a.hooks.run("complete",l),void(r&&r.call(l.element));if(a.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(a.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(a.highlight(l.code,l.grammar,l.language));else c(a.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(a.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),o.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new l;return c(a,a.head,e),s(e,a,t,a.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function s(e,t,n,r,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var g=0;g<f.length;++g){if(d&&d.cause==p+","+g)return;var m=f[g],h=m.inside,b=!!m.lookbehind,y=!!m.greedy,v=m.alias;if(y&&!m.pattern.global){var w=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,w+"g")}for(var S=m.pattern||m,x=r.next,E=l;x!==t.tail&&!(d&&E>=d.reach);E+=x.value.length,x=x.next){var k=x.value;if(t.length>e.length)return;if(!(k instanceof o)){var A,T=1;if(y){if(!(A=i(S,E,e,b))||A.index>=e.length)break;var O=A.index,C=A.index+A[0].length,I=E;for(I+=x.value.length;O>=I;)I+=(x=x.next).value.length;if(E=I-=x.value.length,x.value instanceof o)continue;for(var N=x;N!==t.tail&&(I<C||"string"==typeof N.value);N=N.next)T++,I+=N.value.length;T--,k=e.slice(E,I),A.index-=E}else if(!(A=i(S,0,k,b)))continue;O=A.index;var _=A[0],R=k.slice(0,O),P=k.slice(O+_.length),L=E+k.length;d&&L>d.reach&&(d.reach=L);var D=x.prev;if(R&&(D=c(t,D,R),E+=R.length),u(t,D,T),x=c(t,D,new o(p,h?a.tokenize(_,h):_,v,_)),P&&c(t,x,P),T>1){var M={cause:p+","+g,reach:L};s(e,t,n,x.prev,E,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}if(e.Prism=a,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),a.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,i=n.immediateClose;e.postMessage(a.highlight(o,a.languages[r],r)),i&&e.close()},!1),a):a;var d=a.util.currentScript();function p(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
20
+ */let tt=null;function nt(t){e.useEffect(()=>{if(!Ze||!t)return;const e=t.split(",")[0]?.trim();if(!e||et.has(e))return;if((e=>{const t=e.trim().toLowerCase();return!t||!!Qe.has(t)||Je.some(e=>t.includes(e))})(e))return void et.add(e);let n=!0;return(async()=>{try{tt||(tt=Promise.resolve().then(function(){return xr}));const t=await tt,r=t&&"default"in t?t.default:t,a=(e=>e.trim().replace(/\s+/g,"+"))(e);r.load({google:{families:[`${a}:300,400,500,600,700`]},fontactive:e=>{n&&et.add(e)},fontinactive:e=>{n&&et.add(e),console.warn(`Warning: failed to load Google Font: ${e}`)}})}catch(e){console.error("Warning: WebFont loader error:",e)}})(),()=>{n=!1}},[t])}function rt(e){return"string"==typeof e&&/^https?:\/\//i.test(e)?e:void 0}const at="__eshalChatWidgetCitationContext",ot="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0,it=ot?ot[at]||(ot[at]=e.createContext(null)):e.createContext(null);function st(){return Promise.resolve().then(function(){return R2})}const lt=e.lazy(st);class ct extends e.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e){console.error("[widget] markdown chunk failed to load, showing plain text:",e)}render(){return this.state.failed?this.props.fallback:this.props.children}}const ut=/(```|`[^`]+`|(^|\n)\s{0,3}#{1,6}\s|(^|\n)\s*[-*+]\s|(^|\n)\s*\d+\.\s|(^|\n)\s*>\s|\[[^\]]*\]\([^)]*\)|\*\*|__|~~|(^|\n)\s*\||\[\d+\])/;const dt=({content:e,isDark:t,textColor:r,fontFamily:a,fontSize:o})=>n.jsx("p",{className:"leading-relaxed [&:first-child]:!mt-0 whitespace-pre-wrap break-words",style:{color:r||(t?"#f3f4f6":"#1A1A1A"),fontFamily:a||"Inter",fontSize:o||"14px",margin:0,lineHeight:"1.6",padding:0,overflowWrap:"break-word"},children:e}),pt=({content:t,isStreaming:r,isDark:a=!1,isRtl:o=!1,textColor:i,fontFamily:s,fontSize:l,onButtonClick:c,provideCitations:u=!0})=>{const[d,p]=e.useState(""),[f,g]=e.useState(!1),m=e.useRef(t),h=e.useRef(0),b=e.useRef(null),y=e.useRef(0);e.useEffect(()=>{if(t!==m.current){if(m.current=t,h.current>=t.length)return p(t),void g(!1);t.length<d.length&&(h.current=0,p(""))}if(!r)return p(t),g(!1),void(b.current&&cancelAnimationFrame(b.current));g(!0);const e=n=>{if(n-y.current<16)b.current=requestAnimationFrame(e);else if(y.current=n,h.current<t.length){const n=Math.max(2,Math.floor(4*Math.random())),r=Math.min(h.current+n,t.length);p(t.slice(0,r)),h.current=r,b.current=requestAnimationFrame(e)}else g(!1)};return b.current=requestAnimationFrame(e),()=>{b.current&&cancelAnimationFrame(b.current)}},[t,r]);const v=function(e){return"string"==typeof e&&0!==e.length&&ut.test(e)}(d);return n.jsxs("div",{className:"relative",dir:"auto",style:{textAlign:o?"right":"left",color:i||(a?"#f3f4f6":"#1A1A1A"),fontFamily:s||"Inter",fontSize:l||"14px",margin:0,padding:0},children:[v?n.jsx(ct,{fallback:n.jsx(dt,{content:d,isDark:a,textColor:i,fontFamily:s,fontSize:l}),children:n.jsx(e.Suspense,{fallback:n.jsx(dt,{content:d,isDark:a,textColor:i,fontFamily:s,fontSize:l}),children:n.jsx(lt,{content:d,isStreaming:r,isDark:a,isRtl:o,textColor:i,fontFamily:s,fontSize:l,onButtonClick:c,provideCitations:u})})}):n.jsx(dt,{content:d,isDark:a,textColor:i,fontFamily:s,fontSize:l}),f&&n.jsx("span",{className:"inline-block w-1.5 h-4 bg-blue-500 ms-0.5 animate-pulse align-text-bottom",style:{animationDuration:"0.8s"}})]})},ft=({isDark:e,t:t})=>n.jsxs("div",{className:"flex gap-1.5",role:"status","aria-label":t("agentIsTyping"),children:[n.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"0ms"},"aria-hidden":"true"}),n.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"150ms"},"aria-hidden":"true"}),n.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"300ms"},"aria-hidden":"true"})]}),gt=({question:e,options:t,onDecision:r,disabled:a,isDark:o=!1})=>n.jsxs("div",{className:"mt-3 p-3 rounded-lg border "+(o?"bg-blue-900/30 border-blue-700/50":"bg-blue-50 border-blue-200"),children:[n.jsx("p",{className:"text-sm font-medium mb-2 "+(o?"text-gray-100":"text-gray-900"),children:e}),n.jsx("div",{className:"space-y-2",children:t.map(e=>n.jsx("button",{onClick:()=>r(e.id,e.label),disabled:a,className:"w-full text-left px-3 py-2 text-sm rounded transition-all "+(o?"bg-gray-800 border border-gray-700 hover:bg-blue-900/50 hover:border-blue-600 disabled:opacity-50 disabled:cursor-not-allowed":"bg-white border border-gray-300 hover:bg-blue-50 hover:border-blue-400 disabled:opacity-50 disabled:cursor-not-allowed"),children:e.label},e.id))})]});function mt({content:t,isDark:r}){const[a,o]=e.useState(!1),i=e.useCallback(()=>{t&&(navigator.clipboard?.writeText(t).catch(()=>{}),o(!0),setTimeout(()=>o(!1),1500))},[t]);return n.jsx("button",{type:"button",onClick:i,className:"p-0.5 rounded transition-colors "+(r?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":a?"Copied":"Copy message",title:a?"Copied":"Copy message",children:a?n.jsx(Oe,{className:"w-3 h-3 text-green-500"}):n.jsx(Re,{className:"w-3 h-3"})})}const ht=({message:t,formatTime:r,isDark:a,primaryColor:o,agentMessageBubbleColor:i,resolvedAgentBubbleColor:s,textColor:l,assistantTextColor:c,fontFamily:u,agentMessageBubbleFontFamily:d,agentMessageBubbleFontSize:p,fontSize:f,isRtl:g,onDecision:m,companyLogo:h,conciergeName:b,companyName:y,apiBaseUrl:v,getAuthToken:w,onPromptSuggestionClick:S,allowFeedback:x=!0,provideCitations:E=!0,onFeedback:k,headerTextColor:A,t:T})=>{const O="string"==typeof t.content?t.content:"",C=t.isProcessing&&(!O||0===O.length),I=$(O,g),[N,_]=e.useState(()=>t?.feedback??null),[R,P]=e.useState(!1),[L,D]=e.useState(null),[M,j]=e.useState(""),F=e.useRef(null),B=e.useCallback(e=>{if(k&&O){if(N===e)return _(null),P(!1),D(null),j(""),void k(O,null);if("like"===e)return _("like"),P(!1),D(null),j(""),void k(O,"like");_(null),D("dislike"),P(!0),j(""),setTimeout(()=>F.current?.focus(),100)}},[N,k,O]),U=e.useCallback(()=>{k&&O&&L&&(_(L),k(O,L,M.trim()||void 0),P(!1),j(""),D(null))},[k,O,L,M]),z=e.useCallback(()=>{P(!1),j(""),D(null)},[]),G=!0===t?.isError,q=G?a?"rgba(239,68,68,0.15)":"#fee2e2":null!=s?s:null!=i?i:a?"#1f2937":"#FFFFFF",H=null!=i&&"#ffffff"!==i&&"#FFFFFF"!==i&&"#1f2937"!==i,V=G?a?"#fca5a5":"#991b1b":null!=c?c:null!=l?l:a?"#f3f4f6":"#1A1A1A",W=null!=d?d:null!=u?u:"Inter",Y=null!=p?p:null!=f?f:"14px";nt(W);const{onSourceActivate:K,downloadingKey:X}=function({apiBaseUrl:t,getAuthToken:n}){const[r,a]=e.useState(null),o=e.useCallback(async e=>{if(!e)return;const r=e.url||e.source_id||e.sourceid||e.source_name||"",o=String(e.source_id||e.sourceid||"").startsWith("attachment:"),i="string"==typeof e.url&&e.url.includes("/api/v1/sharepoint/file/"),s="file"===e.source_type||i||o||!(!e.source_id&&!e.sourceid)&&!e.url;if(!s){const t=rt(e.url);if(t)try{window.open(t,"_blank","noopener,noreferrer")}catch{}return}if(t||o){a(r),console.debug("[widget] citation download starting:",{source_id:e.source_id||e.sourceid,source_name:e.source_name,source_type:e.source_type,isAttachment:o,isSharePointProxy:i,isFileLike:s});try{let r;if(o){if(!e.url)throw new Error("attachment has no URL");const t={};if("function"==typeof n){const e=await n();e&&(t.Authorization=`Bearer ${e}`)}r=await fetch(e.url,{method:"GET",headers:t,credentials:"include"})}else if(i){const a=e.url.startsWith("http")?e.url:`${t.replace(/\/$/,"")}${e.url}`,o={};if("function"==typeof n){const e=await n();e&&(o.Authorization=`Bearer ${e}`)}r=await fetch(a,{method:"GET",headers:o,credentials:"include"})}else{const a=`${t.replace(/\/$/,"")}/api/v1/support/file-download`,o={"Content-Type":"application/json"};if("function"==typeof n){const e=await n();e&&(o.Authorization=`Bearer ${e}`)}r=await fetch(a,{method:"POST",headers:o,credentials:"include",body:JSON.stringify({source_id:e.source_id||e.sourceid,file_name:e.url||"",source_name:e.source_name||""})})}if(!r.ok){const e=await r.json().catch(()=>({}));throw new Error(e.details||e.error||r.statusText)}const a=await r.blob(),s=r.headers.get("content-disposition");let l=e.source_name||"download";if(!o){const e=s&&/filename\*?=(?:UTF-8'')?["']?([^"'\s;]+)["']?/i.exec(s);if(e)try{l=decodeURIComponent(e[1].replace(/\\"/g,'"'))}catch{}}const c=document.createElement("a"),u=URL.createObjectURL(a);c.href=u,c.download=l,document.body.appendChild(c),c.click(),c.remove(),URL.revokeObjectURL(u)}catch(e){console.error("[widget] source download failed:",e)}finally{a(null)}}else console.warn("[widget] citation download skipped: apiBaseUrl missing and source is not an attachment (no fallback URL to fetch). Source:",e)},[t,n]);return{onSourceActivate:o,downloadingKey:r}}({apiBaseUrl:v,getAuthToken:w}),Z=e.useMemo(()=>({sources:t.sources||[],sourcesPreliminary:!!t.sourcesPreliminary,onSourceActivate:K,downloadingKey:X,textColor:V}),[t.sources,t.sourcesPreliminary,K,X,V]);return n.jsx(it.Provider,{value:Z,children:n.jsxs("div",{className:"flex gap-3 flex-row animate-in min-w-0",children:[n.jsx("div",{className:"flex-shrink-0 mt-1",children:n.jsx("div",{className:"w-8 h-8 rounded-full overflow-hidden flex items-center justify-center",style:{backgroundColor:o||"#2563eb"},children:h?n.jsx("div",{className:"w-full h-full bg-white/10 flex items-center justify-center",children:n.jsx("img",{src:h,alt:b||y||"Assistant avatar",className:"object-contain rounded-full",style:{width:"100%",height:"100%"}})}):n.jsx("div",{className:"w-full h-full flex items-center justify-center",style:{fontSize:"18px",fontFamily:u||"Inter",color:A||"#FFFFFF"},children:(b||"A").charAt(0).toUpperCase()})})}),n.jsxs("div",{className:"flex flex-col items-start min-w-0 max-w-[75%]",children:[n.jsx("div",{className:"rounded-2xl px-4 py-2.5 shadow-sm border rounded-tl-sm rtl:rounded-tl-2xl rtl:rounded-tr-sm min-w-0 max-w-full overflow-hidden "+(H?"border-transparent":a?"border-gray-700":"border-gray-200"),style:{backgroundColor:q,color:V,fontFamily:W,fontSize:Y,direction:I?"rtl":"ltr",textAlign:I?"right":"left",...H?{borderColor:`${q}33`}:{}},children:C?n.jsx(ft,{isDark:a,t:T}):n.jsx(n.Fragment,{children:t.requiresDecision&&t.decisionData&&m?n.jsxs("div",{children:[O&&n.jsx("div",{className:"mb-3",children:n.jsx(pt,{content:O,isStreaming:t.isProcessing,isDark:a,isRtl:I,textColor:V,fontFamily:W,fontSize:Y,onButtonClick:S,provideCitations:E})}),n.jsx(gt,{question:t.decisionData.question,options:t.decisionData.options,onDecision:(e,n)=>m(t.decisionData.decisionId,e,n),disabled:!!t.decisionResponse,isDark:a}),t.decisionResponse&&n.jsxs("div",{className:"mt-2 text-xs "+(a?"text-gray-400":"text-gray-500"),children:["Selected: ",t.decisionResponse.selectedOption]})]}):O?n.jsx(n.Fragment,{children:n.jsx(pt,{content:O,isStreaming:t.isProcessing,isDark:a,isRtl:I,textColor:V,fontFamily:W,fontSize:Y,onButtonClick:S,provideCitations:E})}):null})}),n.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5 px-1",children:[n.jsx("p",{className:"text-xs leading-none "+(a?"text-gray-400":"text-gray-500"),dir:"auto",children:r(t.timestamp)}),!C&&!t.isProcessing&&O&&n.jsx(mt,{content:O,isDark:a}),!1!==x&&k&&!C&&!t.isProcessing&&O&&"welcome"!==t.type&&!t.isWelcome&&n.jsxs("div",{className:"flex items-center gap-0.5 ms-0.5",children:[n.jsx("button",{type:"button",onClick:()=>B("like"),className:"p-0.5 rounded transition-colors "+("like"===N||"like"===L?"text-green-500":a?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":"Like",children:n.jsx(Ye,{className:"w-3 h-3"})}),n.jsx("button",{type:"button",onClick:()=>B("dislike"),className:"p-0.5 rounded transition-colors "+("dislike"===N||"dislike"===L?"text-red-500":a?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":"Dislike",children:n.jsx(We,{className:"w-3 h-3"})})]})]}),R&&"dislike"===L&&n.jsxs("div",{className:"mt-2 w-full rounded-xl border p-3 shadow "+(a?"bg-gray-800 border-gray-700":"bg-white border-gray-200"),style:{direction:g?"rtl":"ltr"},children:[n.jsx("textarea",{ref:F,value:M,onChange:e=>j(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key?(e.preventDefault(),U()):"Escape"===e.key&&(e.preventDefault(),z())},placeholder:T("feedbackPlaceholder"),"aria-label":T("feedbackPlaceholder"),rows:2,className:"w-full resize-none rounded-lg border px-2 py-1.5 text-xs focus:outline-none focus:ring-1 "+(a?"bg-gray-900 border-gray-700 text-gray-100 placeholder-gray-500 focus:ring-gray-600":"bg-white border-gray-200 text-gray-900 placeholder-gray-400 focus:ring-gray-300"),style:{fontFamily:W,textAlign:g?"right":"left"}}),n.jsxs("div",{className:"flex items-center justify-end gap-1.5 mt-1.5",children:[n.jsx("button",{type:"button",onClick:z,className:"text-xs px-2 py-1 rounded transition-colors "+(a?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"),style:{border:"none",background:"transparent",cursor:"pointer"},children:T("cancel")}),n.jsx("button",{type:"button",onClick:U,className:"text-xs px-2.5 py-1 rounded text-white transition-opacity hover:opacity-90",style:{backgroundColor:o||"#2563eb",border:"none",cursor:"pointer"},children:T("submit")})]})]})]})]})})},bt=({message:e,formatTime:t,userMessageBoxColor:r,primaryColor:a,resolvedUserMessageColor:o,textColor:i,userTextColor:s,fontFamily:l,userMessageBubbleFontFamily:c,userMessageBubbleFontSize:u,fontSize:d,isDark:p,isRtl:f,t:g,onRetryMessage:m})=>{const h=null!=o?o:null!=r?r:null!=a?a:"#2563eb",b=null!=s?s:null!=i?i:"#FFFFFF",y=null!=c?c:null!=l?l:"Inter",v=null!=u?u:null!=d?d:"14px",w=$("string"==typeof e?.content?e.content:"",f);nt(y);const S=Array.isArray(e.attachments)?e.attachments:[];return n.jsx("div",{className:"flex gap-3 flex-row-reverse animate-in",children:n.jsxs("div",{className:"flex flex-col items-end max-w-[75%]",children:[S.length>0&&n.jsx("div",{className:"mb-1.5 flex flex-wrap justify-end gap-1.5",children:S.map((e,t)=>String(e.mimeType||"").startsWith("image/")&&e.url?n.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block rounded-md overflow-hidden",style:{maxWidth:160},title:e.filename,children:n.jsx("img",{src:e.url,alt:e.filename||"attachment",style:{maxWidth:160,maxHeight:160,display:"block"}})},e.storageKey||t):n.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs",style:{backgroundColor:p?"#1f2937":"#f3f4f6",color:p?"#e5e7eb":"#374151",border:"1px solid "+(p?"#374151":"#e5e7eb"),maxWidth:200},title:e.filename,children:[n.jsx(Me,{size:12}),n.jsx("span",{className:"truncate",style:{maxWidth:140,direction:"ltr"},children:e.filename})]},e.storageKey||t))}),e.content&&""!==e.content.trim()&&n.jsx("div",{className:"rounded-2xl px-4 py-2.5 shadow-lg "+(w?"rounded-tl-sm":"rounded-tr-sm"),dir:"auto",style:{background:`linear-gradient(135deg, ${h} 0%, ${h}dd 100%)`,fontFamily:y,direction:w?"rtl":"ltr",textAlign:w?"right":"left"},children:n.jsx("p",{className:"whitespace-pre-wrap break-words",dir:"auto",style:{color:b,fontFamily:y,fontSize:v,lineHeight:"1.5",textAlign:w?"right":"left",overflowWrap:"break-word",margin:0,padding:0},children:e.content})}),n.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5 px-1",children:[n.jsx("p",{className:"text-xs leading-none "+(p?"text-gray-400":"text-gray-500"),dir:"auto",children:t(e.timestamp)}),e.content&&""!==e.content.trim()&&n.jsx(mt,{content:e.content,isDark:p})]}),"failed"===e.status&&n.jsxs("div",{className:"flex items-center gap-1.5 mt-1 px-1","data-testid":"message-failed-state",children:[n.jsx("span",{className:"text-xs leading-none",style:{color:"#dc2626"},dir:"auto",children:g("messageNotDelivered")}),"function"==typeof m&&n.jsx("button",{type:"button",onClick:()=>m(e),className:"text-xs leading-none font-medium underline",style:{color:"#dc2626"},dir:"auto",children:g("retrySend")})]})]})})},yt=({message:t,isDark:r,primaryColor:a,agentMessageBubbleColor:o,userMessageBoxColor:i,resolvedUserMessageColor:s,resolvedAgentBubbleColor:l,textColor:c,assistantTextColor:u,userTextColor:d,fontFamily:p,agentMessageBubbleFontFamily:f,agentMessageBubbleFontSize:g,userMessageBubbleFontFamily:m,userMessageBubbleFontSize:h,fontSize:b,formatTime:y,isRtl:v,onDecision:w,companyLogo:S,conciergeName:x,companyName:E,apiBaseUrl:k,getAuthToken:A,onPromptSuggestionClick:T,allowFeedback:O,provideCitations:C,onFeedback:I,headerTextColor:N,onRetryMessage:_,defaultLanguage:R="en"})=>{const P=e.useMemo(()=>G(R),[R]);return t?"user"===t.role?n.jsx(bt,{message:t,formatTime:y,userMessageBoxColor:i,primaryColor:a,resolvedUserMessageColor:s,textColor:c,userTextColor:d,fontFamily:p,userMessageBubbleFontFamily:m,userMessageBubbleFontSize:h,fontSize:b,isDark:r,isRtl:v,t:P,onRetryMessage:_}):n.jsx(ht,{message:t,formatTime:y,isDark:r,primaryColor:a,agentMessageBubbleColor:o,resolvedAgentBubbleColor:l,textColor:c,assistantTextColor:u,fontFamily:p,agentMessageBubbleFontFamily:f,agentMessageBubbleFontSize:g,fontSize:b,isRtl:v,onDecision:w,companyLogo:S,conciergeName:x,companyName:E,apiBaseUrl:k,getAuthToken:A,onPromptSuggestionClick:T,allowFeedback:O,provideCitations:C,onFeedback:I,headerTextColor:N,t:P}):null};var vt=e.memo(yt);const wt=(e,t,n)=>Number.isNaN(e)?t:Math.min(Math.max(e,t),n),St=e=>{if(!e)return null;const t=(e=>e?.trim().toLowerCase()??"")(e),n=(e=>{const t=e.match(/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i);if(!t)return null;let n=t[1];3===n.length&&(n=n.split("").map(e=>`${e}${e}`).join(""));const r=parseInt(n.slice(0,2),16),a=parseInt(n.slice(2,4),16),o=parseInt(n.slice(4,6),16);return[r,a,o].some(e=>Number.isNaN(e))?null:{r:r,g:a,b:o}})(t);if(n)return n;const r=(e=>{const t=e.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*(\d*\.?\d+))?\s*\)$/i);return t?{r:wt(Number.parseInt(t[1],10),0,255),g:wt(Number.parseInt(t[2],10),0,255),b:wt(Number.parseInt(t[3],10),0,255)}:null})(t);return r||null},xt=({r:e,g:t,b:n})=>{const r=e=>{const t=wt(Math.round(e),0,255).toString(16);return 1===t.length?`0${t}`:t};return`#${r(e)}${r(t)}${r(n)}`},Et=(e,t,n)=>{const r=wt(n,0,1);return{r:Math.round(e.r+(t.r-e.r)*r),g:Math.round(e.g+(t.g-e.g)*r),b:Math.round(e.b+(t.b-e.b)*r)}},kt=(e,t)=>{const n=wt(t,0,1);return`rgba(${wt(Math.round(e.r),0,255)}, ${wt(Math.round(e.g),0,255)}, ${wt(Math.round(e.b),0,255)}, ${n})`},At={background:"#f8fafc",hoverBackground:"#f1f5f9",border:"#e2e8f0",hoverBorder:"#cbd5f5",shadow:"0 4px 12px rgba(15, 23, 42, 0.08)",hoverShadow:"0 6px 20px rgba(15, 23, 42, 0.14)"},Tt={background:"#1f2937",hoverBackground:"#27364a",border:"#334155",hoverBorder:"#3b4c63",shadow:"0 4px 12px rgba(15, 23, 42, 0.45)",hoverShadow:"0 6px 20px rgba(15, 23, 42, 0.55)"},Ot=(e,t)=>{const n=St(e);if(!n)return(e=>e?Tt:At)(t);const r=(({r:e,g:t,b:n})=>{const r=[e,t,n].map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*r[0]+.7152*r[1]+.0722*r[2]})(n),a=St("#0f172a")??{r:15,g:23,b:42},o=St(t?"#f8fafc":"#f9fafb")??{r:249,g:250,b:251},i=St(t?"#334155":"#e2e8f0")??{r:226,g:232,b:240};let s,l;if(r>=.6){const e=t?.5:.7,r=Math.min(1,e+.15);s=Et(n,a,e),l=Et(n,a,r)}else if(r<=.35){const e=t?.9:.8,r=Math.min(1,e+(t?.05:.12));s=Et(n,o,e),l=Et(n,o,r)}else{const e=t?.45:.6,r=Math.min(1,e+.1);s=Et(n,i,e),l=Et(n,i,r)}const c=Et(n,s,.65),u=Et(n,l,.7),d=`0 4px 12px ${kt(n,t?.28:.12)}`,p=`0 6px 20px ${kt(n,t?.35:.18)}`;return{background:xt(s),hoverBackground:xt(l),border:xt(c),hoverBorder:xt(u),shadow:d,hoverShadow:p}},Ct=({questions:t,isDark:r,palette:a,resolvedTextColor:o,fontFamily:i,fontSize:s,isRtl:l,onQuestionClick:c,applyHoverState:u,headingLabel:d})=>{const p=e.useRef(null),[f,g]=e.useState(!1),[m,h]=e.useState(!1),b=e.useCallback(()=>{const e=p.current;if(!e)return;const{scrollLeft:t,scrollWidth:n,clientWidth:r}=e;g(Math.abs(t)>1),h(Math.abs(t)+r<n-1)},[]);e.useEffect(()=>{b();const e=p.current;if(!e)return;const t=new ResizeObserver(b);return t.observe(e),()=>t.disconnect()},[b,t]);const y=e.useCallback(e=>{const t=p.current;if(!t)return;const n="left"===e?-150:150;t.scrollBy({left:l?-n:n,behavior:"smooth"})},[l]),v=r?"rgba(31,41,55,0.85)":"rgba(255,255,255,0.85)",w=r?"#e5e7eb":"#374151",S=r?"#4b5563":"#d1d5db";return n.jsxs("div",{className:"px-4 py-4 border-t "+(r?"border-gray-700/50":"border-gray-200/60"),children:[n.jsxs("div",{className:"text-xs mb-3 font-semibold tracking-wide uppercase "+(r?"text-gray-400":"text-gray-500"),children:[d||"Quick questions",":"]}),n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx("button",{onClick:()=>y("left"),disabled:!f,"aria-label":"Scroll left",className:"flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full shadow-sm transition-all duration-200 hover:shadow-md active:scale-95",style:{backgroundColor:v,border:`1px solid ${S}`,color:w,backdropFilter:"blur(4px)",opacity:f?1:.35,cursor:f?"pointer":"default"},children:n.jsx(Ce,{size:16})}),n.jsx("div",{ref:p,onScroll:b,className:"flex-1 flex gap-3 overflow-x-auto pb-2",style:{scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"},children:t.map((e,t)=>{const r=$(e,l);return n.jsxs("button",{onClick:()=>c?.(e),className:"group relative text-sm px-5 py-2.5 rounded-full font-medium transition-all duration-300 hover:scale-105 active:scale-95 whitespace-nowrap flex-shrink-0 overflow-hidden backdrop-blur-sm "+(r?"text-right":"text-left"),style:{direction:r?"rtl":"ltr",backgroundColor:a.background,border:`1.5px solid ${a.border}`,boxShadow:a.shadow},onMouseEnter:e=>{u(e.currentTarget,!0),e.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:e=>{u(e.currentTarget,!1),e.currentTarget.style.transform="translateY(0)"},children:[n.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-white/0 via-white/5 to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-xl"}),n.jsx("span",{className:"relative z-10",style:{direction:r?"rtl":"ltr",color:o,fontFamily:i,fontSize:s,textAlign:r?"right":"left"},children:e})]},t)})}),n.jsx("button",{onClick:()=>y("right"),disabled:!m,"aria-label":"Scroll right",className:"flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full shadow-sm transition-all duration-200 hover:shadow-md active:scale-95",style:{backgroundColor:v,border:`1px solid ${S}`,color:w,backdropFilter:"blur(4px)",opacity:m?1:.35,cursor:m?"pointer":"default"},children:n.jsx(Ie,{size:16})})]})]})},It=({questions:t=[],isDark:r=!1,primaryColor:a="#2563eb",onQuestionClick:o,isTyping:i=!1,layout:s="vertical",fontFamily:l="Inter",fontSize:c="14px",textColor:u,isRtl:d=!1,questionTextColor:p,questionBoxColor:f,headingLabel:g})=>{if(!t.length||i)return null;const m=p??u??(r?"#f3f4f6":"#111827"),h=e.useMemo(()=>Ot(m,r),[m,r]),b=(e,t)=>{e.style.backgroundColor=t?h.hoverBackground:h.background,e.style.borderColor=t?h.hoverBorder:h.border,e.style.boxShadow=t?h.hoverShadow:h.shadow};return"horizontal"===s?n.jsx(Ct,{questions:t,isDark:r,palette:h,resolvedTextColor:m,fontFamily:l,fontSize:c,isRtl:d,onQuestionClick:o,applyHoverState:b,headingLabel:g}):n.jsxs("div",{style:{paddingInlineStart:"50px"},children:[g?n.jsx("div",{className:"mb-2",style:{color:r?"#9ca3af":"#6b7280",fontFamily:l,fontSize:`calc(${c} - 1px)`},children:g}):null,n.jsx("div",{className:"flex flex-wrap gap-2",children:t.map((e,t)=>{const i=$(e,d);return n.jsx("button",{onClick:()=>o?.(e),className:"transition-all duration-200 active:scale-[0.97]",style:{direction:i?"rtl":"ltr",fontFamily:l,fontSize:c,color:a,backgroundColor:r?"transparent":"#ffffff",border:`1.5px solid ${a}`,borderRadius:"9999px",padding:"5px 14px",fontWeight:500,lineHeight:"1.4",whiteSpace:"normal",textAlign:i?"right":"left"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=`${a}14`},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=r?"transparent":"#ffffff"},children:e},t)})})]})},Nt=({active:t=!1,processing:r=!1,deviceId:a,barWidth:o=3,barGap:i=1,barRadius:s=1.5,barColor:l,fadeEdges:c=!0,fadeWidth:u=24,barHeight:d=4,height:p=64,sensitivity:f=1,smoothingTimeConstant:g=.8,fftSize:m=256,historySize:h=60,updateRate:b=30,mode:y="static",onError:v,onStreamReady:w,onStreamEnd:S,className:x,...E})=>{const k=e.useRef(null),A=e.useRef(null),T=e.useRef([]),O=e.useRef(null),C=e.useRef(null),I=e.useRef(null),N=e.useRef(0),_=e.useRef(0),R=e.useRef(null),P=e.useRef([]),L=e.useRef(0),D=e.useRef([]),M=e.useRef(!0),j=e.useRef(null),F=e.useRef(0),B="number"==typeof p?`${p}px`:p;return e.useEffect(()=>{const e=k.current,t=A.current;if(!e||!t)return;const n=new ResizeObserver(()=>{const n=t.getBoundingClientRect(),r=window.devicePixelRatio||1;e.width=n.width*r,e.height=n.height*r,e.style.width=`${n.width}px`,e.style.height=`${n.height}px`;const a=e.getContext("2d");a&&a.scale(r,r),j.current=null,F.current=n.width,M.current=!0});return n.observe(t),()=>n.disconnect()},[]),e.useEffect(()=>{if(r&&!t){let e=0;L.current=0;const t=()=>{e+=.03,L.current=Math.min(1,L.current+.02);const n=[],r=Math.floor((A.current?.getBoundingClientRect().width||200)/(o+i));if("static"===y){const t=Math.floor(r/2);for(let a=0;a<r;a++){const r=(a-t)/t,o=1-.4*Math.abs(r),i=(.2+(.25*Math.sin(1.5*e+3*r)+.2*Math.sin(.8*e-2*r)+.15*Math.cos(2*e+r)))*o;let s=i;if(P.current.length>0&&L.current<1){const e=Math.min(a,P.current.length-1);s=(P.current[e]||0)*(1-L.current)+i*L.current}n.push(Math.max(.05,Math.min(1,s)))}}else for(let t=0;t<r;t++){const a=(t-r/2)/(r/2),o=1-.4*Math.abs(a),i=(.2+(.25*Math.sin(1.5*e+.15*t)+.2*Math.sin(.8*e-.1*t)+.15*Math.cos(2*e+.05*t)))*o;let s=i;if(P.current.length>0&&L.current<1){const e=Math.floor(t/r*P.current.length);s=(P.current[e]||0)*(1-L.current)+i*L.current}n.push(Math.max(.05,Math.min(1,s)))}"static"===y?D.current=n:T.current=n,M.current=!0,R.current=requestAnimationFrame(t)};return t(),()=>{R.current&&cancelAnimationFrame(R.current)}}if(!t&&!r){if("static"===y?D.current.length>0:T.current.length>0){let e=0;const t=()=>{e+=.03,e<1?("static"===y?D.current=D.current.map(t=>t*(1-e)):T.current=T.current.map(t=>t*(1-e)),M.current=!0,requestAnimationFrame(t)):"static"===y?D.current=[]:T.current=[]};t()}}},[r,t,o,i,y]),e.useEffect(()=>{if(!t)return I.current&&(I.current.getTracks().forEach(e=>e.stop()),I.current=null,S?.()),C.current&&"closed"!==C.current.state&&(C.current.close(),C.current=null),void(N.current&&(cancelAnimationFrame(N.current),N.current=0));return(async()=>{try{const e=await navigator.mediaDevices.getUserMedia({audio:a?{deviceId:{exact:a},echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});I.current=e,w?.(e);const t=new(window.AudioContext||window.webkitAudioContext),n=t.createAnalyser();n.fftSize=m,n.smoothingTimeConstant=g;t.createMediaStreamSource(e).connect(n),C.current=t,O.current=n,T.current=[]}catch(e){v?.(e)}})(),()=>{I.current&&(I.current.getTracks().forEach(e=>e.stop()),I.current=null,S?.()),C.current&&"closed"!==C.current.state&&(C.current.close(),C.current=null),N.current&&(cancelAnimationFrame(N.current),N.current=0)}},[t,a,m,g,v,w,S]),e.useEffect(()=>{const e=k.current;if(!e)return;const n=e.getContext("2d");if(!n)return;let a;const p=g=>{const m=e.getBoundingClientRect();if(t&&g-_.current>b&&(_.current=g,O.current)){const e=new Uint8Array(O.current.frequencyBinCount);if(O.current.getByteFrequencyData(e),"static"===y){const t=Math.floor(.05*e.length),n=Math.floor(.4*e.length),r=e.slice(t,n),a=Math.floor(m.width/(o+i)),s=Math.floor(a/2),l=[];for(let e=s-1;e>=0;e--){const t=Math.floor(e/s*r.length),n=Math.min(1,r[t]/255*f);l.push(Math.max(.05,n))}for(let e=0;e<s;e++){const t=Math.floor(e/s*r.length),n=Math.min(1,r[t]/255*f);l.push(Math.max(.05,n))}D.current=l,P.current=l}else{let t=0;const n=Math.floor(.05*e.length),r=Math.floor(.4*e.length),a=e.slice(n,r);for(let e=0;e<a.length;e++)t+=a[e];const o=t/a.length/255*f;T.current.push(Math.min(1,Math.max(.05,o))),P.current=[...T.current],T.current.length>h&&T.current.shift()}M.current=!0}if(!M.current&&!t)return void(a=requestAnimationFrame(p));M.current=t,n.clearRect(0,0,m.width,m.height);const v=l||getComputedStyle(e).color||"#000",w=o+i,S=Math.floor(m.width/w),x=m.height/2;if("static"===y){const e=r||t||D.current.length>0?D.current:[];for(let t=0;t<S&&t<e.length;t++){const r=e[t]||.1,a=t*w,i=Math.max(d,r*m.height*.8),l=x-i/2;n.fillStyle=v,n.globalAlpha=.4+.6*r,s>0?(n.beginPath(),n.roundRect(a,l,o,i,s),n.fill()):n.fillRect(a,l,o,i)}}else for(let e=0;e<S&&e<T.current.length;e++){const t=T.current.length-1-e,r=T.current[t]||.1,a=m.width-(e+1)*w,i=Math.max(d,r*m.height*.8),l=x-i/2;n.fillStyle=v,n.globalAlpha=.4+.6*r,s>0?(n.beginPath(),n.roundRect(a,l,o,i,s),n.fill()):n.fillRect(a,l,o,i)}if(c&&u>0&&m.width>0){if(!j.current||F.current!==m.width){const e=n.createLinearGradient(0,0,m.width,0),t=Math.min(.3,u/m.width);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(t,"rgba(255,255,255,0)"),e.addColorStop(1-t,"rgba(255,255,255,0)"),e.addColorStop(1,"rgba(255,255,255,1)"),j.current=e,F.current=m.width}n.globalCompositeOperation="destination-out",n.fillStyle=j.current,n.fillRect(0,0,m.width,m.height),n.globalCompositeOperation="source-over"}n.globalAlpha=1,a=requestAnimationFrame(p)};return a=requestAnimationFrame(p),()=>{a&&cancelAnimationFrame(a)}},[t,r,f,b,h,o,d,i,s,l,c,u,y]),n.jsxs("div",{className:X("relative h-full w-full",x),ref:A,style:{height:B},"aria-label":t?"Live audio waveform":r?"Processing audio":"Audio waveform idle",role:"img",...E,children:[!t&&!r&&n.jsx("div",{className:"border-muted-foreground/20 absolute top-1/2 right-0 left-0 -translate-y-1/2 border-t-2 border-dotted"}),n.jsx("canvas",{className:"block h-full w-full",ref:k,"aria-hidden":"true"})]})},_t=({messages:t=[],isDark:r,primaryColor:a,isLoading:o,agentMessageBubbleColor:i,userMessageBoxColor:s,textColor:l,assistantTextColor:c,userTextColor:u,fontFamily:d,agentMessageBubbleFontFamily:p,agentMessageBubbleFontSize:f,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:m,fontSize:h,formatTime:y,isRtl:v=!1,defaultLanguage:w="en",quickQuestions:S=[],shouldShowQuickQuestions:x=!1,onQuickQuestion:E,quickQuestionsLayout:k="vertical",onDecision:A,disclaimerEnabled:T=!1,disclaimerText:O,disclaimerPosition:C="top",disclaimerLinkUrl:I,disclaimerLinkLabel:N,resolvedAgentBubbleColor:_,resolvedUserMessageColor:R,resolvedTextColor:P,isVoiceSessionActive:L=!1,voiceStatus:D="idle",messagesContainerRef:M,companyLogo:j,chatbotAvatarEnabled:F,chatbotAvatar:B,conciergeName:U,companyName:z,apiBaseUrl:G,getAuthToken:q,onPromptSuggestionClick:H,conversationResetKey:V,allowFeedback:W,provideCitations:Y,onFeedback:X,headerTextColor:Z,onRetryMessage:Q,beforePromptsSlot:J=null,promptsSlot:ee=null,quickQuestionsHeadingLabel:te})=>{const ne=e.useRef(null),re=e.useRef(!0),ae=e.useRef(!1),oe=e.useMemo(()=>t.map(e=>`${e.id}:${e.content?.length??0}:${e.isProcessing?1:0}`).join("|"),[t]),ie=e.useCallback(()=>{const e=M?.current;if(!e)return;const t=e.scrollHeight-e.scrollTop-e.clientHeight;re.current=t<160},[M]);e.useEffect(()=>{const e=M?.current;if(e)return e.addEventListener("scroll",ie,{passive:!0}),ie(),()=>{e.removeEventListener("scroll",ie)}},[ie,M]),e.useEffect(()=>{V&&(re.current=!0,ae.current=!1)},[V]),e.useEffect(()=>{if(ae.current||0===t.length||"undefined"==typeof window)return;ae.current=!0;let e,n=!1;const r=window.requestAnimationFrame(()=>{n||(e=window.requestAnimationFrame(()=>{n||(ne.current?.scrollIntoView({behavior:"instant",block:"end"}),re.current=!0)}))});return()=>{n=!0,window.cancelAnimationFrame(r),window.cancelAnimationFrame(e)}},[0===t.length]),e.useEffect(()=>{if(!re.current)return;if("undefined"==typeof window)return;let e=!1;const t=window.requestAnimationFrame(()=>{e||ne.current?.scrollIntoView({behavior:"smooth",block:"end"})});return()=>{e=!0,window.cancelAnimationFrame(t)}},[oe,o]),e.useEffect(()=>{if(!L||"connected"!==D)return;if("undefined"==typeof window)return;let e=!1;const t=window.requestAnimationFrame(()=>{e||ne.current?.scrollIntoView({behavior:"smooth",block:"end"})});return()=>{e=!0,window.cancelAnimationFrame(t)}},[L,D]);const se=e.useMemo(()=>K(I),[I]),le=e.useMemo(()=>$(O,v),[O,v]);return n.jsxs(n.Fragment,{children:[T&&O&&"top"===C&&n.jsx("div",{className:"flex justify-center",children:n.jsx("div",{className:"rounded-lg px-2 py-1 ",style:{color:r?"#d1d5db":"#6b7280",fontFamily:null!=d?d:"Inter",fontSize:null!=h?`calc(${h} - 2px)`:"12px",direction:le?"rtl":"ltr",textAlign:"center",borderColor:r?"#374151":"#e5e7eb"},children:n.jsxs("p",{className:"leading-relaxed whitespace-pre-wrap break-words inline",dir:le?"rtl":"ltr",style:{color:r?"#d1d5db":"#6b7280",fontFamily:null!=d?d:"Inter",fontSize:null!=h?`calc(${h} - 2px)`:"12px"},children:[O,se&&N&&n.jsx("a",{href:se,target:"_blank",rel:"noopener noreferrer",title:se,style:{color:r?"#93c5fd":"#2563eb",marginInlineStart:"4px",verticalAlign:"middle",display:"inline-flex",alignItems:"center"},children:N})]})})}),t.map(e=>n.jsx(vt,{message:e,isDark:r,primaryColor:a,agentMessageBubbleColor:i,userMessageBoxColor:s,resolvedUserMessageColor:R,resolvedAgentBubbleColor:_,textColor:l,assistantTextColor:c,userTextColor:u,fontFamily:d,agentMessageBubbleFontFamily:p,agentMessageBubbleFontSize:f,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:m,fontSize:h,formatTime:y,isRtl:$(e.content,v),onDecision:A,onPromptSuggestionClick:H,companyLogo:F&&B?B:j,conciergeName:U,companyName:z,apiBaseUrl:G,getAuthToken:q,allowFeedback:W,provideCitations:Y,onFeedback:X,headerTextColor:Z,onRetryMessage:Q,defaultLanguage:w},e.id)),(()=>{const e=t[t.length-1],S=o&&"user"===e?.role,x=t.some(e=>"assistant"===e.role&&(e.isProcessing||!e.content));return S&&!x?n.jsx(vt,{message:b(),isDark:r,primaryColor:a,agentMessageBubbleColor:i,resolvedAgentBubbleColor:_,userMessageBoxColor:s,textColor:l,assistantTextColor:c,userTextColor:u,fontFamily:d,agentMessageBubbleFontFamily:p,agentMessageBubbleFontSize:f,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:m,fontSize:h,formatTime:y,isRtl:v,onDecision:A,companyLogo:F&&B?B:j,conciergeName:U,companyName:z,apiBaseUrl:G,getAuthToken:q,headerTextColor:Z,defaultLanguage:w},"skeleton-waiting"):null})(),J,ee?n.jsx("div",{className:"pt-1",children:ee}):x&&S.length>0&&n.jsx("div",{className:"pt-1",children:n.jsx(It,{questions:S,isDark:r,primaryColor:a,onQuestionClick:E,isTyping:o,layout:k,fontFamily:d,fontSize:h,textColor:l,isRtl:v,questionTextColor:c,questionBoxColor:i,headingLabel:te})}),L&&"connected"===D&&!o&&n.jsx("div",{className:"flex gap-3 flex-row-reverse animate-in",children:n.jsx("div",{className:"flex flex-col items-end max-w-[75%] w-full",children:n.jsxs("div",{className:"rounded-2xl px-4 py-2.5 shadow-lg rounded-tr-sm w-full",style:{background:`linear-gradient(135deg, ${R||a||"#2563eb"} 0%, ${R||a||"#2563eb"}dd 100%)`,width:"100px"},children:[n.jsx("span",{className:"sr-only",children:"Listening for voice input"}),n.jsx(Nt,{active:!0,barWidth:2,barHeight:4,barGap:2,barColor:u||P||"#FFFFFF",height:20,fadeEdges:!0,className:"min-w-[60px]","aria-hidden":"true"})]})})}),n.jsx("div",{ref:ne,className:"h-px"})]})};function Rt(e,t){return String(e||"").replace(/\/+$/,"")+(t.startsWith("/")?t:`/${t}`)}function Pt({apiEndpoint:e,conversationId:t,size:n,authHeader:r}){fetch(Rt(e,"/api/v1/chat-attachments/release"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversationId:t,size:n})}).catch(()=>{})}function Lt({orgId:t,conversationId:n,config:r,apiEndpoint:a,authHeader:o,onError:i}){const[s,l]=e.useState([]),c=e.useRef(new Map),u=e.useRef(0),d=e.useRef(s);d.current=s;const p=e.useRef({conversationId:n,bytes:0});p.current.conversationId!==n&&(p.current={conversationId:n,bytes:0});const f=e.useCallback(()=>(u.current+=1,`att-${Date.now()}-${u.current}`),[]),g=e.useCallback((e,t)=>{l(n=>n.map(n=>n.id===e?{...n,...t}:n))},[]),m=e.useCallback((e,t,n)=>{const r={status:"error",error:{code:t,message:n}};l(t=>{const n=t.map(t=>t.id===e?{...t,...r}:t),a=n.find(t=>t.id===e);return a&&i&&i(a),n})},[i]),h=e.useCallback((e,t)=>{if(!r?.fileUploadEnabled)return{ok:!1,code:"feature_disabled",message:"File uploads are not enabled for this organization."};if(t>=r.fileUploadMaxFiles)return{ok:!1,code:"too_many_files",message:`Max ${r.fileUploadMaxFiles} files per message.`};const n=1024*r.fileUploadMaxSizeMB*1024;if(p.current.bytes+e.size>n){return{ok:!1,code:"size_exceeded",message:`This conversation has already used ${(p.current.bytes/1048576).toFixed(1)} MB of its ${r.fileUploadMaxSizeMB} MB upload limit - this file won't fit.`}}const a=(e.type||"").toLowerCase(),o=new Set((r.fileUploadAllowedMimes||[]).map(e=>String(e).toLowerCase()));return o.size>0&&!o.has(a)?{ok:!1,code:"mime_not_allowed",message:`File type "${e.type||"unknown"}" is not allowed.`}:{ok:!0}},[r]),b=e.useCallback(async(e,t)=>{let r;try{r=await fetch(Rt(a,"/api/v1/chat-attachments/presign"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...o?{Authorization:o}:{}},body:JSON.stringify({filename:t.name,mimeType:t.type,size:t.size,conversationId:n})})}catch(n){return p.current.bytes=Math.max(0,p.current.bytes-t.size),void m(e,"network","Network error while requesting upload.")}if(!r.ok){let n="Upload rejected by the server.",a="unknown";try{const e=await r.json();e?.error&&(n=e.error),e?.code&&(a=function(e){switch(e){case"feature_disabled":case"size_exceeded":case"mime_not_allowed":case"storage_unavailable":return e;default:return"unknown"}}(e.code))}catch{}return p.current.bytes=Math.max(0,p.current.bytes-t.size),void m(e,a,n)}let i=0;const s=()=>{i>0&&(Pt({apiEndpoint:a,conversationId:n,size:i,authHeader:o}),i=0,g(e,{reservedBytes:0}))},l=()=>{p.current.bytes=Math.max(0,p.current.bytes-t.size)};let u;try{u=await r.json()}catch{return Pt({apiEndpoint:a,conversationId:n,size:t.size,authHeader:o}),l(),g(e,{reservedBytes:0}),void m(e,"unknown","Malformed presign response.")}let d,f;("boolean"==typeof u.reserved?u.reserved:!u.useMultipart)&&(i=t.size,g(e,{reservedBytes:t.size}));try{if(u.useMultipart){const r=await function({url:e,file:t,conversationId:n,authHeader:r,onProgress:a,registerXhr:o}){return new Promise((r,i)=>{const s=new XMLHttpRequest;o(s),s.open("POST",e,!0),s.withCredentials=!0;const l=new FormData;l.append("conversationId",n),l.append("file",t,t.name),s.upload.onprogress=e=>{e.lengthComputable&&a(Math.round(e.loaded/e.total*100))},s.onload=()=>{if(s.status>=200&&s.status<300)try{const e=JSON.parse(s.responseText);r({url:"string"==typeof e?.url?e.url:void 0,storageKey:"string"==typeof e?.storageKey?e.storageKey:void 0})}catch{r({})}else i(new Error(`upload_status_${s.status}`))},s.onerror=()=>i(new Error("network")),s.onabort=()=>i({aborted:!0}),s.send(l)})}({url:Rt(a,"/api/v1/chat-attachments/multipart"),file:t,conversationId:n,authHeader:o,onProgress:t=>g(e,{progress:t}),registerXhr:t=>c.current.set(e,t)});d=r.url,f=r.storageKey,i=t.size,g(e,{reservedBytes:t.size})}else{if(!u.uploadUrl)throw new Error("presign_missing_target");{await function({url:e,file:t,onProgress:n,registerXhr:r}){return new Promise((a,o)=>{const i=new XMLHttpRequest;r(i),i.open("PUT",e,!0),i.setRequestHeader("x-ms-blob-type","BlockBlob"),t.type&&i.setRequestHeader("Content-Type",t.type),i.upload.onprogress=e=>{e.lengthComputable&&n(Math.round(e.loaded/e.total*100))},i.onload=()=>{i.status>=200&&i.status<300?a():o(new Error(`upload_status_${i.status}`))},i.onerror=()=>o(new Error("network")),i.onabort=()=>o({aborted:!0}),i.send(t)})}({url:u.uploadUrl,file:t,onProgress:t=>g(e,{progress:t}),registerXhr:t=>c.current.set(e,t)});const n=await async function({apiEndpoint:e,storageKey:t,filename:n,mimeType:r,authHeader:a}){let o;try{o=await fetch(Rt(e,"/api/v1/chat-attachments/confirm"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...a?{Authorization:a}:{}},body:JSON.stringify({storageKey:t,filename:n,mimeType:r})})}catch{return{ok:!1,code:"network",message:"Network error while verifying upload."}}if(o.ok)return{ok:!0};let i="Upload rejected - file content did not match its declared type.",s="content_mismatch";try{const e=await o.json();e?.error&&(i=e.error),"password_protected"===e?.code&&(s="password_protected")}catch{}return{ok:!1,code:s,message:i}}({apiEndpoint:a,storageKey:u.storageKey,filename:t.name,mimeType:t.type,authHeader:o});if(!n.ok)return c.current.delete(e),s(),l(),void m(e,n.code,n.message)}}}catch(t){if(c.current.delete(e),t&&t.aborted)return;return s(),l(),void m(e,"network","Upload failed. Please retry.")}c.current.delete(e),g(e,{status:"ready",progress:100,storageKey:f||u.storageKey,...d?{url:d}:{}})},[a,o,n,m,g]),y=e.useCallback(async e=>{const t=Array.from(e);for(const e of t){const t=d.current.filter(e=>"error"!==e.status).length,n=h(e,t),r=f();if(!n.ok){const t={id:r,filename:e.name,size:e.size,mimeType:e.type,status:"error",error:{code:n.code,message:n.message}};l(e=>(i&&i(t),[...e,t]));continue}const a={id:r,filename:e.name,size:e.size,mimeType:e.type,status:"uploading",progress:0,reservedBytes:0};l(e=>[...e,a]),p.current.bytes+=e.size,b(r,e)}},[h,b,f,i]),v=e.useCallback(e=>{const t=c.current.get(e);t&&(t.abort(),c.current.delete(e));const r=d.current.find(t=>t.id===e);r&&r.reservedBytes>0&&(Pt({apiEndpoint:a,conversationId:n,size:r.reservedBytes,authHeader:o}),p.current.bytes=Math.max(0,p.current.bytes-r.reservedBytes)),l(t=>t.filter(t=>t.id!==e))},[a,o,n]),w=e.useCallback(()=>{for(const e of c.current.values())e.abort();c.current.clear(),l([])},[]),S=e.useMemo(()=>s.some(e=>"validating"===e.status||"uploading"===e.status),[s]),x=e.useCallback(()=>s.filter(e=>"ready"===e.status&&"string"==typeof e.storageKey).map(e=>({filename:e.filename,mimeType:e.mimeType,size:e.size,storageKey:e.storageKey,url:e.url})),[s]);return{attachments:s,addFiles:y,removeAttachment:v,clearAll:w,isBusy:S,toSendPayload:x}}function Dt(e){if(!e||e<1024)return`${e||0} B`;const t=["KB","MB","GB"];let n=e/1024,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r+=1;return`${n.toFixed(n>=10?0:1)} ${t[r]}`}function Mt({attachment:e,onRemove:t,isDark:r}){const a="error"===e.status,o="uploading"===e.status,i="ready"===e.status,s=a?r?"rgba(239,68,68,0.15)":"#fee2e2":r?"#1f2937":"#f3f4f6",l=a?r?"#b91c1c":"#fca5a5":r?"#374151":"#e5e7eb",c=a?r?"#fca5a5":"#b91c1c":r?"#e5e7eb":"#374151",u=a?`${e.filename} - ${e.error?.message||"error"}`:o?`${e.filename} - uploading`:`${e.filename} - ready`;return n.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full pl-2 pr-1 py-1 text-xs",style:{backgroundColor:s,border:`1px solid ${l}`,color:c,maxWidth:240},title:a?e.error?.message:e.filename,"aria-label":u,children:[a?n.jsx(Ne,{size:12,"aria-hidden":"true"}):o?n.jsx(Fe,{size:12,className:"animate-spin","aria-hidden":"true"}):n.jsx(Me,{size:12,"aria-hidden":"true"}),n.jsx("span",{className:"truncate",style:{maxWidth:140,direction:"ltr"},children:e.filename}),i&&n.jsx("span",{className:"opacity-70 text-chip",children:Dt(e.size)}),o&&"number"==typeof e.progress&&n.jsxs("span",{className:"opacity-70 text-chip",children:[e.progress,"%"]}),n.jsx("button",{type:"button",onClick:()=>t(e.id),className:"w-4 h-4 rounded-full inline-flex items-center justify-center",style:{backgroundColor:"transparent",border:"none",color:c,cursor:"pointer"},"aria-label":"Remove attachment",children:n.jsx(Xe,{size:12})})]})}const jt=({suggestions:e,onSuggestionClick:t,promptPrimary:r,promptTextColor:a,promptFontFamily:o,promptFontSize:i,isRtl:s,t:l,questionDisplay:c=!0})=>n.jsx("div",{className:"mb-2 px-5",children:n.jsx("div",{className:"flex flex-col gap-2",role:"group","aria-label":l("suggestedQuestions"),children:e.map((e,l)=>{const u=((e,t=!0)=>{if(!e||"string"==typeof e)return e||"";const n="string"==typeof e.text?e.text:"";if(!t)return n;const r="string"==typeof e.submitText?e.submitText.trim():"";return r&&r!==n?r:n})(e,c),d=$(u,s);return n.jsx("button",{type:"button",onClick:()=>t(e.submitText||e.text||e,e,l),dir:d?"rtl":"ltr",className:"block w-full rounded-2xl px-4 py-2 border-0 transition-transform duration-150 active:scale-[0.99] "+(d?"text-right":"text-left"),style:{direction:d?"rtl":"ltr",textAlign:d?"right":"left",background:`linear-gradient(135deg, ${r} 0%, ${r}dd 100%)`,color:a,fontFamily:o,fontSize:i},children:u},`${e.text||e}-${l}`)})})}),Ft=({onStopGeneration:t,inputValue:a,setInputValue:o,onSend:i,isDark:s,primaryColor:l,isOpen:c,isMinimized:u,isLoading:d,isConversationLoading:p=!1,placeholder:f,textColor:g,fontFamily:m,fontSize:h,isRtl:b=!1,csatVisible:y=!1,enableVoiceInteraction:v=!1,isVoiceSessionActive:w=!1,voiceStatus:S="idle",voiceError:x=null,onVoiceToggle:E,onBidiSubmit:k,disclaimerEnabled:A=!1,disclaimerText:T,disclaimerPosition:O="top",disclaimerLinkUrl:C,disclaimerLinkLabel:I,showPoweredBy:N=!0,onboardingQuestions:_=[],onboardingActive:R=!1,onboardingCompleted:P=!1,userMessageBubbleFontFamily:M,onboardingEnabled:j=!1,userMessageBubbleFontSize:B,userMessageBoxColor:U,resolvedUserMessageColor:z,userTextColor:q,promptSuggestions:H,onPromptSuggestionClick:V,autoPromptQuestionDisplay:W=!0,tagSelectorNode:Y=null,showResolveButton:Z=!1,onResolve:Q,defaultLanguage:J="en",chatFeatures:ee,apiEndpoint:te,organizationId:ne,conversationId:re})=>{const ae=e.useMemo(()=>G(J),[J]),oe=e.useMemo(()=>function(e){const t=F(e),n=D[t]||L;return{beforeBrand:n.poweredByBefore??n.poweredBy??L.poweredByBefore,afterBrand:n.poweredByAfter??""}}(J),[J]),ie=e.useMemo(()=>$(a,b),[a,b]),[se,le]=e.useState(!1),[ce,ue]=e.useState(!1),de=e.useMemo(()=>({fileUploadEnabled:ee?.fileUploadEnabled??!1,fileUploadMaxSizeMB:ee?.fileUploadMaxSizeMB??10,fileUploadMaxFiles:ee?.fileUploadMaxFiles??3,fileUploadAllowedMimes:ee?.fileUploadAllowedMimes??[]}),[ee]),{attachments:pe,addFiles:fe,removeAttachment:ge,clearAll:me,isBusy:he,toSendPayload:be}=Lt({orgId:ne,conversationId:re,config:de,apiEndpoint:te,authHeader:void 0}),ye=e.useRef(null),ve=!!de.fileUploadEnabled&&!!te,we=pe.length>=de.fileUploadMaxFiles,Se=`Max ${de.fileUploadMaxFiles} files per message.`,xe=e.useMemo(()=>de.fileUploadAllowedMimes.length>0?de.fileUploadAllowedMimes.join(","):void 0,[de.fileUploadAllowedMimes]),[Ee,ke]=e.useState({top:0,left:0,placement:"top",arrowOffset:0}),[Te,Oe]=e.useState(!1),Ce=e.useRef(null),Ie=e.useRef(null),Ne=e.useRef(null),_e=e.useRef(null);nt(m),nt(M),e.useEffect(()=>{c&&!u&&Ie.current?.focus()},[c,u]),e.useEffect(()=>{const e=Ie.current;if(e){e.style.height="auto";const t=e.scrollHeight,n=a.trim().length>0?20:48,r=Math.max(n,Math.min(t,120));e.style.height=`${r}px`}},[a]);const Re=e.useCallback(()=>{const e=be();e.length>0?(i(void 0,e),me()):i()},[be,me,i]),Pe=pe.some(e=>"ready"===e.status),Le=!a.trim()&&!Pe||d||p||he,De=s?"#374151":"#e5e7eb",Me=_&&_.length>0,je=y||p||j&&(Me&&!P)||"connecting"===S,Be=y?ae("pleaseSubmitRatingFirst"):Me?R?ae("completeOnboardingToEnableVoice"):P?"":ae("sendMessageToCompleteOnboarding"):"",Ue=()=>{if(!Ne.current)return;const e=Ne.current.getBoundingClientRect(),t=220,n=e.top,r=window.innerHeight-e.bottom;let a="top",o=0,i=0;n>=73?(a="top",o=e.top-60-5-8,i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10)):r>=68?(a="bottom",o=e.bottom+8,i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10)):(a="top",o=Math.max(10,e.top-60-5-8),i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10));return{top:o,left:i,placement:a,arrowOffset:e.left+e.width/2-i}};e.useEffect(()=>{if(ce&&Be){const e=()=>{const e=Ue();ke(e)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}}},[ce,Be]),e.useEffect(()=>()=>{Ce.current&&clearTimeout(Ce.current)},[]);const $e=null!=z?z:null!=U?U:null!=l?l:"#2563eb",He=null!=q?q:null!=g?g:"#FFFFFF",Ve=null!=M?M:null!=m?m:"Inter",We=null!=B?B:null!=h?h:null,Ye=We?`calc(${We} - 2px)`:"12px",Ke=K(C);return n.jsxs("div",{className:"py-4 flex-shrink-0 relative "+(s?"bg-gray-900":"bg-white"),style:{overflow:"visible"},children:[Y||H.length>0&&V&&n.jsx(jt,{suggestions:H,onSuggestionClick:V,questionDisplay:W,promptPrimary:$e,promptTextColor:He,promptFontFamily:Ve,promptFontSize:Ye,isRtl:b,t:ae}),n.jsx("div",{className:"my-4",style:{height:"1px",backgroundColor:De}}),ve&&pe.length>0&&n.jsx("div",{className:"px-5 mb-2 flex flex-wrap gap-1.5",children:pe.map(e=>n.jsx(Mt,{attachment:e,onRemove:ge,isDark:s},e.id))}),n.jsxs("div",{className:"flex items-center px-5 gap-1.5",children:[ve&&n.jsx("input",{ref:ye,type:"file",multiple:!0,accept:xe,"aria-label":ae("uploadFile"),className:"hidden",style:{display:"none"},onChange:e=>{const t=e.target.files;t&&t.length&&!we&&fe(t),e.currentTarget.value=""}}),n.jsxs("div",{className:`flex-1 flex items-center gap-1 px-1 min-h-[48px] ${s?"bg-gray-800":"bg-gray-50"} rounded-2xl transition-all duration-200`,style:{borderStyle:"solid",borderColor:a&&a.trim().length>0?l||"#2563eb":De,borderWidth:a&&a.trim().length>0?"2px":"1px"},children:[ve&&n.jsxs("div",{className:"relative group shrink-0",children:[n.jsx("button",{type:"button",onClick:()=>ye.current&&ye.current.click(),disabled:y||p||d||we,"aria-label":we?Se:"Attach file",title:we?Se:"Attach file",className:`h-8 w-8 rounded-lg flex items-center justify-center transition-colors duration-200 ${s?"text-gray-300 hover:bg-gray-700":"text-gray-500 hover:bg-gray-200"} disabled:opacity-40 disabled:cursor-not-allowed`,style:{border:"none"},children:n.jsx(ze,{className:"w-4 h-4"})}),we&&n.jsx("div",{role:"tooltip",className:"pointer-events-none absolute bottom-full left-1/2 -translate-x-1/2 mb-2 opacity-0 group-hover:opacity-100 transition-opacity px-3 py-1.5 text-xs rounded-lg whitespace-nowrap shadow-lg "+(s?"bg-gray-700 text-gray-100":"bg-gray-800 text-white"),children:Se})]}),n.jsx("div",{className:"relative flex-1 flex items-center min-w-0",children:n.jsx("textarea",{id:"chat-widget-input",ref:Ie,"aria-label":f||ae("typeYourMessage"),value:a,onChange:e=>{o(e.target.value)},onFocus:()=>le(!0),onBlur:()=>le(!1),onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(e.preventDefault(),w&&k&&!Pe)return void k();if(Le)return;Re()}},placeholder:p?ae("agentIsLoading"):f||ae("typeYourMessage"),rows:1,disabled:y||p||d||w&&"connected"!==S,dir:ie?"rtl":"ltr",className:`w-full px-3 bg-transparent rounded-xl leading-normal ${s?"text-gray-100":"text-gray-900"} placeholder-gray-400 resize-none outline-none scrollbar-hide break-words`,style:{height:"auto",maxHeight:"120px",minHeight:"48px",paddingTop:a.trim().length>0?"12px":"0px",paddingBottom:a.trim().length>0?"12px":"0px",lineHeight:a.trim().length>0?"1.4":"48px",fontFamily:M||m||"Inter",fontSize:h||"14px",color:s?"#F3F4F6":"#1F2937",textAlign:ie?"right":"left",direction:ie?"rtl":"ltr",wordSpacing:"0",letterSpacing:"0"}})}),v&&n.jsxs("div",{className:"relative shrink-0",onMouseEnter:()=>{if(je&&Be){Ce.current&&(clearTimeout(Ce.current),Ce.current=null);const e=Ue();ke(e),ue(!0)}},onMouseLeave:()=>{Ce.current&&(clearTimeout(Ce.current),Ce.current=null),ue(!1)},children:[n.jsx("button",{style:{border:"none"},ref:Ne,type:"button",onClick:E,"aria-label":ae(w?"stopVoiceInput":"startVoiceInput"),className:`h-8 w-8 rounded-lg flex items-center justify-center transition-colors duration-200 ${w?"bg-red-500 text-white hover:bg-red-600":s?"text-gray-300 hover:bg-gray-700":"text-gray-500 hover:bg-gray-200"} ${je?"opacity-60 cursor-not-allowed":""}`,disabled:je,children:"connecting"===S?n.jsx(Fe,{className:"w-4 h-4 animate-spin"}):n.jsx(Ae,{className:"w-4 h-4"})}),ce&&Be&&"undefined"!=typeof document&&r.createPortal(n.jsxs("div",{ref:_e,className:"px-3 py-1.5 text-xs shadow-md pointer-events-none",style:{position:"fixed",top:`${Ee.top}px`,left:`${Ee.left}px`,maxWidth:"220px",whiteSpace:"normal",wordWrap:"break-word",minWidth:"180px",zIndex:999999,backgroundColor:s?"#1f2937":"#ffffff",color:s?"#f3f4f6":"#111827",border:s?"1px solid #374151":"1px solid #e5e7eb",borderRadius:"top"===Ee.placement?"6px 6px 6px 6px":"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",overflow:"visible"},children:[n.jsx("div",{className:"text-left leading-relaxed",children:Be}),"top"===Ee.placement&&n.jsxs(n.Fragment,{children:[n.jsx("div",{style:{position:"absolute",top:"100%",left:`${Ee.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:s?"6px solid #374151":"6px solid #e5e7eb",pointerEvents:"none"}}),n.jsx("div",{style:{position:"absolute",top:"100%",left:`${Ee.arrowOffset}px`,transform:"translateX(-50%)",marginTop:"-1px",width:0,height:0,borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:s?"5px solid #1f2937":"5px solid #ffffff",pointerEvents:"none"}})]}),"bottom"===Ee.placement&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"absolute bottom-full",style:{left:`${Ee.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderBottom:s?"5px solid #374151":"5px solid #e5e7eb"}}),n.jsx("div",{className:"absolute bottom-full -mb-px",style:{left:`${Ee.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderBottom:s?"4px solid #1f2937":"4px solid #ffffff"}})]})]}),document.body)]})]}),d&&!w&&"function"==typeof t?n.jsx("button",{onClick:t,className:"h-10 w-10 flex-shrink-0 rounded-xl transition-all duration-200 flex items-center justify-center shadow-md scale-100",style:{backgroundColor:l,color:"white",border:"none"},"aria-label":ae("stopGenerating"),children:n.jsx(qe,{className:"w-3.5 h-3.5",fill:"currentColor"})}):n.jsx("button",{onClick:w&&k&&!Pe?k:Re,disabled:y||Le||w&&"connected"!==S,className:"h-10 w-10 flex-shrink-0 rounded-xl transition-all duration-200 flex items-center justify-center shadow-md disabled:opacity-40 disabled:cursor-not-allowed disabled:shadow-none "+(a.trim()?"scale-100":"scale-95"),style:{backgroundColor:a.trim()?l:s?"#374151":"#e5e7eb",color:a.trim()?"white":"#9ca3af",border:"none"},"aria-label":ae("sendMessage"),children:n.jsx(Ge,{className:"w-4 h-4 transition-transform",style:b?{transform:"rotate(-90deg)"}:void 0})})]}),w&&n.jsxs("p",{"aria-live":"polite",className:`text-xs mt-2 px-5 ${"connected"===S?"text-status-success":"text-gray-500"} flex items-center gap-1`,children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-current inline-flex"}),ae("connected"===S?"voiceSessionLive":"connectingVoice")]}),x&&n.jsx("p",{role:"alert",className:"text-xs mt-1 px-5 text-status-error",children:ae(x)===x?ae("voiceUnavailable"):ae(x)}),A&&T&&"footer"===O&&n.jsxs("p",{className:"text-xs mt-2 px-5 text-center",style:{color:s?"#d1d5db":"#6b7280",fontFamily:m||"Inter",fontSize:h?`calc(${h} - 2px)`:"12px",direction:b?"rtl":"ltr"},dir:b?"rtl":"ltr",children:[T,Ke&&I&&n.jsx("a",{href:Ke,target:"_blank",rel:"noopener noreferrer",title:Ke,style:{color:s?"#93c5fd":"#2563eb",marginInlineStart:"4px",verticalAlign:"middle",display:"inline-flex",alignItems:"center"},children:I})]}),N&&n.jsx("div",{className:"mt-1.5 flex justify-center",children:n.jsx("a",{href:"https://eshal.ai",target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:n.jsxs("span",{dir:"ltr",className:"inline-flex items-center gap-1.5 py-1.5 px-3",children:[oe.beforeBrand&&n.jsx("span",{className:X("font-sans text-[10px] font-medium",s?"text-gray-400":"text-gray-500"),children:oe.beforeBrand}),Te?n.jsx("span",{className:X("font-sans text-[10px] font-semibold",s?"text-gray-300":"text-gray-600"),children:"ESHAL"}):n.jsx("img",{src:s?"data:image/svg+xml,%3csvg width='219' height='54' xmlns='http://www.w3.org/2000/svg' version='1.0'%3e%3cg class='layer'%3e%3ctitle%3eEshal Logo%3c/title%3e%3cg clip-path='url(%23a)' transform='translate(-.708 -1.076)'%3e%3cg clip-path='url(%23b)'%3e%3cpath d='M21.79 54.75h4.5l3.93-.56 4.49-1.4 3.38-1.97 2.81-2.25 2.24-2.81 2.25-3.93 1.13-3.09v-.85l-3.65-1.12h-.57l-1.96 4.5-1.97 3.09-2.81 2.53-3.93 1.96-3.38.85-2.81.28h-2.81l-4.21-.57-3.94-1.4-2.81-1.97-2.25-2.24-1.96-3.38-1.41-4.21-.56-3.37-.28-3.1v-3.65l.56-5.06 1.12-4.21 1.97-3.94 2.53-2.81 2.25-1.68 2.81-1.41 3.37-.84 2.25-.28H26l4.78.84 4.5 2.25 2.53 2.53 1.4 2.53.56 2.53-.28 3.65-1.12 2.25-1.41 1.69-1.4.55-1.13-4.21-1.68-2.81-1.97-1.97-3.09-1.4-1.12-.28h-5.34l-3.09 1.12-2.25 1.69-1.41 1.97-.84 3.09.28 3.08 1.4 2.82 1.97 1.96 2.81 1.41 2.25.56 4.78.28 3.09-.28.84-.28-1.12 3.09-1.69 1.97-2.25.84h-3.65l-2.81-1.12-1.68-1.41-3.38 2.25.56 1.13 1.13 1.4 2.81 1.69 2.81.84h4.78l2.81-.84 2.53-1.69 1.96-2.25L35 34.8l.84-4.5 3.65-2.24 2.53-2.53 1.69-3.09.56-2.25.28-2.81-.56-3.93-1.12-2.82-2.25-3.09-3.09-2.81-4.22-2.25-4.5-1.12-2.52-.28h-4.5l-3.93.56-4.5 1.41-3.38 1.96-3.37 3.1-2.52 3.65-1.97 4.49-1.13 4.78-.28 2.25v9.27l.84 5.06 1.69 4.78 1.69 3.09 2.25 2.81 2.8 2.53 2.82 1.69 5.06 1.68zm1.12-27.54-2.53-.84-1.4-1.12-.84-1.69.28-2.53 1.12-1.4 2.25-1.13H26l2.81 1.41 1.41 1.97.84 2.8v2.25l-1.12.28zm0 0' fill='white'/%3e%3c/g%3e%3c/g%3e%3cpath d='M82.381 38.435v6.48h-27.06V9.965h26.41v6.5h-18.36v7.57h16.22v6.3h-16.22v8.1zm16.432 7.07c-2.77 0-5.44-.37-8.02-1.11-2.57-.75-4.65-1.72-6.22-2.92l2.75-6.09c1.5 1.09 3.28 1.98 5.34 2.64 2.07.67 4.13 1 6.19 1q3.45 0 5.1-1.02t1.65-2.73c0-.83-.33-1.52-.98-2.06-.65-.55-1.48-1-2.5-1.33-1.01-.33-2.39-.7-4.11-1.1-2.67-.63-4.85-1.26-6.55-1.89s-3.15-1.64-4.37-3.04c-1.21-1.41-1.82-3.27-1.82-5.6 0-2.03.55-3.86 1.64-5.51 1.11-1.66 2.76-2.96 4.97-3.92 2.22-.97 4.93-1.46 8.13-1.46 2.22 0 4.4.27 6.53.8s4 1.3 5.59 2.3l-2.5 6.14c-3.23-1.82-6.45-2.74-9.67-2.74-2.27 0-3.95.37-5.03 1.1-1.07.73-1.61 1.69-1.61 2.89q0 1.8 1.86 2.67c1.25.59 3.16 1.16 5.72 1.72 2.66.63 4.85 1.27 6.55 1.9 1.69.63 3.14 1.63 4.36 2.99 1.21 1.37 1.82 3.21 1.82 5.55 0 2-.56 3.82-1.67 5.46q-1.68 2.475-5.01 3.93c-2.23.95-4.95 1.43-8.14 1.43m50.913-35.54v34.95h-8.08v-14.33h-15.88v14.33h-8.09V9.965h8.09v13.78h15.88V9.965zm29.811 27.47h-16.22l-3.1 7.48h-8.29l15.58-34.95h7.98l15.62 34.95h-8.48zm-2.55-6.15-5.55-13.37-5.53 13.37zm16.274-21.32h8.09v28.36h17.52v6.59h-25.61zm0 0' fill='white'/%3e%3c/g%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='219' height='54' xmlns='http://www.w3.org/2000/svg' version='1.0'%3e%3cg class='layer'%3e%3ctitle%3eEshal Logo%3c/title%3e%3cg clip-path='url(%23a)' transform='translate(-.708 -1.076)'%3e%3cg clip-path='url(%23b)'%3e%3cpath d='M21.79 54.75h4.5l3.93-.56 4.49-1.4 3.38-1.97 2.81-2.25 2.24-2.81 2.25-3.93 1.13-3.09v-.85l-3.65-1.12h-.57l-1.96 4.5-1.97 3.09-2.81 2.53-3.93 1.96-3.38.85-2.81.28h-2.81l-4.21-.57-3.94-1.4-2.81-1.97-2.25-2.24-1.96-3.38-1.41-4.21-.56-3.37-.28-3.1v-3.65l.56-5.06 1.12-4.21 1.97-3.94 2.53-2.81 2.25-1.68 2.81-1.41 3.37-.84 2.25-.28H26l4.78.84 4.5 2.25 2.53 2.53 1.4 2.53.56 2.53-.28 3.65-1.12 2.25-1.41 1.69-1.4.55-1.13-4.21-1.68-2.81-1.97-1.97-3.09-1.4-1.12-.28h-5.34l-3.09 1.12-2.25 1.69-1.41 1.97-.84 3.09.28 3.08 1.4 2.82 1.97 1.96 2.81 1.41 2.25.56 4.78.28 3.09-.28.84-.28-1.12 3.09-1.69 1.97-2.25.84h-3.65l-2.81-1.12-1.68-1.41-3.38 2.25.56 1.13 1.13 1.4 2.81 1.69 2.81.84h4.78l2.81-.84 2.53-1.69 1.96-2.25L35 34.8l.84-4.5 3.65-2.24 2.53-2.53 1.69-3.09.56-2.25.28-2.81-.56-3.93-1.12-2.82-2.25-3.09-3.09-2.81-4.22-2.25-4.5-1.12-2.52-.28h-4.5l-3.93.56-4.5 1.41-3.38 1.96-3.37 3.1-2.52 3.65-1.97 4.49-1.13 4.78-.28 2.25v9.27l.84 5.06 1.69 4.78 1.69 3.09 2.25 2.81 2.8 2.53 2.82 1.69 5.06 1.68zm1.12-27.54-2.53-.84-1.4-1.12-.84-1.69.28-2.53 1.12-1.4 2.25-1.13H26l2.81 1.41 1.41 1.97.84 2.8v2.25l-1.12.28zm0 0' fill='black'/%3e%3c/g%3e%3c/g%3e%3cpath d='M82.381 38.435v6.48h-27.06V9.965h26.41v6.5h-18.36v7.57h16.22v6.3h-16.22v8.1zm16.432 7.07c-2.77 0-5.44-.37-8.02-1.11-2.57-.75-4.65-1.72-6.22-2.92l2.75-6.09c1.5 1.09 3.28 1.98 5.34 2.64 2.07.67 4.13 1 6.19 1q3.45 0 5.1-1.02t1.65-2.73c0-.83-.33-1.52-.98-2.06-.65-.55-1.48-1-2.5-1.33-1.01-.33-2.39-.7-4.11-1.1-2.67-.63-4.85-1.26-6.55-1.89s-3.15-1.64-4.37-3.04c-1.21-1.41-1.82-3.27-1.82-5.6 0-2.03.55-3.86 1.64-5.51 1.11-1.66 2.76-2.96 4.97-3.92 2.22-.97 4.93-1.46 8.13-1.46 2.22 0 4.4.27 6.53.8s4 1.3 5.59 2.3l-2.5 6.14c-3.23-1.82-6.45-2.74-9.67-2.74-2.27 0-3.95.37-5.03 1.1-1.07.73-1.61 1.69-1.61 2.89q0 1.8 1.86 2.67c1.25.59 3.16 1.16 5.72 1.72 2.66.63 4.85 1.27 6.55 1.9 1.69.63 3.14 1.63 4.36 2.99 1.21 1.37 1.82 3.21 1.82 5.55 0 2-.56 3.82-1.67 5.46q-1.68 2.475-5.01 3.93c-2.23.95-4.95 1.43-8.14 1.43m50.913-35.54v34.95h-8.08v-14.33h-15.88v14.33h-8.09V9.965h8.09v13.78h15.88V9.965zm29.811 27.47h-16.22l-3.1 7.48h-8.29l15.58-34.95h7.98l15.62 34.95h-8.48zm-2.55-6.15-5.55-13.37-5.53 13.37zm16.274-21.32h8.09v28.36h17.52v6.59h-25.61zm0 0' fill='black'/%3e%3c/g%3e%3c/svg%3e",alt:"ESHAL",className:X("h-3",s?"opacity-60":"opacity-50"),onError:()=>Oe(!0)}),oe.afterBrand&&n.jsx("span",{className:X("font-sans text-[10px] font-medium",s?"text-gray-400":"text-gray-500"),children:oe.afterBrand})]})})})]})},Bt=["sun","mon","tue","wed","thu","fri","sat"];function Ut(e){if(!e||"string"!=typeof e)return null;const t=e.match(/^(\d{1,2}):(\d{2})/);if(!t)return null;const n=parseInt(t[1],10),r=parseInt(t[2],10);return Number.isNaN(n)||Number.isNaN(r)?null:60*n+r}function zt(e,t=new Date,n={}){if(!e||!e.showStatus)return null;const r=n.online||"Online now",a=n.officeOpen||"Online now",o=n.offlineFallback||"Offline";if("officeHours"!==e.statusMode)return{online:!0,label:r};const i=e.officeHours||{},{dayKey:s,minutes:l}=function(e,t){try{const n=new Intl.DateTimeFormat("en-US",{timeZone:e||void 0,weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(t),r=(n.find(e=>"weekday"===e.type)||{}).value||"";let a=parseInt((n.find(e=>"hour"===e.type)||{}).value||"0",10);const o=parseInt((n.find(e=>"minute"===e.type)||{}).value||"0",10);return 24===a&&(a=0),{dayKey:r.slice(0,3).toLowerCase(),minutes:60*a+o}}catch{return{dayKey:Bt[t.getDay()],minutes:60*t.getHours()+t.getMinutes()}}}(i.timezone,t),c=Array.isArray(i.days)?i.days.map(e=>String(e).slice(0,3).toLowerCase()):[],u=Ut(i.open),d=Ut(i.close);if(c.includes(s)&&(null!=u&&null!=d&&(u<=d?l>=u&&l<d:l>=u||l<d))){return{online:!0,label:(i.onlineMessage||"").trim()||a}}return{online:!1,label:(i.offlineMessage||"").trim()||o}}const $t=({conciergeName:t,companyName:r,companyLogo:a,primaryColor:o,isDark:i,isMinimized:s=!1,textColor:l,fontFamily:c,fontSize:u,onToggleTheme:d,onMinimize:p,onClose:f,headerTextBold:g=!1,headerTextItalic:m=!1,headerTextColor:h,headerFontFamily:b,headerFontSize:y,subtitle:v=null,showStatus:w=!1,statusMode:S="always",officeHours:x=null,onRefreshChat:E,onCopyChat:k,defaultLanguage:A="en"})=>{const T=o,O=h||"#FFFFFF",C=b||c||"Inter",I=y||u;nt(C);const N=e.useMemo(()=>G(A),[A]),_=B(A),R=e.useMemo(()=>$(v,_),[v,_]),P=e.useMemo(()=>zt({showStatus:w,statusMode:S,officeHours:x}),[w,S,x]),[L,D]=e.useState(!1),M=e.useRef(null),j=e.useRef(null);e.useEffect(()=>{if(!L)return;const e=e=>{M.current&&!e.composedPath().includes(M.current)&&D(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[L]);const F=e.useRef(!1);e.useEffect(()=>{if(L){F.current=!0;const e=M.current?.querySelector('[role="menuitem"]');e?.focus()}else F.current&&(F.current=!1,j.current?.focus())},[L]);const U=O;return n.jsxs("div",{className:`text-white ${s?"px-4 py-2.5":"px-3 py-4"} flex items-center justify-between relative overflow-visible rounded-t-2xl z-[60]`,style:{background:T,fontFamily:C},children:[n.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 pl-1",children:[n.jsxs("div",{className:"relative w-11 h-11 flex-shrink-0",children:[n.jsx("div",{className:"w-full h-full rounded-full overflow-hidden flex items-center justify-center bg-white/20",children:a?n.jsx("img",{src:a,alt:"Logo",style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},loading:"lazy"}):n.jsx("span",{className:"text-lg font-semibold leading-none",style:{color:U},children:(t||r||"")?.charAt(0)?.toUpperCase()})}),P?n.jsx("span",{title:P.label,className:X("absolute bottom-0 h-3 w-3 rounded-full ring-2 ring-white",_?"left-0":"right-0"),style:{backgroundColor:P.online?"#22c55e":"#9ca3af",boxShadow:P.online?"0 0 0 3px rgba(34,197,94,0.25)":"none"},"aria-hidden":"true"}):null]}),n.jsxs("div",{className:"flex flex-col justify-center min-w-0",style:{fontFamily:C},children:[n.jsx("h3",{title:t,className:X("font-semibold leading-snug truncate",g&&"font-bold",m&&"italic"),style:{fontSize:I?`calc(${I} + 2px)`:"15px",color:U},children:t}),v?n.jsx("p",{title:v,className:"leading-snug truncate opacity-75",dir:R?"rtl":"ltr",style:{fontSize:"12px",color:U,textAlign:R?"right":"left"},children:v}):null]})]}),n.jsxs("div",{className:"flex items-center gap-0 relative z-10 text-white flex-shrink-0 ml-1",children:[n.jsxs("div",{className:"relative",ref:M,children:[n.jsx("button",{type:"button",ref:j,"aria-label":N("menu"),"aria-expanded":L,"aria-haspopup":"true",onClick:()=>D(e=>!e),onKeyDown:e=>{"Escape"===e.key&&L&&(e.preventDefault(),D(!1))},className:"inline-flex h-7 w-7 items-center justify-center cursor-pointer transition-opacity duration-200 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 rounded-full border-0 bg-transparent p-0",style:{color:U},children:n.jsx(Le,{className:"w-4 h-4",strokeWidth:1.6})}),L&&n.jsxs("div",{role:"menu","aria-label":N("menu"),dir:_?"rtl":"ltr",onKeyDown:e=>{if("Escape"===e.key)return e.preventDefault(),void D(!1);if("Tab"===e.key){const t=M.current?Array.from(M.current.querySelectorAll('[role="menuitem"]')):[];if(0===t.length)return;const n=t[0],r=t[t.length-1],a=document.activeElement;e.shiftKey&&a===n?(e.preventDefault(),r.focus()):e.shiftKey||a!==r||(e.preventDefault(),n.focus())}},className:`absolute top-full mt-1 w-44 rounded-xl border shadow-lg py-1 z-[9999] animate-in fade-in slide-in-from-top-1 duration-150 ${_?"left-0":"right-0"} ${i?"bg-gray-800 border-gray-700":"bg-white border-gray-200"}`,style:{fontFamily:C},children:[n.jsxs("button",{role:"menuitem",onClick:()=>{D(!1),E?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(i?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:C,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:_?"right":"left"},children:[n.jsx($e,{className:"w-3.5 h-3.5 flex-shrink-0"}),N("refreshChat")]}),n.jsxs("button",{role:"menuitem",onClick:()=>{D(!1),k?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(i?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:C,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:_?"right":"left"},children:[n.jsx(Re,{className:"w-3.5 h-3.5 flex-shrink-0"}),N("copyChat")]}),n.jsxs("button",{role:"menuitem",onClick:()=>{D(!1),d?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(i?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:C,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:_?"right":"left"},children:[i?n.jsx(Ve,{className:"w-3.5 h-3.5 flex-shrink-0"}):n.jsx(Ue,{className:"w-3.5 h-3.5 flex-shrink-0"}),N(i?"lightMode":"nightMode")]})]})]}),n.jsx("button",{type:"button","aria-label":N("close"),onClick:f,className:"inline-flex h-7 w-7 items-center justify-center cursor-pointer transition-opacity duration-200 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 rounded-full border-0 bg-transparent p-0",style:{color:U},children:n.jsx(Xe,{className:"w-3.5 h-3.5",strokeWidth:1.6})})]})]})},Gt=({questions:t=[],collapsiblePrompt:r,onSubmit:a,primaryColor:o="#2563eb",isRtl:i=!1,isDark:s=!1,defaultLanguage:l="en"})=>{const c=e.useMemo(()=>G(l),[l]),[u,d]=e.useState({}),[p,f]=e.useState({}),[g,m]=e.useState(!1),h=e.useRef({}),b=[...t].sort((e,t)=>Q(e.fieldType)-Q(t.fieldType));return n.jsx("div",{className:"flex flex-col items-center justify-center p-5 h-full min-h-0 z-50 relative ",style:s?{backgroundColor:"#10141C"}:void 0,children:n.jsxs("div",{className:"w-full max-w-sm rounded-3xl shadow-xl border p-8 transition-colors duration-300 bg-white border-gray-100",style:s?{backgroundColor:"#1E232B",border:"1px solid #2A303C",borderRadius:"14px"}:void 0,children:[r&&n.jsx("div",{className:"mb-5 text-left",children:n.jsx("h3",{className:"transition-colors duration-300 text-h4 font-semibold "+(s?"text-white":"text-[#4A5568]"),children:r})}),n.jsxs("form",{onSubmit:async e=>{e.preventDefault();const t=(()=>{const e={};return b.forEach(t=>{const n=t.fieldType||"question",r=(u[n]??"").trim(),a=t.collectionPrompt||t.askToType||t.question||t.label||n,o=!0===t.required||"true"===t.required;r?("fullName"!==n&&"name"!==n||r.length<2&&(e[n]=c("nameInvalid")),"email"!==n||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)||(e[n]=c("emailInvalid")),"phone"!==n&&"mobileno"!==n||/^[+]?[\d\s-]{8,15}$/.test(r)||(e[n]=c("phoneInvalid"))):o&&(e[n]="email"===n?c("emailRequired"):"fullName"===n||"name"===n?c("nameRequired"):"phone"===n||"mobileno"===n?c("phoneRequired"):`${a} ${c("fieldRequiredSuffix")}`)}),f(e),e})();if(Object.keys(t).length>0){const e=b.map((e,t)=>e.fieldType||`question_${t}`).find(e=>t[e]);return void h.current[e]?.focus()}m(!0);try{await a(u)}finally{m(!1)}},className:"space-y-4",noValidate:!0,children:[b.map((e,t)=>{const r=e.fieldType||`question_${t}`,a=e.collectionPrompt||e.askToType||e.question||e.label;if(!a?.trim())return null;let o="text";"email"===r&&(o="email"),"phone"!==r&&"mobileno"!==r||(o="tel");const l=(r||"").toLowerCase(),g="fullname"===l||"name"===l||"username"===l,m="phone"===l||"mobileno"===l,b="email"===l?c("onboardingEmailPlaceholder"):g?c("onboardingNamePlaceholder"):m?c("onboardingPhonePlaceholder"):a,y=p[r],v="w-full h-12 rounded-lg text-sm px-4 outline-none border transition-colors focus:ring-0 "+(s?"text-white placeholder:text-[#A2A9B2] focus:border-[#5A6069]":"bg-white text-gray-900 placeholder:text-[#8C8C8C] focus:border-[#B0B0B0]"),w=y?"!border-status-error focus:!border-status-error":"",S=`onboarding-field-${r}`,x=`${S}-error`;return n.jsxs("div",{className:"space-y-1",children:[n.jsx("label",{htmlFor:S,className:"sr-only",children:a}),n.jsx("input",{id:S,ref:e=>{h.current[r]=e},placeholder:b,type:o,value:u[r]??"",onChange:e=>((e,t)=>{d(n=>({...n,[e]:t})),p[e]&&f(t=>{const n={...t};return delete n[e],n})})(r,e.target.value),className:`${v} ${w}`,"aria-invalid":y?"true":"false","aria-describedby":y?x:void 0,style:{direction:i?"rtl":"ltr",...s?{backgroundColor:"#272C35",borderWidth:"1px",borderStyle:"solid",borderColor:y?void 0:"#3F444C"}:{borderWidth:"1px",borderStyle:"solid",borderColor:y?void 0:"#E0E0E0"}}}),y&&n.jsx("p",{id:x,role:"alert",className:"text-xs text-status-error px-1",children:p[r]})]},r)}),n.jsx("button",{type:"submit",disabled:g,"aria-busy":g,"aria-label":g?c("submitting"):void 0,className:"w-full h-12 text-sm border-none font-semibold shadow-xl hover:shadow-xl hover:scale-[1.02] active:scale-[0.98] transition-all rounded-xl mt-4 text-white",style:{backgroundColor:o},children:g?n.jsx(Fe,{className:"w-5 h-5 animate-spin","aria-hidden":"true"}):c("startChat")})]})]})})},qt=({categories:t=[],selectedCategoryId:r=null,onSelect:a,isDark:o=!1,primaryColor:i="#2563eb",fontFamily:s="Inter",isRtl:l=!1})=>{const c=e.useRef(null),[u,d]=e.useState(!1),[p,f]=e.useState(!1),g=e.useCallback(()=>{const e=c.current;if(!e)return;const{scrollLeft:t,scrollWidth:n,clientWidth:r}=e;d(Math.abs(t)>1),f(Math.abs(t)+r<n-1)},[]);e.useEffect(()=>{g();const e=c.current;if(!e)return;const t=new ResizeObserver(g);return t.observe(e),()=>t.disconnect()},[g,t]);const m=e.useCallback(e=>{const t=c.current;if(!t)return;const n="left"===e?-150:150;t.scrollBy({left:l?-n:n,behavior:"smooth"})},[l]);if(!Array.isArray(t)||0===t.length)return null;const h=o?"rgba(31,41,55,0.85)":"rgba(255,255,255,0.95)",b=o?"#e5e7eb":"#374151",y=o?"#4b5563":"#d1d5db",v=o?"#111827":"#ffffff",w=o?"#374151":"#e5e7eb";return n.jsxs("div",{className:"flex-shrink-0 px-2 py-2 border-b flex items-center gap-1",style:{backgroundColor:v,borderColor:w,fontFamily:s,direction:l?"rtl":"ltr"},role:"region","aria-label":"Filter by category",children:[n.jsx("button",{type:"button",onClick:()=>m("left"),disabled:!u,"aria-label":"Scroll categories left",className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200",style:{backgroundColor:h,border:`1px solid ${y}`,color:b,opacity:u?1:.3,cursor:u?"pointer":"default"},children:n.jsx(Ce,{size:14})}),n.jsx("div",{ref:c,onScroll:g,className:"flex-1 flex gap-2 overflow-x-auto",style:{scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"},children:t.map(e=>{const t=r===e.id;return n.jsx("button",{type:"button",onClick:()=>a?.(t?null:e.id),"aria-pressed":t,className:"flex-shrink-0 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all duration-150 whitespace-nowrap",style:{backgroundColor:o?"#1f2937":"#ffffff",border:t?`1.5px solid ${i}`:"1px solid "+(o?"#374151":"#e5e7eb"),color:t?i:o?"#e5e7eb":"#374151",fontFamily:s},children:n.jsx("span",{children:e.label})},e.id)})}),n.jsx("button",{type:"button",onClick:()=>m("right"),disabled:!p,"aria-label":"Scroll categories right",className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200",style:{backgroundColor:h,border:`1px solid ${y}`,color:b,opacity:p?1:.3,cursor:p?"pointer":"default"},children:n.jsx(Ie,{size:14})})]})},Ht=({categories:e=[],selectedCategoryId:t=null,onSelect:r,isDark:a=!1,primaryColor:o="#2563eb",fontFamily:i="Inter",fontSize:s="14px",isRtl:l=!1,label:c="Choose a topic to get started:"})=>{if(!Array.isArray(e)||0===e.length)return null;const u=a?"#9ca3af":"#6b7280";return n.jsxs("div",{className:"pl-[50px] pt-1",style:{direction:l?"rtl":"ltr",paddingLeft:l?0:50,paddingRight:l?50:void 0},role:"region","aria-label":"Category filter",children:[n.jsx("div",{className:"mb-2",style:{color:u,fontFamily:i,fontSize:`calc(${s} - 1px)`},children:c}),n.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(e=>{const l=t===e.id;return n.jsx("button",{type:"button",onClick:()=>r?.(l?null:e.id),"aria-pressed":l,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full transition-all duration-150 hover:scale-[1.02] active:scale-[0.98]",style:{backgroundColor:a?"#1f2937":"#ffffff",border:l?`1.5px solid ${o}`:"1px solid "+(a?"#374151":"#e5e7eb"),color:l?o:a?"#e5e7eb":"#374151",fontFamily:i,fontSize:`calc(${s} - 1px)`,fontWeight:500},children:e.label},e.id)})})]})};const Vt=[{value:"😡",label:"😡",bg:"bg-red-200"},{value:"😕",label:"😕",bg:"bg-orange-200"},{value:"😐",label:"😐",bg:"bg-yellow-200"},{value:"😊",label:"😊",bg:"bg-green-200"},{value:"😍",label:"😍",bg:"bg-pink-200"}],Wt=[{value:"positive",label:"👍"},{value:"negative",label:"👎"}],Yt=[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"}],Kt=[{value:"1",label:"⭐"},{value:"2",label:"⭐"},{value:"3",label:"⭐"},{value:"4",label:"⭐"},{value:"5",label:"⭐"}],Xt=({format:t="EMOJI",prompt:r="How was your experience?",onRating:a,disabled:o=!1,isDark:i=!1,primaryColor:s="#2563eb",defaultLanguage:l="en"})=>{const c=e.useMemo(()=>G(l),[l]),[u,d]=e.useState(null),[p,f]=e.useState(null),[g,m]=e.useState(!1),h=async e=>{if(!o&&!g){d(e),m(!0);try{a&&a(e,t)}finally{m(!1)}}},b=(()=>{switch(t){case"THUMBS":return Wt;case"NUMERIC":return Yt;case"STARS":return Kt;default:return Vt}})();return n.jsxs("div",{className:X("transition-all duration-200 rounded-xl px-4",i?"bg-slate-800/50":"bg-slate-50/50"),children:[n.jsx("p",{className:X("text-sm font-semibold text-center mb-3",i?"text-gray-300":"text-gray-500/80"),children:r}),n.jsxs("div",{className:"flex justify-center items-center",children:["EMOJI"===t&&n.jsx("div",{className:"flex gap-2 justify-center items-center",children:b.map(e=>n.jsx("button",{onClick:()=>h(e.value),disabled:o||g,className:X("flex items-center justify-center text-2xl transition-transform","bg-transparent border-0 p-0 cursor-pointer","hover:scale-110 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed","focus:outline-none focus:ring-0",u===e.value?"":"opacity-80"),children:n.jsx("span",{role:"img","aria-label":`${c("rate")} ${e.value}`,children:e.label})},e.value))}),"THUMBS"===t&&n.jsx("div",{className:"flex gap-6 justify-center items-center",role:"group","aria-label":c("rateExperience"),children:b.map(e=>n.jsx("button",{"aria-label":1===e.value?c("thumbsUp"):c("thumbsDown"),onClick:()=>h(e.value),disabled:o||g,className:X("w-10 h-10 rounded-xl border flex items-center justify-center shadow-md text-2xl transition-all","hover:scale-105 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed","drop-shadow-md",i?"bg-gray-700 border-gray-600 hover:bg-gray-600":"bg-white border-gray-100 hover:bg-gray-50",u===e.value&&"ring-2 ring-primary/40 scale-110"),style:{borderColor:u===e.value?s:void 0},children:n.jsx("span",{className:"drop-shadow-md","aria-hidden":"true",children:e.label})},e.value))}),"NUMERIC"===t&&n.jsx("div",{className:"flex gap-2 justify-center items-center",role:"group","aria-label":c("rateExperience"),children:b.map(e=>n.jsx("button",{"aria-label":`${c("rate")} ${e.value}`,onClick:()=>h(e.value),disabled:o||g,className:X("w-10 h-10 rounded-lg flex items-center justify-center text-sm font-semibold transition-all","hover:scale-105 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed",u===e.value?"ring-2 ring-primary/40 scale-110 shadow-md text-white":i?"bg-gray-700 border border-gray-600 text-gray-300 hover:bg-gray-600":"bg-white border border-gray-200 text-gray-700 hover:bg-gray-50"),style:{backgroundColor:u===e.value?s:void 0,borderColor:u===e.value?s:void 0},children:e.label},e.value))}),"STARS"===t&&n.jsx("div",{className:"flex gap-2 justify-center items-center",onMouseLeave:()=>f(null),children:b.map(e=>{const t=p===e.value;return n.jsx("button",{onClick:()=>h(e.value),onMouseEnter:()=>f(e.value),disabled:o||g,className:X("flex items-center justify-center text-2xl","bg-transparent border-0 p-0 cursor-pointer focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed"),style:{transform:t?"scale(1.25)":"scale(1)",filter:t?"brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.15))":"none",opacity:t?1:.6,transition:"all 0.2s ease"},"aria-label":`${c("rate")} ${e.value}`,children:n.jsx("span",{"aria-hidden":"true",children:e.label})},e.value)})})]}),g&&n.jsx("p",{"aria-live":"polite",className:X("text-xs mt-3 text-center",i?"text-slate-400":"text-slate-500"),children:c("submittingFeedback")})]})};async function Zt({apiBaseUrl:e,conversationId:t,chip:n,submitText:r,position:a,source:o="widget",getAuthToken:i,enabled:s=!0}={}){try{if(!1===s)return!1;if(!e||"string"!=typeof e)return!1;if(!t||"string"!=typeof t)return!1;const l=function({chip:e,submitText:t,position:n,conversationId:r,source:a="widget"}={}){const o=e&&"object"==typeof e,i=o&&"string"==typeof e.text?e.text:"",s="string"==typeof t&&t?t:o&&"string"==typeof e.submitText?e.submitText:"string"==typeof e?e:"",l=i||s;if(!l)return null;const c={conversationId:r,chipText:l,submitText:s||void 0,position:Number.isInteger(n)?n:void 0,source:a},u=o?e?.promptId:void 0;return"string"==typeof u&&u&&(c.promptId=u),c}({chip:n,submitText:r,position:a,conversationId:t,source:o});if(!l)return!1;const c=`${e.replace(/\/$/,"")}/api/v1/support/chip-click`,u=JSON.stringify(l);let d;if("function"==typeof i)try{d=await i()}catch{d=void 0}if(!d&&"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon&&"undefined"!=typeof Blob)try{if(navigator.sendBeacon(c,new Blob([u],{type:"application/json"})))return!0}catch{}if("function"!=typeof fetch)return!1;const p={"Content-Type":"application/json"};return d&&(p.Authorization=`Bearer ${d}`),await fetch(c,{method:"POST",headers:p,credentials:"include",keepalive:!0,body:u}),!0}catch{return!1}}const Qt="#ffffff",Jt="#f5f5f5",en="#000000",tn="#1f2937",nn="#f3f4f6",rn="#2563eb",an="eshal:widget:size",on=(e,t)=>!e||(e=>e?.trim().toLowerCase())(e)===t,sn=e=>(e instanceof Date?e:new Date(e)).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}).replace(/am|pm/i,e=>e.toUpperCase()),ln=e=>{const t=(e||"EMOJI").toString().trim().toUpperCase();return"THUMBS"===t||"THUMB"===t?"THUMBS":"STARS"===t||"STAR"===t?"STARS":"NUMERIC"===t||"NUMBER"===t?"NUMERIC":"EMOJI"},cn=({isOpen:t,isMinimized:r,isDark:a,onStopGeneration:o,primaryColor:i,textColor:s,conciergeName:l,companyName:c,companyLogo:u,chatbotAvatarEnabled:d,chatbotAvatar:p,messages:f,isLoading:g,isConversationLoading:m=!1,inputValue:h,setInputValue:b,onSend:y,onDirectSend:v,onToggleTheme:w,onMinimize:S,onClose:x,quickQuestions:E=[],quickQuestionsEnabled:k,onQuickQuestion:A,quickQuestionsLayout:T="vertical",agentMessageBubbleColor:O,userMessageBoxColor:C,assistantTextColor:I,userTextColor:N,fontFamily:_="Inter",agentMessageBubbleFontFamily:R,agentMessageBubbleFontSize:P,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:D,fontSize:M="14px",defaultLanguage:j="en",onDecision:F,headerTextBold:U=!1,headerTextItalic:z=!1,headerTextColor:$,headerFontFamily:q,headerFontSize:H,subtitle:V=null,showStatus:W=!1,statusMode:Y="always",officeHours:K=null,enableVoiceInteraction:Z=!1,isVoiceSessionActive:Q=!1,voiceStatus:ee="idle",voiceError:te=null,voiceConclusionForCsat:ne=!1,onVoiceToggle:re,onBidiSubmit:ae,disclaimerEnabled:ie=!1,disclaimerText:se,disclaimerPosition:le="top",disclaimerLinkUrl:ce,disclaimerLinkLabel:ue,showPoweredBy:de=!0,apiBaseUrl:pe,apiKey:fe,getAuthToken:ge,conversationId:me,conciergeId:he,onboardingQuestions:be=[],onboardingActive:ye=!1,onboardingCompleted:ve=!1,onOnboardingFormSubmit:we,collectionPrompt:Se,csatEnabled:xe=!1,csatFormat:Ee="EMOJI",csatPrompt:ke="How was your experience?",onPromptSuggestionClick:Ae,onboardingEnabled:Te=!1,onResetConversation:Oe,sessionExpiringSoon:Ce=!1,autoPromptEnabled:Ie=!0,autoPromptQuestionDisplay:Ne=!0,autoPromptClickTelemetry:_e=!0,allowFeedback:Re=!0,provideCitations:Pe=!0,onFeedback:Le,onRetryMessage:De,onRefreshChat:Me,onCopyChat:je,filterCategories:Fe=[],showFilterStep:Be=!1,widgetFilter:Ue=null,onWidgetFilterChange:ze,onSynthesizeAssistantMessage:$e,launcherPosition:Ge="bottom-right",chatFeatures:qe,organizationId:Ve})=>{nt(_);const We=e.useRef(null),Ye=e.useRef(null),Ke=e.useMemo(()=>G(j),[j]);e.useEffect(()=>{Ye.current?.focus()},[]);const Xe=e.useCallback((e,t,n)=>{Zt({apiBaseUrl:pe,conversationId:me,chip:t,submitText:null==e?void 0:String(e),position:n,source:"widget",getAuthToken:ge,enabled:_e})},[pe,ge,me,_e]),Ze=e.useCallback((e,t,n)=>{t&&"object"==typeof t&&Xe(e,t,n),Ae?Ae(e):v?.(e)},[Ae,v,Xe]),Qe=Ge.includes("right"),Je=Ge.includes("bottom"),[et,tt]=e.useState(()=>{if("undefined"==typeof window)return null;try{const e=window.localStorage.getItem(an);if(!e)return null;const t=JSON.parse(e);if("number"==typeof t?.width&&"number"==typeof t?.height&&t.width>=320&&t.height>=400)return t}catch{}return null}),rt=e.useRef(null),at=e.useRef({x:0,y:0}),ot=e.useRef({width:380,height:650});e.useEffect(()=>{const e=e=>{const t=rt.current;if(!t)return;const n=e.clientX-at.current.x,r=e.clientY-at.current.y,a={...ot.current},o=.92*window.innerWidth,i=.85*window.innerHeight;if("corner"===t||"horizontal"===t){const e=Qe?ot.current.width-n:ot.current.width+n;a.width=Math.min(Math.max(320,e),o)}if("corner"===t||"vertical"===t){const e=Je?ot.current.height-r:ot.current.height+r;a.height=Math.min(Math.max(400,e),i)}tt(a)},t=()=>{rt.current&&(rt.current=null,document.body.style.cursor="",document.body.style.userSelect="")};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[Qe,Je]),e.useEffect(()=>{if(et)try{window.localStorage.setItem(an,JSON.stringify(et))}catch{}},[et]);const it=(e,t)=>{t.preventDefault(),t.stopPropagation(),rt.current=e,at.current={x:t.clientX,y:t.clientY},ot.current=et??{width:380,height:650};const n={corner:Qe===Je?"nwse-resize":"nesw-resize",horizontal:"ew-resize",vertical:"ns-resize"};document.body.style.cursor=n[e],document.body.style.userSelect="none"},[st,lt]=e.useState(!1),[ct,ut]=e.useState(()=>{try{return oe(Ve)?.csatSubmitted??!1}catch{return!1}}),[dt,pt]=e.useState(!1),[ft,gt]=e.useState(!1),[mt,ht]=e.useState(0),[bt,yt]=e.useState(""),[vt,wt]=e.useState(!1);e.useEffect(()=>{try{const e=oe(Ve)?.csatSubmitted??!1;ut(e),e&&lt(!1)}catch{}},[me]),function(t,n=[],r={}){const{enabled:a=!0,threshold:o=30,behavior:i="smooth",delay:s=0}=r,l=e.useRef(!0);e.useRef(0),e.useEffect(()=>{if(!a||!t.current)return;const e=t.current,n=()=>{const t=e.scrollHeight-e.scrollTop-e.clientHeight;l.current=t<o},r=()=>{n()};e.addEventListener("scroll",r,{passive:!0}),n();const c=setTimeout(()=>{l.current&&e&&e.scrollTo({top:e.scrollHeight,behavior:i})},s);return()=>{e.removeEventListener("scroll",r),clearTimeout(c)}},[t,a,o,i,s,...n])}(We,[f,g],{enabled:!0,threshold:30,behavior:"smooth",delay:0});const St=B(j),xt=e.useMemo(()=>a?on(O,Qt)?tn:O||tn:O||Qt,[O,a]),Et=e.useMemo(()=>a?on(s,en)?nn:s||nn:s||en,[a,s]),kt=e.useMemo(()=>a?on(C,Jt)?i||rn:C||i||rn:C||Jt,[a,i,C]),At=Ke(ft?"conversationResolved":"typeYourMessage"),Tt=f?.some?.(e=>"user"===e.role),Ot=e.useMemo(()=>(f||[]).filter(e=>"user"===e.role).length,[f]),[Ct,It]=e.useState(0),Nt=Ue?.category?(Fe||[]).find(e=>e.id===Ue.category):null,Rt=e.useCallback(e=>{if(!ze)return;const t=Ue?.category||null;if(e){if(ze({category:e,tags:[]}),It(Ot),!Tt&&e!==t&&$e){const t=(Fe||[]).find(t=>t.id===e),n=t?.label||e,r=Ke("categoryTopicsHeading").replace("{category}",n);$e(r,{replaceMarker:"category-intro"})}}else ze(null)},[ze,Ue,Ot,Fe,Tt,$e,Ke]);e.useCallback(e=>{const t=Ue?.category||Nt?.id;t&&ze&&ze({category:t,tags:[e]}),v&&v(e)},[Ue,Nt,ze,v]);const Pt=Array.isArray(Fe)&&Fe.length>0,Lt=Pt&&!Tt&&!Ue?.category,Dt=!Tt&&E.length>0&&k&&!Ue?.category,Mt=be&&be.length>0,jt=Boolean(xe),Bt=Te&&Mt&&!ve,Ut=e.useCallback(async()=>{if(jt&&!vt&&!ft&&0!==mt){wt(!0);try{const e={"Content-Type":"application/json"};if("function"==typeof ge){const t=await ge();t&&(e.Authorization=`Bearer ${t}`)}const t=ln(Ee),n=await fetch(`${pe.replace(/\/$/,"")}/api/v1/support/csat`,{method:"POST",headers:e,credentials:"include",body:JSON.stringify({conversationId:me,rating:String(mt),ratingFormat:t,conciergeId:he,feedback:bt||void 0})});n.ok?(pt(!1),ht(0),yt(""),ze&&ze(null),Me?Me():Oe&&Oe()):console.error("Failed to submit resolve feedback:",await n.text())}catch(e){console.error("Error submitting resolve feedback:",e)}finally{wt(!1)}}},[jt,vt,ft,mt,bt,me,ge,he,pe,Ee,Oe,Me,ze]),zt=e.useCallback(()=>{if(!jt||!me||!Tt)return ze&&ze(null),Me?Me():Oe&&Oe(),void x?.();dt?(pt(!1),x?.()):ft?x?.():pt(!0)},[jt,me,Tt,dt,ft,x,ze,Me,Oe]);e.useEffect(()=>{jt||(dt&&pt(!1),ft&&gt(!1),0!==mt&&ht(0),bt&&yt(""))},[jt,dt,ft,mt,bt]);const Vt=e.useMemo(()=>{if(!f||!Array.isArray(f))return[];for(let e=f.length-1;e>=0;e-=1)if("assistant"===f[e]?.role){const t=f[e].prompts;return Array.isArray(t)?t:[]}return[]},[f]),Wt=e.useRef([]);e.useEffect(()=>{Vt.length>0?Wt.current=Vt:f&&0!==f.length&&f.some(e=>"user"===e.role)||(Wt.current=[])},[Vt,f]);const Yt=e.useRef(Ot);e.useEffect(()=>{Ot!==Yt.current&&(Yt.current=Ot,Wt.current=[])},[Ot]);const Kt=Vt.length>0?Vt:Wt.current;e.useEffect(()=>{if(!xe)return;if(!st)return;if(ct)return;const e=We.current;if(!e)return;const t=window.requestAnimationFrame(()=>{e.scrollTo({top:e.scrollHeight,behavior:"smooth"})});return()=>{window.cancelAnimationFrame(t)}},[st,xe,ct]);const cn=()=>{const e=ln(Ee);if("STARS"===e)return n.jsx("div",{className:"flex justify-center gap-2 mb-5",role:"group","aria-label":Ke("rateExperience"),children:[1,2,3,4,5].map(e=>n.jsx("button",{"aria-label":`${Ke("rate")} ${e}`,onClick:()=>ht(e),className:"transition-all duration-150 hover:scale-110 active:scale-95 bg-transparent border-0 p-0 cursor-pointer",disabled:vt,children:n.jsx(He,{className:X("w-8 h-8 transition-colors",e<=mt?"text-yellow-400 drop-shadow-sm":a?"text-gray-600":"text-gray-300"),fill:e<=mt?"#FBBF24":"none"})},e))});if("THUMBS"===e)return n.jsx("div",{className:"flex gap-4 justify-center mb-5",role:"group","aria-label":Ke("rateExperience"),children:[{value:"positive",emoji:"👍"},{value:"negative",emoji:"👎"}].map(e=>n.jsx("button",{"aria-label":"positive"===e.value?Ke("thumbsUp"):Ke("thumbsDown"),onClick:()=>ht(e.value),disabled:vt,className:X("w-12 h-12 rounded-xl border flex items-center justify-center text-2xl transition-all hover:scale-105 active:scale-95",mt===e.value?"ring-2 ring-blue-300 scale-110 shadow-lg":"",a?"bg-gray-700 border-gray-600 hover:bg-gray-600":"bg-white border-gray-200 hover:bg-gray-50"),children:n.jsx("span",{className:"drop-shadow-md",children:e.emoji})},e.value))});return n.jsx("div",{className:"flex gap-2 justify-center items-center mb-5",role:"group","aria-label":Ke("rateExperience"),children:[{value:1,emoji:"😡"},{value:2,emoji:"😕"},{value:3,emoji:"😐"},{value:4,emoji:"😊"},{value:5,emoji:"😍"}].map(e=>n.jsx("button",{"aria-label":`${Ke("rate")} ${e.value}`,onClick:()=>ht(e.value),disabled:vt,className:X("rounded-full w-10 h-10 flex items-center justify-center text-xl transition-all hover:scale-110 active:scale-95 bg-transparent border-0 p-0 cursor-pointer",mt===e.value?"ring-2 ring-blue-100 scale-125 bg-gradient-to-b from-yellow-200 to-yellow-400 shadow-md":"grayscale-[0.3] opacity-80 hover:grayscale-0"),children:n.jsx("span",{role:"img","aria-label":`${Ke("rate")} ${e.value}`,className:"drop-shadow-sm filter",children:e.emoji})},e.value))})};if(!t)return null;const un=!r&&et?{width:et.width,height:et.height,maxWidth:"92vw",maxHeight:"85vh"}:void 0;return n.jsxs("div",{dir:St?"rtl":"ltr",className:"relative flex-shrink-0 z-50 "+(r?"w-80 h-auto":""),style:un,children:[!r&&n.jsxs(n.Fragment,{children:[n.jsx("div",{onMouseDown:e=>it("horizontal",e),className:"absolute top-0 h-full w-1.5 cursor-ew-resize hover:bg-blue-500/20 transition-colors z-[70] "+(Qe?"left-0":"right-0"),"aria-hidden":!0}),n.jsx("div",{onMouseDown:e=>it("vertical",e),className:"absolute left-0 w-full h-1.5 cursor-ns-resize hover:bg-blue-500/20 transition-colors z-[70] "+(Je?"top-0":"bottom-0"),"aria-hidden":!0})]}),n.jsxs("div",{id:"chat-window-panel",ref:Ye,role:"dialog","aria-modal":"true","aria-label":Ke("openChat"),tabIndex:-1,className:`relative focus:outline-none ${et||r?"":"w-[380px]"} ${et||r?"":"h-[650px]"} ${r?"w-80 h-auto":""} ${et&&!r?"w-full h-full":""} max-w-[92vw] border rounded-2xl shadow-2xl bg-white border-gray-200 flex flex-col ${r?"":"max-h-[85vh]"} overflow-hidden ${a?"bg-gray-900 border-gray-700":""}`,children:[!r&&n.jsx("div",{onMouseDown:e=>it("corner",e),"aria-hidden":"true",className:`absolute w-4 h-4 ${Qe===Je?"cursor-nwse-resize":"cursor-nesw-resize"} text-gray-400 hover:text-blue-500 transition-colors z-[71] flex p-0.5 ${Je?"top-0 items-start":"bottom-0 items-end"} ${Qe?"left-0 justify-start":"right-0 justify-end"}`,children:n.jsx("svg",{viewBox:"0 0 12 12",className:"w-3 h-3 "+(Je&&Qe?"rotate-180":Je?"-rotate-90":Qe?"rotate-90":""),"aria-hidden":!0,children:n.jsx("path",{d:"M11 1 L1 11 M11 5 L5 11 M11 9 L9 11",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round"})})}),n.jsx($t,{conciergeName:l,companyName:c,companyLogo:u,primaryColor:i,isDark:a,isMinimized:r,textColor:Et,fontFamily:_,fontSize:M,onToggleTheme:w,onMinimize:S,onClose:zt,headerTextBold:U,headerTextItalic:z,headerTextColor:$,headerFontFamily:q,headerFontSize:H,subtitle:V,showStatus:W,statusMode:Y,officeHours:K,onRefreshChat:Me,onCopyChat:je,defaultLanguage:j}),!r&&Pt&&!Lt&&!(dt&&!ft)&&!(ye&&!ve)&&n.jsx(qt,{categories:Fe,selectedCategoryId:Ue?.category||null,onSelect:Rt,isDark:a,primaryColor:i,fontFamily:_,isRtl:St}),!r&&n.jsxs(n.Fragment,{children:[n.jsx("div",{ref:We,role:"log","aria-live":"polite",className:`chat-messages flex-1 overflow-y-auto px-3 py-4 space-y-4 ${a?"bg-gray-900":"bg-gradient-to-b from-gray-50/50 to-white"} break-words`,children:dt&&!ft?n.jsx("div",{className:"animate-in slide-in-from-top-4 fade-in duration-300 mt-4 mx-2",children:n.jsxs("div",{className:X("w-full rounded-3xl p-6 shadow-lg",a?"bg-gray-800 shadow-black/20":"bg-white shadow-gray-200/80"),children:[n.jsx("p",{className:X("text-sm font-medium text-center mb-5 [font-family:inherit]",a?"text-gray-300":"text-gray-500"),children:ke||Ke("feedbackPrompt")}),cn(),n.jsx("textarea",{"aria-label":Ke("feedbackPlaceholder"),value:bt,onChange:e=>{e.target.value.length<=1e3&&yt(e.target.value)},maxLength:1e3,placeholder:Ke("feedbackPlaceholder"),rows:4,disabled:vt,className:X("w-full rounded-xl border px-4 py-3 text-sm [font-family:inherit] resize-none outline-none transition-colors mb-5",a?"bg-gray-700 border-gray-600 text-gray-100 placeholder-gray-400":"bg-gray-50 border-gray-200 text-gray-900 placeholder-gray-400")}),n.jsxs("div",{className:"relative group",children:[n.jsx("button",{onClick:Ut,disabled:0===mt||vt,"aria-describedby":0===mt?"resolve-rating-hint":void 0,className:X("w-full py-3.5 rounded-xl text-sm font-semibold [font-family:inherit] transition-all duration-200 border-none outline-none focus:outline-none active:outline-none focus:ring-0 active:ring-0","disabled:opacity-50 disabled:cursor-not-allowed",a?"bg-gray-700 text-gray-100 hover:bg-gray-600":"bg-gray-100 text-gray-700 hover:bg-gray-200"),children:Ke(vt?"submitting":"submitFeedback")}),0===mt&&!vt&&n.jsx("div",{id:"resolve-rating-hint",role:"tooltip",className:"absolute -top-8 left-1/2 -translate-x-1/2 whitespace-nowrap px-2 py-1 rounded-md text-xs bg-gray-800 text-white opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",children:Ke("selectRatingFirst")})]})]})}):ye&&!ve&&we?n.jsx(Gt,{questions:be,onPromptSuggestionClick:Ze,collapsiblePrompt:Se,onSubmit:we,primaryColor:i,isRtl:St,isDark:a,defaultLanguage:j}):n.jsxs(n.Fragment,{children:[Ce&&n.jsx("div",{role:"status",className:"mx-3 mt-1 mb-2 rounded-lg px-3 py-2 text-xs font-medium "+(a?"bg-amber-900/40 text-amber-200 border border-amber-700/50":"bg-amber-50 text-amber-800 border border-amber-200"),children:Ke("sessionExpiringSoon")}),n.jsx(_t,{messages:f,isDark:a,primaryColor:i,isLoading:g,agentMessageBubbleColor:O,userMessageBoxColor:C,textColor:s,assistantTextColor:I,userTextColor:N,fontFamily:_,agentMessageBubbleFontFamily:R,agentMessageBubbleFontSize:P,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:D,fontSize:M,formatTime:sn,isRtl:St,defaultLanguage:j,quickQuestions:E,shouldShowQuickQuestions:Dt,onQuickQuestion:A??v,quickQuestionsLayout:T,onDecision:F,disclaimerEnabled:ie,disclaimerText:se,disclaimerPosition:le,disclaimerLinkUrl:ce,disclaimerLinkLabel:ue,resolvedAgentBubbleColor:xt,resolvedUserMessageColor:kt,resolvedTextColor:Et,isVoiceSessionActive:Q,voiceStatus:ee,messagesContainerRef:We,companyLogo:u,chatbotAvatarEnabled:d,chatbotAvatar:p,conciergeName:l,companyName:c,apiBaseUrl:pe,getAuthToken:ge,onPromptSuggestionClick:Ze,conversationResetKey:me,allowFeedback:Re,provideCitations:Pe,onFeedback:Le,onRetryMessage:De,headerTextColor:$,beforePromptsSlot:Lt?n.jsx(Ht,{categories:Fe,selectedCategoryId:Ue?.category||null,onSelect:Rt,isDark:a,primaryColor:i,fontFamily:_,fontSize:M,isRtl:St,label:Ke("chooseTopicLabel")}):null,quickQuestionsHeadingLabel:Pt?Ke("quickQuestionsHeadingLabel"):void 0}),st&&xe&&!ct&&n.jsx("div",{className:"",children:n.jsx(Xt,{format:ln(Ee),prompt:ke||Ke("howWasYourExperience"),onRating:async(e,t)=>{ut(!0),lt(!1),(e=>{try{const t=oe(e);if(!t)return;t.csatSubmitted=!0,localStorage.setItem(`${J}_${e}`,JSON.stringify(t))}catch{}})(void 0);try{const n={"Content-Type":"application/json"};if("function"==typeof ge){const e=await ge();e&&(n.Authorization=`Bearer ${e}`)}const r=await fetch(`${pe.replace(/\/$/,"")}/api/v1/support/csat`,{method:"POST",headers:n,credentials:"include",body:JSON.stringify({conversationId:me,rating:e,ratingFormat:t,conciergeId:he})});r.ok||console.error("CSAT submission failed:",await r.text())}catch(e){console.error("CSAT submission error:",e)}},disabled:!1,isDark:a,primaryColor:i,defaultLanguage:j})})]})}),!(ye&&!ve)&&n.jsx(Ft,{onStopGeneration:o,inputValue:h,setInputValue:b,onSend:y,isDark:a,primaryColor:i,isOpen:t,isMinimized:r,isLoading:g,isConversationLoading:m,placeholder:At,textColor:Et,fontFamily:_,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:D,fontSize:M,isRtl:St,csatVisible:st&&xe&&!ct||jt&&(dt||ft),enableVoiceInteraction:Z,isVoiceSessionActive:Q,voiceStatus:ee,voiceError:te,onVoiceToggle:re,onBidiSubmit:ae,disclaimerEnabled:ie,disclaimerText:se,disclaimerPosition:le,disclaimerLinkUrl:ce,disclaimerLinkLabel:ue,showPoweredBy:de,defaultLanguage:j,onboardingQuestions:be,onboardingActive:ye,onboardingCompleted:ve,onboardingEnabled:Te,userMessageBoxColor:C,resolvedUserMessageColor:kt,userTextColor:N,promptSuggestions:dt||ft||!1===Ie||g?[]:Kt,onPromptSuggestionClick:Ze,autoPromptQuestionDisplay:Ne,tagSelectorNode:null,showResolveButton:jt&&Tt&&!ft&&!dt&&!st&&!Bt,onResolve:()=>{jt&&pt(!0)},chatFeatures:qe,apiEndpoint:pe,organizationId:Ve,conversationId:me})]})]})]})},un=new Map;const dn=e.forwardRef(({isDark:t,primaryColor:r,onToggle:a,textColor:o,headerTextColor:i,defaultLanguage:s="en",isOpen:l=!1,className:c},u)=>{const d=e.useMemo(()=>G(s),[s]),p=r,f=i||"#FFFFFF";return n.jsxs("button",{ref:u,onClick:a,className:`group relative w-16 h-16 rounded-full shadow-2xl transition-all duration-300 flex items-center justify-center text-white overflow-hidden hover:scale-110 ${c||""}`,style:{background:`linear-gradient(135deg, ${p} 0%, ${p}dd 100%)`,boxShadow:`0 10px 30px ${p}40`,border:"none"},"aria-label":d(l?"closeChat":"openChat"),"aria-expanded":l,"aria-controls":"chat-window-panel",children:[n.jsx("div",{className:"absolute inset-0 rounded-full bg-white/20 scale-0 group-hover:scale-100 transition-transform duration-500"}),n.jsx("div",{className:"relative z-10 transition-transform duration-300",children:n.jsx(Be,{className:"w-7 h-7",style:{color:f}})})]})});dn.displayName="ToggleButton";const pn="0.2.12",fn=({getAuthToken:t,apiBaseUrl:r,darkMode:a,primaryColor:o,position:i,companyName:s,conciergeName:l,companyLogo:c,welcomeMessage:u,quickQuestions:d,quickQuestionsEnabled:p,quickQuestionsLayout:f="vertical",textColor:g,agentMessageBubbleColor:m,userMessageBoxColor:h,assistantTextColor:b,userTextColor:y,fontFamily:v,fontSize:w,defaultLanguage:S,apiKey:x,agentMessageBubbleFontFamily:E,agentMessageBubbleFontSize:k,userMessageBubbleFontFamily:A,userMessageBubbleFontSize:T,autoOpen:O=!1,openDelay:C=0,locale:I,className:N="",headerTextBold:_,headerTextItalic:R,enableVoiceInteraction:P,disclaimerEnabled:L,disclaimerText:D,disclaimerPosition:M,disclaimerLinkUrl:j,disclaimerLinkLabel:F,showPoweredBy:B,onboardingQuestions:U,collectionPrompt:z,allowedDomains:$,onboardingEnabled:G,wsBaseUrl:q})=>{const[H,V]=e.useState(null),[W,Y]=e.useState(!0),[X,Z]=e.useState(null),[Q,J]=e.useState(!1),ee=e.useRef(!1);e.useEffect(()=>{if(ee.current)return;(async()=>{if(!r)return Z("apiBaseUrl is required"),void Y(!1);try{Y(!0);const e=await(async(e,t)=>{if(!e)throw new Error("apiBaseUrl is required");try{const n=e.replace(/\/$/,""),r=pn?`${n}/api/v1/deploy-agent?wv=${encodeURIComponent(pn)}`:`${n}/api/v1/deploy-agent`,a={"Content-Type":"application/json"};if("function"==typeof t){const e=await t();e&&(a.Authorization=`Bearer ${e}`)}const o=await fetch(r,{method:"GET",headers:a,credentials:"include"});if(404===o.status)return null;if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return await o.json()}catch(e){throw console.error("Failed to fetch agent configuration:",e),e}})(r,t);if(null===e)return ee.current=!0,J(!0),V(null),void Z(null);V(e),Z(null)}catch(e){console.error("Failed to load agent configuration:",e),Z(e.message||"Failed to load configuration")}finally{Y(!1)}})()},[r,t]);const te=e.useMemo(()=>{if(!H)return null;const e=H.config??{},t=e.identity??{},n=e.branding??{},r=e.typography??{},f=e.messages??{},x=e.voice??{},O=e.onboarding??{},C=e.disclaimer??{},I=e.csat??{},N=e.inactivity??{},q=e.behavior??{},V=e.security??{},W=e.layout??{},Y=S??f.defaultLocale??"en",X=f.bundles?.[Y]??{},Z=f.bundles?.en??{},Q={welcome:X.welcome||Z.welcome,fallback:X.fallback||Z.fallback,quickQuestions:Array.isArray(X.quickQuestions)&&X.quickQuestions.length>0?X.quickQuestions:Z.quickQuestions},J=$??V.allowedDomains??(V.domains??[]).map(e=>"string"==typeof e?e:e.domain).filter(Boolean)??[];return{darkMode:a??!1,primaryColor:o??n.brandColor??"#2563eb",companyName:s??t.companyName??"Support Team",conciergeName:l??t.conciergeName,companyLogo:c??n.avatar??null,chatbotAvatarEnabled:n.chatbotAvatarEnabled??!1,chatbotAvatar:n.chatbotAvatar??null,welcomeMessage:u??Q.welcome??"Hi! How can we help?",fallbackMessage:Q.fallback,quickQuestions:d??Q.quickQuestions??[],quickQuestionsEnabled:p??f.quickQuestionsEnabled,textColor:g??"#000000",agentMessageBubbleColor:m??r.agentMessageBubbleColor,userMessageBoxColor:h??r.userMessageBoxColor,assistantTextColor:b??r.assistantTextColor??"#000000",userTextColor:y??r.userTextColor??"#000000",fontFamily:v??r.agentMessageBubbleFontFamily??"Inter",fontSize:w??r.agentMessageBubbleFontSize??"14px",defaultLanguage:Y,headerTextBold:_??r.headerTextBold??!1,headerTextItalic:R??r.headerTextItalic??!1,headerTextColor:r.headerTextColor??"#FFFFFF",headerFontFamily:r.headerFontFamily,headerFontSize:r.headerFontSize,subtitle:t.subtitle??null,showStatus:t.showStatus??!1,statusMode:t.statusMode??"always",officeHours:t.officeHours??null,enableVoiceInteraction:P??x.enableVoiceInteraction??!1,disclaimerEnabled:L??C.enabled??!1,disclaimerText:D??C.text,disclaimerPosition:M??(ee=C.position,ee?ee.toLowerCase():"top"),disclaimerLinkUrl:K(j??C.linkUrl),disclaimerLinkLabel:F??C.linkLabel,showPoweredBy:B??n.showPoweredBy??!0,onboardingQuestions:U??O.questions??[],collectionPrompt:z??O.collapsiblePrompt??"Before we begin, I need to verify your details.",allowedDomains:J,launcherPosition:i??(e=>e?e.toLowerCase().replace(/_/g,"-"):"bottom-right")(W.launcherPosition),onboardingEnabled:G??O.enabled??!1,inactivityTimeoutValue:N.timeoutValue??null,inactivityTimeoutUnit:N.timeoutUnit??null,agentMessageBubbleFontFamily:E??r.agentMessageBubbleFontFamily??v??"Inter",agentMessageBubbleFontSize:k??r.agentMessageBubbleFontSize??w??"14px",userMessageBubbleFontFamily:A??r.userMessageBubbleFontFamily??v??"Inter",userMessageBubbleFontSize:T??r.userMessageBubbleFontSize??w??"14px",csatEnabled:I.enabled??!1,csatFormat:I.format??"EMOJI",csatPrompt:I.prompt??"How was your experience?",autoPromptEnabled:q.autoPromptEnabled??!0,autoPromptQuestionDisplay:q.autoPromptQuestionDisplay??!0,autoPromptClickTelemetry:q.autoPromptClickTelemetry??!0,allowFeedback:q.allowFeedback??!0,provideCitations:q.provideCitations??!0,organizationId:H.organizationId??null,chatFeatures:e.chatFeatures??null};var ee},[H,a,o,i,s,l,c,u,d,p,g,m,h,b,y,v,w,S,_,R,P,L,D,M,F,j,B,U,G,z,$,E,k,A,T]),ne=e.useMemo(()=>!te||((e=[])=>{if("undefined"==typeof window)return!1;const t=window.location.hostname.toLowerCase(),n=window.location.host.toLowerCase();return!(!e||0===e.length)&&e.some(e=>{const r=e.toLowerCase().trim();return r.includes(":")?n===r:t===r||t.endsWith("."+r)})})(te.allowedDomains),[te]),re=e.useMemo(()=>({welcomeMessage:"Hi! How can we help?",quickQuestions:[],apiBaseUrl:r||"",apiKey:x||"",getAuthToken:t,autoOpen:!1,openDelay:0,darkMode:!1,enableVoiceInteraction:!1,onboardingQuestions:[],onboardingEnabled:!1,collectionPrompt:void 0}),[r,x,t]),{isOpen:ae,isMinimized:oe,isDark:ie,messages:se,inputValue:le,isLoading:ce,widgetRef:ue,setInputValue:de,handleSend:pe,stopGeneration:fe,handleQuickQuestion:ge,sendMessage:me,retryMessage:he,toggleChat:ye,toggleTheme:ve,toggleMinimize:we,closeChat:Se,handleDecision:xe,isVoiceSessionActive:Ee,voiceStatus:ke,voiceError:Ae,voiceConclusionForCsat:Te,handleVoiceToggle:Oe,sendBidiTextMessage:Ce,onboardingActive:Ie,onboardingCompleted:Ne,handleOnboardingFormSubmit:_e,conversationId:Re,resetConversation:Pe,sessionExpiringSoon:Le,updateMessageFeedback:De,widgetFilter:Me,setWidgetFilter:je,addAssistantMessage:Fe}=be(te?{welcomeMessage:te.welcomeMessage,fallbackMessage:te.fallbackMessage,quickQuestions:te.quickQuestions,apiBaseUrl:r,wsBaseUrl:q??H?.wsBaseUrl,apiKey:x,locale:te.defaultLanguage||I,organizationId:te.organizationId,getAuthToken:t,autoOpen:O,openDelay:C,darkMode:te.darkMode,enableVoiceInteraction:te.enableVoiceInteraction,onboardingQuestions:te.onboardingQuestions,onboardingEnabled:te.onboardingEnabled,collectionPrompt:te.collectionPrompt,provideCitations:te.provideCitations,inactivityTimeoutValue:te.inactivityTimeoutValue,inactivityTimeoutUnit:te.inactivityTimeoutUnit,messageLimits:H?.messageLimits}:re),Be=e.useRef(null),Ue=e.useRef(ae);e.useEffect(()=>{Ue.current&&!ae&&Be.current?.focus(),Ue.current=ae},[ae]);const ze=e.useCallback((e,n,a)=>{if(De(e,n),!Re||!r)return;const o=r.replace(/\/$/,"");(async()=>{try{const r={"Content-Type":"application/json"};if("function"==typeof t){const e=await t();e&&(r.Authorization=`Bearer ${e}`)}await fetch(`${o}/api/v1/support/feedback`,{method:"POST",headers:r,credentials:"include",body:JSON.stringify({messageContent:e,conversationId:Re,feedback:n,feedbackText:a})})}catch(e){console.error("Feedback submission error:",e)}})()},[Re,r,t,De]),$e=e.useCallback(()=>{Pe&&Pe()},[Pe]),{categories:Ge,hasFilters:qe}=function(t,n){const r=!!t,[a,o]=e.useState({categories:[],loading:r,error:null});e.useEffect(()=>{if(!t)return void o({categories:[],loading:!1,error:null});const e=n?`${t}|__session__`:`${t}|__proxy__`,r=un.get(e);if(r)return void o({categories:r,loading:!1,error:null});let a=!1;o(e=>({...e,loading:!0,error:null}));const i=`${t.replace(/\/$/,"")}/api/v1/widget/filters`;return(async()=>{try{const t={Accept:"application/json"};if("function"==typeof n){const e=await n();e&&(t.Authorization=`Bearer ${e}`)}const r=await fetch(i,{method:"GET",headers:t});if(!r.ok)throw new Error(`filter catalog HTTP ${r.status}`);const s=await r.json(),l=Array.isArray(s?.categories)?s.categories:[];if(a)return;un.set(e,l),o({categories:l,loading:!1,error:null})}catch(e){if(a)return;console.warn("[useFilterCatalog] catalog fetch failed:",e),o({categories:[],loading:!1,error:e})}})(),()=>{a=!0}},[t,n]);const i=e.useMemo(()=>Array.isArray(a.categories)&&a.categories.length>0,[a.categories]);return{...a,hasFilters:i}}(r,t),He=e.useCallback(()=>{const e=se.filter(e=>e.content&&""!==e.content.trim()).map(e=>`${"user"===e.role?"You":te?.conciergeName||"Assistant"}: ${e.content}`).join("\n\n");e&&navigator.clipboard.writeText(e).catch(()=>{})},[se,te?.conciergeName]);if(e.useEffect(()=>{ue.current&&te&&(ue.current.style.setProperty("--cw-primary",te.primaryColor),te.fontFamily&&ue.current.style.setProperty("--cw-font-family",te.fontFamily),te.textColor&&ue.current.style.setProperty("--cw-text-color",te.textColor))},[te,ue]),W)return null;if(Q)return null;if(X||!te)return console.error("ChatWidget configuration error:",X),null;if(!ne)return null;const Ve={"bottom-right":"bottom-5 right-5","bottom-left":"bottom-5 left-5","top-right":"top-5 right-5","top-left":"top-5 left-5"};return n.jsx("div",{id:"chat-widget-root",children:n.jsxs("div",{ref:ue,className:`chat-widget-root fixed flex flex-col ${te.launcherPosition?.includes("left")?"items-start":"items-end"} z-[999999] ${ie?"dark":""} ${N} ${Ve[te.launcherPosition]||Ve["bottom-right"]}`,children:[n.jsx(cn,{isOpen:ae,isMinimized:oe,isDark:ie,launcherPosition:te.launcherPosition,primaryColor:te.primaryColor,textColor:te.textColor,companyName:te.companyName,conciergeName:te.conciergeName,companyLogo:te.companyLogo,chatbotAvatarEnabled:te.chatbotAvatarEnabled,chatbotAvatar:te.chatbotAvatar,messages:se,isLoading:ce,inputValue:le,setInputValue:de,onSend:pe,onStopGeneration:fe,onDirectSend:me,onToggleTheme:ve,onMinimize:we,onClose:Se,quickQuestions:te.quickQuestions,quickQuestionsEnabled:te.quickQuestionsEnabled,onQuickQuestion:ge,quickQuestionsLayout:f,agentMessageBubbleColor:te.agentMessageBubbleColor,userMessageBoxColor:te.userMessageBoxColor,assistantTextColor:te.assistantTextColor,userTextColor:te.userTextColor,fontFamily:te.fontFamily,agentMessageBubbleFontFamily:te.agentMessageBubbleFontFamily,agentMessageBubbleFontSize:te.agentMessageBubbleFontSize,userMessageBubbleFontFamily:te.userMessageBubbleFontFamily,userMessageBubbleFontSize:te.userMessageBubbleFontSize,fontSize:te.fontSize,defaultLanguage:te.defaultLanguage||I,onDecision:xe,headerTextBold:te.headerTextBold,headerTextItalic:te.headerTextItalic,headerTextColor:te.headerTextColor,headerFontFamily:te.headerFontFamily,headerFontSize:te.headerFontSize,subtitle:te.subtitle,showStatus:te.showStatus,statusMode:te.statusMode,officeHours:te.officeHours,enableVoiceInteraction:te.enableVoiceInteraction,isVoiceSessionActive:Ee,voiceStatus:ke,voiceError:Ae,voiceConclusionForCsat:Te,onVoiceToggle:Oe,onBidiSubmit:()=>Ce(le),disclaimerEnabled:te.disclaimerEnabled,disclaimerText:te.disclaimerText,disclaimerPosition:te.disclaimerPosition,disclaimerLinkUrl:te.disclaimerLinkUrl,disclaimerLinkLabel:te.disclaimerLinkLabel,showPoweredBy:te.showPoweredBy,apiBaseUrl:r,apiKey:x,getAuthToken:t,conversationId:Re,conciergeId:H?.conciergeId??H?.id,onboardingQuestions:te.onboardingQuestions,onboardingActive:Ie,onboardingCompleted:Ne,onOnboardingFormSubmit:_e,collectionPrompt:te.collectionPrompt,csatEnabled:te.csatEnabled,csatFormat:te.csatFormat,csatPrompt:te.csatPrompt,onboardingEnabled:te.onboardingEnabled,onResetConversation:Pe,sessionExpiringSoon:Le,autoPromptEnabled:te.autoPromptEnabled,autoPromptQuestionDisplay:te.autoPromptQuestionDisplay,autoPromptClickTelemetry:te.autoPromptClickTelemetry,allowFeedback:te.allowFeedback,provideCitations:te.provideCitations,onFeedback:ze,onRetryMessage:he,onRefreshChat:$e,onCopyChat:He,filterCategories:Ge,showFilterStep:qe,widgetFilter:Me,onWidgetFilterChange:je,onSynthesizeAssistantMessage:Fe,chatFeatures:te.chatFeatures,organizationId:te.organizationId}),n.jsx(dn,{ref:Be,isDark:ie,primaryColor:te.primaryColor,onToggle:ye,textColor:te.textColor,headerTextColor:te.headerTextColor,defaultLanguage:te.defaultLanguage||I,isOpen:ae,className:ae?"hidden":void 0})]})})};var gn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},mn={exports:{}};function hn(e){try{const t=window[e];return t.setItem("__ft__","1"),t.removeItem("__ft__"),"1"}catch{return"0"}}function bn(){try{return Array.from(navigator.plugins||[]).map(e=>`${e.name}::${e.filename}`).sort().join("|")}catch{return""}}function yn(){try{return Array.from(navigator.mimeTypes||[]).map(e=>e.type).sort().join("|")}catch{return""}}function vn(){try{const e=document.createElement("canvas");e.width=240,e.height=60;const t=e.getContext("2d");return t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.font="11pt no-real-font-abc",t.fillText("user-trace:canvas,🔍<canvas>",2,15),t.fillStyle="rgba(102,204,0,0.7)",t.font="18pt Arial",t.fillText("user-trace:canvas,🔍<canvas>",4,45),e.toDataURL().slice(-50)}catch{return"nocanvas"}}function wn(){try{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)return"nowebgl";const n=t.getExtension("WEBGL_debug_renderer_info"),r=n?t.getParameter(n.UNMASKED_VENDOR_WEBGL):t.getParameter(t.VENDOR);return`${r}::${n?t.getParameter(n.UNMASKED_RENDERER_WEBGL):t.getParameter(t.RENDERER)}`}catch{return"nowebgl"}}function Sn(){const e=["Arial","Courier New","Georgia","Times New Roman","Verdana","Helvetica","Comic Sans MS","Impact","Tahoma","Trebuchet MS","Palatino Linotype","Lucida Console","Lucida Sans Unicode","MS Sans Serif","MS Serif","Symbol","Wingdings","Franklin Gothic Medium","Book Antiqua","Garamond","Calibri","Cambria","Consolas","Candara","Optima","Segoe UI","Gill Sans","Century Gothic","Futura"];try{const t=document.createElement("canvas").getContext("2d"),n="monospace",r="mmmmmmmmmmlli",a="72px";t.font=`${a} ${n}`;const o=t.measureText(r).width;return e.filter(e=>(t.font=`${a} '${e}', ${n}`,t.measureText(r).width!==o)).join(",")}catch{return""}}function xn(){try{return window.OfflineAudioContext||window.webkitOfflineAudioContext?"audio-supported":"noaudio"}catch{return"noaudio"}}var En={generateFingerprint:function(){const e=function(){const e=navigator||{},t=screen||{};return{userAgent:e.userAgent||"",language:e.language||"",languages:(e.languages||[]).join(","),platform:e.platform||"",hardwareConcurrency:e.hardwareConcurrency||0,deviceMemory:e.deviceMemory||0,maxTouchPoints:e.maxTouchPoints||0,cookieEnabled:e.cookieEnabled?"1":"0",doNotTrack:e.doNotTrack||"unknown",screenWidth:t.width||0,screenHeight:t.height||0,colorDepth:t.colorDepth||0,pixelDepth:t.pixelDepth||0,devicePixelRatio:"undefined"!=typeof devicePixelRatio?devicePixelRatio:1,timezoneOffset:(new Date).getTimezoneOffset(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"",sessionStorage:hn("sessionStorage"),localStorage:hn("localStorage"),indexedDB:"undefined"!=typeof indexedDB?"1":"0",cpuClass:e.cpuClass||"unknown",oscpu:e.oscpu||"unknown",vendor:e.vendor||"",vendorSub:e.vendorSub||"",productSub:e.productSub||"",plugins:bn(),mimeTypes:yn(),canvas:vn(),webgl:wn(),fonts:Sn(),audioContext:xn()}}(),t=function(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t^e.charCodeAt(n),t&=t;return(t>>>0).toString(16).padStart(8,"0")}(Object.values(e).join("|||")),n=["nocanvas"!==e.canvas,"nowebgl"!==e.webgl&&""!==e.webgl,""!==e.fonts,""!==e.plugins,e.hardwareConcurrency>0,""!==e.timezone];return{id:t,signals:e,confidence:Math.round(n.filter(Boolean).length/n.length*100)}}};const kn=[{url:"https://api.ipify.org?format=json",parse:e=>e.ip},{url:"https://api64.ipify.org?format=json",parse:e=>e.ip},{url:"https://api.my-ip.io/v2/ip.json",parse:e=>e.ip},{url:"https://ipapi.co/json/",parse:e=>e.ip}];async function An(e,t=4e3){const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{const t=await fetch(e,{signal:n.signal});if(!t.ok)throw new Error(`HTTP ${t.status}`);return await t.json()}finally{clearTimeout(r)}}function Tn(e){return/^(\d{1,3}\.){3}\d{1,3}$/.test(e)||/^[0-9a-f:]{2,39}$/i.test(e)}var On={detectIP:async function(){for(const e of kn)try{const t=await An(e.url),n=e.parse(t);if(n&&Tn(n))return{ip:n,source:new URL(e.url).hostname}}catch{}return null},getIPVersion:function(e){return e?/^(\d{1,3}\.){3}\d{1,3}$/.test(e)?"v4":/^[0-9a-f:]{2,39}$/i.test(e)?"v6":"unknown":"unknown"}};let Cn={apiKeys:{},preferredProvider:null,timeoutMs:5e3};function In(e={}){const t=[e.ipinfo&&{name:"ipinfo.io",tier:"free-with-key",freeLimit:"50,000 req/month",signup:"https://ipinfo.io/signup",buildUrl:t=>`https://ipinfo.io/${t}/json?token=${e.ipinfo}`,parse:e=>{if(e.error)throw new Error(e.error.message||"Failed");const[t,n]=(e.loc||"0,0").split(",").map(Number);return{ip:e.ip||"",country:e.country||"",countryCode:e.country||"",region:e.region||"",regionCode:"",city:e.city||"",zip:e.postal||"",latitude:t,longitude:n,timezone:e.timezone||"",isp:e.org||"",org:e.org||"",proxy:!1,hosting:!1}}},e.ipgeolocation&&{name:"ipgeolocation.io",tier:"free-with-key",freeLimit:"1,000 req/day",signup:"https://ipgeolocation.io/signup.html",buildUrl:t=>`https://api.ipgeolocation.io/ipgeo?apiKey=${e.ipgeolocation}&ip=${t}`,parse:e=>{if(e.message)throw new Error(e.message);return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code2||"",region:e.state_prov||"",regionCode:e.state_code||"",city:e.city||"",zip:e.zipcode||"",latitude:parseFloat(e.latitude)||0,longitude:parseFloat(e.longitude)||0,timezone:e.time_zone?.name||"",isp:e.isp||"",org:e.organization||"",proxy:e.security?.is_proxy||!1,hosting:e.security?.is_hosting||!1}}},e.abstractapi&&{name:"abstractapi.com",tier:"free-with-key",freeLimit:"20,000 req/month",signup:"https://app.abstractapi.com/users/signup?target=/api/ip-geolocation",buildUrl:t=>`https://ipgeolocation.abstractapi.com/v1/?api_key=${e.abstractapi}&ip_address=${t}`,parse:e=>{if(e.error)throw new Error(e.error.message||"Failed");return{ip:e.ip_address||"",country:e.country||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_iso_code||"",city:e.city||"",zip:e.postal_code||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone?.name||"",isp:e.connection?.isp_name||"",org:e.connection?.org_name||"",proxy:e.security?.is_vpn||!1,hosting:e.security?.is_hosting||!1}}},e.ip2location&&{name:"ip2location.io",tier:"free-with-key",freeLimit:"30,000 req/month",signup:"https://www.ip2location.io/sign-up",buildUrl:t=>`https://api.ip2location.io/?key=${e.ip2location}&ip=${t}&format=json`,parse:e=>{if(e.error)throw new Error(e.error.error_message||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region_name||"",regionCode:"",city:e.city_name||"",zip:e.zip_code||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.time_zone||"",isp:e.isp||"",org:e.domain||"",proxy:e.is_proxy||!1,hosting:!1}}},e.ipstack&&{name:"ipstack.com",tier:"free-with-key",freeLimit:"100 req/month",signup:"https://ipstack.com/product",buildUrl:t=>`https://api.ipstack.com/${t}?access_key=${e.ipstack}`,parse:e=>{if(e.error)throw new Error(e.error.info||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region_name||"",regionCode:e.region_code||"",city:e.city||"",zip:e.zip||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.time_zone?.id||"",isp:e.connection?.isp||"",org:"",proxy:!1,hosting:!1}}}].filter(Boolean),n=[{name:"ip-api.com",tier:"free",freeLimit:"45 req/min (no key needed)",buildUrl:e=>`https://ip-api.com/json/${e}?fields=status,message,country,countryCode,region,regionName,city,zip,lat,lon,timezone,isp,org,proxy,hosting,query`,parse:e=>{if("success"!==e.status)throw new Error(e.message||"Failed");return{ip:e.query||"",country:e.country||"",countryCode:e.countryCode||"",region:e.regionName||"",regionCode:e.region||"",city:e.city||"",zip:e.zip||"",latitude:e.lat||0,longitude:e.lon||0,timezone:e.timezone||"",isp:e.isp||"",org:e.org||"",proxy:e.proxy||!1,hosting:e.hosting||!1}}},{name:"ipwho.is",tier:"free",freeLimit:"unlimited (fair use, no key needed)",buildUrl:e=>`https://ipwho.is/${e}`,parse:e=>{if(!e.success)throw new Error(e.message||"Failed");return{ip:e.ip||"",country:e.country||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_code||"",city:e.city||"",zip:e.postal||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone?.id||"",isp:e.connection?.isp||"",org:e.connection?.org||"",proxy:!1,hosting:!1}}},{name:"ipapi.co",tier:"free",freeLimit:"1,000 req/day (no key needed)",buildUrl:e=>`https://ipapi.co/${e}/json/`,parse:e=>{if(e.error)throw new Error(e.reason||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_code||"",city:e.city||"",zip:e.postal||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone||"",isp:e.org||"",org:e.org||"",proxy:!1,hosting:!1}}},{name:"freeipapi.com",tier:"free",freeLimit:"unlimited (fair use, no key needed)",buildUrl:e=>`https://freeipapi.com/api/json/${e}`,parse:e=>({ip:e.ipAddress||"",country:e.countryName||"",countryCode:e.countryCode||"",region:e.regionName||"",regionCode:e.regionCode||"",city:e.cityName||"",zip:e.zipCode||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timeZone||"",isp:"",org:"",proxy:!1,hosting:!1})}],r=["freeipapi.com","ipwho.is","ipapi.co","ip-api.com"];return n.sort((e,t)=>r.indexOf(e.name)-r.indexOf(t.name)),[...t,...n]}async function Nn(e,t=5e3){const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{const t=await fetch(e,{signal:n.signal});if(!t.ok)throw new Error(`HTTP ${t.status}`);return await t.json()}finally{clearTimeout(r)}}const _n={enableHighAccuracy:!0,timeout:8e3,maximumAge:3e5};function Rn(e={}){return new Promise(t=>"undefined"!=typeof navigator&&navigator.geolocation?"undefined"!=typeof window&&!1===window.isSecureContext?t(null):void navigator.geolocation.getCurrentPosition(e=>t({latitude:e.coords.latitude,longitude:e.coords.longitude,accuracy:e.coords.accuracy}),()=>t(null),{..._n,...e}):t(null))}async function Pn(e,t,n={}){if("number"!=typeof e||"number"!=typeof t)return null;const r=n.timeoutMs||Cn.timeoutMs||5e3,a=`https://api.bigdatacloud.net/data/reverse-geocode-client?latitude=${e}&longitude=${t}&localityLanguage=${n.localityLanguage||"en"}`;try{const n=await Nn(a,r),o=n.city||n.locality||"";return o||n.countryName?{city:o,region:n.principalSubdivision||"",regionCode:(n.principalSubdivisionCode||"").split("-").pop()||"",country:n.countryName||"",countryCode:n.countryCode||"",latitude:e,longitude:t}:null}catch{return null}}var Ln={configureGeo:function(e={}){e.apiKeys&&(Cn.apiKeys={...Cn.apiKeys,...e.apiKeys}),void 0!==e.preferredProvider&&(Cn.preferredProvider=e.preferredProvider),void 0!==e.timeoutMs&&(Cn.timeoutMs=e.timeoutMs)},resolveLocation:async function(e,t={}){const n={apiKeys:{...Cn.apiKeys,...t.apiKeys||{}},preferredProvider:t.preferredProvider||Cn.preferredProvider,timeoutMs:t.timeoutMs||Cn.timeoutMs};let r=In(n.apiKeys);if(n.preferredProvider){const e=r.findIndex(e=>e.name===n.preferredProvider);if(e>0){const[t]=r.splice(e,1);r.unshift(t)}}for(const t of r)try{const r=await Nn(t.buildUrl(e),n.timeoutMs);return{...t.parse(r),source:t.name,tier:t.tier}}catch{}return null},listProviders:function(e={}){return In({...Cn.apiKeys,...e}).map(({name:e,tier:t,freeLimit:n,signup:r})=>({name:e,tier:t,freeLimit:n,signup:r||"—"}))},getBrowserGeolocation:Rn,getGeolocationPermission:async function(){try{if("undefined"==typeof navigator||!navigator.permissions||!navigator.permissions.query)return"unsupported";return(await navigator.permissions.query({name:"geolocation"})).state}catch{return"unsupported"}},reverseGeocode:Pn,getBrowserLocation:async function(e={}){const t=await Rn(e);if(!t)return null;const n=await Pn(t.latitude,t.longitude,e),r=!(!n||!n.city&&!n.country);return{...r?n:{},latitude:t.latitude,longitude:t.longitude,accuracy:t.accuracy,...r?{source:"gps"}:{}}},toMapsUrl:function(e,t){return`https://www.google.com/maps?q=${e},${t}`}};const Dn="__ut_sid__",Mn="__ut_uid__",jn="__ut_meta__";function Fn(){const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;const t=Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("");return[t.slice(0,8),t.slice(8,12),t.slice(12,16),t.slice(16,20),t.slice(20)].join("-")}function Bn(e,t){try{return e.getItem(t)}catch{return null}}function Un(e,t,n){try{return e.setItem(t,n),!0}catch{return!1}}var zn={getOrCreateUserID:function(){let e=Bn(localStorage,Mn),t=!1;return e||(e=Fn(),t=!0,Un(localStorage,Mn,e)),{uid:e,isNew:t}},getOrCreateSessionID:function(){let e=Bn(sessionStorage,Dn),t=!1;return e||(e=Fn(),t=!0,Un(sessionStorage,Dn,e)),{sid:e,isNew:t}},saveSessionMeta:function(e){try{const t=JSON.stringify({...e,savedAt:(new Date).toISOString()});Un(localStorage,jn,t)}catch{}},loadSessionMeta:function(){try{const e=Bn(localStorage,jn);return e?JSON.parse(e):null}catch{return null}},clearSession:function(){try{localStorage.removeItem(Mn)}catch{}try{localStorage.removeItem(jn)}catch{}try{sessionStorage.removeItem(Dn)}catch{}},getBrowserContext:function(){return{userAgent:navigator.userAgent,platform:navigator.platform||"unknown",language:navigator.language||"unknown",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,screenRes:`${screen.width}x${screen.height}`,viewportRes:`${window.innerWidth}x${window.innerHeight}`,colorDepth:screen.colorDepth,touchSupport:navigator.maxTouchPoints>0,cookieEnabled:navigator.cookieEnabled,referrer:document.referrer||null,currentUrl:window.location.href,loadedAt:(new Date).toISOString()}}};const{generateFingerprint:$n}=En,{detectIP:Gn,getIPVersion:qn}=On,{configureGeo:Hn,resolveLocation:Vn,listProviders:Wn,getBrowserGeolocation:Yn,getGeolocationPermission:Kn,reverseGeocode:Xn,getBrowserLocation:Zn,toMapsUrl:Qn}=Ln,{getOrCreateUserID:Jn,getOrCreateSessionID:er,saveSessionMeta:tr,loadSessionMeta:nr,clearSession:rr,getBrowserContext:ar}=zn;mn.exports=class{constructor(e={}){this._options={onReady:e.onReady||null,onError:e.onError||null,geoFromBrowser:void 0===e.geoFromBrowser||e.geoFromBrowser,geoApiKeys:e.geoApiKeys||null,geoOptions:e.geoOptions||null,cache:!1!==e.cache,maxAgeMs:e.maxAgeMs||3e5,autoInit:e.autoInit||!1,webhookUrl:e.webhookUrl||null},this.profile=null,this._ready=!1,this._options.autoInit&&this.init().catch(()=>{})}async init(){if(this._options.cache){const e=nr();if(e&&e.savedAt){if(Date.now()-new Date(e.savedAt).getTime()<this._options.maxAgeMs)return this.profile=e,this._ready=!0,this._options.onReady&&this._options.onReady(this.profile),this.profile}}try{const{uid:e,isNew:t}=Jn(),{sid:n,isNew:r}=er(),{id:a,signals:o,confidence:i}=$n(),s=this._options.geoApiKeys?{apiKeys:this._options.geoApiKeys}:{},[l,c]=await Promise.all([(async()=>{const e=await Gn(),t=e?.ip||"unknown",n="unknown"!==t?await Vn(t,s):null;return{ip:t,ipVersion:e?qn(t):"unknown",geo:n}})(),this._collectBrowserLocation()]),{ip:u,ipVersion:d}=l;let p=l.geo,f=null;c&&(f={latitude:c.latitude,longitude:c.longitude,accuracy:c.accuracy},"gps"===c.source&&(p={...p||{},...c}));const g=ar();return this.profile={uid:e,sid:n,isNewUser:t,isNewSession:r,fingerprintId:a,fingerprintConfidence:i,ip:u,ipVersion:d,geo:p||null,browserGeo:f||null,browser:g,raw:o,createdAt:(new Date).toISOString(),...p?{mapsUrl:Qn(p.latitude,p.longitude)}:{}},tr(this.profile),this._options.webhookUrl&&this._sendToWebhook(this.profile),this._ready=!0,this._options.onReady&&this._options.onReady(this.profile),this.profile}catch(e){throw this._options.onError&&this._options.onError(e),e}}async _collectBrowserLocation(){const e=this._options.geoFromBrowser;if(!e)return null;if("auto"===e){if("granted"!==await Kn())return null}return Zn(this._options.geoOptions||{})}async captureBrowserLocation(e={}){const t=await Zn({...this._options.geoOptions||{},...e});return t&&this.profile?(this.profile.browserGeo={latitude:t.latitude,longitude:t.longitude,accuracy:t.accuracy},this.profile.mapsUrl=Qn(t.latitude,t.longitude),"gps"===t.source&&(this.profile.geo={...this.profile.geo||{},...t}),tr(this.profile),this._options.onReady&&this._options.onReady(this.profile),this.profile):this.profile}getProfile(){return this.profile}isKnownUser(e){return this.profile?.uid===e}async refresh(){return rr(),this.profile=null,this._ready=!1,this.init()}clear(){rr(),this.profile=null,this._ready=!1}getSummary(){if(!this.profile)return null;const{uid:e,sid:t,fingerprintId:n,ip:r,geo:a,browser:o,createdAt:i}=this.profile;return{uid:e,sid:t,fingerprintId:n,ip:r,country:a?.country||"unknown",city:a?.city||"unknown",isp:a?.isp||"unknown",proxy:a?.proxy||!1,timezone:a?.timezone||o.timezone,userAgent:o.userAgent,language:o.language,createdAt:i}}async _sendToWebhook(e){try{await fetch(this._options.webhookUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch{}}};var or=mn.exports.generateFingerprint=$n,ir=mn.exports.detectIP=Gn,sr=mn.exports.configureGeo=Hn,lr=mn.exports.resolveLocation=Vn,cr=mn.exports.listProviders=Wn,ur=mn.exports.getBrowserGeolocation=Yn,dr=mn.exports.getGeolocationPermission=Kn,pr=mn.exports.reverseGeocode=Xn,fr=mn.exports.getBrowserLocation=Zn,gr=mn.exports.getOrCreateUserID=Jn,mr=mn.exports.getOrCreateSessionID=er,hr=mn.exports.clearSession=rr,br=mn.exports.getBrowserContext=ar,yr=mn.exports,vr=o({__proto__:null,clearSession:hr,configureGeo:sr,default:yr,detectIP:ir,generateFingerprint:or,getBrowserContext:br,getBrowserGeolocation:ur,getBrowserLocation:fr,getGeolocationPermission:dr,getOrCreateSessionID:mr,getOrCreateUserID:gr,listProviders:cr,resolveLocation:lr,reverseGeocode:pr},[yr]),wr={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,a,o){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var a=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var a in n)n.hasOwnProperty(a)&&("style"==a?t.style.cssText=n[a]:t.setAttribute(a,n[a]));return r&&t.appendChild(e.c.createTextNode(r)),t}function l(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),a=0;a<t.length;a+=1){for(var o=!1,i=0;i<r.length;i+=1)if(t[a]===r[i]){o=!0;break}o||r.push(t[a])}for(t=[],a=0;a<r.length;a+=1){for(o=!1,i=0;i<n.length;i+=1)if(r[a]===n[i]){o=!0;break}o||t.push(r[a])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(e,t){for(var n=e.className.split(/\s+/),r=0,a=n.length;r<a;r++)if(n[r]==t)return!0;return!1}function p(e,t,n){function r(){u&&a&&o&&(u(c),u=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var a=!1,o=!0,c=null,u=n||null;i?(t.onload=function(){a=!0,r()},t.onerror=function(){a=!0,c=Error("Stylesheet failed to load"),r()}):setTimeout(function(){a=!0,r()},0),l(e,"head",t)}function f(e,t,n,r){var a=e.c.getElementsByTagName("head")[0];if(a){var o=s(e,"script",{src:t}),i=!1;return o.onload=o.onreadystatechange=function(){i||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(i=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&a.removeChild(o))},a.appendChild(o),setTimeout(function(){i||(i=!0,n&&n(Error("Script load timeout")))},r||5e3),o}return null}function g(){this.a=0,this.c=null}function m(e){return e.a++,function(){e.a--,b(e)}}function h(e,t){e.c=t,b(e)}function b(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function v(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function S(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function E(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function k(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function A(e){if(e.g){var t=d(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),u(e.f,n,r)}T(e,"inactive")}function T(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,S(n)):e.h[t]())}function O(){this.c={}}function C(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function I(e){l(e.c,"body",e.a)}function N(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function _(e,t,n,r,a,o){this.g=e,this.j=t,this.a=r,this.c=n,this.f=a||3e3,this.h=o||void 0}function R(e,t,n,r,a,o,i){this.v=e,this.B=t,this.c=n,this.a=r,this.s=i||"BESbswy",this.f={},this.w=a||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new C(this.c,this.s),this.h=new C(this.c,this.s),this.j=new C(this.c,this.s),this.m=new C(this.c,this.s),e=N(e=new v(this.a.c+",serif",S(this.a))),this.g.a.style.cssText=e,e=N(e=new v(this.a.c+",sans-serif",S(this.a))),this.h.a.style.cssText=e,e=N(e=new v("serif",S(this.a))),this.j.a.style.cssText=e,e=N(e=new v("sans-serif",S(this.a))),this.m.a.style.cssText=e,I(this.g),I(this.h),I(this.j),I(this.m)}y.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},_.prototype.start=function(){var e=this.c.o.document,t=this,n=a(),r=new Promise(function(r,o){!function i(){a()-n>=t.f?o():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then(function(e){1<=e.length?r():setTimeout(i,25)},function(){o()})}()}),o=null,i=new Promise(function(e,n){o=setTimeout(n,t.f)});Promise.race([i,r]).then(function(){o&&(clearTimeout(o),o=null),t.g(t.a)},function(){t.j(t.a)})};var P={D:"serif",C:"sans-serif"},L=null;function D(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function M(e,t,n){for(var r in P)if(P.hasOwnProperty(r)&&t===e.f[P[r]]&&n===e.f[P[r]])return!0;return!1}function j(e){var t,n=e.g.a.offsetWidth,o=e.h.a.offsetWidth;(t=n===e.f.serif&&o===e.f["sans-serif"])||(t=D()&&M(e,n,o)),t?a()-e.A>=e.w?D()&&M(e,n,o)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?F(e,e.v):F(e,e.B):function(e){setTimeout(r(function(){j(this)},e),50)}(e):F(e,e.v)}function F(e,t){setTimeout(r(function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)},e),0)}function B(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),j(this)};var U=null;function z(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),T(e,"active")):A(e.a))}function $(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function G(e,t,n,a,o){var i=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=o||null,s=a||{};if(0===n.length&&i)A(t.a);else{t.f+=n.length,i&&(t.j=i);var l,c=[];for(l=0;l<n.length;l++){var d=n[l],p=s[d.c],f=t.a,g=d;if(f.g&&u(f.f,[f.a.c("wf",g.c,S(g).toString(),"loading")]),T(f,"fontloading",g),f=null,null===U)if(window.FontFace){g=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);U=g?42<parseInt(g[1],10):!m}else U=!1;f=U?new _(r(t.g,t),r(t.h,t),t.c,d,t.s,p):new R(r(t.g,t),r(t.h,t),t.c,d,t.s,e,p),c.push(f)}for(l=0;l<c.length;l++)c[l].start()}},0)}function q(e,t){this.c=e,this.a=t}function H(e,t){this.c=e,this.a=t}function V(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,S(e).toString(),"active")],[t.a.c("wf",e.c,S(e).toString(),"loading"),t.a.c("wf",e.c,S(e).toString(),"inactive")]),T(t,"fontactive",e),this.m=!0,z(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var n=d(t.f,t.a.c("wf",e.c,S(e).toString(),"active")),r=[],a=[t.a.c("wf",e.c,S(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,S(e).toString(),"inactive")),u(t.f,r,a)}T(t,"fontinactive",e),z(this)},$.prototype.load=function(e){this.c=new o(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],a=n.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),T(e,"loading")}(t);r=function(e,t,n){var r,a=[];for(r in t)if(t.hasOwnProperty(r)){var o=e.c[r];o&&a.push(o(t[r],n))}return a}(e.a,n,e.c);var o=new B(e.c,t,a);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load(function(t,n,r){G(e,o,t,n,r)})}(this,new k(this.c,e),e)},q.prototype.load=function(e){function t(){if(o["__mti_fntLst"+r]){var n,a=o["__mti_fntLst"+r](),i=[];if(a)for(var s=0;s<a.length;s++){var l=a[s].fontfamily;null!=a[s].fontStyle&&null!=a[s].fontWeight?(n=a[s].fontStyle+a[s].fontWeight,i.push(new v(l,n))):i.push(new v(l))}e(i)}else setTimeout(function(){t()},50)}var n=this,r=n.a.projectId,a=n.a.version;if(r){var o=n.c.o;f(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(a?"?v="+a:""),function(a){a?e([]):(o["__MonotypeConfiguration__"+r]=function(){return n.a},t())}).id="__MonotypeAPIScript__"+r}else e([])},H.prototype.load=function(e){var t,n,r=this.a.urls||[],a=this.a.families||[],o=this.a.testStrings||{},i=new g;for(t=0,n=r.length;t<n;t++)p(this.c,r[t],m(i));var s=[];for(t=0,n=a.length;t<n;t++)if((r=a[t].split(":"))[1])for(var l=r[1].split(","),c=0;c<l.length;c+=1)s.push(new v(r[0],l[c]));else s.push(new v(r[0]));h(i,function(){e(s,o)})};var W="https://fonts.googleapis.com/css";function Y(e){this.f=e,this.a=[],this.c={}}var K={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},X={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Z={i:"i",italic:"i",n:"n",normal:"n"},Q=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function J(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new g,n=this.c,r=new V(this.a.api,this.a.text),a=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var a=t[r].split(":");3==a.length&&e.f.push(a.pop());var o="";2==a.length&&""!=a[1]&&(o=":"),e.a.push(a.join(o))}}(r,a);var o=new Y(a);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),a=r[0].replace(/\+/g," "),o=["n4"];if(2<=r.length){var i;if(i=[],s=r[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var u;if((u=s[c]).match(/^[\w-]+$/))if(null==(d=Q.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":Z[u],null==(d=d[1])||""==d)d="4";else var d=X[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&i.push(u)}0<i.length&&(o=i),3==r.length&&(i=[],0<(r=(r=r[2])?r.split(","):i).length&&(r=K[r[0]])&&(e.c[a]=r))}for(e.c[a]||(r=K[a])&&(e.c[a]=r),r=0;r<o.length;r+=1)e.a.push(new v(a,o[r]))}}(o),p(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),m(t)),h(t,function(){e(o.a,o.c,ee)})},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?f(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],a=0;a<t.length;a+=2)for(var o=t[a],i=t[a+1],s=0;s<i.length;s++)r.push(new v(o,i[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}},2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var a=0,o=n.fonts.length;a<o;++a){var i=n.fonts[a];r.a.push(new v(i.name,E("font-weight:"+i.weight+";font-style:"+i.style)))}e(r.a)},f(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var re=new $(window);re.a.c.custom=function(e,t){return new H(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new q(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new J(t,e)};var ae={load:r(re.load,re)};e.exports?e.exports=ae:(window.WebFont=ae,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(wr);var Sr=wr.exports,xr=o({__proto__:null,default:Sr},[Sr]);function Er(){}function kr(){}const Ar=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Tr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Or={};function Cr(e,t){return(Or.jsx?Tr:Ar).test(e)}const Ir=/[ \t\n\f\r]/g;function Nr(e){return""===e.replace(Ir,"")}let _r=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function Rr(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new _r(n,r,t)}function Pr(e){return e.toLowerCase()}_r.prototype.normal={},_r.prototype.property={},_r.prototype.space=void 0;let Lr=class{constructor(e,t){this.attribute=t,this.property=e}};Lr.prototype.attribute="",Lr.prototype.booleanish=!1,Lr.prototype.boolean=!1,Lr.prototype.commaOrSpaceSeparated=!1,Lr.prototype.commaSeparated=!1,Lr.prototype.defined=!1,Lr.prototype.mustUseProperty=!1,Lr.prototype.number=!1,Lr.prototype.overloadedBoolean=!1,Lr.prototype.property="",Lr.prototype.spaceSeparated=!1,Lr.prototype.space=void 0;let Dr=0;const Mr=Gr(),jr=Gr(),Fr=Gr(),Br=Gr(),Ur=Gr(),zr=Gr(),$r=Gr();function Gr(){return 2**++Dr}var qr=Object.freeze({__proto__:null,boolean:Mr,booleanish:jr,commaOrSpaceSeparated:$r,commaSeparated:zr,number:Br,overloadedBoolean:Fr,spaceSeparated:Ur});const Hr=Object.keys(qr);let Vr=class extends Lr{constructor(e,t,n,r){let a=-1;if(super(e,t),Wr(this,"space",r),"number"==typeof n)for(;++a<Hr.length;){const e=Hr[a];Wr(this,Hr[a],(n&qr[e])===qr[e])}}};function Wr(e,t,n){n&&(e[t]=n)}function Yr(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new Vr(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Pr(r)]=r,n[Pr(o.attribute)]=r}return new _r(t,n,e.space)}Vr.prototype.defined=!0;const Kr=Yr({properties:{ariaActiveDescendant:null,ariaAtomic:jr,ariaAutoComplete:null,ariaBusy:jr,ariaChecked:jr,ariaColCount:Br,ariaColIndex:Br,ariaColSpan:Br,ariaControls:Ur,ariaCurrent:null,ariaDescribedBy:Ur,ariaDetails:null,ariaDisabled:jr,ariaDropEffect:Ur,ariaErrorMessage:null,ariaExpanded:jr,ariaFlowTo:Ur,ariaGrabbed:jr,ariaHasPopup:null,ariaHidden:jr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ur,ariaLevel:Br,ariaLive:null,ariaModal:jr,ariaMultiLine:jr,ariaMultiSelectable:jr,ariaOrientation:null,ariaOwns:Ur,ariaPlaceholder:null,ariaPosInSet:Br,ariaPressed:jr,ariaReadOnly:jr,ariaRelevant:null,ariaRequired:jr,ariaRoleDescription:Ur,ariaRowCount:Br,ariaRowIndex:Br,ariaRowSpan:Br,ariaSelected:jr,ariaSetSize:Br,ariaSort:null,ariaValueMax:Br,ariaValueMin:Br,ariaValueNow:Br,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Xr(e,t){return t in e?e[t]:t}function Zr(e,t){return Xr(e,t.toLowerCase())}const Qr=Yr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zr,acceptCharset:Ur,accessKey:Ur,action:null,allow:null,allowFullScreen:Mr,allowPaymentRequest:Mr,allowUserMedia:Mr,alt:null,as:null,async:Mr,autoCapitalize:null,autoComplete:Ur,autoFocus:Mr,autoPlay:Mr,blocking:Ur,capture:null,charSet:null,checked:Mr,cite:null,className:Ur,cols:Br,colSpan:null,content:null,contentEditable:jr,controls:Mr,controlsList:Ur,coords:Br|zr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mr,defer:Mr,dir:null,dirName:null,disabled:Mr,download:Fr,draggable:jr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mr,formTarget:null,headers:Ur,height:Br,hidden:Fr,high:Br,href:null,hrefLang:null,htmlFor:Ur,httpEquiv:Ur,id:null,imageSizes:null,imageSrcSet:null,inert:Mr,inputMode:null,integrity:null,is:null,isMap:Mr,itemId:null,itemProp:Ur,itemRef:Ur,itemScope:Mr,itemType:Ur,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mr,low:Br,manifest:null,max:null,maxLength:Br,media:null,method:null,min:null,minLength:Br,multiple:Mr,muted:Mr,name:null,nonce:null,noModule:Mr,noValidate:Mr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Mr,optimum:Br,pattern:null,ping:Ur,placeholder:null,playsInline:Mr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mr,referrerPolicy:null,rel:Ur,required:Mr,reversed:Mr,rows:Br,rowSpan:Br,sandbox:Ur,scope:null,scoped:Mr,seamless:Mr,selected:Mr,shadowRootClonable:Mr,shadowRootDelegatesFocus:Mr,shadowRootMode:null,shape:null,size:Br,sizes:null,slot:null,span:Br,spellCheck:jr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Br,step:null,style:null,tabIndex:Br,target:null,title:null,translate:null,type:null,typeMustMatch:Mr,useMap:null,value:jr,width:Br,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ur,axis:null,background:null,bgColor:null,border:Br,borderColor:null,bottomMargin:Br,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mr,declare:Mr,event:null,face:null,frame:null,frameBorder:null,hSpace:Br,leftMargin:Br,link:null,longDesc:null,lowSrc:null,marginHeight:Br,marginWidth:Br,noResize:Mr,noHref:Mr,noShade:Mr,noWrap:Mr,object:null,profile:null,prompt:null,rev:null,rightMargin:Br,rules:null,scheme:null,scrolling:jr,standby:null,summary:null,text:null,topMargin:Br,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Br,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mr,disableRemotePlayback:Mr,prefix:null,property:null,results:Br,security:null,unselectable:null},space:"html",transform:Zr}),Jr=Yr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:$r,accentHeight:Br,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Br,amplitude:Br,arabicForm:null,ascent:Br,attributeName:null,attributeType:null,azimuth:Br,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Br,by:null,calcMode:null,capHeight:Br,className:Ur,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Br,diffuseConstant:Br,direction:null,display:null,dur:null,divisor:Br,dominantBaseline:null,download:Mr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Br,enableBackground:null,end:null,event:null,exponent:Br,externalResourcesRequired:null,fill:null,fillOpacity:Br,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zr,g2:zr,glyphName:zr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Br,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Br,horizOriginX:Br,horizOriginY:Br,id:null,ideographic:Br,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Br,k:Br,k1:Br,k2:Br,k3:Br,k4:Br,kernelMatrix:$r,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Br,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Br,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Br,overlineThickness:Br,paintOrder:null,panose1:null,path:null,pathLength:Br,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ur,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Br,pointsAtY:Br,pointsAtZ:Br,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$r,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$r,rev:$r,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$r,requiredFeatures:$r,requiredFonts:$r,requiredFormats:$r,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Br,specularExponent:Br,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Br,strikethroughThickness:Br,string:null,stroke:null,strokeDashArray:$r,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Br,strokeOpacity:Br,strokeWidth:null,style:null,surfaceScale:Br,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$r,tabIndex:Br,tableValues:null,target:null,targetX:Br,targetY:Br,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$r,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Br,underlineThickness:Br,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Br,values:null,vAlphabetic:Br,vMathematical:Br,vectorEffect:null,vHanging:Br,vIdeographic:Br,version:null,vertAdvY:Br,vertOriginX:Br,vertOriginY:Br,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Br,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xr}),ea=Yr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),ta=Yr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zr}),na=Yr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ra={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},aa=/[A-Z]/g,oa=/-[a-z]/g,ia=/^data[-\w.:]+$/i;function sa(e){return"-"+e.toLowerCase()}function la(e){return e.charAt(1).toUpperCase()}const ca=Rr([Kr,Qr,ea,ta,na],"html"),ua=Rr([Kr,Jr,ea,ta,na],"svg");var da={},pa=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,fa=/\n/g,ga=/^\s*/,ma=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ha=/^:\s*/,ba=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ya=/^[;\s]*/,va=/^\s+|\s+$/g,wa="";function Sa(e){return e?e.replace(va,wa):wa}var xa=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(e){var t=e.match(fa);t&&(n+=t.length);var a=e.lastIndexOf("\n");r=~a?e.length-a:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new i(e),c(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(a){var o=new Error(t.source+":"+n+":"+r+": "+a);if(o.reason=a,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function l(t){var n=t.exec(e);if(n){var r=n[0];return a(r),e=e.slice(r.length),n}}function c(){l(ga)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;wa!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,wa===e.charAt(n-1))return s("End of comment missing");var i=e.slice(2,n-2);return r+=2,a(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function p(){var e=o(),t=l(ma);if(t){if(d(),!l(ha))return s("property missing ':'");var n=l(ba),r=e({type:"declaration",property:Sa(t[0].replace(pa,wa)),value:n?Sa(n[0].replace(pa,wa)):wa});return l(ya),r}}return i.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()},Ea=gn&&gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(da,"__esModule",{value:!0}),da.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,ka.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:o}=e;a?t(r,o,e):o&&(n=n||{},n[r]=o)}),n};const ka=Ea(xa);var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.camelCase=void 0;var Ta=/^--[a-zA-Z0-9_-]+$/,Oa=/-([a-z])/g,Ca=/^[^-]+$/,Ia=/^-(webkit|moz|ms|o|khtml)-/,Na=/^-(ms)-/,_a=function(e,t){return t.toUpperCase()},Ra=function(e,t){return"".concat(t,"-")};Aa.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Ca.test(e)||Ta.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Na,Ra):e.replace(Ia,Ra)).replace(Oa,_a))};var Pa=(gn&&gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(da),La=Aa;function Da(e,t){var n={};return e&&"string"==typeof e?((0,Pa.default)(e,function(e,r){e&&r&&(n[(0,La.camelCase)(e,t)]=r)}),n):n}Da.default=Da;var Ma=Da;const ja=Ba("end"),Fa=Ba("start");function Ba(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Ua(e){return e&&"object"==typeof e?"position"in e||"type"in e?$a(e.position):"start"in e||"end"in e?$a(e):"line"in e||"column"in e?za(e):"":""}function za(e){return Ga(e&&e.line)+":"+Ga(e&&e.column)}function $a(e){return za(e&&e.start)+"-"+za(e&&e.end)}function Ga(e){return e&&"number"==typeof e?e:1}class qa extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(o=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=i?i.line:void 0,this.name=Ua(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qa.prototype.file="",qa.prototype.name="",qa.prototype.reason="",qa.prototype.message="",qa.prototype.stack="",qa.prototype.column=void 0,qa.prototype.line=void 0,qa.prototype.ancestors=void 0,qa.prototype.cause=void 0,qa.prototype.fatal=void 0,qa.prototype.place=void 0,qa.prototype.ruleId=void 0,qa.prototype.source=void 0;const Ha={}.hasOwnProperty,Va=new Map,Wa=/[A-Z]/g,Ya=new Set(["table","tbody","thead","tfoot","tr"]),Ka=new Set(["td","th"]),Xa="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Za(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,a,o){const i=Array.isArray(a.children),s=Fa(n);return t(r,a,o,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,a,o){const i=Array.isArray(a.children)?n:t;return o?i(r,a,o):i(r,a)}}(0,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ua:ca,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=Qa(a,e,void 0);return o&&"string"!=typeof o?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function Qa(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=ua,e.schema=a);e.ancestors.push(t);const o=ro(e,t.tagName,!1),i=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&Ha.call(t.properties,a)){const o=no(e,a,t.properties[a]);if(o){const[a,i]=o;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof i&&Ka.has(t.tagName)?r=i:n[a]=i}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=to(e,t);Ya.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Nr(t.value):Nr(t));var t}));return Ja(e,i,o,t),eo(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ao(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=ua,e.schema=a);e.ancestors.push(t);const o=null===t.name?e.Fragment:ro(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];Er(t.type);const a=t.expression;Er(a.type);const o=a.properties[0];Er(o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ao(e,t.position);else{const a=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];Er(t.type),o=e.evaluater.evaluateExpression(t.expression)}else ao(e,t.position);else o=null===r.value||r.value;n[a]=o}return n}(e,t),s=to(e,t);return Ja(e,i,o,t),eo(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ao(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return eo(r,to(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Ja(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eo(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function to(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Va;for(;++r<t.children.length;){const o=t.children[r];let i;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=a.get(e)||0;i=e+"-"+t,a.set(e,t+1)}}const s=Qa(e,o,i);void 0!==s&&n.push(s)}return n}function no(e,t,n){const r=function(e,t){const n=Pr(t);let r=t,a=Lr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ia.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(oa,la);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!oa.test(e)){let n=e.replace(aa,sa);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=Vr}return new a(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Ma(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new qa("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Xa+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Ha.call(e,n)&&(t[oo(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ra[r.property]||r.property:r.attribute,n]}}function ro(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=Cr(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=Cr(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Ha.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ao(e)}function ao(e,t){const n=new qa("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Xa+"#cannot-handle-mdx-estrees-without-createevaluater",n}function oo(e){let t=e.replace(Wa,io);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function io(e){return"-"+e.toLowerCase()}const so={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},lo={};function co(e,t){return uo(e,"boolean"!=typeof lo.includeImageAlt||lo.includeImageAlt,"boolean"!=typeof lo.includeHtml||lo.includeHtml)}function uo(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return po(e.children,t,n)}return Array.isArray(e)?po(e,t,n):""}function po(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=uo(e[a],t,n);return r.join("")}const fo={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",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:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",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:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},go={}.hasOwnProperty;function mo(e){return!!go.call(fo,e)&&fo[e]}function ho(e,t,n,r){const a=e.length;let o,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function bo(e,t){return e.length>0?(ho(e,e.length,0,t),e):t}const yo={}.hasOwnProperty;function vo(e){const t={};let n=-1;for(;++n<e.length;)wo(t,e[n]);return t}function wo(e,t){let n;for(n in t){const r=(yo.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){yo.call(r,o)||(r[o]=[]);const e=a[o];So(r[o],Array.isArray(e)?e:e?[e]:[])}}}function So(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ho(e,0,0,r)}function xo(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Eo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ko=Mo(/[A-Za-z]/),Ao=Mo(/[\dA-Za-z]/),To=Mo(/[#-'*+\--9=?A-Z^-~]/);function Oo(e){return null!==e&&(e<32||127===e)}const Co=Mo(/\d/),Io=Mo(/[\dA-Fa-f]/),No=Mo(/[!-/:-@[-`{-~]/);function _o(e){return null!==e&&e<-2}function Ro(e){return null!==e&&(e<0||32===e)}function Po(e){return-2===e||-1===e||32===e}const Lo=Mo(/\p{P}|\p{S}/u),Do=Mo(/\s/);function Mo(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function jo(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let i="";if(37===o&&Ao(e.charCodeAt(n+1))&&Ao(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(i=String.fromCharCode(o,t),a=1):i="�"}else i=String.fromCharCode(o);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Fo(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(Po(r))return e.enter(n),i(r);return t(r)};function i(r){return Po(r)&&o++<a?(e.consume(r),i):(e.exit(n),t(r))}}const Bo={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Fo(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):_o(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const Uo={tokenize:function(e){const t=this,n=[];let r,a,o,i=0;return s;function s(r){if(i<n.length){const a=n[i];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(r)}return c(r)}function l(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let a,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){a=t.events[o][1].end;break}b(i);let s=n;for(;s<t.events.length;)t.events[s][1].end={...a},s++;return ho(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(a){if(i===n.length){if(!r)return p(a);if(r.currentConstruct&&r.currentConstruct.concrete)return g(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zo,u,d)(a)}function u(e){return r&&y(),b(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,g(e)}function p(n){return t.containerState={},e.attempt(zo,f,g)(n)}function f(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function g(n){return null===n?(r&&y(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),m(n))}function m(n){return null===n?(h(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):_o(n)?(e.consume(n),h(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(n),m)}function h(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let a,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){s=t.events[l][1].end;break}a=!0}for(b(i),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;ho(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},zo={tokenize:function(e,t,n){return Fo(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function $o(e){return null===e||Ro(e)||Do(e)?1:Lo(e)?2:void 0}function Go(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const qo={name:"attention",resolveAll:function(e,t){let n,r,a,o,i,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};Ho(d,-s),Ho(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...i.end}},e[n][1].end={...o.start},e[u][1].start={...i.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=bo(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=bo(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=bo(l,Go(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=bo(l,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=bo(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ho(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=$o(r);let o;return function(t){return o=t,e.enter("attentionSequence"),i(t)};function i(s){if(s===o)return e.consume(s),i;const l=e.exit("attentionSequence"),c=$o(s),u=!c||2===c&&a||n.includes(s),d=!a||2===a&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(a||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}}};function Ho(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Vo={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return ko(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||Ao(e)?(r=1,i(e)):l(e)}function i(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Ao(t))&&r++<32?(e.consume(t),i):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Oo(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):To(t)?(e.consume(t),l):n(t)}function c(e){return Ao(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Ao(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const Wo={partial:!0,tokenize:function(e,t,n){return function(t){return Po(t)?Fo(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||_o(e)?t(e):n(e)}}};const Yo={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Po(t))return Fo(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(Yo,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return Po(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const Ko={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return No(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Xo={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,o,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=Ao,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Io,c):(e.enter("characterReferenceValue"),a=7,o=Co,c(t))}function c(s){if(59===s&&i){const a=e.exit("characterReferenceValue");return o!==Ao||mo(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&i++<a?(e.consume(s),c):n(s)}}};const Zo={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Qo={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Po(t)?Fo(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(a++,e.consume(t),u):a>=s?(e.exit("codeFencedFenceSequence"),Po(t)?Fo(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||_o(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,i=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Po(t)?Fo(e,c,"whitespace")(t):c(t))}function c(n){return null===n||_o(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Zo,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||_o(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Po(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Fo(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||_o(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||_o(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function f(t){return e.attempt(a,y,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&Po(t)?Fo(e,h,"linePrefix",i+1)(t):h(t)}function h(t){return null===t||_o(t)?e.check(Zo,f,y)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||_o(t)?(e.exit("codeFlowValue"),h(t)):(e.consume(t),b)}function y(n){return e.exit("codeFenced"),t(n)}}};const Jo={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Fo(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):_o(t)?e.attempt(ei,o,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||_o(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},ei={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):_o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):Fo(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):_o(e)?a(e):n(e)}}};const ti={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}t=a-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),o++,i):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),r=0,c(t)):_o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||_o(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}};class ni{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&ri(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ri(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ri(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);ri(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ri(this.left,t.reverse())}}}function ri(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ai(e){const t={};let n,r,a,o,i,s,l,c=-1;const u=new ni(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,oi(u,c)),c=t[c],l=!0);else if(n[1]._container){for(a=c,r=void 0;a--;)if(o=u.get(a),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=a);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return ho(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function oi(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,l=[],c={};let u,d,p=-1,f=n,g=0,m=0;const h=[m];for(;f;){for(;e.get(++a)[1]!==f;);o.push(a),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,h.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):h.pop(),p=h.length;p--;){const t=s.slice(h[p],h[p+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return c}const ii={resolve:function(e){return ai(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):_o(t)?e.check(si,o,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},si={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Fo(e,a,"linePrefix")};function a(a){if(null===a||_o(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}};function li(e,t,n,r,a,o,i,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||Oo(t))return n(t);return e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||_o(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function g(a){return u||null!==a&&41!==a&&!Ro(a)?u<c&&40===a?(e.consume(a),u++,g):41===a?(e.consume(a),u--,g):null===a||32===a||40===a||Oo(a)?n(a):(e.consume(a),92===a?m:g):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}function ci(e,t,n,r,a,o){const i=this;let s,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(o),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):_o(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||_o(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Po(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function ui(e,t,n,r,a,o){let i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,s;return n(t)};function s(n){return n===i?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===i?(e.exit(o),s(i)):null===t?n(t):_o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Fo(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||_o(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function di(e,t){let n;return function r(a){if(_o(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(Po(a))return Fo(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}const pi={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return ci.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return a=Eo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return Ro(t)?di(e,s)(t):s(t)}function s(t){return li(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(fi,c,c)(t)}function c(t){return Po(t)?Fo(e,u,"whitespace")(t):u(t)}function u(o){return null===o||_o(o)?(e.exit("definition"),r.parser.defined.push(a),t(o)):n(o)}}},fi={partial:!0,tokenize:function(e,t,n){return function(t){return Ro(t)?di(e,r)(t):n(t)};function r(t){return ui(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return Po(t)?Fo(e,o,"whitespace")(t):o(t)}function o(e){return null===e||_o(e)?t(e):n(e)}}};const gi={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return _o(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const mi={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);a-2>o&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4);a>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},r={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},ho(e,o,a-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||Ro(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||_o(n)?(e.exit("atxHeading"),t(n)):Po(n)?Fo(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||Ro(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}};const hi=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bi=["pre","script","style","textarea"],yi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let a,o,i,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,f):63===s?(e.consume(s),a=3,r.interrupt?t:L):ko(s)?(e.consume(s),i=String.fromCharCode(s),g):n(s)}function u(o){return 45===o?(e.consume(o),a=2,d):91===o?(e.consume(o),a=5,s=0,p):ko(o)?(e.consume(o),a=4,r.interrupt?t:L):n(o)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:L):n(a)}function p(a){const o="CDATA[";return a===o.charCodeAt(s++)?(e.consume(a),6===s?r.interrupt?t:T:p):n(a)}function f(t){return ko(t)?(e.consume(t),i=String.fromCharCode(t),g):n(t)}function g(s){if(null===s||47===s||62===s||Ro(s)){const l=47===s,c=i.toLowerCase();return l||o||!bi.includes(c)?hi.includes(i.toLowerCase())?(a=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?h(s):b(s)):(a=1,r.interrupt?t(s):T(s))}return 45===s||Ao(s)?(e.consume(s),i+=String.fromCharCode(s),g):n(s)}function m(a){return 62===a?(e.consume(a),r.interrupt?t:T):n(a)}function h(t){return Po(t)?(e.consume(t),h):k(t)}function b(t){return 47===t?(e.consume(t),k):58===t||95===t||ko(t)?(e.consume(t),y):Po(t)?(e.consume(t),b):k(t)}function y(t){return 45===t||46===t||58===t||95===t||Ao(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),w):Po(t)?(e.consume(t),v):b(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,S):Po(t)?(e.consume(t),w):x(t)}function S(t){return t===l?(e.consume(t),l=null,E):null===t||_o(t)?n(t):(e.consume(t),S)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Ro(t)?v(t):(e.consume(t),x)}function E(e){return 47===e||62===e||Po(e)?b(e):n(e)}function k(t){return 62===t?(e.consume(t),A):n(t)}function A(t){return null===t||_o(t)?T(t):Po(t)?(e.consume(t),A):n(t)}function T(t){return 45===t&&2===a?(e.consume(t),N):60===t&&1===a?(e.consume(t),_):62===t&&4===a?(e.consume(t),D):63===t&&3===a?(e.consume(t),L):93===t&&5===a?(e.consume(t),P):!_o(t)||6!==a&&7!==a?null===t||_o(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(vi,M,O)(t))}function O(t){return e.check(wi,C,M)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||_o(t)?O(t):(e.enter("htmlFlowData"),T(t))}function N(t){return 45===t?(e.consume(t),L):T(t)}function _(t){return 47===t?(e.consume(t),i="",R):T(t)}function R(t){if(62===t){const n=i.toLowerCase();return bi.includes(n)?(e.consume(t),D):T(t)}return ko(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),R):T(t)}function P(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===a?(e.consume(t),L):T(t)}function D(t){return null===t||_o(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(n){return e.exit("htmlFlow"),t(n)}}},vi={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Wo,t,n)}}},wi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(_o(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Si={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,o,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),y):ko(t)?(e.consume(t),E):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,f):ko(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):_o(t)?(i=u,R(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?_(e):45===e?d(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?g:f):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),m):_o(t)?(i=g,R(t)):(e.consume(t),g)}function m(t){return 93===t?(e.consume(t),h):g(t)}function h(t){return 62===t?_(t):93===t?(e.consume(t),h):g(t)}function b(t){return null===t||62===t?_(t):_o(t)?(i=b,R(t)):(e.consume(t),b)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):_o(t)?(i=y,R(t)):(e.consume(t),y)}function v(e){return 62===e?_(e):y(e)}function w(t){return ko(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||Ao(t)?(e.consume(t),S):x(t)}function x(t){return _o(t)?(i=x,R(t)):Po(t)?(e.consume(t),x):_(t)}function E(t){return 45===t||Ao(t)?(e.consume(t),E):47===t||62===t||Ro(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),_):58===t||95===t||ko(t)?(e.consume(t),A):_o(t)?(i=k,R(t)):Po(t)?(e.consume(t),k):_(t)}function A(t){return 45===t||46===t||58===t||95===t||Ao(t)?(e.consume(t),A):T(t)}function T(t){return 61===t?(e.consume(t),O):_o(t)?(i=T,R(t)):Po(t)?(e.consume(t),T):k(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,C):_o(t)?(i=O,R(t)):Po(t)?(e.consume(t),O):(e.consume(t),I)}function C(t){return t===a?(e.consume(t),a=void 0,N):null===t?n(t):_o(t)?(i=C,R(t)):(e.consume(t),C)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Ro(t)?k(t):(e.consume(t),I)}function N(e){return 47===e||62===e||Ro(e)?k(e):n(e)}function _(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return Po(t)?Fo(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}};const xi={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&ho(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,a,o,i=e.length,s=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=i);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=bo(o,e.slice(r+1,r+s+3)),o=bo(o,[["enter",u,t]]),o=bo(o,Go(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),o=bo(o,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),o=bo(o,e.slice(a+1)),o=bo(o,[["exit",l,t]]),ho(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let a,o,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return function(t){if(!a)return n(t);if(a._inactive)return u(t);return o=r.parser.defined.includes(Eo(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(Ei,c,o?c:u)(t):91===t?e.attempt(ki,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(Ai,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},Ei={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Ro(t)?di(e,a)(t):a(t)}function a(t){return 41===t?c(t):li(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Ro(t)?di(e,s)(t):c(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?ui(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Ro(t)?di(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},ki={tokenize:function(e,t,n){const r=this;return function(t){return ci.call(r,e,a,o,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(Eo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Ai={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Ti={name:"labelStartImage",resolveAll:xi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Oi={name:"labelStartLink",resolveAll:xi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Ci={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Fo(e,t,"linePrefix")}}};const Ii={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),i(o)):a>=3&&(null===o||_o(o))?(e.exit("thematicBreak"),t(o)):n(o)}function i(t){return t===r?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),Po(t)?Fo(e,o,"whitespace")(t):o(t))}}};const Ni={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wo,a,o);function a(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Fo(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!Po(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ri,t,i)(n))}function i(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Fo(e,e.attempt(Ni,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:Co(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(Ii,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Co(t)&&++i<10?(e.consume(t),s):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Wo,r.interrupt?n:c,e.attempt(_i,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return Po(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},_i={partial:!0,tokenize:function(e,t,n){const r=this;return Fo(e,function(e){const a=r.events[r.events.length-1];return!Po(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Ri={partial:!0,tokenize:function(e,t,n){const r=this;return Fo(e,function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Pi={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=i;return e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let i,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){i="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===a?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Po(t)?Fo(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||_o(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const Li={tokenize:function(e){const t=this,n=e.attempt(Wo,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,Fo(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ii,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Di={resolveAll:Bi()},Mi=Fi("string"),ji=Fi("text");function Fi(e){return{resolveAll:Bi("text"===e?Ui:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,o,i);return o;function o(e){return l(e)?a(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Bi(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function Ui(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let o,i=a.length,s=-1,l=0;for(;i--;){const e=a[i];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const a={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const zi={42:Ni,43:Ni,45:Ni,48:Ni,49:Ni,50:Ni,51:Ni,52:Ni,53:Ni,54:Ni,55:Ni,56:Ni,57:Ni,62:Yo},$i={91:pi},Gi={[-2]:Jo,[-1]:Jo,32:Jo},qi={35:mi,42:Ii,45:[Pi,Ii],60:yi,61:Pi,95:Ii,96:Qo,126:Qo},Hi={38:Xo,92:Ko},Vi={[-5]:Ci,[-4]:Ci,[-3]:Ci,33:Ti,38:Xo,42:qo,60:[Vo,Si],91:Oi,92:[gi,Ko],93:xi,95:qo,96:ti},Wi={null:[qo,Di]};var Yi=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:$i,disable:{null:[]},document:zi,flow:qi,flowInitial:Gi,insideSpan:Wi,string:Hi,text:Vi});function Ki(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let i=[],s=[];const l={attempt:h(function(e,t){b(e,t.from)}),check:h(m),consume:function(e){_o(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:h(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,y()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let i;if("string"==typeof o)i=o;else switch(o){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&a)continue;i=" ";break;default:i=String.fromCharCode(o)}a=-2===o,r.push(i)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(i=bo(i,e),f(),null!==i[i.length-1])return[];return b(t,0),c.events=Go(o,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,o)];else{if(i=e.slice(n,a),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}o>0&&i.push(e[a].slice(0,o))}return i}(i,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:o}}function f(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){u=u(e)}function m(e,t){t.restore()}function h(e,t){return function(n,a,o){let i,u,d,f;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return i=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){f=function(){const e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,o=Array.from(s);return{from:a,restore:i};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=o,y()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return b();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,h,b)(n)}}function h(t){return e(d,f),a}function b(e){return f.restore(),++u<i.length?m(i[u]):o}}}function b(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&ho(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const Xi=/[\0\t\n\r]/g;const Zi=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Qi(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return xo(n.slice(t?2:1),t?16:10)}return mo(n)||e}const Ji={}.hasOwnProperty;function es(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:A,autolinkEmail:A,atxHeading:o(Z),blockQuote:o(V),characterEscape:A,characterReference:A,codeFenced:o(W),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(W,i),codeText:o(Y,i),codeTextData:A,data:A,codeFlowValue:A,definition:o(K),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(X),hardBreakEscape:o(Q),hardBreakTrailing:o(Q),htmlFlow:o(J,i),htmlFlowData:A,htmlText:o(J,i),htmlTextData:A,image:o(ee),label:i,link:o(te),listItem:o(re),listItemValue:p,listOrdered:o(ne,d),listUnordered:o(ne),paragraph:o(ae),reference:B,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(Z),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:H,autolinkProtocol:q,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:$,characterReference:G,codeFenced:l(h),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:T,codeIndented:l(b),codeText:l(_),codeTextData:T,data:T,definition:l(),definitionDestinationString:w,definitionLabelString:y,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(C),hardBreakTrailing:l(C),htmlFlow:l(I),htmlFlowData:T,htmlText:l(N),htmlTextData:T,image:l(P),label:D,labelText:L,lineEnding:O,link:l(R),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:M,resourceTitleString:j,resource:F,setextHeading:l(k),setextHeadingLineSequence:E,setextHeadingText:x,strong:l(),thematicBreak:l()}};ns(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:i,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=a(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];Ji.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||as).call(o,void 0,e[0])}for(r.position={start:ts(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ts(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function a(e,t,n){let r,a,o,i,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||l||o||(o=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=s;for(a=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!a||o<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,o=void 0,i=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ts(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Ua({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||as).call(this,e,r[0])}n.position.end=ts(e.end)}function u(){return co(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function h(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Eo(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function A(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:ts(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ts(e.end)}function O(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=ts(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(A.call(this,e),T.call(this,e))}function C(){this.data.atHardBreak=!0}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function _(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Zi,Qi)}(t),n.identifier=Eo(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function j(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Eo(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function $(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=xo(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=mo(t)}this.stack[this.stack.length-1].value+=r}function G(e){this.stack.pop().position.end=ts(e.end)}function q(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function H(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function W(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function Q(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!ai(e););return e}(function(e){const t={constructs:vo([Yi,...(e||{}).extensions||[]]),content:n(Bo),defined:[],document:n(Uo),flow:n(Li),lazy:{},string:n(Mi),text:n(ji)};return t;function n(e){return function(n){return Ki(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,o,i){const s=[];let l,c,u,d,p;for(a=n+("string"==typeof a?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,n="",r&&(65279===a.charCodeAt(0)&&u++,r=void 0);u<a.length;){if(Xi.lastIndex=u,l=Xi.exec(a),d=l&&void 0!==l.index?l.index:a.length,p=a.charCodeAt(d),!l){n=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function ts(e){return{line:e.line,column:e.column,offset:e.offset}}function ns(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ns(e,r):rs(e,r)}}function rs(e,t){let n;for(n in t)if(Ji.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function as(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ua({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ua({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ua({start:t.start,end:t.end})+") is still open")}function os(e){const t=this;t.parser=function(n){return es(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function is(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&"text"===i.type?i.value+=r:a.push({type:"text",value:r}),a}function ss(e){const t=e.spread;return null==t?e.children.length>1:t}function ls(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(cs(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(cs(t.slice(a),a>0,!1)),o.join("")}function cs(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const us={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=jo(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return is(e,t);const a={src:jo(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:jo(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return is(e,t);const a={href:jo(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:jo(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ss(n[r])}return t}(n):ss(t),o={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}const l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Fa(t.children[1]),i=ja(t.children[t.children.length-1]);o&&i&&(r.position={start:o,end:i}),a.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,i=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<i;){const n=t.children[s],r={},i=o?o[s]:void 0;i&&(r.align=i);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:ls(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ds,yaml:ds,definition:ds,footnoteDefinition:ds};function ds(){}const ps="object"==typeof self?self:globalThis,fs=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new ps[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new ps[o](i),a)};return r})(new Map,e)(0),gs="",{toString:ms}={},{keys:hs}=Object,bs=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=ms.call(e).slice(8,-1);switch(n){case"Array":return[1,gs];case"Object":return[2,gs];case"Date":return[3,gs];case"RegExp":return[4,gs];case"Map":return[5,gs];case"Set":return[6,gs];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},ys=([e,t])=>0===e&&("function"===t||"symbol"===t),vs=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},o=r=>{if(n.has(r))return n.get(r);let[i,s]=bs(r);switch(i){case 0:{let t=r;switch(s){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([i,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([i,e],r);for(const t of r)e.push(o(t));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=a([i,n],r);for(const t of hs(r))!e&&ys(bs(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return a([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([i,{source:e,flags:t}],r)}case 5:{const t=[],n=a([i,t],r);for(const[n,a]of r)(e||!ys(bs(n))&&!ys(bs(a)))&&t.push([o(n),o(a)]);return n}case 6:{const t=[],n=a([i,t],r);for(const n of r)!e&&ys(bs(n))||t.push(o(n));return n}}const{message:l}=r;return a([i,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r};var ws="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?fs(vs(e,t)):structuredClone(e):(e,t)=>fs(vs(e,t));function Ss(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function xs(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Es=function(e){if(null==e)return As;if("function"==typeof e)return ks(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Es(e[n]);return ks(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return ks(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return ks(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function ks(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function As(){return!0}const Ts=[],Os=!0,Cs=!1,Is="skip";function Ns(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const o=Es(a),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Ts;if((!t||o(a,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Os,e];return null==e?Ts:[e]}(n(a,l)),p[0]===Cs))return p;if("children"in a&&a.children){const t=a;if(t.children&&p[0]!==Is)for(u=(r?t.children.length:-1)+i,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Cs)return c;u="number"==typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function _s(e,t,n,r){let a,o,i;"function"==typeof t&&"function"!=typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=r),Ns(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},a)}const Rs={}.hasOwnProperty,Ps={};function Ls(e,t){e.position&&(t.position=function(e){const t=Fa(e),n=ja(e);if(t&&n)return{start:t,end:n}}(e))}function Ds(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&a&&Object.assign(n.properties,ws(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Ms(e,t){const n=t.data||{},r=!("value"in t)||Rs.call(n,"hProperties")||Rs.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function js(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Fs(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Bs(e,t){const n=function(e,t){const n=t||Ps,r=new Map,a=new Map,o=new Map,i={...us,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=s.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=Fs(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=Fs(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:Ds,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=s.handlers[n];if(Rs.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=ws(n);return r.children=s.all(e),r}return ws(e)}return(s.options.unknownHandler||Ms)(s,e,t)},options:n,patch:Ls,wrap:js};return _s(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ss,r=e.options.footnoteBackLabel||xs,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const o=e.all(a),i=String(a.identifier).toUpperCase(),c=jo(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else o.push(...d);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(a,g),s.push(g)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ws(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:"\n"},a),o}function Us(e,t){return e&&"run"in e?async function(n,r){const a=Bs(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Bs(n,{file:r,...e||t})}}function zs(e){if(e)throw e}var $s=Object.prototype.hasOwnProperty,Gs=Object.prototype.toString,qs=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Vs=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Gs.call(e)},Ws=function(e){if(!e||"[object Object]"!==Gs.call(e))return!1;var t,n=$s.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&$s.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||$s.call(e,t)},Ys=function(e,t){qs&&"__proto__"===t.name?qs(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ks=function(e,t){if("__proto__"===t){if(!$s.call(e,t))return;if(Hs)return Hs(e,t).value}return e[t]},Xs=function e(){var t,n,r,a,o,i,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Ks(s,n),s!==(a=Ks(t,n))&&(u&&a&&(Ws(a)||(o=Vs(a)))?(o?(o=!1,i=r&&Vs(r)?r:[]):i=r&&Ws(r)?r:{},Ys(s,{name:n,newValue:e(u,i,a)})):void 0!==a&&Ys(s,{name:n,newValue:a}));return s};function Zs(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Qs(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(o,...i){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==i[l]&&void 0!==i[l]||(i[l]=t[l]);t=i,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let i;r&&t.push(a);try{i=e.apply(this,t)}catch(e){if(r&&n)throw e;return a(e)}r||(i&&i.then&&"function"==typeof i.then?i.then(o,a):i instanceof Error?a(i):o(i))}function a(e,...r){n||(n=!0,t(e,...r))}function o(e){a(null,e)}}(s,a)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const Js={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');el(e);let n,r=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));r===a?a=i:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(el(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){el(e);let t,n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=n+1;break}}if(o<0||r<0||0===i||1===i&&o===r-1&&o===a+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)el(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){el(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",o=0):(a=a.slice(0,r),o=a.length-1-a.lastIndexOf("/")),i=l,s=0;continue}}else if(a.length>0){a="",o=0,i=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function el(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tl={cwd:function(){return"/"}};function nl(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function rl(e){if("string"==typeof e)e=new URL(e);else if(!nl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const al=["history","path","basename","stem","extname","dirname"];class ol{constructor(e){let t;t=e?nl(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":tl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<al.length;){const e=al[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)al.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Js.basename(this.path):void 0}set basename(e){sl(e,"basename"),il(e,"basename"),this.path=Js.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Js.dirname(this.path):void 0}set dirname(e){ll(this.basename,"dirname"),this.path=Js.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?Js.extname(this.path):void 0}set extname(e){if(il(e,"extname"),ll(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Js.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nl(e)&&(e=rl(e)),sl(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Js.basename(this.path,this.extname):void 0}set stem(e){sl(e,"stem"),il(e,"stem"),this.path=Js.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new qa(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function il(e,t){if(e&&e.includes(Js.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Js.sep+"`")}function sl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ll(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const cl=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ul={}.hasOwnProperty;class dl extends cl{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Qs()}copy(){const e=new dl;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Xs(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(ml("data",this.frozen),this.namespace[e]=t,this):ul.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ml("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=yl(e),n=this.parser||this.Parser;return fl("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),fl("process",this.parser||this.Parser),gl("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const o=yl(e),i=n.parse(o);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,o,function(e,t,r){if(e||!t||!r)return s(e);const a=t,o=n.stringify(a,r);var i;"string"==typeof(i=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),fl("processSync",this.parser||this.Parser),gl("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,zs(e),t=r}),bl("processSync","process",n),t}run(e,t,n){hl(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){const i=yl(t);r.run(e,i,function(t,r,i){const s=r||e;t?o(t):a?a(s):n(void 0,s,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){zs(e),n=t,r=!0}),bl("runSync","run",r),n}stringify(e,t){this.freeze();const n=yl(t),r=this.compiler||this.Compiler;return gl("stringify",r),hl(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(ml("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):o(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=Xs(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const i=n[a][1];Zs(i)&&Zs(r)&&(r=Xs(!0,i,r)),n[a]=[e,r,...o]}}}}const pl=(new dl).freeze();function fl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function gl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function ml(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hl(e){if(!Zs(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function bl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yl(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ol(e)}const vl=[],wl={allowDangerousHtml:!0},Sl=/^(https?|ircs?|mailto|xmpp)$/i,xl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function El(e){const t=function(e){const t=e.rehypePlugins||vl,n=e.remarkPlugins||vl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...wl}:wl,a=pl().use(os).use(n).use(Us,r).use(t);return a}(e),r=function(e){const t=e.children||"",n=new ol;"string"==typeof t&&(n.value=t);return n}(e);return function(e,t){const r=t.allowedElements,a=t.allowElement,o=t.components,i=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||kl;for(const e of xl)Object.hasOwn(t,e.from)&&kr((e.from,e.to&&e.to,e.id));t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]});return _s(e,u),Za(e,{Fragment:n.Fragment,components:o,ignoreInvalidStyle:!0,jsx:n.jsx,jsxs:n.jsxs,passKeys:!0,passNode:!0});function u(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return s?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in so)if(Object.hasOwn(so,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=so[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&a&&"number"==typeof t&&(o=!a(e,t,n)),o&&n&&"number"==typeof t)return l&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(t.runSync(t.parse(r),r),e)}function kl(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||Sl.test(e.slice(0,t))?e:""}function Al(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function Tl(e,t,n){const r=Es((n||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Ol(e[0]),Cl(e[1])])}return t}(t);let o=-1;for(;++o<a.length;)Ns(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[o][0],i=a[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let o=i(...d,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function Ol(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Cl(e){return"function"==typeof e?e:function(){return e}}const Il="phrasing",Nl=["autolink","link","image","label"];function _l(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Rl(e){this.config.enter.autolinkProtocol.call(this,e)}function Pl(e){this.config.exit.autolinkProtocol.call(this,e)}function Ll(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Dl(e){this.config.exit.autolinkEmail.call(this,e)}function Ml(e){this.exit(e)}function jl(e){Tl(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Fl],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Bl]],{ignore:["link","linkReference"]})}function Fl(e,t,n,r,a){let o="";if(!Ul(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Al(e,"(");let o=Al(e,")");for(;-1!==r&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function Bl(e,t,n,r){return!(!Ul(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Ul(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Do(n)||Lo(n))&&(!t||47!==n)}function zl(){this.buffer()}function $l(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Gl(){this.buffer()}function ql(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Hl(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Eo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Vl(e){this.exit(e)}function Wl(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Eo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Yl(e){this.exit(e)}function Kl(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),i(),o+=a.move("]"),o}function Xl(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const o=r.createTracker(a);let i=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");i+=o.move(r.safe(r.associationId(e),{before:i,after:"]"})),l(),i+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),i+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?Ql:Zl)));return s(),i},footnoteReference:Kl},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Zl(e,t,n){return 0===t?e:Ql(e,t,n)}function Ql(e,t,n){return(n?"":" ")+e}Kl.peek=function(){return"["};const Jl=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ec(e){this.enter({type:"delete",children:[]},e)}function tc(e){this.exit(e)}function nc(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function rc(e){return e.length}function ac(e){return null==e?"":String(e)}function oc(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function ic(e,t,n){return">"+(n?"":" ")+e}function sc(e,t){return lc(e,t.inConstruct,!0)&&!lc(e,t.notInConstruct,!1)}function lc(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function cc(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&sc(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function uc(e,t,n){return(n?"":" ")+e}function dc(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function pc(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fc(e,t,n){const r=$o(e),a=$o(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function gc(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),i=n.createTracker(r),s=i.move(a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=fc(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=pc(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=fc(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+pc(d));const f=i.move(a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function mc(e){return e.value||""}function hc(e,t,n,r){const a=dc(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),i(),c}function bc(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function yc(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function vc(e,t){const n=co(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function wc(e,t,n,r){const a=dc(n),o='"'===a?"Quote":"Apostrophe",i=n.createTracker(r);let s,l;if(vc(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(l=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=i.move(" "+a),c+=i.move(n.safe(e.title,{before:c,after:a,...i.current()})),c+=i.move(a),l()),c+=i.move(")"),s(),c}function Sc(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function xc(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ec(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}nc.peek=function(){return"~"},gc.peek=function(e,t,n){return n.options.emphasis||"*"},mc.peek=function(){return"<"},hc.peek=function(){return"!"},bc.peek=function(){return"!"},yc.peek=function(){return"`"},wc.peek=function(e,t,n){return vc(e,n)?"<":"["},Sc.peek=function(){return"["};const kc=Es(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ac(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),i=n.createTracker(r),s=i.move(a+a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=fc(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=pc(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=fc(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+pc(d));const f=i.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}Ac.peek=function(e,t,n){return n.options.strong||"*"};const Tc={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const i=n.indentLines(n.containerFlow(e,o.current()),ic);return a(),i},break:cc,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,uc);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++o>i&&(i=o):o=1,a=r+t.length,r=n.indexOf(t,a);return i}(o,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=dc(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),i(),c},emphasis:gc,hardBreak:cc,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return _s(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Cs}),Boolean((!e.depth||e.depth<3)&&co(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=pc(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),l(),s(),c},html:mc,image:hc,imageReference:bc,inlineCode:yc,link:wc,linkReference:Sc,list:function(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):xc(n);const s=e.ordered?"."===i?")":".":function(e){const t=xc(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Ec(n)===i&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(i=s),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=o,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||xc(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const s=n.createTracker(r);s.move(o+" ".repeat(i-o.length)),s.shift(i);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?o:o+" ".repeat(i-o.length))+e});return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),a(),i},root:function(e,t,n,r){return(e.children.some(function(e){return kc(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Ac,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Ec(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Oc(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Cc(e){this.exit(e),this.data.inTable=void 0}function Ic(e){this.enter({type:"tableRow",children:[]},e)}function Nc(e){this.exit(e)}function _c(e){this.enter({type:"tableCell",children:[]},e)}function Rc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Pc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Pc(e,t){return"|"===t?t:e}function Lc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Tc.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const o=[],i=t.enter("table");for(;++a<r.length;)o[a]=l(r[a],t,n);return i(),o}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const a=l(e,n,r),o=s([a]);return o.slice(0,o.indexOf("\n"))}}};function i(e,t,n,r){const a=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||rc,o=[],i=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const i=ac(e[u][o]);if(!1!==n.alignDelimiters){const e=a(i);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(i)}i[u]=t,s[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)o[d]=oc(r[d]);else{const e=oc(r);for(;++d<c;)o[d]=e}d=-1;const p=[],f=[];for(;++d<c;){const e=o[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[d]&&(l[d]=a),f[d]=a),p[d]=i}i.splice(1,0,p),s.splice(1,0,f),u=-1;const g=[];for(;++u<i.length;){const e=i[u],t=s[u];d=-1;const r=[];for(;++d<c;){const a=e[d]||"";let i="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=o[d];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),s=i):s=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===c-1||r.push("|")}g.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return g.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const o=[],s=t.enter("tableRow");for(;++a<r.length;)o[a]=i(r[a],0,t,n);return s(),o}}function Dc(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Mc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function jc(e,t,n,r){const a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(i);let l=Tc.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),l}const Fc={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),a;return n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},Bc={tokenize:function(e,t,n){let r,a,o;return i;function i(t){return 46===t||95===t?e.check(zc,l,s)(t):null===t||Ro(t)||Do(t)||45!==t&&Lo(t)?l(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function l(e){return a||r||!o?n(e):t(e)}},partial:!0},Uc={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(zc,t,o)(i):null===i||Ro(i)||Do(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&r++,e.consume(t),a}},partial:!0},zc={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||Ro(i)||Do(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||Ro(e)||Do(e)?t(e):r(e)}function o(e){return ko(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):ko(t)?(e.consume(t),i):n(t)}},partial:!0},$c={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Ao(e)?n(e):t(e)}},partial:!0},Gc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Yc.call(r,r.previous)||Qc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fc,e.attempt(Bc,e.attempt(Uc,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Yc},qc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",o=!1;return function(t){if((72===t||104===t)&&Kc.call(r,r.previous)&&!Qc(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i;return n(t)};function i(t){if(ko(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||Oo(t)||Ro(t)||Do(t)||Lo(t)?n(t):e.attempt(Bc,e.attempt(Uc,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Kc},Hc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,o;return function(t){if(!Zc(t)||!Xc.call(r,r.previous)||Qc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)};function i(t){return Zc(t)?(e.consume(t),i):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check($c,c,l)(t):45===t||95===t||Ao(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(i){return o&&a&&ko(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:Xc},Vc={};let Wc=48;for(;Wc<123;)Vc[Wc]=Hc,Wc++,58===Wc?Wc=65:91===Wc&&(Wc=97);function Yc(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Ro(e)}function Kc(e){return!ko(e)}function Xc(e){return!(47===e||Zc(e))}function Zc(e){return 43===e||45===e||46===e||95===e||Ao(e)}function Qc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Vc[43]=Hc,Vc[45]=Hc,Vc[46]=Hc,Vc[95]=Hc,Vc[72]=[Hc,qc],Vc[104]=[Hc,qc],Vc[87]=[Hc,Gc],Vc[119]=[Hc,Gc];const Jc={tokenize:function(e,t,n){const r=this;return Fo(e,function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function eu(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return n(a);const s=Eo(r.sliceSerialize({start:i.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function tu(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function nu(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(i>999||93===s&&!o||null===s||91===s||Ro(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return a.includes(Eo(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Ro(s)||(o=!0),i++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function ru(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||Ro(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Eo(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Ro(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),Fo(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function au(e,t,n){return e.check(Wo,t,e.attempt(Jc,t,n))}function ou(e){e.exit("gfmFootnoteDefinition")}function iu(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,o=this.events;let i=0;return function(t){if(126===a&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=$o(a);if(126===o)return i>1?r(o):(e.consume(o),i++,s);if(i<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=$o(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&ho(i,i.length,0,Go(s,e.slice(r+1,n),t)),ho(i,i.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),ho(e,r-1,n-r+3,i),n=r+i.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class su{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function lu(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function cu(e,t,n){const r=this;let a,o=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?w:s;if(o===w&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,i+=1,l(e)}(t)}function l(t){return null===t?n(t):_o(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Po(t)?Fo(e,l,"whitespace")(t):(i+=1,a&&(a=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Ro(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,Po(t)?Fo(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?g(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):v(t)}function f(t){return Po(t)?Fo(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||_o(t)?y(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),h(t)):v(t)}function h(t){return 45===t?(e.consume(t),h):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(t))}function b(t){return Po(t)?Fo(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||_o(n))&&a&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function w(t){return e.enter("tableRow"),S(t)}function S(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),S):null===n||_o(n)?(e.exit("tableRow"),t(n)):Po(n)?Fo(e,S,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||Ro(t)?(e.exit("data"),S(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function uu(e,t){let n,r,a,o=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new su;for(;++o<e.length;){const f=e[o],g=f[1];"enter"===f[0]?"tableHead"===g.type?(u=!1,0!==d&&(pu(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===g.type||"tableDelimiterRow"===g.type?(i=!0,a=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===g.type?2:r?3:1):!s||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type?"tableCellDivider"===g.type&&(i?i=!1:(0!==l[1]&&(c[0]=c[1],a=du(p,t,l,s,void 0,a)),l=c,c=[l[1],o,0,0])):(i=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=du(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=o)):"tableHead"===g.type?(u=!0,d=o):"tableRow"===g.type||"tableDelimiterRow"===g.type?(d=o,0!==l[1]?(c[0]=c[1],a=du(p,t,l,s,o,a)):0!==c[1]&&(a=du(p,t,c,s,o,a)),s=0):!s||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type||(c[3]=o)}for(0!==d&&pu(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=lu(t.events,o))}return e}function du(e,t,n,r,a,o){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},fu(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=fu(t.events,n[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const a=fu(t.events,n[2]),o=fu(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},fu(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function pu(e,t,n,r,a){const o=[],i=fu(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function fu(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const gu={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return Ro(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return _o(r)?t(r):Po(r)?e.check({tokenize:mu},t,n)(r):n(r)}}};function mu(e,t,n){return Fo(e,function(e){return null===e?n(e):t(e)},"whitespace")}const hu={};function bu(e){const t=e||hu,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return vo([{text:Vc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ru,continuation:{tokenize:au},exit:ou}},text:{91:{name:"gfmFootnoteCall",tokenize:nu},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eu,resolveTo:tu}}},iu(e),{flow:{null:{name:"table",tokenize:cu,resolveAll:uu}}},{text:{91:gu}}])}(t)),a.push([{transforms:[jl],enter:{literalAutolink:_l,literalAutolinkEmail:Rl,literalAutolinkHttp:Rl,literalAutolinkWww:Rl},exit:{literalAutolink:Ml,literalAutolinkEmail:Dl,literalAutolinkHttp:Pl,literalAutolinkWww:Ll}},{enter:{gfmFootnoteCallString:zl,gfmFootnoteCall:$l,gfmFootnoteDefinitionLabelString:Gl,gfmFootnoteDefinition:ql},exit:{gfmFootnoteCallString:Hl,gfmFootnoteCall:Vl,gfmFootnoteDefinitionLabelString:Wl,gfmFootnoteDefinition:Yl}},{canContainEols:["delete"],enter:{strikethrough:ec},exit:{strikethrough:tc}},{enter:{table:Oc,tableData:_c,tableHeader:_c,tableRow:Ic},exit:{codeText:Rc,table:Cc,tableData:Nc,tableHeader:Nc,tableRow:Nc}},{exit:{taskListCheckValueChecked:Dc,taskListCheckValueUnchecked:Dc,paragraph:Mc}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Il,notInConstruct:Nl},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Il,notInConstruct:Nl},{character:":",before:"[ps]",after:"\\/",inConstruct:Il,notInConstruct:Nl}]},Xl(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Jl}],handlers:{delete:nc}},Lc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:jc}}]}}(t))}function yu(){return{type:"break"}}function vu(){return function(e){!function(e){Tl(e,[/\r?\n|\r/g,yu])}(e)}}function wu(){return e=>{_s(e,"listItem",e=>{_s(e,"break",(e,t,n)=>{n&&void 0!==t&&(n.children[t]={type:"text",value:"\n"})})})}}function Su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xu(e){return function(e){if(Array.isArray(e))return Su(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Su(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Su(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eu(e){return Eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eu(e)}function ku(e){var t=function(e,t){if("object"!=Eu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Eu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Eu(t)?t:t+""}function Au(e,t,n){return(t=ku(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(null,arguments)}function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(n),!0).forEach(function(t){Au(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Iu={};function Nu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t,n,r=e.join(".");return Iu[r]||(Iu[r]=0===(n=(t=e).length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),Iu[r]}(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return Cu(Cu({},e),n[t])},t)}function _u(e){return e.join(" ")}function Ru(t){var n=t.node,r=t.stylesheet,a=t.style,o=void 0===a?{}:a,i=t.useInlineStyles,s=t.key,l=n.properties,c=n.type,u=n.tagName,d=n.value;if("text"===c)return d;if(u){var p,f=function(e,t){var n=0;return function(r){return n+=1,r.map(function(r,a){return Ru({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}(r,i);if(i){var g=Object.keys(r).reduce(function(e,t){return t.split(".").forEach(function(t){e.includes(t)||e.push(t)}),e},[]),m=l.className&&l.className.includes("token")?["token"]:[],h=l.className&&m.concat(l.className.filter(function(e){return!g.includes(e)}));p=Cu(Cu({},l),{},{className:_u(h)||void 0,style:Nu(l.className,Object.assign({},l.style,o),r)})}else p=Cu(Cu({},l),{},{className:_u(l.className)});var b=f(n.children);return e.createElement(u,Tu({key:s},p),b)}}var Pu=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach(function(t){Au(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Mu=/\n/g;function ju(t){var n=t.codeString,r=t.codeStyle,a=t.containerStyle,o=void 0===a?{float:"left",paddingRight:"10px"}:a,i=t.numberStyle,s=void 0===i?{}:i,l=t.startingLineNumber;return e.createElement("code",{style:Object.assign({},r,o)},function(t){var n=t.lines,r=t.startingLineNumber,a=t.style;return n.map(function(t,n){var o=n+r;return e.createElement("span",{key:"line-".concat(n),className:"react-syntax-highlighter-line-number",style:"function"==typeof a?a(o):a},"".concat(o,"\n"))})}({lines:n.replace(/\n$/,"").split("\n"),style:s,startingLineNumber:l}))}function Fu(e){return"".concat(e.toString().length,".25em")}function Bu(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Uu(e,t,n){var r={display:"inline-block",minWidth:Fu(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a="function"==typeof e?e(t):e;return Du(Du({},r),a)}function zu(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,s=void 0===i?{}:i,l=e.className,c=void 0===l?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,p=e.wrapLines,f=void 0!==p&&p?Du({},"function"==typeof s?s(n):s):{};if(f.className=f.className?[].concat(xu(f.className.trim().split(/\s+/)),xu(c)):c,n&&o){var g=Uu(r,n,a);t.unshift(Bu(n,g))}return d&u&&(f.style=Du({display:"flex"},f.style)),{type:"element",tagName:"span",properties:f,children:t}}function $u(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r<e.length;r++){var a=e[r];if("text"===a.type)n.push(zu({children:[a],className:xu(new Set(t))}));else if(a.children){var o=t.concat(a.properties.className);$u(a.children,o).forEach(function(e){return n.push(e)})}}return n}function Gu(e,t,n,r,a,o,i,s,l){var c,u=$u(e.value),d=[],p=-1,f=0;function g(e,o){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,o){return zu({children:e,lineNumber:o,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:r,wrapLongLines:l,wrapLines:t})}(e,o,c):function(e,t){if(r&&t&&a){var n=Uu(s,t,i);e.unshift(Bu(t,n))}return e}(e,o)}for(var m=function(){var e=u[f],t=e.children[0].value;if(t.match(Mu)){var n=t.split("\n");n.forEach(function(t,a){var i=r&&d.length+o,s={type:"text",value:"".concat(t,"\n")};if(0===a){var l=g(u.slice(p+1,f).concat(zu({children:[s],className:e.properties.className})),i);d.push(l)}else if(a===n.length-1){var c=u[f+1]&&u[f+1].children&&u[f+1].children[0],m={type:"text",value:"".concat(t)};if(c){var h=zu({children:[m],className:e.properties.className});u.splice(f+1,0,h)}else{var b=g([m],i,e.properties.className);d.push(b)}}else{var y=g([s],i,e.properties.className);d.push(y)}}),p=f}f++};f<u.length;)m();if(p!==u.length-1){var h=u.slice(p+1,u.length);if(h&&h.length){var b=g(h,r&&d.length+o);d.push(b)}}return t?d:(c=[]).concat.apply(c,d)}function qu(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return Ru({node:e,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(t)})})}function Hu(e){return e&&void 0!==e.highlightAuto}var Vu=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Wu.call(n,r)&&(e[r]=n[r])}return e},Wu=Object.prototype.hasOwnProperty;var Yu=Xu,Ku=Xu.prototype;function Xu(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}Ku.space=null,Ku.normal={},Ku.property={};var Zu=Vu,Qu=Yu,Ju=function(e){var t,n,r=e.length,a=[],o=[],i=-1;for(;++i<r;)t=e[i],a.push(t.property),o.push(t.normal),n=t.space;return new Qu(Zu.apply(null,a),Zu.apply(null,o),n)};var ed=function(e){return e.toLowerCase()};var td=rd,nd=rd.prototype;function rd(e,t){this.property=e,this.attribute=t}nd.space=null,nd.attribute=null,nd.property=null,nd.boolean=!1,nd.booleanish=!1,nd.overloadedBoolean=!1,nd.number=!1,nd.commaSeparated=!1,nd.spaceSeparated=!1,nd.commaOrSpaceSeparated=!1,nd.mustUseProperty=!1,nd.defined=!1;var ad={},od=0;function id(){return Math.pow(2,++od)}ad.boolean=id(),ad.booleanish=id(),ad.overloadedBoolean=id(),ad.number=id(),ad.spaceSeparated=id(),ad.commaSeparated=id(),ad.commaOrSpaceSeparated=id();var sd=td,ld=ad,cd=pd;pd.prototype=new sd,pd.prototype.defined=!0;var ud=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],dd=ud.length;function pd(e,t,n,r){var a,o=-1;for(fd(this,"space",r),sd.call(this,e,t);++o<dd;)fd(this,a=ud[o],(n&ld[a])===ld[a])}function fd(e,t,n){n&&(e[t]=n)}var gd=ed,md=Yu,hd=cd,bd=function(e){var t,n,r=e.space,a=e.mustUseProperty||[],o=e.attributes||{},i=e.properties,s=e.transform,l={},c={};for(t in i)n=new hd(t,s(o,t),i[t],r),-1!==a.indexOf(t)&&(n.mustUseProperty=!0),l[t]=n,c[gd(t)]=t,c[gd(n.attribute)]=t;return new md(l,c,r)};var yd=bd({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var vd=bd({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});var wd=function(e,t){return t in e?e[t]:t};var Sd=wd,xd=function(e,t){return Sd(e,t.toLowerCase())};var Ed=bd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xd,properties:{xmlns:null,xmlnsXLink:null}}),kd=ad,Ad=bd,Td=kd.booleanish,Od=kd.number,Cd=kd.spaceSeparated,Id=Ad({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Td,ariaAutoComplete:null,ariaBusy:Td,ariaChecked:Td,ariaColCount:Od,ariaColIndex:Od,ariaColSpan:Od,ariaControls:Cd,ariaCurrent:null,ariaDescribedBy:Cd,ariaDetails:null,ariaDisabled:Td,ariaDropEffect:Cd,ariaErrorMessage:null,ariaExpanded:Td,ariaFlowTo:Cd,ariaGrabbed:Td,ariaHasPopup:null,ariaHidden:Td,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cd,ariaLevel:Od,ariaLive:null,ariaModal:Td,ariaMultiLine:Td,ariaMultiSelectable:Td,ariaOrientation:null,ariaOwns:Cd,ariaPlaceholder:null,ariaPosInSet:Od,ariaPressed:Td,ariaReadOnly:Td,ariaRelevant:null,ariaRequired:Td,ariaRoleDescription:Cd,ariaRowCount:Od,ariaRowIndex:Od,ariaRowSpan:Od,ariaSelected:Td,ariaSetSize:Od,ariaSort:null,ariaValueMax:Od,ariaValueMin:Od,ariaValueNow:Od,ariaValueText:null,role:null}});var Nd=ad,_d=bd,Rd=xd,Pd=Nd.boolean,Ld=Nd.overloadedBoolean,Dd=Nd.booleanish,Md=Nd.number,jd=Nd.spaceSeparated,Fd=Nd.commaSeparated,Bd=Ju([vd,yd,Ed,Id,_d({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Rd,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fd,acceptCharset:jd,accessKey:jd,action:null,allow:null,allowFullScreen:Pd,allowPaymentRequest:Pd,allowUserMedia:Pd,alt:null,as:null,async:Pd,autoCapitalize:null,autoComplete:jd,autoFocus:Pd,autoPlay:Pd,capture:Pd,charSet:null,checked:Pd,cite:null,className:jd,cols:Md,colSpan:null,content:null,contentEditable:Dd,controls:Pd,controlsList:jd,coords:Md|Fd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pd,defer:Pd,dir:null,dirName:null,disabled:Pd,download:Ld,draggable:Dd,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pd,formTarget:null,headers:jd,height:Md,hidden:Pd,high:Md,href:null,hrefLang:null,htmlFor:jd,httpEquiv:jd,id:null,imageSizes:null,imageSrcSet:Fd,inputMode:null,integrity:null,is:null,isMap:Pd,itemId:null,itemProp:jd,itemRef:jd,itemScope:Pd,itemType:jd,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pd,low:Md,manifest:null,max:null,maxLength:Md,media:null,method:null,min:null,minLength:Md,multiple:Pd,muted:Pd,name:null,nonce:null,noModule:Pd,noValidate:Pd,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pd,optimum:Md,pattern:null,ping:jd,placeholder:null,playsInline:Pd,poster:null,preload:null,readOnly:Pd,referrerPolicy:null,rel:jd,required:Pd,reversed:Pd,rows:Md,rowSpan:Md,sandbox:jd,scope:null,scoped:Pd,seamless:Pd,selected:Pd,shape:null,size:Md,sizes:null,slot:null,span:Md,spellCheck:Dd,src:null,srcDoc:null,srcLang:null,srcSet:Fd,start:Md,step:null,style:null,tabIndex:Md,target:null,title:null,translate:null,type:null,typeMustMatch:Pd,useMap:null,value:Dd,width:Md,wrap:null,align:null,aLink:null,archive:jd,axis:null,background:null,bgColor:null,border:Md,borderColor:null,bottomMargin:Md,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pd,declare:Pd,event:null,face:null,frame:null,frameBorder:null,hSpace:Md,leftMargin:Md,link:null,longDesc:null,lowSrc:null,marginHeight:Md,marginWidth:Md,noResize:Pd,noHref:Pd,noShade:Pd,noWrap:Pd,object:null,profile:null,prompt:null,rev:null,rightMargin:Md,rules:null,scheme:null,scrolling:Dd,standby:null,summary:null,text:null,topMargin:Md,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Md,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pd,disableRemotePlayback:Pd,prefix:null,property:null,results:Md,security:null,unselectable:null}})]),Ud=ed,zd=cd,$d=td,Gd="data",qd=function(e,t){var n=Ud(t),r=t,a=$d;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===Gd&&Hd.test(t)&&("-"===t.charAt(4)?r=function(e){var t=e.slice(5).replace(Vd,Kd);return Gd+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(Vd.test(t))return e;t=t.replace(Wd,Yd),"-"!==t.charAt(0)&&(t="-"+t);return Gd+t}(t),a=zd);return new a(r,t)},Hd=/^data[-\w.:]+$/i,Vd=/-[a-z]/g,Wd=/[A-Z]/g;function Yd(e){return"-"+e.toLowerCase()}function Kd(e){return e.charAt(1).toUpperCase()}var Xd=function(e,t){var n,r,a,o=e||"",i=t||"div",s={},l=0;for(;l<o.length;)Zd.lastIndex=l,a=Zd.exec(o),(n=o.slice(l,a?a.index:o.length))&&(r?"#"===r?s.id=n:s.className?s.className.push(n):s.className=[n]:i=n,l+=n.length),a&&(r=a[0],l++);return{type:"element",tagName:i,properties:s,children:[]}},Zd=/[#.]/g;var Qd={parse:function(e){var t=String(e||Jd).trim();return t===Jd?[]:t.split(tp)},stringify:function(e){return e.join(ep).trim()}},Jd="",ep=" ",tp=/[ \t\n\r\f]+/g;var np={parse:function(e){var t,n=[],r=String(e||op),a=r.indexOf(rp),o=0,i=!1;for(;!i;)-1===a&&(a=r.length,i=!0),!(t=r.slice(o,a).trim())&&i||n.push(t),o=a+1,a=r.indexOf(rp,o);return n},stringify:function(e,t){var n=t||{},r=!1===n.padLeft?op:ap,a=n.padRight?ap:op;e[e.length-1]===op&&(e=e.concat(op));return e.join(a+rp+r).trim()}},rp=",",ap=" ",op="";var ip=qd,sp=ed,lp=Xd,cp=Qd.parse,up=np.parse,dp=function(e,t,n){var r=n?function(e){var t,n=e.length,r=-1,a={};for(;++r<n;)a[(t=e[r]).toLowerCase()]=t;return a}(n):null;return function(e,n){var o,i=lp(e,t),s=Array.prototype.slice.call(arguments,2),l=i.tagName.toLowerCase();i.tagName=r&&pp.call(r,l)?r[l]:l,n&&function(e,t){return"string"==typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!=typeof n)return!1;if("object"==typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,i)&&(s.unshift(n),n=null);if(n)for(o in n)a(i.properties,o,n[o]);fp(i.children,s),"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]);return i};function a(t,n,r){var a,o,i;null!=r&&r==r&&(o=(a=ip(e,n)).property,"string"==typeof(i=r)&&(a.spaceSeparated?i=cp(i):a.commaSeparated?i=up(i):a.commaOrSpaceSeparated&&(i=cp(up(i).join(" ")))),"style"===o&&"string"!=typeof r&&(i=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(i)),"className"===o&&t.className&&(i=t.className.concat(i)),t[o]=function(e,t,n){var r,a,o;if("object"!=typeof n||!("length"in n))return gp(e,t,n);a=n.length,r=-1,o=[];for(;++r<a;)o[r]=gp(e,t,n[r]);return o}(a,o,i))}},pp={}.hasOwnProperty;function fp(e,t){var n,r;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)fp(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function gp(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&sp(n)!==sp(t)||(r=!0)),r}var mp=dp(Bd,"div");mp.displayName="html";var hp=mp,bp=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57};var yp=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57};var vp=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90};var wp=vp,Sp=bp;var xp={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"⁡",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",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:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"⁣",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",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:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"­",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Ep=function(e){return!!kp.call(xp,e)&&xp[e]},kp={}.hasOwnProperty;var Ap={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},Tp={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:"Ÿ"},Op=bp,Cp=yp,Ip=function(e){return wp(e)||Sp(e)},Np=Ep,_p=function(e,t){var n,r,a={};t||(t={});for(r in Dp)n=t[r],a[r]=null==n?Dp[r]:n;(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start);return function(e,t){var n,r,a,o,i,s,l,c,u,d,p,f,g,m,h,b,y,v,w,S=t.additional,x=t.nonTerminated,E=t.text,k=t.reference,A=t.warning,T=t.textContext,O=t.referenceContext,C=t.warningContext,I=t.position,N=t.indent||[],_=e.length,R=0,P=-1,L=I.column||1,D=I.line||1,M="",j=[];"string"==typeof S&&(S=S.charCodeAt(0));b=F(),c=A?B:Lp,R--,_++;for(;++R<_;)if(i===jp&&(L=N[P]||1),(i=e.charCodeAt(R))===Up){if((l=e.charCodeAt(R+1))===Mp||l===jp||l===Fp||l===Bp||l===Up||l===$p||l!=l||S&&l===S){M+=Pp(i),L++;continue}for(f=g=R+1,w=g,l===qp?(w=++f,(l=e.charCodeAt(w))===Hp||l===Vp?(m=Kp,w=++f):m=Xp):m=Yp,n="",p="",o="",h=Qp[m],w--;++w<_&&h(l=e.charCodeAt(w));)o+=Pp(l),m===Yp&&Rp.call(Ap,o)&&(n=o,p=Ap[o]);(a=e.charCodeAt(w)===zp)&&(w++,(r=m===Yp&&Np(o))&&(n=o,p=r)),v=1+w-g,(a||x)&&(o?m===Yp?(a&&!p?c(rf,1):(n!==o&&(v=1+(w=f+n.length)-f,a=!1),a||(u=n?Jp:tf,t.attribute?(l=e.charCodeAt(w))===Gp?(c(u,v),p=null):Ip(l)?p=null:c(u,v):c(u,v))),s=p):(a||c(ef,v),lf(s=parseInt(o,Zp[m]))?(c(of,v),s=Pp(Wp)):s in Tp?(c(af,v),s=Tp[s]):(d="",cf(s)&&c(af,v),s>65535&&(d+=Pp((s-=65536)>>>10|55296),s=56320|1023&s),s=d+Pp(s))):m!==Yp&&c(nf,v)),s?(U(),b=F(),R=w-1,L+=w-g+1,j.push(s),(y=F()).offset++,k&&k.call(O,s,{start:b,end:y},e.slice(g-1,w)),b=y):(o=e.slice(g-1,w),M+=o,L+=o.length,R=w-1)}else 10===i&&(D++,P++,L=0),i==i?(M+=Pp(i),L++):U();return j.join("");function F(){return{line:D,column:L,offset:R+(I.offset||0)}}function B(e,t){var n=F();n.column+=t,n.offset+=t,A.call(C,sf[e],n,e)}function U(){M&&(j.push(M),E&&E.call(T,M,{start:b,end:F()}),M="")}}(e,a)},Rp={}.hasOwnProperty,Pp=String.fromCharCode,Lp=Function.prototype,Dp={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Mp=9,jp=10,Fp=12,Bp=32,Up=38,zp=59,$p=60,Gp=61,qp=35,Hp=88,Vp=120,Wp=65533,Yp="named",Kp="hexadecimal",Xp="decimal",Zp={};Zp[Kp]=16,Zp[Xp]=10;var Qp={};Qp[Yp]=Ip,Qp[Xp]=Op,Qp[Kp]=Cp;var Jp=1,ef=2,tf=3,nf=4,rf=5,af=6,of=7,sf={};function lf(e){return e>=55296&&e<=57343||e>1114111}function cf(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}sf[Jp]="Named character references must be terminated by a semicolon",sf[ef]="Numeric character references must be terminated by a semicolon",sf[tf]="Named character references cannot be empty",sf[nf]="Numeric character references cannot be empty",sf[rf]="Named character references must be known",sf[af]="Numeric character references cannot be disallowed",sf[of]="Numeric character references cannot be outside the permissible Unicode range";var uf={exports:{}};!function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},a.util.type(t)){case"Object":if(o=a.util.objId(t),n[o])return n[o];for(var i in r={},n[o]=r,t)t.hasOwnProperty(i)&&(r[i]=e(t[i],n));return r;case"Array":return o=a.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach(function(t,a){r[a]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=a.util.clone(a.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||a.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var c=r[e];return r[e]=i,a.languages.DFS(a.languages,function(t,n){n===c&&t!=e&&(this[t]=i)}),i},DFS:function e(t,n,r,o){o=o||{};var i=a.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=a.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlightAll:function(e,t){a.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var o,i=0;o=r.elements[i++];)a.highlightElement(o,!0===t,r.callback)},highlightElement:function(t,n,r){var o=a.util.getLanguage(t),i=a.languages[o];a.util.setLanguage(t,o);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&a.util.setLanguage(s,o);var l={element:t,language:o,grammar:i,code:t.textContent};function c(e){l.highlightedCode=e,a.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a.hooks.run("after-highlight",l),a.hooks.run("complete",l),r&&r.call(l.element)}if(a.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return a.hooks.run("complete",l),void(r&&r.call(l.element));if(a.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(a.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(a.highlight(l.code,l.grammar,l.language));else c(a.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(a.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),o.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new l;return c(a,a.head,e),s(e,a,t,a.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function s(e,t,n,r,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var g=0;g<f.length;++g){if(d&&d.cause==p+","+g)return;var m=f[g],h=m.inside,b=!!m.lookbehind,y=!!m.greedy,v=m.alias;if(y&&!m.pattern.global){var w=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,w+"g")}for(var S=m.pattern||m,x=r.next,E=l;x!==t.tail&&!(d&&E>=d.reach);E+=x.value.length,x=x.next){var k=x.value;if(t.length>e.length)return;if(!(k instanceof o)){var A,T=1;if(y){if(!(A=i(S,E,e,b))||A.index>=e.length)break;var O=A.index,C=A.index+A[0].length,I=E;for(I+=x.value.length;O>=I;)I+=(x=x.next).value.length;if(E=I-=x.value.length,x.value instanceof o)continue;for(var N=x;N!==t.tail&&(I<C||"string"==typeof N.value);N=N.next)T++,I+=N.value.length;T--,k=e.slice(E,I),A.index-=E}else if(!(A=i(S,0,k,b)))continue;O=A.index;var _=A[0],R=k.slice(0,O),P=k.slice(O+_.length),L=E+k.length;d&&L>d.reach&&(d.reach=L);var D=x.prev;if(R&&(D=c(t,D,R),E+=R.length),u(t,D,T),x=c(t,D,new o(p,h?a.tokenize(_,h):_,v,_)),P&&c(t,x,P),T>1){var M={cause:p+","+g,reach:L};s(e,t,n,x.prev,E,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}if(e.Prism=a,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),a.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,i=n.immediateClose;e.postMessage(a.highlight(o,a.languages[r],r)),i&&e.close()},!1),a):a;var d=a.util.currentScript();function p(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
21
21
  /**
22
22
  * Prism: Lightweight, robust, elegant syntax highlighting
23
23
  *