@farris/x-ui 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/farris.x-ui.esm.js +32813 -10138
- package/farris.x-ui.umd.cjs +611 -79
- package/index.css +1 -1
- package/markdown/src/composition/normalize-display-math.d.ts +5 -0
- package/markdown/test/markdown.spec.d.ts +1 -0
- package/package.json +3 -1
package/farris.x-ui.umd.cjs
CHANGED
|
@@ -1,105 +1,637 @@
|
|
|
1
|
-
(function(V,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(V=typeof globalThis<"u"?globalThis:V||self,i(V.FarrisX={},V.vue))})(this,function(V,i){"use strict";var M2=Object.defineProperty;var wc=V=>{throw TypeError(V)};var B2=(V,i,ve)=>i in V?M2(V,i,{enumerable:!0,configurable:!0,writable:!0,value:ve}):V[i]=ve;var ge=(V,i,ve)=>B2(V,typeof i!="symbol"?i+"":i,ve),vi=(V,i,ve)=>i.has(V)||wc("Cannot "+ve);var k=(V,i,ve)=>(vi(V,i,"read from private field"),ve?ve.call(V):i.get(V)),se=(V,i,ve)=>i.has(V)?wc("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(V):i.set(V,ve),ne=(V,i,ve,lt)=>(vi(V,i,"write to private field"),lt?lt.call(V,ve):i.set(V,ve),ve),J=(V,i,ve)=>(vi(V,i,"access private method"),ve);var Xo=(V,i,ve,lt)=>({set _(Mr){ne(V,i,Mr,ve)},get _(){return k(V,i,lt)}});var Jl,It,On,ec,tc,st,tt,mt,ln,pt,Ln,Vn,gt,Se,bt,Ce,be,ie,We,nt,Me,Ie,yt,Oe,wt,xt,rt,ot,vt,Kt,Xe,Pn,Y,ki,cn,Pt,Or,ut,xc,dn,Rn,Lr,Qt,Jt,Ai,Go,qo,ye,Ci,Rr,en,_i,Mn;const ve={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},lt=i.defineComponent({name:"AppPreviewMessage",props:ve,setup(e){const t=i.ref(!1);function n(){var h;const a=(h=e.content)==null?void 0:h.appConfig;if(!a)return"";const s=a.ws??"",l=a.appPath??"",d=a.appObjectId??"";return`${a.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${l}&boId=${d}&ws=${s}&version=2.0#/home`}function r(){var s,l;const a=(s=e.content)==null?void 0:s.previewConfig;a&&e.onOpen&&e.onOpen({...a,title:a.title??((l=e.content)==null?void 0:l.appName)})}function u(a){const s=a.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||a.preventDefault()}function o(a){a.stopPropagation();const s=n();s&&window.open(s,"_blank")}return()=>{const a=e.content;if(!a)return null;const{message:s,appName:l,createdDatetime:d}=a;return i.createVNode("div",{class:"f-chat-message-app-preview"},[i.createVNode("div",{class:"f-chat-app-preview-message"},[s]),i.createVNode("div",{class:"f-chat-app-preview-card",onMouseenter:()=>t.value=!0,onMouseleave:()=>t.value=!1,onMousedown:u,onClick:r,role:"button",tabindex:0,onKeydown:f=>f.key==="Enter"&&r()},[i.createVNode("div",{class:"f-chat-app-preview-card-left"},[i.createVNode("span",{class:"f-chat-app-preview-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_star"},null)])]),i.createVNode("div",{class:"f-chat-app-preview-card-middle"},[i.createVNode("div",{class:"f-chat-app-preview-app-name"},[l]),i.createVNode("div",{class:"f-chat-app-preview-datetime"},[d])]),i.createVNode("div",{class:"f-chat-app-preview-card-right"},[i.createVNode("div",{class:"f-chat-app-preview-action-area"},null),t.value&&i.createVNode("button",{type:"button",class:"f-chat-app-preview-open-btn",onClick:o,title:"在新页签中打开","aria-label":"在新页签中打开"},[i.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});lt.install=e=>{e.component(lt.name,lt)};const Mr={content:{type:Object,required:!0},outputMode:{type:String,default:"streaming"},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},header:{type:String,default:"sender"},placement:{type:String,default:"start"},showAvatar:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},attachments:{type:Array,default:()=>[]},onPreview:{type:Function,default:void 0},onUserAuthConfirm:{type:Function,default:void 0},compositeTailRender:{type:Function,default:void 0},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0},attachmentRowClickOpensPreview:{type:Boolean,default:!0},attachmentShowDownload:{type:Boolean,default:!0},role:{type:String,default:"assistant"}},Zo={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},vc="/api/runtime/attachment";function kc(){try{const e=Zo==null?void 0:Zo.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function Ac(e){var n;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:typeof window<"u"&&((n=window.location)!=null&&n.origin)&&t.startsWith("/")?`${window.location.origin}${t}`:t}function Cc(e){return`${vc}/${encodeURIComponent(e)}/download`}function Yo(e){const t=String(e??"").trim();if(!t)return"";const n=Cc(t),r=kc();return r?`${r}${n}`:n}function Ei(e){const t=e.trim().match(/\/api\/runtime\/attachment\/([^/]+)\/download(?:\?|#|$)/i);if(!(t!=null&&t[1]))return"";try{return decodeURIComponent(t[1]).trim()}catch{return t[1].trim()}}function Si(e){return String(e??"").replace(/[/\\]/g,"_").trim()||"download"}function _c(e){if(!e)return null;const t=/filename\*=UTF-8''([^;]+)|filename="([^"]+)"|filename=([^;]+)/i.exec(e),n=(t==null?void 0:t[1])??(t==null?void 0:t[2])??(t==null?void 0:t[3]);if(!n)return null;try{return decodeURIComponent(n.trim())}catch{return n.trim()}}function Ni(e){const t=Ac(e);if(typeof window>"u")return t;try{const n=new URL(t);if(n.origin!==window.location.origin&&n.pathname.startsWith("/api/"))return`${n.pathname}${n.search}${n.hash}`}catch{}return t}function Ec(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=Si(t),r.rel="noopener noreferrer",r.style.display="none",document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(n)}function Sc(e){const t=document.createElement("a");t.href=Ni(e),t.rel="noopener noreferrer",t.style.display="none",document.body.appendChild(t),t.click(),t.remove()}function mn(e){const t=String(e.fileId??"").trim();if(t)return Yo(t);const n=String(e.url??"").trim();if(!n)return;const r=Ei(n);if(r)return Yo(r);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function Br(e,t){const n=Si(t),r=Ni(e);try{const u=await fetch(r,{credentials:"include",mode:"cors"});if(!u.ok)throw new Error(`download_http_${u.status}`);const o=await u.blob(),a=_c(u.headers.get("Content-Disposition"))??n;Ec(o,a)}catch{Sc(e)}}function ke(e,t){return t&&(typeof t=="string"?t.split(" ").filter(Boolean).forEach(r=>{e[r]=!0}):Array.isArray(t)?t.forEach(n=>{n&&(e[n]=!0)}):typeof t=="object"&&Object.entries(t).forEach(([n,r])=>{n&&r&&(e[n]=!0)})),e}function Ee(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(r=>{var o,a;const u=r.split(":");if(u.length>=2&&((o=u[0])!=null&&o.trim())&&((a=u[1])!=null&&a.trim())){const s=u[0].trim(),l=u.slice(1).join(":").trim();e[s]=l}}):typeof t=="object"&&Object.entries(t).forEach(([n,r])=>{n&&r!==void 0&&r!==null&&(e[n]=r)})),e}function $n(e){return e||null}function Fi(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function zr(e){return e?typeof e!="string"?e:Fi(e)?i.h("img",{src:e,alt:"icon",class:"fx-prompt--item-icon-image",onError:t=>{const n=t.target;n.style.display="none",n.parentElement.innerHTML='<i class="fx-icon fx-icon-warning"></i>'}}):e.includes("fx-icon")||e.includes("icon-")?i.h("i",{class:e}):e:null}function Ti(e,t,n,r={}){const{charInterval:u=30}=r,o=i.ref({});let a=[],s=new Set;const l=()=>typeof t=="function"?t():t.value,d=()=>typeof n=="function"?n():n.value,f=()=>{a.forEach(m=>clearInterval(m)),a=[]},c=()=>{f(),o.value={},s.clear()},h=()=>{f(),o.value={},s.clear()},p=()=>{const m=e();if(!m||Object.keys(m).length===0){o.value={};return}if(!d()){o.value={...m},s=new Set(Object.keys(m));return}const x=Object.keys(m);x.forEach(g=>{o.value.hasOwnProperty(g)||(o.value[g]="")});const v=x.filter(g=>!s.has(g));if(v.length===0)return;let y=0;const b=()=>{var F;if(y>=v.length)return;const g=v[y],w=m[g];if(!w){s.add(g),y++,b();return}let A=((F=o.value[g])==null?void 0:F.length)||0;const N=setInterval(()=>{A<w.length?(o.value={...o.value,[g]:w.slice(0,A+1)},A++):(clearInterval(N),a=a.filter(_=>_!==N),s.add(g),y++,b())},u);a.push(N)};b()};return i.watch(()=>e(),()=>{l()&&p()},{immediate:!0}),i.watch(n,()=>{h(),l()&&p()}),i.watch(t,m=>{m?p():c()}),i.onMounted(()=>{l()&&p()}),{displayContent:o}}function jr(){const e=i.reactive({}),t=[],n=i.ref(null);let r=null;const u=30,o=m=>{const x=e[m];return!x||x.displayedLength>=x.rawValue.length},a=i.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(m=>o(m))),s=()=>{for(const m of t)if(!o(m))return m;return null},l=()=>{if(!n.value&&(n.value=s(),!n.value)){d();return}const m=e[n.value];m&&(m.displayedLength<m.rawValue.length?(m.displayedLength++,m.displayedValue=m.rawValue.slice(0,m.displayedLength),m.isStreaming=!0):(m.isStreaming=!1,m.displayedValue=m.rawValue,n.value=s(),n.value||d()))},d=()=>{r&&(clearInterval(r),r=null)},f=()=>{r||(r=setInterval(l,u))},c=()=>{d(),Object.keys(e).forEach(m=>{delete e[m]}),t.length=0,n.value=null},h=(m,x)=>{if(e[m]){p(m,x);return}t.push(m),e[m]={rawValue:x??"",displayedLength:0,isStreaming:!1,displayedValue:""},r||(!n.value||n.value===m)&&f()},p=(m,x)=>{const v=e[m];if(!v){h(m,x);return}v.rawValue=x??"",!r&&!o(m)&&(!n.value||n.value===m)&&f()};return i.onUnmounted(()=>{d()}),{propertyStates:e,currentProperty:n,get isAnyStreaming(){return Object.values(e).some(m=>m.isStreaming)},isAllDone:a,startStreaming:f,reset:c,registerProperty:h,updatePropertyValue:p}}function Ko(){const e=i.ref(null),t=i.ref(0),n=i.ref(!1);let r=null;const u=()=>{e.value=Date.now(),n.value=!0,r=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},o=()=>{r&&(clearInterval(r),r=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:n,start:u,stop:o,reset:()=>{o(),e.value=null,t.value=0,n.value=!1}}}const Nc={read_file:"tool_file",write_file:"tool_file",edit_file:"tool_file",glob:"tool_file",grep:"tool_file",bash:"tool_command",web_fetch:"tool_internet",web_search:"tool_internet",todo_create:"tool_task",todo_list:"tool_task",todo_get:"tool_task",todo_update:"tool_task",ask_user:"tool_interaction",core_memory:"tool_memory",add_daily_note:"tool_memory",lint_json:"dateselect",lint_markdown:"dateselect",output_validation:"dateselect",load_skill_through_path:"tool_mcp"};function Fc(e){return e?e.startsWith("mcp:")?"tool_mcp":Nc[e]??"thinking_tool":"thinking_tool"}function Qo(){return{getToolIconClass:Fc}}function Tc(e){return e.scrollWidth>e.clientWidth}function Di(){Tc(this)?this.title=this.textContent??"":this.removeAttribute("title")}function Ii(){this.removeAttribute("title")}const Oi={mounted(e){e.addEventListener("mouseenter",Di),e.addEventListener("mouseleave",Ii)},updated(e){e.removeAttribute("title")},unmounted(e){e.removeEventListener("mouseenter",Di),e.removeEventListener("mouseleave",Ii)}};function Dc(e,t){const n=i.computed(()=>{var u;return Ee({},(u=e.styles)==null?void 0:u.header)});function r(){return t.slots.header&&i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:n.value},[t.slots.header()])}return{renderHeader:r}}function Ic(e,t){var o;const n=i.ref(((o=e.content)==null?void 0:o.sender)??"发送人"),r=i.computed(()=>{var a;return Ee({},(a=e.styles)==null?void 0:a.header)});function u(){return i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:r.value},[n.value])}return{renderHeader:u}}const Li={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},Oc={role:{type:String,default:"assistant"},attachments:{type:Array,default:()=>[]},enableBatchPreview:{type:Boolean,default:!1},enableFixedWidth:{type:Boolean,default:!1},showDownloadButton:{type:Boolean,default:!0},onPreview:{type:Function,default:void 0},onBatchPreview:{type:Function,default:void 0}};function Vi(){return{getFileIcon:(u,o="file-type-",a="")=>{var d;const s={pdf:"pdf",doc:"doc",docx:"doc",xls:"xls",xlsx:"xls",csv:"xls",ppt:"ppt",pptx:"ppt",txt:"txt",zip:"zip",rar:"zip",image:"img",img:"img",md:"md",audio:"any",form:"form",report:"report",board:"board",html:"html",json:"json"};let l=u?s[u.toLowerCase()]:"";if(!l&&a){const f=((d=a.split(".").pop())==null?void 0:d.toLowerCase())||"";l=f?s[f]:""}return`${o}${l||"any"}`},formatFileName:u=>(u==null?void 0:u.replace(/\.[^.]+$/,""))??"",formatFileSize:u=>u?u<1024?u+" B":u<1048576?(u/1024).toFixed(1)+" KB":(u/1048576).toFixed(1)+" MB":"",formatFileTime:u=>{if(!u)return"";const o=new Date(u),a=o.getFullYear(),s=String(o.getMonth()+1).padStart(2,"0"),l=String(o.getDate()).padStart(2,"0");return`${a}-${s}-${l}`}}}function tn({status:e,variant:t=""}){let n="";return t?n=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()} variant--${t.toLowerCase()} `:n=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`,i.createVNode("span",{class:n,"aria-hidden":!0},null)}const Pi=i.defineComponent({name:"FXBubbleAttachment",props:Oc,emits:["preview","batchPreview"],setup(e,t){const n=i.computed(()=>e.attachments??[]),r=i.computed(()=>{var y;return((y=n.value)==null?void 0:y.length)>0}),{formatFileName:u,formatFileSize:o,formatFileTime:a,getFileIcon:s}=Vi(),l=i.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),d=i.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth}));function f(y,b){b.pending||t.emit("preview",b)}async function c(y,b){y.stopPropagation(),y.preventDefault();const g=mn(b);g&&await Br(g,b.name)}function h(y){y.stopPropagation(),y.preventDefault(),t.emit("batchPreview",n.value)}function p(y){switch(y.toLowerCase()){case"doc":case"docx":return"Word";case"xlsx":case"xls":return"Excel";case"ppt":case"pptx":return"PPT";case"txt":return"txt";case"png":case"jpg":case"jpeg":return"Image";case"pdf":return"PDF";case"md":return"Markdown";default:return""}}function m(y){if(!y)return null;const b=p(y.type);return i.createVNode("div",{class:"file-info f-utils-fill"},[i.createVNode("span",{class:"file-name",title:y.name},[y.name]),i.createVNode("div",{class:"file-info-footer"},[i.createVNode("span",{class:`file-icon ${s(y.type,"file-type-",y.name)}`},null),b&&i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"file-type"},[p(y.type)])]),y.size&&i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"file-info-divider"},null),i.createTextVNode(" "),i.createVNode("span",{class:"file-size"},[o(y.size)])])])])}function x(y,b){const g=mn(y);return i.createVNode("div",{class:"f-chat-bubble-attachment-item "+s(y.type,"attachment-type-",y.name)+(y.pending?" status-working":""),key:b,onClick:w=>f(w,y)},[i.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation"},[i.createVNode("div",{class:l.value},[i.createVNode("span",{class:"f-chat-bubble-attachment-icon file-icon "+s(y.type,"file-type-",y.name)},null),i.createVNode("span",{class:d.value,title:y.name},[u(y.name)]),y.pending===!0&&i.createVNode("div",{class:"f-chat-bubble-attachment-status status-working"},[i.createVNode(tn,{status:"Working",variant:"attachment"},null),i.createTextVNode(" 生成中")]),y.timestamp?i.createVNode("span",{class:"f-chat-bubble-attachment-text"},[i.createTextVNode("创建时间:"),a(y.timestamp)]):y.size?i.createVNode("span",{class:"f-chat-bubble-attachment-size"},[i.createTextVNode("文件大小:"),o(y.size)]):null])]),e.showDownloadButton!==!1&&g?i.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:w=>c(w,y)},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_download","aria-hidden":"true"},null)]):null])}function v(y,b){return i.createVNode("div",{class:"f-chat-bubble-attachment-toast",key:b},[m(y)])}return()=>r.value?i.createVNode("div",{class:{"f-chat-bubble-attachments":!0,"attachments-toast":e.role==="user"}},[n.value.map((y,b)=>e.role==="user"?v(y,b):x(y,b)),e.enableBatchPreview&&i.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:h},[i.createVNode("span",{class:"f-chat-bubble-attachment-preview-btn-text"},[i.createTextVNode("查看全部文件")]),i.createVNode("i",{class:"fx-icon fx-icon-sort-asc-sm",style:{transform:"rotate(90deg)"}},null)])]):null}}),Ri=i.defineComponent({name:"FXBubbleFileContentFooter",props:Li,setup(e,t){const n=i.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return Ee({},e.customStyle),()=>i.createVNode(Pi,{attachments:n.value,onPreview:r=>{var u;return(u=e.onPreviewFile)==null?void 0:u.call(e,r)},onBatchPreview:r=>{var u;return(u=e.onBatchPreviewFile)==null?void 0:u.call(e,r)}},null)}}),Lc={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},Vc=i.defineComponent({name:"FXBubblePageContentFooter",props:Lc,setup(e,t){const n=i.ref(),r=i.computed(()=>{var a,s;const o={width:"100%",height:"100%",border:"none"};return(a=e.customStyle)!=null&&a.width&&(o.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(o.height=`${e.customStyle.height}px`),o}),u=o=>{var a,s;((a=o.data)==null?void 0:a.type)==="navigation"&&((s=o.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(o.data.url)};return i.onMounted(()=>{window.addEventListener("message",u)}),i.onUnmounted(()=>{window.removeEventListener("message",u)}),()=>i.createVNode("iframe",{ref:n,src:e.pageUrl,style:r.value,scrolling:"auto"},null)}});function Mi(){function e(u,o){const{fileContent:a,height:s,width:l}=u;return{file:a,customStyle:{width:l||"100%",height:s||"100%"},onPreviewFile:o==null?void 0:o.onPreviewFile,onBatchPreviewFile:o==null?void 0:o.onBatchPreviewFile}}function t(u,o){const{pageUrl:a,height:s,width:l}=u;return{pageUrl:a,customStyle:{width:l||"100%",height:s||"100%"},onNavigate:o==null?void 0:o.onNavigate}}function n(u,o){const a=e(u,o);return i.h(Ri,a)}function r(u,o){const a=t(u,o);return i.h(Vc,a)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:r}}const Pc={title:{type:String,default:""},subtitle:{type:String,default:""},text:{type:String,default:""},textFormat:{type:String,default:"plain"},placement:{type:String,default:"start"},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0}},Jo="assistant-widget",ct="```";function Un(e,t){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n+=1;return n}function Bi(e,t){let n=t;for(;n<e.length&&/[a-zA-Z0-9-]/.test(e[n]);)n+=1;return{lang:e.slice(t,n),next:n}}function zi(e){const t=e.toLowerCase();return t.length===0||t.length>Jo.length?!1:Jo.startsWith(t)}function Rc(e){return e.toLowerCase()===Jo}function Mc(e,t){let n=0;for(;n<t;){const r=e.indexOf(ct,n);if(r===-1||r>=t)break;let u=r+ct.length;u=Un(e,u);const{lang:o}=Bi(e,u);if(o.length>0)return!0;n=r+ct.length}return!1}function ji(e,t){if(!e.startsWith(ct,t))return null;let n=t+ct.length;n=Un(e,n);const{lang:r,next:u}=Bi(e,n);return r.length===0?e.slice(u).trim().length===0?Mc(e,t)?null:{fenceStart:t,bodyStart:u,langComplete:!1}:null:zi(r)?(n=Un(e,u),{fenceStart:t,bodyStart:n,langComplete:Rc(r)}):null}function eu(e,t=0){const n=Un(e,t);return ji(e,n)}function Bc(e,t,n){if(t<n)return!1;const r=e.slice(t+ct.length);return r.length===0?!0:r.startsWith("`")?!1:(/^\s*[\r\n]/.test(r)||/^\s*$/.test(r),!0)}function Hr(e,t){let n=t;for(;n<=e.length;){const r=e.indexOf(ct,n);if(r===-1)return-1;if(Bc(e,r,t))return r;n=r+1}return-1}function zc(e){const t=eu(e,0);if(!(t!=null&&t.langComplete))return null;const n=Hr(e,t.bodyStart);return n===-1?null:e.slice(t.bodyStart,n).trim()}function Hi(e){return e.replace(/```\s*assistant-widget\s*/gi,"``` assistant-widget\n")}function jc(e){const t=e.match(/^\s*```\s*([a-zA-Z0-9-]*)$/);return t?zi(t[1]??""):!1}function Hc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf(ct,n);if(r===-1)return null;const u=ji(e,r);if(u)return{fenceIdx:r,open:u};n=r+ct.length}return null}function $i(e){if(!e)return!1;const t=eu(e,0);if(!(t!=null&&t.langComplete))return!1;const n=Hr(e,t.bodyStart);return n===-1?!1:Un(e,n+ct.length)>=e.length}function $c(e){if(!e)return!1;if($i(e)||jc(e))return!0;const t=eu(e,0);return t?t.langComplete?Hr(e,t.bodyStart)===-1:!0:!1}function Uc(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Hc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const{fenceIdx:u,open:o}=r;if(u>n&&t.push(e.slice(n,u)),!o.langComplete){t.push(e.slice(u));break}const a=Hr(e,o.bodyStart);if(a===-1){t.push(e.slice(u));break}const s=a+ct.length;t.push(Hi(e.slice(u,s))),n=s}return t.filter(r=>r.trim().length>0)}function Ui(e){const t=zc(Hi(e.trim()));if(t==null||t==="")return null;try{return JSON.parse(t)}catch(n){return console.error("Failed to parse JSON:",n),null}}function Wc(e){var n;const t=Ui(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const Xc=/^```\s*dynamic-component\b[\s\S]*?```$/,Gc=/^```\s*dynamic-component\b/,qc=/^```\s*dynamic-component\b\s*/,Zc=/\s*```\s*$/;function Yc(e){return e.replace(/```\s*dynamic-component\b/g,"``` dynamic-component")}function Wi(e){return e.replace(qc,"").replace(Zc,"").trim()}function Kc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf("```",n);if(r<0)return null;const o=e.slice(r+3).match(/^\s*dynamic-component\b/);if(o)return{fenceStart:r,contentStart:r+3+o[0].length};n=r+3}return null}function Qc(e){return e?Xc.test(e)||Gc.test(e):!1}function Jc(e){const t=Wi(e);if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||typeof n!="object"||Array.isArray(n))return null;const r=n;return typeof r.instanceId!="string"?null:{...r,instanceId:r.instanceId,name:typeof r.name=="string"?r.name:void 0,componentId:typeof r.componentId=="string"?r.componentId:void 0,jsUrl:typeof r.jsUrl=="string"?r.jsUrl:"",url:typeof r.url=="string"?r.url:"",title:typeof r.title=="string"?r.title:"预览",position:r.position==="inline"?"inline":"right",width:typeof r.width=="string"?r.width:void 0,isFullscreen:typeof r.isFullscreen=="boolean"?r.isFullscreen:!1,autoOpen:typeof r.autoOpen=="boolean"?r.autoOpen:!1,fileRe:typeof r.fileRe=="string"?r.fileRe:void 0,target:r.target==="preview"||r.target==="previewExtra"?r.target:r.renderArea==="previewExtra"?"previewExtra":r.renderArea==="preview"?"preview":void 0}}function ed(e){const t=Wi(e);if(!t)return null;const n=t.match(/"position"\s*:\s*"(inline|right)"/);return n?{position:n[1]}:null}function td(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Kc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const u=e.slice(n,r.fenceStart);u&&t.push(u);const o=e.indexOf("```",r.contentStart);if(o===-1){t.push(e.slice(r.fenceStart));break}const a=o+3,s=e.slice(r.fenceStart,a);t.push(Yc(s)),n=a}return t.filter(r=>r.length>0)}var Pe=(e=>(e.Text="text",e.FlowUIComplete="flowui-complete",e.AssistantWidgetComplete="assistant-widget-complete",e.AssistantWidgetPending="assistant-widget-pending",e.DynamicComponentComplete="dynamic-component-complete",e.DynamicComponentPending="dynamic-component-pending",e))(Pe||{});function nd(e){var u;if(!e)return[];const t=[],n=new Set,r=Uc(e);for(const o of r)if($c(o))if($i(o)){const a=Ui(o);t.push({type:Pe.AssistantWidgetComplete,raw:o,widgetData:a,widgetUrl:(u=a==null?void 0:a.renderer)==null?void 0:u.url,widgetImplOptions:Wc(o)})}else t.push({type:Pe.AssistantWidgetPending,raw:o});else{const a=td(o);for(const s of a)if(Qc(s))if(s.endsWith("```")){const l=Jc(s);if(l!=null&&l.instanceId){if(n.has(l.instanceId))continue;n.add(l.instanceId),t.push({type:Pe.DynamicComponentComplete,raw:s,config:l})}}else{const l=ed(s);t.push({type:Pe.DynamicComponentPending,raw:s,position:(l==null?void 0:l.position)??null})}else s.trim()&&t.push({type:Pe.Text,raw:s})}return t}const Xi={};function rd(e){let t=Xi[e];if(t)return t;t=Xi[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function pn(e,t){typeof t!="string"&&(t=pn.defaultChars);const n=rd(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let o=0,a=r.length;o<a;o+=3){const s=parseInt(r.slice(o+1,o+3),16);if(s<128){u+=n[s];continue}if((s&224)===192&&o+3<a){const l=parseInt(r.slice(o+4,o+6),16);if((l&192)===128){const d=s<<6&1984|l&63;d<128?u+="��":u+=String.fromCharCode(d),o+=3;continue}}if((s&240)===224&&o+6<a){const l=parseInt(r.slice(o+4,o+6),16),d=parseInt(r.slice(o+7,o+9),16);if((l&192)===128&&(d&192)===128){const f=s<<12&61440|l<<6&4032|d&63;f<2048||f>=55296&&f<=57343?u+="���":u+=String.fromCharCode(f),o+=6;continue}}if((s&248)===240&&o+9<a){const l=parseInt(r.slice(o+4,o+6),16),d=parseInt(r.slice(o+7,o+9),16),f=parseInt(r.slice(o+10,o+12),16);if((l&192)===128&&(d&192)===128&&(f&192)===128){let c=s<<18&1835008|l<<12&258048|d<<6&4032|f&63;c<65536||c>1114111?u+="����":(c-=65536,u+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),o+=9;continue}}u+="�"}return u})}pn.defaultChars=";/?:@&=+$,#",pn.componentChars="";const Gi={};function od(e){let t=Gi[e];if(t)return t;t=Gi[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Wn(e,t,n){typeof t!="string"&&(n=t,t=Wn.defaultChars),typeof n>"u"&&(n=!0);const r=od(t);let u="";for(let o=0,a=e.length;o<a;o++){const s=e.charCodeAt(o);if(n&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){u+=e.slice(o,o+3),o+=2;continue}if(s<128){u+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[o])}return u}Wn.defaultChars=";/?:@&=+$,-_.!~*'()#",Wn.componentChars="-_.!~*'()";function tu(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function $r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const ud=/^([a-z0-9.+-]+:)/i,id=/:[0-9]*$/,ad=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,sd=["<",">",'"',"`"," ","\r",`
|
|
2
|
-
`," "],ld=["{","}","|","\\","^","`"].concat(sd),cd=["'"].concat(ld),qi=["%","/","?",";","#"].concat(cd),Zi=["/","?","#"],dd=255,Yi=/^[+a-z0-9A-Z_-]{0,63}$/,fd=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ki={javascript:!0,"javascript:":!0},Qi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function nu(e,t){if(e&&e instanceof $r)return e;const n=new $r;return n.parse(e,t),n}$r.prototype.parse=function(e,t){let n,r,u,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const d=ad.exec(o);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=ud.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=o.substr(0,2)==="//",u&&!(a&&Ki[a])&&(o=o.substr(2),this.slashes=!0)),!Ki[a]&&(u||a&&!Qi[a])){let d=-1;for(let m=0;m<Zi.length;m++)r=o.indexOf(Zi[m]),r!==-1&&(d===-1||r<d)&&(d=r);let f,c;d===-1?c=o.lastIndexOf("@"):c=o.lastIndexOf("@",d),c!==-1&&(f=o.slice(0,c),o=o.slice(c+1),this.auth=f),d=-1;for(let m=0;m<qi.length;m++)r=o.indexOf(qi[m]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=o.length),o[d-1]===":"&&d--;const h=o.slice(0,d);o=o.slice(d),this.parseHost(h),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let x=0,v=m.length;x<v;x++){const y=m[x];if(y&&!y.match(Yi)){let b="";for(let g=0,w=y.length;g<w;g++)y.charCodeAt(g)>127?b+="x":b+=y[g];if(!b.match(Yi)){const g=m.slice(0,x),w=m.slice(x+1),A=y.match(fd);A&&(g.push(A[1]),w.unshift(A[2])),w.length&&(o=w.join(".")+o),this.hostname=g.join(".");break}}}}this.hostname.length>dd&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Qi[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},$r.prototype.parseHost=function(e){let t=id.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const hd=Object.freeze(Object.defineProperty({__proto__:null,decode:pn,encode:Wn,format:tu,parse:nu},Symbol.toStringTag,{value:"Module"})),Ji=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ea=/[\0-\x1F\x7F-\x9F]/,md=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ru=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ta=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,na=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,pd=Object.freeze(Object.defineProperty({__proto__:null,Any:Ji,Cc:ea,Cf:md,P:ru,S:ta,Z:na},Symbol.toStringTag,{value:"Module"})),gd=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),bd=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var ou;const yd=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),wd=(ou=String.fromCodePoint)!==null&&ou!==void 0?ou:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function xd(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=yd.get(e))!==null&&t!==void 0?t:e}var Fe;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Fe||(Fe={}));const vd=32;var jt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(jt||(jt={}));function uu(e){return e>=Fe.ZERO&&e<=Fe.NINE}function kd(e){return e>=Fe.UPPER_A&&e<=Fe.UPPER_F||e>=Fe.LOWER_A&&e<=Fe.LOWER_F}function Ad(e){return e>=Fe.UPPER_A&&e<=Fe.UPPER_Z||e>=Fe.LOWER_A&&e<=Fe.LOWER_Z||uu(e)}function Cd(e){return e===Fe.EQUALS||Ad(e)}var Te;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Te||(Te={}));var Ht;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ht||(Ht={}));class _d{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Te.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ht.Strict}startEntity(t){this.decodeMode=t,this.state=Te.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Te.EntityStart:return t.charCodeAt(n)===Fe.NUM?(this.state=Te.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Te.NamedEntity,this.stateNamedEntity(t,n));case Te.NumericStart:return this.stateNumericStart(t,n);case Te.NumericDecimal:return this.stateNumericDecimal(t,n);case Te.NumericHex:return this.stateNumericHex(t,n);case Te.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|vd)===Fe.LOWER_X?(this.state=Te.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Te.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const o=r-n;this.result=this.result*Math.pow(u,o)+parseInt(t.substr(n,o),u),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(uu(u)||kd(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(uu(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Fe.SEMI)this.consumed+=1;else if(this.decodeMode===Ht.Strict)return 0;return this.emitCodePoint(xd(this.result),this.consumed),this.errors&&(t!==Fe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],o=(u&jt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Ed(r,u,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===Ht.Attribute&&(o===0||Cd(a))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],o=(u&jt.VALUE_LENGTH)>>14,o!==0){if(a===Fe.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Ht.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&jt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~jt.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case Te.NamedEntity:return this.result!==0&&(this.decodeMode!==Ht.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Te.NumericDecimal:return this.emitNumericEntity(0,2);case Te.NumericHex:return this.emitNumericEntity(0,3);case Te.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Te.EntityStart:return 0}}}function ra(e){let t="";const n=new _d(e,r=>t+=wd(r));return function(u,o){let a=0,s=0;for(;(s=u.indexOf("&",s))>=0;){t+=u.slice(a,s),n.startEntity(o);const d=n.write(u,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const l=t+u.slice(a);return t="",l}}function Ed(e,t,n,r){const u=(t&jt.BRANCH_LENGTH)>>7,o=t&jt.JUMP_TABLE;if(u===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=u?-1:e[n+l]-1}let a=n,s=a+u-1;for(;a<=s;){const l=a+s>>>1,d=e[l];if(d<r)a=l+1;else if(d>r)s=l-1;else return e[l+u]}return-1}const Sd=ra(gd);ra(bd);function oa(e,t=Ht.Legacy){return Sd(e,t)}function Nd(e){return Object.prototype.toString.call(e)}function iu(e){return Nd(e)==="[object String]"}const Fd=Object.prototype.hasOwnProperty;function Td(e,t){return Fd.call(e,t)}function Ur(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function ua(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function au(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Wr(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const ia=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Dd=/&([a-z#][a-z0-9]{1,31});/gi,Id=new RegExp(ia.source+"|"+Dd.source,"gi"),Od=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ld(e,t){if(t.charCodeAt(0)===35&&Od.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return au(r)?Wr(r):e}const n=oa(e);return n!==e?n:e}function Vd(e){return e.indexOf("\\")<0?e:e.replace(ia,"$1")}function gn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Id,function(t,n,r){return n||Ld(t,r)})}const Pd=/[&<>"]/,Rd=/[&<>"]/g,Md={"&":"&","<":"<",">":">",'"':"""};function Bd(e){return Md[e]}function $t(e){return Pd.test(e)?e.replace(Rd,Bd):e}const zd=/[.?*+^$[\]\\(){}|-]/g;function jd(e){return e.replace(zd,"\\$&")}function me(e){switch(e){case 9:case 32:return!0}return!1}function Xn(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Gn(e){return ru.test(e)||ta.test(e)}function qn(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Xr(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Hd=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:ua,assign:Ur,escapeHtml:$t,escapeRE:jd,fromCodePoint:Wr,has:Td,isMdAsciiPunct:qn,isPunctChar:Gn,isSpace:me,isString:iu,isValidEntityCode:au,isWhiteSpace:Xn,lib:{mdurl:hd,ucmicro:pd},normalizeReference:Xr,unescapeAll:gn,unescapeMd:Vd},Symbol.toStringTag,{value:"Module"}));function $d(e,t,n){let r,u,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){u=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}}let d=-1;return u&&(d=e.pos),e.pos=l,d}function Ud(e,t,n){let r,u=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(r=e.charCodeAt(u),r===10||r===60)return o;if(r===62)return o.pos=u+1,o.str=gn(e.slice(t+1,u)),o.ok=!0,o;if(r===92&&u+1<n){u+=2;continue}u++}return o}let a=0;for(;u<n&&(r=e.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(r===40&&(a++,a>32))return o;if(r===41){if(a===0)break;a--}u++}return t===u||a!==0||(o.str=gn(e.slice(t,u)),o.pos=u,o.ok=!0),o}function Wd(e,t,n,r){let u,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;t++,o++,s===40&&(s=41),a.marker=s}for(;o<n;){if(u=e.charCodeAt(o),u===a.marker)return a.pos=o+1,a.str+=gn(e.slice(t,o)),a.ok=!0,a;if(u===40&&a.marker===41)return a;u===92&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=gn(e.slice(t,o)),a}const Xd=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Ud,parseLinkLabel:$d,parseLinkTitle:Wd},Symbol.toStringTag,{value:"Module"})),At={};At.code_inline=function(e,t,n,r,u){const o=e[t];return"<code"+u.renderAttrs(o)+">"+$t(o.content)+"</code>"},At.code_block=function(e,t,n,r,u){const o=e[t];return"<pre"+u.renderAttrs(o)+"><code>"+$t(e[t].content)+`</code></pre>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
(function(ue,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],c):(ue=typeof globalThis<"u"?globalThis:ue||self,c(ue.FarrisX={},ue.vue))})(this,function(ue,c){"use strict";var Rv=Object.defineProperty;var z3=ue=>{throw TypeError(ue)};var Pv=(ue,c,Vt)=>c in ue?Rv(ue,c,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):ue[c]=Vt;var Tt=(ue,c,Vt)=>Pv(ue,typeof c!="symbol"?c+"":c,Vt),n1=(ue,c,Vt)=>c.has(ue)||z3("Cannot "+Vt);var V=(ue,c,Vt)=>(n1(ue,c,"read from private field"),Vt?Vt.call(ue):c.get(ue)),st=(ue,c,Vt)=>c.has(ue)?z3("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(ue):c.set(ue,Vt),Ge=(ue,c,Vt,gr)=>(n1(ue,c,"write to private field"),gr?gr.call(ue,Vt):c.set(ue,Vt),Vt),qe=(ue,c,Vt)=>(n1(ue,c,"access private method"),Vt);var cl=(ue,c,Vt,gr)=>({set _(so){Ge(ue,c,so,Vt)},get _(){return V(ue,c,gr)}});var mh,Xr,Pa,ph,gh,cr,K0,kr,aa,Ar,Va,Ha,Sr,i0,Cr,Qt,Et,et,F0,Q0,w0,m0,Tr,p0,Er,Dr,J0,er,Mr,In,I0,qa,Be,a1,ia,un,Zi,tr,F3,oa,ja,Ki,Un,Wn,i1,dl,fl,Nt,o1,oo,Gn,s1,$a;const Vt={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},gr=c.defineComponent({name:"AppPreviewMessage",props:Vt,setup(e){const t=c.ref(!1);function r(){var x;const l=(x=e.content)==null?void 0:x.appConfig;if(!l)return"";const d=l.ws??"",f=l.appPath??"",p=l.appObjectId??"";return`${l.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${f}&boId=${p}&ws=${d}&version=2.0#/home`}function n(){var d,f;const l=(d=e.content)==null?void 0:d.previewConfig;l&&e.onOpen&&e.onOpen({...l,title:l.title??((f=e.content)==null?void 0:f.appName)})}function i(l){const d=l.target;d!=null&&d.closest(".f-chat-app-preview-open-btn")||l.preventDefault()}function a(l){l.stopPropagation();const d=r();d&&window.open(d,"_blank")}return()=>{const l=e.content;if(!l)return null;const{message:d,appName:f,createdDatetime:p}=l;return c.createVNode("div",{class:"f-chat-message-app-preview"},[c.createVNode("div",{class:"f-chat-app-preview-message"},[d]),c.createVNode("div",{class:"f-chat-app-preview-card",onMouseenter:()=>t.value=!0,onMouseleave:()=>t.value=!1,onMousedown:i,onClick:n,role:"button",tabindex:0,onKeydown:g=>g.key==="Enter"&&n()},[c.createVNode("div",{class:"f-chat-app-preview-card-left"},[c.createVNode("span",{class:"f-chat-app-preview-icon"},[c.createVNode("i",{class:"fx-icon fx-icon-bubble_star"},null)])]),c.createVNode("div",{class:"f-chat-app-preview-card-middle"},[c.createVNode("div",{class:"f-chat-app-preview-app-name"},[f]),c.createVNode("div",{class:"f-chat-app-preview-datetime"},[p])]),c.createVNode("div",{class:"f-chat-app-preview-card-right"},[c.createVNode("div",{class:"f-chat-app-preview-action-area"},null),t.value&&c.createVNode("button",{type:"button",class:"f-chat-app-preview-open-btn",onClick:a,title:"在新页签中打开","aria-label":"在新页签中打开"},[c.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});gr.install=e=>{e.component(gr.name,gr)};const so={content:{type:Object,required:!0},outputMode:{type:String,default:"streaming"},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},header:{type:String,default:"sender"},placement:{type:String,default:"start"},showAvatar:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},attachments:{type:Array,default:()=>[]},onPreview:{type:Function,default:void 0},onUserAuthConfirm:{type:Function,default:void 0},compositeTailRender:{type:Function,default:void 0},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0},attachmentRowClickOpensPreview:{type:Boolean,default:!0},attachmentShowDownload:{type:Boolean,default:!0},role:{type:String,default:"assistant"}},hl={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},I3="/api/runtime/attachment";function B3(){try{const e=hl==null?void 0:hl.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function O3(e){var r;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:typeof window<"u"&&((r=window.location)!=null&&r.origin)&&t.startsWith("/")?`${window.location.origin}${t}`:t}function L3(e){return`${I3}/${encodeURIComponent(e)}/download`}function ml(e){const t=String(e??"").trim();if(!t)return"";const r=L3(t),n=B3();return n?`${n}${r}`:r}function l1(e){const t=e.trim().match(/\/api\/runtime\/attachment\/([^/]+)\/download(?:\?|#|$)/i);if(!(t!=null&&t[1]))return"";try{return decodeURIComponent(t[1]).trim()}catch{return t[1].trim()}}function u1(e){return String(e??"").replace(/[/\\]/g,"_").trim()||"download"}function R3(e){if(!e)return null;const t=/filename\*=UTF-8''([^;]+)|filename="([^"]+)"|filename=([^;]+)/i.exec(e),r=(t==null?void 0:t[1])??(t==null?void 0:t[2])??(t==null?void 0:t[3]);if(!r)return null;try{return decodeURIComponent(r.trim())}catch{return r.trim()}}function c1(e){const t=O3(e);if(typeof window>"u")return t;try{const r=new URL(t);if(r.origin!==window.location.origin&&r.pathname.startsWith("/api/"))return`${r.pathname}${r.search}${r.hash}`}catch{}return t}function P3(e,t){const r=URL.createObjectURL(e),n=document.createElement("a");n.href=r,n.download=u1(t),n.rel="noopener noreferrer",n.style.display="none",document.body.appendChild(n),n.click(),n.remove(),URL.revokeObjectURL(r)}function V3(e){const t=document.createElement("a");t.href=c1(e),t.rel="noopener noreferrer",t.style.display="none",document.body.appendChild(t),t.click(),t.remove()}function da(e){const t=String(e.fileId??"").trim();if(t)return ml(t);const r=String(e.url??"").trim();if(!r)return;const n=l1(r);if(n)return ml(n);if(r.startsWith("http://")||r.startsWith("https://")||r.startsWith("/"))return r}async function lo(e,t){const r=u1(t),n=c1(e);try{const i=await fetch(n,{credentials:"include",mode:"cors"});if(!i.ok)throw new Error(`download_http_${i.status}`);const a=await i.blob(),l=R3(i.headers.get("Content-Disposition"))??r;P3(a,l)}catch{V3(e)}}function Ut(e,t){return t&&(typeof t=="string"?t.split(" ").filter(Boolean).forEach(n=>{e[n]=!0}):Array.isArray(t)?t.forEach(r=>{r&&(e[r]=!0)}):typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{r&&n&&(e[r]=!0)})),e}function n0(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(n=>{var a,l;const i=n.split(":");if(i.length>=2&&((a=i[0])!=null&&a.trim())&&((l=i[1])!=null&&l.trim())){const d=i[0].trim(),f=i.slice(1).join(":").trim();e[d]=f}}):typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{r&&n!==void 0&&n!==null&&(e[r]=n)})),e}function Ja(e){return e||null}function d1(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function uo(e){return e?typeof e!="string"?e:d1(e)?c.h("img",{src:e,alt:"icon",class:"fx-prompt--item-icon-image",onError:t=>{const r=t.target;r.style.display="none",r.parentElement.innerHTML='<i class="fx-icon fx-icon-warning"></i>'}}):e.includes("fx-icon")||e.includes("icon-")?c.h("i",{class:e}):e:null}function f1(e,t,r,n={}){const{charInterval:i=30}=n,a=c.ref({});let l=[],d=new Set;const f=()=>typeof t=="function"?t():t.value,p=()=>typeof r=="function"?r():r.value,g=()=>{l.forEach(C=>clearInterval(C)),l=[]},m=()=>{g(),a.value={},d.clear()},x=()=>{g(),a.value={},d.clear()},S=()=>{const C=e();if(!C||Object.keys(C).length===0){a.value={};return}if(!p()){a.value={...C},d=new Set(Object.keys(C));return}const _=Object.keys(C);_.forEach(D=>{a.value.hasOwnProperty(D)||(a.value[D]="")});const F=_.filter(D=>!d.has(D));if(F.length===0)return;let z=0;const E=()=>{var Y;if(z>=F.length)return;const D=F[z],B=C[D];if(!B){d.add(D),z++,E();return}let R=((Y=a.value[D])==null?void 0:Y.length)||0;const W=setInterval(()=>{R<B.length?(a.value={...a.value,[D]:B.slice(0,R+1)},R++):(clearInterval(W),l=l.filter(q=>q!==W),d.add(D),z++,E())},i);l.push(W)};E()};return c.watch(()=>e(),()=>{f()&&S()},{immediate:!0}),c.watch(r,()=>{x(),f()&&S()}),c.watch(t,C=>{C?S():m()}),c.onMounted(()=>{f()&&S()}),{displayContent:a}}function co(){const e=c.reactive({}),t=[],r=c.ref(null);let n=null;const i=30,a=C=>{const _=e[C];return!_||_.displayedLength>=_.rawValue.length},l=c.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(C=>a(C))),d=()=>{for(const C of t)if(!a(C))return C;return null},f=()=>{if(!r.value&&(r.value=d(),!r.value)){p();return}const C=e[r.value];C&&(C.displayedLength<C.rawValue.length?(C.displayedLength++,C.displayedValue=C.rawValue.slice(0,C.displayedLength),C.isStreaming=!0):(C.isStreaming=!1,C.displayedValue=C.rawValue,r.value=d(),r.value||p()))},p=()=>{n&&(clearInterval(n),n=null)},g=()=>{n||(n=setInterval(f,i))},m=()=>{p(),Object.keys(e).forEach(C=>{delete e[C]}),t.length=0,r.value=null},x=(C,_)=>{if(e[C]){S(C,_);return}t.push(C),e[C]={rawValue:_??"",displayedLength:0,isStreaming:!1,displayedValue:""},n||(!r.value||r.value===C)&&g()},S=(C,_)=>{const F=e[C];if(!F){x(C,_);return}F.rawValue=_??"",!n&&!a(C)&&(!r.value||r.value===C)&&g()};return c.onUnmounted(()=>{p()}),{propertyStates:e,currentProperty:r,get isAnyStreaming(){return Object.values(e).some(C=>C.isStreaming)},isAllDone:l,startStreaming:g,reset:m,registerProperty:x,updatePropertyValue:S}}function pl(){const e=c.ref(null),t=c.ref(0),r=c.ref(!1);let n=null;const i=()=>{e.value=Date.now(),r.value=!0,n=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},a=()=>{n&&(clearInterval(n),n=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:r,start:i,stop:a,reset:()=>{a(),e.value=null,t.value=0,r.value=!1}}}const H3={read_file:"tool_file",write_file:"tool_file",edit_file:"tool_file",glob:"tool_file",grep:"tool_file",bash:"tool_command",web_fetch:"tool_internet",web_search:"tool_internet",todo_create:"tool_task",todo_list:"tool_task",todo_get:"tool_task",todo_update:"tool_task",ask_user:"tool_interaction",core_memory:"tool_memory",add_daily_note:"tool_memory",lint_json:"dateselect",lint_markdown:"dateselect",output_validation:"dateselect",load_skill_through_path:"tool_mcp"};function q3(e){return e?e.startsWith("mcp:")?"tool_mcp":H3[e]??"thinking_tool":"thinking_tool"}function gl(){return{getToolIconClass:q3}}function j3(e){return e.scrollWidth>e.clientWidth}function h1(){j3(this)?this.title=this.textContent??"":this.removeAttribute("title")}function m1(){this.removeAttribute("title")}const p1={mounted(e){e.addEventListener("mouseenter",h1),e.addEventListener("mouseleave",m1)},updated(e){e.removeAttribute("title")},unmounted(e){e.removeEventListener("mouseenter",h1),e.removeEventListener("mouseleave",m1)}};function $3(e,t){const r=c.computed(()=>{var i;return n0({},(i=e.styles)==null?void 0:i.header)});function n(){return t.slots.header&&c.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:r.value},[t.slots.header()])}return{renderHeader:n}}function U3(e,t){var a;const r=c.ref(((a=e.content)==null?void 0:a.sender)??"发送人"),n=c.computed(()=>{var l;return n0({},(l=e.styles)==null?void 0:l.header)});function i(){return c.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:n.value},[r.value])}return{renderHeader:i}}const g1={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},W3={role:{type:String,default:"assistant"},attachments:{type:Array,default:()=>[]},enableBatchPreview:{type:Boolean,default:!1},enableFixedWidth:{type:Boolean,default:!1},showDownloadButton:{type:Boolean,default:!0},onPreview:{type:Function,default:void 0},onBatchPreview:{type:Function,default:void 0}};function b1(){return{getFileIcon:(i,a="file-type-",l="")=>{var p;const d={pdf:"pdf",doc:"doc",docx:"doc",xls:"xls",xlsx:"xls",csv:"xls",ppt:"ppt",pptx:"ppt",txt:"txt",zip:"zip",rar:"zip",image:"img",img:"img",md:"md",audio:"any",form:"form",report:"report",board:"board",html:"html",json:"json"};let f=i?d[i.toLowerCase()]:"";if(!f&&l){const g=((p=l.split(".").pop())==null?void 0:p.toLowerCase())||"";f=g?d[g]:""}return`${a}${f||"any"}`},formatFileName:i=>(i==null?void 0:i.replace(/\.[^.]+$/,""))??"",formatFileSize:i=>i?i<1024?i+" B":i<1048576?(i/1024).toFixed(1)+" KB":(i/1048576).toFixed(1)+" MB":"",formatFileTime:i=>{if(!i)return"";const a=new Date(i),l=a.getFullYear(),d=String(a.getMonth()+1).padStart(2,"0"),f=String(a.getDate()).padStart(2,"0");return`${l}-${d}-${f}`}}}function Xn({status:e,variant:t=""}){let r="";return t?r=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()} variant--${t.toLowerCase()} `:r=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`,c.createVNode("span",{class:r,"aria-hidden":!0},null)}const y1=c.defineComponent({name:"FXBubbleAttachment",props:W3,emits:["preview","batchPreview"],setup(e,t){const r=c.computed(()=>e.attachments??[]),n=c.computed(()=>{var z;return((z=r.value)==null?void 0:z.length)>0}),{formatFileName:i,formatFileSize:a,formatFileTime:l,getFileIcon:d}=b1(),f=c.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),p=c.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth}));function g(z,E){E.pending||t.emit("preview",E)}async function m(z,E){z.stopPropagation(),z.preventDefault();const D=da(E);D&&await lo(D,E.name)}function x(z){z.stopPropagation(),z.preventDefault(),t.emit("batchPreview",r.value)}function S(z){switch(z.toLowerCase()){case"doc":case"docx":return"Word";case"xlsx":case"xls":return"Excel";case"ppt":case"pptx":return"PPT";case"txt":return"txt";case"png":case"jpg":case"jpeg":return"Image";case"pdf":return"PDF";case"md":return"Markdown";default:return""}}function C(z){if(!z)return null;const E=S(z.type);return c.createVNode("div",{class:"file-info f-utils-fill"},[c.createVNode("span",{class:"file-name",title:z.name},[z.name]),c.createVNode("div",{class:"file-info-footer"},[c.createVNode("span",{class:`file-icon ${d(z.type,"file-type-",z.name)}`},null),E&&c.createVNode(c.Fragment,null,[c.createVNode("span",{class:"file-type"},[S(z.type)])]),z.size&&c.createVNode(c.Fragment,null,[c.createVNode("div",{class:"file-info-divider"},null),c.createTextVNode(" "),c.createVNode("span",{class:"file-size"},[a(z.size)])])])])}function _(z,E){const D=da(z);return c.createVNode("div",{class:"f-chat-bubble-attachment-item "+d(z.type,"attachment-type-",z.name)+(z.pending?" status-working":""),key:E,onClick:B=>g(B,z)},[c.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation"},[c.createVNode("div",{class:f.value},[c.createVNode("span",{class:"f-chat-bubble-attachment-icon file-icon "+d(z.type,"file-type-",z.name)},null),c.createVNode("span",{class:p.value,title:z.name},[i(z.name)]),z.pending===!0&&c.createVNode("div",{class:"f-chat-bubble-attachment-status status-working"},[c.createVNode(Xn,{status:"Working",variant:"attachment"},null),c.createTextVNode(" 生成中")]),z.timestamp?c.createVNode("span",{class:"f-chat-bubble-attachment-text"},[c.createTextVNode("创建时间:"),l(z.timestamp)]):z.size?c.createVNode("span",{class:"f-chat-bubble-attachment-size"},[c.createTextVNode("文件大小:"),a(z.size)]):null])]),e.showDownloadButton!==!1&&D?c.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:B=>m(B,z)},[c.createVNode("i",{class:"fx-icon fx-icon-sidewindow_download","aria-hidden":"true"},null)]):null])}function F(z,E){return c.createVNode("div",{class:"f-chat-bubble-attachment-toast",key:E},[C(z)])}return()=>n.value?c.createVNode("div",{class:{"f-chat-bubble-attachments":!0,"attachments-toast":e.role==="user"}},[r.value.map((z,E)=>e.role==="user"?F(z,E):_(z,E)),e.enableBatchPreview&&c.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:x},[c.createVNode("span",{class:"f-chat-bubble-attachment-preview-btn-text"},[c.createTextVNode("查看全部文件")]),c.createVNode("i",{class:"fx-icon fx-icon-sort-asc-sm",style:{transform:"rotate(90deg)"}},null)])]):null}}),v1=c.defineComponent({name:"FXBubbleFileContentFooter",props:g1,setup(e,t){const r=c.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return n0({},e.customStyle),()=>c.createVNode(y1,{attachments:r.value,onPreview:n=>{var i;return(i=e.onPreviewFile)==null?void 0:i.call(e,n)},onBatchPreview:n=>{var i;return(i=e.onBatchPreviewFile)==null?void 0:i.call(e,n)}},null)}}),G3={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},X3=c.defineComponent({name:"FXBubblePageContentFooter",props:G3,setup(e,t){const r=c.ref(),n=c.computed(()=>{var l,d;const a={width:"100%",height:"100%",border:"none"};return(l=e.customStyle)!=null&&l.width&&(a.width=e.customStyle.width),(d=e.customStyle)!=null&&d.height&&(a.height=`${e.customStyle.height}px`),a}),i=a=>{var l,d;((l=a.data)==null?void 0:l.type)==="navigation"&&((d=a.data)!=null&&d.url)&&e.onNavigate&&e.onNavigate(a.data.url)};return c.onMounted(()=>{window.addEventListener("message",i)}),c.onUnmounted(()=>{window.removeEventListener("message",i)}),()=>c.createVNode("iframe",{ref:r,src:e.pageUrl,style:n.value,scrolling:"auto"},null)}});function x1(){function e(i,a){const{fileContent:l,height:d,width:f}=i;return{file:l,customStyle:{width:f||"100%",height:d||"100%"},onPreviewFile:a==null?void 0:a.onPreviewFile,onBatchPreviewFile:a==null?void 0:a.onBatchPreviewFile}}function t(i,a){const{pageUrl:l,height:d,width:f}=i;return{pageUrl:l,customStyle:{width:f||"100%",height:d||"100%"},onNavigate:a==null?void 0:a.onNavigate}}function r(i,a){const l=e(i,a);return c.h(v1,l)}function n(i,a){const l=t(i,a);return c.h(X3,l)}return{renderFileEmbeddedContent:r,renderPageEmbeddedContent:n}}const Y3={title:{type:String,default:""},subtitle:{type:String,default:""},text:{type:String,default:""},textFormat:{type:String,default:"plain"},placement:{type:String,default:"start"},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0}},bl="assistant-widget",br="```";function ei(e,t){let r=t;for(;r<e.length&&/\s/.test(e[r]);)r+=1;return r}function w1(e,t){let r=t;for(;r<e.length&&/[a-zA-Z0-9-]/.test(e[r]);)r+=1;return{lang:e.slice(t,r),next:r}}function k1(e){const t=e.toLowerCase();return t.length===0||t.length>bl.length?!1:bl.startsWith(t)}function Z3(e){return e.toLowerCase()===bl}function K3(e,t){let r=0;for(;r<t;){const n=e.indexOf(br,r);if(n===-1||n>=t)break;let i=n+br.length;i=ei(e,i);const{lang:a}=w1(e,i);if(a.length>0)return!0;r=n+br.length}return!1}function A1(e,t){if(!e.startsWith(br,t))return null;let r=t+br.length;r=ei(e,r);const{lang:n,next:i}=w1(e,r);return n.length===0?e.slice(i).trim().length===0?K3(e,t)?null:{fenceStart:t,bodyStart:i,langComplete:!1}:null:k1(n)?(r=ei(e,i),{fenceStart:t,bodyStart:r,langComplete:Z3(n)}):null}function yl(e,t=0){const r=ei(e,t);return A1(e,r)}function Q3(e,t,r){if(t<r)return!1;const n=e.slice(t+br.length);return n.length===0?!0:n.startsWith("`")?!1:(/^\s*[\r\n]/.test(n)||/^\s*$/.test(n),!0)}function fo(e,t){let r=t;for(;r<=e.length;){const n=e.indexOf(br,r);if(n===-1)return-1;if(Q3(e,n,t))return n;r=n+1}return-1}function J3(e){const t=yl(e,0);if(!(t!=null&&t.langComplete))return null;const r=fo(e,t.bodyStart);return r===-1?null:e.slice(t.bodyStart,r).trim()}function S1(e){return e.replace(/```\s*assistant-widget\s*/gi,"``` assistant-widget\n")}function em(e){const t=e.match(/^\s*```\s*([a-zA-Z0-9-]*)$/);return t?k1(t[1]??""):!1}function tm(e,t){let r=t;for(;r<e.length;){const n=e.indexOf(br,r);if(n===-1)return null;const i=A1(e,n);if(i)return{fenceIdx:n,open:i};r=n+br.length}return null}function C1(e){if(!e)return!1;const t=yl(e,0);if(!(t!=null&&t.langComplete))return!1;const r=fo(e,t.bodyStart);return r===-1?!1:ei(e,r+br.length)>=e.length}function rm(e){if(!e)return!1;if(C1(e)||em(e))return!0;const t=yl(e,0);return t?t.langComplete?fo(e,t.bodyStart)===-1:!0:!1}function nm(e){if(!e)return[];const t=[];let r=0;for(;r<e.length;){const n=tm(e,r);if(!n){const f=e.slice(r);f&&t.push(f);break}const{fenceIdx:i,open:a}=n;if(i>r&&t.push(e.slice(r,i)),!a.langComplete){t.push(e.slice(i));break}const l=fo(e,a.bodyStart);if(l===-1){t.push(e.slice(i));break}const d=l+br.length;t.push(S1(e.slice(i,d))),r=d}return t.filter(n=>n.trim().length>0)}function T1(e){const t=J3(S1(e.trim()));if(t==null||t==="")return null;try{return JSON.parse(t)}catch(r){return console.error("Failed to parse JSON:",r),null}}function am(e){var r;const t=T1(e);return((r=t==null?void 0:t.renderer)==null?void 0:r.widgetImplOptions)||{}}const im=/^```\s*dynamic-component\b[\s\S]*?```$/,om=/^```\s*dynamic-component\b/,sm=/^```\s*dynamic-component\b\s*/,lm=/\s*```\s*$/;function um(e){return e.replace(/```\s*dynamic-component\b/g,"``` dynamic-component")}function E1(e){return e.replace(sm,"").replace(lm,"").trim()}function cm(e,t){let r=t;for(;r<e.length;){const n=e.indexOf("```",r);if(n<0)return null;const a=e.slice(n+3).match(/^\s*dynamic-component\b/);if(a)return{fenceStart:n,contentStart:n+3+a[0].length};r=n+3}return null}function dm(e){return e?im.test(e)||om.test(e):!1}function fm(e){const t=E1(e);if(!t)return null;let r;try{r=JSON.parse(t)}catch{return null}if(!r||typeof r!="object"||Array.isArray(r))return null;const n=r;return typeof n.instanceId!="string"?null:{...n,instanceId:n.instanceId,name:typeof n.name=="string"?n.name:void 0,componentId:typeof n.componentId=="string"?n.componentId:void 0,jsUrl:typeof n.jsUrl=="string"?n.jsUrl:"",url:typeof n.url=="string"?n.url:"",title:typeof n.title=="string"?n.title:"预览",position:n.position==="inline"?"inline":"right",width:typeof n.width=="string"?n.width:void 0,isFullscreen:typeof n.isFullscreen=="boolean"?n.isFullscreen:!1,autoOpen:typeof n.autoOpen=="boolean"?n.autoOpen:!1,fileRe:typeof n.fileRe=="string"?n.fileRe:void 0,target:n.target==="preview"||n.target==="previewExtra"?n.target:n.renderArea==="previewExtra"?"previewExtra":n.renderArea==="preview"?"preview":void 0}}function hm(e){const t=E1(e);if(!t)return null;const r=t.match(/"position"\s*:\s*"(inline|right)"/);return r?{position:r[1]}:null}function mm(e){if(!e)return[];const t=[];let r=0;for(;r<e.length;){const n=cm(e,r);if(!n){const f=e.slice(r);f&&t.push(f);break}const i=e.slice(r,n.fenceStart);i&&t.push(i);const a=e.indexOf("```",n.contentStart);if(a===-1){t.push(e.slice(n.fenceStart));break}const l=a+3,d=e.slice(n.fenceStart,l);t.push(um(d)),r=l}return t.filter(n=>n.length>0)}var y0=(e=>(e.Text="text",e.FlowUIComplete="flowui-complete",e.AssistantWidgetComplete="assistant-widget-complete",e.AssistantWidgetPending="assistant-widget-pending",e.DynamicComponentComplete="dynamic-component-complete",e.DynamicComponentPending="dynamic-component-pending",e))(y0||{});function pm(e){var i;if(!e)return[];const t=[],r=new Set,n=nm(e);for(const a of n)if(rm(a))if(C1(a)){const l=T1(a);t.push({type:y0.AssistantWidgetComplete,raw:a,widgetData:l,widgetUrl:(i=l==null?void 0:l.renderer)==null?void 0:i.url,widgetImplOptions:am(a)})}else t.push({type:y0.AssistantWidgetPending,raw:a});else{const l=mm(a);for(const d of l)if(dm(d))if(d.endsWith("```")){const f=fm(d);if(f!=null&&f.instanceId){if(r.has(f.instanceId))continue;r.add(f.instanceId),t.push({type:y0.DynamicComponentComplete,raw:d,config:f})}}else{const f=hm(d);t.push({type:y0.DynamicComponentPending,raw:d,position:(f==null?void 0:f.position)??null})}else d.trim()&&t.push({type:y0.Text,raw:d})}return t}/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:D1,setPrototypeOf:M1,isFrozen:gm,getPrototypeOf:bm,getOwnPropertyDescriptor:ym}=Object;let{freeze:C0,seal:or,create:ho}=Object,{apply:vl,construct:xl}=typeof Reflect<"u"&&Reflect;C0||(C0=function(t){return t}),or||(or=function(t){return t}),vl||(vl=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return t.apply(r,i)}),xl||(xl=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new t(...n)});const mo=E0(Array.prototype.forEach),vm=E0(Array.prototype.lastIndexOf),N1=E0(Array.prototype.pop),ti=E0(Array.prototype.push),xm=E0(Array.prototype.splice),po=E0(String.prototype.toLowerCase),wl=E0(String.prototype.toString),kl=E0(String.prototype.match),ri=E0(String.prototype.replace),wm=E0(String.prototype.indexOf),km=E0(String.prototype.trim),$0=E0(Object.prototype.hasOwnProperty),T0=E0(RegExp.prototype.test),ni=Am(TypeError);function E0(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return vl(e,t,n)}}function Am(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return xl(e,r)}}function ot(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:po;M1&&M1(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(gm(t)||(t[n]=a),i=a)}e[i]=!0}return e}function Sm(e){for(let t=0;t<e.length;t++)$0(e,t)||(e[t]=null);return e}function Ir(e){const t=ho(null);for(const[r,n]of D1(e))$0(e,r)&&(Array.isArray(n)?t[r]=Sm(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Ir(n):t[r]=n);return t}function ai(e,t){for(;e!==null;){const n=ym(e,t);if(n){if(n.get)return E0(n.get);if(typeof n.value=="function")return E0(n.value)}e=bm(e)}function r(){return null}return r}const z1=C0(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Al=C0(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Sl=C0(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cm=C0(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Cl=C0(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Tm=C0(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_1=C0(["#text"]),F1=C0(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Tl=C0(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),I1=C0(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),go=C0(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Em=or(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Dm=or(/<%[\w\W]*|[\w\W]*%>/gm),Mm=or(/\$\{[\w\W]*/gm),Nm=or(/^data-[\-\w.\u00B7-\uFFFF]+$/),zm=or(/^aria-[\-\w]+$/),B1=or(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_m=or(/^(?:\w+script|data):/i),Fm=or(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),O1=or(/^html$/i),Im=or(/^[a-z][.\w]*(-[.\w]+)+$/i);var L1=Object.freeze({__proto__:null,ARIA_ATTR:zm,ATTR_WHITESPACE:Fm,CUSTOM_ELEMENT:Im,DATA_ATTR:Nm,DOCTYPE_NAME:O1,ERB_EXPR:Dm,IS_ALLOWED_URI:B1,IS_SCRIPT_OR_DATA:_m,MUSTACHE_EXPR:Em,TMPLIT_EXPR:Mm});const ii={element:1,text:3,progressingInstruction:7,comment:8,document:9},Bm=function(){return typeof window>"u"?null:window},Om=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},R1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function P1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bm();const t=$e=>P1($e);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==ii.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:d,Element:f,NodeFilter:p,NamedNodeMap:g=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:x,trustedTypes:S}=e,C=f.prototype,_=ai(C,"cloneNode"),F=ai(C,"remove"),z=ai(C,"nextSibling"),E=ai(C,"childNodes"),D=ai(C,"parentNode");if(typeof l=="function"){const $e=r.createElement("template");$e.content&&$e.content.ownerDocument&&(r=$e.content.ownerDocument)}let B,R="";const{implementation:W,createNodeIterator:Y,createDocumentFragment:q,getElementsByTagName:pe}=r,{importNode:he}=n;let ce=R1();t.isSupported=typeof D1=="function"&&typeof D=="function"&&W&&W.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:be,ERB_EXPR:ae,TMPLIT_EXPR:xe,DATA_ATTR:Ce,ARIA_ATTR:te,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:ze}=L1;let{IS_ALLOWED_URI:Ue}=L1,X=null;const Z=ot({},[...z1,...Al,...Sl,...Cl,..._1]);let Q=null;const oe=ot({},[...F1,...Tl,...I1,...go]);let fe=Object.seal(ho(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,ie=null;const me=Object.seal(ho(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ge=!0,Oe=!0,Xe=!1,Ze=!0,nt=!1,at=!0,it=!1,qt=!1,B0=!1,Wt=!1,lt=!1,Se=!1,rr=!0,sa=!1;const Bn="user-content-";let On=!0,Nr=!1,O0={},b0=null;const Yr=ot({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let cn=null;const k0=ot({},["audio","video","img","source","image","track"]);let nr=null;const zr=ot({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ln="http://www.w3.org/1998/Math/MathML",Ua="http://www.w3.org/2000/svg",_r="http://www.w3.org/1999/xhtml";let Rn=_r,q0=!1,Pn=null;const Ps=ot({},[Ln,Ua,_r],wl);let Wa=ot({},["mi","mo","mn","ms","mtext"]),Vn=ot({},["annotation-xml"]);const Qi=ot({},["title","style","font","a","script"]);let la=null;const Sc=["application/xhtml+xml","text/html"],Cc="text/html";let It=null,xt=null;const y=r.createElement("form"),w=function(K){return K instanceof RegExp||K instanceof Function},ve=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xt&&xt===K)){if((!K||typeof K!="object")&&(K={}),K=Ir(K),la=Sc.indexOf(K.PARSER_MEDIA_TYPE)===-1?Cc:K.PARSER_MEDIA_TYPE,It=la==="application/xhtml+xml"?wl:po,X=$0(K,"ALLOWED_TAGS")?ot({},K.ALLOWED_TAGS,It):Z,Q=$0(K,"ALLOWED_ATTR")?ot({},K.ALLOWED_ATTR,It):oe,Pn=$0(K,"ALLOWED_NAMESPACES")?ot({},K.ALLOWED_NAMESPACES,wl):Ps,nr=$0(K,"ADD_URI_SAFE_ATTR")?ot(Ir(zr),K.ADD_URI_SAFE_ATTR,It):zr,cn=$0(K,"ADD_DATA_URI_TAGS")?ot(Ir(k0),K.ADD_DATA_URI_TAGS,It):k0,b0=$0(K,"FORBID_CONTENTS")?ot({},K.FORBID_CONTENTS,It):Yr,Ae=$0(K,"FORBID_TAGS")?ot({},K.FORBID_TAGS,It):Ir({}),ie=$0(K,"FORBID_ATTR")?ot({},K.FORBID_ATTR,It):Ir({}),O0=$0(K,"USE_PROFILES")?K.USE_PROFILES:!1,ge=K.ALLOW_ARIA_ATTR!==!1,Oe=K.ALLOW_DATA_ATTR!==!1,Xe=K.ALLOW_UNKNOWN_PROTOCOLS||!1,Ze=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,nt=K.SAFE_FOR_TEMPLATES||!1,at=K.SAFE_FOR_XML!==!1,it=K.WHOLE_DOCUMENT||!1,Wt=K.RETURN_DOM||!1,lt=K.RETURN_DOM_FRAGMENT||!1,Se=K.RETURN_TRUSTED_TYPE||!1,B0=K.FORCE_BODY||!1,rr=K.SANITIZE_DOM!==!1,sa=K.SANITIZE_NAMED_PROPS||!1,On=K.KEEP_CONTENT!==!1,Nr=K.IN_PLACE||!1,Ue=K.ALLOWED_URI_REGEXP||B1,Rn=K.NAMESPACE||_r,Wa=K.MATHML_TEXT_INTEGRATION_POINTS||Wa,Vn=K.HTML_INTEGRATION_POINTS||Vn,fe=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&w(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(fe.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&w(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(fe.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(fe.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),nt&&(Oe=!1),lt&&(Wt=!0),O0&&(X=ot({},_1),Q=ho(null),O0.html===!0&&(ot(X,z1),ot(Q,F1)),O0.svg===!0&&(ot(X,Al),ot(Q,Tl),ot(Q,go)),O0.svgFilters===!0&&(ot(X,Sl),ot(Q,Tl),ot(Q,go)),O0.mathMl===!0&&(ot(X,Cl),ot(Q,I1),ot(Q,go))),$0(K,"ADD_TAGS")||(me.tagCheck=null),$0(K,"ADD_ATTR")||(me.attributeCheck=null),K.ADD_TAGS&&(typeof K.ADD_TAGS=="function"?me.tagCheck=K.ADD_TAGS:(X===Z&&(X=Ir(X)),ot(X,K.ADD_TAGS,It))),K.ADD_ATTR&&(typeof K.ADD_ATTR=="function"?me.attributeCheck=K.ADD_ATTR:(Q===oe&&(Q=Ir(Q)),ot(Q,K.ADD_ATTR,It))),K.ADD_URI_SAFE_ATTR&&ot(nr,K.ADD_URI_SAFE_ATTR,It),K.FORBID_CONTENTS&&(b0===Yr&&(b0=Ir(b0)),ot(b0,K.FORBID_CONTENTS,It)),K.ADD_FORBID_CONTENTS&&(b0===Yr&&(b0=Ir(b0)),ot(b0,K.ADD_FORBID_CONTENTS,It)),On&&(X["#text"]=!0),it&&ot(X,["html","head","body"]),X.table&&(ot(X,["tbody"]),delete Ae.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw ni('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ni('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=K.TRUSTED_TYPES_POLICY,R=B.createHTML("")}else B===void 0&&(B=Om(S,i)),B!==null&&typeof R=="string"&&(R=B.createHTML(""));C0&&C0(K),xt=K}},M=ot({},[...Al,...Sl,...Cm]),H=ot({},[...Cl,...Tm]),Ct=function(K){let de=D(K);(!de||!de.tagName)&&(de={namespaceURI:Rn,tagName:"template"});const He=po(K.tagName),vt=po(de.tagName);return Pn[K.namespaceURI]?K.namespaceURI===Ua?de.namespaceURI===_r?He==="svg":de.namespaceURI===Ln?He==="svg"&&(vt==="annotation-xml"||Wa[vt]):!!M[He]:K.namespaceURI===Ln?de.namespaceURI===_r?He==="math":de.namespaceURI===Ua?He==="math"&&Vn[vt]:!!H[He]:K.namespaceURI===_r?de.namespaceURI===Ua&&!Vn[vt]||de.namespaceURI===Ln&&!Wa[vt]?!1:!H[He]&&(Qi[He]||!M[He]):!!(la==="application/xhtml+xml"&&Pn[K.namespaceURI]):!1},Fe=function(K){ti(t.removed,{element:K});try{D(K).removeChild(K)}catch{F(K)}},Rt=function(K,de){try{ti(t.removed,{attribute:de.getAttributeNode(K),from:de})}catch{ti(t.removed,{attribute:null,from:de})}if(de.removeAttribute(K),K==="is")if(Wt||lt)try{Fe(de)}catch{}else try{de.setAttribute(K,"")}catch{}},dn=function(K){let de=null,He=null;if(B0)K="<remove></remove>"+K;else{const jt=kl(K,/^[\r\n\t ]+/);He=jt&&jt[0]}la==="application/xhtml+xml"&&Rn===_r&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");const vt=B?B.createHTML(K):K;if(Rn===_r)try{de=new x().parseFromString(vt,la)}catch{}if(!de||!de.documentElement){de=W.createDocument(Rn,"template",null);try{de.documentElement.innerHTML=q0?R:vt}catch{}}const o0=de.body||de.documentElement;return K&&He&&o0.insertBefore(r.createTextNode(He),o0.childNodes[0]||null),Rn===_r?pe.call(de,it?"html":"body")[0]:it?de.documentElement:o0},We=function(K){return Y.call(K.ownerDocument||K,K,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Bt=function(K){return K instanceof m&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof g)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},A0=function(K){return typeof d=="function"&&K instanceof d};function L0($e,K,de){mo($e,He=>{He.call(t,K,de,xt)})}const $=function(K){let de=null;if(L0(ce.beforeSanitizeElements,K,null),Bt(K))return Fe(K),!0;const He=It(K.nodeName);if(L0(ce.uponSanitizeElement,K,{tagName:He,allowedTags:X}),at&&K.hasChildNodes()&&!A0(K.firstElementChild)&&T0(/<[/\w!]/g,K.innerHTML)&&T0(/<[/\w!]/g,K.textContent)||K.nodeType===ii.progressingInstruction||at&&K.nodeType===ii.comment&&T0(/<[/\w]/g,K.data))return Fe(K),!0;if(!(me.tagCheck instanceof Function&&me.tagCheck(He))&&(!X[He]||Ae[He])){if(!Ae[He]&&J(He)&&(fe.tagNameCheck instanceof RegExp&&T0(fe.tagNameCheck,He)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(He)))return!1;if(On&&!b0[He]){const vt=D(K)||K.parentNode,o0=E(K)||K.childNodes;if(o0&&vt){const jt=o0.length;for(let s0=jt-1;s0>=0;--s0){const Dt=_(o0[s0],!0);Dt.__removalCount=(K.__removalCount||0)+1,vt.insertBefore(Dt,z(K))}}}return Fe(K),!0}return K instanceof f&&!Ct(K)||(He==="noscript"||He==="noembed"||He==="noframes")&&T0(/<\/no(script|embed|frames)/i,K.innerHTML)?(Fe(K),!0):(nt&&K.nodeType===ii.text&&(de=K.textContent,mo([be,ae,xe],vt=>{de=ri(de,vt," ")}),K.textContent!==de&&(ti(t.removed,{element:K.cloneNode()}),K.textContent=de)),L0(ce.afterSanitizeElements,K,null),!1)},dr=function(K,de,He){if(ie[de]||rr&&(de==="id"||de==="name")&&(He in r||He in y))return!1;if(!(Oe&&!ie[de]&&T0(Ce,de))){if(!(ge&&T0(te,de))){if(!(me.attributeCheck instanceof Function&&me.attributeCheck(de,K))){if(!Q[de]||ie[de]){if(!(J(K)&&(fe.tagNameCheck instanceof RegExp&&T0(fe.tagNameCheck,K)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(K))&&(fe.attributeNameCheck instanceof RegExp&&T0(fe.attributeNameCheck,de)||fe.attributeNameCheck instanceof Function&&fe.attributeNameCheck(de,K))||de==="is"&&fe.allowCustomizedBuiltInElements&&(fe.tagNameCheck instanceof RegExp&&T0(fe.tagNameCheck,He)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(He))))return!1}else if(!nr[de]){if(!T0(Ue,ri(He,ne,""))){if(!((de==="src"||de==="xlink:href"||de==="href")&&K!=="script"&&wm(He,"data:")===0&&cn[K])){if(!(Xe&&!T0(ye,ri(He,ne,"")))){if(He)return!1}}}}}}}return!0},J=function(K){return K!=="annotation-xml"&&kl(K,ze)},Ji=function(K){L0(ce.beforeSanitizeAttributes,K,null);const{attributes:de}=K;if(!de||Bt(K))return;const He={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let vt=de.length;for(;vt--;){const o0=de[vt],{name:jt,namespaceURI:s0,value:Dt}=o0,Zr=It(jt),eo=Dt;let $t=jt==="value"?eo:km(eo);if(He.attrName=Zr,He.attrValue=$t,He.keepAttr=!0,He.forceKeepAttr=void 0,L0(ce.uponSanitizeAttribute,K,He),$t=He.attrValue,sa&&(Zr==="id"||Zr==="name")&&(Rt(jt,K),$t=Bn+$t),at&&T0(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,$t)){Rt(jt,K);continue}if(Zr==="attributename"&&kl($t,"href")){Rt(jt,K);continue}if(He.forceKeepAttr)continue;if(!He.keepAttr){Rt(jt,K);continue}if(!Ze&&T0(/\/>/i,$t)){Rt(jt,K);continue}nt&&mo([be,ae,xe],to=>{$t=ri($t,to," ")});const Hs=It(K.nodeName);if(!dr(Hs,Zr,$t)){Rt(jt,K);continue}if(B&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!s0)switch(S.getAttributeType(Hs,Zr)){case"TrustedHTML":{$t=B.createHTML($t);break}case"TrustedScriptURL":{$t=B.createScriptURL($t);break}}if($t!==eo)try{s0?K.setAttributeNS(s0,jt,$t):K.setAttribute(jt,$t),Bt(K)?Fe(K):N1(t.removed)}catch{Rt(jt,K)}}L0(ce.afterSanitizeAttributes,K,null)},Vs=function $e(K){let de=null;const He=We(K);for(L0(ce.beforeSanitizeShadowDOM,K,null);de=He.nextNode();)L0(ce.uponSanitizeShadowNode,de,null),$(de),Ji(de),de.content instanceof a&&$e(de.content);L0(ce.afterSanitizeShadowDOM,K,null)};return t.sanitize=function($e){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=null,He=null,vt=null,o0=null;if(q0=!$e,q0&&($e="<!-->"),typeof $e!="string"&&!A0($e))if(typeof $e.toString=="function"){if($e=$e.toString(),typeof $e!="string")throw ni("dirty is not a string, aborting")}else throw ni("toString is not a function");if(!t.isSupported)return $e;if(qt||ve(K),t.removed=[],typeof $e=="string"&&(Nr=!1),Nr){if($e.nodeName){const Dt=It($e.nodeName);if(!X[Dt]||Ae[Dt])throw ni("root node is forbidden and cannot be sanitized in-place")}}else if($e instanceof d)de=dn("<!---->"),He=de.ownerDocument.importNode($e,!0),He.nodeType===ii.element&&He.nodeName==="BODY"||He.nodeName==="HTML"?de=He:de.appendChild(He);else{if(!Wt&&!nt&&!it&&$e.indexOf("<")===-1)return B&&Se?B.createHTML($e):$e;if(de=dn($e),!de)return Wt?null:Se?R:""}de&&B0&&Fe(de.firstChild);const jt=We(Nr?$e:de);for(;vt=jt.nextNode();)$(vt),Ji(vt),vt.content instanceof a&&Vs(vt.content);if(Nr)return $e;if(Wt){if(lt)for(o0=q.call(de.ownerDocument);de.firstChild;)o0.appendChild(de.firstChild);else o0=de;return(Q.shadowroot||Q.shadowrootmode)&&(o0=he.call(n,o0,!0)),o0}let s0=it?de.outerHTML:de.innerHTML;return it&&X["!doctype"]&&de.ownerDocument&&de.ownerDocument.doctype&&de.ownerDocument.doctype.name&&T0(O1,de.ownerDocument.doctype.name)&&(s0="<!DOCTYPE "+de.ownerDocument.doctype.name+`>
|
|
2
|
+
`+s0),nt&&mo([be,ae,xe],Dt=>{s0=ri(s0,Dt," ")}),B&&Se?B.createHTML(s0):s0},t.setConfig=function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ve($e),qt=!0},t.clearConfig=function(){xt=null,qt=!1},t.isValidAttribute=function($e,K,de){xt||ve({});const He=It($e),vt=It(K);return dr(He,vt,de)},t.addHook=function($e,K){typeof K=="function"&&ti(ce[$e],K)},t.removeHook=function($e,K){if(K!==void 0){const de=vm(ce[$e],K);return de===-1?void 0:xm(ce[$e],de,1)[0]}return N1(ce[$e])},t.removeHooks=function($e){ce[$e]=[]},t.removeAllHooks=function(){ce=R1()},t}var Lm=P1();class De extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,a,l=r&&r.loc;if(l&&l.start<=l.end){var d=l.lexer.input;i=l.start,a=l.end,i===d.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var f=d.slice(i,a).replace(/[^]/g,"$&̲"),p;i>15?p="…"+d.slice(i-15,i):p=d.slice(0,i);var g;a+15<d.length?g=d.slice(a,a+15)+"…":g=d.slice(a),n+=p+f+g}super(n),this.name="ParseError",Object.setPrototypeOf(this,De.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}}var Rm=/([A-Z])/g,El=e=>e.replace(Rm,"-$1").toLowerCase(),Pm={"&":"&",">":">","<":"<",'"':""","'":"'"},Vm=/[&><"']/g,v0=e=>String(e).replace(Vm,t=>Pm[t]),bo=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?bo(e.body[0]):e:e.type==="font"?bo(e.body):e,Hm=new Set(["mathord","textord","atom"]),en=e=>Hm.has(bo(e).type),qm=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Dl={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function jm(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Ml{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(Dl)){var n=Dl[r],i=t[r];this[r]=i!==void 0?n.processor?n.processor(i):i:jm(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new De("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=qm(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class gn{constructor(t,r,n){this.id=t,this.size=r,this.cramped=n}sup(){return Br[$m[this.id]]}sub(){return Br[Um[this.id]]}fracNum(){return Br[Wm[this.id]]}fracDen(){return Br[Gm[this.id]]}cramp(){return Br[Xm[this.id]]}text(){return Br[Ym[this.id]]}isTight(){return this.size>=2}}var Nl=0,yo=1,fa=2,tn=3,oi=4,sr=5,ha=6,D0=7,Br=[new gn(Nl,0,!1),new gn(yo,0,!0),new gn(fa,1,!1),new gn(tn,1,!0),new gn(oi,2,!1),new gn(sr,2,!0),new gn(ha,3,!1),new gn(D0,3,!0)],$m=[oi,sr,oi,sr,ha,D0,ha,D0],Um=[sr,sr,sr,sr,D0,D0,D0,D0],Wm=[fa,tn,oi,sr,ha,D0,ha,D0],Gm=[tn,tn,sr,sr,D0,D0,D0,D0],Xm=[yo,yo,tn,tn,sr,sr,D0,D0],Ym=[Nl,yo,fa,tn,fa,tn,fa,tn],Je={DISPLAY:Br[Nl],TEXT:Br[fa],SCRIPT:Br[oi],SCRIPTSCRIPT:Br[ha]},zl=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Zm(e){for(var t=0;t<zl.length;t++)for(var r=zl[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var vo=[];zl.forEach(e=>e.blocks.forEach(t=>vo.push(...t)));function V1(e){for(var t=0;t<vo.length;t+=2)if(e>=vo[t]&&e<=vo[t+1])return!0;return!1}var ma=80,Km=function(t,r){return"M95,"+(622+t+r)+`
|
|
3
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
4
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
5
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
6
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
7
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
8
|
+
l`+t/2.075+" -"+t+`
|
|
9
|
+
c5.3,-9.3,12,-14,20,-14
|
|
10
|
+
H400000v`+(40+t)+`H845.2724
|
|
11
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
12
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
13
|
+
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Qm=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
14
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
15
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
16
|
+
l`+t/2.084+" -"+t+`
|
|
17
|
+
c4.7,-7.3,11,-11,19,-11
|
|
18
|
+
H40000v`+(40+t)+`H1012.3
|
|
19
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
20
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
21
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
22
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
23
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Jm=function(t,r){return"M983 "+(10+t+r)+`
|
|
24
|
+
l`+t/3.13+" -"+t+`
|
|
25
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
26
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
27
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
28
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
29
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
30
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
31
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
32
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},e6=function(t,r){return"M424,"+(2398+t+r)+`
|
|
33
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
34
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
35
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
36
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
37
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
38
|
+
v`+(40+t)+`H1014.6
|
|
39
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
40
|
+
c-2,6,-10,9,-24,9
|
|
41
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
42
|
+
h400000v`+(40+t)+"h-400000z"},t6=function(t,r){return"M473,"+(2713+t+r)+`
|
|
43
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
44
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
45
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
46
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
47
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
48
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
49
|
+
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},r6=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},n6=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
50
|
+
H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
51
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
52
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
53
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},a6=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=Km(r,ma);break;case"sqrtSize1":i=Qm(r,ma);break;case"sqrtSize2":i=Jm(r,ma);break;case"sqrtSize3":i=e6(r,ma);break;case"sqrtSize4":i=t6(r,ma);break;case"sqrtTall":i=n6(r,ma,n)}return i},i6=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},H1={doubleleftarrow:`M262 157
|
|
54
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
55
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
56
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
57
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
58
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
59
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
60
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
61
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
62
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
63
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
64
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
65
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
66
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
67
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
68
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
69
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
70
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
71
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
72
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
73
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
74
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
75
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
76
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
77
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
78
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
79
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
80
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
81
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
82
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
83
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
84
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
85
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
86
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
87
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
88
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
89
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
90
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
91
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
92
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
93
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
94
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
95
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
96
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
97
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
98
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
99
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
100
|
+
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z
|
|
101
|
+
M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z
|
|
102
|
+
M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
103
|
+
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
104
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
105
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
106
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
107
|
+
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
108
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
109
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
110
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
111
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
112
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
113
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
114
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
115
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
116
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
117
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
118
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
119
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
120
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
121
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
122
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
123
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
124
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
125
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
126
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
127
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
128
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
129
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
130
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
131
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
132
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
133
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
134
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
135
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
136
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
137
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
138
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
139
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
140
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
141
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
142
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
143
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
144
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
145
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
146
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
147
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
148
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
149
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
150
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
151
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
152
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
153
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
154
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
155
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
156
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
157
|
+
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z
|
|
158
|
+
M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z
|
|
159
|
+
M399995 440 h-120 V150 H0 v-120 H399995z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
160
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
161
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
162
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
163
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
164
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
165
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
166
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
167
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
168
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
169
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
170
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
171
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
172
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
173
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
174
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
175
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
176
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
177
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
178
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
179
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
180
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
181
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
182
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
183
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
184
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
185
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
186
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
187
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
188
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
189
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
190
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
191
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
192
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
193
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
194
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
195
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
196
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
197
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
198
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
199
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
200
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
201
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
202
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
203
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
204
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
205
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
206
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
207
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
208
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
209
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
210
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
211
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
212
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
213
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
214
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
215
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
216
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
217
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
218
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
219
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
220
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
221
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
222
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
223
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
224
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
225
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
226
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
227
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
228
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
229
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
230
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
231
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
232
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},o6=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
|
|
233
|
+
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
234
|
+
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
235
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
236
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
237
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
238
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
239
|
+
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
240
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
241
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|
242
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
243
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
244
|
+
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
245
|
+
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
246
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
247
|
+
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
248
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
249
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
250
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
251
|
+
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
252
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
253
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
254
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
255
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
256
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
257
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
258
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
259
|
+
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
260
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class pa{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var _l={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},s6={ex:!0,em:!0,mu:!0},q1=function(t){return typeof t!="string"&&(t=t.unit),t in _l||t in s6||t==="ex"},Ot=function(t,r){var n;if(t.unit in _l)n=_l[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new De("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},_e=function(t){return+t.toFixed(4)+"em"},bn=function(t){return t.filter(r=>r).join(" ")},j1=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},$1=function(t){var r=document.createElement(t);r.className=bn(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},l6=/[\s"'>/=\x00-\x1f]/,U1=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+v0(bn(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=El(i)+":"+this.style[i]+";";n&&(r+=' style="'+v0(n)+'"');for(var a of Object.keys(this.attributes)){if(l6.test(a))throw new De("Invalid attribute name '"+a+"'");r+=" "+a+'="'+v0(this.attributes[a])+'"'}r+=">";for(var l=0;l<this.children.length;l++)r+=this.children[l].toMarkup();return r+="</"+t+">",r};class ga{constructor(t,r,n,i){j1.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return $1.call(this,"span")}toMarkup(){return U1.call(this,"span")}}class xo{constructor(t,r,n,i){j1.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return $1.call(this,"a")}toMarkup(){return U1.call(this,"a")}}class u6{constructor(t,r,n){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='<img src="'+v0(this.src)+'"'+(' alt="'+v0(this.alt)+'"'),r="";for(var n of Object.keys(this.style))r+=El(n)+":"+this.style[n]+";";return r&&(t+=' style="'+v0(r)+'"'),t+="'/>",t}}var c6={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class U0{constructor(t,r,n,i,a,l,d,f){this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=l||0,this.classes=d||[],this.style=f||{},this.maxFontSize=0;var p=Zm(this.text.charCodeAt(0));p&&this.classes.push(p+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=c6[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=_e(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=bn(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=v0(bn(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+_e(this.italic)+";");for(var i of Object.keys(this.style))n+=El(i)+":"+this.style[i]+";";n&&(t=!0,r+=' style="'+v0(n)+'"');var a=v0(this.text);return t?(r+=">",r+=a,r+="</span>",r):a}}class rn{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+v0(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class yn{constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",H1[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+v0(this.alternate)+'"/>':'<path d="'+v0(H1[this.pathName])+'"/>'}}class Fl{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+v0(this.attributes[r])+'"';return t+="/>",t}}function d6(e){if(e instanceof U0)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function f6(e){if(e instanceof ga)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var h6=e=>e instanceof ga||e instanceof xo||e instanceof pa,Or={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},wo={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},W1={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function m6(e,t){Or[e]=t}function Il(e,t,r){if(!Or[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=Or[t][n];if(!i&&e[0]in W1&&(n=W1[e[0]].charCodeAt(0),i=Or[t][n]),!i&&r==="text"&&V1(n)&&(i=Or[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Bl={};function p6(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Bl[t]){var r=Bl[t]={cssEmPerMu:wo.quad[t]/18};for(var n in wo)wo.hasOwnProperty(n)&&(r[n]=wo[n][t])}return Bl[t]}var g6={bin:1,close:1,inner:1,open:1,punct:1,rel:1},b6={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},zt={math:{},text:{}};function v(e,t,r,n,i,a){zt[e][i]={font:t,group:r,replace:n},a&&n&&(zt[e][n]=zt[e][i])}var k="math",ke="text",N="main",j="ams",_t="accent-token",Ve="bin",M0="close",ba="inner",Ye="mathord",Xt="op-token",W0="open",si="punct",U="rel",nn="spacing",ee="textord";v(k,N,U,"≡","\\equiv",!0),v(k,N,U,"≺","\\prec",!0),v(k,N,U,"≻","\\succ",!0),v(k,N,U,"∼","\\sim",!0),v(k,N,U,"⊥","\\perp"),v(k,N,U,"⪯","\\preceq",!0),v(k,N,U,"⪰","\\succeq",!0),v(k,N,U,"≃","\\simeq",!0),v(k,N,U,"∣","\\mid",!0),v(k,N,U,"≪","\\ll",!0),v(k,N,U,"≫","\\gg",!0),v(k,N,U,"≍","\\asymp",!0),v(k,N,U,"∥","\\parallel"),v(k,N,U,"⋈","\\bowtie",!0),v(k,N,U,"⌣","\\smile",!0),v(k,N,U,"⊑","\\sqsubseteq",!0),v(k,N,U,"⊒","\\sqsupseteq",!0),v(k,N,U,"≐","\\doteq",!0),v(k,N,U,"⌢","\\frown",!0),v(k,N,U,"∋","\\ni",!0),v(k,N,U,"∝","\\propto",!0),v(k,N,U,"⊢","\\vdash",!0),v(k,N,U,"⊣","\\dashv",!0),v(k,N,U,"∋","\\owns"),v(k,N,si,".","\\ldotp"),v(k,N,si,"⋅","\\cdotp"),v(k,N,si,"⋅","·"),v(ke,N,ee,"⋅","·"),v(k,N,ee,"#","\\#"),v(ke,N,ee,"#","\\#"),v(k,N,ee,"&","\\&"),v(ke,N,ee,"&","\\&"),v(k,N,ee,"ℵ","\\aleph",!0),v(k,N,ee,"∀","\\forall",!0),v(k,N,ee,"ℏ","\\hbar",!0),v(k,N,ee,"∃","\\exists",!0),v(k,N,ee,"∇","\\nabla",!0),v(k,N,ee,"♭","\\flat",!0),v(k,N,ee,"ℓ","\\ell",!0),v(k,N,ee,"♮","\\natural",!0),v(k,N,ee,"♣","\\clubsuit",!0),v(k,N,ee,"℘","\\wp",!0),v(k,N,ee,"♯","\\sharp",!0),v(k,N,ee,"♢","\\diamondsuit",!0),v(k,N,ee,"ℜ","\\Re",!0),v(k,N,ee,"♡","\\heartsuit",!0),v(k,N,ee,"ℑ","\\Im",!0),v(k,N,ee,"♠","\\spadesuit",!0),v(k,N,ee,"§","\\S",!0),v(ke,N,ee,"§","\\S"),v(k,N,ee,"¶","\\P",!0),v(ke,N,ee,"¶","\\P"),v(k,N,ee,"†","\\dag"),v(ke,N,ee,"†","\\dag"),v(ke,N,ee,"†","\\textdagger"),v(k,N,ee,"‡","\\ddag"),v(ke,N,ee,"‡","\\ddag"),v(ke,N,ee,"‡","\\textdaggerdbl"),v(k,N,M0,"⎱","\\rmoustache",!0),v(k,N,W0,"⎰","\\lmoustache",!0),v(k,N,M0,"⟯","\\rgroup",!0),v(k,N,W0,"⟮","\\lgroup",!0),v(k,N,Ve,"∓","\\mp",!0),v(k,N,Ve,"⊖","\\ominus",!0),v(k,N,Ve,"⊎","\\uplus",!0),v(k,N,Ve,"⊓","\\sqcap",!0),v(k,N,Ve,"∗","\\ast"),v(k,N,Ve,"⊔","\\sqcup",!0),v(k,N,Ve,"◯","\\bigcirc",!0),v(k,N,Ve,"∙","\\bullet",!0),v(k,N,Ve,"‡","\\ddagger"),v(k,N,Ve,"≀","\\wr",!0),v(k,N,Ve,"⨿","\\amalg"),v(k,N,Ve,"&","\\And"),v(k,N,U,"⟵","\\longleftarrow",!0),v(k,N,U,"⇐","\\Leftarrow",!0),v(k,N,U,"⟸","\\Longleftarrow",!0),v(k,N,U,"⟶","\\longrightarrow",!0),v(k,N,U,"⇒","\\Rightarrow",!0),v(k,N,U,"⟹","\\Longrightarrow",!0),v(k,N,U,"↔","\\leftrightarrow",!0),v(k,N,U,"⟷","\\longleftrightarrow",!0),v(k,N,U,"⇔","\\Leftrightarrow",!0),v(k,N,U,"⟺","\\Longleftrightarrow",!0),v(k,N,U,"↦","\\mapsto",!0),v(k,N,U,"⟼","\\longmapsto",!0),v(k,N,U,"↗","\\nearrow",!0),v(k,N,U,"↩","\\hookleftarrow",!0),v(k,N,U,"↪","\\hookrightarrow",!0),v(k,N,U,"↘","\\searrow",!0),v(k,N,U,"↼","\\leftharpoonup",!0),v(k,N,U,"⇀","\\rightharpoonup",!0),v(k,N,U,"↙","\\swarrow",!0),v(k,N,U,"↽","\\leftharpoondown",!0),v(k,N,U,"⇁","\\rightharpoondown",!0),v(k,N,U,"↖","\\nwarrow",!0),v(k,N,U,"⇌","\\rightleftharpoons",!0),v(k,j,U,"≮","\\nless",!0),v(k,j,U,"","\\@nleqslant"),v(k,j,U,"","\\@nleqq"),v(k,j,U,"⪇","\\lneq",!0),v(k,j,U,"≨","\\lneqq",!0),v(k,j,U,"","\\@lvertneqq"),v(k,j,U,"⋦","\\lnsim",!0),v(k,j,U,"⪉","\\lnapprox",!0),v(k,j,U,"⊀","\\nprec",!0),v(k,j,U,"⋠","\\npreceq",!0),v(k,j,U,"⋨","\\precnsim",!0),v(k,j,U,"⪹","\\precnapprox",!0),v(k,j,U,"≁","\\nsim",!0),v(k,j,U,"","\\@nshortmid"),v(k,j,U,"∤","\\nmid",!0),v(k,j,U,"⊬","\\nvdash",!0),v(k,j,U,"⊭","\\nvDash",!0),v(k,j,U,"⋪","\\ntriangleleft"),v(k,j,U,"⋬","\\ntrianglelefteq",!0),v(k,j,U,"⊊","\\subsetneq",!0),v(k,j,U,"","\\@varsubsetneq"),v(k,j,U,"⫋","\\subsetneqq",!0),v(k,j,U,"","\\@varsubsetneqq"),v(k,j,U,"≯","\\ngtr",!0),v(k,j,U,"","\\@ngeqslant"),v(k,j,U,"","\\@ngeqq"),v(k,j,U,"⪈","\\gneq",!0),v(k,j,U,"≩","\\gneqq",!0),v(k,j,U,"","\\@gvertneqq"),v(k,j,U,"⋧","\\gnsim",!0),v(k,j,U,"⪊","\\gnapprox",!0),v(k,j,U,"⊁","\\nsucc",!0),v(k,j,U,"⋡","\\nsucceq",!0),v(k,j,U,"⋩","\\succnsim",!0),v(k,j,U,"⪺","\\succnapprox",!0),v(k,j,U,"≆","\\ncong",!0),v(k,j,U,"","\\@nshortparallel"),v(k,j,U,"∦","\\nparallel",!0),v(k,j,U,"⊯","\\nVDash",!0),v(k,j,U,"⋫","\\ntriangleright"),v(k,j,U,"⋭","\\ntrianglerighteq",!0),v(k,j,U,"","\\@nsupseteqq"),v(k,j,U,"⊋","\\supsetneq",!0),v(k,j,U,"","\\@varsupsetneq"),v(k,j,U,"⫌","\\supsetneqq",!0),v(k,j,U,"","\\@varsupsetneqq"),v(k,j,U,"⊮","\\nVdash",!0),v(k,j,U,"⪵","\\precneqq",!0),v(k,j,U,"⪶","\\succneqq",!0),v(k,j,U,"","\\@nsubseteqq"),v(k,j,Ve,"⊴","\\unlhd"),v(k,j,Ve,"⊵","\\unrhd"),v(k,j,U,"↚","\\nleftarrow",!0),v(k,j,U,"↛","\\nrightarrow",!0),v(k,j,U,"⇍","\\nLeftarrow",!0),v(k,j,U,"⇏","\\nRightarrow",!0),v(k,j,U,"↮","\\nleftrightarrow",!0),v(k,j,U,"⇎","\\nLeftrightarrow",!0),v(k,j,U,"△","\\vartriangle"),v(k,j,ee,"ℏ","\\hslash"),v(k,j,ee,"▽","\\triangledown"),v(k,j,ee,"◊","\\lozenge"),v(k,j,ee,"Ⓢ","\\circledS"),v(k,j,ee,"®","\\circledR"),v(ke,j,ee,"®","\\circledR"),v(k,j,ee,"∡","\\measuredangle",!0),v(k,j,ee,"∄","\\nexists"),v(k,j,ee,"℧","\\mho"),v(k,j,ee,"Ⅎ","\\Finv",!0),v(k,j,ee,"⅁","\\Game",!0),v(k,j,ee,"‵","\\backprime"),v(k,j,ee,"▲","\\blacktriangle"),v(k,j,ee,"▼","\\blacktriangledown"),v(k,j,ee,"■","\\blacksquare"),v(k,j,ee,"⧫","\\blacklozenge"),v(k,j,ee,"★","\\bigstar"),v(k,j,ee,"∢","\\sphericalangle",!0),v(k,j,ee,"∁","\\complement",!0),v(k,j,ee,"ð","\\eth",!0),v(ke,N,ee,"ð","ð"),v(k,j,ee,"╱","\\diagup"),v(k,j,ee,"╲","\\diagdown"),v(k,j,ee,"□","\\square"),v(k,j,ee,"□","\\Box"),v(k,j,ee,"◊","\\Diamond"),v(k,j,ee,"¥","\\yen",!0),v(ke,j,ee,"¥","\\yen",!0),v(k,j,ee,"✓","\\checkmark",!0),v(ke,j,ee,"✓","\\checkmark"),v(k,j,ee,"ℶ","\\beth",!0),v(k,j,ee,"ℸ","\\daleth",!0),v(k,j,ee,"ℷ","\\gimel",!0),v(k,j,ee,"ϝ","\\digamma",!0),v(k,j,ee,"ϰ","\\varkappa"),v(k,j,W0,"┌","\\@ulcorner",!0),v(k,j,M0,"┐","\\@urcorner",!0),v(k,j,W0,"└","\\@llcorner",!0),v(k,j,M0,"┘","\\@lrcorner",!0),v(k,j,U,"≦","\\leqq",!0),v(k,j,U,"⩽","\\leqslant",!0),v(k,j,U,"⪕","\\eqslantless",!0),v(k,j,U,"≲","\\lesssim",!0),v(k,j,U,"⪅","\\lessapprox",!0),v(k,j,U,"≊","\\approxeq",!0),v(k,j,Ve,"⋖","\\lessdot"),v(k,j,U,"⋘","\\lll",!0),v(k,j,U,"≶","\\lessgtr",!0),v(k,j,U,"⋚","\\lesseqgtr",!0),v(k,j,U,"⪋","\\lesseqqgtr",!0),v(k,j,U,"≑","\\doteqdot"),v(k,j,U,"≓","\\risingdotseq",!0),v(k,j,U,"≒","\\fallingdotseq",!0),v(k,j,U,"∽","\\backsim",!0),v(k,j,U,"⋍","\\backsimeq",!0),v(k,j,U,"⫅","\\subseteqq",!0),v(k,j,U,"⋐","\\Subset",!0),v(k,j,U,"⊏","\\sqsubset",!0),v(k,j,U,"≼","\\preccurlyeq",!0),v(k,j,U,"⋞","\\curlyeqprec",!0),v(k,j,U,"≾","\\precsim",!0),v(k,j,U,"⪷","\\precapprox",!0),v(k,j,U,"⊲","\\vartriangleleft"),v(k,j,U,"⊴","\\trianglelefteq"),v(k,j,U,"⊨","\\vDash",!0),v(k,j,U,"⊪","\\Vvdash",!0),v(k,j,U,"⌣","\\smallsmile"),v(k,j,U,"⌢","\\smallfrown"),v(k,j,U,"≏","\\bumpeq",!0),v(k,j,U,"≎","\\Bumpeq",!0),v(k,j,U,"≧","\\geqq",!0),v(k,j,U,"⩾","\\geqslant",!0),v(k,j,U,"⪖","\\eqslantgtr",!0),v(k,j,U,"≳","\\gtrsim",!0),v(k,j,U,"⪆","\\gtrapprox",!0),v(k,j,Ve,"⋗","\\gtrdot"),v(k,j,U,"⋙","\\ggg",!0),v(k,j,U,"≷","\\gtrless",!0),v(k,j,U,"⋛","\\gtreqless",!0),v(k,j,U,"⪌","\\gtreqqless",!0),v(k,j,U,"≖","\\eqcirc",!0),v(k,j,U,"≗","\\circeq",!0),v(k,j,U,"≜","\\triangleq",!0),v(k,j,U,"∼","\\thicksim"),v(k,j,U,"≈","\\thickapprox"),v(k,j,U,"⫆","\\supseteqq",!0),v(k,j,U,"⋑","\\Supset",!0),v(k,j,U,"⊐","\\sqsupset",!0),v(k,j,U,"≽","\\succcurlyeq",!0),v(k,j,U,"⋟","\\curlyeqsucc",!0),v(k,j,U,"≿","\\succsim",!0),v(k,j,U,"⪸","\\succapprox",!0),v(k,j,U,"⊳","\\vartriangleright"),v(k,j,U,"⊵","\\trianglerighteq"),v(k,j,U,"⊩","\\Vdash",!0),v(k,j,U,"∣","\\shortmid"),v(k,j,U,"∥","\\shortparallel"),v(k,j,U,"≬","\\between",!0),v(k,j,U,"⋔","\\pitchfork",!0),v(k,j,U,"∝","\\varpropto"),v(k,j,U,"◀","\\blacktriangleleft"),v(k,j,U,"∴","\\therefore",!0),v(k,j,U,"∍","\\backepsilon"),v(k,j,U,"▶","\\blacktriangleright"),v(k,j,U,"∵","\\because",!0),v(k,j,U,"⋘","\\llless"),v(k,j,U,"⋙","\\gggtr"),v(k,j,Ve,"⊲","\\lhd"),v(k,j,Ve,"⊳","\\rhd"),v(k,j,U,"≂","\\eqsim",!0),v(k,N,U,"⋈","\\Join"),v(k,j,U,"≑","\\Doteq",!0),v(k,j,Ve,"∔","\\dotplus",!0),v(k,j,Ve,"∖","\\smallsetminus"),v(k,j,Ve,"⋒","\\Cap",!0),v(k,j,Ve,"⋓","\\Cup",!0),v(k,j,Ve,"⩞","\\doublebarwedge",!0),v(k,j,Ve,"⊟","\\boxminus",!0),v(k,j,Ve,"⊞","\\boxplus",!0),v(k,j,Ve,"⋇","\\divideontimes",!0),v(k,j,Ve,"⋉","\\ltimes",!0),v(k,j,Ve,"⋊","\\rtimes",!0),v(k,j,Ve,"⋋","\\leftthreetimes",!0),v(k,j,Ve,"⋌","\\rightthreetimes",!0),v(k,j,Ve,"⋏","\\curlywedge",!0),v(k,j,Ve,"⋎","\\curlyvee",!0),v(k,j,Ve,"⊝","\\circleddash",!0),v(k,j,Ve,"⊛","\\circledast",!0),v(k,j,Ve,"⋅","\\centerdot"),v(k,j,Ve,"⊺","\\intercal",!0),v(k,j,Ve,"⋒","\\doublecap"),v(k,j,Ve,"⋓","\\doublecup"),v(k,j,Ve,"⊠","\\boxtimes",!0),v(k,j,U,"⇢","\\dashrightarrow",!0),v(k,j,U,"⇠","\\dashleftarrow",!0),v(k,j,U,"⇇","\\leftleftarrows",!0),v(k,j,U,"⇆","\\leftrightarrows",!0),v(k,j,U,"⇚","\\Lleftarrow",!0),v(k,j,U,"↞","\\twoheadleftarrow",!0),v(k,j,U,"↢","\\leftarrowtail",!0),v(k,j,U,"↫","\\looparrowleft",!0),v(k,j,U,"⇋","\\leftrightharpoons",!0),v(k,j,U,"↶","\\curvearrowleft",!0),v(k,j,U,"↺","\\circlearrowleft",!0),v(k,j,U,"↰","\\Lsh",!0),v(k,j,U,"⇈","\\upuparrows",!0),v(k,j,U,"↿","\\upharpoonleft",!0),v(k,j,U,"⇃","\\downharpoonleft",!0),v(k,N,U,"⊶","\\origof",!0),v(k,N,U,"⊷","\\imageof",!0),v(k,j,U,"⊸","\\multimap",!0),v(k,j,U,"↭","\\leftrightsquigarrow",!0),v(k,j,U,"⇉","\\rightrightarrows",!0),v(k,j,U,"⇄","\\rightleftarrows",!0),v(k,j,U,"↠","\\twoheadrightarrow",!0),v(k,j,U,"↣","\\rightarrowtail",!0),v(k,j,U,"↬","\\looparrowright",!0),v(k,j,U,"↷","\\curvearrowright",!0),v(k,j,U,"↻","\\circlearrowright",!0),v(k,j,U,"↱","\\Rsh",!0),v(k,j,U,"⇊","\\downdownarrows",!0),v(k,j,U,"↾","\\upharpoonright",!0),v(k,j,U,"⇂","\\downharpoonright",!0),v(k,j,U,"⇝","\\rightsquigarrow",!0),v(k,j,U,"⇝","\\leadsto"),v(k,j,U,"⇛","\\Rrightarrow",!0),v(k,j,U,"↾","\\restriction"),v(k,N,ee,"‘","`"),v(k,N,ee,"$","\\$"),v(ke,N,ee,"$","\\$"),v(ke,N,ee,"$","\\textdollar"),v(k,N,ee,"%","\\%"),v(ke,N,ee,"%","\\%"),v(k,N,ee,"_","\\_"),v(ke,N,ee,"_","\\_"),v(ke,N,ee,"_","\\textunderscore"),v(k,N,ee,"∠","\\angle",!0),v(k,N,ee,"∞","\\infty",!0),v(k,N,ee,"′","\\prime"),v(k,N,ee,"△","\\triangle"),v(k,N,ee,"Γ","\\Gamma",!0),v(k,N,ee,"Δ","\\Delta",!0),v(k,N,ee,"Θ","\\Theta",!0),v(k,N,ee,"Λ","\\Lambda",!0),v(k,N,ee,"Ξ","\\Xi",!0),v(k,N,ee,"Π","\\Pi",!0),v(k,N,ee,"Σ","\\Sigma",!0),v(k,N,ee,"Υ","\\Upsilon",!0),v(k,N,ee,"Φ","\\Phi",!0),v(k,N,ee,"Ψ","\\Psi",!0),v(k,N,ee,"Ω","\\Omega",!0),v(k,N,ee,"A","Α"),v(k,N,ee,"B","Β"),v(k,N,ee,"E","Ε"),v(k,N,ee,"Z","Ζ"),v(k,N,ee,"H","Η"),v(k,N,ee,"I","Ι"),v(k,N,ee,"K","Κ"),v(k,N,ee,"M","Μ"),v(k,N,ee,"N","Ν"),v(k,N,ee,"O","Ο"),v(k,N,ee,"P","Ρ"),v(k,N,ee,"T","Τ"),v(k,N,ee,"X","Χ"),v(k,N,ee,"¬","\\neg",!0),v(k,N,ee,"¬","\\lnot"),v(k,N,ee,"⊤","\\top"),v(k,N,ee,"⊥","\\bot"),v(k,N,ee,"∅","\\emptyset"),v(k,j,ee,"∅","\\varnothing"),v(k,N,Ye,"α","\\alpha",!0),v(k,N,Ye,"β","\\beta",!0),v(k,N,Ye,"γ","\\gamma",!0),v(k,N,Ye,"δ","\\delta",!0),v(k,N,Ye,"ϵ","\\epsilon",!0),v(k,N,Ye,"ζ","\\zeta",!0),v(k,N,Ye,"η","\\eta",!0),v(k,N,Ye,"θ","\\theta",!0),v(k,N,Ye,"ι","\\iota",!0),v(k,N,Ye,"κ","\\kappa",!0),v(k,N,Ye,"λ","\\lambda",!0),v(k,N,Ye,"μ","\\mu",!0),v(k,N,Ye,"ν","\\nu",!0),v(k,N,Ye,"ξ","\\xi",!0),v(k,N,Ye,"ο","\\omicron",!0),v(k,N,Ye,"π","\\pi",!0),v(k,N,Ye,"ρ","\\rho",!0),v(k,N,Ye,"σ","\\sigma",!0),v(k,N,Ye,"τ","\\tau",!0),v(k,N,Ye,"υ","\\upsilon",!0),v(k,N,Ye,"ϕ","\\phi",!0),v(k,N,Ye,"χ","\\chi",!0),v(k,N,Ye,"ψ","\\psi",!0),v(k,N,Ye,"ω","\\omega",!0),v(k,N,Ye,"ε","\\varepsilon",!0),v(k,N,Ye,"ϑ","\\vartheta",!0),v(k,N,Ye,"ϖ","\\varpi",!0),v(k,N,Ye,"ϱ","\\varrho",!0),v(k,N,Ye,"ς","\\varsigma",!0),v(k,N,Ye,"φ","\\varphi",!0),v(k,N,Ve,"∗","*",!0),v(k,N,Ve,"+","+"),v(k,N,Ve,"−","-",!0),v(k,N,Ve,"⋅","\\cdot",!0),v(k,N,Ve,"∘","\\circ",!0),v(k,N,Ve,"÷","\\div",!0),v(k,N,Ve,"±","\\pm",!0),v(k,N,Ve,"×","\\times",!0),v(k,N,Ve,"∩","\\cap",!0),v(k,N,Ve,"∪","\\cup",!0),v(k,N,Ve,"∖","\\setminus",!0),v(k,N,Ve,"∧","\\land"),v(k,N,Ve,"∨","\\lor"),v(k,N,Ve,"∧","\\wedge",!0),v(k,N,Ve,"∨","\\vee",!0),v(k,N,ee,"√","\\surd"),v(k,N,W0,"⟨","\\langle",!0),v(k,N,W0,"∣","\\lvert"),v(k,N,W0,"∥","\\lVert"),v(k,N,M0,"?","?"),v(k,N,M0,"!","!"),v(k,N,M0,"⟩","\\rangle",!0),v(k,N,M0,"∣","\\rvert"),v(k,N,M0,"∥","\\rVert"),v(k,N,U,"=","="),v(k,N,U,":",":"),v(k,N,U,"≈","\\approx",!0),v(k,N,U,"≅","\\cong",!0),v(k,N,U,"≥","\\ge"),v(k,N,U,"≥","\\geq",!0),v(k,N,U,"←","\\gets"),v(k,N,U,">","\\gt",!0),v(k,N,U,"∈","\\in",!0),v(k,N,U,"","\\@not"),v(k,N,U,"⊂","\\subset",!0),v(k,N,U,"⊃","\\supset",!0),v(k,N,U,"⊆","\\subseteq",!0),v(k,N,U,"⊇","\\supseteq",!0),v(k,j,U,"⊈","\\nsubseteq",!0),v(k,j,U,"⊉","\\nsupseteq",!0),v(k,N,U,"⊨","\\models"),v(k,N,U,"←","\\leftarrow",!0),v(k,N,U,"≤","\\le"),v(k,N,U,"≤","\\leq",!0),v(k,N,U,"<","\\lt",!0),v(k,N,U,"→","\\rightarrow",!0),v(k,N,U,"→","\\to"),v(k,j,U,"≱","\\ngeq",!0),v(k,j,U,"≰","\\nleq",!0),v(k,N,nn," ","\\ "),v(k,N,nn," ","\\space"),v(k,N,nn," ","\\nobreakspace"),v(ke,N,nn," ","\\ "),v(ke,N,nn," "," "),v(ke,N,nn," ","\\space"),v(ke,N,nn," ","\\nobreakspace"),v(k,N,nn,null,"\\nobreak"),v(k,N,nn,null,"\\allowbreak"),v(k,N,si,",",","),v(k,N,si,";",";"),v(k,j,Ve,"⊼","\\barwedge",!0),v(k,j,Ve,"⊻","\\veebar",!0),v(k,N,Ve,"⊙","\\odot",!0),v(k,N,Ve,"⊕","\\oplus",!0),v(k,N,Ve,"⊗","\\otimes",!0),v(k,N,ee,"∂","\\partial",!0),v(k,N,Ve,"⊘","\\oslash",!0),v(k,j,Ve,"⊚","\\circledcirc",!0),v(k,j,Ve,"⊡","\\boxdot",!0),v(k,N,Ve,"△","\\bigtriangleup"),v(k,N,Ve,"▽","\\bigtriangledown"),v(k,N,Ve,"†","\\dagger"),v(k,N,Ve,"⋄","\\diamond"),v(k,N,Ve,"⋆","\\star"),v(k,N,Ve,"◃","\\triangleleft"),v(k,N,Ve,"▹","\\triangleright"),v(k,N,W0,"{","\\{"),v(ke,N,ee,"{","\\{"),v(ke,N,ee,"{","\\textbraceleft"),v(k,N,M0,"}","\\}"),v(ke,N,ee,"}","\\}"),v(ke,N,ee,"}","\\textbraceright"),v(k,N,W0,"{","\\lbrace"),v(k,N,M0,"}","\\rbrace"),v(k,N,W0,"[","\\lbrack",!0),v(ke,N,ee,"[","\\lbrack",!0),v(k,N,M0,"]","\\rbrack",!0),v(ke,N,ee,"]","\\rbrack",!0),v(k,N,W0,"(","\\lparen",!0),v(k,N,M0,")","\\rparen",!0),v(ke,N,ee,"<","\\textless",!0),v(ke,N,ee,">","\\textgreater",!0),v(k,N,W0,"⌊","\\lfloor",!0),v(k,N,M0,"⌋","\\rfloor",!0),v(k,N,W0,"⌈","\\lceil",!0),v(k,N,M0,"⌉","\\rceil",!0),v(k,N,ee,"\\","\\backslash"),v(k,N,ee,"∣","|"),v(k,N,ee,"∣","\\vert"),v(ke,N,ee,"|","\\textbar",!0),v(k,N,ee,"∥","\\|"),v(k,N,ee,"∥","\\Vert"),v(ke,N,ee,"∥","\\textbardbl"),v(ke,N,ee,"~","\\textasciitilde"),v(ke,N,ee,"\\","\\textbackslash"),v(ke,N,ee,"^","\\textasciicircum"),v(k,N,U,"↑","\\uparrow",!0),v(k,N,U,"⇑","\\Uparrow",!0),v(k,N,U,"↓","\\downarrow",!0),v(k,N,U,"⇓","\\Downarrow",!0),v(k,N,U,"↕","\\updownarrow",!0),v(k,N,U,"⇕","\\Updownarrow",!0),v(k,N,Xt,"∐","\\coprod"),v(k,N,Xt,"⋁","\\bigvee"),v(k,N,Xt,"⋀","\\bigwedge"),v(k,N,Xt,"⨄","\\biguplus"),v(k,N,Xt,"⋂","\\bigcap"),v(k,N,Xt,"⋃","\\bigcup"),v(k,N,Xt,"∫","\\int"),v(k,N,Xt,"∫","\\intop"),v(k,N,Xt,"∬","\\iint"),v(k,N,Xt,"∭","\\iiint"),v(k,N,Xt,"∏","\\prod"),v(k,N,Xt,"∑","\\sum"),v(k,N,Xt,"⨂","\\bigotimes"),v(k,N,Xt,"⨁","\\bigoplus"),v(k,N,Xt,"⨀","\\bigodot"),v(k,N,Xt,"∮","\\oint"),v(k,N,Xt,"∯","\\oiint"),v(k,N,Xt,"∰","\\oiiint"),v(k,N,Xt,"⨆","\\bigsqcup"),v(k,N,Xt,"∫","\\smallint"),v(ke,N,ba,"…","\\textellipsis"),v(k,N,ba,"…","\\mathellipsis"),v(ke,N,ba,"…","\\ldots",!0),v(k,N,ba,"…","\\ldots",!0),v(k,N,ba,"⋯","\\@cdots",!0),v(k,N,ba,"⋱","\\ddots",!0),v(k,N,ee,"⋮","\\varvdots"),v(ke,N,ee,"⋮","\\varvdots"),v(k,N,_t,"ˊ","\\acute"),v(k,N,_t,"ˋ","\\grave"),v(k,N,_t,"¨","\\ddot"),v(k,N,_t,"~","\\tilde"),v(k,N,_t,"ˉ","\\bar"),v(k,N,_t,"˘","\\breve"),v(k,N,_t,"ˇ","\\check"),v(k,N,_t,"^","\\hat"),v(k,N,_t,"⃗","\\vec"),v(k,N,_t,"˙","\\dot"),v(k,N,_t,"˚","\\mathring"),v(k,N,Ye,"","\\@imath"),v(k,N,Ye,"","\\@jmath"),v(k,N,ee,"ı","ı"),v(k,N,ee,"ȷ","ȷ"),v(ke,N,ee,"ı","\\i",!0),v(ke,N,ee,"ȷ","\\j",!0),v(ke,N,ee,"ß","\\ss",!0),v(ke,N,ee,"æ","\\ae",!0),v(ke,N,ee,"œ","\\oe",!0),v(ke,N,ee,"ø","\\o",!0),v(ke,N,ee,"Æ","\\AE",!0),v(ke,N,ee,"Œ","\\OE",!0),v(ke,N,ee,"Ø","\\O",!0),v(ke,N,_t,"ˊ","\\'"),v(ke,N,_t,"ˋ","\\`"),v(ke,N,_t,"ˆ","\\^"),v(ke,N,_t,"˜","\\~"),v(ke,N,_t,"ˉ","\\="),v(ke,N,_t,"˘","\\u"),v(ke,N,_t,"˙","\\."),v(ke,N,_t,"¸","\\c"),v(ke,N,_t,"˚","\\r"),v(ke,N,_t,"ˇ","\\v"),v(ke,N,_t,"¨",'\\"'),v(ke,N,_t,"˝","\\H"),v(ke,N,_t,"◯","\\textcircled");var G1={"--":!0,"---":!0,"``":!0,"''":!0};v(ke,N,ee,"–","--",!0),v(ke,N,ee,"–","\\textendash"),v(ke,N,ee,"—","---",!0),v(ke,N,ee,"—","\\textemdash"),v(ke,N,ee,"‘","`",!0),v(ke,N,ee,"‘","\\textquoteleft"),v(ke,N,ee,"’","'",!0),v(ke,N,ee,"’","\\textquoteright"),v(ke,N,ee,"“","``",!0),v(ke,N,ee,"“","\\textquotedblleft"),v(ke,N,ee,"”","''",!0),v(ke,N,ee,"”","\\textquotedblright"),v(k,N,ee,"°","\\degree",!0),v(ke,N,ee,"°","\\degree"),v(ke,N,ee,"°","\\textdegree",!0),v(k,N,ee,"£","\\pounds"),v(k,N,ee,"£","\\mathsterling",!0),v(ke,N,ee,"£","\\pounds"),v(ke,N,ee,"£","\\textsterling",!0),v(k,j,ee,"✠","\\maltese"),v(ke,j,ee,"✠","\\maltese");for(var X1='0123456789/@."',Ol=0;Ol<X1.length;Ol++){var Y1=X1.charAt(Ol);v(k,N,ee,Y1,Y1)}for(var Z1='0123456789!@*()-=+";:?/.,',Ll=0;Ll<Z1.length;Ll++){var K1=Z1.charAt(Ll);v(ke,N,ee,K1,K1)}for(var ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Rl=0;Rl<ko.length;Rl++){var Ao=ko.charAt(Rl);v(k,N,Ye,Ao,Ao),v(ke,N,ee,Ao,Ao)}v(k,j,ee,"C","ℂ"),v(ke,j,ee,"C","ℂ"),v(k,j,ee,"H","ℍ"),v(ke,j,ee,"H","ℍ"),v(k,j,ee,"N","ℕ"),v(ke,j,ee,"N","ℕ"),v(k,j,ee,"P","ℙ"),v(ke,j,ee,"P","ℙ"),v(k,j,ee,"Q","ℚ"),v(ke,j,ee,"Q","ℚ"),v(k,j,ee,"R","ℝ"),v(ke,j,ee,"R","ℝ"),v(k,j,ee,"Z","ℤ"),v(ke,j,ee,"Z","ℤ"),v(k,N,Ye,"h","ℎ"),v(ke,N,Ye,"h","ℎ");for(var Ke="",N0=0;N0<ko.length;N0++){var Ht=ko.charAt(N0);Ke=String.fromCharCode(55349,56320+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke),Ke=String.fromCharCode(55349,56372+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke),Ke=String.fromCharCode(55349,56424+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke),Ke=String.fromCharCode(55349,56580+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke),Ke=String.fromCharCode(55349,56684+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke),Ke=String.fromCharCode(55349,56736+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke),Ke=String.fromCharCode(55349,56788+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke),Ke=String.fromCharCode(55349,56840+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke),Ke=String.fromCharCode(55349,56944+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke),N0<26&&(Ke=String.fromCharCode(55349,56632+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke),Ke=String.fromCharCode(55349,56476+N0),v(k,N,Ye,Ht,Ke),v(ke,N,ee,Ht,Ke))}Ke="𝕜",v(k,N,Ye,"k",Ke),v(ke,N,ee,"k",Ke);for(var Yn=0;Yn<10;Yn++){var vn=Yn.toString();Ke=String.fromCharCode(55349,57294+Yn),v(k,N,Ye,vn,Ke),v(ke,N,ee,vn,Ke),Ke=String.fromCharCode(55349,57314+Yn),v(k,N,Ye,vn,Ke),v(ke,N,ee,vn,Ke),Ke=String.fromCharCode(55349,57324+Yn),v(k,N,Ye,vn,Ke),v(ke,N,ee,vn,Ke),Ke=String.fromCharCode(55349,57334+Yn),v(k,N,Ye,vn,Ke),v(ke,N,ee,vn,Ke)}for(var Pl="ÐÞþ",Vl=0;Vl<Pl.length;Vl++){var So=Pl.charAt(Vl);v(k,N,Ye,So,So),v(ke,N,ee,So,So)}var Co=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Q1=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],y6=(e,t)=>{var r=e.charCodeAt(0),n=e.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=t==="math"?0:1;if(119808<=i&&i<120484){var l=Math.floor((i-119808)/26);return[Co[l][2],Co[l][a]]}else if(120782<=i&&i<=120831){var d=Math.floor((i-120782)/10);return[Q1[d][2],Q1[d][a]]}else{if(i===120485||i===120486)return[Co[0][2],Co[0][a]];if(120486<i&&i<120782)return["",""];throw new De("Unsupported character: "+e)}},To=function(t,r,n){if(zt[n][t]){var i=zt[n][t].replace;i&&(t=i)}return{value:t,metrics:Il(t,r,n)}},z0=function(t,r,n,i,a){var l=To(t,r,n),d=l.metrics;t=l.value;var f;if(d){var p=d.italic;(n==="text"||i&&i.font==="mathit")&&(p=0),f=new U0(t,d.height,d.depth,p,d.skew,d.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),f=new U0(t,0,0,0,0,0,a);if(i){f.maxFontSize=i.sizeMultiplier,i.style.isTight()&&f.classes.push("mtight");var g=i.getColor();g&&(f.style.color=g)}return f},Hl=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&To(t,"Main-Bold",r).metrics?z0(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||zt[r][t].font==="main"?z0(t,"Main-Regular",r,n,i):z0(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},v6=function(t,r,n,i,a){return a!=="textord"&&To(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Eo=function(t,r,n){var i=t.mode,a=t.text,l=["mord"],d=i==="math"||i==="text"&&r.font,f=d?r.font:r.fontFamily,p="",g="";if(a.charCodeAt(0)===55349&&([p,g]=y6(a,i)),p.length>0)return z0(a,p,i,r,l.concat(g));if(f){var m,x;if(f==="boldsymbol"){var S=v6(a,i,r,l,n);m=S.fontName,x=[S.fontClass]}else d?(m=jl[f].fontName,x=[f]):(m=Do(f,r.fontWeight,r.fontShape),x=[f,r.fontWeight,r.fontShape]);if(To(a,m,i).metrics)return z0(a,m,i,r,l.concat(x));if(G1.hasOwnProperty(a)&&m.slice(0,10)==="Typewriter"){for(var C=[],_=0;_<a.length;_++)C.push(z0(a[_],m,i,r,l.concat(x)));return an(C)}}if(n==="mathord")return z0(a,"Math-Italic",i,r,l.concat(["mathnormal"]));if(n==="textord"){var F=zt[i][a]&&zt[i][a].font;if(F==="ams"){var z=Do("amsrm",r.fontWeight,r.fontShape);return z0(a,z,i,r,l.concat("amsrm",r.fontWeight,r.fontShape))}else if(F==="main"||!F){var E=Do("textrm",r.fontWeight,r.fontShape);return z0(a,E,i,r,l.concat(r.fontWeight,r.fontShape))}else{var D=Do(F,r.fontWeight,r.fontShape);return z0(a,D,i,r,l.concat(D,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},x6=(e,t)=>{if(bn(e.classes)!==bn(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},J1=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof U0&&n instanceof U0&&x6(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},ql=function(t){for(var r=0,n=0,i=0,a=0;a<t.children.length;a++){var l=t.children[a];l.height>r&&(r=l.height),l.depth>n&&(n=l.depth),l.maxFontSize>i&&(i=l.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},Te=function(t,r,n,i){var a=new ga(t,r,n,i);return ql(a),a},xn=(e,t,r,n)=>new ga(e,t,r,n),ya=function(t,r,n){var i=Te([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=_e(i.height),i.maxFontSize=1,i},w6=function(t,r,n,i){var a=new xo(t,r,n,i);return ql(a),a},an=function(t){var r=new pa(t);return ql(r),r},va=function(t,r){return t instanceof pa?Te([],[t],r):t},k6=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,l=1;l<r.length;l++){var d=-r[l].shift-a-r[l].elem.depth,f=d-(r[l-1].elem.height+r[l-1].elem.depth);a=a+d,n.push({type:"kern",size:f}),n.push(r[l])}return{children:n,depth:i}}var p;if(t.positionType==="top"){for(var g=t.positionData,m=0;m<t.children.length;m++){var x=t.children[m];g-=x.type==="kern"?x.size:x.elem.height+x.elem.depth}p=g}else if(t.positionType==="bottom")p=-t.positionData;else{var S=t.children[0];if(S.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")p=-S.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")p=-S.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:p}},dt=function(t,r){for(var{children:n,depth:i}=k6(t),a=0,l=0;l<n.length;l++){var d=n[l];if(d.type==="elem"){var f=d.elem;a=Math.max(a,f.maxFontSize,f.height)}}a+=2;var p=Te(["pstrut"],[]);p.style.height=_e(a);for(var g=[],m=i,x=i,S=i,C=0;C<n.length;C++){var _=n[C];if(_.type==="kern")S+=_.size;else{var F=_.elem,z=_.wrapperClasses||[],E=_.wrapperStyle||{},D=Te(z,[p,F],void 0,E);D.style.top=_e(-a-S-F.depth),_.marginLeft&&(D.style.marginLeft=_.marginLeft),_.marginRight&&(D.style.marginRight=_.marginRight),g.push(D),S+=F.height+F.depth}m=Math.min(m,S),x=Math.max(x,S)}var B=Te(["vlist"],g);B.style.height=_e(x);var R;if(m<0){var W=Te([],[]),Y=Te(["vlist"],[W]);Y.style.height=_e(-m);var q=Te(["vlist-s"],[new U0("")]);R=[Te(["vlist-r"],[B,q]),Te(["vlist-r"],[Y])]}else R=[Te(["vlist-r"],[B])];var pe=Te(["vlist-t"],R);return R.length===2&&pe.classes.push("vlist-t2"),pe.height=x,pe.depth=-m,pe},ed=(e,t)=>{var r=Te(["mspace"],[],t),n=Ot(e,t);return r.style.marginRight=_e(n),r},Do=function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},jl={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},td={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},rd=function(t,r){var[n,i,a]=td[t],l=new yn(n),d=new rn([l],{width:_e(i),height:_e(a),style:"width:"+_e(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),f=xn(["overlay"],[d],r);return f.height=a,f.style.height=_e(a),f.style.width=_e(i),f},Lt={number:3,unit:"mu"},Zn={number:4,unit:"mu"},on={number:5,unit:"mu"},A6={mord:{mop:Lt,mbin:Zn,mrel:on,minner:Lt},mop:{mord:Lt,mop:Lt,mrel:on,minner:Lt},mbin:{mord:Zn,mop:Zn,mopen:Zn,minner:Zn},mrel:{mord:on,mop:on,mopen:on,minner:on},mopen:{},mclose:{mop:Lt,mbin:Zn,mrel:on,minner:Lt},mpunct:{mord:Lt,mop:Lt,mrel:on,mopen:Lt,mclose:Lt,mpunct:Lt,minner:Lt},minner:{mord:Lt,mop:Lt,mbin:Zn,mrel:on,mopen:Lt,mpunct:Lt,minner:Lt}},S6={mord:{mop:Lt},mop:{mord:Lt,mop:Lt},mbin:{},mrel:{},mopen:{},mclose:{mop:Lt},mpunct:{},minner:{mop:Lt}},nd={},Mo={},No={};function Re(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:l}=e,d={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},f=0;f<r.length;++f)nd[r[f]]=d;t&&(a&&(Mo[t]=a),l&&(No[t]=l))}function Kn(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;Re({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var zo=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Yt=function(t){return t.type==="ordgroup"?t.body:[t]},C6=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),T6=new Set(["rightmost","mrel","mclose","mpunct"]),E6={display:Je.DISPLAY,text:Je.TEXT,script:Je.SCRIPT,scriptscript:Je.SCRIPTSCRIPT},D6={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},a0=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],l=0;l<t.length;l++){var d=ft(t[l],r);if(d instanceof pa){var f=d.children;a.push(...f)}else a.push(d)}if(J1(a),!n)return a;var p=r;if(t.length===1){var g=t[0];g.type==="sizing"?p=r.havingSize(g.size):g.type==="styling"&&(p=r.havingStyle(E6[g.style]))}var m=Te([i[0]||"leftmost"],[],r),x=Te([i[1]||"rightmost"],[],r),S=n==="root";return $l(a,(C,_)=>{var F=_.classes[0],z=C.classes[0];F==="mbin"&&T6.has(z)?_.classes[0]="mord":z==="mbin"&&C6.has(F)&&(C.classes[0]="mord")},{node:m},x,S),$l(a,(C,_)=>{var F,z,E=Wl(_),D=Wl(C),B=E&&D?C.hasClass("mtight")?(F=S6[E])==null?void 0:F[D]:(z=A6[E])==null?void 0:z[D]:null;if(B)return ed(B,p)},{node:m},x,S),a},$l=function(t,r,n,i,a){i&&t.push(i);for(var l=0;l<t.length;l++){var d=t[l],f=ad(d);if(f){$l(f.children,r,n,null,a);continue}var p=!d.hasClass("mspace");if(p){var g=r(d,n.node);g&&(n.insertAfter?n.insertAfter(g):(t.unshift(g),l++))}p?n.node=d:a&&d.hasClass("newline")&&(n.node=Te(["leftmost"])),n.insertAfter=(m=>x=>{t.splice(m+1,0,x),l++})(l)}i&&t.pop()},ad=function(t){return t instanceof pa||t instanceof xo||t instanceof ga&&t.hasClass("enclosing")?t:null},Ul=function(t,r){var n=ad(t);if(n){var i=n.children;if(i.length){if(r==="right")return Ul(i[i.length-1],"right");if(r==="left")return Ul(i[0],"left")}}return t},Wl=function(t,r){if(!t)return null;r&&(t=Ul(t,r));var n=t.classes[0];return D6[n]||null},li=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Te(r.concat(n))},ft=function(t,r,n){if(!t)return Te();if(Mo[t.type]){var i=Mo[t.type](t,r);if(n&&r.size!==n.size){i=Te(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new De("Got group of unknown type: '"+t.type+"'")};function _o(e,t){var r=Te(["base"],e,t),n=Te(["strut"]);return n.style.height=_e(r.height+r.depth),r.depth&&(n.style.verticalAlign=_e(-r.depth)),r.children.unshift(n),r}function Gl(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=a0(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],l=[],d=0;d<n.length;d++)if(l.push(n[d]),n[d].hasClass("mbin")||n[d].hasClass("mrel")||n[d].hasClass("allowbreak")){for(var f=!1;d<n.length-1&&n[d+1].hasClass("mspace")&&!n[d+1].hasClass("newline");)d++,l.push(n[d]),n[d].hasClass("nobreak")&&(f=!0);f||(a.push(_o(l,t)),l=[])}else n[d].hasClass("newline")&&(l.pop(),l.length>0&&(a.push(_o(l,t)),l=[]),a.push(n[d]));l.length>0&&a.push(_o(l,t));var p;r?(p=_o(a0(r,t,!0),t),p.classes=["tag"],a.push(p)):i&&a.push(i);var g=Te(["katex-html"],a);if(g.setAttribute("aria-hidden","true"),p){var m=p.children[0];m.style.height=_e(g.height+g.depth),g.depth&&(m.style.verticalAlign=_e(-g.depth))}return g}function id(e){return new pa(e)}class Me{constructor(t,r,n){this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=bn(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Zt&&this.children[n+1]instanceof Zt){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Zt;)i+=this.children[++n].toText();t.appendChild(new Zt(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=v0(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+v0(bn(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Zt{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return v0(this.toText())}toText(){return this.text}}class od{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",_e(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+_e(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var M6=new Set(["\\imath","\\jmath"]),N6=new Set(["mrow","mtable"]),lr=function(t,r,n){return zt[r][t]&&zt[r][t].replace&&t.charCodeAt(0)!==55349&&!(G1.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=zt[r][t].replace),new Zt(t)},Xl=function(t){return t.length===1?t[0]:new Me("mrow",t)},Yl=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(M6.has(a))return null;if(zt[i][a]){var l=zt[i][a].replace;l&&(a=l)}var d=jl[n].fontName;return Il(a,d,i)?jl[n].variant:null};function Zl(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Zt&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Zt&&r.text===","}else return!1}var G0=function(t,r,n){if(t.length===1){var i=wt(t[0],r);return n&&i instanceof Me&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],l,d=0;d<t.length;d++){var f=wt(t[d],r);if(f instanceof Me&&l instanceof Me){if(f.type==="mtext"&&l.type==="mtext"&&f.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...f.children);continue}else if(f.type==="mn"&&l.type==="mn"){l.children.push(...f.children);continue}else if(Zl(f)&&l.type==="mn"){l.children.push(...f.children);continue}else if(f.type==="mn"&&Zl(l))f.children=[...l.children,...f.children],a.pop();else if((f.type==="msup"||f.type==="msub")&&f.children.length>=1&&(l.type==="mn"||Zl(l))){var p=f.children[0];p instanceof Me&&p.type==="mn"&&(p.children=[...l.children,...p.children],a.pop())}else if(l.type==="mi"&&l.children.length===1){var g=l.children[0];if(g instanceof Zt&&g.text==="̸"&&(f.type==="mo"||f.type==="mi"||f.type==="mn")){var m=f.children[0];m instanceof Zt&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),a.pop())}}}a.push(f),l=f}return a},wn=function(t,r,n){return Xl(G0(t,r,n))},wt=function(t,r){if(!t)return new Me("mrow");if(No[t.type]){var n=No[t.type](t,r);return n}else throw new De("Got group of unknown type: '"+t.type+"'")};function sd(e,t,r,n,i){var a=G0(e,r),l;a.length===1&&a[0]instanceof Me&&N6.has(a[0].type)?l=a[0]:l=new Me("mrow",a);var d=new Me("annotation",[new Zt(t)]);d.setAttribute("encoding","application/x-tex");var f=new Me("semantics",[l,d]),p=new Me("math",[f]);p.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&p.setAttribute("display","block");var g=i?"katex":"katex-mathml";return Te([g],[p])}var z6=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ld=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ud=function(t,r){return r.size<2?t:z6[t-1][r.size-1]};class sn{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||sn.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=ld[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new sn(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:ud(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:ld[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=ud(sn.BASESIZE,t);return this.size===r&&this.textSize===sn.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==sn.BASESIZE?["sizing","reset-size"+this.size,"size"+sn.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=p6(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}sn.BASESIZE=6;var cd=function(t){return new sn({style:t.displayMode?Je.DISPLAY:Je.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},dd=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Te(n,[t])}return t},_6=function(t,r,n){var i=cd(n),a;if(n.output==="mathml")return sd(t,r,i,n.displayMode,!0);if(n.output==="html"){var l=Gl(t,i);a=Te(["katex"],[l])}else{var d=sd(t,r,i,n.displayMode,!1),f=Gl(t,i);a=Te(["katex"],[d,f])}return dd(a,n)},F6=function(t,r,n){var i=cd(n),a=Gl(t,i),l=Te(["katex"],[a]);return dd(l,n)},I6={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Fo=function(t){var r=new Me("mo",[new Zt(I6[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},B6={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},O6=new Set(["widehat","widecheck","widetilde","utilde"]),Io=function(t,r){function n(){var d=4e5,f=t.label.slice(1);if(O6.has(f)){var p=t,g=p.base.type==="ordgroup"?p.base.body.length:1,m,x,S;if(g>5)f==="widehat"||f==="widecheck"?(m=420,d=2364,S=.42,x=f+"4"):(m=312,d=2340,S=.34,x="tilde4");else{var C=[1,1,2,2,3,3][g];f==="widehat"||f==="widecheck"?(d=[0,1062,2364,2364,2364][C],m=[0,239,300,360,420][C],S=[0,.24,.3,.3,.36,.42][C],x=f+C):(d=[0,600,1033,2339,2340][C],m=[0,260,286,306,312][C],S=[0,.26,.286,.3,.306,.34][C],x="tilde"+C)}var _=new yn(x),F=new rn([_],{width:"100%",height:_e(S),viewBox:"0 0 "+d+" "+m,preserveAspectRatio:"none"});return{span:xn([],[F],r),minWidth:0,height:S}}else{var z=[],E=B6[f],[D,B,R]=E,W=R/1e3,Y=D.length,q,pe;if(Y===1){var he=E[3];q=["hide-tail"],pe=[he]}else if(Y===2)q=["halfarrow-left","halfarrow-right"],pe=["xMinYMin","xMaxYMin"];else if(Y===3)q=["brace-left","brace-center","brace-right"],pe=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
261
|
+
`+Y+" children.");for(var ce=0;ce<Y;ce++){var be=new yn(D[ce]),ae=new rn([be],{width:"400em",height:_e(W),viewBox:"0 0 "+d+" "+R,preserveAspectRatio:pe[ce]+" slice"}),xe=xn([q[ce]],[ae],r);if(Y===1)return{span:xe,minWidth:B,height:W};xe.style.height=_e(W),z.push(xe)}return{span:Te(["stretchy"],z,r),minWidth:B,height:W}}}var{span:i,minWidth:a,height:l}=n();return i.height=l,i.style.height=_e(l),a>0&&(i.style.minWidth=_e(a)),i},L6=function(t,r,n,i,a){var l,d=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(l=Te(["stretchy",r],[],a),r==="fbox"){var f=a.color&&a.getColor();f&&(l.style.borderColor=f)}}else{var p=[];/^[bx]cancel$/.test(r)&&p.push(new Fl({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&p.push(new Fl({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var g=new rn(p,{width:"100%",height:_e(d)});l=xn([],[g],a)}return l.height=d,l.style.height=_e(d),l};function tt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Bo(e){var t=Oo(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Oo(e){return e&&(e.type==="atom"||b6.hasOwnProperty(e.type))?e:null}var fd=e=>{if(e instanceof U0)return e;if(h6(e)&&e.children.length===1)return fd(e.children[0])},Kl=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=tt(e.base,"accent"),r=n.base,e.base=r,i=f6(ft(e,t)),e.base=n):(n=tt(e,"accent"),r=n.base);var a=ft(r,t.havingCrampedStyle()),l=n.isShifty&&en(r),d=0;if(l){var f,p;d=(f=(p=fd(a))==null?void 0:p.skew)!=null?f:0}var g=n.label==="\\c",m=g?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),x;if(n.isStretchy)x=Io(n,t),x=dt({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+_e(2*d)+")",marginLeft:_e(2*d)}:void 0}]});else{var S,C;n.label==="\\vec"?(S=rd("vec",t),C=td.vec[1]):(S=Eo({mode:n.mode,text:n.label},t,"textord"),S=d6(S),S.italic=0,C=S.width,g&&(m+=S.depth)),x=Te(["accent-body"],[S]);var _=n.label==="\\textcircled";_&&(x.classes.push("accent-full"),m=a.height);var F=d;_||(F-=C/2),x.style.left=_e(F),n.label==="\\textcircled"&&(x.style.top=".2em"),x=dt({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-m},{type:"elem",elem:x}]})}var z=Te(["mord","accent"],[x],t);return i?(i.children[0]=z,i.height=Math.max(z.height,i.height),i.classes[0]="mord",i):z},hd=(e,t)=>{var r=e.isStretchy?Fo(e.label):new Me("mo",[lr(e.label,e.mode)]),n=new Me("mover",[wt(e.base,t),r]);return n.setAttribute("accent","true"),n},R6=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Re({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=zo(t[0]),n=!R6.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:Kl,mathmlBuilder:hd}),Re({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Kl,mathmlBuilder:hd}),Re({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=ft(e.base,t),n=Io(e,t),i=e.label==="\\utilde"?.12:0,a=dt({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Te(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=Fo(e.label),n=new Me("munder",[wt(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Lo=e=>{var t=new Me("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Re({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=va(ft(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var l;e.below&&(n=t.havingStyle(r.sub()),l=va(ft(e.below,n,t),t),l.classes.push(a+"-arrow-pad"));var d=Io(e,t),f=-t.fontMetrics().axisHeight+.5*d.height,p=-t.fontMetrics().axisHeight-.5*d.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(p-=i.depth);var g;if(l){var m=-t.fontMetrics().axisHeight+l.height+.5*d.height+.111;g=dt({positionType:"individualShift",children:[{type:"elem",elem:i,shift:p},{type:"elem",elem:d,shift:f},{type:"elem",elem:l,shift:m}]})}else g=dt({positionType:"individualShift",children:[{type:"elem",elem:i,shift:p},{type:"elem",elem:d,shift:f}]});return g.children[0].children[0].children[1].classes.push("svg-align"),Te(["mrel","x-arrow"],[g],t)},mathmlBuilder(e,t){var r=Fo(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=Lo(wt(e.body,t));if(e.below){var a=Lo(wt(e.below,t));n=new Me("munderover",[r,a,i])}else n=new Me("mover",[r,i])}else if(e.below){var l=Lo(wt(e.below,t));n=new Me("munder",[r,l])}else n=Lo(),n=new Me("mover",[r,n]);return n}});function md(e,t){var r=a0(e.body,t,!0);return Te([e.mclass],r,t)}function pd(e,t){var r,n=G0(e.body,t);return e.mclass==="minner"?r=new Me("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new Me("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new Me("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Re({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Yt(i),isCharacterBox:en(i)}},htmlBuilder:md,mathmlBuilder:pd});var Ro=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Re({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Ro(t[0]),body:Yt(t[1]),isCharacterBox:en(t[1])}}}),Re({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],l;n!=="\\stackrel"?l=Ro(i):l="mrel";var d={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Yt(i)},f={type:"supsub",mode:a.mode,base:d,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:l,body:[f],isCharacterBox:en(f)}},htmlBuilder:md,mathmlBuilder:pd}),Re({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Ro(t[0]),body:Yt(t[0])}},htmlBuilder(e,t){var r=a0(e.body,t,!0),n=Te([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=G0(e.body,t),n=new Me("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var P6={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},gd=()=>({type:"styling",body:[],mode:"math",style:"display"}),bd=e=>e.type==="textord"&&e.text==="@",V6=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function H6(e,t,r){var n=P6[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},l=r.callFunction("\\Big",[a],[]),d=r.callFunction("\\\\cdright",[t[1]],[]),f={type:"ordgroup",mode:"math",body:[i,l,d]};return r.callFunction("\\\\cdparent",[f],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var p={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[p],[])}default:return{type:"textord",text:" ",mode:"math"}}}function q6(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new De("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;a<t.length;a++){for(var l=t[a],d=gd(),f=0;f<l.length;f++)if(!bd(l[f]))d.body.push(l[f]);else{n.push(d),f+=1;var p=Bo(l[f]).text,g=new Array(2);if(g[0]={type:"ordgroup",mode:"math",body:[]},g[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(p))if("<>AV".includes(p))for(var m=0;m<2;m++){for(var x=!0,S=f+1;S<l.length;S++){if(V6(l[S],p)){x=!1,f=S;break}if(bd(l[S]))throw new De("Missing a "+p+" character to complete a CD arrow.",l[S]);g[m].body.push(l[S])}if(x)throw new De("Missing a "+p+" character to complete a CD arrow.",l[f])}else throw new De('Expected one of "<>AV=|." after @',l[f]);var C=H6(p,g,e),_={type:"styling",body:[C],mode:"math",style:"display"};n.push(_),d=gd()}a%2===0?n.push(d):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var F=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:F,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}Re({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=va(ft(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=_e(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new Me("mrow",[wt(e.label,t)]);return r=new Me("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Me("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),Re({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=va(ft(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new Me("mrow",[wt(e.fragment,t)])}}),Re({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=tt(t[0],"ordgroup"),i=n.body,a="",l=0;l<i.length;l++){var d=tt(i[l],"textord");a+=d.text}var f=parseInt(a),p;if(isNaN(f))throw new De("\\@char has non-numeric argument "+a);if(f<0||f>=1114111)throw new De("\\@char with invalid code point "+a);return f<=65535?p=String.fromCharCode(f):(f-=65536,p=String.fromCharCode((f>>10)+55296,(f&1023)+56320)),{type:"textord",mode:r.mode,text:p}}});var yd=(e,t)=>{var r=a0(e.body,t.withColor(e.color),!1);return an(r)},vd=(e,t)=>{var r=G0(e.body,t.withColor(e.color)),n=new Me("mstyle",r);return n.setAttribute("mathcolor",e.color),n};Re({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=tt(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:Yt(i)}},htmlBuilder:yd,mathmlBuilder:vd}),Re({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=tt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:yd,mathmlBuilder:vd}),Re({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&tt(i,"size").value}},htmlBuilder(e,t){var r=Te(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=_e(Ot(e.size,t)))),r},mathmlBuilder(e,t){var r=new Me("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",_e(Ot(e.size,t)))),r}});var Ql={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},xd=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new De("Expected a control sequence",e);return t},j6=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},wd=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};Re({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Ql[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Ql[n.text]),tt(t.parseFunction(),"internal");throw new De("Invalid token after macro prefix",n)}}),Re({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new De("Expected a control sequence",n);for(var a=0,l,d=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),d[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new De('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new De('Argument number "'+n.text+'" out of order');a++,d.push([])}else{if(n.text==="EOF")throw new De("Expected a macro definition");d[a].push(n.text)}var{tokens:f}=t.gullet.consumeArg();return l&&f.unshift(l),(r==="\\edef"||r==="\\xdef")&&(f=t.gullet.expandTokens(f),f.reverse()),t.gullet.macros.set(i,{tokens:f,numArgs:a,delimiters:d},r===Ql[r]),{type:"internal",mode:t.mode}}}),Re({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=xd(t.gullet.popToken());t.gullet.consumeSpaces();var i=j6(t);return wd(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}}),Re({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=xd(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return wd(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var ui=function(t,r,n){var i=zt.math[t]&&zt.math[t].replace,a=Il(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},Jl=function(t,r,n,i){var a=n.havingBaseStyle(r),l=Te(i.concat(a.sizingClasses(n)),[t],n),d=a.sizeMultiplier/n.sizeMultiplier;return l.height*=d,l.depth*=d,l.maxFontSize=a.sizeMultiplier,l},kd=function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=_e(a),t.height-=a,t.depth+=a},$6=function(t,r,n,i,a,l){var d=z0(t,"Main-Regular",a,i),f=Jl(d,r,i,l);return kd(f,i,r),f},U6=function(t,r,n,i){return z0(t,"Size"+r+"-Regular",n,i)},Ad=function(t,r,n,i,a,l){var d=U6(t,r,a,i),f=Jl(Te(["delimsizing","size"+r],[d],i),Je.TEXT,i,l);return n&&kd(f,i,Je.TEXT),f},eu=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Te(["delimsizinginner",i],[Te([],[z0(t,r,n)])]);return{type:"elem",elem:a}},tu=function(t,r,n){var i=Or["Size4-Regular"][t.charCodeAt(0)]?Or["Size4-Regular"][t.charCodeAt(0)][4]:Or["Size1-Regular"][t.charCodeAt(0)][4],a=new yn("inner",i6(t,Math.round(1e3*r))),l=new rn([a],{width:_e(i),height:_e(r),style:"width:"+_e(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),d=xn([],[l],n);return d.height=r,d.style.height=_e(r),d.style.width=_e(i),{type:"elem",elem:d}},ru=.008,Po={type:"kern",size:-1*ru},W6=new Set(["|","\\lvert","\\rvert","\\vert"]),G6=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Sd=function(t,r,n,i,a,l){var d,f,p,g,m="",x=0;d=p=g=t,f=null;var S="Size1-Regular";t==="\\uparrow"?p=g="⏐":t==="\\Uparrow"?p=g="‖":t==="\\downarrow"?d=p="⏐":t==="\\Downarrow"?d=p="‖":t==="\\updownarrow"?(d="\\uparrow",p="⏐",g="\\downarrow"):t==="\\Updownarrow"?(d="\\Uparrow",p="‖",g="\\Downarrow"):W6.has(t)?(p="∣",m="vert",x=333):G6.has(t)?(p="∥",m="doublevert",x=556):t==="["||t==="\\lbrack"?(d="⎡",p="⎢",g="⎣",S="Size4-Regular",m="lbrack",x=667):t==="]"||t==="\\rbrack"?(d="⎤",p="⎥",g="⎦",S="Size4-Regular",m="rbrack",x=667):t==="\\lfloor"||t==="⌊"?(p=d="⎢",g="⎣",S="Size4-Regular",m="lfloor",x=667):t==="\\lceil"||t==="⌈"?(d="⎡",p=g="⎢",S="Size4-Regular",m="lceil",x=667):t==="\\rfloor"||t==="⌋"?(p=d="⎥",g="⎦",S="Size4-Regular",m="rfloor",x=667):t==="\\rceil"||t==="⌉"?(d="⎤",p=g="⎥",S="Size4-Regular",m="rceil",x=667):t==="("||t==="\\lparen"?(d="⎛",p="⎜",g="⎝",S="Size4-Regular",m="lparen",x=875):t===")"||t==="\\rparen"?(d="⎞",p="⎟",g="⎠",S="Size4-Regular",m="rparen",x=875):t==="\\{"||t==="\\lbrace"?(d="⎧",f="⎨",g="⎩",p="⎪",S="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(d="⎫",f="⎬",g="⎭",p="⎪",S="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(d="⎧",g="⎩",p="⎪",S="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(d="⎫",g="⎭",p="⎪",S="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(d="⎧",g="⎭",p="⎪",S="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(d="⎫",g="⎩",p="⎪",S="Size4-Regular");var C=ui(d,S,a),_=C.height+C.depth,F=ui(p,S,a),z=F.height+F.depth,E=ui(g,S,a),D=E.height+E.depth,B=0,R=1;if(f!==null){var W=ui(f,S,a);B=W.height+W.depth,R=2}var Y=_+D+B,q=Math.max(0,Math.ceil((r-Y)/(R*z))),pe=Y+q*R*z,he=i.fontMetrics().axisHeight;n&&(he*=i.sizeMultiplier);var ce=pe/2-he,be=[];if(m.length>0){var ae=pe-_-D,xe=Math.round(pe*1e3),Ce=o6(m,Math.round(ae*1e3)),te=new yn(m,Ce),ye=_e(x/1e3),ne=_e(xe/1e3),ze=new rn([te],{width:ye,height:ne,viewBox:"0 0 "+x+" "+xe}),Ue=xn([],[ze],i);Ue.height=xe/1e3,Ue.style.width=ye,Ue.style.height=ne,be.push({type:"elem",elem:Ue})}else{if(be.push(eu(g,S,a)),be.push(Po),f===null){var X=pe-_-D+2*ru;be.push(tu(p,X,i))}else{var Z=(pe-_-D-B)/2+2*ru;be.push(tu(p,Z,i)),be.push(Po),be.push(eu(f,S,a)),be.push(Po),be.push(tu(p,Z,i))}be.push(Po),be.push(eu(d,S,a))}var Q=i.havingBaseStyle(Je.TEXT),oe=dt({positionType:"bottom",positionData:ce,children:be});return Jl(Te(["delimsizing","mult"],[oe],Q),Je.TEXT,i,l)},nu=80,au=.08,iu=function(t,r,n,i,a){var l=a6(t,i,n),d=new yn(t,l),f=new rn([d],{width:"400em",height:_e(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return xn(["hide-tail"],[f],a)},X6=function(t,r){var n=r.havingBaseSizing(),i=Md("\\surd",t*n.sizeMultiplier,Dd,n),a=n.sizeMultiplier,l=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),d,f=0,p=0,g=0,m;return i.type==="small"?(g=1e3+1e3*l+nu,t<1?a=1:t<1.4&&(a=.7),f=(1+l+au)/a,p=(1+l)/a,d=iu("sqrtMain",f,g,l,r),d.style.minWidth="0.853em",m=.833/a):i.type==="large"?(g=(1e3+nu)*ci[i.size],p=(ci[i.size]+l)/a,f=(ci[i.size]+l+au)/a,d=iu("sqrtSize"+i.size,f,g,l,r),d.style.minWidth="1.02em",m=1/a):(f=t+l+au,p=t+l,g=Math.floor(1e3*t+l)+nu,d=iu("sqrtTall",f,g,l,r),d.style.minWidth="0.742em",m=1.056),d.height=p,d.style.height=_e(f),{span:d,advanceWidth:m,ruleWidth:(r.fontMetrics().sqrtRuleThickness+l)*a}},Cd=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Y6=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Td=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),ci=[0,1.2,1.8,2.4,3],Ed=function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Cd.has(t)||Td.has(t))return Ad(t,r,!1,n,i,a);if(Y6.has(t))return Sd(t,ci[r],!1,n,i,a);throw new De("Illegal delimiter: '"+t+"'")},Z6=[{type:"small",style:Je.SCRIPTSCRIPT},{type:"small",style:Je.SCRIPT},{type:"small",style:Je.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],K6=[{type:"small",style:Je.SCRIPTSCRIPT},{type:"small",style:Je.SCRIPT},{type:"small",style:Je.TEXT},{type:"stack"}],Dd=[{type:"small",style:Je.SCRIPTSCRIPT},{type:"small",style:Je.SCRIPT},{type:"small",style:Je.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Q6=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},Md=function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),l=a;l<n.length;l++){var d=n[l];if(d.type==="stack")break;var f=ui(t,Q6(d),"math"),p=f.height+f.depth;if(d.type==="small"){var g=i.havingBaseStyle(d.style);p*=g.sizeMultiplier}if(p>r)return d}return n[n.length-1]},ou=function(t,r,n,i,a,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var d;Td.has(t)?d=Z6:Cd.has(t)?d=Dd:d=K6;var f=Md(t,r,d,i);return f.type==="small"?$6(t,f.style,n,i,a,l):f.type==="large"?Ad(t,f.size,n,i,a,l):Sd(t,r,n,i,a,l)},su=function(t,r,n,i,a,l){var d=i.fontMetrics().axisHeight*i.sizeMultiplier,f=901,p=5/i.fontMetrics().ptPerEm,g=Math.max(r-d,n+d),m=Math.max(g/500*f,2*g-p);return ou(t,m,!0,i,a,l)},Nd={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},J6=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Vo(e,t){var r=Oo(e);if(r&&J6.has(r.text))return r;throw r?new De("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new De("Invalid delimiter type '"+e.type+"'",e)}Re({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Vo(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Nd[e.funcName].size,mclass:Nd[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Te([e.mclass]):Ed(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(lr(e.delim,e.mode));var r=new Me("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=_e(ci[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function zd(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Re({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new De("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Vo(t[0],e).text,color:r}}}),Re({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Vo(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=tt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{zd(e);for(var r=a0(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,l=0;l<r.length;l++)r[l].isMiddle?a=!0:(n=Math.max(r[l].height,n),i=Math.max(r[l].depth,i));n*=t.sizeMultiplier,i*=t.sizeMultiplier;var d;if(e.left==="."?d=li(t,["mopen"]):d=su(e.left,n,i,t,e.mode,["mopen"]),r.unshift(d),a)for(var f=1;f<r.length;f++){var p=r[f],g=p.isMiddle;g&&(r[f]=su(g.delim,n,i,g.options,e.mode,[]))}var m;if(e.right===".")m=li(t,["mclose"]);else{var x=e.rightColor?t.withColor(e.rightColor):t;m=su(e.right,n,i,x,e.mode,["mclose"])}return r.push(m),Te(["minner"],r,t)},mathmlBuilder:(e,t)=>{zd(e);var r=G0(e.body,t);if(e.left!=="."){var n=new Me("mo",[lr(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new Me("mo",[lr(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return Xl(r)}}),Re({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Vo(t[0],e);if(!e.parser.leftrightDepth)throw new De("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=li(t,[]);else{r=Ed(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?lr("|","text"):lr(e.delim,e.mode),n=new Me("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Ho=(e,t)=>{var r=va(ft(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,l=0,d=en(e.body);if(n==="sout")a=Te(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,l=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var f=Ot({number:.6,unit:"pt"},t),p=Ot({number:.35,unit:"ex"},t),g=t.havingBaseSizing();i=i/g.sizeMultiplier;var m=r.height+r.depth+f+p;r.style.paddingLeft=_e(m/2+f);var x=Math.floor(1e3*m*i),S=r6(x),C=new rn([new yn("phase",S)],{width:"400em",height:_e(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});a=xn(["hide-tail"],[C],t),a.style.height=_e(m),l=r.depth+f+p}else{/cancel/.test(n)?d||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var _=0,F=0,z=0;/box/.test(n)?(z=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),_=t.fontMetrics().fboxsep+(n==="colorbox"?0:z),F=_):n==="angl"?(z=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),_=4*z,F=Math.max(0,.25-r.depth)):(_=d?.2:0,F=_),a=L6(r,n,_,F,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=_e(z)):n==="angl"&&z!==.049&&(a.style.borderTopWidth=_e(z),a.style.borderRightWidth=_e(z)),l=r.depth+F,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var E;if(e.backgroundColor)E=dt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:l},{type:"elem",elem:r,shift:0}]});else{var D=/cancel|phase/.test(n)?["svg-align"]:[];E=dt({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:l,wrapperClasses:D}]})}return/cancel/.test(n)&&(E.height=r.height,E.depth=r.depth),/cancel/.test(n)&&!d?Te(["mord","cancel-lap"],[E],t):Te(["mord"],[E],t)},qo=(e,t)=>{var r=0,n=new Me(e.label.includes("colorbox")?"mpadded":"menclose",[wt(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+_e(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Re({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=tt(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:l}},htmlBuilder:Ho,mathmlBuilder:qo}),Re({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=tt(t[0],"color-token").color,l=tt(t[1],"color-token").color,d=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:l,borderColor:a,body:d}},htmlBuilder:Ho,mathmlBuilder:qo}),Re({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),Re({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:Ho,mathmlBuilder:qo}),Re({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:Ho,mathmlBuilder:qo}),Re({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var _d={};function Lr(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:l}=e,d={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},f=0;f<r.length;++f)_d[r[f]]=d;a&&(Mo[t]=a),l&&(No[t]=l)}var Fd={};function O(e,t){Fd[e]=t}class P0{constructor(t,r,n){this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new P0(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}let yr=class _3{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new _3(r,P0.range(this,t))}};function Id(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var jo=e=>{var t=e.parser.settings;if(!t.displayMode)throw new De("{"+e.envName+"} can be used only in display mode.")},e5=new Set(["gather","gather*"]);function lu(e){if(!e.includes("ed"))return!e.includes("*")}function kn(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:l,colSeparationType:d,autoTag:f,singleRow:p,emptySingleRow:g,maxNumCols:m,leqno:x}=t;if(e.gullet.beginGroup(),p||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var S=e.gullet.expandMacroAsText("\\arraystretch");if(S==null)l=1;else if(l=parseFloat(S),!l||l<0)throw new De("Invalid \\arraystretch: "+S)}e.gullet.beginGroup();var C=[],_=[C],F=[],z=[],E=f!=null?[]:void 0;function D(){f&&e.gullet.macros.set("\\@eqnsw","1",!0)}function B(){E&&(e.gullet.macros.get("\\df@tag")?(E.push(e.subparse([new yr("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):E.push(!!f&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(D(),z.push(Id(e));;){var R=e.parseExpression(!1,p?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var W={type:"ordgroup",mode:e.mode,body:R};r&&(W={type:"styling",mode:e.mode,style:r,body:[W]}),C.push(W);var Y=e.fetch().text;if(Y==="&"){if(m&&C.length===m){if(p||d)throw new De("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(Y==="\\end"){B(),C.length===1&&W.type==="styling"&&W.body.length===1&&W.body[0].type==="ordgroup"&&W.body[0].body.length===0&&(_.length>1||!g)&&_.pop(),z.length<_.length+1&&z.push([]);break}else if(Y==="\\\\"){e.consume();var q=void 0;e.gullet.future().text!==" "&&(q=e.parseSizeGroup(!0)),F.push(q?q.value:null),B(),z.push(Id(e)),C=[],_.push(C),D()}else throw new De("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:l,body:_,cols:a,rowGaps:F,hskipBeforeAndAfter:n,hLinesBeforeRow:z,colSeparationType:d,tags:E,leqno:x}}function uu(e){return e.slice(0,1)==="d"?"display":"text"}var Rr=function(t,r){var n,i,a=t.body.length,l=t.hLinesBeforeRow,d=0,f=new Array(a),p=[],g=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),m=1/r.fontMetrics().ptPerEm,x=5*m;if(t.colSeparationType&&t.colSeparationType==="small"){var S=r.havingStyle(Je.SCRIPT).sizeMultiplier;x=.2778*(S/r.sizeMultiplier)}var C=t.colSeparationType==="CD"?Ot({number:3,unit:"ex"},r):12*m,_=3*m,F=t.arraystretch*C,z=.7*F,E=.3*F,D=0;function B(Yr){for(var cn=0;cn<Yr.length;++cn)cn>0&&(D+=.25),p.push({pos:D,isDashed:Yr[cn]})}for(B(l[0]),n=0;n<t.body.length;++n){var R=t.body[n],W=z,Y=E;d<R.length&&(d=R.length);var q=new Array(R.length);for(i=0;i<R.length;++i){var pe=ft(R[i],r);Y<pe.depth&&(Y=pe.depth),W<pe.height&&(W=pe.height),q[i]=pe}var he=t.rowGaps[n],ce=0;he&&(ce=Ot(he,r),ce>0&&(ce+=E,Y<ce&&(Y=ce),ce=0)),t.addJot&&n<t.body.length-1&&(Y+=_),q.height=W,q.depth=Y,D+=W,q.pos=D,D+=Y+ce,f[n]=q,B(l[n+1])}var be=D/2+r.fontMetrics().axisHeight,ae=t.cols||[],xe=[],Ce,te,ye=[];if(t.tags&&t.tags.some(Yr=>Yr))for(n=0;n<a;++n){var ne=f[n],ze=ne.pos-be,Ue=t.tags[n],X=void 0;Ue===!0?X=Te(["eqn-num"],[],r):Ue===!1?X=Te([],[],r):X=Te([],a0(Ue,r,!0),r),X.depth=ne.depth,X.height=ne.height,ye.push({type:"elem",elem:X,shift:ze})}for(i=0,te=0;i<d||te<ae.length;++i,++te){for(var Z,Q=ae[te],oe=!0;((fe=Q)==null?void 0:fe.type)==="separator";){var fe;if(oe||(Ce=Te(["arraycolsep"],[]),Ce.style.width=_e(r.fontMetrics().doubleRuleSep),xe.push(Ce)),Q.separator==="|"||Q.separator===":"){var Ae=Q.separator==="|"?"solid":"dashed",ie=Te(["vertical-separator"],[],r);ie.style.height=_e(D),ie.style.borderRightWidth=_e(g),ie.style.borderRightStyle=Ae,ie.style.margin="0 "+_e(-g/2);var me=D-be;me&&(ie.style.verticalAlign=_e(-me)),xe.push(ie)}else throw new De("Invalid separator type: "+Q.separator);te++,Q=ae[te],oe=!1}if(!(i>=d)){var ge=void 0;if(i>0||t.hskipBeforeAndAfter){var Oe,Xe;ge=(Oe=(Xe=Q)==null?void 0:Xe.pregap)!=null?Oe:x,ge!==0&&(Ce=Te(["arraycolsep"],[]),Ce.style.width=_e(ge),xe.push(Ce))}var Ze=[];for(n=0;n<a;++n){var nt=f[n],at=nt[i];if(at){var it=nt.pos-be;at.depth=nt.depth,at.height=nt.height,Ze.push({type:"elem",elem:at,shift:it})}}var qt=dt({positionType:"individualShift",children:Ze}),B0=Te(["col-align-"+(((Z=Q)==null?void 0:Z.align)||"c")],[qt]);if(xe.push(B0),i<d-1||t.hskipBeforeAndAfter){var Wt,lt;ge=(Wt=(lt=Q)==null?void 0:lt.postgap)!=null?Wt:x,ge!==0&&(Ce=Te(["arraycolsep"],[]),Ce.style.width=_e(ge),xe.push(Ce))}}}var Se=Te(["mtable"],xe);if(p.length>0){for(var rr=ya("hline",r,g),sa=ya("hdashline",r,g),Bn=[{type:"elem",elem:Se,shift:0}];p.length>0;){var On=p.pop(),Nr=On.pos-be;On.isDashed?Bn.push({type:"elem",elem:sa,shift:Nr}):Bn.push({type:"elem",elem:rr,shift:Nr})}Se=dt({positionType:"individualShift",children:Bn})}if(ye.length===0)return Te(["mord"],[Se],r);var O0=dt({positionType:"individualShift",children:ye}),b0=Te(["tag"],[O0],r);return an([Se,b0])},t5={c:"center ",l:"left ",r:"right "},Pr=function(t,r){for(var n=[],i=new Me("mtd",[],["mtr-glue"]),a=new Me("mtd",[],["mml-eqn-num"]),l=0;l<t.body.length;l++){for(var d=t.body[l],f=[],p=0;p<d.length;p++)f.push(new Me("mtd",[wt(d[p],r)]));t.tags&&t.tags[l]&&(f.unshift(i),f.push(i),t.leqno?f.unshift(a):f.push(a)),n.push(new Me("mtr",f))}var g=new Me("mtable",n),m=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);g.setAttribute("rowspacing",_e(m));var x="",S="";if(t.cols&&t.cols.length>0){var C=t.cols,_="",F=!1,z=0,E=C.length;C[0].type==="separator"&&(x+="top ",z=1),C[C.length-1].type==="separator"&&(x+="bottom ",E-=1);for(var D=z;D<E;D++){var B=C[D];B.type==="align"?(S+=t5[B.align],F&&(_+="none "),F=!0):B.type==="separator"&&F&&(_+=B.separator==="|"?"solid ":"dashed ",F=!1)}g.setAttribute("columnalign",S.trim()),/[sd]/.test(_)&&g.setAttribute("columnlines",_.trim())}if(t.colSeparationType==="align"){for(var R=t.cols||[],W="",Y=1;Y<R.length;Y++)W+=Y%2?"0em ":"1em ";g.setAttribute("columnspacing",W.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?g.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?g.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?g.setAttribute("columnspacing","0.5em"):g.setAttribute("columnspacing","1em");var q="",pe=t.hLinesBeforeRow;x+=pe[0].length>0?"left ":"",x+=pe[pe.length-1].length>0?"right ":"";for(var he=1;he<pe.length-1;he++)q+=pe[he].length===0?"none ":pe[he][0]?"dashed ":"solid ";return/[sd]/.test(q)&&g.setAttribute("rowlines",q.trim()),x!==""&&(g=new Me("menclose",[g]),g.setAttribute("notation",x.trim())),t.arraystretch&&t.arraystretch<1&&(g=new Me("mstyle",[g]),g.setAttribute("scriptlevel","1")),g},Bd=function(t,r){t.envName.includes("ed")||jo(t);var n=[],i=t.envName.includes("at")?"alignat":"align",a=t.envName==="split",l=kn(t.parser,{cols:n,addJot:!0,autoTag:a?void 0:lu(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),d=0,f=0,p={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var g="",m=0;m<r[0].body.length;m++){var x=tt(r[0].body[m],"textord");g+=x.text}d=Number(g),f=d*2}var S=!f;l.body.forEach(function(z){for(var E=1;E<z.length;E+=2){var D=tt(z[E],"styling"),B=tt(D.body[0],"ordgroup");B.body.unshift(p)}if(S)f<z.length&&(f=z.length);else{var R=z.length/2;if(d<R)throw new De("Too many math in a row: "+("expected "+d+", but got "+R),z[0])}});for(var C=0;C<f;++C){var _="r",F=0;C%2===1?_="l":C>0&&S&&(F=1),n[C]={type:"align",align:_,pregap:F,postgap:0}}return l.colSeparationType=S?"align":"alignat",l};Lr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Oo(t[0]),n=r?[t[0]]:tt(t[0],"ordgroup").body,i=n.map(function(l){var d=Bo(l),f=d.text;if("lcr".includes(f))return{type:"align",align:f};if(f==="|")return{type:"separator",separator:"|"};if(f===":")return{type:"separator",separator:":"};throw new De("Unknown column alignment: "+f,l)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return kn(e.parser,a,uu(e.envName))},htmlBuilder:Rr,mathmlBuilder:Pr}),Lr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new De("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=kn(e.parser,n,uu(e.envName)),l=Math.max(0,...a.body.map(d=>d.length));return a.cols=new Array(l).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Rr,mathmlBuilder:Pr}),Lr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=kn(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Rr,mathmlBuilder:Pr}),Lr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Oo(t[0]),n=r?[t[0]]:tt(t[0],"ordgroup").body,i=n.map(function(d){var f=Bo(d),p=f.text;if("lc".includes(p))return{type:"align",align:p};throw new De("Unknown column alignment: "+p,d)});if(i.length>1)throw new De("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},l=kn(e.parser,a,"script");if(l.body.length>0&&l.body[0].length>1)throw new De("{subarray} can contain only one column");return l},htmlBuilder:Rr,mathmlBuilder:Pr}),Lr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=kn(e.parser,t,uu(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Rr,mathmlBuilder:Pr}),Lr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Bd,htmlBuilder:Rr,mathmlBuilder:Pr}),Lr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){e5.has(e.envName)&&jo(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:lu(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return kn(e.parser,t,"display")},htmlBuilder:Rr,mathmlBuilder:Pr}),Lr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Bd,htmlBuilder:Rr,mathmlBuilder:Pr}),Lr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){jo(e);var t={autoTag:lu(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return kn(e.parser,t,"display")},htmlBuilder:Rr,mathmlBuilder:Pr}),Lr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return jo(e),q6(e.parser)},htmlBuilder:Rr,mathmlBuilder:Pr}),O("\\nonumber","\\gdef\\@eqnsw{0}"),O("\\notag","\\nonumber"),Re({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new De(e.funcName+" valid only within array environment")}});var Od=_d;Re({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new De("Invalid environment name",i);for(var a="",l=0;l<i.body.length;++l)a+=tt(i.body[l],"textord").text;if(n==="\\begin"){if(!Od.hasOwnProperty(a))throw new De("No such environment: "+a,i);var d=Od[a],{args:f,optArgs:p}=r.parseArguments("\\begin{"+a+"}",d),g={mode:r.mode,envName:a,parser:r},m=d.handler(g,f,p);r.expect("\\end",!1);var x=r.nextToken,S=tt(r.parseFunction(),"environment");if(S.name!==a)throw new De("Mismatch: \\begin{"+a+"} matched by \\end{"+S.name+"}",x);return m}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var Ld=(e,t)=>{var r=e.font,n=t.withFont(r);return ft(e.body,n)},Rd=(e,t)=>{var r=e.font,n=t.withFont(r);return wt(e.body,n)},Pd={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Re({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=zo(t[0]),a=n;return a in Pd&&(a=Pd[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:Ld,mathmlBuilder:Rd}),Re({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:Ro(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:en(n)}}}),Re({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,l=r.parseExpression(!0,i),d="math"+n.slice(1);return{type:"font",mode:a,font:d,body:{type:"ordgroup",mode:r.mode,body:l}}},htmlBuilder:Ld,mathmlBuilder:Rd});var r5=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var l=ft(e.numer,a,t);if(e.continued){var d=8.5/t.fontMetrics().ptPerEm,f=3.5/t.fontMetrics().ptPerEm;l.height=l.height<d?d:l.height,l.depth=l.depth<f?f:l.depth}a=t.havingStyle(i);var p=ft(e.denom,a,t),g,m,x;e.hasBarLine?(e.barSize?(m=Ot(e.barSize,t),g=ya("frac-line",t,m)):g=ya("frac-line",t),m=g.height,x=g.height):(g=null,m=0,x=t.fontMetrics().defaultRuleThickness);var S,C,_;r.size===Je.DISPLAY.size?(S=t.fontMetrics().num1,m>0?C=3*x:C=7*x,_=t.fontMetrics().denom1):(m>0?(S=t.fontMetrics().num2,C=x):(S=t.fontMetrics().num3,C=3*x),_=t.fontMetrics().denom2);var F;if(g){var E=t.fontMetrics().axisHeight;S-l.depth-(E+.5*m)<C&&(S+=C-(S-l.depth-(E+.5*m))),E-.5*m-(p.height-_)<C&&(_+=C-(E-.5*m-(p.height-_)));var D=-(E-.5*m);F=dt({positionType:"individualShift",children:[{type:"elem",elem:p,shift:_},{type:"elem",elem:g,shift:D},{type:"elem",elem:l,shift:-S}]})}else{var z=S-l.depth-(p.height-_);z<C&&(S+=.5*(C-z),_+=.5*(C-z)),F=dt({positionType:"individualShift",children:[{type:"elem",elem:p,shift:_},{type:"elem",elem:l,shift:-S}]})}a=t.havingStyle(r),F.height*=a.sizeMultiplier/t.sizeMultiplier,F.depth*=a.sizeMultiplier/t.sizeMultiplier;var B;r.size===Je.DISPLAY.size?B=t.fontMetrics().delim1:r.size===Je.SCRIPTSCRIPT.size?B=t.havingStyle(Je.SCRIPT).fontMetrics().delim2:B=t.fontMetrics().delim2;var R,W;return e.leftDelim==null?R=li(t,["mopen"]):R=ou(e.leftDelim,B,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?W=Te([]):e.rightDelim==null?W=li(t,["mclose"]):W=ou(e.rightDelim,B,!0,t.havingStyle(r),e.mode,["mclose"]),Te(["mord"].concat(a.sizingClasses(t)),[R,Te(["mfrac"],[F]),W],t)},n5=(e,t)=>{var r=new Me("mfrac",[wt(e.numer,t),wt(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=Ot(e.barSize,t);r.setAttribute("linethickness",_e(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Me("mo",[new Zt(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),e.rightDelim!=null){var l=new Me("mo",[new Zt(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),i.push(l)}return Xl(i)}return r},Vd=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};Re({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],l,d=null,f=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,d="(",f=")";break;case"\\\\bracefrac":l=!1,d="\\{",f="\\}";break;case"\\\\brackfrac":l=!1,d="[",f="]";break;default:throw new Error("Unrecognized genfrac command")}var p=n==="\\cfrac",g=null;return p||n.startsWith("\\d")?g="display":n.startsWith("\\t")&&(g="text"),Vd({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:p,hasBarLine:l,leftDelim:d,rightDelim:f,barSize:null},g)},htmlBuilder:r5,mathmlBuilder:n5}),Re({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var Hd=["display","text","script","scriptscript"],qd=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};Re({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=zo(t[0]),l=a.type==="atom"&&a.family==="open"?qd(a.text):null,d=zo(t[1]),f=d.type==="atom"&&d.family==="close"?qd(d.text):null,p=tt(t[2],"size"),g,m=null;p.isBlank?g=!0:(m=p.value,g=m.number>0);var x=null,S=t[3];if(S.type==="ordgroup"){if(S.body.length>0){var C=tt(S.body[0],"textord");x=Hd[Number(C.text)]}}else S=tt(S,"textord"),x=Hd[Number(S.text)];return Vd({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:g,barSize:m,leftDelim:l,rightDelim:f},x)}}),Re({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:tt(t[0],"size").value,token:i}}}),Re({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=tt(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var l=t[2],d=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:l,continued:!1,hasBarLine:d,barSize:a,leftDelim:null,rightDelim:null}}});var jd=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?ft(e.sup,t.havingStyle(r.sup()),t):ft(e.sub,t.havingStyle(r.sub()),t),i=tt(e.base,"horizBrace")):i=tt(e,"horizBrace");var a=ft(i.base,t.havingBaseStyle(Je.DISPLAY)),l=Io(i,t),d;if(i.isOver?(d=dt({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:l}]}),d.children[0].children[0].children[1].classes.push("svg-align")):(d=dt({positionType:"bottom",positionData:a.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:a}]}),d.children[0].children[0].children[0].classes.push("svg-align")),n){var f=Te(["minner",i.isOver?"mover":"munder"],[d],t);i.isOver?d=dt({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:n}]}):d=dt({positionType:"bottom",positionData:f.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:f}]})}return Te(["minner",i.isOver?"mover":"munder"],[d],t)},a5=(e,t)=>{var r=Fo(e.label);return new Me(e.isOver?"mover":"munder",[wt(e.base,t),r])};Re({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:jd,mathmlBuilder:a5}),Re({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=tt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:Yt(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=a0(e.body,t,!1);return w6(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=wn(e.body,t);return r instanceof Me||(r=new Me("mrow",[r])),r.setAttribute("href",e.href),r}}),Re({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=tt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var l=n[a];l==="~"&&(l="\\textasciitilde"),i.push({type:"textord",mode:"text",text:l})}var d={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:Yt(d)}}}),Re({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Yt(t[0])}},htmlBuilder(e,t){var r=a0(e.body,t,!1);return an(r)},mathmlBuilder(e,t){return new Me("mrow",G0(e.body,t))}}),Re({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,a=tt(t[0],"raw").string,l=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var d,f={};switch(n){case"\\htmlClass":f.class=a,d={command:"\\htmlClass",class:a};break;case"\\htmlId":f.id=a,d={command:"\\htmlId",id:a};break;case"\\htmlStyle":f.style=a,d={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var p=a.split(","),g=0;g<p.length;g++){var m=p[g],x=m.indexOf("=");if(x<0)throw new De("\\htmlData key/value '"+m+"' missing equals sign");var S=m.slice(0,x),C=m.slice(x+1);f["data-"+S.trim()]=C}d={command:"\\htmlData",attributes:f};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(d)?{type:"html",mode:r.mode,attributes:f,body:Yt(l)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=a0(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Te(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>wn(e.body,t)}),Re({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Yt(t[0]),mathml:Yt(t[1])}},htmlBuilder:(e,t)=>{var r=a0(e.html,t,!1);return an(r)},mathmlBuilder:(e,t)=>wn(e.mathml,t)});var cu=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new De("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!q1(n))throw new De("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Re({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},l={number:0,unit:"em"},d="";if(r[0])for(var f=tt(r[0],"raw").string,p=f.split(","),g=0;g<p.length;g++){var m=p[g].split("=");if(m.length===2){var x=m[1].trim();switch(m[0].trim()){case"alt":d=x;break;case"width":i=cu(x);break;case"height":a=cu(x);break;case"totalheight":l=cu(x);break;default:throw new De("Invalid key: '"+m[0]+"' in \\includegraphics.")}}}var S=tt(t[0],"url").url;return d===""&&(d=S,d=d.replace(/^.*[\\/]/,""),d=d.substring(0,d.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:S})?{type:"includegraphics",mode:n.mode,alt:d,width:i,height:a,totalheight:l,src:S}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Ot(e.height,t),n=0;e.totalheight.number>0&&(n=Ot(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=Ot(e.width,t));var a={height:_e(r+n)};i>0&&(a.width=_e(i)),n>0&&(a.verticalAlign=_e(-n));var l=new u6(e.src,e.alt,a);return l.height=r,l.depth=n,l},mathmlBuilder:(e,t)=>{var r=new Me("mglyph",[]);r.setAttribute("alt",e.alt);var n=Ot(e.height,t),i=0;if(e.totalheight.number>0&&(i=Ot(e.totalheight,t)-n,r.setAttribute("valign",_e(-i))),r.setAttribute("height",_e(n+i)),e.width.number>0){var a=Ot(e.width,t);r.setAttribute("width",_e(a))}return r.setAttribute("src",e.src),r}}),Re({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=tt(t[0],"size");if(r.settings.strict){var a=n[1]==="m",l=i.value.unit==="mu";a?(l||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):l&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return ed(e.dimension,t)},mathmlBuilder(e,t){var r=Ot(e.dimension,t);return new od(r)}}),Re({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=Te([],[ft(e.body,t)]),r=Te(["inner"],[r],t)):r=Te(["inner"],[ft(e.body,t)]);var n=Te(["fix"],[]),i=Te([e.alignment],[r,n],t),a=Te(["strut"]);return a.style.height=_e(i.height+i.depth),i.depth&&(a.style.verticalAlign=_e(-i.depth)),i.children.unshift(a),i=Te(["thinbox"],[i],t),Te(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new Me("mpadded",[wt(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),Re({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",l=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:l}}}),Re({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new De("Mismatched "+e.funcName)}});var $d=(e,t)=>{switch(t.style.size){case Je.DISPLAY.size:return e.display;case Je.TEXT.size:return e.text;case Je.SCRIPT.size:return e.script;case Je.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Re({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Yt(t[0]),text:Yt(t[1]),script:Yt(t[2]),scriptscript:Yt(t[3])}},htmlBuilder:(e,t)=>{var r=$d(e,t),n=a0(r,t,!1);return an(n)},mathmlBuilder:(e,t)=>{var r=$d(e,t);return wn(r,t)}});var Ud=(e,t,r,n,i,a,l)=>{e=Te([],[e]);var d=r&&en(r),f,p;if(t){var g=ft(t,n.havingStyle(i.sup()),n);p={elem:g,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-g.depth)}}if(r){var m=ft(r,n.havingStyle(i.sub()),n);f={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-m.height)}}var x;if(p&&f){var S=n.fontMetrics().bigOpSpacing5+f.elem.height+f.elem.depth+f.kern+e.depth+l;x=dt({positionType:"bottom",positionData:S,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:_e(-a)},{type:"kern",size:f.kern},{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:_e(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(f){var C=e.height-l;x=dt({positionType:"top",positionData:C,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:_e(-a)},{type:"kern",size:f.kern},{type:"elem",elem:e}]})}else if(p){var _=e.depth+l;x=dt({positionType:"bottom",positionData:_,children:[{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:_e(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var F=[x];if(f&&a!==0&&!d){var z=Te(["mspace"],[],n);z.style.marginRight=_e(a),F.unshift(z)}return Te(["mop","op-limits"],F,n)},Wd=new Set(["\\smallint"]),xa=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=tt(e.base,"op"),i=!0):a=tt(e,"op");var l=t.style,d=!1;l.size===Je.DISPLAY.size&&a.symbol&&!Wd.has(a.name)&&(d=!0);var f;if(a.symbol){var p=d?"Size2-Regular":"Size1-Regular",g="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(g=a.name.slice(1),a.name=g==="oiint"?"\\iint":"\\iiint"),f=z0(a.name,p,"math",t,["mop","op-symbol",d?"large-op":"small-op"]),g.length>0){var m=f.italic,x=rd(g+"Size"+(d?"2":"1"),t);f=dt({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:x,shift:d?.08:0}]}),a.name="\\"+g,f.classes.unshift("mop"),f.italic=m}}else if(a.body){var S=a0(a.body,t,!0);S.length===1&&S[0]instanceof U0?(f=S[0],f.classes[0]="mop"):f=Te(["mop"],S,t)}else{for(var C=[],_=1;_<a.name.length;_++)C.push(Hl(a.name[_],a.mode,t));f=Te(["mop"],C,t)}var F=0,z=0;return(f instanceof U0||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(F=(f.height-f.depth)/2-t.fontMetrics().axisHeight,z=f.italic||0),i?Ud(f,r,n,t,l,z,F):(F&&(f.style.position="relative",f.style.top=_e(F)),f)},di=(e,t)=>{var r;if(e.symbol)r=new Me("mo",[lr(e.name,e.mode)]),Wd.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Me("mo",G0(e.body,t));else{r=new Me("mi",[new Zt(e.name.slice(1))]);var n=new Me("mo",[lr("","text")]);e.parentIsSupSub?r=new Me("mrow",[r,n]):r=id([r,n])}return r},i5={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Re({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=i5[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:xa,mathmlBuilder:di}),Re({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Yt(n)}},htmlBuilder:xa,mathmlBuilder:di});var o5={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Re({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:xa,mathmlBuilder:di}),Re({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:xa,mathmlBuilder:di}),Re({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=o5[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:xa,mathmlBuilder:di});var Gd=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=tt(e.base,"operatorname"),i=!0):a=tt(e,"operatorname");var l;if(a.body.length>0){for(var d=a.body.map(m=>{var x="text"in m?m.text:void 0;return typeof x=="string"?{type:"textord",mode:m.mode,text:x}:m}),f=a0(d,t.withFont("mathrm"),!0),p=0;p<f.length;p++){var g=f[p];g instanceof U0&&(g.text=g.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}l=Te(["mop"],f,t)}else l=Te(["mop"],[],t);return i?Ud(l,r,n,t,t.style,0,0):l},s5=(e,t)=>{for(var r=G0(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(!(a instanceof od))if(a instanceof Me)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var l=a.children[0];a.children.length===1&&l instanceof Zt?l.text=l.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var d=r.map(g=>g.toText()).join("");r=[new Zt(d)]}var f=new Me("mi",r);f.setAttribute("mathvariant","normal");var p=new Me("mo",[lr("","text")]);return e.parentIsSupSub?new Me("mrow",[f,p]):id([f,p])};Re({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:Yt(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Gd,mathmlBuilder:s5}),O("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Kn({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?an(a0(e.body,t,!1)):Te(["mord"],a0(e.body,t,!0),t)},mathmlBuilder(e,t){return wn(e.body,t,!0)}}),Re({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=ft(e.body,t.havingCrampedStyle()),n=ya("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=dt({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Te(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new Me("mo",[new Zt("‾")]);r.setAttribute("stretchy","true");var n=new Me("mover",[wt(e.body,t),r]);return n.setAttribute("accent","true"),n}}),Re({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:Yt(n)}},htmlBuilder:(e,t)=>{var r=a0(e.body,t.withPhantom(),!1);return an(r)},mathmlBuilder:(e,t)=>{var r=G0(e.body,t);return new Me("mphantom",r)}}),O("\\hphantom","\\smash{\\phantom{#1}}"),Re({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Te(["inner"],[ft(e.body,t.withPhantom())]),n=Te(["fix"],[]);return Te(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=G0(Yt(e.body),t),n=new Me("mphantom",r),i=new Me("mpadded",[n]);return i.setAttribute("width","0px"),i}}),Re({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=tt(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=ft(e.body,t),n=Ot(e.dy,t);return dt({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Me("mpadded",[wt(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),Re({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Re({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=tt(t[0],"size"),l=tt(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&tt(i,"size").value,width:a.value,height:l.value}},htmlBuilder(e,t){var r=Te(["mord","rule"],[],t),n=Ot(e.width,t),i=Ot(e.height,t),a=e.shift?Ot(e.shift,t):0;return r.style.borderRightWidth=_e(n),r.style.borderTopWidth=_e(i),r.style.bottom=_e(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Ot(e.width,t),n=Ot(e.height,t),i=e.shift?Ot(e.shift,t):0,a=t.color&&t.getColor()||"black",l=new Me("mspace");l.setAttribute("mathbackground",a),l.setAttribute("width",_e(r)),l.setAttribute("height",_e(n));var d=new Me("mpadded",[l]);return i>=0?d.setAttribute("height",_e(i)):(d.setAttribute("height",_e(i)),d.setAttribute("depth",_e(-i))),d.setAttribute("voffset",_e(i)),d}});function Xd(e,t,r){for(var n=a0(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var l=n[a].classes.indexOf("sizing");l<0?Array.prototype.push.apply(n[a].classes,t.sizingClasses(r)):n[a].classes[l+1]==="reset-size"+t.size&&(n[a].classes[l+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return an(n)}var Yd=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],l5=(e,t)=>{var r=t.havingSize(e.size);return Xd(e.body,r,t)};Re({type:"sizing",names:Yd,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:Yd.indexOf(n)+1,body:a}},htmlBuilder:l5,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=G0(e.body,r),i=new Me("mstyle",n);return i.setAttribute("mathsize",_e(r.sizeMultiplier)),i}}),Re({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,l=r[0]&&tt(r[0],"ordgroup");if(l)for(var d="",f=0;f<l.body.length;++f){var p=l.body[f];if(d=Bo(p).text,d==="t")i=!0;else if(d==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var g=t[0];return{type:"smash",mode:n.mode,body:g,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var r=Te([],[ft(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return Te(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var i=dt({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return Te(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new Me("mpadded",[wt(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),Re({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=ft(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=va(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.id<Je.TEXT.id&&(a=t.fontMetrics().xHeight);var l=i+a/4,d=r.height+r.depth+l+i,{span:f,ruleWidth:p,advanceWidth:g}=X6(d,t),m=f.height-p;m>r.height+r.depth+l&&(l=(l+m-r.height-r.depth)/2);var x=f.height-r.height-l-p;r.style.paddingLeft=_e(g);var S=dt({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+x)},{type:"elem",elem:f},{type:"kern",size:p}]});if(e.index){var C=t.havingStyle(Je.SCRIPTSCRIPT),_=ft(e.index,C,t),F=.6*(S.height-S.depth),z=dt({positionType:"shift",positionData:-F,children:[{type:"elem",elem:_}]}),E=Te(["root"],[z]);return Te(["mord","sqrt"],[E,S],t)}else return Te(["mord","sqrt"],[S],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new Me("mroot",[wt(r,t),wt(n,t)]):new Me("msqrt",[wt(r,t)])}});var Zd={display:Je.DISPLAY,text:Je.TEXT,script:Je.SCRIPT,scriptscript:Je.SCRIPTSCRIPT};Re({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),l=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:l,body:a}},htmlBuilder(e,t){var r=Zd[e.style],n=t.havingStyle(r).withFont("");return Xd(e.body,n,t)},mathmlBuilder(e,t){var r=Zd[e.style],n=t.havingStyle(r),i=G0(e.body,n),a=new Me("mstyle",i),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=l[e.style];return a.setAttribute("scriptlevel",d[0]),a.setAttribute("displaystyle",d[1]),a}});var u5=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===Je.DISPLAY.size||n.alwaysHandleSupSub);return i?xa:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===Je.DISPLAY.size||n.limits);return a?Gd:null}else{if(n.type==="accent")return en(n.base)?Kl:null;if(n.type==="horizBrace"){var l=!t.sub;return l===n.isOver?jd:null}else return null}else return null};Kn({type:"supsub",htmlBuilder(e,t){var r=u5(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,l=ft(n,t),d,f,p=t.fontMetrics(),g=0,m=0,x=n&&en(n);if(i){var S=t.havingStyle(t.style.sup());d=ft(i,S,t),x||(g=l.height-S.fontMetrics().supDrop*S.sizeMultiplier/t.sizeMultiplier)}if(a){var C=t.havingStyle(t.style.sub());f=ft(a,C,t),x||(m=l.depth+C.fontMetrics().subDrop*C.sizeMultiplier/t.sizeMultiplier)}var _;t.style===Je.DISPLAY?_=p.sup1:t.style.cramped?_=p.sup3:_=p.sup2;var F=t.sizeMultiplier,z=_e(.5/p.ptPerEm/F),E=null;if(f){var D=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(l instanceof U0||D)&&(E=_e(-l.italic))}var B;if(d&&f){g=Math.max(g,_,d.depth+.25*p.xHeight),m=Math.max(m,p.sub2);var R=p.defaultRuleThickness,W=4*R;if(g-d.depth-(f.height-m)<W){m=W-(g-d.depth)+f.height;var Y=.8*p.xHeight-(g-d.depth);Y>0&&(g+=Y,m-=Y)}var q=[{type:"elem",elem:f,shift:m,marginRight:z,marginLeft:E},{type:"elem",elem:d,shift:-g,marginRight:z}];B=dt({positionType:"individualShift",children:q})}else if(f){m=Math.max(m,p.sub1,f.height-.8*p.xHeight);var pe=[{type:"elem",elem:f,marginLeft:E,marginRight:z}];B=dt({positionType:"shift",positionData:m,children:pe})}else if(d)g=Math.max(g,_,d.depth+.25*p.xHeight),B=dt({positionType:"shift",positionData:-g,children:[{type:"elem",elem:d,marginRight:z}]});else throw new Error("supsub must have either sup or sub.");var he=Wl(l,"right")||"mord";return Te([he],[l,Te(["msupsub"],[B])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[wt(e.base,t)];e.sub&&a.push(wt(e.sub,t)),e.sup&&a.push(wt(e.sup,t));var l;if(r)l=n?"mover":"munder";else if(e.sub)if(e.sup){var p=e.base;p&&p.type==="op"&&p.limits&&t.style===Je.DISPLAY||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(t.style===Je.DISPLAY||p.limits)?l="munderover":l="msubsup"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Je.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Je.DISPLAY)?l="munder":l="msub"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===Je.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===Je.DISPLAY)?l="mover":l="msup"}return new Me(l,a)}}),Kn({type:"atom",htmlBuilder(e,t){return Hl(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new Me("mo",[lr(e.text,e.mode)]);if(e.family==="bin"){var n=Yl(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var Kd={mi:"italic",mn:"normal",mtext:"normal"};Kn({type:"mathord",htmlBuilder(e,t){return Eo(e,t,"mathord")},mathmlBuilder(e,t){var r=new Me("mi",[lr(e.text,e.mode,t)]),n=Yl(e,t)||"italic";return n!==Kd[r.type]&&r.setAttribute("mathvariant",n),r}}),Kn({type:"textord",htmlBuilder(e,t){return Eo(e,t,"textord")},mathmlBuilder(e,t){var r=lr(e.text,e.mode,t),n=Yl(e,t)||"normal",i;return e.mode==="text"?i=new Me("mtext",[r]):/[0-9]/.test(e.text)?i=new Me("mn",[r]):e.text==="\\prime"?i=new Me("mo",[r]):i=new Me("mi",[r]),n!==Kd[i.type]&&i.setAttribute("mathvariant",n),i}});var du={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},fu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Kn({type:"spacing",htmlBuilder(e,t){if(fu.hasOwnProperty(e.text)){var r=fu[e.text].className||"";if(e.mode==="text"){var n=Eo(e,t,"textord");return n.classes.push(r),n}else return Te(["mspace",r],[Hl(e.text,e.mode,t)],t)}else{if(du.hasOwnProperty(e.text))return Te(["mspace",du[e.text]],[],t);throw new De('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(fu.hasOwnProperty(e.text))r=new Me("mtext",[new Zt(" ")]);else{if(du.hasOwnProperty(e.text))return new Me("mspace");throw new De('Unknown type of space "'+e.text+'"')}return r}});var Qd=()=>{var e=new Me("mtd",[]);return e.setAttribute("width","50%"),e};Kn({type:"tag",mathmlBuilder(e,t){var r=new Me("mtable",[new Me("mtr",[Qd(),new Me("mtd",[wn(e.body,t)]),Qd(),new Me("mtd",[wn(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Jd={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},e4={"\\textbf":"textbf","\\textmd":"textmd"},c5={"\\textit":"textit","\\textup":"textup"},t4=(e,t)=>{var r=e.font;if(r){if(Jd[r])return t.withTextFontFamily(Jd[r]);if(e4[r])return t.withTextFontWeight(e4[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(c5[r])};Re({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:Yt(i),font:n}},htmlBuilder(e,t){var r=t4(e,t),n=a0(e.body,r,!0);return Te(["mord","text"],n,r)},mathmlBuilder(e,t){var r=t4(e,t);return wn(e.body,r)}}),Re({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=ft(e.body,t),n=ya("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=dt({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Te(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new Me("mo",[new Zt("‾")]);r.setAttribute("stretchy","true");var n=new Me("munder",[wt(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),Re({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=ft(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return dt({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new Me("mpadded",[wt(e.body,t)],["vcenter"])}}),Re({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new De("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=r4(e),n=[],i=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var l=r[a];l==="~"&&(l="\\textasciitilde"),n.push(z0(l,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return Te(["mord","text"].concat(i.sizingClasses(t)),J1(n),i)},mathmlBuilder(e,t){var r=new Zt(r4(e)),n=new Me("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var r4=e=>e.body.replace(/ /g,e.star?"␣":" "),An=nd,n4=`[ \r
|
|
262
|
+
]`,d5="\\\\[a-zA-Z@]+",f5="\\\\[^\uD800-\uDFFF]",h5="("+d5+")"+n4+"*",m5=`\\\\(
|
|
263
|
+
|[ \r ]+
|
|
264
|
+
?)[ \r ]*`,hu="[̀-ͯ]",p5=new RegExp(hu+"+$"),g5="("+n4+"+)|"+(m5+"|")+"([!-\\[\\]-‧-豈-]"+(hu+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(hu+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+h5)+("|"+f5+")");class a4{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(g5,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new yr("EOF",new P0(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new De("Unexpected character: '"+t[r]+"'",new yr(t[r],new P0(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(`
|
|
265
|
+
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new yr(i,new P0(this,r,this.tokenRegex.lastIndex))}}class b5{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new De("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var y5=Fd;O("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),O("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),O("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),O("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),O("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),O("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),O("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var i4={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};O("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new De("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=i4[t.text],n==null||n>=r)throw new De("Invalid base-"+r+" digit "+t.text);for(var i;(i=i4[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var mu=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new De("\\newcommand's first argument must be a macro name");var a=i[0].text,l=e.isDefined(a);if(l&&!t)throw new De("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!l&&!r)throw new De("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var d=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var f="",p=e.expandNextToken();p.text!=="]"&&p.text!=="EOF";)f+=p.text,p=e.expandNextToken();if(!f.match(/^\s*[0-9]+\s*$/))throw new De("Invalid number of arguments: "+f);d=parseInt(f),i=e.consumeArg().tokens}return l&&n||e.macros.set(a,{tokens:i,numArgs:d}),""};O("\\newcommand",e=>mu(e,!1,!0,!1)),O("\\renewcommand",e=>mu(e,!0,!1,!1)),O("\\providecommand",e=>mu(e,!0,!0,!0)),O("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""}),O("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""}),O("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),An[r],zt.math[r],zt.text[r]),""}),O("\\bgroup","{"),O("\\egroup","}"),O("~","\\nobreakspace"),O("\\lq","`"),O("\\rq","'"),O("\\aa","\\r a"),O("\\AA","\\r A"),O("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),O("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),O("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),O("ℬ","\\mathscr{B}"),O("ℰ","\\mathscr{E}"),O("ℱ","\\mathscr{F}"),O("ℋ","\\mathscr{H}"),O("ℐ","\\mathscr{I}"),O("ℒ","\\mathscr{L}"),O("ℳ","\\mathscr{M}"),O("ℛ","\\mathscr{R}"),O("ℭ","\\mathfrak{C}"),O("ℌ","\\mathfrak{H}"),O("ℨ","\\mathfrak{Z}"),O("\\Bbbk","\\Bbb{k}"),O("\\llap","\\mathllap{\\textrm{#1}}"),O("\\rlap","\\mathrlap{\\textrm{#1}}"),O("\\clap","\\mathclap{\\textrm{#1}}"),O("\\mathstrut","\\vphantom{(}"),O("\\underbar","\\underline{\\text{#1}}"),O("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),O("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),O("\\ne","\\neq"),O("≠","\\neq"),O("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),O("∉","\\notin"),O("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),O("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),O("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),O("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),O("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),O("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),O("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),O("⟂","\\perp"),O("‼","\\mathclose{!\\mkern-0.8mu!}"),O("∌","\\notni"),O("⌜","\\ulcorner"),O("⌝","\\urcorner"),O("⌞","\\llcorner"),O("⌟","\\lrcorner"),O("©","\\copyright"),O("®","\\textregistered"),O("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),O("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),O("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),O("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),O("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),O("⋮","\\vdots"),O("\\varGamma","\\mathit{\\Gamma}"),O("\\varDelta","\\mathit{\\Delta}"),O("\\varTheta","\\mathit{\\Theta}"),O("\\varLambda","\\mathit{\\Lambda}"),O("\\varXi","\\mathit{\\Xi}"),O("\\varPi","\\mathit{\\Pi}"),O("\\varSigma","\\mathit{\\Sigma}"),O("\\varUpsilon","\\mathit{\\Upsilon}"),O("\\varPhi","\\mathit{\\Phi}"),O("\\varPsi","\\mathit{\\Psi}"),O("\\varOmega","\\mathit{\\Omega}"),O("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),O("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),O("\\boxed","\\fbox{$\\displaystyle{#1}$}"),O("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),O("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),O("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),O("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),O("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var o4={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},v5=new Set(["bin","rel"]);O("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in o4?t=o4[r]:(r.slice(0,4)==="\\not"||r in zt.math&&v5.has(zt.math[r].group))&&(t="\\dotsb"),t});var pu={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};O("\\dotso",function(e){var t=e.future().text;return t in pu?"\\ldots\\,":"\\ldots"}),O("\\dotsc",function(e){var t=e.future().text;return t in pu&&t!==","?"\\ldots\\,":"\\ldots"}),O("\\cdots",function(e){var t=e.future().text;return t in pu?"\\@cdots\\,":"\\@cdots"}),O("\\dotsb","\\cdots"),O("\\dotsm","\\cdots"),O("\\dotsi","\\!\\cdots"),O("\\dotsx","\\ldots\\,"),O("\\DOTSI","\\relax"),O("\\DOTSB","\\relax"),O("\\DOTSX","\\relax"),O("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),O("\\,","\\tmspace+{3mu}{.1667em}"),O("\\thinspace","\\,"),O("\\>","\\mskip{4mu}"),O("\\:","\\tmspace+{4mu}{.2222em}"),O("\\medspace","\\:"),O("\\;","\\tmspace+{5mu}{.2777em}"),O("\\thickspace","\\;"),O("\\!","\\tmspace-{3mu}{.1667em}"),O("\\negthinspace","\\!"),O("\\negmedspace","\\tmspace-{4mu}{.2222em}"),O("\\negthickspace","\\tmspace-{5mu}{.277em}"),O("\\enspace","\\kern.5em "),O("\\enskip","\\hskip.5em\\relax"),O("\\quad","\\hskip1em\\relax"),O("\\qquad","\\hskip2em\\relax"),O("\\tag","\\@ifstar\\tag@literal\\tag@paren"),O("\\tag@paren","\\tag@literal{({#1})}"),O("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new De("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),O("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),O("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),O("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),O("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),O("\\newline","\\\\\\relax"),O("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var s4=_e(Or["Main-Regular"][84][1]-.7*Or["Main-Regular"][65][1]);O("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+s4+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),O("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+s4+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),O("\\hspace","\\@ifstar\\@hspacer\\@hspace"),O("\\@hspace","\\hskip #1\\relax"),O("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),O("\\ordinarycolon",":"),O("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),O("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),O("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),O("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),O("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),O("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),O("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),O("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),O("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),O("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),O("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),O("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),O("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),O("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),O("∷","\\dblcolon"),O("∹","\\eqcolon"),O("≔","\\coloneqq"),O("≕","\\eqqcolon"),O("⩴","\\Coloneqq"),O("\\ratio","\\vcentcolon"),O("\\coloncolon","\\dblcolon"),O("\\colonequals","\\coloneqq"),O("\\coloncolonequals","\\Coloneqq"),O("\\equalscolon","\\eqqcolon"),O("\\equalscoloncolon","\\Eqqcolon"),O("\\colonminus","\\coloneq"),O("\\coloncolonminus","\\Coloneq"),O("\\minuscolon","\\eqcolon"),O("\\minuscoloncolon","\\Eqcolon"),O("\\coloncolonapprox","\\Colonapprox"),O("\\coloncolonsim","\\Colonsim"),O("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),O("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),O("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),O("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),O("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),O("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),O("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),O("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),O("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),O("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),O("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),O("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),O("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),O("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),O("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),O("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),O("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),O("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),O("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),O("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),O("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),O("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),O("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),O("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),O("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),O("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),O("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),O("\\imath","\\html@mathml{\\@imath}{ı}"),O("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),O("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),O("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),O("⟦","\\llbracket"),O("⟧","\\rrbracket"),O("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),O("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),O("⦃","\\lBrace"),O("⦄","\\rBrace"),O("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),O("⦵","\\minuso"),O("\\darr","\\downarrow"),O("\\dArr","\\Downarrow"),O("\\Darr","\\Downarrow"),O("\\lang","\\langle"),O("\\rang","\\rangle"),O("\\uarr","\\uparrow"),O("\\uArr","\\Uparrow"),O("\\Uarr","\\Uparrow"),O("\\N","\\mathbb{N}"),O("\\R","\\mathbb{R}"),O("\\Z","\\mathbb{Z}"),O("\\alef","\\aleph"),O("\\alefsym","\\aleph"),O("\\Alpha","\\mathrm{A}"),O("\\Beta","\\mathrm{B}"),O("\\bull","\\bullet"),O("\\Chi","\\mathrm{X}"),O("\\clubs","\\clubsuit"),O("\\cnums","\\mathbb{C}"),O("\\Complex","\\mathbb{C}"),O("\\Dagger","\\ddagger"),O("\\diamonds","\\diamondsuit"),O("\\empty","\\emptyset"),O("\\Epsilon","\\mathrm{E}"),O("\\Eta","\\mathrm{H}"),O("\\exist","\\exists"),O("\\harr","\\leftrightarrow"),O("\\hArr","\\Leftrightarrow"),O("\\Harr","\\Leftrightarrow"),O("\\hearts","\\heartsuit"),O("\\image","\\Im"),O("\\infin","\\infty"),O("\\Iota","\\mathrm{I}"),O("\\isin","\\in"),O("\\Kappa","\\mathrm{K}"),O("\\larr","\\leftarrow"),O("\\lArr","\\Leftarrow"),O("\\Larr","\\Leftarrow"),O("\\lrarr","\\leftrightarrow"),O("\\lrArr","\\Leftrightarrow"),O("\\Lrarr","\\Leftrightarrow"),O("\\Mu","\\mathrm{M}"),O("\\natnums","\\mathbb{N}"),O("\\Nu","\\mathrm{N}"),O("\\Omicron","\\mathrm{O}"),O("\\plusmn","\\pm"),O("\\rarr","\\rightarrow"),O("\\rArr","\\Rightarrow"),O("\\Rarr","\\Rightarrow"),O("\\real","\\Re"),O("\\reals","\\mathbb{R}"),O("\\Reals","\\mathbb{R}"),O("\\Rho","\\mathrm{P}"),O("\\sdot","\\cdot"),O("\\sect","\\S"),O("\\spades","\\spadesuit"),O("\\sub","\\subset"),O("\\sube","\\subseteq"),O("\\supe","\\supseteq"),O("\\Tau","\\mathrm{T}"),O("\\thetasym","\\vartheta"),O("\\weierp","\\wp"),O("\\Zeta","\\mathrm{Z}"),O("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),O("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),O("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),O("\\bra","\\mathinner{\\langle{#1}|}"),O("\\ket","\\mathinner{|{#1}\\rangle}"),O("\\braket","\\mathinner{\\langle{#1}\\rangle}"),O("\\Bra","\\left\\langle#1\\right|"),O("\\Ket","\\left|#1\\right\\rangle");var l4=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,l=t.macros.get("|"),d=t.macros.get("\\|");t.macros.beginGroup();var f=m=>x=>{e&&(x.macros.set("|",l),i.length&&x.macros.set("\\|",d));var S=m;if(!m&&i.length){var C=x.future();C.text==="|"&&(x.popToken(),S=!0)}return{tokens:S?i:n,numArgs:0}};t.macros.set("|",f(!1)),i.length&&t.macros.set("\\|",f(!0));var p=t.consumeArg().tokens,g=t.expandTokens([...a,...p,...r]);return t.macros.endGroup(),{tokens:g.reverse(),numArgs:0}};O("\\bra@ket",l4(!1)),O("\\bra@set",l4(!0)),O("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),O("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),O("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),O("\\angln","{\\angl n}"),O("\\blue","\\textcolor{##6495ed}{#1}"),O("\\orange","\\textcolor{##ffa500}{#1}"),O("\\pink","\\textcolor{##ff00af}{#1}"),O("\\red","\\textcolor{##df0030}{#1}"),O("\\green","\\textcolor{##28ae7b}{#1}"),O("\\gray","\\textcolor{gray}{#1}"),O("\\purple","\\textcolor{##9d38bd}{#1}"),O("\\blueA","\\textcolor{##ccfaff}{#1}"),O("\\blueB","\\textcolor{##80f6ff}{#1}"),O("\\blueC","\\textcolor{##63d9ea}{#1}"),O("\\blueD","\\textcolor{##11accd}{#1}"),O("\\blueE","\\textcolor{##0c7f99}{#1}"),O("\\tealA","\\textcolor{##94fff5}{#1}"),O("\\tealB","\\textcolor{##26edd5}{#1}"),O("\\tealC","\\textcolor{##01d1c1}{#1}"),O("\\tealD","\\textcolor{##01a995}{#1}"),O("\\tealE","\\textcolor{##208170}{#1}"),O("\\greenA","\\textcolor{##b6ffb0}{#1}"),O("\\greenB","\\textcolor{##8af281}{#1}"),O("\\greenC","\\textcolor{##74cf70}{#1}"),O("\\greenD","\\textcolor{##1fab54}{#1}"),O("\\greenE","\\textcolor{##0d923f}{#1}"),O("\\goldA","\\textcolor{##ffd0a9}{#1}"),O("\\goldB","\\textcolor{##ffbb71}{#1}"),O("\\goldC","\\textcolor{##ff9c39}{#1}"),O("\\goldD","\\textcolor{##e07d10}{#1}"),O("\\goldE","\\textcolor{##a75a05}{#1}"),O("\\redA","\\textcolor{##fca9a9}{#1}"),O("\\redB","\\textcolor{##ff8482}{#1}"),O("\\redC","\\textcolor{##f9685d}{#1}"),O("\\redD","\\textcolor{##e84d39}{#1}"),O("\\redE","\\textcolor{##bc2612}{#1}"),O("\\maroonA","\\textcolor{##ffbde0}{#1}"),O("\\maroonB","\\textcolor{##ff92c6}{#1}"),O("\\maroonC","\\textcolor{##ed5fa6}{#1}"),O("\\maroonD","\\textcolor{##ca337c}{#1}"),O("\\maroonE","\\textcolor{##9e034e}{#1}"),O("\\purpleA","\\textcolor{##ddd7ff}{#1}"),O("\\purpleB","\\textcolor{##c6b9fc}{#1}"),O("\\purpleC","\\textcolor{##aa87ff}{#1}"),O("\\purpleD","\\textcolor{##7854ab}{#1}"),O("\\purpleE","\\textcolor{##543b78}{#1}"),O("\\mintA","\\textcolor{##f5f9e8}{#1}"),O("\\mintB","\\textcolor{##edf2df}{#1}"),O("\\mintC","\\textcolor{##e0e5cc}{#1}"),O("\\grayA","\\textcolor{##f6f7f7}{#1}"),O("\\grayB","\\textcolor{##f0f1f2}{#1}"),O("\\grayC","\\textcolor{##e3e5e6}{#1}"),O("\\grayD","\\textcolor{##d6d8da}{#1}"),O("\\grayE","\\textcolor{##babec2}{#1}"),O("\\grayF","\\textcolor{##888d93}{#1}"),O("\\grayG","\\textcolor{##626569}{#1}"),O("\\grayH","\\textcolor{##3b3e40}{#1}"),O("\\grayI","\\textcolor{##21242c}{#1}"),O("\\kaBlue","\\textcolor{##314453}{#1}"),O("\\kaGreen","\\textcolor{##71B307}{#1}");var u4={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class x5{constructor(t,r,n){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new b5(y5,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new a4(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new yr("EOF",n.loc)),this.pushTokens(i),new yr("",P0.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,l=0,d=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++l;else if(a.text==="}"){if(--l,l===-1)throw new De("Extra }",a)}else if(a.text==="EOF")throw new De("Unexpected end of input in a macro argument, expected '"+(t&&n?t[d]:"}")+"'",a);if(t&&n)if((l===0||l===1&&t[d]==="{")&&a.text===t[d]){if(++d,d===t.length){r.splice(-d,d);break}}else d=0}while(l!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new De("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new De("Use of the macro doesn't match its definition",a)}}for(var l=[],d=0;d<t;d++)l.push(this.consumeArg(r&&r[d+1]).tokens);return l}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new De("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new De("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,l=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var d=a.length-1;d>=0;--d){var f=a[d];if(f.text==="#"){if(d===0)throw new De("Incomplete placeholder at end of macro body",f);if(f=a[--d],f.text==="#")a.splice(d+1,1);else if(/^[1-9]$/.test(f.text))a.splice(d,2,...l[+f.text-1]);else throw new De("Not a valid argument number",f)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new yr(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var l=i.replace(/##/g,"");l.includes("#"+(a+1));)++a;for(var d=new a4(i,this.settings),f=[],p=d.lex();p.text!=="EOF";)f.push(p),p=d.lex();f.reverse();var g={tokens:f,numArgs:a};return g}return i}isDefined(t){return this.macros.has(t)||An.hasOwnProperty(t)||zt.math.hasOwnProperty(t)||zt.text.hasOwnProperty(t)||u4.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:An.hasOwnProperty(t)&&!An[t].primitive}}var c4=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,$o=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),gu={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},d4={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Uo{constructor(t,r){this.mode="math",this.gullet=new x5(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new De("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new yr("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Uo.endOfExpression.has(i.text)||r&&i.text===r||t&&An[i.text]&&An[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++){var a=t[i];if(a.type==="infix"){if(r!==-1)throw new De("only one infix operator per group",a.token);r=i,n=a.replaceWith}}if(r!==-1&&n){var l,d,f=t.slice(0,r),p=t.slice(r+1);f.length===1&&f[0].type==="ordgroup"?l=f[0]:l={type:"ordgroup",mode:this.mode,body:f},p.length===1&&p[0].type==="ordgroup"?d=p[0]:d={type:"ordgroup",mode:this.mode,body:p};var g;return n==="\\\\abovefrac"?g=this.callFunction(n,[l,t[r],d],[]):g=this.callFunction(n,[l,d],[]),[g]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var a;i=this.parseGroup(t)}while(((a=i)==null?void 0:a.type)==="internal");if(!i)throw new De("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var l=a.text==="\\limits";r.limits=l,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new De("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new De("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new De("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new De("Double superscript",a);var d={type:"textord",mode:this.mode,text:"\\prime"},f=[d];for(this.consume();this.fetch().text==="'";)f.push(d),this.consume();this.fetch().text==="^"&&f.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:f}}else if($o[a.text]){var p=c4.test(a.text),g=[];for(g.push(new yr($o[a.text])),this.consume();;){var m=this.fetch().text;if(!$o[m]||c4.test(m)!==p)break;g.unshift(new yr($o[m])),this.consume()}var x=this.subparse(g);p?i={type:"ordgroup",mode:"math",body:x}:n={type:"ordgroup",mode:"math",body:x}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,a=An[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new De("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new De("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new De("Can't use function '"+i+"' in math mode",n);var{args:l,optArgs:d}=this.parseArguments(i,a);return this.callFunction(i,l,d,n,t)}callFunction(t,r,n,i,a){var l={funcName:t,parser:this,token:i,breakOnTokenText:a},d=An[t];if(d&&d.handler)return d.handler(l,r,n);throw new De("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],l=0;l<n;l++){var d=r.argTypes&&r.argTypes[l],f=l<r.numOptionalArgs;("primitive"in r&&r.primitive&&d==null||r.type==="sqrt"&&l===1&&a[0]==null)&&(d="primitive");var p=this.parseGroupOfType("argument to '"+t+"'",d,f);if(f)a.push(p);else if(p!=null)i.push(p);else throw new De("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new De("A primitive argument cannot be optional");var l=this.parseGroup(t);if(l==null)throw new De("Expected group as "+t,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new De("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,a="",l;(l=this.fetch()).text!=="EOF"&&t.test(a+l.text);)i=l,a+=i.text,this.consume();if(a==="")throw new De("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new De("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new De("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!q1(a))throw new De("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var l={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),l}parseGroup(t,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var l=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var d=this.parseExpression(!1,l),f=this.fetch();this.expect(l),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:P0.range(n,f),body:d,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!u4.hasOwnProperty(i)){if(this.settings.throwOnError)throw new De("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var a=i.text,l=t[n+1];if(!(!l||l.type!=="textord")){if(a==="-"&&l.text==="-"){var d=t[n+2];n+1<r&&d&&d.type==="textord"&&d.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:P0.range(i,d),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:P0.range(i,l),text:"--"}),r-=1)}(a==="'"||a==="`")&&l.text===a&&(t.splice(n,2,{type:"textord",mode:"text",loc:P0.range(i,l),text:a+a}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new De(`\\verb assertion failed --
|
|
266
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}d4.hasOwnProperty(r[0])&&!zt[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=d4[r[0]]+r.slice(1));var a=p5.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var l;if(zt[this.mode][r]){this.settings.strict&&this.mode==="math"&&Pl.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var d=zt[this.mode][r].group,f=P0.range(t),p;if(g6.hasOwnProperty(d)){var g=d;p={type:"atom",mode:this.mode,family:g,loc:f,text:r}}else p={type:d,mode:this.mode,loc:f,text:r};l=p}else if(r.charCodeAt(0)>=128)this.settings.strict&&(V1(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),l={type:"textord",mode:"text",loc:P0.range(t),text:r};else return null;if(this.consume(),a)for(var m=0;m<a[0].length;m++){var x=a[0][m];if(!gu[x])throw new De("Unknown accent ' "+x+"'",t);var S=gu[x][this.mode]||gu[x].text;if(!S)throw new De("Accent "+x+" unsupported in "+this.mode+" mode",t);l={type:"accent",mode:this.mode,loc:P0.range(t),label:S,isStretchy:!1,isShifty:!0,base:l}}return l}}Uo.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var bu=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Uo(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new De("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new yr("\\df@tag")])}]}return i},f4=function(t,r,n){r.textContent="";var i=yu(t,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),f4=function(){throw new De("KaTeX doesn't work in quirks mode.")});var w5=function(t,r){var n=yu(t,r).toMarkup();return n},k5=function(t,r){var n=new Ml(r);return bu(t,n)},h4=function(t,r,n){if(n.throwOnError||!(t instanceof De))throw t;var i=Te(["katex-error"],[new U0(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},yu=function(t,r){var n=new Ml(r);try{var i=bu(t,n);return _6(i,t,n)}catch(a){return h4(a,t,n)}},A5=function(t,r){var n=new Ml(r);try{var i=bu(t,n);return F6(i,t,n)}catch(a){return h4(a,t,n)}},S5="0.16.44",C5={Span:ga,Anchor:xo,SymbolNode:U0,SvgNode:rn,PathNode:yn,LineNode:Fl},T5={version:S5,render:f4,renderToString:w5,ParseError:De,SETTINGS_SCHEMA:Dl,__parse:k5,__renderToDomTree:yu,__renderToHTMLTree:A5,__setFontMetrics:m6,__defineSymbol:v,__defineFunction:Re,__defineMacro:O,__domTree:C5};const m4={};function E5(e){let t=m4[e];if(t)return t;t=m4[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);t.push(n)}for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function wa(e,t){typeof t!="string"&&(t=wa.defaultChars);const r=E5(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let i="";for(let a=0,l=n.length;a<l;a+=3){const d=parseInt(n.slice(a+1,a+3),16);if(d<128){i+=r[d];continue}if((d&224)===192&&a+3<l){const f=parseInt(n.slice(a+4,a+6),16);if((f&192)===128){const p=d<<6&1984|f&63;p<128?i+="��":i+=String.fromCharCode(p),a+=3;continue}}if((d&240)===224&&a+6<l){const f=parseInt(n.slice(a+4,a+6),16),p=parseInt(n.slice(a+7,a+9),16);if((f&192)===128&&(p&192)===128){const g=d<<12&61440|f<<6&4032|p&63;g<2048||g>=55296&&g<=57343?i+="���":i+=String.fromCharCode(g),a+=6;continue}}if((d&248)===240&&a+9<l){const f=parseInt(n.slice(a+4,a+6),16),p=parseInt(n.slice(a+7,a+9),16),g=parseInt(n.slice(a+10,a+12),16);if((f&192)===128&&(p&192)===128&&(g&192)===128){let m=d<<18&1835008|f<<12&258048|p<<6&4032|g&63;m<65536||m>1114111?i+="����":(m-=65536,i+=String.fromCharCode(55296+(m>>10),56320+(m&1023))),a+=9;continue}}i+="�"}return i})}wa.defaultChars=";/?:@&=+$,#",wa.componentChars="";const p4={};function D5(e){let t=p4[e];if(t)return t;t=p4[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}function fi(e,t,r){typeof t!="string"&&(r=t,t=fi.defaultChars),typeof r>"u"&&(r=!0);const n=D5(t);let i="";for(let a=0,l=e.length;a<l;a++){const d=e.charCodeAt(a);if(r&&d===37&&a+2<l&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3))){i+=e.slice(a,a+3),a+=2;continue}if(d<128){i+=n[d];continue}if(d>=55296&&d<=57343){if(d>=55296&&d<=56319&&a+1<l){const f=e.charCodeAt(a+1);if(f>=56320&&f<=57343){i+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[a])}return i}fi.defaultChars=";/?:@&=+$,-_.!~*'()#",fi.componentChars="-_.!~*'()";function vu(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Wo(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const M5=/^([a-z0-9.+-]+:)/i,N5=/:[0-9]*$/,z5=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_5=["<",">",'"',"`"," ","\r",`
|
|
267
|
+
`," "],F5=["{","}","|","\\","^","`"].concat(_5),I5=["'"].concat(F5),g4=["%","/","?",";","#"].concat(I5),b4=["/","?","#"],B5=255,y4=/^[+a-z0-9A-Z_-]{0,63}$/,O5=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v4={javascript:!0,"javascript:":!0},x4={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function xu(e,t){if(e&&e instanceof Wo)return e;const r=new Wo;return r.parse(e,t),r}Wo.prototype.parse=function(e,t){let r,n,i,a=e;if(a=a.trim(),!t&&e.split("#").length===1){const p=z5.exec(a);if(p)return this.pathname=p[1],p[2]&&(this.search=p[2]),this}let l=M5.exec(a);if(l&&(l=l[0],r=l.toLowerCase(),this.protocol=l,a=a.substr(l.length)),(t||l||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)==="//",i&&!(l&&v4[l])&&(a=a.substr(2),this.slashes=!0)),!v4[l]&&(i||l&&!x4[l])){let p=-1;for(let C=0;C<b4.length;C++)n=a.indexOf(b4[C]),n!==-1&&(p===-1||n<p)&&(p=n);let g,m;p===-1?m=a.lastIndexOf("@"):m=a.lastIndexOf("@",p),m!==-1&&(g=a.slice(0,m),a=a.slice(m+1),this.auth=g),p=-1;for(let C=0;C<g4.length;C++)n=a.indexOf(g4[C]),n!==-1&&(p===-1||n<p)&&(p=n);p===-1&&(p=a.length),a[p-1]===":"&&p--;const x=a.slice(0,p);a=a.slice(p),this.parseHost(x),this.hostname=this.hostname||"";const S=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!S){const C=this.hostname.split(/\./);for(let _=0,F=C.length;_<F;_++){const z=C[_];if(z&&!z.match(y4)){let E="";for(let D=0,B=z.length;D<B;D++)z.charCodeAt(D)>127?E+="x":E+=z[D];if(!E.match(y4)){const D=C.slice(0,_),B=C.slice(_+1),R=z.match(O5);R&&(D.push(R[1]),B.unshift(R[2])),B.length&&(a=B.join(".")+a),this.hostname=D.join(".");break}}}}this.hostname.length>B5&&(this.hostname=""),S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const d=a.indexOf("#");d!==-1&&(this.hash=a.substr(d),a=a.slice(0,d));const f=a.indexOf("?");return f!==-1&&(this.search=a.substr(f),a=a.slice(0,f)),a&&(this.pathname=a),x4[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Wo.prototype.parseHost=function(e){let t=N5.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const L5=Object.freeze(Object.defineProperty({__proto__:null,decode:wa,encode:fi,format:vu,parse:xu},Symbol.toStringTag,{value:"Module"})),w4=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,k4=/[\0-\x1F\x7F-\x9F]/,R5=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,wu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,A4=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,S4=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,P5=Object.freeze(Object.defineProperty({__proto__:null,Any:w4,Cc:k4,Cf:R5,P:wu,S:A4,Z:S4},Symbol.toStringTag,{value:"Module"})),V5=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),H5=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var ku;const q5=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),j5=(ku=String.fromCodePoint)!==null&&ku!==void 0?ku:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function $5(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=q5.get(e))!==null&&t!==void 0?t:e}var d0;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(d0||(d0={}));const U5=32;var Sn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Sn||(Sn={}));function Au(e){return e>=d0.ZERO&&e<=d0.NINE}function W5(e){return e>=d0.UPPER_A&&e<=d0.UPPER_F||e>=d0.LOWER_A&&e<=d0.LOWER_F}function G5(e){return e>=d0.UPPER_A&&e<=d0.UPPER_Z||e>=d0.LOWER_A&&e<=d0.LOWER_Z||Au(e)}function X5(e){return e===d0.EQUALS||G5(e)}var f0;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(f0||(f0={}));var Cn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Cn||(Cn={}));class Y5{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=f0.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Cn.Strict}startEntity(t){this.decodeMode=t,this.state=f0.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case f0.EntityStart:return t.charCodeAt(r)===d0.NUM?(this.state=f0.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=f0.NamedEntity,this.stateNamedEntity(t,r));case f0.NumericStart:return this.stateNumericStart(t,r);case f0.NumericDecimal:return this.stateNumericDecimal(t,r);case f0.NumericHex:return this.stateNumericHex(t,r);case f0.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|U5)===d0.LOWER_X?(this.state=f0.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=f0.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){const a=n-r;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(r,a),i),this.consumed+=a}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if(Au(i)||W5(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if(Au(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===d0.SEMI)this.consumed+=1;else if(this.decodeMode===Cn.Strict)return 0;return this.emitCodePoint($5(this.result),this.consumed),this.errors&&(t!==d0.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let i=n[this.treeIndex],a=(i&Sn.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const l=t.charCodeAt(r);if(this.treeIndex=Z5(n,i,this.treeIndex+Math.max(1,a),l),this.treeIndex<0)return this.result===0||this.decodeMode===Cn.Attribute&&(a===0||X5(l))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],a=(i&Sn.VALUE_LENGTH)>>14,a!==0){if(l===d0.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Cn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,i=(n[r]&Sn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~Sn.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case f0.NamedEntity:return this.result!==0&&(this.decodeMode!==Cn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case f0.NumericDecimal:return this.emitNumericEntity(0,2);case f0.NumericHex:return this.emitNumericEntity(0,3);case f0.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case f0.EntityStart:return 0}}}function C4(e){let t="";const r=new Y5(e,n=>t+=j5(n));return function(i,a){let l=0,d=0;for(;(d=i.indexOf("&",d))>=0;){t+=i.slice(l,d),r.startEntity(a);const p=r.write(i,d+1);if(p<0){l=d+r.end();break}l=d+p,d=p===0?l+1:l}const f=t+i.slice(l);return t="",f}}function Z5(e,t,r,n){const i=(t&Sn.BRANCH_LENGTH)>>7,a=t&Sn.JUMP_TABLE;if(i===0)return a!==0&&n===a?r:-1;if(a){const f=n-a;return f<0||f>=i?-1:e[r+f]-1}let l=r,d=l+i-1;for(;l<=d;){const f=l+d>>>1,p=e[f];if(p<n)l=f+1;else if(p>n)d=f-1;else return e[f+i]}return-1}const K5=C4(V5);C4(H5);function T4(e,t=Cn.Legacy){return K5(e,t)}function Q5(e){return Object.prototype.toString.call(e)}function Su(e){return Q5(e)==="[object String]"}const J5=Object.prototype.hasOwnProperty;function e7(e,t){return J5.call(e,t)}function Go(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function E4(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function Cu(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Xo(e){if(e>65535){e-=65536;const t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}const D4=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,t7=/&([a-z#][a-z0-9]{1,31});/gi,r7=new RegExp(D4.source+"|"+t7.source,"gi"),n7=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function a7(e,t){if(t.charCodeAt(0)===35&&n7.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Cu(n)?Xo(n):e}const r=T4(e);return r!==e?r:e}function i7(e){return e.indexOf("\\")<0?e:e.replace(D4,"$1")}function ka(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(r7,function(t,r,n){return r||a7(t,n)})}const o7=/[&<>"]/,s7=/[&<>"]/g,l7={"&":"&","<":"<",">":">",'"':"""};function u7(e){return l7[e]}function Tn(e){return o7.test(e)?e.replace(s7,u7):e}const c7=/[.?*+^$[\]\\(){}|-]/g;function d7(e){return e.replace(c7,"\\$&")}function At(e){switch(e){case 9:case 32:return!0}return!1}function hi(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function mi(e){return wu.test(e)||A4.test(e)}function pi(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Yo(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const f7=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:E4,assign:Go,escapeHtml:Tn,escapeRE:d7,fromCodePoint:Xo,has:e7,isMdAsciiPunct:pi,isPunctChar:mi,isSpace:At,isString:Su,isValidEntityCode:Cu,isWhiteSpace:hi,lib:{mdurl:L5,ucmicro:P5},normalizeReference:Yo,unescapeAll:ka,unescapeMd:i7},Symbol.toStringTag,{value:"Module"}));function h7(e,t,r){let n,i,a,l;const d=e.posMax,f=e.pos;for(e.pos=t+1,n=1;e.pos<d;){if(a=e.src.charCodeAt(e.pos),a===93&&(n--,n===0)){i=!0;break}if(l=e.pos,e.md.inline.skipToken(e),a===91){if(l===e.pos-1)n++;else if(r)return e.pos=f,-1}}let p=-1;return i&&(p=e.pos),e.pos=f,p}function m7(e,t,r){let n,i=t;const a={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<r;){if(n=e.charCodeAt(i),n===10||n===60)return a;if(n===62)return a.pos=i+1,a.str=ka(e.slice(t+1,i)),a.ok=!0,a;if(n===92&&i+1<r){i+=2;continue}i++}return a}let l=0;for(;i<r&&(n=e.charCodeAt(i),!(n===32||n<32||n===127));){if(n===92&&i+1<r){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(n===40&&(l++,l>32))return a;if(n===41){if(l===0)break;l--}i++}return t===i||l!==0||(a.str=ka(e.slice(t,i)),a.pos=i,a.ok=!0),a}function p7(e,t,r,n){let i,a=t;const l={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)l.str=n.str,l.marker=n.marker;else{if(a>=r)return l;let d=e.charCodeAt(a);if(d!==34&&d!==39&&d!==40)return l;t++,a++,d===40&&(d=41),l.marker=d}for(;a<r;){if(i=e.charCodeAt(a),i===l.marker)return l.pos=a+1,l.str+=ka(e.slice(t,a)),l.ok=!0,l;if(i===40&&l.marker===41)return l;i===92&&a+1<r&&a++,a++}return l.can_continue=!0,l.str+=ka(e.slice(t,a)),l}const g7=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:m7,parseLinkLabel:h7,parseLinkTitle:p7},Symbol.toStringTag,{value:"Module"})),Vr={};Vr.code_inline=function(e,t,r,n,i){const a=e[t];return"<code"+i.renderAttrs(a)+">"+Tn(a.content)+"</code>"},Vr.code_block=function(e,t,r,n,i){const a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+Tn(e[t].content)+`</code></pre>
|
|
268
|
+
`},Vr.fence=function(e,t,r,n,i){const a=e[t],l=a.info?ka(a.info).trim():"";let d="",f="";if(l){const g=l.split(/(\s+)/g);d=g[0],f=g.slice(2).join("")}let p;if(r.highlight?p=r.highlight(a.content,d,f)||Tn(a.content):p=Tn(a.content),p.indexOf("<pre")===0)return p+`
|
|
269
|
+
`;if(l){const g=a.attrIndex("class"),m=a.attrs?a.attrs.slice():[];g<0?m.push(["class",r.langPrefix+d]):(m[g]=m[g].slice(),m[g][1]+=" "+r.langPrefix+d);const x={attrs:m};return`<pre><code${i.renderAttrs(x)}>${p}</code></pre>
|
|
270
|
+
`}return`<pre><code${i.renderAttrs(a)}>${p}</code></pre>
|
|
271
|
+
`},Vr.image=function(e,t,r,n,i){const a=e[t];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,r,n),i.renderToken(e,t,r)},Vr.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
|
|
7
272
|
`:`<br>
|
|
8
|
-
`},
|
|
273
|
+
`},Vr.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
|
|
9
274
|
`:`<br>
|
|
10
275
|
`:`
|
|
11
|
-
`},
|
|
12
|
-
`),
|
|
13
|
-
`:">",
|
|
14
|
-
`;break}return
|
|
15
|
-
`),t=t.replace(qd,"�"),e.src=t}function Yd(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Kd(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function Qd(e){return/^<a[>\s]/i.test(e)}function Jd(e){return/^<\/a\s*>/i.test(e)}function ef(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let u=t[n].children,o=0;for(let a=u.length-1;a>=0;a--){const s=u[a];if(s.type==="link_close"){for(a--;u[a].level!==s.level&&u[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(Qd(s.content)&&o>0&&o--,Jd(s.content)&&o++),!(o>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let d=e.md.linkify.match(l);const f=[];let c=s.level,h=0;d.length>0&&d[0].index===0&&a>0&&u[a-1].type==="text_special"&&(d=d.slice(1));for(let p=0;p<d.length;p++){const m=d[p].url,x=e.md.normalizeLink(m);if(!e.md.validateLink(x))continue;let v=d[p].text;d[p].schema?d[p].schema==="mailto:"&&!/^mailto:/i.test(v)?v=e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=e.md.normalizeLinkText(v):v=e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,"");const y=d[p].index;if(y>h){const A=new e.Token("text","",0);A.content=l.slice(h,y),A.level=c,f.push(A)}const b=new e.Token("link_open","a",1);b.attrs=[["href",x]],b.level=c++,b.markup="linkify",b.info="auto",f.push(b);const g=new e.Token("text","",0);g.content=v,g.level=c,f.push(g);const w=new e.Token("link_close","a",-1);w.level=--c,w.markup="linkify",w.info="auto",f.push(w),h=d[p].lastIndex}if(h<l.length){const p=new e.Token("text","",0);p.content=l.slice(h),p.level=c,f.push(p)}t[n].children=u=ua(u,a,f)}}}}const sa=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,tf=/\((c|tm|r)\)/i,nf=/\((c|tm|r)\)/ig,rf={c:"©",r:"®",tm:"™"};function of(e,t){return rf[t.toLowerCase()]}function uf(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(nf,of)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function af(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&sa.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function sf(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(tf.test(e.tokens[t].content)&&uf(e.tokens[t].children),sa.test(e.tokens[t].content)&&af(e.tokens[t].children))}const lf=/['"]/,la=/['"]/g,ca="’";function Gr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function cf(e,t){let n;const r=[];for(let u=0;u<e.length;u++){const o=e[u],a=e[u].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,o.type!=="text")continue;let s=o.content,l=0,d=s.length;e:for(;l<d;){la.lastIndex=l;const f=la.exec(s);if(!f)break;let c=!0,h=!0;l=f.index+1;const p=f[0]==="'";let m=32;if(f.index-1>=0)m=s.charCodeAt(f.index-1);else for(n=u-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let x=32;if(l<d)x=s.charCodeAt(l);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){x=e[n].content.charCodeAt(0);break}const v=qn(m)||Gn(String.fromCharCode(m)),y=qn(x)||Gn(String.fromCharCode(x)),b=Xn(m),g=Xn(x);if(g?c=!1:y&&(b||v||(c=!1)),b?h=!1:v&&(g||y||(h=!1)),x===34&&f[0]==='"'&&m>=48&&m<=57&&(h=c=!1),c&&h&&(c=v,h=y),!c&&!h){p&&(o.content=Gr(o.content,f.index,ca));continue}if(h)for(n=r.length-1;n>=0;n--){let w=r[n];if(r[n].level<a)break;if(w.single===p&&r[n].level===a){w=r[n];let A,N;p?(A=t.md.options.quotes[2],N=t.md.options.quotes[3]):(A=t.md.options.quotes[0],N=t.md.options.quotes[1]),o.content=Gr(o.content,f.index,N),e[w.token].content=Gr(e[w.token].content,w.pos,A),l+=N.length-1,w.token===u&&(l+=A.length-1),s=o.content,d=s.length,r.length=n;continue e}}c?r.push({token:u,pos:f.index,single:p,level:a}):h&&p&&(o.content=Gr(o.content,f.index,ca))}}}function df(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!lf.test(e.tokens[t].content)||cf(e.tokens[t].children,e)}function ff(e){let t,n;const r=e.tokens,u=r.length;for(let o=0;o<u;o++){if(r[o].type!=="inline")continue;const a=r[o].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const su=[["normalize",Zd],["block",Yd],["inline",Kd],["linkify",ef],["replacements",sf],["smartquotes",df],["text_join",ff]];function lu(){this.ruler=new qe;for(let e=0;e<su.length;e++)this.ruler.push(su[e][0],su[e][1])}lu.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},lu.prototype.State=aa;function Ct(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const u=this.src;for(let o=0,a=0,s=0,l=0,d=u.length,f=!1;a<d;a++){const c=u.charCodeAt(a);if(!f)if(me(c)){s++,c===9?l+=4-l%4:l++;continue}else f=!0;(c===10||a===d-1)&&(c!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,o=a+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ct.prototype.push=function(e,t,n){const r=new dt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Ct.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Ct.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},Ct.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!me(r))break}return t},Ct.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!me(this.src.charCodeAt(--t)))return t+1;return t},Ct.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},Ct.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t},Ct.prototype.getLines=function(t,n,r,u){if(t>=n)return"";const o=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let l=0;const d=this.bMarks[s];let f=d,c;for(s+1<n||u?c=this.eMarks[s]+1:c=this.eMarks[s];f<c&&l<r;){const h=this.src.charCodeAt(f);if(me(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-d<this.tShift[s])l++;else break;f++}l>r?o[a]=new Array(l-r+1).join(" ")+this.src.slice(f,c):o[a]=this.src.slice(f,c)}return o.join("")},Ct.prototype.Token=dt;const hf=65536;function cu(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function da(e){const t=[],n=e.length;let r=0,u=e.charCodeAt(r),o=!1,a=0,s="";for(;r<n;)u===124&&(o?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),o=u===92,r++,u=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function mf(e,t,n,r){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let o=e.bMarks[u]+e.tShift[u];if(o>=e.eMarks[u])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[u])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!me(s)||a===45&&me(s))return!1;for(;o<e.eMarks[u];){const w=e.src.charCodeAt(o);if(w!==124&&w!==45&&w!==58&&!me(w))return!1;o++}let l=cu(e,t+1),d=l.split("|");const f=[];for(let w=0;w<d.length;w++){const A=d[w].trim();if(!A){if(w===0||w===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(A))return!1;A.charCodeAt(A.length-1)===58?f.push(A.charCodeAt(0)===58?"center":"right"):A.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=cu(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;d=da(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop();const c=d.length;if(c===0||c!==f.length)return!1;if(r)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),x=[t,0];m.map=x;const v=e.push("thead_open","thead",1);v.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let w=0;w<d.length;w++){const A=e.push("th_open","th",1);f[w]&&(A.attrs=[["style","text-align:"+f[w]]]);const N=e.push("inline","",0);N.content=d[w].trim(),N.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b,g=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let w=!1;for(let N=0,F=p.length;N<F;N++)if(p[N](e,u,n,!0)){w=!0;break}if(w||(l=cu(e,u).trim(),!l)||e.sCount[u]-e.blkIndent>=4||(d=da(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),g+=c-d.length,g>hf))break;if(u===t+2){const N=e.push("tbody_open","tbody",1);N.map=b=[t+2,0]}const A=e.push("tr_open","tr",1);A.map=[u,u+1];for(let N=0;N<c;N++){const F=e.push("td_open","td",1);f[N]&&(F.attrs=[["style","text-align:"+f[N]]]);const _=e.push("inline","",0);_.content=d[N]?d[N].trim():"",_.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return b&&(e.push("tbody_close","tbody",-1),b[1]=u),e.push("table_close","table",-1),x[1]=u,e.parentType=h,e.line=u,!0}function pf(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,u=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,u=r;continue}break}e.line=u;const o=e.push("code_block","code",0);return o.content=e.getLines(t,u,4+e.blkIndent,!1)+`
|
|
16
|
-
`,o.map=[t,e.line],!0}function gf(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>o)return!1;const a=e.src.charCodeAt(u);if(a!==126&&a!==96)return!1;let s=u;u=e.skipChars(u,a);let l=u-s;if(l<3)return!1;const d=e.src.slice(s,u),f=e.src.slice(u,o);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let c=t,h=!1;for(;c++,!(c>=n||(u=s=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],u<o&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(u)===a&&!(e.sCount[c]-e.blkIndent>=4)&&(u=e.skipChars(u,a),!(u-s<l)&&(u=e.skipSpaces(u),!(u<o)))){h=!0;break}l=e.sCount[t],e.line=c+(h?1:0);const p=e.push("fence","code",0);return p.info=f,p.content=e.getLines(t+1,c,l,!0),p.markup=d,p.map=[t,e.line],!0}function bf(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==62)return!1;if(r)return!0;const s=[],l=[],d=[],f=[],c=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m<n;m++){const g=e.sCount[m]<e.blkIndent;if(u=e.bMarks[m]+e.tShift[m],o=e.eMarks[m],u>=o)break;if(e.src.charCodeAt(u++)===62&&!g){let A=e.sCount[m]+1,N,F;e.src.charCodeAt(u)===32?(u++,A++,F=!1,N=!0):e.src.charCodeAt(u)===9?(N=!0,(e.bsCount[m]+A)%4===3?(u++,A++,F=!1):F=!0):N=!1;let _=A;for(s.push(e.bMarks[m]),e.bMarks[m]=u;u<o;){const G=e.src.charCodeAt(u);if(me(G))G===9?_+=4-(_+e.bsCount[m]+(F?1:0))%4:_++;else break;u++}p=u>=o,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(N?1:0),d.push(e.sCount[m]),e.sCount[m]=_-A,f.push(e.tShift[m]),e.tShift[m]=u-e.bMarks[m];continue}if(p)break;let w=!1;for(let A=0,N=c.length;A<N;A++)if(c[A](e,m,n,!0)){w=!0;break}if(w){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),d.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),d.push(e.sCount[m]),e.sCount[m]=-1}const x=e.blkIndent;e.blkIndent=0;const v=e.push("blockquote_open","blockquote",1);v.markup=">";const y=[t,0];v.map=y,e.md.block.tokenize(e,t,m);const b=e.push("blockquote_close","blockquote",-1);b.markup=">",e.lineMax=a,e.parentType=h,y[1]=e.line;for(let g=0;g<f.length;g++)e.bMarks[g+t]=s[g],e.tShift[g+t]=f[g],e.sCount[g+t]=d[g],e.bsCount[g+t]=l[g];return e.blkIndent=x,!0}function yf(e,t,n,r){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<u;){const d=e.src.charCodeAt(o++);if(d!==a&&!me(d))return!1;d===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function fa(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!me(o))return-1}return r}function ha(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let o=e.src.charCodeAt(u++);if(o<48||o>57)return-1;for(;;){if(u>=r)return-1;if(o=e.src.charCodeAt(u++),o>=48&&o<=57){if(u-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return u<r&&(o=e.src.charCodeAt(u),!me(o))?-1:u}function wf(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function xf(e,t,n,r){let u,o,a,s,l=t,d=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;r&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let c,h,p;if((p=ha(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(a,p-1)),f&&h!==1)return!1}else if((p=fa(e,l))>=0)c=!1;else return!1;if(f&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(p-1),x=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const v=[l,0];s.map=v,s.markup=String.fromCharCode(m);let y=!1;const b=e.md.block.ruler.getRules("list"),g=e.parentType;for(e.parentType="list";l<n;){o=p,u=e.eMarks[l];const w=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let A=w;for(;o<u;){const q=e.src.charCodeAt(o);if(q===9)A+=4-(A+e.bsCount[l])%4;else if(q===32)A++;else break;o++}const N=o;let F;N>=u?F=1:F=A-w,F>4&&(F=1);const _=w+F;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const G=[l,0];s.map=G,c&&(s.info=e.src.slice(a,p-1));const $=e.tight,M=e.tShift[l],H=e.sCount[l],I=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=_,e.tight=!0,e.tShift[l]=N-e.bMarks[l],e.sCount[l]=A,N>=u&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||y)&&(d=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=I,e.tShift[l]=M,e.sCount[l]=H,e.tight=$,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,G[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let X=!1;for(let q=0,D=b.length;q<D;q++)if(b[q](e,l,n,!0)){X=!0;break}if(X)break;if(c){if(p=ha(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=fa(e,l),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return c?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(m),v[1]=l,e.line=l,e.parentType=g,d&&wf(e,x),!0}function vf(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function s(b){const g=e.lineMax;if(b>=g||e.isEmpty(b))return null;let w=!1;if(e.sCount[b]-e.blkIndent>3&&(w=!0),e.sCount[b]<0&&(w=!0),!w){const F=e.md.block.ruler.getRules("reference"),_=e.parentType;e.parentType="reference";let G=!1;for(let $=0,M=F.length;$<M;$++)if(F[$](e,b,g,!0)){G=!0;break}if(e.parentType=_,G)return null}const A=e.bMarks[b]+e.tShift[b],N=e.eMarks[b];return e.src.slice(A,N+1)}let l=e.src.slice(u,o+1);o=l.length;let d=-1;for(u=1;u<o;u++){const b=l.charCodeAt(u);if(b===91)return!1;if(b===93){d=u;break}else if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(b===92&&(u++,u<o&&l.charCodeAt(u)===10)){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}}if(d<0||l.charCodeAt(d+1)!==58)return!1;for(u=d+2;u<o;u++){const b=l.charCodeAt(u);if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(!me(b))break}const f=e.md.helpers.parseLinkDestination(l,u,o);if(!f.ok)return!1;const c=e.md.normalizeLink(f.str);if(!e.md.validateLink(c))return!1;u=f.pos;const h=u,p=a,m=u;for(;u<o;u++){const b=l.charCodeAt(u);if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(!me(b))break}let x=e.md.helpers.parseLinkTitle(l,u,o);for(;x.can_continue;){const b=s(a);if(b===null)break;l+=b,u=o,o=l.length,a++,x=e.md.helpers.parseLinkTitle(l,u,o,x)}let v;for(u<o&&m!==u&&x.ok?(v=x.str,u=x.pos):(v="",u=h,a=p);u<o;){const b=l.charCodeAt(u);if(!me(b))break;u++}if(u<o&&l.charCodeAt(u)!==10&&v)for(v="",u=h,a=p;u<o;){const b=l.charCodeAt(u);if(!me(b))break;u++}if(u<o&&l.charCodeAt(u)!==10)return!1;const y=Xr(l.slice(1,d));return y?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:v,href:c}),e.line=a),!0):!1}const kf=["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"],Af="[a-zA-Z_:][a-zA-Z0-9:._-]*",Cf="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",ma="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Af+"(?:\\s*=\\s*"+Cf+")?)")+"*\\s*\\/?>",pa="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",_f="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Ef="<[?][\\s\\S]*?[?]>",Sf="<![A-Za-z][^>]*>",Nf="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Ff=new RegExp("^(?:"+ma+"|"+pa+"|"+_f+"|"+Ef+"|"+Sf+"|"+Nf+")"),Tf=new RegExp("^(?:"+ma+"|"+pa+")"),yn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+kf.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Tf.source+"\\s*$"),/^$/,!1]];function Df(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let a=e.src.slice(u,o),s=0;for(;s<yn.length&&!yn[s][0].test(a);s++);if(s===yn.length)return!1;if(r)return yn[s][2];let l=t+1;if(!yn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(u=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(u,o),yn[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const d=e.push("html_block","",0);return d.map=[t,l],d.content=e.getLines(t,l,e.blkIndent,!0),!0}function If(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(u);if(a!==35||u>=o)return!1;let s=1;for(a=e.src.charCodeAt(++u);a===35&&u<o&&s<=6;)s++,a=e.src.charCodeAt(++u);if(s>6||u<o&&!me(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,u);const l=e.skipCharsBack(o,35,u);l>u&&me(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const d=e.push("heading_open","h"+String(s),1);d.markup="########".slice(0,s),d.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(u,o).trim(),f.map=[t,e.line],f.children=[];const c=e.push("heading_close","h"+String(s),-1);return c.markup="########".slice(0,s),!0}function Of(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let o=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let p=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(p<m&&(a=e.src.charCodeAt(p),(a===45||a===61)&&(p=e.skipChars(p,a),p=e.skipSpaces(p),p>=m))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let p=0,m=r.length;p<m;p++)if(r[p](e,s,n,!0)){h=!0;break}if(h)break}if(!o)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const d=e.push("heading_open","h"+String(o),1);d.markup=String.fromCharCode(a),d.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const c=e.push("heading_close","h"+String(o),-1);return c.markup=String.fromCharCode(a),e.parentType=u,!0}function Lf(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let d=!1;for(let f=0,c=r.length;f<c;f++)if(r[f](e,o,n,!0)){d=!0;break}if(d)break}const a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=u,!0}const qr=[["table",mf,["paragraph","reference"]],["code",pf],["fence",gf,["paragraph","reference","blockquote","list"]],["blockquote",bf,["paragraph","reference","blockquote","list"]],["hr",yf,["paragraph","reference","blockquote","list"]],["list",xf,["paragraph","reference","blockquote"]],["reference",vf],["html_block",Df,["paragraph","reference","blockquote"]],["heading",If,["paragraph","reference","blockquote"]],["lheading",Of],["paragraph",Lf]];function Zr(){this.ruler=new qe;for(let e=0;e<qr.length;e++)this.ruler.push(qr[e][0],qr[e][1],{alt:(qr[e][2]||[]).slice()})}Zr.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.length,o=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=n;break}const l=e.line;let d=!1;for(let f=0;f<u;f++)if(d=r[f](e,a,n,!1),d){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!d)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Zr.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)},Zr.prototype.State=Ct;function Zn(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Zn.prototype.pushPending=function(){const e=new dt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Zn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new dt(e,t,n);let u=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r},Zn.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const a=o-e,s=o<n?this.src.charCodeAt(o):32,l=qn(u)||Gn(String.fromCharCode(u)),d=qn(s)||Gn(String.fromCharCode(s)),f=Xn(u),c=Xn(s),h=!c&&(!d||f||l),p=!f&&(!l||c||d);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||d),length:a}},Zn.prototype.Token=dt;function Vf(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Pf(e,t){let n=e.pos;for(;n<e.posMax&&!Vf(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const Rf=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Mf(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const u=e.pending.match(Rf);if(!u)return!1;const o=u[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;let l=s.length;for(;l>0&&s.charCodeAt(l-1)===42;)l--;l!==s.length&&(s=s.slice(0,l));const d=e.md.normalizeLink(s);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const f=e.push("link_open","a",1);f.attrs=[["href",d]],f.markup="linkify",f.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(s);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=s.length-o.length,!0}function Bf(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<u&&me(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const du=[];for(let e=0;e<256;e++)du.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){du[e.charCodeAt(0)]=1});function zf(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!me(u));)n++;return e.pos=n,!0}let o=e.src[n];if(u>=55296&&u<=56319&&n+1<r){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const s=e.push("text_special","",0);u<256&&du[u]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function jf(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(u,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=u)return t||(e.pending+=a),e.pos+=s,!0;let l=n,d;for(;(d=e.src.indexOf("`",l))!==-1;){for(l=d+1;l<o&&e.src.charCodeAt(l)===96;)l++;const f=l-d;if(f===s){if(!t){const c=e.push("code_inline","code",0);c.markup=a,c.content=e.src.slice(n,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=d}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function Hf(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let o=u.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l<o;l+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function ga(e,t){let n;const r=[],u=t.length;for(let o=0;o<u;o++){const a=t[o];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&r.push(s.token-1)}for(;r.length;){const o=r.pop();let a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=n)}}function $f(e){const t=e.tokens_meta,n=e.tokens_meta.length;ga(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ga(e,t[r].delimiters)}const ba={tokenize:Hf,postProcess:$f};function Uf(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let o=0;o<u.length;o++){const a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function ya(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const o=t[u.end],a=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===o.token+1,s=String.fromCharCode(u.marker),l=e.tokens[u.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const d=e.tokens[o.token];d.type=a?"strong_close":"em_close",d.tag=a?"strong":"em",d.nesting=-1,d.markup=a?s+s:s,d.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[u.end+1].token].content="",r--)}}function Wf(e){const t=e.tokens_meta,n=e.tokens_meta.length;ya(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ya(e,t[r].delimiters)}const wa={tokenize:Uf,postProcess:Wf};function Xf(e,t){let n,r,u,o,a="",s="",l=e.pos,d=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,c=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<c&&e.src.charCodeAt(m)===40){for(d=!1,m++;m<c&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);if(m>=c)return!1;if(l=m,u=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),u.ok){for(a=e.md.normalizeLink(u.str),e.md.validateLink(a)?m=u.pos:a="",l=m;m<c&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);if(u=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<c&&l!==m&&u.ok)for(s=u.str,m=u.pos;m<c&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);}(m>=c||e.src.charCodeAt(m)!==41)&&(d=!0),m++}if(d){if(typeof e.env.references>"u")return!1;if(m<c&&e.src.charCodeAt(m)===91?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(l,m++):m=p+1):m=p+1,r||(r=e.src.slice(h,p)),o=e.env.references[Xr(r)],!o)return e.pos=f,!1;a=o.href,s=o.title}if(!t){e.pos=h,e.posMax=p;const x=e.push("link_open","a",1),v=[["href",a]];x.attrs=v,s&&v.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=c,!0}function Gf(e,t){let n,r,u,o,a,s,l,d,f="";const c=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(o=m+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);if(o>=h)return!1;for(d=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?o=s.pos:f=""),d=o;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&d!==o&&s.ok)for(l=s.str,o=s.pos;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);else l="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=c,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<h&&e.src.charCodeAt(o)===91?(d=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?u=e.src.slice(d,o++):o=m+1):o=m+1,u||(u=e.src.slice(p,m)),a=e.env.references[Xr(u)],!a)return e.pos=c,!1;f=a.href,l=a.title}if(!t){r=e.src.slice(p,m);const x=[];e.md.inline.parse(r,e.md,e.env,x);const v=e.push("image","img",0),y=[["src",f],["alt",""]];v.attrs=y,v.children=x,v.content=r,l&&y.push(["title",l])}return e.pos=o,e.posMax=h,!0}const qf=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Zf=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Yf(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=e.src.slice(r+1,n);if(Zf.test(o)){const a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=o.length+2,!0}if(qf.test(o)){const a=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=o.length+2,!0}return!1}function Kf(e){return/^<a[>\s]/i.test(e)}function Qf(e){return/^<\/a\s*>/i.test(e)}function Jf(e){const t=e|32;return t>=97&&t<=122}function e0(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!Jf(u))return!1;const o=e.src.slice(r).match(Ff);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],Kf(a.content)&&e.linkLevel++,Qf(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const t0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,n0=/^&([a-z][a-z0-9]{1,31});/i;function r0(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(t0);if(o){if(!t){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=au(a)?Wr(a):Wr(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(n0);if(o){const a=oa(o[0]);if(a!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function xa(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const o=[];for(let a=0;a<n;a++){const s=e[a];if(o.push(0),(e[r].marker!==s.marker||u!==s.token-1)&&(r=a),u=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let d=r-o[r]-1,f=d;for(;d>l;d-=o[d]+1){const c=e[d];if(c.marker===s.marker&&c.open&&c.end<0){let h=!1;if((c.close||s.open)&&(c.length+s.length)%3===0&&(c.length%3!==0||s.length%3!==0)&&(h=!0),!h){const p=d>0&&!e[d-1].open?o[d-1]+1:0;o[a]=a-d+p,o[d]=p,s.open=!1,c.end=a,c.close=!1,f=-1,u=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function o0(e){const t=e.tokens_meta,n=e.tokens_meta.length;xa(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&xa(t[r].delimiters)}function u0(e){let t,n,r=0;const u=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<o&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const fu=[["text",Pf],["linkify",Mf],["newline",Bf],["escape",zf],["backticks",jf],["strikethrough",ba.tokenize],["emphasis",wa.tokenize],["link",Xf],["image",Gf],["autolink",Yf],["html_inline",e0],["entity",r0]],hu=[["balance_pairs",o0],["strikethrough",ba.postProcess],["emphasis",wa.postProcess],["fragments_join",u0]];function Yn(){this.ruler=new qe;for(let e=0;e<fu.length;e++)this.ruler.push(fu[e][0],fu[e][1]);this.ruler2=new qe;for(let e=0;e<hu.length;e++)this.ruler2.push(hu[e][0],hu[e][1])}Yn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<u){for(let s=0;s<r;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos},Yn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let a=!1;if(e.level<u){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Yn.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](u)},Yn.prototype.State=Zn;function i0(e){const t={};e=e||{},t.src_Any=Ji.source,t.src_Cc=ea.source,t.src_Z=na.source,t.src_P=ru.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function mu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Yr(e){return Object.prototype.toString.call(e)}function a0(e){return Yr(e)==="[object String]"}function s0(e){return Yr(e)==="[object Object]"}function l0(e){return Yr(e)==="[object RegExp]"}function va(e){return Yr(e)==="[object Function]"}function c0(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ka={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function d0(e){return Object.keys(e||{}).reduce(function(t,n){return t||ka.hasOwnProperty(n)},!1)}const f0={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},h0="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",m0="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p0(e){e.__index__=-1,e.__text_cache__=""}function g0(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Aa(){return function(e,t){t.normalize(e)}}function Kr(e){const t=e.re=i0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(h0),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const u=[];e.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const d={validate:null,link:null};if(e.__compiled__[s]=d,s0(l)){l0(l.validate)?d.validate=g0(l.validate):va(l.validate)?d.validate=l.validate:o(s,l),va(l.normalize)?d.normalize=l.normalize:l.normalize?o(s,l):d.normalize=Aa();return}if(a0(l)){u.push(s);return}o(s,l)}),u.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:Aa()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(c0).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),p0(e)}function b0(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function pu(e,t){const n=new b0(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ke(e,t){if(!(this instanceof Ke))return new Ke(e,t);t||d0(e)&&(t=e,e={}),this.__opts__=mu({},ka,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=mu({},f0,e),this.__compiled__={},this.__tlds__=m0,this.__tlds_replaced__=!1,this.re={},Kr(this)}Ke.prototype.add=function(t,n){return this.__schemas__[t]=n,Kr(this),this},Ke.prototype.set=function(t){return this.__opts__=mu(this.__opts__,t),this},Ke.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,o,a,s,l,d,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=t.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(u=t.match(this.re.email_fuzzy))!==null&&(a=u.index+u[1].length,s=u.index+u[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0},Ke.prototype.pretest=function(t){return this.re.pretest.test(t)},Ke.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},Ke.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(pu(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(pu(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},Ke.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,pu(this,0)):null},Ke.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,o){return r!==o[u-1]}).reverse(),Kr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Kr(this),this)},Ke.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ke.prototype.onCompile=function(){};const wn=2147483647,_t=36,gu=1,Kn=26,y0=38,w0=700,Ca=72,_a=128,Ea="-",x0=/^xn--/,v0=/[^\0-\x7F]/,k0=/[\x2E\u3002\uFF0E\uFF61]/g,A0={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},bu=_t-gu,Et=Math.floor,yu=String.fromCharCode;function Ut(e){throw new RangeError(A0[e])}function C0(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Sa(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(k0,".");const u=e.split("."),o=C0(u,t).join(".");return r+o}function Na(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((u&1023)<<10)+(o&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const _0=e=>String.fromCodePoint(...e),E0=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:_t},Fa=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ta=function(e,t,n){let r=0;for(e=n?Et(e/w0):e>>1,e+=Et(e/t);e>bu*Kn>>1;r+=_t)e=Et(e/bu);return Et(r+(bu+1)*e/(e+y0))},Da=function(e){const t=[],n=e.length;let r=0,u=_a,o=Ca,a=e.lastIndexOf(Ea);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Ut("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=r;for(let f=1,c=_t;;c+=_t){s>=n&&Ut("invalid-input");const h=E0(e.charCodeAt(s++));h>=_t&&Ut("invalid-input"),h>Et((wn-r)/f)&&Ut("overflow"),r+=h*f;const p=c<=o?gu:c>=o+Kn?Kn:c-o;if(h<p)break;const m=_t-p;f>Et(wn/m)&&Ut("overflow"),f*=m}const d=t.length+1;o=Ta(r-l,d,l==0),Et(r/d)>wn-u&&Ut("overflow"),u+=Et(r/d),r%=d,t.splice(r++,0,u)}return String.fromCodePoint(...t)},Ia=function(e){const t=[];e=Na(e);const n=e.length;let r=_a,u=0,o=Ca;for(const l of e)l<128&&t.push(yu(l));const a=t.length;let s=a;for(a&&t.push(Ea);s<n;){let l=wn;for(const f of e)f>=r&&f<l&&(l=f);const d=s+1;l-r>Et((wn-u)/d)&&Ut("overflow"),u+=(l-r)*d,r=l;for(const f of e)if(f<r&&++u>wn&&Ut("overflow"),f===r){let c=u;for(let h=_t;;h+=_t){const p=h<=o?gu:h>=o+Kn?Kn:h-o;if(c<p)break;const m=c-p,x=_t-p;t.push(yu(Fa(p+m%x,0))),c=Et(m/x)}t.push(yu(Fa(c,0))),o=Ta(u,d,s===a),u=0,++s}++u,++r}return t.join("")},Oa={version:"2.3.1",ucs2:{decode:Na,encode:_0},decode:Da,encode:Ia,toASCII:function(e){return Sa(e,function(t){return v0.test(t)?"xn--"+Ia(t):t})},toUnicode:function(e){return Sa(e,function(t){return x0.test(t)?Da(t.slice(4).toLowerCase()):t})}},S0={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},N0=/^(vbscript|javascript|file|data):/,F0=/^data:image\/(gif|png|jpeg|webp);/;function T0(e){const t=e.trim().toLowerCase();return N0.test(t)?F0.test(t):!0}const La=["http:","https:","mailto:"];function D0(e){const t=nu(e,!0);if(t.hostname&&(!t.protocol||La.indexOf(t.protocol)>=0))try{t.hostname=Oa.toASCII(t.hostname)}catch{}return Wn(tu(t))}function I0(e){const t=nu(e,!0);if(t.hostname&&(!t.protocol||La.indexOf(t.protocol)>=0))try{t.hostname=Oa.toUnicode(t.hostname)}catch{}return pn(tu(t),pn.defaultChars+"%")}function Qe(e,t){if(!(this instanceof Qe))return new Qe(e,t);t||iu(e)||(t=e||{},e="default"),this.inline=new Yn,this.block=new Zr,this.core=new lu,this.renderer=new bn,this.linkify=new Ke,this.validateLink=T0,this.normalizeLink=D0,this.normalizeLinkText=I0,this.utils=Hd,this.helpers=Ur({},Xd),this.options={},this.configure(e),t&&this.set(t)}Qe.prototype.set=function(e){return Ur(this.options,e),this},Qe.prototype.configure=function(e){const t=this;if(iu(e)){const n=e;if(e=S0[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Qe.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Qe.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Qe.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Qe.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Qe.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Qe.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Qe.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Va,setPrototypeOf:Pa,isFrozen:O0,getPrototypeOf:L0,getOwnPropertyDescriptor:V0}=Object;let{freeze:je,seal:it,create:Qr}=Object,{apply:wu,construct:xu}=typeof Reflect<"u"&&Reflect;je||(je=function(t){return t}),it||(it=function(t){return t}),wu||(wu=function(t,n){for(var r=arguments.length,u=new Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return t.apply(n,u)}),xu||(xu=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return new t(...r)});const Jr=$e(Array.prototype.forEach),P0=$e(Array.prototype.lastIndexOf),Ra=$e(Array.prototype.pop),Qn=$e(Array.prototype.push),R0=$e(Array.prototype.splice),eo=$e(String.prototype.toLowerCase),vu=$e(String.prototype.toString),ku=$e(String.prototype.match),Jn=$e(String.prototype.replace),M0=$e(String.prototype.indexOf),B0=$e(String.prototype.trim),Je=$e(Object.prototype.hasOwnProperty),He=$e(RegExp.prototype.test),er=z0(TypeError);function $e(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return wu(e,t,r)}}function z0(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xu(e,n)}}function ae(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:eo;Pa&&Pa(e,null);let r=t.length;for(;r--;){let u=t[r];if(typeof u=="string"){const o=n(u);o!==u&&(O0(t)||(t[r]=o),u=o)}e[u]=!0}return e}function j0(e){for(let t=0;t<e.length;t++)Je(e,t)||(e[t]=null);return e}function St(e){const t=Qr(null);for(const[n,r]of Va(e))Je(e,n)&&(Array.isArray(r)?t[n]=j0(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=St(r):t[n]=r);return t}function tr(e,t){for(;e!==null;){const r=V0(e,t);if(r){if(r.get)return $e(r.get);if(typeof r.value=="function")return $e(r.value)}e=L0(e)}function n(){return null}return n}const Ma=je(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Au=je(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Cu=je(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H0=je(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_u=je(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$0=je(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ba=je(["#text"]),za=je(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Eu=je(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ja=je(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),to=je(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U0=it(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W0=it(/<%[\w\W]*|[\w\W]*%>/gm),X0=it(/\$\{[\w\W]*/gm),G0=it(/^data-[\-\w.\u00B7-\uFFFF]+$/),q0=it(/^aria-[\-\w]+$/),Ha=it(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z0=it(/^(?:\w+script|data):/i),Y0=it(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$a=it(/^html$/i),K0=it(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ua=Object.freeze({__proto__:null,ARIA_ATTR:q0,ATTR_WHITESPACE:Y0,CUSTOM_ELEMENT:K0,DATA_ATTR:G0,DOCTYPE_NAME:$a,ERB_EXPR:W0,IS_ALLOWED_URI:Ha,IS_SCRIPT_OR_DATA:Z0,MUSTACHE_EXPR:U0,TMPLIT_EXPR:X0});const nr={element:1,text:3,progressingInstruction:7,comment:8,document:9},Q0=function(){return typeof window>"u"?null:window},J0=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const u="data-tt-policy-suffix";n&&n.hasAttribute(u)&&(r=n.getAttribute(u));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Wa=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Xa(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q0();const t=te=>Xa(te);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==nr.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,u=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:h,trustedTypes:p}=e,m=l.prototype,x=tr(m,"cloneNode"),v=tr(m,"remove"),y=tr(m,"nextSibling"),b=tr(m,"childNodes"),g=tr(m,"parentNode");if(typeof a=="function"){const te=n.createElement("template");te.content&&te.content.ownerDocument&&(n=te.content.ownerDocument)}let w,A="";const{implementation:N,createNodeIterator:F,createDocumentFragment:_,getElementsByTagName:G}=n,{importNode:$}=r;let M=Wa();t.isSupported=typeof Va=="function"&&typeof g=="function"&&N&&N.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:I,TMPLIT_EXPR:X,DATA_ATTR:q,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:z,CUSTOM_ELEMENT:Z}=Ua;let{IS_ALLOWED_URI:ue}=Ua,C=null;const S=ae({},[...Ma,...Au,...Cu,..._u,...Ba]);let T=null;const O=ae({},[...za,...Eu,...ja,...to]);let P=Object.seal(Qr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,L=null;const R=Object.seal(Qr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let B=!0,Q=!0,re=!1,oe=!0,ce=!1,le=!0,he=!1,Be=!1,kt=!1,Ge=!1,Rt=!1,fn=!1,nc=!0,rc=!1;const T2="user-content-";let hi=!0,Vr=!1,Bn={},Ot=null;const mi=ae({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let oc=null;const uc=ae({},["audio","video","img","source","image","track"]);let pi=null;const ic=ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ho="http://www.w3.org/1998/Math/MathML",$o="http://www.w3.org/2000/svg",Mt="http://www.w3.org/1999/xhtml";let zn=Mt,gi=!1,bi=null;const D2=ae({},[Ho,$o,Mt],vu);let Uo=ae({},["mi","mo","mn","ms","mtext"]),Wo=ae({},["annotation-xml"]);const I2=ae({},["title","style","font","a","script"]);let Pr=null;const O2=["application/xhtml+xml","text/html"],L2="text/html";let Ne=null,jn=null;const V2=n.createElement("form"),ac=function(E){return E instanceof RegExp||E instanceof Function},yi=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jn&&jn===E)){if((!E||typeof E!="object")&&(E={}),E=St(E),Pr=O2.indexOf(E.PARSER_MEDIA_TYPE)===-1?L2:E.PARSER_MEDIA_TYPE,Ne=Pr==="application/xhtml+xml"?vu:eo,C=Je(E,"ALLOWED_TAGS")?ae({},E.ALLOWED_TAGS,Ne):S,T=Je(E,"ALLOWED_ATTR")?ae({},E.ALLOWED_ATTR,Ne):O,bi=Je(E,"ALLOWED_NAMESPACES")?ae({},E.ALLOWED_NAMESPACES,vu):D2,pi=Je(E,"ADD_URI_SAFE_ATTR")?ae(St(ic),E.ADD_URI_SAFE_ATTR,Ne):ic,oc=Je(E,"ADD_DATA_URI_TAGS")?ae(St(uc),E.ADD_DATA_URI_TAGS,Ne):uc,Ot=Je(E,"FORBID_CONTENTS")?ae({},E.FORBID_CONTENTS,Ne):mi,U=Je(E,"FORBID_TAGS")?ae({},E.FORBID_TAGS,Ne):St({}),L=Je(E,"FORBID_ATTR")?ae({},E.FORBID_ATTR,Ne):St({}),Bn=Je(E,"USE_PROFILES")?E.USE_PROFILES:!1,B=E.ALLOW_ARIA_ATTR!==!1,Q=E.ALLOW_DATA_ATTR!==!1,re=E.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=E.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=E.SAFE_FOR_TEMPLATES||!1,le=E.SAFE_FOR_XML!==!1,he=E.WHOLE_DOCUMENT||!1,Ge=E.RETURN_DOM||!1,Rt=E.RETURN_DOM_FRAGMENT||!1,fn=E.RETURN_TRUSTED_TYPE||!1,kt=E.FORCE_BODY||!1,nc=E.SANITIZE_DOM!==!1,rc=E.SANITIZE_NAMED_PROPS||!1,hi=E.KEEP_CONTENT!==!1,Vr=E.IN_PLACE||!1,ue=E.ALLOWED_URI_REGEXP||Ha,zn=E.NAMESPACE||Mt,Uo=E.MATHML_TEXT_INTEGRATION_POINTS||Uo,Wo=E.HTML_INTEGRATION_POINTS||Wo,P=E.CUSTOM_ELEMENT_HANDLING||{},E.CUSTOM_ELEMENT_HANDLING&&ac(E.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=E.CUSTOM_ELEMENT_HANDLING.tagNameCheck),E.CUSTOM_ELEMENT_HANDLING&&ac(E.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=E.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),E.CUSTOM_ELEMENT_HANDLING&&typeof E.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(P.allowCustomizedBuiltInElements=E.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ce&&(Q=!1),Rt&&(Ge=!0),Bn&&(C=ae({},Ba),T=Qr(null),Bn.html===!0&&(ae(C,Ma),ae(T,za)),Bn.svg===!0&&(ae(C,Au),ae(T,Eu),ae(T,to)),Bn.svgFilters===!0&&(ae(C,Cu),ae(T,Eu),ae(T,to)),Bn.mathMl===!0&&(ae(C,_u),ae(T,ja),ae(T,to))),Je(E,"ADD_TAGS")||(R.tagCheck=null),Je(E,"ADD_ATTR")||(R.attributeCheck=null),E.ADD_TAGS&&(typeof E.ADD_TAGS=="function"?R.tagCheck=E.ADD_TAGS:(C===S&&(C=St(C)),ae(C,E.ADD_TAGS,Ne))),E.ADD_ATTR&&(typeof E.ADD_ATTR=="function"?R.attributeCheck=E.ADD_ATTR:(T===O&&(T=St(T)),ae(T,E.ADD_ATTR,Ne))),E.ADD_URI_SAFE_ATTR&&ae(pi,E.ADD_URI_SAFE_ATTR,Ne),E.FORBID_CONTENTS&&(Ot===mi&&(Ot=St(Ot)),ae(Ot,E.FORBID_CONTENTS,Ne)),E.ADD_FORBID_CONTENTS&&(Ot===mi&&(Ot=St(Ot)),ae(Ot,E.ADD_FORBID_CONTENTS,Ne)),hi&&(C["#text"]=!0),he&&ae(C,["html","head","body"]),C.table&&(ae(C,["tbody"]),delete U.tbody),E.TRUSTED_TYPES_POLICY){if(typeof E.TRUSTED_TYPES_POLICY.createHTML!="function")throw er('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof E.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw er('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=E.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=J0(p,u)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));je&&je(E),jn=E}},sc=ae({},[...Au,...Cu,...H0]),lc=ae({},[..._u,...$0]),P2=function(E){let W=g(E);(!W||!W.tagName)&&(W={namespaceURI:zn,tagName:"template"});const ee=eo(E.tagName),xe=eo(W.tagName);return bi[E.namespaceURI]?E.namespaceURI===$o?W.namespaceURI===Mt?ee==="svg":W.namespaceURI===Ho?ee==="svg"&&(xe==="annotation-xml"||Uo[xe]):!!sc[ee]:E.namespaceURI===Ho?W.namespaceURI===Mt?ee==="math":W.namespaceURI===$o?ee==="math"&&Wo[xe]:!!lc[ee]:E.namespaceURI===Mt?W.namespaceURI===$o&&!Wo[xe]||W.namespaceURI===Ho&&!Uo[xe]?!1:!lc[ee]&&(I2[ee]||!sc[ee]):!!(Pr==="application/xhtml+xml"&&bi[E.namespaceURI]):!1},Lt=function(E){Qn(t.removed,{element:E});try{g(E).removeChild(E)}catch{v(E)}},hn=function(E,W){try{Qn(t.removed,{attribute:W.getAttributeNode(E),from:W})}catch{Qn(t.removed,{attribute:null,from:W})}if(W.removeAttribute(E),E==="is")if(Ge||Rt)try{Lt(W)}catch{}else try{W.setAttribute(E,"")}catch{}},cc=function(E){let W=null,ee=null;if(kt)E="<remove></remove>"+E;else{const _e=ku(E,/^[\r\n\t ]+/);ee=_e&&_e[0]}Pr==="application/xhtml+xml"&&zn===Mt&&(E='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+E+"</body></html>");const xe=w?w.createHTML(E):E;if(zn===Mt)try{W=new h().parseFromString(xe,Pr)}catch{}if(!W||!W.documentElement){W=N.createDocument(zn,"template",null);try{W.documentElement.innerHTML=gi?A:xe}catch{}}const ze=W.body||W.documentElement;return E&&ee&&ze.insertBefore(n.createTextNode(ee),ze.childNodes[0]||null),zn===Mt?G.call(W,he?"html":"body")[0]:he?W.documentElement:ze},dc=function(E){return F.call(E.ownerDocument||E,E,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},wi=function(E){return E instanceof c&&(typeof E.nodeName!="string"||typeof E.textContent!="string"||typeof E.removeChild!="function"||!(E.attributes instanceof f)||typeof E.removeAttribute!="function"||typeof E.setAttribute!="function"||typeof E.namespaceURI!="string"||typeof E.insertBefore!="function"||typeof E.hasChildNodes!="function")},fc=function(E){return typeof s=="function"&&E instanceof s};function Bt(te,E,W){Jr(te,ee=>{ee.call(t,E,W,jn)})}const hc=function(E){let W=null;if(Bt(M.beforeSanitizeElements,E,null),wi(E))return Lt(E),!0;const ee=Ne(E.nodeName);if(Bt(M.uponSanitizeElement,E,{tagName:ee,allowedTags:C}),le&&E.hasChildNodes()&&!fc(E.firstElementChild)&&He(/<[/\w!]/g,E.innerHTML)&&He(/<[/\w!]/g,E.textContent)||E.nodeType===nr.progressingInstruction||le&&E.nodeType===nr.comment&&He(/<[/\w]/g,E.data))return Lt(E),!0;if(!(R.tagCheck instanceof Function&&R.tagCheck(ee))&&(!C[ee]||U[ee])){if(!U[ee]&&pc(ee)&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,ee)||P.tagNameCheck instanceof Function&&P.tagNameCheck(ee)))return!1;if(hi&&!Ot[ee]){const xe=g(E)||E.parentNode,ze=b(E)||E.childNodes;if(ze&&xe){const _e=ze.length;for(let Ye=_e-1;Ye>=0;--Ye){const zt=x(ze[Ye],!0);zt.__removalCount=(E.__removalCount||0)+1,xe.insertBefore(zt,y(E))}}}return Lt(E),!0}return E instanceof l&&!P2(E)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&He(/<\/no(script|embed|frames)/i,E.innerHTML)?(Lt(E),!0):(ce&&E.nodeType===nr.text&&(W=E.textContent,Jr([H,I,X],xe=>{W=Jn(W,xe," ")}),E.textContent!==W&&(Qn(t.removed,{element:E.cloneNode()}),E.textContent=W)),Bt(M.afterSanitizeElements,E,null),!1)},mc=function(E,W,ee){if(L[W]||nc&&(W==="id"||W==="name")&&(ee in n||ee in V2))return!1;if(!(Q&&!L[W]&&He(q,W))){if(!(B&&He(D,W))){if(!(R.attributeCheck instanceof Function&&R.attributeCheck(W,E))){if(!T[W]||L[W]){if(!(pc(E)&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,E)||P.tagNameCheck instanceof Function&&P.tagNameCheck(E))&&(P.attributeNameCheck instanceof RegExp&&He(P.attributeNameCheck,W)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(W,E))||W==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,ee)||P.tagNameCheck instanceof Function&&P.tagNameCheck(ee))))return!1}else if(!pi[W]){if(!He(ue,Jn(ee,z,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&E!=="script"&&M0(ee,"data:")===0&&oc[E])){if(!(re&&!He(j,Jn(ee,z,"")))){if(ee)return!1}}}}}}}return!0},pc=function(E){return E!=="annotation-xml"&&ku(E,Z)},gc=function(E){Bt(M.beforeSanitizeAttributes,E,null);const{attributes:W}=E;if(!W||wi(E))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0};let xe=W.length;for(;xe--;){const ze=W[xe],{name:_e,namespaceURI:Ye,value:zt}=ze,Hn=Ne(_e),xi=zt;let Ve=_e==="value"?xi:B0(xi);if(ee.attrName=Hn,ee.attrValue=Ve,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Bt(M.uponSanitizeAttribute,E,ee),Ve=ee.attrValue,rc&&(Hn==="id"||Hn==="name")&&(hn(_e,E),Ve=T2+Ve),le&&He(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ve)){hn(_e,E);continue}if(Hn==="attributename"&&ku(Ve,"href")){hn(_e,E);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){hn(_e,E);continue}if(!oe&&He(/\/>/i,Ve)){hn(_e,E);continue}ce&&Jr([H,I,X],yc=>{Ve=Jn(Ve,yc," ")});const bc=Ne(E.nodeName);if(!mc(bc,Hn,Ve)){hn(_e,E);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Ye)switch(p.getAttributeType(bc,Hn)){case"TrustedHTML":{Ve=w.createHTML(Ve);break}case"TrustedScriptURL":{Ve=w.createScriptURL(Ve);break}}if(Ve!==xi)try{Ye?E.setAttributeNS(Ye,_e,Ve):E.setAttribute(_e,Ve),wi(E)?Lt(E):Ra(t.removed)}catch{hn(_e,E)}}Bt(M.afterSanitizeAttributes,E,null)},R2=function te(E){let W=null;const ee=dc(E);for(Bt(M.beforeSanitizeShadowDOM,E,null);W=ee.nextNode();)Bt(M.uponSanitizeShadowNode,W,null),hc(W),gc(W),W.content instanceof o&&te(W.content);Bt(M.afterSanitizeShadowDOM,E,null)};return t.sanitize=function(te){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,ee=null,xe=null,ze=null;if(gi=!te,gi&&(te="<!-->"),typeof te!="string"&&!fc(te))if(typeof te.toString=="function"){if(te=te.toString(),typeof te!="string")throw er("dirty is not a string, aborting")}else throw er("toString is not a function");if(!t.isSupported)return te;if(Be||yi(E),t.removed=[],typeof te=="string"&&(Vr=!1),Vr){if(te.nodeName){const zt=Ne(te.nodeName);if(!C[zt]||U[zt])throw er("root node is forbidden and cannot be sanitized in-place")}}else if(te instanceof s)W=cc("<!---->"),ee=W.ownerDocument.importNode(te,!0),ee.nodeType===nr.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?W=ee:W.appendChild(ee);else{if(!Ge&&!ce&&!he&&te.indexOf("<")===-1)return w&&fn?w.createHTML(te):te;if(W=cc(te),!W)return Ge?null:fn?A:""}W&&kt&&Lt(W.firstChild);const _e=dc(Vr?te:W);for(;xe=_e.nextNode();)hc(xe),gc(xe),xe.content instanceof o&&R2(xe.content);if(Vr)return te;if(Ge){if(Rt)for(ze=_.call(W.ownerDocument);W.firstChild;)ze.appendChild(W.firstChild);else ze=W;return(T.shadowroot||T.shadowrootmode)&&(ze=$.call(r,ze,!0)),ze}let Ye=he?W.outerHTML:W.innerHTML;return he&&C["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&He($a,W.ownerDocument.doctype.name)&&(Ye="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
|
|
17
|
-
|
|
276
|
+
`},Vr.text=function(e,t){return Tn(e[t].content)},Vr.html_block=function(e,t){return e[t].content},Vr.html_inline=function(e,t){return e[t].content};function Aa(){this.rules=Go({},Vr)}Aa.prototype.renderAttrs=function(t){let r,n,i;if(!t.attrs)return"";for(i="",r=0,n=t.attrs.length;r<n;r++)i+=" "+Tn(t.attrs[r][0])+'="'+Tn(t.attrs[r][1])+'"';return i},Aa.prototype.renderToken=function(t,r,n){const i=t[r];let a="";if(i.hidden)return"";i.block&&i.nesting!==-1&&r&&t[r-1].hidden&&(a+=`
|
|
277
|
+
`),a+=(i.nesting===-1?"</":"<")+i.tag,a+=this.renderAttrs(i),i.nesting===0&&n.xhtmlOut&&(a+=" /");let l=!1;if(i.block&&(l=!0,i.nesting===1&&r+1<t.length)){const d=t[r+1];(d.type==="inline"||d.hidden||d.nesting===-1&&d.tag===i.tag)&&(l=!1)}return a+=l?`>
|
|
278
|
+
`:">",a},Aa.prototype.renderInline=function(e,t,r){let n="";const i=this.rules;for(let a=0,l=e.length;a<l;a++){const d=e[a].type;typeof i[d]<"u"?n+=i[d](e,a,t,r,this):n+=this.renderToken(e,a,t)}return n},Aa.prototype.renderInlineAsText=function(e,t,r){let n="";for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case"text":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,t,r);break;case"html_inline":case"html_block":n+=e[i].content;break;case"softbreak":case"hardbreak":n+=`
|
|
279
|
+
`;break}return n},Aa.prototype.render=function(e,t,r){let n="";const i=this.rules;for(let a=0,l=e.length;a<l;a++){const d=e[a].type;d==="inline"?n+=this.renderInline(e[a].children,t,r):typeof i[d]<"u"?n+=i[d](e,a,t,r,this):n+=this.renderToken(e,a,t,r)}return n};function V0(){this.__rules__=[],this.__cache__=null}V0.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},V0.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn))})})},V0.prototype.at=function(e,t,r){const n=this.__find__(e),i=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null},V0.prototype.before=function(e,t,r,n){const i=this.__find__(e),a=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},V0.prototype.after=function(e,t,r,n){const i=this.__find__(e),a=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},V0.prototype.push=function(e,t,r){const n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null},V0.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach(function(n){const i=this.__find__(n);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!0,r.push(n)},this),this.__cache__=null,r},V0.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)},V0.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach(function(n){const i=this.__find__(n);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!1,r.push(n)},this),this.__cache__=null,r},V0.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function vr(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}vr.prototype.attrIndex=function(t){if(!this.attrs)return-1;const r=this.attrs;for(let n=0,i=r.length;n<i;n++)if(r[n][0]===t)return n;return-1},vr.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},vr.prototype.attrSet=function(t,r){const n=this.attrIndex(t),i=[t,r];n<0?this.attrPush(i):this.attrs[n]=i},vr.prototype.attrGet=function(t){const r=this.attrIndex(t);let n=null;return r>=0&&(n=this.attrs[r][1]),n},vr.prototype.attrJoin=function(t,r){const n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};function M4(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}M4.prototype.Token=vr;const b7=/\r\n?|\n/g,y7=/\0/g;function v7(e){let t;t=e.src.replace(b7,`
|
|
280
|
+
`),t=t.replace(y7,"�"),e.src=t}function x7(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function w7(e){const t=e.tokens;for(let r=0,n=t.length;r<n;r++){const i=t[r];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function k7(e){return/^<a[>\s]/i.test(e)}function A7(e){return/^<\/a\s*>/i.test(e)}function S7(e){const t=e.tokens;if(e.md.options.linkify)for(let r=0,n=t.length;r<n;r++){if(t[r].type!=="inline"||!e.md.linkify.pretest(t[r].content))continue;let i=t[r].children,a=0;for(let l=i.length-1;l>=0;l--){const d=i[l];if(d.type==="link_close"){for(l--;i[l].level!==d.level&&i[l].type!=="link_open";)l--;continue}if(d.type==="html_inline"&&(k7(d.content)&&a>0&&a--,A7(d.content)&&a++),!(a>0)&&d.type==="text"&&e.md.linkify.test(d.content)){const f=d.content;let p=e.md.linkify.match(f);const g=[];let m=d.level,x=0;p.length>0&&p[0].index===0&&l>0&&i[l-1].type==="text_special"&&(p=p.slice(1));for(let S=0;S<p.length;S++){const C=p[S].url,_=e.md.normalizeLink(C);if(!e.md.validateLink(_))continue;let F=p[S].text;p[S].schema?p[S].schema==="mailto:"&&!/^mailto:/i.test(F)?F=e.md.normalizeLinkText("mailto:"+F).replace(/^mailto:/,""):F=e.md.normalizeLinkText(F):F=e.md.normalizeLinkText("http://"+F).replace(/^http:\/\//,"");const z=p[S].index;if(z>x){const R=new e.Token("text","",0);R.content=f.slice(x,z),R.level=m,g.push(R)}const E=new e.Token("link_open","a",1);E.attrs=[["href",_]],E.level=m++,E.markup="linkify",E.info="auto",g.push(E);const D=new e.Token("text","",0);D.content=F,D.level=m,g.push(D);const B=new e.Token("link_close","a",-1);B.level=--m,B.markup="linkify",B.info="auto",g.push(B),x=p[S].lastIndex}if(x<f.length){const S=new e.Token("text","",0);S.content=f.slice(x),S.level=m,g.push(S)}t[r].children=i=E4(i,l,g)}}}}const N4=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,C7=/\((c|tm|r)\)/i,T7=/\((c|tm|r)\)/ig,E7={c:"©",r:"®",tm:"™"};function D7(e,t){return E7[t.toLowerCase()]}function M7(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&(n.content=n.content.replace(T7,D7)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function N7(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&N4.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function z7(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(C7.test(e.tokens[t].content)&&M7(e.tokens[t].children),N4.test(e.tokens[t].content)&&N7(e.tokens[t].children))}const _7=/['"]/,z4=/['"]/g,_4="’";function Zo(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function F7(e,t){let r;const n=[];for(let i=0;i<e.length;i++){const a=e[i],l=e[i].level;for(r=n.length-1;r>=0&&!(n[r].level<=l);r--);if(n.length=r+1,a.type!=="text")continue;let d=a.content,f=0,p=d.length;e:for(;f<p;){z4.lastIndex=f;const g=z4.exec(d);if(!g)break;let m=!0,x=!0;f=g.index+1;const S=g[0]==="'";let C=32;if(g.index-1>=0)C=d.charCodeAt(g.index-1);else for(r=i-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){C=e[r].content.charCodeAt(e[r].content.length-1);break}let _=32;if(f<p)_=d.charCodeAt(f);else for(r=i+1;r<e.length&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r++)if(e[r].content){_=e[r].content.charCodeAt(0);break}const F=pi(C)||mi(String.fromCharCode(C)),z=pi(_)||mi(String.fromCharCode(_)),E=hi(C),D=hi(_);if(D?m=!1:z&&(E||F||(m=!1)),E?x=!1:F&&(D||z||(x=!1)),_===34&&g[0]==='"'&&C>=48&&C<=57&&(x=m=!1),m&&x&&(m=F,x=z),!m&&!x){S&&(a.content=Zo(a.content,g.index,_4));continue}if(x)for(r=n.length-1;r>=0;r--){let B=n[r];if(n[r].level<l)break;if(B.single===S&&n[r].level===l){B=n[r];let R,W;S?(R=t.md.options.quotes[2],W=t.md.options.quotes[3]):(R=t.md.options.quotes[0],W=t.md.options.quotes[1]),a.content=Zo(a.content,g.index,W),e[B.token].content=Zo(e[B.token].content,B.pos,R),f+=W.length-1,B.token===i&&(f+=R.length-1),d=a.content,p=d.length,n.length=r;continue e}}m?n.push({token:i,pos:g.index,single:S,level:l}):x&&S&&(a.content=Zo(a.content,g.index,_4))}}}function I7(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!_7.test(e.tokens[t].content)||F7(e.tokens[t].children,e)}function B7(e){let t,r;const n=e.tokens,i=n.length;for(let a=0;a<i;a++){if(n[a].type!=="inline")continue;const l=n[a].children,d=l.length;for(t=0;t<d;t++)l[t].type==="text_special"&&(l[t].type="text");for(t=r=0;t<d;t++)l[t].type==="text"&&t+1<d&&l[t+1].type==="text"?l[t+1].content=l[t].content+l[t+1].content:(t!==r&&(l[r]=l[t]),r++);t!==r&&(l.length=r)}}const Tu=[["normalize",v7],["block",x7],["inline",w7],["linkify",S7],["replacements",z7],["smartquotes",I7],["text_join",B7]];function Eu(){this.ruler=new V0;for(let e=0;e<Tu.length;e++)this.ruler.push(Tu[e][0],Tu[e][1])}Eu.prototype.process=function(e){const t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)},Eu.prototype.State=M4;function Hr(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let a=0,l=0,d=0,f=0,p=i.length,g=!1;l<p;l++){const m=i.charCodeAt(l);if(!g)if(At(m)){d++,m===9?f+=4-f%4:f++;continue}else g=!0;(m===10||l===p-1)&&(m!==10&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(d),this.sCount.push(f),this.bsCount.push(0),g=!1,d=0,f=0,a=l+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Hr.prototype.push=function(e,t,r){const n=new vr(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},Hr.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Hr.prototype.skipEmptyLines=function(t){for(let r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},Hr.prototype.skipSpaces=function(t){for(let r=this.src.length;t<r;t++){const n=this.src.charCodeAt(t);if(!At(n))break}return t},Hr.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!At(this.src.charCodeAt(--t)))return t+1;return t},Hr.prototype.skipChars=function(t,r){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t},Hr.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t},Hr.prototype.getLines=function(t,r,n,i){if(t>=r)return"";const a=new Array(r-t);for(let l=0,d=t;d<r;d++,l++){let f=0;const p=this.bMarks[d];let g=p,m;for(d+1<r||i?m=this.eMarks[d]+1:m=this.eMarks[d];g<m&&f<n;){const x=this.src.charCodeAt(g);if(At(x))x===9?f+=4-(f+this.bsCount[d])%4:f++;else if(g-p<this.tShift[d])f++;else break;g++}f>n?a[l]=new Array(f-n+1).join(" ")+this.src.slice(g,m):a[l]=this.src.slice(g,m)}return a.join("")},Hr.prototype.Token=vr;const O7=65536;function Du(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function F4(e){const t=[],r=e.length;let n=0,i=e.charCodeAt(n),a=!1,l=0,d="";for(;n<r;)i===124&&(a?(d+=e.substring(l,n-1),l=n):(t.push(d+e.substring(l,n)),d="",l=n+1)),a=i===92,n++,i=e.charCodeAt(n);return t.push(d+e.substring(l)),t}function L7(e,t,r,n){if(t+2>r)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;const l=e.src.charCodeAt(a++);if(l!==124&&l!==45&&l!==58||a>=e.eMarks[i])return!1;const d=e.src.charCodeAt(a++);if(d!==124&&d!==45&&d!==58&&!At(d)||l===45&&At(d))return!1;for(;a<e.eMarks[i];){const B=e.src.charCodeAt(a);if(B!==124&&B!==45&&B!==58&&!At(B))return!1;a++}let f=Du(e,t+1),p=f.split("|");const g=[];for(let B=0;B<p.length;B++){const R=p[B].trim();if(!R){if(B===0||B===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(R))return!1;R.charCodeAt(R.length-1)===58?g.push(R.charCodeAt(0)===58?"center":"right"):R.charCodeAt(0)===58?g.push("left"):g.push("")}if(f=Du(e,t).trim(),f.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;p=F4(f),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop();const m=p.length;if(m===0||m!==g.length)return!1;if(n)return!0;const x=e.parentType;e.parentType="table";const S=e.md.block.ruler.getRules("blockquote"),C=e.push("table_open","table",1),_=[t,0];C.map=_;const F=e.push("thead_open","thead",1);F.map=[t,t+1];const z=e.push("tr_open","tr",1);z.map=[t,t+1];for(let B=0;B<p.length;B++){const R=e.push("th_open","th",1);g[B]&&(R.attrs=[["style","text-align:"+g[B]]]);const W=e.push("inline","",0);W.content=p[B].trim(),W.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let E,D=0;for(i=t+2;i<r&&!(e.sCount[i]<e.blkIndent);i++){let B=!1;for(let W=0,Y=S.length;W<Y;W++)if(S[W](e,i,r,!0)){B=!0;break}if(B||(f=Du(e,i).trim(),!f)||e.sCount[i]-e.blkIndent>=4||(p=F4(f),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),D+=m-p.length,D>O7))break;if(i===t+2){const W=e.push("tbody_open","tbody",1);W.map=E=[t+2,0]}const R=e.push("tr_open","tr",1);R.map=[i,i+1];for(let W=0;W<m;W++){const Y=e.push("td_open","td",1);g[W]&&(Y.attrs=[["style","text-align:"+g[W]]]);const q=e.push("inline","",0);q.content=p[W]?p[W].trim():"",q.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return E&&(e.push("tbody_close","tbody",-1),E[1]=i),e.push("table_close","table",-1),_[1]=i,e.parentType=x,e.line=i,!0}function R7(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,i=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,i=n;continue}break}e.line=i;const a=e.push("code_block","code",0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
|
|
281
|
+
`,a.map=[t,e.line],!0}function P7(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;const l=e.src.charCodeAt(i);if(l!==126&&l!==96)return!1;let d=i;i=e.skipChars(i,l);let f=i-d;if(f<3)return!1;const p=e.src.slice(d,i),g=e.src.slice(i,a);if(l===96&&g.indexOf(String.fromCharCode(l))>=0)return!1;if(n)return!0;let m=t,x=!1;for(;m++,!(m>=r||(i=d=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i<a&&e.sCount[m]<e.blkIndent));)if(e.src.charCodeAt(i)===l&&!(e.sCount[m]-e.blkIndent>=4)&&(i=e.skipChars(i,l),!(i-d<f)&&(i=e.skipSpaces(i),!(i<a)))){x=!0;break}f=e.sCount[t],e.line=m+(x?1:0);const S=e.push("fence","code",0);return S.info=g,S.content=e.getLines(t+1,m,f,!0),S.markup=p,S.map=[t,e.line],!0}function V7(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const l=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(n)return!0;const d=[],f=[],p=[],g=[],m=e.md.block.ruler.getRules("blockquote"),x=e.parentType;e.parentType="blockquote";let S=!1,C;for(C=t;C<r;C++){const D=e.sCount[C]<e.blkIndent;if(i=e.bMarks[C]+e.tShift[C],a=e.eMarks[C],i>=a)break;if(e.src.charCodeAt(i++)===62&&!D){let R=e.sCount[C]+1,W,Y;e.src.charCodeAt(i)===32?(i++,R++,Y=!1,W=!0):e.src.charCodeAt(i)===9?(W=!0,(e.bsCount[C]+R)%4===3?(i++,R++,Y=!1):Y=!0):W=!1;let q=R;for(d.push(e.bMarks[C]),e.bMarks[C]=i;i<a;){const pe=e.src.charCodeAt(i);if(At(pe))pe===9?q+=4-(q+e.bsCount[C]+(Y?1:0))%4:q++;else break;i++}S=i>=a,f.push(e.bsCount[C]),e.bsCount[C]=e.sCount[C]+1+(W?1:0),p.push(e.sCount[C]),e.sCount[C]=q-R,g.push(e.tShift[C]),e.tShift[C]=i-e.bMarks[C];continue}if(S)break;let B=!1;for(let R=0,W=m.length;R<W;R++)if(m[R](e,C,r,!0)){B=!0;break}if(B){e.lineMax=C,e.blkIndent!==0&&(d.push(e.bMarks[C]),f.push(e.bsCount[C]),g.push(e.tShift[C]),p.push(e.sCount[C]),e.sCount[C]-=e.blkIndent);break}d.push(e.bMarks[C]),f.push(e.bsCount[C]),g.push(e.tShift[C]),p.push(e.sCount[C]),e.sCount[C]=-1}const _=e.blkIndent;e.blkIndent=0;const F=e.push("blockquote_open","blockquote",1);F.markup=">";const z=[t,0];F.map=z,e.md.block.tokenize(e,t,C);const E=e.push("blockquote_close","blockquote",-1);E.markup=">",e.lineMax=l,e.parentType=x,z[1]=e.line;for(let D=0;D<g.length;D++)e.bMarks[D+t]=d[D],e.tShift[D+t]=g[D],e.sCount[D+t]=p[D],e.bsCount[D+t]=f[D];return e.blkIndent=_,!0}function H7(e,t,r,n){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const l=e.src.charCodeAt(a++);if(l!==42&&l!==45&&l!==95)return!1;let d=1;for(;a<i;){const p=e.src.charCodeAt(a++);if(p!==l&&!At(p))return!1;p===l&&d++}if(d<3)return!1;if(n)return!0;e.line=t+1;const f=e.push("hr","hr",0);return f.map=[t,e.line],f.markup=Array(d+1).join(String.fromCharCode(l)),!0}function I4(e,t){const r=e.eMarks[t];let n=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(n++);if(i!==42&&i!==45&&i!==43)return-1;if(n<r){const a=e.src.charCodeAt(n);if(!At(a))return-1}return n}function B4(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];let i=r;if(i+1>=n)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=n)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-r>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<n&&(a=e.src.charCodeAt(i),!At(a))?-1:i}function q7(e,t){const r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function j7(e,t,r,n){let i,a,l,d,f=t,p=!0;if(e.sCount[f]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[f]-e.listIndent>=4&&e.sCount[f]<e.blkIndent)return!1;let g=!1;n&&e.parentType==="paragraph"&&e.sCount[f]>=e.blkIndent&&(g=!0);let m,x,S;if((S=B4(e,f))>=0){if(m=!0,l=e.bMarks[f]+e.tShift[f],x=Number(e.src.slice(l,S-1)),g&&x!==1)return!1}else if((S=I4(e,f))>=0)m=!1;else return!1;if(g&&e.skipSpaces(S)>=e.eMarks[f])return!1;if(n)return!0;const C=e.src.charCodeAt(S-1),_=e.tokens.length;m?(d=e.push("ordered_list_open","ol",1),x!==1&&(d.attrs=[["start",x]])):d=e.push("bullet_list_open","ul",1);const F=[f,0];d.map=F,d.markup=String.fromCharCode(C);let z=!1;const E=e.md.block.ruler.getRules("list"),D=e.parentType;for(e.parentType="list";f<r;){a=S,i=e.eMarks[f];const B=e.sCount[f]+S-(e.bMarks[f]+e.tShift[f]);let R=B;for(;a<i;){const Ce=e.src.charCodeAt(a);if(Ce===9)R+=4-(R+e.bsCount[f])%4;else if(Ce===32)R++;else break;a++}const W=a;let Y;W>=i?Y=1:Y=R-B,Y>4&&(Y=1);const q=B+Y;d=e.push("list_item_open","li",1),d.markup=String.fromCharCode(C);const pe=[f,0];d.map=pe,m&&(d.info=e.src.slice(l,S-1));const he=e.tight,ce=e.tShift[f],be=e.sCount[f],ae=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=q,e.tight=!0,e.tShift[f]=W-e.bMarks[f],e.sCount[f]=R,W>=i&&e.isEmpty(f+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,f,r,!0),(!e.tight||z)&&(p=!1),z=e.line-f>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ae,e.tShift[f]=ce,e.sCount[f]=be,e.tight=he,d=e.push("list_item_close","li",-1),d.markup=String.fromCharCode(C),f=e.line,pe[1]=f,f>=r||e.sCount[f]<e.blkIndent||e.sCount[f]-e.blkIndent>=4)break;let xe=!1;for(let Ce=0,te=E.length;Ce<te;Ce++)if(E[Ce](e,f,r,!0)){xe=!0;break}if(xe)break;if(m){if(S=B4(e,f),S<0)break;l=e.bMarks[f]+e.tShift[f]}else if(S=I4(e,f),S<0)break;if(C!==e.src.charCodeAt(S-1))break}return m?d=e.push("ordered_list_close","ol",-1):d=e.push("bullet_list_close","ul",-1),d.markup=String.fromCharCode(C),F[1]=f,e.line=f,e.parentType=D,p&&q7(e,_),!0}function $7(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],l=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function d(E){const D=e.lineMax;if(E>=D||e.isEmpty(E))return null;let B=!1;if(e.sCount[E]-e.blkIndent>3&&(B=!0),e.sCount[E]<0&&(B=!0),!B){const Y=e.md.block.ruler.getRules("reference"),q=e.parentType;e.parentType="reference";let pe=!1;for(let he=0,ce=Y.length;he<ce;he++)if(Y[he](e,E,D,!0)){pe=!0;break}if(e.parentType=q,pe)return null}const R=e.bMarks[E]+e.tShift[E],W=e.eMarks[E];return e.src.slice(R,W+1)}let f=e.src.slice(i,a+1);a=f.length;let p=-1;for(i=1;i<a;i++){const E=f.charCodeAt(i);if(E===91)return!1;if(E===93){p=i;break}else if(E===10){const D=d(l);D!==null&&(f+=D,a=f.length,l++)}else if(E===92&&(i++,i<a&&f.charCodeAt(i)===10)){const D=d(l);D!==null&&(f+=D,a=f.length,l++)}}if(p<0||f.charCodeAt(p+1)!==58)return!1;for(i=p+2;i<a;i++){const E=f.charCodeAt(i);if(E===10){const D=d(l);D!==null&&(f+=D,a=f.length,l++)}else if(!At(E))break}const g=e.md.helpers.parseLinkDestination(f,i,a);if(!g.ok)return!1;const m=e.md.normalizeLink(g.str);if(!e.md.validateLink(m))return!1;i=g.pos;const x=i,S=l,C=i;for(;i<a;i++){const E=f.charCodeAt(i);if(E===10){const D=d(l);D!==null&&(f+=D,a=f.length,l++)}else if(!At(E))break}let _=e.md.helpers.parseLinkTitle(f,i,a);for(;_.can_continue;){const E=d(l);if(E===null)break;f+=E,i=a,a=f.length,l++,_=e.md.helpers.parseLinkTitle(f,i,a,_)}let F;for(i<a&&C!==i&&_.ok?(F=_.str,i=_.pos):(F="",i=x,l=S);i<a;){const E=f.charCodeAt(i);if(!At(E))break;i++}if(i<a&&f.charCodeAt(i)!==10&&F)for(F="",i=x,l=S;i<a;){const E=f.charCodeAt(i);if(!At(E))break;i++}if(i<a&&f.charCodeAt(i)!==10)return!1;const z=Yo(f.slice(1,p));return z?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[z]>"u"&&(e.env.references[z]={title:F,href:m}),e.line=l),!0):!1}const U7=["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"],W7="[a-zA-Z_:][a-zA-Z0-9:._-]*",G7="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",O4="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+W7+"(?:\\s*=\\s*"+G7+")?)")+"*\\s*\\/?>",L4="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",X7="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Y7="<[?][\\s\\S]*?[?]>",Z7="<![A-Za-z][^>]*>",K7="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Q7=new RegExp("^(?:"+O4+"|"+L4+"|"+X7+"|"+Y7+"|"+Z7+"|"+K7+")"),J7=new RegExp("^(?:"+O4+"|"+L4+")"),Sa=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+U7.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(J7.source+"\\s*$"),/^$/,!1]];function e8(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let l=e.src.slice(i,a),d=0;for(;d<Sa.length&&!Sa[d][0].test(l);d++);if(d===Sa.length)return!1;if(n)return Sa[d][2];let f=t+1;if(!Sa[d][1].test(l)){for(;f<r&&!(e.sCount[f]<e.blkIndent);f++)if(i=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],l=e.src.slice(i,a),Sa[d][1].test(l)){l.length!==0&&f++;break}}e.line=f;const p=e.push("html_block","",0);return p.map=[t,f],p.content=e.getLines(t,f,e.blkIndent,!0),!0}function t8(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let l=e.src.charCodeAt(i);if(l!==35||i>=a)return!1;let d=1;for(l=e.src.charCodeAt(++i);l===35&&i<a&&d<=6;)d++,l=e.src.charCodeAt(++i);if(d>6||i<a&&!At(l))return!1;if(n)return!0;a=e.skipSpacesBack(a,i);const f=e.skipCharsBack(a,35,i);f>i&&At(e.src.charCodeAt(f-1))&&(a=f),e.line=t+1;const p=e.push("heading_open","h"+String(d),1);p.markup="########".slice(0,d),p.map=[t,e.line];const g=e.push("inline","",0);g.content=e.src.slice(i,a).trim(),g.map=[t,e.line],g.children=[];const m=e.push("heading_close","h"+String(d),-1);return m.markup="########".slice(0,d),!0}function r8(e,t,r){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let a=0,l,d=t+1;for(;d<r&&!e.isEmpty(d);d++){if(e.sCount[d]-e.blkIndent>3)continue;if(e.sCount[d]>=e.blkIndent){let S=e.bMarks[d]+e.tShift[d];const C=e.eMarks[d];if(S<C&&(l=e.src.charCodeAt(S),(l===45||l===61)&&(S=e.skipChars(S,l),S=e.skipSpaces(S),S>=C))){a=l===61?1:2;break}}if(e.sCount[d]<0)continue;let x=!1;for(let S=0,C=n.length;S<C;S++)if(n[S](e,d,r,!0)){x=!0;break}if(x)break}if(!a)return!1;const f=e.getLines(t,d,e.blkIndent,!1).trim();e.line=d+1;const p=e.push("heading_open","h"+String(a),1);p.markup=String.fromCharCode(l),p.map=[t,e.line];const g=e.push("inline","",0);g.content=f,g.map=[t,e.line-1],g.children=[];const m=e.push("heading_close","h"+String(a),-1);return m.markup=String.fromCharCode(l),e.parentType=i,!0}function n8(e,t,r){const n=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let a=t+1;for(e.parentType="paragraph";a<r&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let p=!1;for(let g=0,m=n.length;g<m;g++)if(n[g](e,a,r,!0)){p=!0;break}if(p)break}const l=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;const d=e.push("paragraph_open","p",1);d.map=[t,e.line];const f=e.push("inline","",0);return f.content=l,f.map=[t,e.line],f.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}const Ko=[["table",L7,["paragraph","reference"]],["code",R7],["fence",P7,["paragraph","reference","blockquote","list"]],["blockquote",V7,["paragraph","reference","blockquote","list"]],["hr",H7,["paragraph","reference","blockquote","list"]],["list",j7,["paragraph","reference","blockquote"]],["reference",$7],["html_block",e8,["paragraph","reference","blockquote"]],["heading",t8,["paragraph","reference","blockquote"]],["lheading",r8],["paragraph",n8]];function Qo(){this.ruler=new V0;for(let e=0;e<Ko.length;e++)this.ruler.push(Ko[e][0],Ko[e][1],{alt:(Ko[e][2]||[]).slice()})}Qo.prototype.tokenize=function(e,t,r){const n=this.ruler.getRules(""),i=n.length,a=e.md.options.maxNesting;let l=t,d=!1;for(;l<r&&(e.line=l=e.skipEmptyLines(l),!(l>=r||e.sCount[l]<e.blkIndent));){if(e.level>=a){e.line=r;break}const f=e.line;let p=!1;for(let g=0;g<i;g++)if(p=n[g](e,l,r,!1),p){if(f>=e.line)throw new Error("block rule didn't increment state.line");break}if(!p)throw new Error("none of the block rules matched");e.tight=!d,e.isEmpty(e.line-1)&&(d=!0),l=e.line,l<r&&e.isEmpty(l)&&(d=!0,l++,e.line=l)}},Qo.prototype.parse=function(e,t,r,n){if(!e)return;const i=new this.State(e,t,r,n);this.tokenize(i,i.line,i.lineMax)},Qo.prototype.State=Hr;function gi(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}gi.prototype.pushPending=function(){const e=new vr("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},gi.prototype.push=function(e,t,r){this.pending&&this.pushPending();const n=new vr(e,t,r);let i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},gi.prototype.scanDelims=function(e,t){const r=this.posMax,n=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a<r&&this.src.charCodeAt(a)===n;)a++;const l=a-e,d=a<r?this.src.charCodeAt(a):32,f=pi(i)||mi(String.fromCharCode(i)),p=pi(d)||mi(String.fromCharCode(d)),g=hi(i),m=hi(d),x=!m&&(!p||g||f),S=!g&&(!f||m||p);return{can_open:x&&(t||!S||f),can_close:S&&(t||!x||p),length:l}},gi.prototype.Token=vr;function a8(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function i8(e,t){let r=e.pos;for(;r<e.posMax&&!a8(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}const o8=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function s8(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const r=e.pos,n=e.posMax;if(r+3>n||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;const i=e.pending.match(o8);if(!i)return!1;const a=i[1],l=e.md.linkify.matchAtStart(e.src.slice(r-a.length));if(!l)return!1;let d=l.url;if(d.length<=a.length)return!1;let f=d.length;for(;f>0&&d.charCodeAt(f-1)===42;)f--;f!==d.length&&(d=d.slice(0,f));const p=e.md.normalizeLink(d);if(!e.md.validateLink(p))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);const g=e.push("link_open","a",1);g.attrs=[["href",p]],g.markup="linkify",g.info="auto";const m=e.push("text","",0);m.content=e.md.normalizeLinkText(d);const x=e.push("link_close","a",-1);x.markup="linkify",x.info="auto"}return e.pos+=d.length-a.length,!0}function l8(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;const n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let a=n-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&At(e.src.charCodeAt(r));)r++;return e.pos=r,!0}const Mu=[];for(let e=0;e<256;e++)Mu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Mu[e.charCodeAt(0)]=1});function u8(e,t){let r=e.pos;const n=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let i=e.src.charCodeAt(r);if(i===10){for(t||e.push("hardbreak","br",0),r++;r<n&&(i=e.src.charCodeAt(r),!!At(i));)r++;return e.pos=r,!0}let a=e.src[r];if(i>=55296&&i<=56319&&r+1<n){const d=e.src.charCodeAt(r+1);d>=56320&&d<=57343&&(a+=e.src[r+1],r++)}const l="\\"+a;if(!t){const d=e.push("text_special","",0);i<256&&Mu[i]!==0?d.content=a:d.content=l,d.markup=l,d.info="escape"}return e.pos=r+1,!0}function c8(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;const i=r;r++;const a=e.posMax;for(;r<a&&e.src.charCodeAt(r)===96;)r++;const l=e.src.slice(i,r),d=l.length;if(e.backticksScanned&&(e.backticks[d]||0)<=i)return t||(e.pending+=l),e.pos+=d,!0;let f=r,p;for(;(p=e.src.indexOf("`",f))!==-1;){for(f=p+1;f<a&&e.src.charCodeAt(f)===96;)f++;const g=f-p;if(g===d){if(!t){const m=e.push("code_inline","code",0);m.markup=l,m.content=e.src.slice(r,p).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=f,!0}e.backticks[g]=p}return e.backticksScanned=!0,t||(e.pending+=l),e.pos+=d,!0}function d8(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==126)return!1;const i=e.scanDelims(e.pos,!0);let a=i.length;const l=String.fromCharCode(n);if(a<2)return!1;let d;a%2&&(d=e.push("text","",0),d.content=l,a--);for(let f=0;f<a;f+=2)d=e.push("text","",0),d.content=l+l,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function R4(e,t){let r;const n=[],i=t.length;for(let a=0;a<i;a++){const l=t[a];if(l.marker!==126||l.end===-1)continue;const d=t[l.end];r=e.tokens[l.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[d.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",e.tokens[d.token-1].type==="text"&&e.tokens[d.token-1].content==="~"&&n.push(d.token-1)}for(;n.length;){const a=n.pop();let l=a+1;for(;l<e.tokens.length&&e.tokens[l].type==="s_close";)l++;l--,a!==l&&(r=e.tokens[l],e.tokens[l]=e.tokens[a],e.tokens[a]=r)}}function f8(e){const t=e.tokens_meta,r=e.tokens_meta.length;R4(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&R4(e,t[n].delimiters)}const P4={tokenize:d8,postProcess:f8};function h8(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==95&&n!==42)return!1;const i=e.scanDelims(e.pos,n===42);for(let a=0;a<i.length;a++){const l=e.push("text","",0);l.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function V4(e,t){const r=t.length;for(let n=r-1;n>=0;n--){const i=t[n];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const a=t[i.end],l=n>0&&t[n-1].end===i.end+1&&t[n-1].marker===i.marker&&t[n-1].token===i.token-1&&t[i.end+1].token===a.token+1,d=String.fromCharCode(i.marker),f=e.tokens[i.token];f.type=l?"strong_open":"em_open",f.tag=l?"strong":"em",f.nesting=1,f.markup=l?d+d:d,f.content="";const p=e.tokens[a.token];p.type=l?"strong_close":"em_close",p.tag=l?"strong":"em",p.nesting=-1,p.markup=l?d+d:d,p.content="",l&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--)}}function m8(e){const t=e.tokens_meta,r=e.tokens_meta.length;V4(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&V4(e,t[n].delimiters)}const H4={tokenize:h8,postProcess:m8};function p8(e,t){let r,n,i,a,l="",d="",f=e.pos,p=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const g=e.pos,m=e.posMax,x=e.pos+1,S=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(S<0)return!1;let C=S+1;if(C<m&&e.src.charCodeAt(C)===40){for(p=!1,C++;C<m&&(r=e.src.charCodeAt(C),!(!At(r)&&r!==10));C++);if(C>=m)return!1;if(f=C,i=e.md.helpers.parseLinkDestination(e.src,C,e.posMax),i.ok){for(l=e.md.normalizeLink(i.str),e.md.validateLink(l)?C=i.pos:l="",f=C;C<m&&(r=e.src.charCodeAt(C),!(!At(r)&&r!==10));C++);if(i=e.md.helpers.parseLinkTitle(e.src,C,e.posMax),C<m&&f!==C&&i.ok)for(d=i.str,C=i.pos;C<m&&(r=e.src.charCodeAt(C),!(!At(r)&&r!==10));C++);}(C>=m||e.src.charCodeAt(C)!==41)&&(p=!0),C++}if(p){if(typeof e.env.references>"u")return!1;if(C<m&&e.src.charCodeAt(C)===91?(f=C+1,C=e.md.helpers.parseLinkLabel(e,C),C>=0?n=e.src.slice(f,C++):C=S+1):C=S+1,n||(n=e.src.slice(x,S)),a=e.env.references[Yo(n)],!a)return e.pos=g,!1;l=a.href,d=a.title}if(!t){e.pos=x,e.posMax=S;const _=e.push("link_open","a",1),F=[["href",l]];_.attrs=F,d&&F.push(["title",d]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=C,e.posMax=m,!0}function g8(e,t){let r,n,i,a,l,d,f,p,g="";const m=e.pos,x=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const S=e.pos+2,C=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(C<0)return!1;if(a=C+1,a<x&&e.src.charCodeAt(a)===40){for(a++;a<x&&(r=e.src.charCodeAt(a),!(!At(r)&&r!==10));a++);if(a>=x)return!1;for(p=a,d=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),d.ok&&(g=e.md.normalizeLink(d.str),e.md.validateLink(g)?a=d.pos:g=""),p=a;a<x&&(r=e.src.charCodeAt(a),!(!At(r)&&r!==10));a++);if(d=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<x&&p!==a&&d.ok)for(f=d.str,a=d.pos;a<x&&(r=e.src.charCodeAt(a),!(!At(r)&&r!==10));a++);else f="";if(a>=x||e.src.charCodeAt(a)!==41)return e.pos=m,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a<x&&e.src.charCodeAt(a)===91?(p=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(p,a++):a=C+1):a=C+1,i||(i=e.src.slice(S,C)),l=e.env.references[Yo(i)],!l)return e.pos=m,!1;g=l.href,f=l.title}if(!t){n=e.src.slice(S,C);const _=[];e.md.inline.parse(n,e.md,e.env,_);const F=e.push("image","img",0),z=[["src",g],["alt",""]];F.attrs=z,F.children=_,F.content=n,f&&z.push(["title",f])}return e.pos=a,e.posMax=x,!0}const b8=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,y8=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function v8(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;const n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;const l=e.src.charCodeAt(r);if(l===60)return!1;if(l===62)break}const a=e.src.slice(n+1,r);if(y8.test(a)){const l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){const d=e.push("link_open","a",1);d.attrs=[["href",l]],d.markup="autolink",d.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(a);const p=e.push("link_close","a",-1);p.markup="autolink",p.info="auto"}return e.pos+=a.length+2,!0}if(b8.test(a)){const l=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(l))return!1;if(!t){const d=e.push("link_open","a",1);d.attrs=[["href",l]],d.markup="autolink",d.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(a);const p=e.push("link_close","a",-1);p.markup="autolink",p.info="auto"}return e.pos+=a.length+2,!0}return!1}function x8(e){return/^<a[>\s]/i.test(e)}function w8(e){return/^<\/a\s*>/i.test(e)}function k8(e){const t=e|32;return t>=97&&t<=122}function A8(e,t){if(!e.md.options.html)return!1;const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;const i=e.src.charCodeAt(n+1);if(i!==33&&i!==63&&i!==47&&!k8(i))return!1;const a=e.src.slice(n).match(Q7);if(!a)return!1;if(!t){const l=e.push("html_inline","",0);l.content=a[0],x8(l.content)&&e.linkLevel++,w8(l.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}const S8=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,C8=/^&([a-z][a-z0-9]{1,31});/i;function T8(e,t){const r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=n)return!1;if(e.src.charCodeAt(r+1)===35){const a=e.src.slice(r).match(S8);if(a){if(!t){const l=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),d=e.push("text_special","",0);d.content=Cu(l)?Xo(l):Xo(65533),d.markup=a[0],d.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(r).match(C8);if(a){const l=T4(a[0]);if(l!==a[0]){if(!t){const d=e.push("text_special","",0);d.content=l,d.markup=a[0],d.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function q4(e){const t={},r=e.length;if(!r)return;let n=0,i=-2;const a=[];for(let l=0;l<r;l++){const d=e[l];if(a.push(0),(e[n].marker!==d.marker||i!==d.token-1)&&(n=l),i=d.token,d.length=d.length||0,!d.close)continue;t.hasOwnProperty(d.marker)||(t[d.marker]=[-1,-1,-1,-1,-1,-1]);const f=t[d.marker][(d.open?3:0)+d.length%3];let p=n-a[n]-1,g=p;for(;p>f;p-=a[p]+1){const m=e[p];if(m.marker===d.marker&&m.open&&m.end<0){let x=!1;if((m.close||d.open)&&(m.length+d.length)%3===0&&(m.length%3!==0||d.length%3!==0)&&(x=!0),!x){const S=p>0&&!e[p-1].open?a[p-1]+1:0;a[l]=l-p+S,a[p]=S,d.open=!1,m.end=l,m.close=!1,g=-1,i=-2;break}}}g!==-1&&(t[d.marker][(d.open?3:0)+(d.length||0)%3]=g)}}function E8(e){const t=e.tokens_meta,r=e.tokens_meta.length;q4(e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&q4(t[n].delimiters)}function D8(e){let t,r,n=0;const i=e.tokens,a=e.tokens.length;for(t=r=0;t<a;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,i[t].type==="text"&&t+1<a&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}const Nu=[["text",i8],["linkify",s8],["newline",l8],["escape",u8],["backticks",c8],["strikethrough",P4.tokenize],["emphasis",H4.tokenize],["link",p8],["image",g8],["autolink",v8],["html_inline",A8],["entity",T8]],zu=[["balance_pairs",E8],["strikethrough",P4.postProcess],["emphasis",H4.postProcess],["fragments_join",D8]];function bi(){this.ruler=new V0;for(let e=0;e<Nu.length;e++)this.ruler.push(Nu[e][0],Nu[e][1]);this.ruler2=new V0;for(let e=0;e<zu.length;e++)this.ruler2.push(zu[e][0],zu[e][1])}bi.prototype.skipToken=function(e){const t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,a=e.cache;if(typeof a[t]<"u"){e.pos=a[t];return}let l=!1;if(e.level<i){for(let d=0;d<n;d++)if(e.level++,l=r[d](e,!0),e.level--,l){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;l||e.pos++,a[t]=e.pos},bi.prototype.tokenize=function(e){const t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){const a=e.pos;let l=!1;if(e.level<i){for(let d=0;d<r;d++)if(l=t[d](e,!1),l){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(l){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},bi.prototype.parse=function(e,t,r,n){const i=new this.State(e,t,r,n);this.tokenize(i);const a=this.ruler2.getRules(""),l=a.length;for(let d=0;d<l;d++)a[d](i)},bi.prototype.State=gi;function M8(e){const t={};e=e||{},t.src_Any=w4.source,t.src_Cc=k4.source,t.src_Z=S4.source,t.src_P=wu.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function _u(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function Jo(e){return Object.prototype.toString.call(e)}function N8(e){return Jo(e)==="[object String]"}function z8(e){return Jo(e)==="[object Object]"}function _8(e){return Jo(e)==="[object RegExp]"}function j4(e){return Jo(e)==="[object Function]"}function F8(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const $4={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function I8(e){return Object.keys(e||{}).reduce(function(t,r){return t||$4.hasOwnProperty(r)},!1)}const B8={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},O8="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",L8="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function R8(e){e.__index__=-1,e.__text_cache__=""}function P8(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function U4(){return function(e,t){t.normalize(e)}}function es(e){const t=e.re=M8(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(O8),r.push(t.src_xn),t.src_tlds=r.join("|");function n(d){return d.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function a(d,f){throw new Error('(LinkifyIt) Invalid schema "'+d+'": '+f)}Object.keys(e.__schemas__).forEach(function(d){const f=e.__schemas__[d];if(f===null)return;const p={validate:null,link:null};if(e.__compiled__[d]=p,z8(f)){_8(f.validate)?p.validate=P8(f.validate):j4(f.validate)?p.validate=f.validate:a(d,f),j4(f.normalize)?p.normalize=f.normalize:f.normalize?a(d,f):p.normalize=U4();return}if(N8(f)){i.push(d);return}a(d,f)}),i.forEach(function(d){e.__compiled__[e.__schemas__[d]]&&(e.__compiled__[d].validate=e.__compiled__[e.__schemas__[d]].validate,e.__compiled__[d].normalize=e.__compiled__[e.__schemas__[d]].normalize)}),e.__compiled__[""]={validate:null,normalize:U4()};const l=Object.keys(e.__compiled__).filter(function(d){return d.length>0&&e.__compiled__[d]}).map(F8).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+l+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+l+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),R8(e)}function V8(e,t){const r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i}function Fu(e,t){const r=new V8(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function X0(e,t){if(!(this instanceof X0))return new X0(e,t);t||I8(e)&&(t=e,e={}),this.__opts__=_u({},$4,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=_u({},B8,e),this.__compiled__={},this.__tlds__=L8,this.__tlds_replaced__=!1,this.re={},es(this)}X0.prototype.add=function(t,r){return this.__schemas__[t]=r,es(this),this},X0.prototype.set=function(t){return this.__opts__=_u(this.__opts__,t),this},X0.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let r,n,i,a,l,d,f,p,g;if(this.re.schema_test.test(t)){for(f=this.re.schema_search,f.lastIndex=0;(r=f.exec(t))!==null;)if(a=this.testSchemaAt(t,r[2],f.lastIndex),a){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(p=t.search(this.re.host_fuzzy_test),p>=0&&(this.__index__<0||p<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(l=n.index+n[1].length,(this.__index__<0||l<this.__index__)&&(this.__schema__="",this.__index__=l,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(g=t.indexOf("@"),g>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(l=i.index+i[1].length,d=i.index+i[0].length,(this.__index__<0||l<this.__index__||l===this.__index__&&d>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=l,this.__last_index__=d))),this.__index__>=0},X0.prototype.pretest=function(t){return this.re.pretest.test(t)},X0.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0},X0.prototype.match=function(t){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(r.push(Fu(this,n)),n=this.__last_index__);let i=n?t.slice(n):t;for(;this.test(i);)r.push(Fu(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},X0.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const r=this.re.schema_at_start.exec(t);if(!r)return null;const n=this.testSchemaAt(t,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,Fu(this,0)):null},X0.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,i,a){return n!==a[i-1]}).reverse(),es(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,es(this),this)},X0.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},X0.prototype.onCompile=function(){};const Ca=2147483647,qr=36,Iu=1,yi=26,H8=38,q8=700,W4=72,G4=128,X4="-",j8=/^xn--/,$8=/[^\0-\x7F]/,U8=/[\x2E\u3002\uFF0E\uFF61]/g,W8={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Bu=qr-Iu,jr=Math.floor,Ou=String.fromCharCode;function En(e){throw new RangeError(W8[e])}function G8(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}function Y4(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(U8,".");const i=e.split("."),a=G8(i,t).join(".");return n+a}function Z4(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const a=e.charCodeAt(r++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}const X8=e=>String.fromCodePoint(...e),Y8=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:qr},K4=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Q4=function(e,t,r){let n=0;for(e=r?jr(e/q8):e>>1,e+=jr(e/t);e>Bu*yi>>1;n+=qr)e=jr(e/Bu);return jr(n+(Bu+1)*e/(e+H8))},J4=function(e){const t=[],r=e.length;let n=0,i=G4,a=W4,l=e.lastIndexOf(X4);l<0&&(l=0);for(let d=0;d<l;++d)e.charCodeAt(d)>=128&&En("not-basic"),t.push(e.charCodeAt(d));for(let d=l>0?l+1:0;d<r;){const f=n;for(let g=1,m=qr;;m+=qr){d>=r&&En("invalid-input");const x=Y8(e.charCodeAt(d++));x>=qr&&En("invalid-input"),x>jr((Ca-n)/g)&&En("overflow"),n+=x*g;const S=m<=a?Iu:m>=a+yi?yi:m-a;if(x<S)break;const C=qr-S;g>jr(Ca/C)&&En("overflow"),g*=C}const p=t.length+1;a=Q4(n-f,p,f==0),jr(n/p)>Ca-i&&En("overflow"),i+=jr(n/p),n%=p,t.splice(n++,0,i)}return String.fromCodePoint(...t)},e2=function(e){const t=[];e=Z4(e);const r=e.length;let n=G4,i=0,a=W4;for(const f of e)f<128&&t.push(Ou(f));const l=t.length;let d=l;for(l&&t.push(X4);d<r;){let f=Ca;for(const g of e)g>=n&&g<f&&(f=g);const p=d+1;f-n>jr((Ca-i)/p)&&En("overflow"),i+=(f-n)*p,n=f;for(const g of e)if(g<n&&++i>Ca&&En("overflow"),g===n){let m=i;for(let x=qr;;x+=qr){const S=x<=a?Iu:x>=a+yi?yi:x-a;if(m<S)break;const C=m-S,_=qr-S;t.push(Ou(K4(S+C%_,0))),m=jr(C/_)}t.push(Ou(K4(m,0))),a=Q4(i,p,d===l),i=0,++d}++i,++n}return t.join("")},t2={version:"2.3.1",ucs2:{decode:Z4,encode:X8},decode:J4,encode:e2,toASCII:function(e){return Y4(e,function(t){return $8.test(t)?"xn--"+e2(t):t})},toUnicode:function(e){return Y4(e,function(t){return j8.test(t)?J4(t.slice(4).toLowerCase()):t})}},Z8={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},K8=/^(vbscript|javascript|file|data):/,Q8=/^data:image\/(gif|png|jpeg|webp);/;function J8(e){const t=e.trim().toLowerCase();return K8.test(t)?Q8.test(t):!0}const r2=["http:","https:","mailto:"];function ep(e){const t=xu(e,!0);if(t.hostname&&(!t.protocol||r2.indexOf(t.protocol)>=0))try{t.hostname=t2.toASCII(t.hostname)}catch{}return fi(vu(t))}function tp(e){const t=xu(e,!0);if(t.hostname&&(!t.protocol||r2.indexOf(t.protocol)>=0))try{t.hostname=t2.toUnicode(t.hostname)}catch{}return wa(vu(t),wa.defaultChars+"%")}function Y0(e,t){if(!(this instanceof Y0))return new Y0(e,t);t||Su(e)||(t=e||{},e="default"),this.inline=new bi,this.block=new Qo,this.core=new Eu,this.renderer=new Aa,this.linkify=new X0,this.validateLink=J8,this.normalizeLink=ep,this.normalizeLinkText=tp,this.utils=f7,this.helpers=Go({},g7),this.options={},this.configure(e),t&&this.set(t)}Y0.prototype.set=function(e){return Go(this.options,e),this},Y0.prototype.configure=function(e){const t=this;if(Su(e)){const r=e;if(e=Z8[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},Y0.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},Y0.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},Y0.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Y0.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},Y0.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Y0.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},Y0.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var n2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i2={exports:{}},Lu={exports:{}},o2;function rp(){return o2||(o2=1,function(e,t){(function(n,i){e.exports=i()})(typeof self<"u"?self:n2,function(){return function(){var r={};(function(){r.d=function(s,o){for(var u in o)r.o(o,u)&&!r.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:o[u]})}})(),function(){r.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)}}();var n={};r.d(n,{default:function(){return Lv}});class i extends Error{constructor(o,u){let h="KaTeX parse error: "+o,b,A;const T=u&&u.loc;if(T&&T.start<=T.end){const I=T.lexer.input;b=T.start,A=T.end,b===I.length?h+=" at end of input: ":h+=" at position "+(b+1)+": ";const P=I.slice(b,A).replace(/[^]/g,"$&̲");let G;b>15?G="…"+I.slice(b-15,b):G=I.slice(0,b);let re;A+15<I.length?re=I.slice(A,A+15)+"…":re=I.slice(A),h+=G+P+re}super(h),this.name="ParseError",Object.setPrototypeOf(this,i.prototype),this.position=b,b!=null&&A!=null&&(this.length=A-b),this.rawMessage=o}}var a=i;const l=/([A-Z])/g,d=s=>s.replace(l,"-$1").toLowerCase(),f={"&":"&",">":">","<":"<",'"':""","'":"'"},p=/[&><"']/g,g=s=>String(s).replace(p,o=>f[o]),m=s=>s.type==="ordgroup"||s.type==="color"?s.body.length===1?m(s.body[0]):s:s.type==="font"?m(s.body):s,x=new Set(["mathord","textord","atom"]),S=s=>x.has(m(s).type),C=s=>{const o=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(s);return o?o[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(o[1])?null:o[1].toLowerCase():"_relative"},_={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:s=>"#"+s},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(s,o)=>(o.push(s),o)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:s=>Math.max(0,s),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:s=>Math.max(0,s),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:s=>Math.max(0,s),cli:"-e, --max-expand <n>",cliProcessor:s=>s==="Infinity"?1/0:parseInt(s)},globalGroup:{type:"boolean",cli:!1}};function F(s){if("default"in s)return s.default;const o=s.type,u=Array.isArray(o)?o[0]:o;if(typeof u!="string")return u.enum[0];switch(u){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class z{constructor(o){o===void 0&&(o={}),o=o||{};for(const u of Object.keys(_)){const h=_[u],b=o[u];this[u]=b!==void 0?h.processor?h.processor(b):b:F(h)}}reportNonstrict(o,u,h){let b=this.strict;if(typeof b=="function"&&(b=b(o,u,h)),!(!b||b==="ignore")){if(b===!0||b==="error")throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+(u+" ["+o+"]"),h);b==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(u+" ["+o+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+b+"': "+u+" ["+o+"]"))}}useStrictBehavior(o,u,h){let b=this.strict;if(typeof b=="function")try{b=b(o,u,h)}catch{b="error"}return!b||b==="ignore"?!1:b===!0||b==="error"?!0:b==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(u+" ["+o+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+b+"': "+u+" ["+o+"]")),!1)}isTrusted(o){if("url"in o&&o.url&&!o.protocol){const h=C(o.url);if(h==null)return!1;o.protocol=h}return!!(typeof this.trust=="function"?this.trust(o):this.trust)}}class E{constructor(o,u,h){this.id=o,this.size=u,this.cramped=h}sup(){return ce[be[this.id]]}sub(){return ce[ae[this.id]]}fracNum(){return ce[xe[this.id]]}fracDen(){return ce[Ce[this.id]]}cramp(){return ce[te[this.id]]}text(){return ce[ye[this.id]]}isTight(){return this.size>=2}}const D=0,B=1,R=2,W=3,Y=4,q=5,pe=6,he=7,ce=[new E(D,0,!1),new E(B,0,!0),new E(R,1,!1),new E(W,1,!0),new E(Y,2,!1),new E(q,2,!0),new E(pe,3,!1),new E(he,3,!0)],be=[Y,q,Y,q,pe,he,pe,he],ae=[q,q,q,q,he,he,he,he],xe=[R,W,Y,q,pe,he,pe,he],Ce=[W,W,q,q,he,he,he,he],te=[B,B,W,W,q,q,he,he],ye=[D,B,R,W,R,W,R,W];var ne={DISPLAY:ce[D],TEXT:ce[R],SCRIPT:ce[Y],SCRIPTSCRIPT:ce[pe]};const ze=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Ue(s){for(let o=0;o<ze.length;o++){const u=ze[o];for(let h=0;h<u.blocks.length;h++){const b=u.blocks[h];if(s>=b[0]&&s<=b[1])return u.name}}return null}const X=[];ze.forEach(s=>s.blocks.forEach(o=>X.push(...o)));function Z(s){for(let o=0;o<X.length;o+=2)if(s>=X[o]&&s<=X[o+1])return!0;return!1}const Q=80,oe=function(s,o){return"M95,"+(622+s+o)+`
|
|
282
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
283
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
284
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
285
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
286
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
287
|
+
l`+s/2.075+" -"+s+`
|
|
288
|
+
c5.3,-9.3,12,-14,20,-14
|
|
289
|
+
H400000v`+(40+s)+`H845.2724
|
|
290
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
291
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
292
|
+
M`+(834+s)+" "+o+"h400000v"+(40+s)+"h-400000z"},fe=function(s,o){return"M263,"+(601+s+o)+`c0.7,0,18,39.7,52,119
|
|
293
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
294
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
295
|
+
l`+s/2.084+" -"+s+`
|
|
296
|
+
c4.7,-7.3,11,-11,19,-11
|
|
297
|
+
H40000v`+(40+s)+`H1012.3
|
|
298
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
299
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
300
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
301
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
302
|
+
M`+(1001+s)+" "+o+"h400000v"+(40+s)+"h-400000z"},Ae=function(s,o){return"M983 "+(10+s+o)+`
|
|
303
|
+
l`+s/3.13+" -"+s+`
|
|
304
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+s)+`
|
|
305
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
306
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
307
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
308
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
309
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
310
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
311
|
+
M`+(1001+s)+" "+o+"h400000v"+(40+s)+"h-400000z"},ie=function(s,o){return"M424,"+(2398+s+o)+`
|
|
312
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
313
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
314
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
315
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
316
|
+
l`+s/4.223+" -"+s+`c4,-6.7,10,-10,18,-10 H400000
|
|
317
|
+
v`+(40+s)+`H1014.6
|
|
318
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
319
|
+
c-2,6,-10,9,-24,9
|
|
320
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+s)+" "+o+`
|
|
321
|
+
h400000v`+(40+s)+"h-400000z"},me=function(s,o){return"M473,"+(2713+s+o)+`
|
|
322
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+s/5.298+" -"+s+`
|
|
323
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+s)+`H1017.7
|
|
324
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
325
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
326
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
327
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
328
|
+
606zM`+(1001+s)+" "+o+"h400000v"+(40+s)+"H1017.7z"},ge=function(s){const o=s/2;return"M400000 "+s+" H0 L"+o+" 0 l65 45 L145 "+(s-80)+" H400000z"},Oe=function(s,o,u){const h=u-54-o-s;return"M702 "+(s+o)+"H400000"+(40+s)+`
|
|
329
|
+
H742v`+h+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
330
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
331
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
332
|
+
219 661 l218 661zM702 `+o+"H400000v"+(40+s)+"H742z"},Xe=function(s,o,u){o=1e3*o;let h="";switch(s){case"sqrtMain":h=oe(o,Q);break;case"sqrtSize1":h=fe(o,Q);break;case"sqrtSize2":h=Ae(o,Q);break;case"sqrtSize3":h=ie(o,Q);break;case"sqrtSize4":h=me(o,Q);break;case"sqrtTall":h=Oe(o,Q,u)}return h},Ze=function(s,o){switch(s){case"⎜":return"M291 0 H417 V"+o+" H291z M291 0 H417 V"+o+" H291z";case"∣":return"M145 0 H188 V"+o+" H145z M145 0 H188 V"+o+" H145z";case"∥":return"M145 0 H188 V"+o+" H145z M145 0 H188 V"+o+" H145z"+("M367 0 H410 V"+o+" H367z M367 0 H410 V"+o+" H367z");case"⎟":return"M457 0 H583 V"+o+" H457z M457 0 H583 V"+o+" H457z";case"⎢":return"M319 0 H403 V"+o+" H319z M319 0 H403 V"+o+" H319z";case"⎥":return"M263 0 H347 V"+o+" H263z M263 0 H347 V"+o+" H263z";case"⎪":return"M384 0 H504 V"+o+" H384z M384 0 H504 V"+o+" H384z";case"⏐":return"M312 0 H355 V"+o+" H312z M312 0 H355 V"+o+" H312z";case"‖":return"M257 0 H300 V"+o+" H257z M257 0 H300 V"+o+" H257z"+("M478 0 H521 V"+o+" H478z M478 0 H521 V"+o+" H478z");default:return""}},nt={doubleleftarrow:`M262 157
|
|
333
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
334
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
335
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
336
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
337
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
338
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
339
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
340
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
341
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
342
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
343
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
344
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
345
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
346
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
347
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
348
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
349
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
350
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
351
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
352
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
353
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
354
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
355
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
356
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
357
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
358
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
359
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
360
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
361
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
362
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
363
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
364
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
365
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
366
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
367
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
368
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
369
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
370
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
371
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
372
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
373
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
374
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
375
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
376
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
377
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
378
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
379
|
+
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z
|
|
380
|
+
M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z
|
|
381
|
+
M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
382
|
+
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
383
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
384
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
385
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
386
|
+
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
387
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
388
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
389
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
390
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
391
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
392
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
393
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
394
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
395
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
396
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
397
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
398
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
399
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
400
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
401
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
402
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
403
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
404
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
405
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
406
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
407
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
408
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
409
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
410
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
411
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
412
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
413
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
414
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
415
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
416
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
417
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
418
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
419
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
420
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
421
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
422
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
423
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
424
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
425
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
426
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
427
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
428
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
429
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
430
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
431
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
432
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
433
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
434
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
435
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
436
|
+
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z
|
|
437
|
+
M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z
|
|
438
|
+
M399995 440 h-120 V150 H0 v-120 H399995z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
439
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
440
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
441
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
442
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
443
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
444
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
445
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
446
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
447
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
448
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
449
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
450
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
451
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
452
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
453
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
454
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
455
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
456
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
457
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
458
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
459
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
460
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
461
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
462
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
463
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
464
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
465
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
466
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
467
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
468
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
469
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
470
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
471
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
472
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
473
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
474
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
475
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
476
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
477
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
478
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
479
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
480
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
481
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
482
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
483
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
484
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
485
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
486
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
487
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
488
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
489
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
490
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
491
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
492
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
493
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
494
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
495
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
496
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
497
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
498
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
499
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
500
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
501
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
502
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
503
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
504
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
505
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
506
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
507
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
508
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
509
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
510
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
511
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},at=function(s,o){switch(s){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+o+` v1759 h347 v-84
|
|
512
|
+
H403z M403 1759 V0 H319 V1759 v`+o+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+o+` v1759 H0 v84 H347z
|
|
513
|
+
M347 1759 V0 H263 V1759 v`+o+" v1759 h84z";case"vert":return"M145 15 v585 v"+o+` v585 c2.667,10,9.667,15,21,15
|
|
514
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-o+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
515
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+o+" v585 h43z";case"doublevert":return"M145 15 v585 v"+o+` v585 c2.667,10,9.667,15,21,15
|
|
516
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-o+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
517
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+o+` v585 h43z
|
|
518
|
+
M367 15 v585 v`+o+` v585 c2.667,10,9.667,15,21,15
|
|
519
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-o+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
520
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+o+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+o+` v1715 h263 v84 H319z
|
|
521
|
+
MM319 602 V0 H403 V602 v`+o+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+o+` v1799 H0 v-84 H319z
|
|
522
|
+
MM319 602 V0 H403 V602 v`+o+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+o+` v602 h84z
|
|
523
|
+
M403 1759 V0 H319 V1759 v`+o+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+o+` v602 h84z
|
|
524
|
+
M347 1759 V0 h-84 V1759 v`+o+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
525
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
526
|
+
-36,557 l0,`+(o+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
527
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
528
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
529
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
530
|
+
l0,-`+(o+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
531
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
532
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
533
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(o+9)+`
|
|
534
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
535
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
536
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
537
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
538
|
+
l0,-`+(o+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
539
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class it{constructor(o){this.children=o,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(o){return this.classes.includes(o)}toNode(){const o=document.createDocumentFragment();for(let u=0;u<this.children.length;u++)o.appendChild(this.children[u].toNode());return o}toMarkup(){let o="";for(let u=0;u<this.children.length;u++)o+=this.children[u].toMarkup();return o}toText(){const o=u=>u.toText();return this.children.map(o).join("")}}const qt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},B0={ex:!0,em:!0,mu:!0},Wt=function(s){return typeof s!="string"&&(s=s.unit),s in qt||s in B0||s==="ex"},lt=function(s,o){let u;if(s.unit in qt)u=qt[s.unit]/o.fontMetrics().ptPerEm/o.sizeMultiplier;else if(s.unit==="mu")u=o.fontMetrics().cssEmPerMu;else{let h;if(o.style.isTight()?h=o.havingStyle(o.style.text()):h=o,s.unit==="ex")u=h.fontMetrics().xHeight;else if(s.unit==="em")u=h.fontMetrics().quad;else throw new a("Invalid unit: '"+s.unit+"'");h!==o&&(u*=h.sizeMultiplier/o.sizeMultiplier)}return Math.min(s.number*u,o.maxSize)},Se=function(s){return+s.toFixed(4)+"em"},rr=function(s){return s.filter(o=>o).join(" ")},sa=function(s,o,u){if(this.classes=s||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=u||{},o){o.style.isTight()&&this.classes.push("mtight");const h=o.getColor();h&&(this.style.color=h)}},Bn=function(s){const o=document.createElement(s);o.className=rr(this.classes);for(const u of Object.keys(this.style))o.style[u]=this.style[u];for(const u of Object.keys(this.attributes))o.setAttribute(u,this.attributes[u]);for(let u=0;u<this.children.length;u++)o.appendChild(this.children[u].toNode());return o},On=/[\s"'>/=\x00-\x1f]/,Nr=function(s){let o="<"+s;this.classes.length&&(o+=' class="'+g(rr(this.classes))+'"');let u="";for(const h of Object.keys(this.style))u+=d(h)+":"+this.style[h]+";";u&&(o+=' style="'+g(u)+'"');for(const h of Object.keys(this.attributes)){if(On.test(h))throw new a("Invalid attribute name '"+h+"'");o+=" "+h+'="'+g(this.attributes[h])+'"'}o+=">";for(let h=0;h<this.children.length;h++)o+=this.children[h].toMarkup();return o+="</"+s+">",o};class O0{constructor(o,u,h,b){sa.call(this,o,h,b),this.children=u||[]}setAttribute(o,u){this.attributes[o]=u}hasClass(o){return this.classes.includes(o)}toNode(){return Bn.call(this,"span")}toMarkup(){return Nr.call(this,"span")}}class b0{constructor(o,u,h,b){sa.call(this,u,b),this.children=h||[],this.setAttribute("href",o)}setAttribute(o,u){this.attributes[o]=u}hasClass(o){return this.classes.includes(o)}toNode(){return Bn.call(this,"a")}toMarkup(){return Nr.call(this,"a")}}class Yr{constructor(o,u,h){this.alt=u,this.src=o,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=h}hasClass(o){return this.classes.includes(o)}toNode(){const o=document.createElement("img");o.src=this.src,o.alt=this.alt,o.className="mord";for(const u of Object.keys(this.style))o.style[u]=this.style[u];return o}toMarkup(){let o='<img src="'+g(this.src)+'"'+(' alt="'+g(this.alt)+'"'),u="";for(const h of Object.keys(this.style))u+=d(h)+":"+this.style[h]+";";return u&&(o+=' style="'+g(u)+'"'),o+="'/>",o}}const cn={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class k0{constructor(o,u,h,b,A,T,I,P){this.text=o,this.height=u||0,this.depth=h||0,this.italic=b||0,this.skew=A||0,this.width=T||0,this.classes=I||[],this.style=P||{},this.maxFontSize=0;const G=Ue(this.text.charCodeAt(0));G&&this.classes.push(G+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=cn[this.text])}hasClass(o){return this.classes.includes(o)}toNode(){const o=document.createTextNode(this.text);let u=null;this.italic>0&&(u=document.createElement("span"),u.style.marginRight=Se(this.italic)),this.classes.length>0&&(u=u||document.createElement("span"),u.className=rr(this.classes));for(const h of Object.keys(this.style))u=u||document.createElement("span"),u.style[h]=this.style[h];return u?(u.appendChild(o),u):o}toMarkup(){let o=!1,u="<span";this.classes.length&&(o=!0,u+=' class="',u+=g(rr(this.classes)),u+='"');let h="";this.italic>0&&(h+="margin-right:"+Se(this.italic)+";");for(const A of Object.keys(this.style))h+=d(A)+":"+this.style[A]+";";h&&(o=!0,u+=' style="'+g(h)+'"');const b=g(this.text);return o?(u+=">",u+=b,u+="</span>",u):b}}class nr{constructor(o,u){this.children=o||[],this.attributes=u||{}}toNode(){const u=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const h of Object.keys(this.attributes))u.setAttribute(h,this.attributes[h]);for(let h=0;h<this.children.length;h++)u.appendChild(this.children[h].toNode());return u}toMarkup(){let o='<svg xmlns="http://www.w3.org/2000/svg"';for(const u of Object.keys(this.attributes))o+=" "+u+'="'+g(this.attributes[u])+'"';o+=">";for(let u=0;u<this.children.length;u++)o+=this.children[u].toMarkup();return o+="</svg>",o}}class zr{constructor(o,u){this.pathName=o,this.alternate=u}toNode(){const u=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?u.setAttribute("d",this.alternate):u.setAttribute("d",nt[this.pathName]),u}toMarkup(){return this.alternate?'<path d="'+g(this.alternate)+'"/>':'<path d="'+g(nt[this.pathName])+'"/>'}}class Ln{constructor(o){this.attributes=o||{}}toNode(){const u=document.createElementNS("http://www.w3.org/2000/svg","line");for(const h of Object.keys(this.attributes))u.setAttribute(h,this.attributes[h]);return u}toMarkup(){let o="<line";for(const u of Object.keys(this.attributes))o+=" "+u+'="'+g(this.attributes[u])+'"';return o+="/>",o}}function Ua(s){if(s instanceof k0)return s;throw new Error("Expected symbolNode but got "+String(s)+".")}function _r(s){if(s instanceof O0)return s;throw new Error("Expected span<HtmlDomNode> but got "+String(s)+".")}const Rn=s=>s instanceof O0||s instanceof b0||s instanceof it;var q0={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};const Pn={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ps={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Wa(s,o){q0[s]=o}function Vn(s,o,u){if(!q0[o])throw new Error("Font metrics not found for font: "+o+".");let h=s.charCodeAt(0),b=q0[o][h];if(!b&&s[0]in Ps&&(h=Ps[s[0]].charCodeAt(0),b=q0[o][h]),!b&&u==="text"&&Z(h)&&(b=q0[o][77]),b)return{depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]}}const Qi={};function la(s){let o;if(s>=5?o=0:s>=3?o=1:o=2,!Qi[o]){const u=Qi[o]={cssEmPerMu:Pn.quad[o]/18};for(const h in Pn)Pn.hasOwnProperty(h)&&(u[h]=Pn[h][o])}return Qi[o]}const Sc={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Cc={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},It={math:{},text:{}};var xt=It;function y(s,o,u,h,b,A){It[s][b]={font:o,group:u,replace:h},A&&h&&(It[s][h]=It[s][b])}const w="math",ve="text",M="main",H="ams",Ct="accent-token",Fe="bin",Rt="close",dn="inner",We="mathord",Bt="op-token",A0="open",L0="punct",$="rel",dr="spacing",J="textord";y(w,M,$,"≡","\\equiv",!0),y(w,M,$,"≺","\\prec",!0),y(w,M,$,"≻","\\succ",!0),y(w,M,$,"∼","\\sim",!0),y(w,M,$,"⊥","\\perp"),y(w,M,$,"⪯","\\preceq",!0),y(w,M,$,"⪰","\\succeq",!0),y(w,M,$,"≃","\\simeq",!0),y(w,M,$,"∣","\\mid",!0),y(w,M,$,"≪","\\ll",!0),y(w,M,$,"≫","\\gg",!0),y(w,M,$,"≍","\\asymp",!0),y(w,M,$,"∥","\\parallel"),y(w,M,$,"⋈","\\bowtie",!0),y(w,M,$,"⌣","\\smile",!0),y(w,M,$,"⊑","\\sqsubseteq",!0),y(w,M,$,"⊒","\\sqsupseteq",!0),y(w,M,$,"≐","\\doteq",!0),y(w,M,$,"⌢","\\frown",!0),y(w,M,$,"∋","\\ni",!0),y(w,M,$,"∝","\\propto",!0),y(w,M,$,"⊢","\\vdash",!0),y(w,M,$,"⊣","\\dashv",!0),y(w,M,$,"∋","\\owns"),y(w,M,L0,".","\\ldotp"),y(w,M,L0,"⋅","\\cdotp"),y(w,M,L0,"⋅","·"),y(ve,M,J,"⋅","·"),y(w,M,J,"#","\\#"),y(ve,M,J,"#","\\#"),y(w,M,J,"&","\\&"),y(ve,M,J,"&","\\&"),y(w,M,J,"ℵ","\\aleph",!0),y(w,M,J,"∀","\\forall",!0),y(w,M,J,"ℏ","\\hbar",!0),y(w,M,J,"∃","\\exists",!0),y(w,M,J,"∇","\\nabla",!0),y(w,M,J,"♭","\\flat",!0),y(w,M,J,"ℓ","\\ell",!0),y(w,M,J,"♮","\\natural",!0),y(w,M,J,"♣","\\clubsuit",!0),y(w,M,J,"℘","\\wp",!0),y(w,M,J,"♯","\\sharp",!0),y(w,M,J,"♢","\\diamondsuit",!0),y(w,M,J,"ℜ","\\Re",!0),y(w,M,J,"♡","\\heartsuit",!0),y(w,M,J,"ℑ","\\Im",!0),y(w,M,J,"♠","\\spadesuit",!0),y(w,M,J,"§","\\S",!0),y(ve,M,J,"§","\\S"),y(w,M,J,"¶","\\P",!0),y(ve,M,J,"¶","\\P"),y(w,M,J,"†","\\dag"),y(ve,M,J,"†","\\dag"),y(ve,M,J,"†","\\textdagger"),y(w,M,J,"‡","\\ddag"),y(ve,M,J,"‡","\\ddag"),y(ve,M,J,"‡","\\textdaggerdbl"),y(w,M,Rt,"⎱","\\rmoustache",!0),y(w,M,A0,"⎰","\\lmoustache",!0),y(w,M,Rt,"⟯","\\rgroup",!0),y(w,M,A0,"⟮","\\lgroup",!0),y(w,M,Fe,"∓","\\mp",!0),y(w,M,Fe,"⊖","\\ominus",!0),y(w,M,Fe,"⊎","\\uplus",!0),y(w,M,Fe,"⊓","\\sqcap",!0),y(w,M,Fe,"∗","\\ast"),y(w,M,Fe,"⊔","\\sqcup",!0),y(w,M,Fe,"◯","\\bigcirc",!0),y(w,M,Fe,"∙","\\bullet",!0),y(w,M,Fe,"‡","\\ddagger"),y(w,M,Fe,"≀","\\wr",!0),y(w,M,Fe,"⨿","\\amalg"),y(w,M,Fe,"&","\\And"),y(w,M,$,"⟵","\\longleftarrow",!0),y(w,M,$,"⇐","\\Leftarrow",!0),y(w,M,$,"⟸","\\Longleftarrow",!0),y(w,M,$,"⟶","\\longrightarrow",!0),y(w,M,$,"⇒","\\Rightarrow",!0),y(w,M,$,"⟹","\\Longrightarrow",!0),y(w,M,$,"↔","\\leftrightarrow",!0),y(w,M,$,"⟷","\\longleftrightarrow",!0),y(w,M,$,"⇔","\\Leftrightarrow",!0),y(w,M,$,"⟺","\\Longleftrightarrow",!0),y(w,M,$,"↦","\\mapsto",!0),y(w,M,$,"⟼","\\longmapsto",!0),y(w,M,$,"↗","\\nearrow",!0),y(w,M,$,"↩","\\hookleftarrow",!0),y(w,M,$,"↪","\\hookrightarrow",!0),y(w,M,$,"↘","\\searrow",!0),y(w,M,$,"↼","\\leftharpoonup",!0),y(w,M,$,"⇀","\\rightharpoonup",!0),y(w,M,$,"↙","\\swarrow",!0),y(w,M,$,"↽","\\leftharpoondown",!0),y(w,M,$,"⇁","\\rightharpoondown",!0),y(w,M,$,"↖","\\nwarrow",!0),y(w,M,$,"⇌","\\rightleftharpoons",!0),y(w,H,$,"≮","\\nless",!0),y(w,H,$,"","\\@nleqslant"),y(w,H,$,"","\\@nleqq"),y(w,H,$,"⪇","\\lneq",!0),y(w,H,$,"≨","\\lneqq",!0),y(w,H,$,"","\\@lvertneqq"),y(w,H,$,"⋦","\\lnsim",!0),y(w,H,$,"⪉","\\lnapprox",!0),y(w,H,$,"⊀","\\nprec",!0),y(w,H,$,"⋠","\\npreceq",!0),y(w,H,$,"⋨","\\precnsim",!0),y(w,H,$,"⪹","\\precnapprox",!0),y(w,H,$,"≁","\\nsim",!0),y(w,H,$,"","\\@nshortmid"),y(w,H,$,"∤","\\nmid",!0),y(w,H,$,"⊬","\\nvdash",!0),y(w,H,$,"⊭","\\nvDash",!0),y(w,H,$,"⋪","\\ntriangleleft"),y(w,H,$,"⋬","\\ntrianglelefteq",!0),y(w,H,$,"⊊","\\subsetneq",!0),y(w,H,$,"","\\@varsubsetneq"),y(w,H,$,"⫋","\\subsetneqq",!0),y(w,H,$,"","\\@varsubsetneqq"),y(w,H,$,"≯","\\ngtr",!0),y(w,H,$,"","\\@ngeqslant"),y(w,H,$,"","\\@ngeqq"),y(w,H,$,"⪈","\\gneq",!0),y(w,H,$,"≩","\\gneqq",!0),y(w,H,$,"","\\@gvertneqq"),y(w,H,$,"⋧","\\gnsim",!0),y(w,H,$,"⪊","\\gnapprox",!0),y(w,H,$,"⊁","\\nsucc",!0),y(w,H,$,"⋡","\\nsucceq",!0),y(w,H,$,"⋩","\\succnsim",!0),y(w,H,$,"⪺","\\succnapprox",!0),y(w,H,$,"≆","\\ncong",!0),y(w,H,$,"","\\@nshortparallel"),y(w,H,$,"∦","\\nparallel",!0),y(w,H,$,"⊯","\\nVDash",!0),y(w,H,$,"⋫","\\ntriangleright"),y(w,H,$,"⋭","\\ntrianglerighteq",!0),y(w,H,$,"","\\@nsupseteqq"),y(w,H,$,"⊋","\\supsetneq",!0),y(w,H,$,"","\\@varsupsetneq"),y(w,H,$,"⫌","\\supsetneqq",!0),y(w,H,$,"","\\@varsupsetneqq"),y(w,H,$,"⊮","\\nVdash",!0),y(w,H,$,"⪵","\\precneqq",!0),y(w,H,$,"⪶","\\succneqq",!0),y(w,H,$,"","\\@nsubseteqq"),y(w,H,Fe,"⊴","\\unlhd"),y(w,H,Fe,"⊵","\\unrhd"),y(w,H,$,"↚","\\nleftarrow",!0),y(w,H,$,"↛","\\nrightarrow",!0),y(w,H,$,"⇍","\\nLeftarrow",!0),y(w,H,$,"⇏","\\nRightarrow",!0),y(w,H,$,"↮","\\nleftrightarrow",!0),y(w,H,$,"⇎","\\nLeftrightarrow",!0),y(w,H,$,"△","\\vartriangle"),y(w,H,J,"ℏ","\\hslash"),y(w,H,J,"▽","\\triangledown"),y(w,H,J,"◊","\\lozenge"),y(w,H,J,"Ⓢ","\\circledS"),y(w,H,J,"®","\\circledR"),y(ve,H,J,"®","\\circledR"),y(w,H,J,"∡","\\measuredangle",!0),y(w,H,J,"∄","\\nexists"),y(w,H,J,"℧","\\mho"),y(w,H,J,"Ⅎ","\\Finv",!0),y(w,H,J,"⅁","\\Game",!0),y(w,H,J,"‵","\\backprime"),y(w,H,J,"▲","\\blacktriangle"),y(w,H,J,"▼","\\blacktriangledown"),y(w,H,J,"■","\\blacksquare"),y(w,H,J,"⧫","\\blacklozenge"),y(w,H,J,"★","\\bigstar"),y(w,H,J,"∢","\\sphericalangle",!0),y(w,H,J,"∁","\\complement",!0),y(w,H,J,"ð","\\eth",!0),y(ve,M,J,"ð","ð"),y(w,H,J,"╱","\\diagup"),y(w,H,J,"╲","\\diagdown"),y(w,H,J,"□","\\square"),y(w,H,J,"□","\\Box"),y(w,H,J,"◊","\\Diamond"),y(w,H,J,"¥","\\yen",!0),y(ve,H,J,"¥","\\yen",!0),y(w,H,J,"✓","\\checkmark",!0),y(ve,H,J,"✓","\\checkmark"),y(w,H,J,"ℶ","\\beth",!0),y(w,H,J,"ℸ","\\daleth",!0),y(w,H,J,"ℷ","\\gimel",!0),y(w,H,J,"ϝ","\\digamma",!0),y(w,H,J,"ϰ","\\varkappa"),y(w,H,A0,"┌","\\@ulcorner",!0),y(w,H,Rt,"┐","\\@urcorner",!0),y(w,H,A0,"└","\\@llcorner",!0),y(w,H,Rt,"┘","\\@lrcorner",!0),y(w,H,$,"≦","\\leqq",!0),y(w,H,$,"⩽","\\leqslant",!0),y(w,H,$,"⪕","\\eqslantless",!0),y(w,H,$,"≲","\\lesssim",!0),y(w,H,$,"⪅","\\lessapprox",!0),y(w,H,$,"≊","\\approxeq",!0),y(w,H,Fe,"⋖","\\lessdot"),y(w,H,$,"⋘","\\lll",!0),y(w,H,$,"≶","\\lessgtr",!0),y(w,H,$,"⋚","\\lesseqgtr",!0),y(w,H,$,"⪋","\\lesseqqgtr",!0),y(w,H,$,"≑","\\doteqdot"),y(w,H,$,"≓","\\risingdotseq",!0),y(w,H,$,"≒","\\fallingdotseq",!0),y(w,H,$,"∽","\\backsim",!0),y(w,H,$,"⋍","\\backsimeq",!0),y(w,H,$,"⫅","\\subseteqq",!0),y(w,H,$,"⋐","\\Subset",!0),y(w,H,$,"⊏","\\sqsubset",!0),y(w,H,$,"≼","\\preccurlyeq",!0),y(w,H,$,"⋞","\\curlyeqprec",!0),y(w,H,$,"≾","\\precsim",!0),y(w,H,$,"⪷","\\precapprox",!0),y(w,H,$,"⊲","\\vartriangleleft"),y(w,H,$,"⊴","\\trianglelefteq"),y(w,H,$,"⊨","\\vDash",!0),y(w,H,$,"⊪","\\Vvdash",!0),y(w,H,$,"⌣","\\smallsmile"),y(w,H,$,"⌢","\\smallfrown"),y(w,H,$,"≏","\\bumpeq",!0),y(w,H,$,"≎","\\Bumpeq",!0),y(w,H,$,"≧","\\geqq",!0),y(w,H,$,"⩾","\\geqslant",!0),y(w,H,$,"⪖","\\eqslantgtr",!0),y(w,H,$,"≳","\\gtrsim",!0),y(w,H,$,"⪆","\\gtrapprox",!0),y(w,H,Fe,"⋗","\\gtrdot"),y(w,H,$,"⋙","\\ggg",!0),y(w,H,$,"≷","\\gtrless",!0),y(w,H,$,"⋛","\\gtreqless",!0),y(w,H,$,"⪌","\\gtreqqless",!0),y(w,H,$,"≖","\\eqcirc",!0),y(w,H,$,"≗","\\circeq",!0),y(w,H,$,"≜","\\triangleq",!0),y(w,H,$,"∼","\\thicksim"),y(w,H,$,"≈","\\thickapprox"),y(w,H,$,"⫆","\\supseteqq",!0),y(w,H,$,"⋑","\\Supset",!0),y(w,H,$,"⊐","\\sqsupset",!0),y(w,H,$,"≽","\\succcurlyeq",!0),y(w,H,$,"⋟","\\curlyeqsucc",!0),y(w,H,$,"≿","\\succsim",!0),y(w,H,$,"⪸","\\succapprox",!0),y(w,H,$,"⊳","\\vartriangleright"),y(w,H,$,"⊵","\\trianglerighteq"),y(w,H,$,"⊩","\\Vdash",!0),y(w,H,$,"∣","\\shortmid"),y(w,H,$,"∥","\\shortparallel"),y(w,H,$,"≬","\\between",!0),y(w,H,$,"⋔","\\pitchfork",!0),y(w,H,$,"∝","\\varpropto"),y(w,H,$,"◀","\\blacktriangleleft"),y(w,H,$,"∴","\\therefore",!0),y(w,H,$,"∍","\\backepsilon"),y(w,H,$,"▶","\\blacktriangleright"),y(w,H,$,"∵","\\because",!0),y(w,H,$,"⋘","\\llless"),y(w,H,$,"⋙","\\gggtr"),y(w,H,Fe,"⊲","\\lhd"),y(w,H,Fe,"⊳","\\rhd"),y(w,H,$,"≂","\\eqsim",!0),y(w,M,$,"⋈","\\Join"),y(w,H,$,"≑","\\Doteq",!0),y(w,H,Fe,"∔","\\dotplus",!0),y(w,H,Fe,"∖","\\smallsetminus"),y(w,H,Fe,"⋒","\\Cap",!0),y(w,H,Fe,"⋓","\\Cup",!0),y(w,H,Fe,"⩞","\\doublebarwedge",!0),y(w,H,Fe,"⊟","\\boxminus",!0),y(w,H,Fe,"⊞","\\boxplus",!0),y(w,H,Fe,"⋇","\\divideontimes",!0),y(w,H,Fe,"⋉","\\ltimes",!0),y(w,H,Fe,"⋊","\\rtimes",!0),y(w,H,Fe,"⋋","\\leftthreetimes",!0),y(w,H,Fe,"⋌","\\rightthreetimes",!0),y(w,H,Fe,"⋏","\\curlywedge",!0),y(w,H,Fe,"⋎","\\curlyvee",!0),y(w,H,Fe,"⊝","\\circleddash",!0),y(w,H,Fe,"⊛","\\circledast",!0),y(w,H,Fe,"⋅","\\centerdot"),y(w,H,Fe,"⊺","\\intercal",!0),y(w,H,Fe,"⋒","\\doublecap"),y(w,H,Fe,"⋓","\\doublecup"),y(w,H,Fe,"⊠","\\boxtimes",!0),y(w,H,$,"⇢","\\dashrightarrow",!0),y(w,H,$,"⇠","\\dashleftarrow",!0),y(w,H,$,"⇇","\\leftleftarrows",!0),y(w,H,$,"⇆","\\leftrightarrows",!0),y(w,H,$,"⇚","\\Lleftarrow",!0),y(w,H,$,"↞","\\twoheadleftarrow",!0),y(w,H,$,"↢","\\leftarrowtail",!0),y(w,H,$,"↫","\\looparrowleft",!0),y(w,H,$,"⇋","\\leftrightharpoons",!0),y(w,H,$,"↶","\\curvearrowleft",!0),y(w,H,$,"↺","\\circlearrowleft",!0),y(w,H,$,"↰","\\Lsh",!0),y(w,H,$,"⇈","\\upuparrows",!0),y(w,H,$,"↿","\\upharpoonleft",!0),y(w,H,$,"⇃","\\downharpoonleft",!0),y(w,M,$,"⊶","\\origof",!0),y(w,M,$,"⊷","\\imageof",!0),y(w,H,$,"⊸","\\multimap",!0),y(w,H,$,"↭","\\leftrightsquigarrow",!0),y(w,H,$,"⇉","\\rightrightarrows",!0),y(w,H,$,"⇄","\\rightleftarrows",!0),y(w,H,$,"↠","\\twoheadrightarrow",!0),y(w,H,$,"↣","\\rightarrowtail",!0),y(w,H,$,"↬","\\looparrowright",!0),y(w,H,$,"↷","\\curvearrowright",!0),y(w,H,$,"↻","\\circlearrowright",!0),y(w,H,$,"↱","\\Rsh",!0),y(w,H,$,"⇊","\\downdownarrows",!0),y(w,H,$,"↾","\\upharpoonright",!0),y(w,H,$,"⇂","\\downharpoonright",!0),y(w,H,$,"⇝","\\rightsquigarrow",!0),y(w,H,$,"⇝","\\leadsto"),y(w,H,$,"⇛","\\Rrightarrow",!0),y(w,H,$,"↾","\\restriction"),y(w,M,J,"‘","`"),y(w,M,J,"$","\\$"),y(ve,M,J,"$","\\$"),y(ve,M,J,"$","\\textdollar"),y(w,M,J,"%","\\%"),y(ve,M,J,"%","\\%"),y(w,M,J,"_","\\_"),y(ve,M,J,"_","\\_"),y(ve,M,J,"_","\\textunderscore"),y(w,M,J,"∠","\\angle",!0),y(w,M,J,"∞","\\infty",!0),y(w,M,J,"′","\\prime"),y(w,M,J,"△","\\triangle"),y(w,M,J,"Γ","\\Gamma",!0),y(w,M,J,"Δ","\\Delta",!0),y(w,M,J,"Θ","\\Theta",!0),y(w,M,J,"Λ","\\Lambda",!0),y(w,M,J,"Ξ","\\Xi",!0),y(w,M,J,"Π","\\Pi",!0),y(w,M,J,"Σ","\\Sigma",!0),y(w,M,J,"Υ","\\Upsilon",!0),y(w,M,J,"Φ","\\Phi",!0),y(w,M,J,"Ψ","\\Psi",!0),y(w,M,J,"Ω","\\Omega",!0),y(w,M,J,"A","Α"),y(w,M,J,"B","Β"),y(w,M,J,"E","Ε"),y(w,M,J,"Z","Ζ"),y(w,M,J,"H","Η"),y(w,M,J,"I","Ι"),y(w,M,J,"K","Κ"),y(w,M,J,"M","Μ"),y(w,M,J,"N","Ν"),y(w,M,J,"O","Ο"),y(w,M,J,"P","Ρ"),y(w,M,J,"T","Τ"),y(w,M,J,"X","Χ"),y(w,M,J,"¬","\\neg",!0),y(w,M,J,"¬","\\lnot"),y(w,M,J,"⊤","\\top"),y(w,M,J,"⊥","\\bot"),y(w,M,J,"∅","\\emptyset"),y(w,H,J,"∅","\\varnothing"),y(w,M,We,"α","\\alpha",!0),y(w,M,We,"β","\\beta",!0),y(w,M,We,"γ","\\gamma",!0),y(w,M,We,"δ","\\delta",!0),y(w,M,We,"ϵ","\\epsilon",!0),y(w,M,We,"ζ","\\zeta",!0),y(w,M,We,"η","\\eta",!0),y(w,M,We,"θ","\\theta",!0),y(w,M,We,"ι","\\iota",!0),y(w,M,We,"κ","\\kappa",!0),y(w,M,We,"λ","\\lambda",!0),y(w,M,We,"μ","\\mu",!0),y(w,M,We,"ν","\\nu",!0),y(w,M,We,"ξ","\\xi",!0),y(w,M,We,"ο","\\omicron",!0),y(w,M,We,"π","\\pi",!0),y(w,M,We,"ρ","\\rho",!0),y(w,M,We,"σ","\\sigma",!0),y(w,M,We,"τ","\\tau",!0),y(w,M,We,"υ","\\upsilon",!0),y(w,M,We,"ϕ","\\phi",!0),y(w,M,We,"χ","\\chi",!0),y(w,M,We,"ψ","\\psi",!0),y(w,M,We,"ω","\\omega",!0),y(w,M,We,"ε","\\varepsilon",!0),y(w,M,We,"ϑ","\\vartheta",!0),y(w,M,We,"ϖ","\\varpi",!0),y(w,M,We,"ϱ","\\varrho",!0),y(w,M,We,"ς","\\varsigma",!0),y(w,M,We,"φ","\\varphi",!0),y(w,M,Fe,"∗","*",!0),y(w,M,Fe,"+","+"),y(w,M,Fe,"−","-",!0),y(w,M,Fe,"⋅","\\cdot",!0),y(w,M,Fe,"∘","\\circ",!0),y(w,M,Fe,"÷","\\div",!0),y(w,M,Fe,"±","\\pm",!0),y(w,M,Fe,"×","\\times",!0),y(w,M,Fe,"∩","\\cap",!0),y(w,M,Fe,"∪","\\cup",!0),y(w,M,Fe,"∖","\\setminus",!0),y(w,M,Fe,"∧","\\land"),y(w,M,Fe,"∨","\\lor"),y(w,M,Fe,"∧","\\wedge",!0),y(w,M,Fe,"∨","\\vee",!0),y(w,M,J,"√","\\surd"),y(w,M,A0,"⟨","\\langle",!0),y(w,M,A0,"∣","\\lvert"),y(w,M,A0,"∥","\\lVert"),y(w,M,Rt,"?","?"),y(w,M,Rt,"!","!"),y(w,M,Rt,"⟩","\\rangle",!0),y(w,M,Rt,"∣","\\rvert"),y(w,M,Rt,"∥","\\rVert"),y(w,M,$,"=","="),y(w,M,$,":",":"),y(w,M,$,"≈","\\approx",!0),y(w,M,$,"≅","\\cong",!0),y(w,M,$,"≥","\\ge"),y(w,M,$,"≥","\\geq",!0),y(w,M,$,"←","\\gets"),y(w,M,$,">","\\gt",!0),y(w,M,$,"∈","\\in",!0),y(w,M,$,"","\\@not"),y(w,M,$,"⊂","\\subset",!0),y(w,M,$,"⊃","\\supset",!0),y(w,M,$,"⊆","\\subseteq",!0),y(w,M,$,"⊇","\\supseteq",!0),y(w,H,$,"⊈","\\nsubseteq",!0),y(w,H,$,"⊉","\\nsupseteq",!0),y(w,M,$,"⊨","\\models"),y(w,M,$,"←","\\leftarrow",!0),y(w,M,$,"≤","\\le"),y(w,M,$,"≤","\\leq",!0),y(w,M,$,"<","\\lt",!0),y(w,M,$,"→","\\rightarrow",!0),y(w,M,$,"→","\\to"),y(w,H,$,"≱","\\ngeq",!0),y(w,H,$,"≰","\\nleq",!0),y(w,M,dr," ","\\ "),y(w,M,dr," ","\\space"),y(w,M,dr," ","\\nobreakspace"),y(ve,M,dr," ","\\ "),y(ve,M,dr," "," "),y(ve,M,dr," ","\\space"),y(ve,M,dr," ","\\nobreakspace"),y(w,M,dr,null,"\\nobreak"),y(w,M,dr,null,"\\allowbreak"),y(w,M,L0,",",","),y(w,M,L0,";",";"),y(w,H,Fe,"⊼","\\barwedge",!0),y(w,H,Fe,"⊻","\\veebar",!0),y(w,M,Fe,"⊙","\\odot",!0),y(w,M,Fe,"⊕","\\oplus",!0),y(w,M,Fe,"⊗","\\otimes",!0),y(w,M,J,"∂","\\partial",!0),y(w,M,Fe,"⊘","\\oslash",!0),y(w,H,Fe,"⊚","\\circledcirc",!0),y(w,H,Fe,"⊡","\\boxdot",!0),y(w,M,Fe,"△","\\bigtriangleup"),y(w,M,Fe,"▽","\\bigtriangledown"),y(w,M,Fe,"†","\\dagger"),y(w,M,Fe,"⋄","\\diamond"),y(w,M,Fe,"⋆","\\star"),y(w,M,Fe,"◃","\\triangleleft"),y(w,M,Fe,"▹","\\triangleright"),y(w,M,A0,"{","\\{"),y(ve,M,J,"{","\\{"),y(ve,M,J,"{","\\textbraceleft"),y(w,M,Rt,"}","\\}"),y(ve,M,J,"}","\\}"),y(ve,M,J,"}","\\textbraceright"),y(w,M,A0,"{","\\lbrace"),y(w,M,Rt,"}","\\rbrace"),y(w,M,A0,"[","\\lbrack",!0),y(ve,M,J,"[","\\lbrack",!0),y(w,M,Rt,"]","\\rbrack",!0),y(ve,M,J,"]","\\rbrack",!0),y(w,M,A0,"(","\\lparen",!0),y(w,M,Rt,")","\\rparen",!0),y(ve,M,J,"<","\\textless",!0),y(ve,M,J,">","\\textgreater",!0),y(w,M,A0,"⌊","\\lfloor",!0),y(w,M,Rt,"⌋","\\rfloor",!0),y(w,M,A0,"⌈","\\lceil",!0),y(w,M,Rt,"⌉","\\rceil",!0),y(w,M,J,"\\","\\backslash"),y(w,M,J,"∣","|"),y(w,M,J,"∣","\\vert"),y(ve,M,J,"|","\\textbar",!0),y(w,M,J,"∥","\\|"),y(w,M,J,"∥","\\Vert"),y(ve,M,J,"∥","\\textbardbl"),y(ve,M,J,"~","\\textasciitilde"),y(ve,M,J,"\\","\\textbackslash"),y(ve,M,J,"^","\\textasciicircum"),y(w,M,$,"↑","\\uparrow",!0),y(w,M,$,"⇑","\\Uparrow",!0),y(w,M,$,"↓","\\downarrow",!0),y(w,M,$,"⇓","\\Downarrow",!0),y(w,M,$,"↕","\\updownarrow",!0),y(w,M,$,"⇕","\\Updownarrow",!0),y(w,M,Bt,"∐","\\coprod"),y(w,M,Bt,"⋁","\\bigvee"),y(w,M,Bt,"⋀","\\bigwedge"),y(w,M,Bt,"⨄","\\biguplus"),y(w,M,Bt,"⋂","\\bigcap"),y(w,M,Bt,"⋃","\\bigcup"),y(w,M,Bt,"∫","\\int"),y(w,M,Bt,"∫","\\intop"),y(w,M,Bt,"∬","\\iint"),y(w,M,Bt,"∭","\\iiint"),y(w,M,Bt,"∏","\\prod"),y(w,M,Bt,"∑","\\sum"),y(w,M,Bt,"⨂","\\bigotimes"),y(w,M,Bt,"⨁","\\bigoplus"),y(w,M,Bt,"⨀","\\bigodot"),y(w,M,Bt,"∮","\\oint"),y(w,M,Bt,"∯","\\oiint"),y(w,M,Bt,"∰","\\oiiint"),y(w,M,Bt,"⨆","\\bigsqcup"),y(w,M,Bt,"∫","\\smallint"),y(ve,M,dn,"…","\\textellipsis"),y(w,M,dn,"…","\\mathellipsis"),y(ve,M,dn,"…","\\ldots",!0),y(w,M,dn,"…","\\ldots",!0),y(w,M,dn,"⋯","\\@cdots",!0),y(w,M,dn,"⋱","\\ddots",!0),y(w,M,J,"⋮","\\varvdots"),y(ve,M,J,"⋮","\\varvdots"),y(w,M,Ct,"ˊ","\\acute"),y(w,M,Ct,"ˋ","\\grave"),y(w,M,Ct,"¨","\\ddot"),y(w,M,Ct,"~","\\tilde"),y(w,M,Ct,"ˉ","\\bar"),y(w,M,Ct,"˘","\\breve"),y(w,M,Ct,"ˇ","\\check"),y(w,M,Ct,"^","\\hat"),y(w,M,Ct,"⃗","\\vec"),y(w,M,Ct,"˙","\\dot"),y(w,M,Ct,"˚","\\mathring"),y(w,M,We,"","\\@imath"),y(w,M,We,"","\\@jmath"),y(w,M,J,"ı","ı"),y(w,M,J,"ȷ","ȷ"),y(ve,M,J,"ı","\\i",!0),y(ve,M,J,"ȷ","\\j",!0),y(ve,M,J,"ß","\\ss",!0),y(ve,M,J,"æ","\\ae",!0),y(ve,M,J,"œ","\\oe",!0),y(ve,M,J,"ø","\\o",!0),y(ve,M,J,"Æ","\\AE",!0),y(ve,M,J,"Œ","\\OE",!0),y(ve,M,J,"Ø","\\O",!0),y(ve,M,Ct,"ˊ","\\'"),y(ve,M,Ct,"ˋ","\\`"),y(ve,M,Ct,"ˆ","\\^"),y(ve,M,Ct,"˜","\\~"),y(ve,M,Ct,"ˉ","\\="),y(ve,M,Ct,"˘","\\u"),y(ve,M,Ct,"˙","\\."),y(ve,M,Ct,"¸","\\c"),y(ve,M,Ct,"˚","\\r"),y(ve,M,Ct,"ˇ","\\v"),y(ve,M,Ct,"¨",'\\"'),y(ve,M,Ct,"˝","\\H"),y(ve,M,Ct,"◯","\\textcircled");const Ji={"--":!0,"---":!0,"``":!0,"''":!0};y(ve,M,J,"–","--",!0),y(ve,M,J,"–","\\textendash"),y(ve,M,J,"—","---",!0),y(ve,M,J,"—","\\textemdash"),y(ve,M,J,"‘","`",!0),y(ve,M,J,"‘","\\textquoteleft"),y(ve,M,J,"’","'",!0),y(ve,M,J,"’","\\textquoteright"),y(ve,M,J,"“","``",!0),y(ve,M,J,"“","\\textquotedblleft"),y(ve,M,J,"”","''",!0),y(ve,M,J,"”","\\textquotedblright"),y(w,M,J,"°","\\degree",!0),y(ve,M,J,"°","\\degree"),y(ve,M,J,"°","\\textdegree",!0),y(w,M,J,"£","\\pounds"),y(w,M,J,"£","\\mathsterling",!0),y(ve,M,J,"£","\\pounds"),y(ve,M,J,"£","\\textsterling",!0),y(w,H,J,"✠","\\maltese"),y(ve,H,J,"✠","\\maltese");const Vs='0123456789/@."';for(let s=0;s<Vs.length;s++){const o=Vs.charAt(s);y(w,M,J,o,o)}const $e='0123456789!@*()-=+";:?/.,';for(let s=0;s<$e.length;s++){const o=$e.charAt(s);y(ve,M,J,o,o)}const K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let s=0;s<K.length;s++){const o=K.charAt(s);y(w,M,We,o,o),y(ve,M,J,o,o)}y(w,H,J,"C","ℂ"),y(ve,H,J,"C","ℂ"),y(w,H,J,"H","ℍ"),y(ve,H,J,"H","ℍ"),y(w,H,J,"N","ℕ"),y(ve,H,J,"N","ℕ"),y(w,H,J,"P","ℙ"),y(ve,H,J,"P","ℙ"),y(w,H,J,"Q","ℚ"),y(ve,H,J,"Q","ℚ"),y(w,H,J,"R","ℝ"),y(ve,H,J,"R","ℝ"),y(w,H,J,"Z","ℤ"),y(ve,H,J,"Z","ℤ"),y(w,M,We,"h","ℎ"),y(ve,M,We,"h","ℎ");let de="";for(let s=0;s<K.length;s++){const o=K.charAt(s);de=String.fromCharCode(55349,56320+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,56372+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,56424+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,56580+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,56684+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,56736+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,56788+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,56840+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,56944+s),y(w,M,We,o,de),y(ve,M,J,o,de),s<26&&(de=String.fromCharCode(55349,56632+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,56476+s),y(w,M,We,o,de),y(ve,M,J,o,de))}de="𝕜",y(w,M,We,"k",de),y(ve,M,J,"k",de);for(let s=0;s<10;s++){const o=s.toString();de=String.fromCharCode(55349,57294+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,57314+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,57324+s),y(w,M,We,o,de),y(ve,M,J,o,de),de=String.fromCharCode(55349,57334+s),y(w,M,We,o,de),y(ve,M,J,o,de)}const He="ÐÞþ";for(let s=0;s<He.length;s++){const o=He.charAt(s);y(w,M,We,o,o),y(ve,M,J,o,o)}const vt=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],o0=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],jt=(s,o)=>{const u=s.charCodeAt(0),h=s.charCodeAt(1),b=(u-55296)*1024+(h-56320)+65536,A=o==="math"?0:1;if(119808<=b&&b<120484){const T=Math.floor((b-119808)/26);return[vt[T][2],vt[T][A]]}else if(120782<=b&&b<=120831){const T=Math.floor((b-120782)/10);return[o0[T][2],o0[T][A]]}else{if(b===120485||b===120486)return[vt[0][2],vt[0][A]];if(120486<b&&b<120782)return["",""];throw new a("Unsupported character: "+s)}},s0=function(s,o,u){if(xt[u][s]){const h=xt[u][s].replace;h&&(s=h)}return{value:s,metrics:Vn(s,o,u)}},Dt=function(s,o,u,h,b){const A=s0(s,o,u),T=A.metrics;s=A.value;let I;if(T){let P=T.italic;(u==="text"||h&&h.font==="mathit")&&(P=0),I=new k0(s,T.height,T.depth,P,T.skew,T.width,b)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+s+"' in style '"+o+"' and mode '"+u+"'")),I=new k0(s,0,0,0,0,0,b);if(h){I.maxFontSize=h.sizeMultiplier,h.style.isTight()&&I.classes.push("mtight");const P=h.getColor();P&&(I.style.color=P)}return I},Zr=function(s,o,u,h){return h===void 0&&(h=[]),u.font==="boldsymbol"&&s0(s,"Main-Bold",o).metrics?Dt(s,"Main-Bold",o,u,h.concat(["mathbf"])):s==="\\"||xt[o][s].font==="main"?Dt(s,"Main-Regular",o,u,h):Dt(s,"AMS-Regular",o,u,h.concat(["amsrm"]))},eo=function(s,o,u,h,b){return b!=="textord"&&s0(s,"Math-BoldItalic",o).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},$t=function(s,o,u){const h=s.mode,b=s.text,A=["mord"],T=h==="math"||h==="text"&&o.font,I=T?o.font:o.fontFamily;let P="",G="";if(b.charCodeAt(0)===55349&&([P,G]=jt(b,h)),P.length>0)return Dt(b,P,h,o,A.concat(G));if(I){let re,se;if(I==="boldsymbol"){const le=eo(b,h,o,A,u);re=le.fontName,se=[le.fontClass]}else T?(re=Ec[I].fontName,se=[I]):(re=qs(I,o.fontWeight,o.fontShape),se=[I,o.fontWeight,o.fontShape]);if(s0(b,re,h).metrics)return Dt(b,re,h,o,A.concat(se));if(Ji.hasOwnProperty(b)&&re.slice(0,10)==="Typewriter"){const le=[];for(let we=0;we<b.length;we++)le.push(Dt(b[we],re,h,o,A.concat(se)));return fn(le)}}if(u==="mathord")return Dt(b,"Math-Italic",h,o,A.concat(["mathnormal"]));if(u==="textord"){const re=xt[h][b]&&xt[h][b].font;if(re==="ams"){const se=qs("amsrm",o.fontWeight,o.fontShape);return Dt(b,se,h,o,A.concat("amsrm",o.fontWeight,o.fontShape))}else if(re==="main"||!re){const se=qs("textrm",o.fontWeight,o.fontShape);return Dt(b,se,h,o,A.concat(o.fontWeight,o.fontShape))}else{const se=qs(re,o.fontWeight,o.fontShape);return Dt(b,se,h,o,A.concat(se,o.fontWeight,o.fontShape))}}else throw new Error("unexpected type: "+u+" in makeOrd")},Hs=(s,o)=>{if(rr(s.classes)!==rr(o.classes)||s.skew!==o.skew||s.maxFontSize!==o.maxFontSize||s.italic!==0&&s.hasClass("mathnormal"))return!1;if(s.classes.length===1){const u=s.classes[0];if(u==="mbin"||u==="mord")return!1}for(const u of Object.keys(s.style))if(s.style[u]!==o.style[u])return!1;for(const u of Object.keys(o.style))if(s.style[u]!==o.style[u])return!1;return!0},to=s=>{for(let o=0;o<s.length-1;o++){const u=s[o],h=s[o+1];u instanceof k0&&h instanceof k0&&Hs(u,h)&&(u.text+=h.text,u.height=Math.max(u.height,h.height),u.depth=Math.max(u.depth,h.depth),u.italic=h.italic,s.splice(o+1,1),o--)}return s},Tc=function(s){let o=0,u=0,h=0;for(let b=0;b<s.children.length;b++){const A=s.children[b];A.height>o&&(o=A.height),A.depth>u&&(u=A.depth),A.maxFontSize>h&&(h=A.maxFontSize)}s.height=o,s.depth=u,s.maxFontSize=h},Ee=function(s,o,u,h){const b=new O0(s,o,u,h);return Tc(b),b},Hn=(s,o,u,h)=>new O0(s,o,u,h),Ga=function(s,o,u){const h=Ee([s],[],o);return h.height=Math.max(u||o.fontMetrics().defaultRuleThickness,o.minRuleThickness),h.style.borderBottomWidth=Se(h.height),h.maxFontSize=1,h},Oy=function(s,o,u,h){const b=new b0(s,o,u,h);return Tc(b),b},fn=function(s){const o=new it(s);return Tc(o),o},Xa=function(s,o){return s instanceof it?Ee([],[s],o):s},Ly=function(s){if(s.positionType==="individualShift"){const u=s.children,h=[u[0]],b=-u[0].shift-u[0].elem.depth;let A=b;for(let T=1;T<u.length;T++){const I=-u[T].shift-A-u[T].elem.depth,P=I-(u[T-1].elem.height+u[T-1].elem.depth);A=A+I,h.push({type:"kern",size:P}),h.push(u[T])}return{children:h,depth:b}}let o;if(s.positionType==="top"){let u=s.positionData;for(let h=0;h<s.children.length;h++){const b=s.children[h];u-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}o=u}else if(s.positionType==="bottom")o=-s.positionData;else{const u=s.children[0];if(u.type!=="elem")throw new Error('First child must have type "elem".');if(s.positionType==="shift")o=-u.elem.depth-s.positionData;else if(s.positionType==="firstBaseline")o=-u.elem.depth;else throw new Error("Invalid positionType "+s.positionType+".")}return{children:s.children,depth:o}},pt=function(s,o){const{children:u,depth:h}=Ly(s);let b=0;for(let we=0;we<u.length;we++){const Ie=u[we];if(Ie.type==="elem"){const je=Ie.elem;b=Math.max(b,je.maxFontSize,je.height)}}b+=2;const A=Ee(["pstrut"],[]);A.style.height=Se(b);const T=[];let I=h,P=h,G=h;for(let we=0;we<u.length;we++){const Ie=u[we];if(Ie.type==="kern")G+=Ie.size;else{const je=Ie.elem,ut=Ie.wrapperClasses||[],Qe=Ie.wrapperStyle||{},ct=Ee(ut,[A,je],void 0,Qe);ct.style.top=Se(-b-G-je.depth),Ie.marginLeft&&(ct.style.marginLeft=Ie.marginLeft),Ie.marginRight&&(ct.style.marginRight=Ie.marginRight),T.push(ct),G+=je.height+je.depth}I=Math.min(I,G),P=Math.max(P,G)}const re=Ee(["vlist"],T);re.style.height=Se(P);let se;if(I<0){const we=Ee([],[]),Ie=Ee(["vlist"],[we]);Ie.style.height=Se(-I);const je=Ee(["vlist-s"],[new k0("")]);se=[Ee(["vlist-r"],[re,je]),Ee(["vlist-r"],[Ie])]}else se=[Ee(["vlist-r"],[re])];const le=Ee(["vlist-t"],se);return se.length===2&&le.classes.push("vlist-t2"),le.height=P,le.depth=-I,le},bh=(s,o)=>{const u=Ee(["mspace"],[],o),h=lt(s,o);return u.style.marginRight=Se(h),u},qs=function(s,o,u){let h="";switch(s){case"amsrm":h="AMS";break;case"textrm":h="Main";break;case"textsf":h="SansSerif";break;case"texttt":h="Typewriter";break;default:h=s}let b;return o==="textbf"&&u==="textit"?b="BoldItalic":o==="textbf"?b="Bold":o==="textit"?b="Italic":b="Regular",h+"-"+b},Ec={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},yh={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},vh=function(s,o){const[u,h,b]=yh[s],A=new zr(u),T=new nr([A],{width:Se(h),height:Se(b),style:"width:"+Se(h),viewBox:"0 0 "+1e3*h+" "+1e3*b,preserveAspectRatio:"xMinYMin"}),I=Hn(["overlay"],[T],o);return I.height=b,I.style.height=Se(b),I.style.width=Se(h),I},Pt={number:3,unit:"mu"},ua={number:4,unit:"mu"},hn={number:5,unit:"mu"},Ry={mord:{mop:Pt,mbin:ua,mrel:hn,minner:Pt},mop:{mord:Pt,mop:Pt,mrel:hn,minner:Pt},mbin:{mord:ua,mop:ua,mopen:ua,minner:ua},mrel:{mord:hn,mop:hn,mopen:hn,minner:hn},mopen:{},mclose:{mop:Pt,mbin:ua,mrel:hn,minner:Pt},mpunct:{mord:Pt,mop:Pt,mrel:hn,mopen:Pt,mclose:Pt,mpunct:Pt,minner:Pt},minner:{mord:Pt,mop:Pt,mbin:ua,mrel:hn,mopen:Pt,mpunct:Pt,minner:Pt}},Py={mord:{mop:Pt},mop:{mord:Pt,mop:Pt},mbin:{},mrel:{},mopen:{},mclose:{mop:Pt},mpunct:{},minner:{mop:Pt}},xh={},js={},$s={};function Pe(s){let{type:o,names:u,props:h,handler:b,htmlBuilder:A,mathmlBuilder:T}=s;const I={type:o,numArgs:h.numArgs,argTypes:h.argTypes,allowedInArgument:!!h.allowedInArgument,allowedInText:!!h.allowedInText,allowedInMath:h.allowedInMath===void 0?!0:h.allowedInMath,numOptionalArgs:h.numOptionalArgs||0,infix:!!h.infix,primitive:!!h.primitive,handler:b};for(let P=0;P<u.length;++P)xh[u[P]]=I;o&&(A&&(js[o]=A),T&&($s[o]=T))}function ca(s){let{type:o,htmlBuilder:u,mathmlBuilder:h}=s;Pe({type:o,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:u,mathmlBuilder:h})}const Us=function(s){return s.type==="ordgroup"&&s.body.length===1?s.body[0]:s},Jt=function(s){return s.type==="ordgroup"?s.body:[s]},Vy=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Hy=new Set(["rightmost","mrel","mclose","mpunct"]),qy={display:ne.DISPLAY,text:ne.TEXT,script:ne.SCRIPT,scriptscript:ne.SCRIPTSCRIPT},jy={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},l0=function(s,o,u,h){h===void 0&&(h=[null,null]);const b=[];for(let G=0;G<s.length;G++){const re=gt(s[G],o);if(re instanceof it){const se=re.children;b.push(...se)}else b.push(re)}if(to(b),!u)return b;let A=o;if(s.length===1){const G=s[0];G.type==="sizing"?A=o.havingSize(G.size):G.type==="styling"&&(A=o.havingStyle(qy[G.style]))}const T=Ee([h[0]||"leftmost"],[],o),I=Ee([h[1]||"rightmost"],[],o),P=u==="root";return Dc(b,(G,re)=>{const se=re.classes[0],le=G.classes[0];se==="mbin"&&Hy.has(le)?re.classes[0]="mord":le==="mbin"&&Vy.has(se)&&(G.classes[0]="mord")},{node:T},I,P),Dc(b,(G,re)=>{var se,le;const we=Nc(re),Ie=Nc(G),je=we&&Ie?G.hasClass("mtight")?(se=Py[we])==null?void 0:se[Ie]:(le=Ry[we])==null?void 0:le[Ie]:null;if(je)return bh(je,A)},{node:T},I,P),b},Dc=function(s,o,u,h,b){h&&s.push(h);let A=0;for(;A<s.length;A++){const T=s[A],I=wh(T);if(I){Dc(I.children,o,u,null,b);continue}const P=!T.hasClass("mspace");if(P){const G=o(T,u.node);G&&(u.insertAfter?u.insertAfter(G):(s.unshift(G),A++))}P?u.node=T:b&&T.hasClass("newline")&&(u.node=Ee(["leftmost"])),u.insertAfter=(G=>re=>{s.splice(G+1,0,re),A++})(A)}h&&s.pop()},wh=function(s){return s instanceof it||s instanceof b0||s instanceof O0&&s.hasClass("enclosing")?s:null},Mc=function(s,o){const u=wh(s);if(u){const h=u.children;if(h.length){if(o==="right")return Mc(h[h.length-1],"right");if(o==="left")return Mc(h[0],"left")}}return s},Nc=function(s,o){if(!s)return null;o&&(s=Mc(s,o));const u=s.classes[0];return jy[u]||null},ro=function(s,o){const u=["nulldelimiter"].concat(s.baseSizingClasses());return Ee(o.concat(u))},gt=function(s,o,u){if(!s)return Ee();if(js[s.type]){let h=js[s.type](s,o);if(u&&o.size!==u.size){h=Ee(o.sizingClasses(u),[h],o);const b=o.sizeMultiplier/u.sizeMultiplier;h.height*=b,h.depth*=b}return h}else throw new a("Got group of unknown type: '"+s.type+"'")};function Ws(s,o){const u=Ee(["base"],s,o),h=Ee(["strut"]);return h.style.height=Se(u.height+u.depth),u.depth&&(h.style.verticalAlign=Se(-u.depth)),u.children.unshift(h),u}function zc(s,o){let u=null;s.length===1&&s[0].type==="tag"&&(u=s[0].tag,s=s[0].body);const h=l0(s,o,"root");let b;h.length===2&&h[1].hasClass("tag")&&(b=h.pop());const A=[];let T=[];for(let G=0;G<h.length;G++)if(T.push(h[G]),h[G].hasClass("mbin")||h[G].hasClass("mrel")||h[G].hasClass("allowbreak")){let re=!1;for(;G<h.length-1&&h[G+1].hasClass("mspace")&&!h[G+1].hasClass("newline");)G++,T.push(h[G]),h[G].hasClass("nobreak")&&(re=!0);re||(A.push(Ws(T,o)),T=[])}else h[G].hasClass("newline")&&(T.pop(),T.length>0&&(A.push(Ws(T,o)),T=[]),A.push(h[G]));T.length>0&&A.push(Ws(T,o));let I;u?(I=Ws(l0(u,o,!0),o),I.classes=["tag"],A.push(I)):b&&A.push(b);const P=Ee(["katex-html"],A);if(P.setAttribute("aria-hidden","true"),I){const G=I.children[0];G.style.height=Se(P.height+P.depth),P.depth&&(G.style.verticalAlign=Se(-P.depth))}return P}function kh(s){return new it(s)}class Ne{constructor(o,u,h){this.type=o,this.attributes={},this.children=u||[],this.classes=h||[]}setAttribute(o,u){this.attributes[o]=u}getAttribute(o){return this.attributes[o]}toNode(){const o=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const u in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,u)&&o.setAttribute(u,this.attributes[u]);this.classes.length>0&&(o.className=rr(this.classes));for(let u=0;u<this.children.length;u++)if(this.children[u]instanceof e0&&this.children[u+1]instanceof e0){let h=this.children[u].toText()+this.children[++u].toText();for(;this.children[u+1]instanceof e0;)h+=this.children[++u].toText();o.appendChild(new e0(h).toNode())}else o.appendChild(this.children[u].toNode());return o}toMarkup(){let o="<"+this.type;for(const u in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,u)&&(o+=" "+u+'="',o+=g(this.attributes[u]),o+='"');this.classes.length>0&&(o+=' class ="'+g(rr(this.classes))+'"'),o+=">";for(let u=0;u<this.children.length;u++)o+=this.children[u].toMarkup();return o+="</"+this.type+">",o}toText(){return this.children.map(o=>o.toText()).join("")}}class e0{constructor(o){this.text=o}toNode(){return document.createTextNode(this.text)}toMarkup(){return g(this.toText())}toText(){return this.text}}class Ah{constructor(o){this.width=o,o>=.05555&&o<=.05556?this.character=" ":o>=.1666&&o<=.1667?this.character=" ":o>=.2222&&o<=.2223?this.character=" ":o>=.2777&&o<=.2778?this.character=" ":o>=-.05556&&o<=-.05555?this.character=" ":o>=-.1667&&o<=-.1666?this.character=" ":o>=-.2223&&o<=-.2222?this.character=" ":o>=-.2778&&o<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);{const o=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return o.setAttribute("width",Se(this.width)),o}}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Se(this.width)+'"/>'}toText(){return this.character?this.character:" "}}const $y=new Set(["\\imath","\\jmath"]),Uy=new Set(["mrow","mtable"]),fr=function(s,o,u){return xt[o][s]&&xt[o][s].replace&&s.charCodeAt(0)!==55349&&!(Ji.hasOwnProperty(s)&&u&&(u.fontFamily&&u.fontFamily.slice(4,6)==="tt"||u.font&&u.font.slice(4,6)==="tt"))&&(s=xt[o][s].replace),new e0(s)},_c=function(s){return s.length===1?s[0]:new Ne("mrow",s)},Fc=function(s,o){if(o.fontFamily==="texttt")return"monospace";if(o.fontFamily==="textsf")return o.fontShape==="textit"&&o.fontWeight==="textbf"?"sans-serif-bold-italic":o.fontShape==="textit"?"sans-serif-italic":o.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(o.fontShape==="textit"&&o.fontWeight==="textbf")return"bold-italic";if(o.fontShape==="textit")return"italic";if(o.fontWeight==="textbf")return"bold";const u=o.font;if(!u||u==="mathnormal")return null;const h=s.mode;if(u==="mathit")return"italic";if(u==="boldsymbol")return s.type==="textord"?"bold":"bold-italic";if(u==="mathbf")return"bold";if(u==="mathbb")return"double-struck";if(u==="mathsfit")return"sans-serif-italic";if(u==="mathfrak")return"fraktur";if(u==="mathscr"||u==="mathcal")return"script";if(u==="mathsf")return"sans-serif";if(u==="mathtt")return"monospace";let b=s.text;if($y.has(b))return null;if(xt[h][b]){const T=xt[h][b].replace;T&&(b=T)}const A=Ec[u].fontName;return Vn(b,A,h)?Ec[u].variant:null};function Ic(s){if(!s)return!1;if(s.type==="mi"&&s.children.length===1){const o=s.children[0];return o instanceof e0&&o.text==="."}else if(s.type==="mo"&&s.children.length===1&&s.getAttribute("separator")==="true"&&s.getAttribute("lspace")==="0em"&&s.getAttribute("rspace")==="0em"){const o=s.children[0];return o instanceof e0&&o.text===","}else return!1}const ar=function(s,o,u){if(s.length===1){const A=kt(s[0],o);return u&&A instanceof Ne&&A.type==="mo"&&(A.setAttribute("lspace","0em"),A.setAttribute("rspace","0em")),[A]}const h=[];let b;for(let A=0;A<s.length;A++){const T=kt(s[A],o);if(T instanceof Ne&&b instanceof Ne){if(T.type==="mtext"&&b.type==="mtext"&&T.getAttribute("mathvariant")===b.getAttribute("mathvariant")){b.children.push(...T.children);continue}else if(T.type==="mn"&&b.type==="mn"){b.children.push(...T.children);continue}else if(Ic(T)&&b.type==="mn"){b.children.push(...T.children);continue}else if(T.type==="mn"&&Ic(b))T.children=[...b.children,...T.children],h.pop();else if((T.type==="msup"||T.type==="msub")&&T.children.length>=1&&(b.type==="mn"||Ic(b))){const I=T.children[0];I instanceof Ne&&I.type==="mn"&&(I.children=[...b.children,...I.children],h.pop())}else if(b.type==="mi"&&b.children.length===1){const I=b.children[0];if(I instanceof e0&&I.text==="̸"&&(T.type==="mo"||T.type==="mi"||T.type==="mn")){const P=T.children[0];P instanceof e0&&P.text.length>0&&(P.text=P.text.slice(0,1)+"̸"+P.text.slice(1),h.pop())}}}h.push(T),b=T}return h},qn=function(s,o,u){return _c(ar(s,o,u))},kt=function(s,o){if(!s)return new Ne("mrow");if($s[s.type])return $s[s.type](s,o);throw new a("Got group of unknown type: '"+s.type+"'")};function Sh(s,o,u,h,b){const A=ar(s,u);let T;A.length===1&&A[0]instanceof Ne&&Uy.has(A[0].type)?T=A[0]:T=new Ne("mrow",A);const I=new Ne("annotation",[new e0(o)]);I.setAttribute("encoding","application/x-tex");const P=new Ne("semantics",[T,I]),G=new Ne("math",[P]);return G.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),h&&G.setAttribute("display","block"),Ee([b?"katex":"katex-mathml"],[G])}const Wy=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ch=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Th=function(s,o){return o.size<2?s:Wy[s-1][o.size-1]};class mn{constructor(o){this.style=o.style,this.color=o.color,this.size=o.size||mn.BASESIZE,this.textSize=o.textSize||this.size,this.phantom=!!o.phantom,this.font=o.font||"",this.fontFamily=o.fontFamily||"",this.fontWeight=o.fontWeight||"",this.fontShape=o.fontShape||"",this.sizeMultiplier=Ch[this.size-1],this.maxSize=o.maxSize,this.minRuleThickness=o.minRuleThickness,this._fontMetrics=void 0}extend(o){const u={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(u,o),new mn(u)}havingStyle(o){return this.style===o?this:this.extend({style:o,size:Th(this.textSize,o)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(o){return this.size===o&&this.textSize===o?this:this.extend({style:this.style.text(),size:o,textSize:o,sizeMultiplier:Ch[o-1]})}havingBaseStyle(o){o=o||this.style.text();const u=Th(mn.BASESIZE,o);return this.size===u&&this.textSize===mn.BASESIZE&&this.style===o?this:this.extend({style:o,size:u})}havingBaseSizing(){let o;switch(this.style.id){case 4:case 5:o=3;break;case 6:case 7:o=1;break;default:o=6}return this.extend({style:this.style.text(),size:o})}withColor(o){return this.extend({color:o})}withPhantom(){return this.extend({phantom:!0})}withFont(o){return this.extend({font:o})}withTextFontFamily(o){return this.extend({fontFamily:o,font:""})}withTextFontWeight(o){return this.extend({fontWeight:o,font:""})}withTextFontShape(o){return this.extend({fontShape:o,font:""})}sizingClasses(o){return o.size!==this.size?["sizing","reset-size"+o.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==mn.BASESIZE?["sizing","reset-size"+this.size,"size"+mn.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=la(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}mn.BASESIZE=6;var Gy=mn;const Eh=function(s){return new Gy({style:s.displayMode?ne.DISPLAY:ne.TEXT,maxSize:s.maxSize,minRuleThickness:s.minRuleThickness})},Dh=function(s,o){if(o.displayMode){const u=["katex-display"];o.leqno&&u.push("leqno"),o.fleqn&&u.push("fleqn"),s=Ee(u,[s])}return s},Xy=function(s,o,u){const h=Eh(u);let b;if(u.output==="mathml")return Sh(s,o,h,u.displayMode,!0);if(u.output==="html"){const A=zc(s,h);b=Ee(["katex"],[A])}else{const A=Sh(s,o,h,u.displayMode,!1),T=zc(s,h);b=Ee(["katex"],[A,T])}return Dh(b,u)},Yy=function(s,o,u){const h=Eh(u),b=zc(s,h),A=Ee(["katex"],[b]);return Dh(A,u)},Zy={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Gs=function(s){const o=new Ne("mo",[new e0(Zy[s.replace(/^\\/,"")])]);return o.setAttribute("stretchy","true"),o},Ky={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Qy=new Set(["widehat","widecheck","widetilde","utilde"]),Xs=function(s,o){function u(){let T=4e5;const I=s.label.slice(1);if(Qy.has(I)){const P=s,G=P.base.type==="ordgroup"?P.base.body.length:1;let re,se,le;if(G>5)I==="widehat"||I==="widecheck"?(re=420,T=2364,le=.42,se=I+"4"):(re=312,T=2340,le=.34,se="tilde4");else{const je=[1,1,2,2,3,3][G];I==="widehat"||I==="widecheck"?(T=[0,1062,2364,2364,2364][je],re=[0,239,300,360,420][je],le=[0,.24,.3,.3,.36,.42][je],se=I+je):(T=[0,600,1033,2339,2340][je],re=[0,260,286,306,312][je],le=[0,.26,.286,.3,.306,.34][je],se="tilde"+je)}const we=new zr(se),Ie=new nr([we],{width:"100%",height:Se(le),viewBox:"0 0 "+T+" "+re,preserveAspectRatio:"none"});return{span:Hn([],[Ie],o),minWidth:0,height:le}}else{const P=[],G=Ky[I],[re,se,le]=G,we=le/1e3,Ie=re.length;let je,ut;if(Ie===1){const Qe=G[3];je=["hide-tail"],ut=[Qe]}else if(Ie===2)je=["halfarrow-left","halfarrow-right"],ut=["xMinYMin","xMaxYMin"];else if(Ie===3)je=["brace-left","brace-center","brace-right"],ut=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
540
|
+
`+Ie+" children.");for(let Qe=0;Qe<Ie;Qe++){const ct=new zr(re[Qe]),yt=new nr([ct],{width:"400em",height:Se(we),viewBox:"0 0 "+T+" "+le,preserveAspectRatio:ut[Qe]+" slice"}),t0=Hn([je[Qe]],[yt],o);if(Ie===1)return{span:t0,minWidth:se,height:we};t0.style.height=Se(we),P.push(t0)}return{span:Ee(["stretchy"],P,o),minWidth:se,height:we}}}const{span:h,minWidth:b,height:A}=u();return h.height=A,h.style.height=Se(A),b>0&&(h.style.minWidth=Se(b)),h},Jy=function(s,o,u,h,b){let A;const T=s.height+s.depth+u+h;if(/fbox|color|angl/.test(o)){if(A=Ee(["stretchy",o],[],b),o==="fbox"){const I=b.color&&b.getColor();I&&(A.style.borderColor=I)}}else{const I=[];/^[bx]cancel$/.test(o)&&I.push(new Ln({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(o)&&I.push(new Ln({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const P=new nr(I,{width:"100%",height:Se(T)});A=Hn([],[P],b)}return A.height=T,A.style.height=Se(T),A};function rt(s,o){if(!s||s.type!==o)throw new Error("Expected node of type "+o+", but got "+(s?"node of type "+s.type:String(s)));return s}function Ys(s){const o=Zs(s);if(!o)throw new Error("Expected node of symbol group type, but got "+(s?"node of type "+s.type:String(s)));return o}function Zs(s){return s&&(s.type==="atom"||Cc.hasOwnProperty(s.type))?s:null}const Mh=s=>{if(s instanceof k0)return s;if(Rn(s)&&s.children.length===1)return Mh(s.children[0])},Bc=(s,o)=>{let u,h,b;s&&s.type==="supsub"?(h=rt(s.base,"accent"),u=h.base,s.base=u,b=_r(gt(s,o)),s.base=h):(h=rt(s,"accent"),u=h.base);const A=gt(u,o.havingCrampedStyle()),T=h.isShifty&&S(u);let I=0;if(T){var P,G;I=(P=(G=Mh(A))==null?void 0:G.skew)!=null?P:0}const re=h.label==="\\c";let se=re?A.height+A.depth:Math.min(A.height,o.fontMetrics().xHeight),le;if(h.isStretchy)le=Xs(h,o),le=pt({positionType:"firstBaseline",children:[{type:"elem",elem:A},{type:"elem",elem:le,wrapperClasses:["svg-align"],wrapperStyle:I>0?{width:"calc(100% - "+Se(2*I)+")",marginLeft:Se(2*I)}:void 0}]});else{let Ie,je;h.label==="\\vec"?(Ie=vh("vec",o),je=yh.vec[1]):(Ie=$t({mode:h.mode,text:h.label},o,"textord"),Ie=Ua(Ie),Ie.italic=0,je=Ie.width,re&&(se+=Ie.depth)),le=Ee(["accent-body"],[Ie]);const ut=h.label==="\\textcircled";ut&&(le.classes.push("accent-full"),se=A.height);let Qe=I;ut||(Qe-=je/2),le.style.left=Se(Qe),h.label==="\\textcircled"&&(le.style.top=".2em"),le=pt({positionType:"firstBaseline",children:[{type:"elem",elem:A},{type:"kern",size:-se},{type:"elem",elem:le}]})}const we=Ee(["mord","accent"],[le],o);return b?(b.children[0]=we,b.height=Math.max(we.height,b.height),b.classes[0]="mord",b):we},Nh=(s,o)=>{const u=s.isStretchy?Gs(s.label):new Ne("mo",[fr(s.label,s.mode)]),h=new Ne("mover",[kt(s.base,o),u]);return h.setAttribute("accent","true"),h},ev=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(s=>"\\"+s).join("|"));Pe({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(s,o)=>{const u=Us(o[0]),h=!ev.test(s.funcName),b=!h||s.funcName==="\\widehat"||s.funcName==="\\widetilde"||s.funcName==="\\widecheck";return{type:"accent",mode:s.parser.mode,label:s.funcName,isStretchy:h,isShifty:b,base:u}},htmlBuilder:Bc,mathmlBuilder:Nh}),Pe({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(s,o)=>{const u=o[0];let h=s.parser.mode;return h==="math"&&(s.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+s.funcName+" works only in text mode"),h="text"),{type:"accent",mode:h,label:s.funcName,isStretchy:!1,isShifty:!0,base:u}},htmlBuilder:Bc,mathmlBuilder:Nh}),Pe({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(s,o)=>{let{parser:u,funcName:h}=s;const b=o[0];return{type:"accentUnder",mode:u.mode,label:h,base:b}},htmlBuilder:(s,o)=>{const u=gt(s.base,o),h=Xs(s,o),b=s.label==="\\utilde"?.12:0,A=pt({positionType:"top",positionData:u.height,children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:b},{type:"elem",elem:u}]});return Ee(["mord","accentunder"],[A],o)},mathmlBuilder:(s,o)=>{const u=Gs(s.label),h=new Ne("munder",[kt(s.base,o),u]);return h.setAttribute("accentunder","true"),h}});const Ks=s=>{const o=new Ne("mpadded",s?[s]:[]);return o.setAttribute("width","+0.6em"),o.setAttribute("lspace","0.3em"),o};Pe({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(s,o,u){let{parser:h,funcName:b}=s;return{type:"xArrow",mode:h.mode,label:b,body:o[0],below:u[0]}},htmlBuilder(s,o){const u=o.style;let h=o.havingStyle(u.sup());const b=Xa(gt(s.body,h,o),o),A=s.label.slice(0,2)==="\\x"?"x":"cd";b.classes.push(A+"-arrow-pad");let T;s.below&&(h=o.havingStyle(u.sub()),T=Xa(gt(s.below,h,o),o),T.classes.push(A+"-arrow-pad"));const I=Xs(s,o),P=-o.fontMetrics().axisHeight+.5*I.height;let G=-o.fontMetrics().axisHeight-.5*I.height-.111;(b.depth>.25||s.label==="\\xleftequilibrium")&&(G-=b.depth);let re;if(T){const se=-o.fontMetrics().axisHeight+T.height+.5*I.height+.111;re=pt({positionType:"individualShift",children:[{type:"elem",elem:b,shift:G},{type:"elem",elem:I,shift:P},{type:"elem",elem:T,shift:se}]})}else re=pt({positionType:"individualShift",children:[{type:"elem",elem:b,shift:G},{type:"elem",elem:I,shift:P}]});return re.children[0].children[0].children[1].classes.push("svg-align"),Ee(["mrel","x-arrow"],[re],o)},mathmlBuilder(s,o){const u=Gs(s.label);u.setAttribute("minsize",s.label.charAt(0)==="x"?"1.75em":"3.0em");let h;if(s.body){const b=Ks(kt(s.body,o));if(s.below){const A=Ks(kt(s.below,o));h=new Ne("munderover",[u,A,b])}else h=new Ne("mover",[u,b])}else if(s.below){const b=Ks(kt(s.below,o));h=new Ne("munder",[u,b])}else h=Ks(),h=new Ne("mover",[u,h]);return h}});function zh(s,o){const u=l0(s.body,o,!0);return Ee([s.mclass],u,o)}function _h(s,o){let u;const h=ar(s.body,o);return s.mclass==="minner"?u=new Ne("mpadded",h):s.mclass==="mord"?s.isCharacterBox?(u=h[0],u.type="mi"):u=new Ne("mi",h):(s.isCharacterBox?(u=h[0],u.type="mo"):u=new Ne("mo",h),s.mclass==="mbin"?(u.attributes.lspace="0.22em",u.attributes.rspace="0.22em"):s.mclass==="mpunct"?(u.attributes.lspace="0em",u.attributes.rspace="0.17em"):s.mclass==="mopen"||s.mclass==="mclose"?(u.attributes.lspace="0em",u.attributes.rspace="0em"):s.mclass==="minner"&&(u.attributes.lspace="0.0556em",u.attributes.width="+0.1111em")),u}Pe({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(s,o){let{parser:u,funcName:h}=s;const b=o[0];return{type:"mclass",mode:u.mode,mclass:"m"+h.slice(5),body:Jt(b),isCharacterBox:S(b)}},htmlBuilder:zh,mathmlBuilder:_h});const Qs=s=>{const o=s.type==="ordgroup"&&s.body.length?s.body[0]:s;return o.type==="atom"&&(o.family==="bin"||o.family==="rel")?"m"+o.family:"mord"};Pe({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(s,o){let{parser:u}=s;return{type:"mclass",mode:u.mode,mclass:Qs(o[0]),body:Jt(o[1]),isCharacterBox:S(o[1])}}}),Pe({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(s,o){let{parser:u,funcName:h}=s;const b=o[1],A=o[0];let T;h!=="\\stackrel"?T=Qs(b):T="mrel";const I={type:"op",mode:b.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:h!=="\\stackrel",body:Jt(b)},P={type:"supsub",mode:A.mode,base:I,sup:h==="\\underset"?null:A,sub:h==="\\underset"?A:null};return{type:"mclass",mode:u.mode,mclass:T,body:[P],isCharacterBox:S(P)}},htmlBuilder:zh,mathmlBuilder:_h}),Pe({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(s,o){let{parser:u}=s;return{type:"pmb",mode:u.mode,mclass:Qs(o[0]),body:Jt(o[0])}},htmlBuilder(s,o){const u=l0(s.body,o,!0),h=Ee([s.mclass],u,o);return h.style.textShadow="0.02em 0.01em 0.04px",h},mathmlBuilder(s,o){const u=ar(s.body,o),h=new Ne("mstyle",u);return h.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),h}});const tv={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Fh=()=>({type:"styling",body:[],mode:"math",style:"display"}),Ih=s=>s.type==="textord"&&s.text==="@",rv=(s,o)=>(s.type==="mathord"||s.type==="atom")&&s.text===o;function nv(s,o,u){const h=tv[s];switch(h){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return u.callFunction(h,[o[0]],[o[1]]);case"\\uparrow":case"\\downarrow":{const b=u.callFunction("\\\\cdleft",[o[0]],[]),A={type:"atom",text:h,mode:"math",family:"rel"},T=u.callFunction("\\Big",[A],[]),I=u.callFunction("\\\\cdright",[o[1]],[]),P={type:"ordgroup",mode:"math",body:[b,T,I]};return u.callFunction("\\\\cdparent",[P],[])}case"\\\\cdlongequal":return u.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const b={type:"textord",text:"\\Vert",mode:"math"};return u.callFunction("\\Big",[b],[])}default:return{type:"textord",text:" ",mode:"math"}}}function av(s){const o=[];for(s.gullet.beginGroup(),s.gullet.macros.set("\\cr","\\\\\\relax"),s.gullet.beginGroup();;){o.push(s.parseExpression(!1,"\\\\")),s.gullet.endGroup(),s.gullet.beginGroup();const A=s.fetch().text;if(A==="&"||A==="\\\\")s.consume();else if(A==="\\end"){o[o.length-1].length===0&&o.pop();break}else throw new a("Expected \\\\ or \\cr or \\end",s.nextToken)}let u=[];const h=[u];for(let A=0;A<o.length;A++){const T=o[A];let I=Fh();for(let P=0;P<T.length;P++)if(!Ih(T[P]))I.body.push(T[P]);else{u.push(I),P+=1;const G=Ys(T[P]).text,re=new Array(2);if(re[0]={type:"ordgroup",mode:"math",body:[]},re[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(G))if("<>AV".includes(G))for(let we=0;we<2;we++){let Ie=!0;for(let je=P+1;je<T.length;je++){if(rv(T[je],G)){Ie=!1,P=je;break}if(Ih(T[je]))throw new a("Missing a "+G+" character to complete a CD arrow.",T[je]);re[we].body.push(T[je])}if(Ie)throw new a("Missing a "+G+" character to complete a CD arrow.",T[P])}else throw new a('Expected one of "<>AV=|." after @',T[P]);const le={type:"styling",body:[nv(G,re,s)],mode:"math",style:"display"};u.push(le),I=Fh()}A%2===0?u.push(I):u.shift(),u=[],h.push(u)}s.gullet.endGroup(),s.gullet.endGroup();const b=new Array(h[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:h,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(h.length+1).fill([])}}Pe({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(s,o){let{parser:u,funcName:h}=s;return{type:"cdlabel",mode:u.mode,side:h.slice(4),label:o[0]}},htmlBuilder(s,o){const u=o.havingStyle(o.style.sup()),h=Xa(gt(s.label,u,o),o);return h.classes.push("cd-label-"+s.side),h.style.bottom=Se(.8-h.depth),h.height=0,h.depth=0,h},mathmlBuilder(s,o){let u=new Ne("mrow",[kt(s.label,o)]);return u=new Ne("mpadded",[u]),u.setAttribute("width","0"),s.side==="left"&&u.setAttribute("lspace","-1width"),u.setAttribute("voffset","0.7em"),u=new Ne("mstyle",[u]),u.setAttribute("displaystyle","false"),u.setAttribute("scriptlevel","1"),u}}),Pe({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(s,o){let{parser:u}=s;return{type:"cdlabelparent",mode:u.mode,fragment:o[0]}},htmlBuilder(s,o){const u=Xa(gt(s.fragment,o),o);return u.classes.push("cd-vert-arrow"),u},mathmlBuilder(s,o){return new Ne("mrow",[kt(s.fragment,o)])}}),Pe({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(s,o){let{parser:u}=s;const b=rt(o[0],"ordgroup").body;let A="";for(let P=0;P<b.length;P++){const G=rt(b[P],"textord");A+=G.text}let T=parseInt(A),I;if(isNaN(T))throw new a("\\@char has non-numeric argument "+A);if(T<0||T>=1114111)throw new a("\\@char with invalid code point "+A);return T<=65535?I=String.fromCharCode(T):(T-=65536,I=String.fromCharCode((T>>10)+55296,(T&1023)+56320)),{type:"textord",mode:u.mode,text:I}}});const Bh=(s,o)=>{const u=l0(s.body,o.withColor(s.color),!1);return fn(u)},Oh=(s,o)=>{const u=ar(s.body,o.withColor(s.color)),h=new Ne("mstyle",u);return h.setAttribute("mathcolor",s.color),h};Pe({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(s,o){let{parser:u}=s;const h=rt(o[0],"color-token").color,b=o[1];return{type:"color",mode:u.mode,color:h,body:Jt(b)}},htmlBuilder:Bh,mathmlBuilder:Oh}),Pe({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(s,o){let{parser:u,breakOnTokenText:h}=s;const b=rt(o[0],"color-token").color;u.gullet.macros.set("\\current@color",b);const A=u.parseExpression(!0,h);return{type:"color",mode:u.mode,color:b,body:A}},htmlBuilder:Bh,mathmlBuilder:Oh}),Pe({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(s,o,u){let{parser:h}=s;const b=h.gullet.future().text==="["?h.parseSizeGroup(!0):null,A=!h.settings.displayMode||!h.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:h.mode,newLine:A,size:b&&rt(b,"size").value}},htmlBuilder(s,o){const u=Ee(["mspace"],[],o);return s.newLine&&(u.classes.push("newline"),s.size&&(u.style.marginTop=Se(lt(s.size,o)))),u},mathmlBuilder(s,o){const u=new Ne("mspace");return s.newLine&&(u.setAttribute("linebreak","newline"),s.size&&u.setAttribute("height",Se(lt(s.size,o)))),u}});const Oc={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Lh=s=>{const o=s.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new a("Expected a control sequence",s);return o},iv=s=>{let o=s.gullet.popToken();return o.text==="="&&(o=s.gullet.popToken(),o.text===" "&&(o=s.gullet.popToken())),o},Rh=(s,o,u,h)=>{let b=s.gullet.macros.get(u.text);b==null&&(u.noexpand=!0,b={tokens:[u],numArgs:0,unexpandable:!s.gullet.isExpandable(u.text)}),s.gullet.macros.set(o,b,h)};Pe({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(s){let{parser:o,funcName:u}=s;o.consumeSpaces();const h=o.fetch();if(Oc[h.text])return(u==="\\global"||u==="\\\\globallong")&&(h.text=Oc[h.text]),rt(o.parseFunction(),"internal");throw new a("Invalid token after macro prefix",h)}}),Pe({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s){let{parser:o,funcName:u}=s,h=o.gullet.popToken();const b=h.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(b))throw new a("Expected a control sequence",h);let A=0,T;const I=[[]];for(;o.gullet.future().text!=="{";)if(h=o.gullet.popToken(),h.text==="#"){if(o.gullet.future().text==="{"){T=o.gullet.future(),I[A].push("{");break}if(h=o.gullet.popToken(),!/^[1-9]$/.test(h.text))throw new a('Invalid argument number "'+h.text+'"');if(parseInt(h.text)!==A+1)throw new a('Argument number "'+h.text+'" out of order');A++,I.push([])}else{if(h.text==="EOF")throw new a("Expected a macro definition");I[A].push(h.text)}let{tokens:P}=o.gullet.consumeArg();return T&&P.unshift(T),(u==="\\edef"||u==="\\xdef")&&(P=o.gullet.expandTokens(P),P.reverse()),o.gullet.macros.set(b,{tokens:P,numArgs:A,delimiters:I},u===Oc[u]),{type:"internal",mode:o.mode}}}),Pe({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s){let{parser:o,funcName:u}=s;const h=Lh(o.gullet.popToken());o.gullet.consumeSpaces();const b=iv(o);return Rh(o,h,b,u==="\\\\globallet"),{type:"internal",mode:o.mode}}}),Pe({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s){let{parser:o,funcName:u}=s;const h=Lh(o.gullet.popToken()),b=o.gullet.popToken(),A=o.gullet.popToken();return Rh(o,h,A,u==="\\\\globalfuture"),o.gullet.pushToken(A),o.gullet.pushToken(b),{type:"internal",mode:o.mode}}});const no=function(s,o,u){const h=xt.math[s]&&xt.math[s].replace,b=Vn(h||s,o,u);if(!b)throw new Error("Unsupported symbol "+s+" and font size "+o+".");return b},Lc=function(s,o,u,h){const b=u.havingBaseStyle(o),A=Ee(h.concat(b.sizingClasses(u)),[s],u),T=b.sizeMultiplier/u.sizeMultiplier;return A.height*=T,A.depth*=T,A.maxFontSize=b.sizeMultiplier,A},Ph=function(s,o,u){const h=o.havingBaseStyle(u),b=(1-o.sizeMultiplier/h.sizeMultiplier)*o.fontMetrics().axisHeight;s.classes.push("delimcenter"),s.style.top=Se(b),s.height-=b,s.depth+=b},ov=function(s,o,u,h,b,A){const T=Dt(s,"Main-Regular",b,h),I=Lc(T,o,h,A);return Ph(I,h,o),I},sv=function(s,o,u,h){return Dt(s,"Size"+o+"-Regular",u,h)},Vh=function(s,o,u,h,b,A){const T=sv(s,o,b,h),I=Lc(Ee(["delimsizing","size"+o],[T],h),ne.TEXT,h,A);return u&&Ph(I,h,ne.TEXT),I},Rc=function(s,o,u){let h;return o==="Size1-Regular"?h="delim-size1":h="delim-size4",{type:"elem",elem:Ee(["delimsizinginner",h],[Ee([],[Dt(s,o,u)])])}},Pc=function(s,o,u){const h=q0["Size4-Regular"][s.charCodeAt(0)]?q0["Size4-Regular"][s.charCodeAt(0)][4]:q0["Size1-Regular"][s.charCodeAt(0)][4],b=new zr("inner",Ze(s,Math.round(1e3*o))),A=new nr([b],{width:Se(h),height:Se(o),style:"width:"+Se(h),viewBox:"0 0 "+1e3*h+" "+Math.round(1e3*o),preserveAspectRatio:"xMinYMin"}),T=Hn([],[A],u);return T.height=o,T.style.height=Se(o),T.style.width=Se(h),{type:"elem",elem:T}},Vc=.008,Js={type:"kern",size:-1*Vc},lv=new Set(["|","\\lvert","\\rvert","\\vert"]),uv=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Hh=function(s,o,u,h,b,A){let T,I,P,G,re="",se=0;T=P=G=s,I=null;let le="Size1-Regular";s==="\\uparrow"?P=G="⏐":s==="\\Uparrow"?P=G="‖":s==="\\downarrow"?T=P="⏐":s==="\\Downarrow"?T=P="‖":s==="\\updownarrow"?(T="\\uparrow",P="⏐",G="\\downarrow"):s==="\\Updownarrow"?(T="\\Uparrow",P="‖",G="\\Downarrow"):lv.has(s)?(P="∣",re="vert",se=333):uv.has(s)?(P="∥",re="doublevert",se=556):s==="["||s==="\\lbrack"?(T="⎡",P="⎢",G="⎣",le="Size4-Regular",re="lbrack",se=667):s==="]"||s==="\\rbrack"?(T="⎤",P="⎥",G="⎦",le="Size4-Regular",re="rbrack",se=667):s==="\\lfloor"||s==="⌊"?(P=T="⎢",G="⎣",le="Size4-Regular",re="lfloor",se=667):s==="\\lceil"||s==="⌈"?(T="⎡",P=G="⎢",le="Size4-Regular",re="lceil",se=667):s==="\\rfloor"||s==="⌋"?(P=T="⎥",G="⎦",le="Size4-Regular",re="rfloor",se=667):s==="\\rceil"||s==="⌉"?(T="⎤",P=G="⎥",le="Size4-Regular",re="rceil",se=667):s==="("||s==="\\lparen"?(T="⎛",P="⎜",G="⎝",le="Size4-Regular",re="lparen",se=875):s===")"||s==="\\rparen"?(T="⎞",P="⎟",G="⎠",le="Size4-Regular",re="rparen",se=875):s==="\\{"||s==="\\lbrace"?(T="⎧",I="⎨",G="⎩",P="⎪",le="Size4-Regular"):s==="\\}"||s==="\\rbrace"?(T="⎫",I="⎬",G="⎭",P="⎪",le="Size4-Regular"):s==="\\lgroup"||s==="⟮"?(T="⎧",G="⎩",P="⎪",le="Size4-Regular"):s==="\\rgroup"||s==="⟯"?(T="⎫",G="⎭",P="⎪",le="Size4-Regular"):s==="\\lmoustache"||s==="⎰"?(T="⎧",G="⎭",P="⎪",le="Size4-Regular"):(s==="\\rmoustache"||s==="⎱")&&(T="⎫",G="⎩",P="⎪",le="Size4-Regular");const we=no(T,le,b),Ie=we.height+we.depth,je=no(P,le,b),ut=je.height+je.depth,Qe=no(G,le,b),ct=Qe.height+Qe.depth;let yt=0,t0=1;if(I!==null){const hr=no(I,le,b);yt=hr.height+hr.depth,t0=2}const u0=Ie+ct+yt,c0=Math.max(0,Math.ceil((o-u0)/(t0*ut))),S0=u0+c0*t0*ut;let Za=h.fontMetrics().axisHeight;u&&(Za*=h.sizeMultiplier);const ol=S0/2-Za,R0=[];if(re.length>0){const hr=S0-Ie-ct,Ka=Math.round(S0*1e3),Qa=at(re,Math.round(hr*1e3)),bt=new zr(re,Qa),Gt=Se(se/1e3),Mt=Se(Ka/1e3),r0=new nr([bt],{width:Gt,height:Mt,viewBox:"0 0 "+se+" "+Ka}),mr=Hn([],[r0],h);mr.height=Ka/1e3,mr.style.width=Gt,mr.style.height=Mt,R0.push({type:"elem",elem:mr})}else{if(R0.push(Rc(G,le,b)),R0.push(Js),I===null){const hr=S0-Ie-ct+2*Vc;R0.push(Pc(P,hr,h))}else{const hr=(S0-Ie-ct-yt)/2+2*Vc;R0.push(Pc(P,hr,h)),R0.push(Js),R0.push(Rc(I,le,b)),R0.push(Js),R0.push(Pc(P,hr,h))}R0.push(Js),R0.push(Rc(T,le,b))}const sl=h.havingBaseStyle(ne.TEXT),ll=pt({positionType:"bottom",positionData:ol,children:R0});return Lc(Ee(["delimsizing","mult"],[ll],sl),ne.TEXT,h,A)},Hc=80,qc=.08,jc=function(s,o,u,h,b){const A=Xe(s,h,u),T=new zr(s,A),I=new nr([T],{width:"400em",height:Se(o),viewBox:"0 0 400000 "+u,preserveAspectRatio:"xMinYMin slice"});return Hn(["hide-tail"],[I],b)},cv=function(s,o){const u=o.havingBaseSizing(),h=Wh("\\surd",s*u.sizeMultiplier,Uh,u);let b=u.sizeMultiplier;const A=Math.max(0,o.minRuleThickness-o.fontMetrics().sqrtRuleThickness);let T,I=0,P=0,G=0,re;return h.type==="small"?(G=1e3+1e3*A+Hc,s<1?b=1:s<1.4&&(b=.7),I=(1+A+qc)/b,P=(1+A)/b,T=jc("sqrtMain",I,G,A,o),T.style.minWidth="0.853em",re=.833/b):h.type==="large"?(G=(1e3+Hc)*ao[h.size],P=(ao[h.size]+A)/b,I=(ao[h.size]+A+qc)/b,T=jc("sqrtSize"+h.size,I,G,A,o),T.style.minWidth="1.02em",re=1/b):(I=s+A+qc,P=s+A,G=Math.floor(1e3*s+A)+Hc,T=jc("sqrtTall",I,G,A,o),T.style.minWidth="0.742em",re=1.056),T.height=P,T.style.height=Se(I),{span:T,advanceWidth:re,ruleWidth:(o.fontMetrics().sqrtRuleThickness+A)*b}},qh=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),dv=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),jh=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),ao=[0,1.2,1.8,2.4,3],$h=function(s,o,u,h,b){if(s==="<"||s==="\\lt"||s==="⟨"?s="\\langle":(s===">"||s==="\\gt"||s==="⟩")&&(s="\\rangle"),qh.has(s)||jh.has(s))return Vh(s,o,!1,u,h,b);if(dv.has(s))return Hh(s,ao[o],!1,u,h,b);throw new a("Illegal delimiter: '"+s+"'")},fv=[{type:"small",style:ne.SCRIPTSCRIPT},{type:"small",style:ne.SCRIPT},{type:"small",style:ne.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],hv=[{type:"small",style:ne.SCRIPTSCRIPT},{type:"small",style:ne.SCRIPT},{type:"small",style:ne.TEXT},{type:"stack"}],Uh=[{type:"small",style:ne.SCRIPTSCRIPT},{type:"small",style:ne.SCRIPT},{type:"small",style:ne.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],mv=function(s){if(s.type==="small")return"Main-Regular";if(s.type==="large")return"Size"+s.size+"-Regular";if(s.type==="stack")return"Size4-Regular";{const o=s.type;throw new Error("Add support for delim type '"+o+"' here.")}},Wh=function(s,o,u,h){const b=Math.min(2,3-h.style.size);for(let A=b;A<u.length;A++){const T=u[A];if(T.type==="stack")break;const I=no(s,mv(T),"math");let P=I.height+I.depth;if(T.type==="small"){const G=h.havingBaseStyle(T.style);P*=G.sizeMultiplier}if(P>o)return T}return u[u.length-1]},$c=function(s,o,u,h,b,A){s==="<"||s==="\\lt"||s==="⟨"?s="\\langle":(s===">"||s==="\\gt"||s==="⟩")&&(s="\\rangle");let T;jh.has(s)?T=fv:qh.has(s)?T=Uh:T=hv;const I=Wh(s,o,T,h);return I.type==="small"?ov(s,I.style,u,h,b,A):I.type==="large"?Vh(s,I.size,u,h,b,A):Hh(s,o,u,h,b,A)},Uc=function(s,o,u,h,b,A){const T=h.fontMetrics().axisHeight*h.sizeMultiplier,I=901,P=5/h.fontMetrics().ptPerEm,G=Math.max(o-T,u+T),re=Math.max(G/500*I,2*G-P);return $c(s,re,!0,h,b,A)},Gh={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},pv=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function el(s,o){const u=Zs(s);if(u&&pv.has(u.text))return u;throw u?new a("Invalid delimiter '"+u.text+"' after '"+o.funcName+"'",s):new a("Invalid delimiter type '"+s.type+"'",s)}Pe({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(s,o)=>{const u=el(o[0],s);return{type:"delimsizing",mode:s.parser.mode,size:Gh[s.funcName].size,mclass:Gh[s.funcName].mclass,delim:u.text}},htmlBuilder:(s,o)=>s.delim==="."?Ee([s.mclass]):$h(s.delim,s.size,o,s.mode,[s.mclass]),mathmlBuilder:s=>{const o=[];s.delim!=="."&&o.push(fr(s.delim,s.mode));const u=new Ne("mo",o);s.mclass==="mopen"||s.mclass==="mclose"?u.setAttribute("fence","true"):u.setAttribute("fence","false"),u.setAttribute("stretchy","true");const h=Se(ao[s.size]);return u.setAttribute("minsize",h),u.setAttribute("maxsize",h),u}});function Xh(s){if(!s.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Pe({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(s,o)=>{const u=s.parser.gullet.macros.get("\\current@color");if(u&&typeof u!="string")throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:s.parser.mode,delim:el(o[0],s).text,color:u}}}),Pe({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(s,o)=>{const u=el(o[0],s),h=s.parser;++h.leftrightDepth;const b=h.parseExpression(!1);--h.leftrightDepth,h.expect("\\right",!1);const A=rt(h.parseFunction(),"leftright-right");return{type:"leftright",mode:h.mode,body:b,left:u.text,right:A.delim,rightColor:A.color}},htmlBuilder:(s,o)=>{Xh(s);const u=l0(s.body,o,!0,["mopen","mclose"]);let h=0,b=0,A=!1;for(let P=0;P<u.length;P++)u[P].isMiddle?A=!0:(h=Math.max(u[P].height,h),b=Math.max(u[P].depth,b));h*=o.sizeMultiplier,b*=o.sizeMultiplier;let T;if(s.left==="."?T=ro(o,["mopen"]):T=Uc(s.left,h,b,o,s.mode,["mopen"]),u.unshift(T),A)for(let P=1;P<u.length;P++){const re=u[P].isMiddle;re&&(u[P]=Uc(re.delim,h,b,re.options,s.mode,[]))}let I;if(s.right===".")I=ro(o,["mclose"]);else{const P=s.rightColor?o.withColor(s.rightColor):o;I=Uc(s.right,h,b,P,s.mode,["mclose"])}return u.push(I),Ee(["minner"],u,o)},mathmlBuilder:(s,o)=>{Xh(s);const u=ar(s.body,o);if(s.left!=="."){const h=new Ne("mo",[fr(s.left,s.mode)]);h.setAttribute("fence","true"),u.unshift(h)}if(s.right!=="."){const h=new Ne("mo",[fr(s.right,s.mode)]);h.setAttribute("fence","true"),s.rightColor&&h.setAttribute("mathcolor",s.rightColor),u.push(h)}return _c(u)}}),Pe({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(s,o)=>{const u=el(o[0],s);if(!s.parser.leftrightDepth)throw new a("\\middle without preceding \\left",u);return{type:"middle",mode:s.parser.mode,delim:u.text}},htmlBuilder:(s,o)=>{let u;if(s.delim===".")u=ro(o,[]);else{u=$h(s.delim,1,o,s.mode,[]);const h={delim:s.delim,options:o};u.isMiddle=h}return u},mathmlBuilder:(s,o)=>{const u=s.delim==="\\vert"||s.delim==="|"?fr("|","text"):fr(s.delim,s.mode),h=new Ne("mo",[u]);return h.setAttribute("fence","true"),h.setAttribute("lspace","0.05em"),h.setAttribute("rspace","0.05em"),h}});const tl=(s,o)=>{const u=Xa(gt(s.body,o),o),h=s.label.slice(1);let b=o.sizeMultiplier,A,T=0;const I=S(s.body);if(h==="sout")A=Ee(["stretchy","sout"]),A.height=o.fontMetrics().defaultRuleThickness/b,T=-.5*o.fontMetrics().xHeight;else if(h==="phase"){const G=lt({number:.6,unit:"pt"},o),re=lt({number:.35,unit:"ex"},o),se=o.havingBaseSizing();b=b/se.sizeMultiplier;const le=u.height+u.depth+G+re;u.style.paddingLeft=Se(le/2+G);const we=Math.floor(1e3*le*b),Ie=ge(we),je=new nr([new zr("phase",Ie)],{width:"400em",height:Se(we/1e3),viewBox:"0 0 400000 "+we,preserveAspectRatio:"xMinYMin slice"});A=Hn(["hide-tail"],[je],o),A.style.height=Se(le),T=u.depth+G+re}else{/cancel/.test(h)?I||u.classes.push("cancel-pad"):h==="angl"?u.classes.push("anglpad"):u.classes.push("boxpad");let G=0,re=0,se=0;/box/.test(h)?(se=Math.max(o.fontMetrics().fboxrule,o.minRuleThickness),G=o.fontMetrics().fboxsep+(h==="colorbox"?0:se),re=G):h==="angl"?(se=Math.max(o.fontMetrics().defaultRuleThickness,o.minRuleThickness),G=4*se,re=Math.max(0,.25-u.depth)):(G=I?.2:0,re=G),A=Jy(u,h,G,re,o),/fbox|boxed|fcolorbox/.test(h)?(A.style.borderStyle="solid",A.style.borderWidth=Se(se)):h==="angl"&&se!==.049&&(A.style.borderTopWidth=Se(se),A.style.borderRightWidth=Se(se)),T=u.depth+re,s.backgroundColor&&(A.style.backgroundColor=s.backgroundColor,s.borderColor&&(A.style.borderColor=s.borderColor))}let P;if(s.backgroundColor)P=pt({positionType:"individualShift",children:[{type:"elem",elem:A,shift:T},{type:"elem",elem:u,shift:0}]});else{const G=/cancel|phase/.test(h)?["svg-align"]:[];P=pt({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:A,shift:T,wrapperClasses:G}]})}return/cancel/.test(h)&&(P.height=u.height,P.depth=u.depth),/cancel/.test(h)&&!I?Ee(["mord","cancel-lap"],[P],o):Ee(["mord"],[P],o)},rl=(s,o)=>{let u=0;const h=new Ne(s.label.includes("colorbox")?"mpadded":"menclose",[kt(s.body,o)]);switch(s.label){case"\\cancel":h.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":h.setAttribute("notation","downdiagonalstrike");break;case"\\phase":h.setAttribute("notation","phasorangle");break;case"\\sout":h.setAttribute("notation","horizontalstrike");break;case"\\fbox":h.setAttribute("notation","box");break;case"\\angl":h.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(u=o.fontMetrics().fboxsep*o.fontMetrics().ptPerEm,h.setAttribute("width","+"+2*u+"pt"),h.setAttribute("height","+"+2*u+"pt"),h.setAttribute("lspace",u+"pt"),h.setAttribute("voffset",u+"pt"),s.label==="\\fcolorbox"){const b=Math.max(o.fontMetrics().fboxrule,o.minRuleThickness);h.setAttribute("style","border: "+Se(b)+" solid "+s.borderColor)}break;case"\\xcancel":h.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return s.backgroundColor&&h.setAttribute("mathbackground",s.backgroundColor),h};Pe({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(s,o,u){let{parser:h,funcName:b}=s;const A=rt(o[0],"color-token").color,T=o[1];return{type:"enclose",mode:h.mode,label:b,backgroundColor:A,body:T}},htmlBuilder:tl,mathmlBuilder:rl}),Pe({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(s,o,u){let{parser:h,funcName:b}=s;const A=rt(o[0],"color-token").color,T=rt(o[1],"color-token").color,I=o[2];return{type:"enclose",mode:h.mode,label:b,backgroundColor:T,borderColor:A,body:I}},htmlBuilder:tl,mathmlBuilder:rl}),Pe({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(s,o){let{parser:u}=s;return{type:"enclose",mode:u.mode,label:"\\fbox",body:o[0]}}}),Pe({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(s,o){let{parser:u,funcName:h}=s;const b=o[0];return{type:"enclose",mode:u.mode,label:h,body:b}},htmlBuilder:tl,mathmlBuilder:rl}),Pe({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(s,o){let{parser:u,funcName:h}=s;u.mode==="math"&&u.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");const b=o[0];return{type:"enclose",mode:u.mode,label:h,body:b}},htmlBuilder:tl,mathmlBuilder:rl}),Pe({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(s,o){let{parser:u}=s;return{type:"enclose",mode:u.mode,label:"\\angl",body:o[0]}}});const Yh={};function Kr(s){let{type:o,names:u,props:h,handler:b,htmlBuilder:A,mathmlBuilder:T}=s;const I={type:o,numArgs:h.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:b};for(let P=0;P<u.length;++P)Yh[u[P]]=I;A&&(js[o]=A),T&&($s[o]=T)}const Zh={};function L(s,o){Zh[s]=o}class j0{constructor(o,u,h){this.lexer=o,this.start=u,this.end=h}static range(o,u){return u?!o||!o.loc||!u.loc||o.loc.lexer!==u.loc.lexer?null:new j0(o.loc.lexer,o.loc.start,u.loc.end):o&&o.loc}}class ir{constructor(o,u){this.text=o,this.loc=u}range(o,u){return new ir(u,j0.range(this,o))}}function Kh(s){const o=[];s.consumeSpaces();let u=s.fetch().text;for(u==="\\relax"&&(s.consume(),s.consumeSpaces(),u=s.fetch().text);u==="\\hline"||u==="\\hdashline";)s.consume(),o.push(u==="\\hdashline"),s.consumeSpaces(),u=s.fetch().text;return o}const nl=s=>{if(!s.parser.settings.displayMode)throw new a("{"+s.envName+"} can be used only in display mode.")},gv=new Set(["gather","gather*"]);function Wc(s){if(!s.includes("ed"))return!s.includes("*")}function jn(s,o,u){let{hskipBeforeAndAfter:h,addJot:b,cols:A,arraystretch:T,colSeparationType:I,autoTag:P,singleRow:G,emptySingleRow:re,maxNumCols:se,leqno:le}=o;if(s.gullet.beginGroup(),G||s.gullet.macros.set("\\cr","\\\\\\relax"),!T){const t0=s.gullet.expandMacroAsText("\\arraystretch");if(t0==null)T=1;else if(T=parseFloat(t0),!T||T<0)throw new a("Invalid \\arraystretch: "+t0)}s.gullet.beginGroup();let we=[];const Ie=[we],je=[],ut=[],Qe=P!=null?[]:void 0;function ct(){P&&s.gullet.macros.set("\\@eqnsw","1",!0)}function yt(){Qe&&(s.gullet.macros.get("\\df@tag")?(Qe.push(s.subparse([new ir("\\df@tag")])),s.gullet.macros.set("\\df@tag",void 0,!0)):Qe.push(!!P&&s.gullet.macros.get("\\@eqnsw")==="1"))}for(ct(),ut.push(Kh(s));;){const t0=s.parseExpression(!1,G?"\\end":"\\\\");s.gullet.endGroup(),s.gullet.beginGroup();let u0={type:"ordgroup",mode:s.mode,body:t0};u&&(u0={type:"styling",mode:s.mode,style:u,body:[u0]}),we.push(u0);const c0=s.fetch().text;if(c0==="&"){if(se&&we.length===se){if(G||I)throw new a("Too many tab characters: &",s.nextToken);s.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}s.consume()}else if(c0==="\\end"){yt(),we.length===1&&u0.type==="styling"&&u0.body.length===1&&u0.body[0].type==="ordgroup"&&u0.body[0].body.length===0&&(Ie.length>1||!re)&&Ie.pop(),ut.length<Ie.length+1&&ut.push([]);break}else if(c0==="\\\\"){s.consume();let S0;s.gullet.future().text!==" "&&(S0=s.parseSizeGroup(!0)),je.push(S0?S0.value:null),yt(),ut.push(Kh(s)),we=[],Ie.push(we),ct()}else throw new a("Expected & or \\\\ or \\cr or \\end",s.nextToken)}return s.gullet.endGroup(),s.gullet.endGroup(),{type:"array",mode:s.mode,addJot:b,arraystretch:T,body:Ie,cols:A,rowGaps:je,hskipBeforeAndAfter:h,hLinesBeforeRow:ut,colSeparationType:I,tags:Qe,leqno:le}}function Gc(s){return s.slice(0,1)==="d"?"display":"text"}const Qr=function(s,o){let u,h;const b=s.body.length,A=s.hLinesBeforeRow;let T=0;const I=new Array(b),P=[],G=Math.max(o.fontMetrics().arrayRuleWidth,o.minRuleThickness),re=1/o.fontMetrics().ptPerEm;let se=5*re;s.colSeparationType&&s.colSeparationType==="small"&&(se=.2778*(o.havingStyle(ne.SCRIPT).sizeMultiplier/o.sizeMultiplier));const le=s.colSeparationType==="CD"?lt({number:3,unit:"ex"},o):12*re,we=3*re,Ie=s.arraystretch*le,je=.7*Ie,ut=.3*Ie;let Qe=0;function ct(bt){for(let Gt=0;Gt<bt.length;++Gt)Gt>0&&(Qe+=.25),P.push({pos:Qe,isDashed:bt[Gt]})}for(ct(A[0]),u=0;u<s.body.length;++u){const bt=s.body[u];let Gt=je,Mt=ut;T<bt.length&&(T=bt.length);const r0=new Array(bt.length);for(h=0;h<bt.length;++h){const pr=gt(bt[h],o);Mt<pr.depth&&(Mt=pr.depth),Gt<pr.height&&(Gt=pr.height),r0[h]=pr}const mr=s.rowGaps[u];let pn=0;mr&&(pn=lt(mr,o),pn>0&&(pn+=ut,Mt<pn&&(Mt=pn),pn=0)),s.addJot&&u<s.body.length-1&&(Mt+=we),r0.height=Gt,r0.depth=Mt,Qe+=Gt,r0.pos=Qe,Qe+=Mt+pn,I[u]=r0,ct(A[u+1])}const yt=Qe/2+o.fontMetrics().axisHeight,t0=s.cols||[],u0=[];let c0,S0;const Za=[];if(s.tags&&s.tags.some(bt=>bt))for(u=0;u<b;++u){const bt=I[u],Gt=bt.pos-yt,Mt=s.tags[u];let r0;Mt===!0?r0=Ee(["eqn-num"],[],o):Mt===!1?r0=Ee([],[],o):r0=Ee([],l0(Mt,o,!0),o),r0.depth=bt.depth,r0.height=bt.height,Za.push({type:"elem",elem:r0,shift:Gt})}for(h=0,S0=0;h<T||S0<t0.length;++h,++S0){var ol;let bt=t0[S0],Gt=!0;for(;((R0=bt)==null?void 0:R0.type)==="separator";){var R0;if(Gt||(c0=Ee(["arraycolsep"],[]),c0.style.width=Se(o.fontMetrics().doubleRuleSep),u0.push(c0)),bt.separator==="|"||bt.separator===":"){const pr=bt.separator==="|"?"solid":"dashed",Fr=Ee(["vertical-separator"],[],o);Fr.style.height=Se(Qe),Fr.style.borderRightWidth=Se(G),Fr.style.borderRightStyle=pr,Fr.style.margin="0 "+Se(-G/2);const ul=Qe-yt;ul&&(Fr.style.verticalAlign=Se(-ul)),u0.push(Fr)}else throw new a("Invalid separator type: "+bt.separator);S0++,bt=t0[S0],Gt=!1}if(h>=T)continue;let Mt;if(h>0||s.hskipBeforeAndAfter){var sl,ll;Mt=(sl=(ll=bt)==null?void 0:ll.pregap)!=null?sl:se,Mt!==0&&(c0=Ee(["arraycolsep"],[]),c0.style.width=Se(Mt),u0.push(c0))}const r0=[];for(u=0;u<b;++u){const pr=I[u],Fr=pr[h];if(!Fr)continue;const ul=pr.pos-yt;Fr.depth=pr.depth,Fr.height=pr.height,r0.push({type:"elem",elem:Fr,shift:ul})}const mr=pt({positionType:"individualShift",children:r0}),pn=Ee(["col-align-"+(((ol=bt)==null?void 0:ol.align)||"c")],[mr]);if(u0.push(pn),h<T-1||s.hskipBeforeAndAfter){var hr,Ka;Mt=(hr=(Ka=bt)==null?void 0:Ka.postgap)!=null?hr:se,Mt!==0&&(c0=Ee(["arraycolsep"],[]),c0.style.width=Se(Mt),u0.push(c0))}}let Qa=Ee(["mtable"],u0);if(P.length>0){const bt=Ga("hline",o,G),Gt=Ga("hdashline",o,G),Mt=[{type:"elem",elem:Qa,shift:0}];for(;P.length>0;){const r0=P.pop(),mr=r0.pos-yt;r0.isDashed?Mt.push({type:"elem",elem:Gt,shift:mr}):Mt.push({type:"elem",elem:bt,shift:mr})}Qa=pt({positionType:"individualShift",children:Mt})}if(Za.length===0)return Ee(["mord"],[Qa],o);{const bt=pt({positionType:"individualShift",children:Za}),Gt=Ee(["tag"],[bt],o);return fn([Qa,Gt])}},bv={c:"center ",l:"left ",r:"right "},Jr=function(s,o){const u=[],h=new Ne("mtd",[],["mtr-glue"]),b=new Ne("mtd",[],["mml-eqn-num"]);for(let se=0;se<s.body.length;se++){const le=s.body[se],we=[];for(let Ie=0;Ie<le.length;Ie++)we.push(new Ne("mtd",[kt(le[Ie],o)]));s.tags&&s.tags[se]&&(we.unshift(h),we.push(h),s.leqno?we.unshift(b):we.push(b)),u.push(new Ne("mtr",we))}let A=new Ne("mtable",u);const T=s.arraystretch===.5?.1:.16+s.arraystretch-1+(s.addJot?.09:0);A.setAttribute("rowspacing",Se(T));let I="",P="";if(s.cols&&s.cols.length>0){const se=s.cols;let le="",we=!1,Ie=0,je=se.length;se[0].type==="separator"&&(I+="top ",Ie=1),se[se.length-1].type==="separator"&&(I+="bottom ",je-=1);for(let ut=Ie;ut<je;ut++){const Qe=se[ut];Qe.type==="align"?(P+=bv[Qe.align],we&&(le+="none "),we=!0):Qe.type==="separator"&&we&&(le+=Qe.separator==="|"?"solid ":"dashed ",we=!1)}A.setAttribute("columnalign",P.trim()),/[sd]/.test(le)&&A.setAttribute("columnlines",le.trim())}if(s.colSeparationType==="align"){const se=s.cols||[];let le="";for(let we=1;we<se.length;we++)le+=we%2?"0em ":"1em ";A.setAttribute("columnspacing",le.trim())}else s.colSeparationType==="alignat"||s.colSeparationType==="gather"?A.setAttribute("columnspacing","0em"):s.colSeparationType==="small"?A.setAttribute("columnspacing","0.2778em"):s.colSeparationType==="CD"?A.setAttribute("columnspacing","0.5em"):A.setAttribute("columnspacing","1em");let G="";const re=s.hLinesBeforeRow;I+=re[0].length>0?"left ":"",I+=re[re.length-1].length>0?"right ":"";for(let se=1;se<re.length-1;se++)G+=re[se].length===0?"none ":re[se][0]?"dashed ":"solid ";return/[sd]/.test(G)&&A.setAttribute("rowlines",G.trim()),I!==""&&(A=new Ne("menclose",[A]),A.setAttribute("notation",I.trim())),s.arraystretch&&s.arraystretch<1&&(A=new Ne("mstyle",[A]),A.setAttribute("scriptlevel","1")),A},Qh=function(s,o){s.envName.includes("ed")||nl(s);const u=[],h=s.envName.includes("at")?"alignat":"align",b=s.envName==="split",A=jn(s.parser,{cols:u,addJot:!0,autoTag:b?void 0:Wc(s.envName),emptySingleRow:!0,colSeparationType:h,maxNumCols:b?2:void 0,leqno:s.parser.settings.leqno},"display");let T=0,I=0;const P={type:"ordgroup",mode:s.mode,body:[]};if(o[0]&&o[0].type==="ordgroup"){let re="";for(let se=0;se<o[0].body.length;se++){const le=rt(o[0].body[se],"textord");re+=le.text}T=Number(re),I=T*2}const G=!I;A.body.forEach(function(re){for(let se=1;se<re.length;se+=2){const le=rt(re[se],"styling");rt(le.body[0],"ordgroup").body.unshift(P)}if(G)I<re.length&&(I=re.length);else{const se=re.length/2;if(T<se)throw new a("Too many math in a row: "+("expected "+T+", but got "+se),re[0])}});for(let re=0;re<I;++re){let se="r",le=0;re%2===1?se="l":re>0&&G&&(le=1),u[re]={type:"align",align:se,pregap:le,postgap:0}}return A.colSeparationType=G?"align":"alignat",A};Kr({type:"array",names:["array","darray"],props:{numArgs:1},handler(s,o){const b=(Zs(o[0])?[o[0]]:rt(o[0],"ordgroup").body).map(function(T){const P=Ys(T).text;if("lcr".includes(P))return{type:"align",align:P};if(P==="|")return{type:"separator",separator:"|"};if(P===":")return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+P,T)}),A={cols:b,hskipBeforeAndAfter:!0,maxNumCols:b.length};return jn(s.parser,A,Gc(s.envName))},htmlBuilder:Qr,mathmlBuilder:Jr}),Kr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(s){const o={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[s.envName.replace("*","")];let u="c";const h={hskipBeforeAndAfter:!1,cols:[{type:"align",align:u}]};if(s.envName.charAt(s.envName.length-1)==="*"){const T=s.parser;if(T.consumeSpaces(),T.fetch().text==="["){if(T.consume(),T.consumeSpaces(),u=T.fetch().text,!"lcr".includes(u))throw new a("Expected l or c or r",T.nextToken);T.consume(),T.consumeSpaces(),T.expect("]"),T.consume(),h.cols=[{type:"align",align:u}]}}const b=jn(s.parser,h,Gc(s.envName)),A=Math.max(0,...b.body.map(T=>T.length));return b.cols=new Array(A).fill({type:"align",align:u}),o?{type:"leftright",mode:s.mode,body:[b],left:o[0],right:o[1],rightColor:void 0}:b},htmlBuilder:Qr,mathmlBuilder:Jr}),Kr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(s){const o={arraystretch:.5},u=jn(s.parser,o,"script");return u.colSeparationType="small",u},htmlBuilder:Qr,mathmlBuilder:Jr}),Kr({type:"array",names:["subarray"],props:{numArgs:1},handler(s,o){const b=(Zs(o[0])?[o[0]]:rt(o[0],"ordgroup").body).map(function(I){const G=Ys(I).text;if("lc".includes(G))return{type:"align",align:G};throw new a("Unknown column alignment: "+G,I)});if(b.length>1)throw new a("{subarray} can contain only one column");const A={cols:b,hskipBeforeAndAfter:!1,arraystretch:.5},T=jn(s.parser,A,"script");if(T.body.length>0&&T.body[0].length>1)throw new a("{subarray} can contain only one column");return T},htmlBuilder:Qr,mathmlBuilder:Jr}),Kr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(s){const o={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},u=jn(s.parser,o,Gc(s.envName));return{type:"leftright",mode:s.mode,body:[u],left:s.envName.includes("r")?".":"\\{",right:s.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Qr,mathmlBuilder:Jr}),Kr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Qh,htmlBuilder:Qr,mathmlBuilder:Jr}),Kr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(s){gv.has(s.envName)&&nl(s);const o={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Wc(s.envName),emptySingleRow:!0,leqno:s.parser.settings.leqno};return jn(s.parser,o,"display")},htmlBuilder:Qr,mathmlBuilder:Jr}),Kr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Qh,htmlBuilder:Qr,mathmlBuilder:Jr}),Kr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(s){nl(s);const o={autoTag:Wc(s.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:s.parser.settings.leqno};return jn(s.parser,o,"display")},htmlBuilder:Qr,mathmlBuilder:Jr}),Kr({type:"array",names:["CD"],props:{numArgs:0},handler(s){return nl(s),av(s.parser)},htmlBuilder:Qr,mathmlBuilder:Jr}),L("\\nonumber","\\gdef\\@eqnsw{0}"),L("\\notag","\\nonumber"),Pe({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(s,o){throw new a(s.funcName+" valid only within array environment")}});var Jh=Yh;Pe({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(s,o){let{parser:u,funcName:h}=s;const b=o[0];if(b.type!=="ordgroup")throw new a("Invalid environment name",b);let A="";for(let T=0;T<b.body.length;++T)A+=rt(b.body[T],"textord").text;if(h==="\\begin"){if(!Jh.hasOwnProperty(A))throw new a("No such environment: "+A,b);const T=Jh[A],{args:I,optArgs:P}=u.parseArguments("\\begin{"+A+"}",T),G={mode:u.mode,envName:A,parser:u},re=T.handler(G,I,P);u.expect("\\end",!1);const se=u.nextToken,le=rt(u.parseFunction(),"environment");if(le.name!==A)throw new a("Mismatch: \\begin{"+A+"} matched by \\end{"+le.name+"}",se);return re}return{type:"environment",mode:u.mode,name:A,nameGroup:b}}});const e3=(s,o)=>{const u=s.font,h=o.withFont(u);return gt(s.body,h)},t3=(s,o)=>{const u=s.font,h=o.withFont(u);return kt(s.body,h)},r3={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Pe({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(s,o)=>{let{parser:u,funcName:h}=s;const b=Us(o[0]);let A=h;return A in r3&&(A=r3[A]),{type:"font",mode:u.mode,font:A.slice(1),body:b}},htmlBuilder:e3,mathmlBuilder:t3}),Pe({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(s,o)=>{let{parser:u}=s;const h=o[0];return{type:"mclass",mode:u.mode,mclass:Qs(h),body:[{type:"font",mode:u.mode,font:"boldsymbol",body:h}],isCharacterBox:S(h)}}}),Pe({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(s,o)=>{let{parser:u,funcName:h,breakOnTokenText:b}=s;const{mode:A}=u,T=u.parseExpression(!0,b),I="math"+h.slice(1);return{type:"font",mode:A,font:I,body:{type:"ordgroup",mode:u.mode,body:T}}},htmlBuilder:e3,mathmlBuilder:t3});const yv=(s,o)=>{const u=o.style,h=u.fracNum(),b=u.fracDen();let A;A=o.havingStyle(h);const T=gt(s.numer,A,o);if(s.continued){const ct=8.5/o.fontMetrics().ptPerEm,yt=3.5/o.fontMetrics().ptPerEm;T.height=T.height<ct?ct:T.height,T.depth=T.depth<yt?yt:T.depth}A=o.havingStyle(b);const I=gt(s.denom,A,o);let P,G,re;s.hasBarLine?(s.barSize?(G=lt(s.barSize,o),P=Ga("frac-line",o,G)):P=Ga("frac-line",o),G=P.height,re=P.height):(P=null,G=0,re=o.fontMetrics().defaultRuleThickness);let se,le,we;u.size===ne.DISPLAY.size?(se=o.fontMetrics().num1,G>0?le=3*re:le=7*re,we=o.fontMetrics().denom1):(G>0?(se=o.fontMetrics().num2,le=re):(se=o.fontMetrics().num3,le=3*re),we=o.fontMetrics().denom2);let Ie;if(P){const ct=o.fontMetrics().axisHeight;se-T.depth-(ct+.5*G)<le&&(se+=le-(se-T.depth-(ct+.5*G))),ct-.5*G-(I.height-we)<le&&(we+=le-(ct-.5*G-(I.height-we)));const yt=-(ct-.5*G);Ie=pt({positionType:"individualShift",children:[{type:"elem",elem:I,shift:we},{type:"elem",elem:P,shift:yt},{type:"elem",elem:T,shift:-se}]})}else{const ct=se-T.depth-(I.height-we);ct<le&&(se+=.5*(le-ct),we+=.5*(le-ct)),Ie=pt({positionType:"individualShift",children:[{type:"elem",elem:I,shift:we},{type:"elem",elem:T,shift:-se}]})}A=o.havingStyle(u),Ie.height*=A.sizeMultiplier/o.sizeMultiplier,Ie.depth*=A.sizeMultiplier/o.sizeMultiplier;let je;u.size===ne.DISPLAY.size?je=o.fontMetrics().delim1:u.size===ne.SCRIPTSCRIPT.size?je=o.havingStyle(ne.SCRIPT).fontMetrics().delim2:je=o.fontMetrics().delim2;let ut,Qe;return s.leftDelim==null?ut=ro(o,["mopen"]):ut=$c(s.leftDelim,je,!0,o.havingStyle(u),s.mode,["mopen"]),s.continued?Qe=Ee([]):s.rightDelim==null?Qe=ro(o,["mclose"]):Qe=$c(s.rightDelim,je,!0,o.havingStyle(u),s.mode,["mclose"]),Ee(["mord"].concat(A.sizingClasses(o)),[ut,Ee(["mfrac"],[Ie]),Qe],o)},vv=(s,o)=>{const u=new Ne("mfrac",[kt(s.numer,o),kt(s.denom,o)]);if(!s.hasBarLine)u.setAttribute("linethickness","0px");else if(s.barSize){const h=lt(s.barSize,o);u.setAttribute("linethickness",Se(h))}if(s.leftDelim!=null||s.rightDelim!=null){const h=[];if(s.leftDelim!=null){const b=new Ne("mo",[new e0(s.leftDelim.replace("\\",""))]);b.setAttribute("fence","true"),h.push(b)}if(h.push(u),s.rightDelim!=null){const b=new Ne("mo",[new e0(s.rightDelim.replace("\\",""))]);b.setAttribute("fence","true"),h.push(b)}return _c(h)}return u},n3=(s,o)=>o?{type:"styling",mode:s.mode,style:o,body:[s]}:s;Pe({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(s,o)=>{let{parser:u,funcName:h}=s;const b=o[0],A=o[1];let T,I=null,P=null;switch(h){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":T=!0;break;case"\\\\atopfrac":T=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":T=!1,I="(",P=")";break;case"\\\\bracefrac":T=!1,I="\\{",P="\\}";break;case"\\\\brackfrac":T=!1,I="[",P="]";break;default:throw new Error("Unrecognized genfrac command")}const G=h==="\\cfrac";let re=null;return G||h.startsWith("\\d")?re="display":h.startsWith("\\t")&&(re="text"),n3({type:"genfrac",mode:u.mode,numer:b,denom:A,continued:G,hasBarLine:T,leftDelim:I,rightDelim:P,barSize:null},re)},htmlBuilder:yv,mathmlBuilder:vv}),Pe({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(s){let{parser:o,funcName:u,token:h}=s,b;switch(u){case"\\over":b="\\frac";break;case"\\choose":b="\\binom";break;case"\\atop":b="\\\\atopfrac";break;case"\\brace":b="\\\\bracefrac";break;case"\\brack":b="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:o.mode,replaceWith:b,token:h}}});const a3=["display","text","script","scriptscript"],i3=function(s){let o=null;return s.length>0&&(o=s,o=o==="."?null:o),o};Pe({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(s,o){let{parser:u}=s;const h=o[4],b=o[5],A=Us(o[0]),T=A.type==="atom"&&A.family==="open"?i3(A.text):null,I=Us(o[1]),P=I.type==="atom"&&I.family==="close"?i3(I.text):null,G=rt(o[2],"size");let re,se=null;G.isBlank?re=!0:(se=G.value,re=se.number>0);let le=null,we=o[3];if(we.type==="ordgroup"){if(we.body.length>0){const Ie=rt(we.body[0],"textord");le=a3[Number(Ie.text)]}}else we=rt(we,"textord"),le=a3[Number(we.text)];return n3({type:"genfrac",mode:u.mode,numer:h,denom:b,continued:!1,hasBarLine:re,barSize:se,leftDelim:T,rightDelim:P},le)}}),Pe({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(s,o){let{parser:u,funcName:h,token:b}=s;return{type:"infix",mode:u.mode,replaceWith:"\\\\abovefrac",size:rt(o[0],"size").value,token:b}}}),Pe({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(s,o)=>{let{parser:u,funcName:h}=s;const b=o[0],A=rt(o[1],"infix").size;if(!A)throw new Error("\\\\abovefrac expected size, but got "+String(A));const T=o[2],I=A.number>0;return{type:"genfrac",mode:u.mode,numer:b,denom:T,continued:!1,hasBarLine:I,barSize:A,leftDelim:null,rightDelim:null}}});const o3=(s,o)=>{const u=o.style;let h,b;s.type==="supsub"?(h=s.sup?gt(s.sup,o.havingStyle(u.sup()),o):gt(s.sub,o.havingStyle(u.sub()),o),b=rt(s.base,"horizBrace")):b=rt(s,"horizBrace");const A=gt(b.base,o.havingBaseStyle(ne.DISPLAY)),T=Xs(b,o);let I;if(b.isOver?(I=pt({positionType:"firstBaseline",children:[{type:"elem",elem:A},{type:"kern",size:.1},{type:"elem",elem:T}]}),I.children[0].children[0].children[1].classes.push("svg-align")):(I=pt({positionType:"bottom",positionData:A.depth+.1+T.height,children:[{type:"elem",elem:T},{type:"kern",size:.1},{type:"elem",elem:A}]}),I.children[0].children[0].children[0].classes.push("svg-align")),h){const P=Ee(["minner",b.isOver?"mover":"munder"],[I],o);b.isOver?I=pt({positionType:"firstBaseline",children:[{type:"elem",elem:P},{type:"kern",size:.2},{type:"elem",elem:h}]}):I=pt({positionType:"bottom",positionData:P.depth+.2+h.height+h.depth,children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:P}]})}return Ee(["minner",b.isOver?"mover":"munder"],[I],o)};Pe({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(s,o){let{parser:u,funcName:h}=s;return{type:"horizBrace",mode:u.mode,label:h,isOver:h.includes("\\over"),base:o[0]}},htmlBuilder:o3,mathmlBuilder:(s,o)=>{const u=Gs(s.label);return new Ne(s.isOver?"mover":"munder",[kt(s.base,o),u])}}),Pe({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(s,o)=>{let{parser:u}=s;const h=o[1],b=rt(o[0],"url").url;return u.settings.isTrusted({command:"\\href",url:b})?{type:"href",mode:u.mode,href:b,body:Jt(h)}:u.formatUnsupportedCmd("\\href")},htmlBuilder:(s,o)=>{const u=l0(s.body,o,!1);return Oy(s.href,[],u,o)},mathmlBuilder:(s,o)=>{let u=qn(s.body,o);return u instanceof Ne||(u=new Ne("mrow",[u])),u.setAttribute("href",s.href),u}}),Pe({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(s,o)=>{let{parser:u}=s;const h=rt(o[0],"url").url;if(!u.settings.isTrusted({command:"\\url",url:h}))return u.formatUnsupportedCmd("\\url");const b=[];for(let T=0;T<h.length;T++){let I=h[T];I==="~"&&(I="\\textasciitilde"),b.push({type:"textord",mode:"text",text:I})}const A={type:"text",mode:u.mode,font:"\\texttt",body:b};return{type:"href",mode:u.mode,href:h,body:Jt(A)}}}),Pe({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(s,o){let{parser:u}=s;return{type:"hbox",mode:u.mode,body:Jt(o[0])}},htmlBuilder(s,o){const u=l0(s.body,o,!1);return fn(u)},mathmlBuilder(s,o){return new Ne("mrow",ar(s.body,o))}}),Pe({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(s,o)=>{let{parser:u,funcName:h,token:b}=s;const A=rt(o[0],"raw").string,T=o[1];u.settings.strict&&u.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");let I;const P={};switch(h){case"\\htmlClass":P.class=A,I={command:"\\htmlClass",class:A};break;case"\\htmlId":P.id=A,I={command:"\\htmlId",id:A};break;case"\\htmlStyle":P.style=A,I={command:"\\htmlStyle",style:A};break;case"\\htmlData":{const G=A.split(",");for(let re=0;re<G.length;re++){const se=G[re],le=se.indexOf("=");if(le<0)throw new a("\\htmlData key/value '"+se+"' missing equals sign");const we=se.slice(0,le),Ie=se.slice(le+1);P["data-"+we.trim()]=Ie}I={command:"\\htmlData",attributes:P};break}default:throw new Error("Unrecognized html command")}return u.settings.isTrusted(I)?{type:"html",mode:u.mode,attributes:P,body:Jt(T)}:u.formatUnsupportedCmd(h)},htmlBuilder:(s,o)=>{const u=l0(s.body,o,!1),h=["enclosing"];s.attributes.class&&h.push(...s.attributes.class.trim().split(/\s+/));const b=Ee(h,u,o);for(const A in s.attributes)A!=="class"&&s.attributes.hasOwnProperty(A)&&b.setAttribute(A,s.attributes[A]);return b},mathmlBuilder:(s,o)=>qn(s.body,o)}),Pe({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(s,o)=>{let{parser:u}=s;return{type:"htmlmathml",mode:u.mode,html:Jt(o[0]),mathml:Jt(o[1])}},htmlBuilder:(s,o)=>{const u=l0(s.html,o,!1);return fn(u)},mathmlBuilder:(s,o)=>qn(s.mathml,o)});const Xc=function(s){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(s))return{number:+s,unit:"bp"};{const o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(s);if(!o)throw new a("Invalid size: '"+s+"' in \\includegraphics");const u={number:+(o[1]+o[2]),unit:o[3]};if(!Wt(u))throw new a("Invalid unit: '"+u.unit+"' in \\includegraphics.");return u}};Pe({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(s,o,u)=>{let{parser:h}=s,b={number:0,unit:"em"},A={number:.9,unit:"em"},T={number:0,unit:"em"},I="";if(u[0]){const re=rt(u[0],"raw").string.split(",");for(let se=0;se<re.length;se++){const le=re[se].split("=");if(le.length===2){const we=le[1].trim();switch(le[0].trim()){case"alt":I=we;break;case"width":b=Xc(we);break;case"height":A=Xc(we);break;case"totalheight":T=Xc(we);break;default:throw new a("Invalid key: '"+le[0]+"' in \\includegraphics.")}}}}const P=rt(o[0],"url").url;return I===""&&(I=P,I=I.replace(/^.*[\\/]/,""),I=I.substring(0,I.lastIndexOf("."))),h.settings.isTrusted({command:"\\includegraphics",url:P})?{type:"includegraphics",mode:h.mode,alt:I,width:b,height:A,totalheight:T,src:P}:h.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(s,o)=>{const u=lt(s.height,o);let h=0;s.totalheight.number>0&&(h=lt(s.totalheight,o)-u);let b=0;s.width.number>0&&(b=lt(s.width,o));const A={height:Se(u+h)};b>0&&(A.width=Se(b)),h>0&&(A.verticalAlign=Se(-h));const T=new Yr(s.src,s.alt,A);return T.height=u,T.depth=h,T},mathmlBuilder:(s,o)=>{const u=new Ne("mglyph",[]);u.setAttribute("alt",s.alt);const h=lt(s.height,o);let b=0;if(s.totalheight.number>0&&(b=lt(s.totalheight,o)-h,u.setAttribute("valign",Se(-b))),u.setAttribute("height",Se(h+b)),s.width.number>0){const A=lt(s.width,o);u.setAttribute("width",Se(A))}return u.setAttribute("src",s.src),u}}),Pe({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(s,o){let{parser:u,funcName:h}=s;const b=rt(o[0],"size");if(u.settings.strict){const A=h[1]==="m",T=b.value.unit==="mu";A?(T||u.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+h+" supports only mu units, "+("not "+b.value.unit+" units")),u.mode!=="math"&&u.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+h+" works only in math mode")):T&&u.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+h+" doesn't support mu units")}return{type:"kern",mode:u.mode,dimension:b.value}},htmlBuilder(s,o){return bh(s.dimension,o)},mathmlBuilder(s,o){const u=lt(s.dimension,o);return new Ah(u)}}),Pe({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(s,o)=>{let{parser:u,funcName:h}=s;const b=o[0];return{type:"lap",mode:u.mode,alignment:h.slice(5),body:b}},htmlBuilder:(s,o)=>{let u;s.alignment==="clap"?(u=Ee([],[gt(s.body,o)]),u=Ee(["inner"],[u],o)):u=Ee(["inner"],[gt(s.body,o)]);const h=Ee(["fix"],[]);let b=Ee([s.alignment],[u,h],o);const A=Ee(["strut"]);return A.style.height=Se(b.height+b.depth),b.depth&&(A.style.verticalAlign=Se(-b.depth)),b.children.unshift(A),b=Ee(["thinbox"],[b],o),Ee(["mord","vbox"],[b],o)},mathmlBuilder:(s,o)=>{const u=new Ne("mpadded",[kt(s.body,o)]);if(s.alignment!=="rlap"){const h=s.alignment==="llap"?"-1":"-0.5";u.setAttribute("lspace",h+"width")}return u.setAttribute("width","0px"),u}}),Pe({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(s,o){let{funcName:u,parser:h}=s;const b=h.mode;h.switchMode("math");const A=u==="\\("?"\\)":"$",T=h.parseExpression(!1,A);return h.expect(A),h.switchMode(b),{type:"styling",mode:h.mode,style:"text",body:T}}}),Pe({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(s,o){throw new a("Mismatched "+s.funcName)}});const s3=(s,o)=>{switch(o.style.size){case ne.DISPLAY.size:return s.display;case ne.TEXT.size:return s.text;case ne.SCRIPT.size:return s.script;case ne.SCRIPTSCRIPT.size:return s.scriptscript;default:return s.text}};Pe({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(s,o)=>{let{parser:u}=s;return{type:"mathchoice",mode:u.mode,display:Jt(o[0]),text:Jt(o[1]),script:Jt(o[2]),scriptscript:Jt(o[3])}},htmlBuilder:(s,o)=>{const u=s3(s,o),h=l0(u,o,!1);return fn(h)},mathmlBuilder:(s,o)=>{const u=s3(s,o);return qn(u,o)}});const l3=(s,o,u,h,b,A,T)=>{s=Ee([],[s]);const I=u&&S(u);let P,G;if(o){const le=gt(o,h.havingStyle(b.sup()),h);G={elem:le,kern:Math.max(h.fontMetrics().bigOpSpacing1,h.fontMetrics().bigOpSpacing3-le.depth)}}if(u){const le=gt(u,h.havingStyle(b.sub()),h);P={elem:le,kern:Math.max(h.fontMetrics().bigOpSpacing2,h.fontMetrics().bigOpSpacing4-le.height)}}let re;if(G&&P){const le=h.fontMetrics().bigOpSpacing5+P.elem.height+P.elem.depth+P.kern+s.depth+T;re=pt({positionType:"bottom",positionData:le,children:[{type:"kern",size:h.fontMetrics().bigOpSpacing5},{type:"elem",elem:P.elem,marginLeft:Se(-A)},{type:"kern",size:P.kern},{type:"elem",elem:s},{type:"kern",size:G.kern},{type:"elem",elem:G.elem,marginLeft:Se(A)},{type:"kern",size:h.fontMetrics().bigOpSpacing5}]})}else if(P){const le=s.height-T;re=pt({positionType:"top",positionData:le,children:[{type:"kern",size:h.fontMetrics().bigOpSpacing5},{type:"elem",elem:P.elem,marginLeft:Se(-A)},{type:"kern",size:P.kern},{type:"elem",elem:s}]})}else if(G){const le=s.depth+T;re=pt({positionType:"bottom",positionData:le,children:[{type:"elem",elem:s},{type:"kern",size:G.kern},{type:"elem",elem:G.elem,marginLeft:Se(A)},{type:"kern",size:h.fontMetrics().bigOpSpacing5}]})}else return s;const se=[re];if(P&&A!==0&&!I){const le=Ee(["mspace"],[],h);le.style.marginRight=Se(A),se.unshift(le)}return Ee(["mop","op-limits"],se,h)},u3=new Set(["\\smallint"]),Ya=(s,o)=>{let u,h,b=!1,A;s.type==="supsub"?(u=s.sup,h=s.sub,A=rt(s.base,"op"),b=!0):A=rt(s,"op");const T=o.style;let I=!1;T.size===ne.DISPLAY.size&&A.symbol&&!u3.has(A.name)&&(I=!0);let P;if(A.symbol){const se=I?"Size2-Regular":"Size1-Regular";let le="";if((A.name==="\\oiint"||A.name==="\\oiiint")&&(le=A.name.slice(1),A.name=le==="oiint"?"\\iint":"\\iiint"),P=Dt(A.name,se,"math",o,["mop","op-symbol",I?"large-op":"small-op"]),le.length>0){const we=P.italic,Ie=vh(le+"Size"+(I?"2":"1"),o);P=pt({positionType:"individualShift",children:[{type:"elem",elem:P,shift:0},{type:"elem",elem:Ie,shift:I?.08:0}]}),A.name="\\"+le,P.classes.unshift("mop"),P.italic=we}}else if(A.body){const se=l0(A.body,o,!0);se.length===1&&se[0]instanceof k0?(P=se[0],P.classes[0]="mop"):P=Ee(["mop"],se,o)}else{const se=[];for(let le=1;le<A.name.length;le++)se.push(Zr(A.name[le],A.mode,o));P=Ee(["mop"],se,o)}let G=0,re=0;return(P instanceof k0||A.name==="\\oiint"||A.name==="\\oiiint")&&!A.suppressBaseShift&&(G=(P.height-P.depth)/2-o.fontMetrics().axisHeight,re=P.italic||0),b?l3(P,u,h,o,T,re,G):(G&&(P.style.position="relative",P.style.top=Se(G)),P)},io=(s,o)=>{let u;if(s.symbol)u=new Ne("mo",[fr(s.name,s.mode)]),u3.has(s.name)&&u.setAttribute("largeop","false");else if(s.body)u=new Ne("mo",ar(s.body,o));else{u=new Ne("mi",[new e0(s.name.slice(1))]);const h=new Ne("mo",[fr("","text")]);s.parentIsSupSub?u=new Ne("mrow",[u,h]):u=kh([u,h])}return u},xv={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Pe({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(s,o)=>{let{parser:u,funcName:h}=s,b=h;return b.length===1&&(b=xv[b]),{type:"op",mode:u.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:b}},htmlBuilder:Ya,mathmlBuilder:io}),Pe({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(s,o)=>{let{parser:u}=s;const h=o[0];return{type:"op",mode:u.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Jt(h)}},htmlBuilder:Ya,mathmlBuilder:io});const wv={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Pe({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(s){let{parser:o,funcName:u}=s;return{type:"op",mode:o.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:u}},htmlBuilder:Ya,mathmlBuilder:io}),Pe({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(s){let{parser:o,funcName:u}=s;return{type:"op",mode:o.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:u}},htmlBuilder:Ya,mathmlBuilder:io}),Pe({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(s){let{parser:o,funcName:u}=s,h=u;return h.length===1&&(h=wv[h]),{type:"op",mode:o.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:h}},htmlBuilder:Ya,mathmlBuilder:io});const c3=(s,o)=>{let u,h,b=!1,A;s.type==="supsub"?(u=s.sup,h=s.sub,A=rt(s.base,"operatorname"),b=!0):A=rt(s,"operatorname");let T;if(A.body.length>0){const I=A.body.map(G=>{const re="text"in G?G.text:void 0;return typeof re=="string"?{type:"textord",mode:G.mode,text:re}:G}),P=l0(I,o.withFont("mathrm"),!0);for(let G=0;G<P.length;G++){const re=P[G];re instanceof k0&&(re.text=re.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}T=Ee(["mop"],P,o)}else T=Ee(["mop"],[],o);return b?l3(T,u,h,o,o.style,0,0):T};Pe({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(s,o)=>{let{parser:u,funcName:h}=s;const b=o[0];return{type:"operatorname",mode:u.mode,body:Jt(b),alwaysHandleSupSub:h==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:c3,mathmlBuilder:(s,o)=>{let u=ar(s.body,o.withFont("mathrm")),h=!0;for(let T=0;T<u.length;T++){const I=u[T];if(!(I instanceof Ah))if(I instanceof Ne)switch(I.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{const P=I.children[0];I.children.length===1&&P instanceof e0?P.text=P.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):h=!1;break}default:h=!1}else h=!1}if(h){const T=u.map(I=>I.toText()).join("");u=[new e0(T)]}const b=new Ne("mi",u);b.setAttribute("mathvariant","normal");const A=new Ne("mo",[fr("","text")]);return s.parentIsSupSub?new Ne("mrow",[b,A]):kh([b,A])}}),L("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ca({type:"ordgroup",htmlBuilder(s,o){return s.semisimple?fn(l0(s.body,o,!1)):Ee(["mord"],l0(s.body,o,!0),o)},mathmlBuilder(s,o){return qn(s.body,o,!0)}}),Pe({type:"overline",names:["\\overline"],props:{numArgs:1},handler(s,o){let{parser:u}=s;const h=o[0];return{type:"overline",mode:u.mode,body:h}},htmlBuilder(s,o){const u=gt(s.body,o.havingCrampedStyle()),h=Ga("overline-line",o),b=o.fontMetrics().defaultRuleThickness,A=pt({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:3*b},{type:"elem",elem:h},{type:"kern",size:b}]});return Ee(["mord","overline"],[A],o)},mathmlBuilder(s,o){const u=new Ne("mo",[new e0("‾")]);u.setAttribute("stretchy","true");const h=new Ne("mover",[kt(s.body,o),u]);return h.setAttribute("accent","true"),h}}),Pe({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(s,o)=>{let{parser:u}=s;const h=o[0];return{type:"phantom",mode:u.mode,body:Jt(h)}},htmlBuilder:(s,o)=>{const u=l0(s.body,o.withPhantom(),!1);return fn(u)},mathmlBuilder:(s,o)=>{const u=ar(s.body,o);return new Ne("mphantom",u)}}),L("\\hphantom","\\smash{\\phantom{#1}}"),Pe({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(s,o)=>{let{parser:u}=s;const h=o[0];return{type:"vphantom",mode:u.mode,body:h}},htmlBuilder:(s,o)=>{const u=Ee(["inner"],[gt(s.body,o.withPhantom())]),h=Ee(["fix"],[]);return Ee(["mord","rlap"],[u,h],o)},mathmlBuilder:(s,o)=>{const u=ar(Jt(s.body),o),h=new Ne("mphantom",u),b=new Ne("mpadded",[h]);return b.setAttribute("width","0px"),b}}),Pe({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(s,o){let{parser:u}=s;const h=rt(o[0],"size").value,b=o[1];return{type:"raisebox",mode:u.mode,dy:h,body:b}},htmlBuilder(s,o){const u=gt(s.body,o),h=lt(s.dy,o);return pt({positionType:"shift",positionData:-h,children:[{type:"elem",elem:u}]})},mathmlBuilder(s,o){const u=new Ne("mpadded",[kt(s.body,o)]),h=s.dy.number+s.dy.unit;return u.setAttribute("voffset",h),u}}),Pe({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(s){let{parser:o}=s;return{type:"internal",mode:o.mode}}}),Pe({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(s,o,u){let{parser:h}=s;const b=u[0],A=rt(o[0],"size"),T=rt(o[1],"size");return{type:"rule",mode:h.mode,shift:b&&rt(b,"size").value,width:A.value,height:T.value}},htmlBuilder(s,o){const u=Ee(["mord","rule"],[],o),h=lt(s.width,o),b=lt(s.height,o),A=s.shift?lt(s.shift,o):0;return u.style.borderRightWidth=Se(h),u.style.borderTopWidth=Se(b),u.style.bottom=Se(A),u.width=h,u.height=b+A,u.depth=-A,u.maxFontSize=b*1.125*o.sizeMultiplier,u},mathmlBuilder(s,o){const u=lt(s.width,o),h=lt(s.height,o),b=s.shift?lt(s.shift,o):0,A=o.color&&o.getColor()||"black",T=new Ne("mspace");T.setAttribute("mathbackground",A),T.setAttribute("width",Se(u)),T.setAttribute("height",Se(h));const I=new Ne("mpadded",[T]);return b>=0?I.setAttribute("height",Se(b)):(I.setAttribute("height",Se(b)),I.setAttribute("depth",Se(-b))),I.setAttribute("voffset",Se(b)),I}});function d3(s,o,u){const h=l0(s,o,!1),b=o.sizeMultiplier/u.sizeMultiplier;for(let A=0;A<h.length;A++){const T=h[A].classes.indexOf("sizing");T<0?Array.prototype.push.apply(h[A].classes,o.sizingClasses(u)):h[A].classes[T+1]==="reset-size"+o.size&&(h[A].classes[T+1]="reset-size"+u.size),h[A].height*=b,h[A].depth*=b}return fn(h)}const f3=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];Pe({type:"sizing",names:f3,props:{numArgs:0,allowedInText:!0},handler:(s,o)=>{let{breakOnTokenText:u,funcName:h,parser:b}=s;const A=b.parseExpression(!1,u);return{type:"sizing",mode:b.mode,size:f3.indexOf(h)+1,body:A}},htmlBuilder:(s,o)=>{const u=o.havingSize(s.size);return d3(s.body,u,o)},mathmlBuilder:(s,o)=>{const u=o.havingSize(s.size),h=ar(s.body,u),b=new Ne("mstyle",h);return b.setAttribute("mathsize",Se(u.sizeMultiplier)),b}}),Pe({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(s,o,u)=>{let{parser:h}=s,b=!1,A=!1;const T=u[0]&&rt(u[0],"ordgroup");if(T){let P="";for(let G=0;G<T.body.length;++G){const re=T.body[G];if(P=Ys(re).text,P==="t")b=!0;else if(P==="b")A=!0;else{b=!1,A=!1;break}}}else b=!0,A=!0;const I=o[0];return{type:"smash",mode:h.mode,body:I,smashHeight:b,smashDepth:A}},htmlBuilder:(s,o)=>{const u=Ee([],[gt(s.body,o)]);if(!s.smashHeight&&!s.smashDepth)return u;if(s.smashHeight&&(u.height=0),s.smashDepth&&(u.depth=0),s.smashHeight&&s.smashDepth)return Ee(["mord","smash"],[u],o);if(u.children)for(let b=0;b<u.children.length;b++)s.smashHeight&&(u.children[b].height=0),s.smashDepth&&(u.children[b].depth=0);const h=pt({positionType:"firstBaseline",children:[{type:"elem",elem:u}]});return Ee(["mord"],[h],o)},mathmlBuilder:(s,o)=>{const u=new Ne("mpadded",[kt(s.body,o)]);return s.smashHeight&&u.setAttribute("height","0px"),s.smashDepth&&u.setAttribute("depth","0px"),u}}),Pe({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(s,o,u){let{parser:h}=s;const b=u[0],A=o[0];return{type:"sqrt",mode:h.mode,body:A,index:b}},htmlBuilder(s,o){let u=gt(s.body,o.havingCrampedStyle());u.height===0&&(u.height=o.fontMetrics().xHeight),u=Xa(u,o);const b=o.fontMetrics().defaultRuleThickness;let A=b;o.style.id<ne.TEXT.id&&(A=o.fontMetrics().xHeight);let T=b+A/4;const I=u.height+u.depth+T+b,{span:P,ruleWidth:G,advanceWidth:re}=cv(I,o),se=P.height-G;se>u.height+u.depth+T&&(T=(T+se-u.height-u.depth)/2);const le=P.height-u.height-T-G;u.style.paddingLeft=Se(re);const we=pt({positionType:"firstBaseline",children:[{type:"elem",elem:u,wrapperClasses:["svg-align"]},{type:"kern",size:-(u.height+le)},{type:"elem",elem:P},{type:"kern",size:G}]});if(s.index){const Ie=o.havingStyle(ne.SCRIPTSCRIPT),je=gt(s.index,Ie,o),ut=.6*(we.height-we.depth),Qe=pt({positionType:"shift",positionData:-ut,children:[{type:"elem",elem:je}]}),ct=Ee(["root"],[Qe]);return Ee(["mord","sqrt"],[ct,we],o)}else return Ee(["mord","sqrt"],[we],o)},mathmlBuilder(s,o){const{body:u,index:h}=s;return h?new Ne("mroot",[kt(u,o),kt(h,o)]):new Ne("msqrt",[kt(u,o)])}});const h3={display:ne.DISPLAY,text:ne.TEXT,script:ne.SCRIPT,scriptscript:ne.SCRIPTSCRIPT};Pe({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s,o){let{breakOnTokenText:u,funcName:h,parser:b}=s;const A=b.parseExpression(!0,u),T=h.slice(1,h.length-5);return{type:"styling",mode:b.mode,style:T,body:A}},htmlBuilder(s,o){const u=h3[s.style],h=o.havingStyle(u).withFont("");return d3(s.body,h,o)},mathmlBuilder(s,o){const u=h3[s.style],h=o.havingStyle(u),b=ar(s.body,h),A=new Ne("mstyle",b),I={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[s.style];return A.setAttribute("scriptlevel",I[0]),A.setAttribute("displaystyle",I[1]),A}});const kv=function(s,o){const u=s.base;return u?u.type==="op"?u.limits&&(o.style.size===ne.DISPLAY.size||u.alwaysHandleSupSub)?Ya:null:u.type==="operatorname"?u.alwaysHandleSupSub&&(o.style.size===ne.DISPLAY.size||u.limits)?c3:null:u.type==="accent"?S(u.base)?Bc:null:u.type==="horizBrace"&&!s.sub===u.isOver?o3:null:null};ca({type:"supsub",htmlBuilder(s,o){const u=kv(s,o);if(u)return u(s,o);const{base:h,sup:b,sub:A}=s,T=gt(h,o);let I,P;const G=o.fontMetrics();let re=0,se=0;const le=h&&S(h);if(b){const yt=o.havingStyle(o.style.sup());I=gt(b,yt,o),le||(re=T.height-yt.fontMetrics().supDrop*yt.sizeMultiplier/o.sizeMultiplier)}if(A){const yt=o.havingStyle(o.style.sub());P=gt(A,yt,o),le||(se=T.depth+yt.fontMetrics().subDrop*yt.sizeMultiplier/o.sizeMultiplier)}let we;o.style===ne.DISPLAY?we=G.sup1:o.style.cramped?we=G.sup3:we=G.sup2;const Ie=o.sizeMultiplier,je=Se(.5/G.ptPerEm/Ie);let ut=null;if(P){const yt=s.base&&s.base.type==="op"&&s.base.name&&(s.base.name==="\\oiint"||s.base.name==="\\oiiint");(T instanceof k0||yt)&&(ut=Se(-T.italic))}let Qe;if(I&&P){re=Math.max(re,we,I.depth+.25*G.xHeight),se=Math.max(se,G.sub2);const t0=4*G.defaultRuleThickness;if(re-I.depth-(P.height-se)<t0){se=t0-(re-I.depth)+P.height;const c0=.8*G.xHeight-(re-I.depth);c0>0&&(re+=c0,se-=c0)}const u0=[{type:"elem",elem:P,shift:se,marginRight:je,marginLeft:ut},{type:"elem",elem:I,shift:-re,marginRight:je}];Qe=pt({positionType:"individualShift",children:u0})}else if(P)se=Math.max(se,G.sub1,P.height-.8*G.xHeight),Qe=pt({positionType:"shift",positionData:se,children:[{type:"elem",elem:P,marginLeft:ut,marginRight:je}]});else if(I)re=Math.max(re,we,I.depth+.25*G.xHeight),Qe=pt({positionType:"shift",positionData:-re,children:[{type:"elem",elem:I,marginRight:je}]});else throw new Error("supsub must have either sup or sub.");const ct=Nc(T,"right")||"mord";return Ee([ct],[T,Ee(["msupsub"],[Qe])],o)},mathmlBuilder(s,o){let u=!1,h,b;s.base&&s.base.type==="horizBrace"&&(b=!!s.sup,b===s.base.isOver&&(u=!0,h=s.base.isOver)),s.base&&(s.base.type==="op"||s.base.type==="operatorname")&&(s.base.parentIsSupSub=!0);const A=[kt(s.base,o)];s.sub&&A.push(kt(s.sub,o)),s.sup&&A.push(kt(s.sup,o));let T;if(u)T=h?"mover":"munder";else if(s.sub)if(s.sup){const I=s.base;I&&I.type==="op"&&I.limits&&o.style===ne.DISPLAY||I&&I.type==="operatorname"&&I.alwaysHandleSupSub&&(o.style===ne.DISPLAY||I.limits)?T="munderover":T="msubsup"}else{const I=s.base;I&&I.type==="op"&&I.limits&&(o.style===ne.DISPLAY||I.alwaysHandleSupSub)||I&&I.type==="operatorname"&&I.alwaysHandleSupSub&&(I.limits||o.style===ne.DISPLAY)?T="munder":T="msub"}else{const I=s.base;I&&I.type==="op"&&I.limits&&(o.style===ne.DISPLAY||I.alwaysHandleSupSub)||I&&I.type==="operatorname"&&I.alwaysHandleSupSub&&(I.limits||o.style===ne.DISPLAY)?T="mover":T="msup"}return new Ne(T,A)}}),ca({type:"atom",htmlBuilder(s,o){return Zr(s.text,s.mode,o,["m"+s.family])},mathmlBuilder(s,o){const u=new Ne("mo",[fr(s.text,s.mode)]);if(s.family==="bin"){const h=Fc(s,o);h==="bold-italic"&&u.setAttribute("mathvariant",h)}else s.family==="punct"?u.setAttribute("separator","true"):(s.family==="open"||s.family==="close")&&u.setAttribute("stretchy","false");return u}});const m3={mi:"italic",mn:"normal",mtext:"normal"};ca({type:"mathord",htmlBuilder(s,o){return $t(s,o,"mathord")},mathmlBuilder(s,o){const u=new Ne("mi",[fr(s.text,s.mode,o)]),h=Fc(s,o)||"italic";return h!==m3[u.type]&&u.setAttribute("mathvariant",h),u}}),ca({type:"textord",htmlBuilder(s,o){return $t(s,o,"textord")},mathmlBuilder(s,o){const u=fr(s.text,s.mode,o),h=Fc(s,o)||"normal";let b;return s.mode==="text"?b=new Ne("mtext",[u]):/[0-9]/.test(s.text)?b=new Ne("mn",[u]):s.text==="\\prime"?b=new Ne("mo",[u]):b=new Ne("mi",[u]),h!==m3[b.type]&&b.setAttribute("mathvariant",h),b}});const Yc={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Zc={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ca({type:"spacing",htmlBuilder(s,o){if(Zc.hasOwnProperty(s.text)){const u=Zc[s.text].className||"";if(s.mode==="text"){const h=$t(s,o,"textord");return h.classes.push(u),h}else return Ee(["mspace",u],[Zr(s.text,s.mode,o)],o)}else{if(Yc.hasOwnProperty(s.text))return Ee(["mspace",Yc[s.text]],[],o);throw new a('Unknown type of space "'+s.text+'"')}},mathmlBuilder(s,o){let u;if(Zc.hasOwnProperty(s.text))u=new Ne("mtext",[new e0(" ")]);else{if(Yc.hasOwnProperty(s.text))return new Ne("mspace");throw new a('Unknown type of space "'+s.text+'"')}return u}});const p3=()=>{const s=new Ne("mtd",[]);return s.setAttribute("width","50%"),s};ca({type:"tag",mathmlBuilder(s,o){const u=new Ne("mtable",[new Ne("mtr",[p3(),new Ne("mtd",[qn(s.body,o)]),p3(),new Ne("mtd",[qn(s.tag,o)])])]);return u.setAttribute("width","100%"),u}});const g3={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},b3={"\\textbf":"textbf","\\textmd":"textmd"},Av={"\\textit":"textit","\\textup":"textup"},y3=(s,o)=>{const u=s.font;if(u){if(g3[u])return o.withTextFontFamily(g3[u]);if(b3[u])return o.withTextFontWeight(b3[u]);if(u==="\\emph")return o.fontShape==="textit"?o.withTextFontShape("textup"):o.withTextFontShape("textit")}else return o;return o.withTextFontShape(Av[u])};Pe({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(s,o){let{parser:u,funcName:h}=s;const b=o[0];return{type:"text",mode:u.mode,body:Jt(b),font:h}},htmlBuilder(s,o){const u=y3(s,o),h=l0(s.body,u,!0);return Ee(["mord","text"],h,u)},mathmlBuilder(s,o){const u=y3(s,o);return qn(s.body,u)}}),Pe({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(s,o){let{parser:u}=s;return{type:"underline",mode:u.mode,body:o[0]}},htmlBuilder(s,o){const u=gt(s.body,o),h=Ga("underline-line",o),b=o.fontMetrics().defaultRuleThickness,A=pt({positionType:"top",positionData:u.height,children:[{type:"kern",size:b},{type:"elem",elem:h},{type:"kern",size:3*b},{type:"elem",elem:u}]});return Ee(["mord","underline"],[A],o)},mathmlBuilder(s,o){const u=new Ne("mo",[new e0("‾")]);u.setAttribute("stretchy","true");const h=new Ne("munder",[kt(s.body,o),u]);return h.setAttribute("accentunder","true"),h}}),Pe({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(s,o){let{parser:u}=s;return{type:"vcenter",mode:u.mode,body:o[0]}},htmlBuilder(s,o){const u=gt(s.body,o),h=o.fontMetrics().axisHeight,b=.5*(u.height-h-(u.depth+h));return pt({positionType:"shift",positionData:b,children:[{type:"elem",elem:u}]})},mathmlBuilder(s,o){return new Ne("mpadded",[kt(s.body,o)],["vcenter"])}}),Pe({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(s,o,u){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(s,o){const u=v3(s),h=[],b=o.havingStyle(o.style.text());for(let A=0;A<u.length;A++){let T=u[A];T==="~"&&(T="\\textasciitilde"),h.push(Dt(T,"Typewriter-Regular",s.mode,b,["mord","texttt"]))}return Ee(["mord","text"].concat(b.sizingClasses(o)),to(h),b)},mathmlBuilder(s,o){const u=new e0(v3(s)),h=new Ne("mtext",[u]);return h.setAttribute("mathvariant","monospace"),h}});const v3=s=>s.body.replace(/ /g,s.star?"␣":" ");var $n=xh;const x3=`[ \r
|
|
541
|
+
]`,Sv="\\\\[a-zA-Z@]+",Cv="\\\\[^\uD800-\uDFFF]",Tv="("+Sv+")"+x3+"*",Ev=`\\\\(
|
|
542
|
+
|[ \r ]+
|
|
543
|
+
?)[ \r ]*`,Kc="[̀-ͯ]",Dv=new RegExp(Kc+"+$"),Mv="("+x3+"+)|"+(Ev+"|")+"([!-\\[\\]-‧-豈-]"+(Kc+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Kc+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Tv)+("|"+Cv+")");class w3{constructor(o,u){this.input=o,this.settings=u,this.tokenRegex=new RegExp(Mv,"g"),this.catcodes={"%":14,"~":13}}setCatcode(o,u){this.catcodes[o]=u}lex(){const o=this.input,u=this.tokenRegex.lastIndex;if(u===o.length)return new ir("EOF",new j0(this,u,u));const h=this.tokenRegex.exec(o);if(h===null||h.index!==u)throw new a("Unexpected character: '"+o[u]+"'",new ir(o[u],new j0(this,u,u+1)));const b=h[6]||h[3]||(h[2]?"\\ ":" ");if(this.catcodes[b]===14){const A=o.indexOf(`
|
|
544
|
+
`,this.tokenRegex.lastIndex);return A===-1?(this.tokenRegex.lastIndex=o.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=A+1,this.lex()}return new ir(b,new j0(this,u,this.tokenRegex.lastIndex))}}class Nv{constructor(o,u){o===void 0&&(o={}),u===void 0&&(u={}),this.current=u,this.builtins=o,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new a("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const o=this.undefStack.pop();for(const u in o)o.hasOwnProperty(u)&&(o[u]==null?delete this.current[u]:this.current[u]=o[u])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(o){return this.current.hasOwnProperty(o)||this.builtins.hasOwnProperty(o)}get(o){return this.current.hasOwnProperty(o)?this.current[o]:this.builtins[o]}set(o,u,h){if(h===void 0&&(h=!1),h){for(let b=0;b<this.undefStack.length;b++)delete this.undefStack[b][o];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][o]=u)}else{const b=this.undefStack[this.undefStack.length-1];b&&!b.hasOwnProperty(o)&&(b[o]=this.current[o])}u==null?delete this.current[o]:this.current[o]=u}}var zv=Zh;L("\\noexpand",function(s){const o=s.popToken();return s.isExpandable(o.text)&&(o.noexpand=!0,o.treatAsRelax=!0),{tokens:[o],numArgs:0}}),L("\\expandafter",function(s){const o=s.popToken();return s.expandOnce(!0),{tokens:[o],numArgs:0}}),L("\\@firstoftwo",function(s){return{tokens:s.consumeArgs(2)[0],numArgs:0}}),L("\\@secondoftwo",function(s){return{tokens:s.consumeArgs(2)[1],numArgs:0}}),L("\\@ifnextchar",function(s){const o=s.consumeArgs(3);s.consumeSpaces();const u=s.future();return o[0].length===1&&o[0][0].text===u.text?{tokens:o[1],numArgs:0}:{tokens:o[2],numArgs:0}}),L("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),L("\\TextOrMath",function(s){const o=s.consumeArgs(2);return s.mode==="text"?{tokens:o[0],numArgs:0}:{tokens:o[1],numArgs:0}});const k3={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};L("\\char",function(s){let o=s.popToken(),u,h=0;if(o.text==="'")u=8,o=s.popToken();else if(o.text==='"')u=16,o=s.popToken();else if(o.text==="`")if(o=s.popToken(),o.text[0]==="\\")h=o.text.charCodeAt(1);else{if(o.text==="EOF")throw new a("\\char` missing argument");h=o.text.charCodeAt(0)}else u=10;if(u){if(h=k3[o.text],h==null||h>=u)throw new a("Invalid base-"+u+" digit "+o.text);let b;for(;(b=k3[s.future().text])!=null&&b<u;)h*=u,h+=b,s.popToken()}return"\\@char{"+h+"}"});const Qc=(s,o,u,h)=>{let b=s.consumeArg().tokens;if(b.length!==1)throw new a("\\newcommand's first argument must be a macro name");const A=b[0].text,T=s.isDefined(A);if(T&&!o)throw new a("\\newcommand{"+A+"} attempting to redefine "+(A+"; use \\renewcommand"));if(!T&&!u)throw new a("\\renewcommand{"+A+"} when command "+A+" does not yet exist; use \\newcommand");let I=0;if(b=s.consumeArg().tokens,b.length===1&&b[0].text==="["){let P="",G=s.expandNextToken();for(;G.text!=="]"&&G.text!=="EOF";)P+=G.text,G=s.expandNextToken();if(!P.match(/^\s*[0-9]+\s*$/))throw new a("Invalid number of arguments: "+P);I=parseInt(P),b=s.consumeArg().tokens}return T&&h||s.macros.set(A,{tokens:b,numArgs:I}),""};L("\\newcommand",s=>Qc(s,!1,!0,!1)),L("\\renewcommand",s=>Qc(s,!0,!1,!1)),L("\\providecommand",s=>Qc(s,!0,!0,!0)),L("\\message",s=>{const o=s.consumeArgs(1)[0];return console.log(o.reverse().map(u=>u.text).join("")),""}),L("\\errmessage",s=>{const o=s.consumeArgs(1)[0];return console.error(o.reverse().map(u=>u.text).join("")),""}),L("\\show",s=>{const o=s.popToken(),u=o.text;return console.log(o,s.macros.get(u),$n[u],xt.math[u],xt.text[u]),""}),L("\\bgroup","{"),L("\\egroup","}"),L("~","\\nobreakspace"),L("\\lq","`"),L("\\rq","'"),L("\\aa","\\r a"),L("\\AA","\\r A"),L("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),L("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),L("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),L("ℬ","\\mathscr{B}"),L("ℰ","\\mathscr{E}"),L("ℱ","\\mathscr{F}"),L("ℋ","\\mathscr{H}"),L("ℐ","\\mathscr{I}"),L("ℒ","\\mathscr{L}"),L("ℳ","\\mathscr{M}"),L("ℛ","\\mathscr{R}"),L("ℭ","\\mathfrak{C}"),L("ℌ","\\mathfrak{H}"),L("ℨ","\\mathfrak{Z}"),L("\\Bbbk","\\Bbb{k}"),L("\\llap","\\mathllap{\\textrm{#1}}"),L("\\rlap","\\mathrlap{\\textrm{#1}}"),L("\\clap","\\mathclap{\\textrm{#1}}"),L("\\mathstrut","\\vphantom{(}"),L("\\underbar","\\underline{\\text{#1}}"),L("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),L("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),L("\\ne","\\neq"),L("≠","\\neq"),L("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),L("∉","\\notin"),L("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),L("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),L("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),L("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),L("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),L("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),L("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),L("⟂","\\perp"),L("‼","\\mathclose{!\\mkern-0.8mu!}"),L("∌","\\notni"),L("⌜","\\ulcorner"),L("⌝","\\urcorner"),L("⌞","\\llcorner"),L("⌟","\\lrcorner"),L("©","\\copyright"),L("®","\\textregistered"),L("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),L("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),L("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),L("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),L("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),L("⋮","\\vdots"),L("\\varGamma","\\mathit{\\Gamma}"),L("\\varDelta","\\mathit{\\Delta}"),L("\\varTheta","\\mathit{\\Theta}"),L("\\varLambda","\\mathit{\\Lambda}"),L("\\varXi","\\mathit{\\Xi}"),L("\\varPi","\\mathit{\\Pi}"),L("\\varSigma","\\mathit{\\Sigma}"),L("\\varUpsilon","\\mathit{\\Upsilon}"),L("\\varPhi","\\mathit{\\Phi}"),L("\\varPsi","\\mathit{\\Psi}"),L("\\varOmega","\\mathit{\\Omega}"),L("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),L("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),L("\\boxed","\\fbox{$\\displaystyle{#1}$}"),L("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),L("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),L("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),L("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),L("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");const A3={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},_v=new Set(["bin","rel"]);L("\\dots",function(s){let o="\\dotso";const u=s.expandAfterFuture().text;return u in A3?o=A3[u]:(u.slice(0,4)==="\\not"||u in xt.math&&_v.has(xt.math[u].group))&&(o="\\dotsb"),o});const Jc={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};L("\\dotso",function(s){return s.future().text in Jc?"\\ldots\\,":"\\ldots"}),L("\\dotsc",function(s){const o=s.future().text;return o in Jc&&o!==","?"\\ldots\\,":"\\ldots"}),L("\\cdots",function(s){return s.future().text in Jc?"\\@cdots\\,":"\\@cdots"}),L("\\dotsb","\\cdots"),L("\\dotsm","\\cdots"),L("\\dotsi","\\!\\cdots"),L("\\dotsx","\\ldots\\,"),L("\\DOTSI","\\relax"),L("\\DOTSB","\\relax"),L("\\DOTSX","\\relax"),L("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),L("\\,","\\tmspace+{3mu}{.1667em}"),L("\\thinspace","\\,"),L("\\>","\\mskip{4mu}"),L("\\:","\\tmspace+{4mu}{.2222em}"),L("\\medspace","\\:"),L("\\;","\\tmspace+{5mu}{.2777em}"),L("\\thickspace","\\;"),L("\\!","\\tmspace-{3mu}{.1667em}"),L("\\negthinspace","\\!"),L("\\negmedspace","\\tmspace-{4mu}{.2222em}"),L("\\negthickspace","\\tmspace-{5mu}{.277em}"),L("\\enspace","\\kern.5em "),L("\\enskip","\\hskip.5em\\relax"),L("\\quad","\\hskip1em\\relax"),L("\\qquad","\\hskip2em\\relax"),L("\\tag","\\@ifstar\\tag@literal\\tag@paren"),L("\\tag@paren","\\tag@literal{({#1})}"),L("\\tag@literal",s=>{if(s.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),L("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),L("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),L("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),L("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),L("\\newline","\\\\\\relax"),L("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const S3=Se(q0["Main-Regular"][84][1]-.7*q0["Main-Regular"][65][1]);L("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+S3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),L("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+S3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),L("\\hspace","\\@ifstar\\@hspacer\\@hspace"),L("\\@hspace","\\hskip #1\\relax"),L("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),L("\\ordinarycolon",":"),L("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),L("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),L("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),L("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),L("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),L("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),L("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),L("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),L("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),L("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),L("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),L("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),L("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),L("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),L("∷","\\dblcolon"),L("∹","\\eqcolon"),L("≔","\\coloneqq"),L("≕","\\eqqcolon"),L("⩴","\\Coloneqq"),L("\\ratio","\\vcentcolon"),L("\\coloncolon","\\dblcolon"),L("\\colonequals","\\coloneqq"),L("\\coloncolonequals","\\Coloneqq"),L("\\equalscolon","\\eqqcolon"),L("\\equalscoloncolon","\\Eqqcolon"),L("\\colonminus","\\coloneq"),L("\\coloncolonminus","\\Coloneq"),L("\\minuscolon","\\eqcolon"),L("\\minuscoloncolon","\\Eqcolon"),L("\\coloncolonapprox","\\Colonapprox"),L("\\coloncolonsim","\\Colonsim"),L("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),L("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),L("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),L("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),L("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),L("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),L("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),L("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),L("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),L("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),L("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),L("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),L("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),L("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),L("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),L("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),L("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),L("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),L("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),L("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),L("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),L("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),L("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),L("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),L("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),L("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),L("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),L("\\imath","\\html@mathml{\\@imath}{ı}"),L("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),L("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),L("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),L("⟦","\\llbracket"),L("⟧","\\rrbracket"),L("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),L("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),L("⦃","\\lBrace"),L("⦄","\\rBrace"),L("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),L("⦵","\\minuso"),L("\\darr","\\downarrow"),L("\\dArr","\\Downarrow"),L("\\Darr","\\Downarrow"),L("\\lang","\\langle"),L("\\rang","\\rangle"),L("\\uarr","\\uparrow"),L("\\uArr","\\Uparrow"),L("\\Uarr","\\Uparrow"),L("\\N","\\mathbb{N}"),L("\\R","\\mathbb{R}"),L("\\Z","\\mathbb{Z}"),L("\\alef","\\aleph"),L("\\alefsym","\\aleph"),L("\\Alpha","\\mathrm{A}"),L("\\Beta","\\mathrm{B}"),L("\\bull","\\bullet"),L("\\Chi","\\mathrm{X}"),L("\\clubs","\\clubsuit"),L("\\cnums","\\mathbb{C}"),L("\\Complex","\\mathbb{C}"),L("\\Dagger","\\ddagger"),L("\\diamonds","\\diamondsuit"),L("\\empty","\\emptyset"),L("\\Epsilon","\\mathrm{E}"),L("\\Eta","\\mathrm{H}"),L("\\exist","\\exists"),L("\\harr","\\leftrightarrow"),L("\\hArr","\\Leftrightarrow"),L("\\Harr","\\Leftrightarrow"),L("\\hearts","\\heartsuit"),L("\\image","\\Im"),L("\\infin","\\infty"),L("\\Iota","\\mathrm{I}"),L("\\isin","\\in"),L("\\Kappa","\\mathrm{K}"),L("\\larr","\\leftarrow"),L("\\lArr","\\Leftarrow"),L("\\Larr","\\Leftarrow"),L("\\lrarr","\\leftrightarrow"),L("\\lrArr","\\Leftrightarrow"),L("\\Lrarr","\\Leftrightarrow"),L("\\Mu","\\mathrm{M}"),L("\\natnums","\\mathbb{N}"),L("\\Nu","\\mathrm{N}"),L("\\Omicron","\\mathrm{O}"),L("\\plusmn","\\pm"),L("\\rarr","\\rightarrow"),L("\\rArr","\\Rightarrow"),L("\\Rarr","\\Rightarrow"),L("\\real","\\Re"),L("\\reals","\\mathbb{R}"),L("\\Reals","\\mathbb{R}"),L("\\Rho","\\mathrm{P}"),L("\\sdot","\\cdot"),L("\\sect","\\S"),L("\\spades","\\spadesuit"),L("\\sub","\\subset"),L("\\sube","\\subseteq"),L("\\supe","\\supseteq"),L("\\Tau","\\mathrm{T}"),L("\\thetasym","\\vartheta"),L("\\weierp","\\wp"),L("\\Zeta","\\mathrm{Z}"),L("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),L("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),L("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),L("\\bra","\\mathinner{\\langle{#1}|}"),L("\\ket","\\mathinner{|{#1}\\rangle}"),L("\\braket","\\mathinner{\\langle{#1}\\rangle}"),L("\\Bra","\\left\\langle#1\\right|"),L("\\Ket","\\left|#1\\right\\rangle");const C3=s=>o=>{const u=o.consumeArg().tokens,h=o.consumeArg().tokens,b=o.consumeArg().tokens,A=o.consumeArg().tokens,T=o.macros.get("|"),I=o.macros.get("\\|");o.macros.beginGroup();const P=se=>le=>{s&&(le.macros.set("|",T),b.length&&le.macros.set("\\|",I));let we=se;return!se&&b.length&&le.future().text==="|"&&(le.popToken(),we=!0),{tokens:we?b:h,numArgs:0}};o.macros.set("|",P(!1)),b.length&&o.macros.set("\\|",P(!0));const G=o.consumeArg().tokens,re=o.expandTokens([...A,...G,...u]);return o.macros.endGroup(),{tokens:re.reverse(),numArgs:0}};L("\\bra@ket",C3(!1)),L("\\bra@set",C3(!0)),L("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),L("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),L("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),L("\\angln","{\\angl n}"),L("\\blue","\\textcolor{##6495ed}{#1}"),L("\\orange","\\textcolor{##ffa500}{#1}"),L("\\pink","\\textcolor{##ff00af}{#1}"),L("\\red","\\textcolor{##df0030}{#1}"),L("\\green","\\textcolor{##28ae7b}{#1}"),L("\\gray","\\textcolor{gray}{#1}"),L("\\purple","\\textcolor{##9d38bd}{#1}"),L("\\blueA","\\textcolor{##ccfaff}{#1}"),L("\\blueB","\\textcolor{##80f6ff}{#1}"),L("\\blueC","\\textcolor{##63d9ea}{#1}"),L("\\blueD","\\textcolor{##11accd}{#1}"),L("\\blueE","\\textcolor{##0c7f99}{#1}"),L("\\tealA","\\textcolor{##94fff5}{#1}"),L("\\tealB","\\textcolor{##26edd5}{#1}"),L("\\tealC","\\textcolor{##01d1c1}{#1}"),L("\\tealD","\\textcolor{##01a995}{#1}"),L("\\tealE","\\textcolor{##208170}{#1}"),L("\\greenA","\\textcolor{##b6ffb0}{#1}"),L("\\greenB","\\textcolor{##8af281}{#1}"),L("\\greenC","\\textcolor{##74cf70}{#1}"),L("\\greenD","\\textcolor{##1fab54}{#1}"),L("\\greenE","\\textcolor{##0d923f}{#1}"),L("\\goldA","\\textcolor{##ffd0a9}{#1}"),L("\\goldB","\\textcolor{##ffbb71}{#1}"),L("\\goldC","\\textcolor{##ff9c39}{#1}"),L("\\goldD","\\textcolor{##e07d10}{#1}"),L("\\goldE","\\textcolor{##a75a05}{#1}"),L("\\redA","\\textcolor{##fca9a9}{#1}"),L("\\redB","\\textcolor{##ff8482}{#1}"),L("\\redC","\\textcolor{##f9685d}{#1}"),L("\\redD","\\textcolor{##e84d39}{#1}"),L("\\redE","\\textcolor{##bc2612}{#1}"),L("\\maroonA","\\textcolor{##ffbde0}{#1}"),L("\\maroonB","\\textcolor{##ff92c6}{#1}"),L("\\maroonC","\\textcolor{##ed5fa6}{#1}"),L("\\maroonD","\\textcolor{##ca337c}{#1}"),L("\\maroonE","\\textcolor{##9e034e}{#1}"),L("\\purpleA","\\textcolor{##ddd7ff}{#1}"),L("\\purpleB","\\textcolor{##c6b9fc}{#1}"),L("\\purpleC","\\textcolor{##aa87ff}{#1}"),L("\\purpleD","\\textcolor{##7854ab}{#1}"),L("\\purpleE","\\textcolor{##543b78}{#1}"),L("\\mintA","\\textcolor{##f5f9e8}{#1}"),L("\\mintB","\\textcolor{##edf2df}{#1}"),L("\\mintC","\\textcolor{##e0e5cc}{#1}"),L("\\grayA","\\textcolor{##f6f7f7}{#1}"),L("\\grayB","\\textcolor{##f0f1f2}{#1}"),L("\\grayC","\\textcolor{##e3e5e6}{#1}"),L("\\grayD","\\textcolor{##d6d8da}{#1}"),L("\\grayE","\\textcolor{##babec2}{#1}"),L("\\grayF","\\textcolor{##888d93}{#1}"),L("\\grayG","\\textcolor{##626569}{#1}"),L("\\grayH","\\textcolor{##3b3e40}{#1}"),L("\\grayI","\\textcolor{##21242c}{#1}"),L("\\kaBlue","\\textcolor{##314453}{#1}"),L("\\kaGreen","\\textcolor{##71B307}{#1}");const T3={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Fv{constructor(o,u,h){this.settings=u,this.expansionCount=0,this.feed(o),this.macros=new Nv(zv,u.macros),this.mode=h,this.stack=[]}feed(o){this.lexer=new w3(o,this.settings)}switchMode(o){this.mode=o}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(o){this.stack.push(o)}pushTokens(o){this.stack.push(...o)}scanArgument(o){let u,h,b;if(o){if(this.consumeSpaces(),this.future().text!=="[")return null;u=this.popToken(),{tokens:b,end:h}=this.consumeArg(["]"])}else({tokens:b,start:u,end:h}=this.consumeArg());return this.pushToken(new ir("EOF",h.loc)),this.pushTokens(b),new ir("",j0.range(u,h))}consumeSpaces(){for(;this.future().text===" ";)this.stack.pop()}consumeArg(o){const u=[],h=o&&o.length>0;h||this.consumeSpaces();const b=this.future();let A,T=0,I=0;do{if(A=this.popToken(),u.push(A),A.text==="{")++T;else if(A.text==="}"){if(--T,T===-1)throw new a("Extra }",A)}else if(A.text==="EOF")throw new a("Unexpected end of input in a macro argument, expected '"+(o&&h?o[I]:"}")+"'",A);if(o&&h)if((T===0||T===1&&o[I]==="{")&&A.text===o[I]){if(++I,I===o.length){u.splice(-I,I);break}}else I=0}while(T!==0||h);return b.text==="{"&&u[u.length-1].text==="}"&&(u.pop(),u.shift()),u.reverse(),{tokens:u,start:b,end:A}}consumeArgs(o,u){if(u){if(u.length!==o+1)throw new a("The length of delimiters doesn't match the number of args!");const b=u[0];for(let A=0;A<b.length;A++){const T=this.popToken();if(b[A]!==T.text)throw new a("Use of the macro doesn't match its definition",T)}}const h=[];for(let b=0;b<o;b++)h.push(this.consumeArg(u&&u[b+1]).tokens);return h}countExpansion(o){if(this.expansionCount+=o,this.expansionCount>this.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(o){const u=this.popToken(),h=u.text,b=u.noexpand?null:this._getExpansion(h);if(b==null||o&&b.unexpandable){if(o&&b==null&&h[0]==="\\"&&!this.isDefined(h))throw new a("Undefined control sequence: "+h);return this.pushToken(u),!1}this.countExpansion(1);let A=b.tokens;const T=this.consumeArgs(b.numArgs,b.delimiters);if(b.numArgs){A=A.slice();for(let I=A.length-1;I>=0;--I){let P=A[I];if(P.text==="#"){if(I===0)throw new a("Incomplete placeholder at end of macro body",P);if(P=A[--I],P.text==="#")A.splice(I+1,1);else if(/^[1-9]$/.test(P.text))A.splice(I,2,...T[+P.text-1]);else throw new a("Not a valid argument number",P)}}}return this.pushTokens(A),A.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){const o=this.stack.pop();return o.treatAsRelax&&(o.text="\\relax"),o}}expandMacro(o){return this.macros.has(o)?this.expandTokens([new ir(o)]):void 0}expandTokens(o){const u=[],h=this.stack.length;for(this.pushTokens(o);this.stack.length>h;)if(this.expandOnce(!0)===!1){const b=this.stack.pop();b.treatAsRelax&&(b.noexpand=!1,b.treatAsRelax=!1),u.push(b)}return this.countExpansion(u.length),u}expandMacroAsText(o){const u=this.expandMacro(o);return u&&u.map(h=>h.text).join("")}_getExpansion(o){const u=this.macros.get(o);if(u==null)return u;if(o.length===1){const b=this.lexer.catcodes[o];if(b!=null&&b!==13)return}const h=typeof u=="function"?u(this):u;if(typeof h=="string"){let b=0;if(h.includes("#")){const G=h.replace(/##/g,"");for(;G.includes("#"+(b+1));)++b}const A=new w3(h,this.settings),T=[];let I=A.lex();for(;I.text!=="EOF";)T.push(I),I=A.lex();return T.reverse(),{tokens:T,numArgs:b}}return h}isDefined(o){return this.macros.has(o)||$n.hasOwnProperty(o)||xt.math.hasOwnProperty(o)||xt.text.hasOwnProperty(o)||T3.hasOwnProperty(o)}isExpandable(o){const u=this.macros.get(o);return u!=null?typeof u=="string"||typeof u=="function"||!u.unexpandable:$n.hasOwnProperty(o)&&!$n[o].primitive}}const E3=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,al=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),e1={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},D3={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class il{constructor(o,u){this.mode="math",this.gullet=new Fv(o,u,this.mode),this.settings=u,this.leftrightDepth=0,this.nextToken=null}expect(o,u){if(u===void 0&&(u=!0),this.fetch().text!==o)throw new a("Expected '"+o+"', got '"+this.fetch().text+"'",this.fetch());u&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(o){this.mode=o,this.gullet.switchMode(o)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{const o=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),o}finally{this.gullet.endGroups()}}subparse(o){const u=this.nextToken;this.consume(),this.gullet.pushToken(new ir("}")),this.gullet.pushTokens(o);const h=this.parseExpression(!1);return this.expect("}"),this.nextToken=u,h}parseExpression(o,u){const h=[];for(;;){this.mode==="math"&&this.consumeSpaces();const b=this.fetch();if(il.endOfExpression.has(b.text)||u&&b.text===u||o&&$n[b.text]&&$n[b.text].infix)break;const A=this.parseAtom(u);if(A){if(A.type==="internal")continue}else break;h.push(A)}return this.mode==="text"&&this.formLigatures(h),this.handleInfixNodes(h)}handleInfixNodes(o){let u=-1,h;for(let b=0;b<o.length;b++){const A=o[b];if(A.type==="infix"){if(u!==-1)throw new a("only one infix operator per group",A.token);u=b,h=A.replaceWith}}if(u!==-1&&h){let b,A;const T=o.slice(0,u),I=o.slice(u+1);T.length===1&&T[0].type==="ordgroup"?b=T[0]:b={type:"ordgroup",mode:this.mode,body:T},I.length===1&&I[0].type==="ordgroup"?A=I[0]:A={type:"ordgroup",mode:this.mode,body:I};let P;return h==="\\\\abovefrac"?P=this.callFunction(h,[b,o[u],A],[]):P=this.callFunction(h,[b,A],[]),[P]}else return o}handleSupSubscript(o){const u=this.fetch(),h=u.text;this.consume(),this.consumeSpaces();let b;do{var A;b=this.parseGroup(o)}while(((A=b)==null?void 0:A.type)==="internal");if(!b)throw new a("Expected group after '"+h+"'",u);return b}formatUnsupportedCmd(o){const u=[];for(let A=0;A<o.length;A++)u.push({type:"textord",mode:"text",text:o[A]});const h={type:"text",mode:this.mode,body:u};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[h]}}parseAtom(o){const u=this.parseGroup("atom",o);if((u==null?void 0:u.type)==="internal"||this.mode==="text")return u;let h,b;for(;;){this.consumeSpaces();const A=this.fetch();if(A.text==="\\limits"||A.text==="\\nolimits"){if(u&&u.type==="op"){const T=A.text==="\\limits";u.limits=T,u.alwaysHandleSupSub=!0}else if(u&&u.type==="operatorname")u.alwaysHandleSupSub&&(u.limits=A.text==="\\limits");else throw new a("Limit controls must follow a math operator",A);this.consume()}else if(A.text==="^"){if(h)throw new a("Double superscript",A);h=this.handleSupSubscript("superscript")}else if(A.text==="_"){if(b)throw new a("Double subscript",A);b=this.handleSupSubscript("subscript")}else if(A.text==="'"){if(h)throw new a("Double superscript",A);const T={type:"textord",mode:this.mode,text:"\\prime"},I=[T];for(this.consume();this.fetch().text==="'";)I.push(T),this.consume();this.fetch().text==="^"&&I.push(this.handleSupSubscript("superscript")),h={type:"ordgroup",mode:this.mode,body:I}}else if(al[A.text]){const T=E3.test(A.text),I=[];for(I.push(new ir(al[A.text])),this.consume();;){const G=this.fetch().text;if(!al[G]||E3.test(G)!==T)break;I.unshift(new ir(al[G])),this.consume()}const P=this.subparse(I);T?b={type:"ordgroup",mode:"math",body:P}:h={type:"ordgroup",mode:"math",body:P}}else break}return h||b?{type:"supsub",mode:this.mode,base:u,sup:h,sub:b}:u}parseFunction(o,u){const h=this.fetch(),b=h.text,A=$n[b];if(!A)return null;if(this.consume(),u&&u!=="atom"&&!A.allowedInArgument)throw new a("Got function '"+b+"' with no arguments"+(u?" as "+u:""),h);if(this.mode==="text"&&!A.allowedInText)throw new a("Can't use function '"+b+"' in text mode",h);if(this.mode==="math"&&A.allowedInMath===!1)throw new a("Can't use function '"+b+"' in math mode",h);const{args:T,optArgs:I}=this.parseArguments(b,A);return this.callFunction(b,T,I,h,o)}callFunction(o,u,h,b,A){const T={funcName:o,parser:this,token:b,breakOnTokenText:A},I=$n[o];if(I&&I.handler)return I.handler(T,u,h);throw new a("No function handler for "+o)}parseArguments(o,u){const h=u.numArgs+u.numOptionalArgs;if(h===0)return{args:[],optArgs:[]};const b=[],A=[];for(let T=0;T<h;T++){let I=u.argTypes&&u.argTypes[T];const P=T<u.numOptionalArgs;("primitive"in u&&u.primitive&&I==null||u.type==="sqrt"&&T===1&&A[0]==null)&&(I="primitive");const G=this.parseGroupOfType("argument to '"+o+"'",I,P);if(P)A.push(G);else if(G!=null)b.push(G);else throw new a("Null argument, please report this as a bug")}return{args:b,optArgs:A}}parseGroupOfType(o,u,h){switch(u){case"color":return this.parseColorGroup(h);case"size":return this.parseSizeGroup(h);case"url":return this.parseUrlGroup(h);case"math":case"text":return this.parseArgumentGroup(h,u);case"hbox":{const b=this.parseArgumentGroup(h,"text");return b!=null?{type:"styling",mode:b.mode,body:[b],style:"text"}:null}case"raw":{const b=this.parseStringGroup("raw",h);return b!=null?{type:"raw",mode:"text",string:b.text}:null}case"primitive":{if(h)throw new a("A primitive argument cannot be optional");const b=this.parseGroup(o);if(b==null)throw new a("Expected group as "+o,this.fetch());return b}case"original":case null:case void 0:return this.parseArgumentGroup(h);default:throw new a("Unknown group type as "+o,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(o,u){const h=this.gullet.scanArgument(u);if(h==null)return null;let b="",A;for(;(A=this.fetch()).text!=="EOF";)b+=A.text,this.consume();return this.consume(),h.text=b,h}parseRegexGroup(o,u){const h=this.fetch();let b=h,A="",T;for(;(T=this.fetch()).text!=="EOF"&&o.test(A+T.text);)b=T,A+=b.text,this.consume();if(A==="")throw new a("Invalid "+u+": '"+h.text+"'",h);return h.range(b,A)}parseColorGroup(o){const u=this.parseStringGroup("color",o);if(u==null)return null;const h=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(u.text);if(!h)throw new a("Invalid color: '"+u.text+"'",u);let b=h[0];return/^[0-9a-f]{6}$/i.test(b)&&(b="#"+b),{type:"color-token",mode:this.mode,color:b}}parseSizeGroup(o){let u,h=!1;if(this.gullet.consumeSpaces(),!o&&this.gullet.future().text!=="{"?u=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):u=this.parseStringGroup("size",o),!u)return null;!o&&u.text.length===0&&(u.text="0pt",h=!0);const b=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(u.text);if(!b)throw new a("Invalid size: '"+u.text+"'",u);const A={number:+(b[1]+b[2]),unit:b[3]};if(!Wt(A))throw new a("Invalid unit: '"+A.unit+"'",u);return{type:"size",mode:this.mode,value:A,isBlank:h}}parseUrlGroup(o){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);const u=this.parseStringGroup("url",o);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),u==null)return null;const h=u.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:h}}parseArgumentGroup(o,u){const h=this.gullet.scanArgument(o);if(h==null)return null;const b=this.mode;u&&this.switchMode(u),this.gullet.beginGroup();const A=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();const T={type:"ordgroup",mode:this.mode,loc:h.loc,body:A};return u&&this.switchMode(b),T}parseGroup(o,u){const h=this.fetch(),b=h.text;let A;if(b==="{"||b==="\\begingroup"){this.consume();const T=b==="{"?"}":"\\endgroup";this.gullet.beginGroup();const I=this.parseExpression(!1,T),P=this.fetch();this.expect(T),this.gullet.endGroup(),A={type:"ordgroup",mode:this.mode,loc:j0.range(h,P),body:I,semisimple:b==="\\begingroup"||void 0}}else if(A=this.parseFunction(u,o)||this.parseSymbol(),A==null&&b[0]==="\\"&&!T3.hasOwnProperty(b)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+b,h);A=this.formatUnsupportedCmd(b),this.consume()}return A}formLigatures(o){let u=o.length-1;for(let h=0;h<u;++h){const b=o[h];if(b.type!=="textord")continue;const A=b.text,T=o[h+1];if(!(!T||T.type!=="textord")){if(A==="-"&&T.text==="-"){const I=o[h+2];h+1<u&&I&&I.type==="textord"&&I.text==="-"?(o.splice(h,3,{type:"textord",mode:"text",loc:j0.range(b,I),text:"---"}),u-=2):(o.splice(h,2,{type:"textord",mode:"text",loc:j0.range(b,T),text:"--"}),u-=1)}(A==="'"||A==="`")&&T.text===A&&(o.splice(h,2,{type:"textord",mode:"text",loc:j0.range(b,T),text:A+A}),u-=1)}}}parseSymbol(){const o=this.fetch();let u=o.text;if(/^\\verb[^a-zA-Z]/.test(u)){this.consume();let A=u.slice(5);const T=A.charAt(0)==="*";if(T&&(A=A.slice(1)),A.length<2||A.charAt(0)!==A.slice(-1))throw new a(`\\verb assertion failed --
|
|
545
|
+
please report what input caused this bug`);return A=A.slice(1,-1),{type:"verb",mode:"text",body:A,star:T}}D3.hasOwnProperty(u[0])&&!xt[this.mode][u[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+u[0]+'" used in math mode',o),u=D3[u[0]]+u.slice(1));const h=Dv.exec(u);h&&(u=u.substring(0,h.index),u==="i"?u="ı":u==="j"&&(u="ȷ"));let b;if(xt[this.mode][u]){this.settings.strict&&this.mode==="math"&&He.includes(u)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+u[0]+'" used in math mode',o);const A=xt[this.mode][u].group,T=j0.range(o);let I;if(Sc.hasOwnProperty(A)){const P=A;I={type:"atom",mode:this.mode,family:P,loc:T,text:u}}else I={type:A,mode:this.mode,loc:T,text:u};b=I}else if(u.charCodeAt(0)>=128)this.settings.strict&&(Z(u.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+u[0]+'" used in math mode',o):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+u[0]+'"'+(" ("+u.charCodeAt(0)+")"),o)),b={type:"textord",mode:"text",loc:j0.range(o),text:u};else return null;if(this.consume(),h)for(let A=0;A<h[0].length;A++){const T=h[0][A];if(!e1[T])throw new a("Unknown accent ' "+T+"'",o);const I=e1[T][this.mode]||e1[T].text;if(!I)throw new a("Accent "+T+" unsupported in "+this.mode+" mode",o);b={type:"accent",mode:this.mode,loc:j0.range(o),label:I,isStretchy:!1,isShifty:!0,base:b}}return b}}il.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var t1=function(s,o){if(!(typeof s=="string"||s instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const u=new il(s,o);delete u.gullet.macros.current["\\df@tag"];let h=u.parse();if(delete u.gullet.macros.current["\\current@color"],delete u.gullet.macros.current["\\color"],u.gullet.macros.get("\\df@tag")){if(!o.displayMode)throw new a("\\tag works only in display equations");h=[{type:"tag",mode:"text",body:h,tag:u.subparse([new ir("\\df@tag")])}]}return h};let M3=function(s,o,u){o.textContent="";const h=r1(s,u).toNode();o.appendChild(h)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),M3=function(){throw new a("KaTeX doesn't work in quirks mode.")});const Iv=function(s,o){return r1(s,o).toMarkup()},Bv=function(s,o){const u=new z(o);return t1(s,u)},N3=function(s,o,u){if(u.throwOnError||!(s instanceof a))throw s;const h=Ee(["katex-error"],[new k0(o)]);return h.setAttribute("title",s.toString()),h.setAttribute("style","color:"+u.errorColor),h},r1=function(s,o){const u=new z(o);try{const h=t1(s,u);return Xy(h,s,u)}catch(h){return N3(h,s,u)}};var Ov={version:"0.16.44",render:M3,renderToString:Iv,ParseError:a,SETTINGS_SCHEMA:_,__parse:Bv,__renderToDomTree:r1,__renderToHTMLTree:function(s,o){const u=new z(o);try{const h=t1(s,u);return Yy(h,s,u)}catch(h){return N3(h,s,u)}},__setFontMetrics:Wa,__defineSymbol:y,__defineFunction:Pe,__defineMacro:L,__domTree:{Span:O0,Anchor:b0,SymbolNode:k0,SvgNode:nr,PathNode:zr,LineNode:Ln}},Lv=Ov;return n=n.default,n}()})}(Lu)),Lu.exports}(function(e){function t(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(n,i){const a=r.mergeDelimiters(i&&i.delimiters),l=i&&i.outerSpace||!1,d=i&&i.katexOptions||{};d.throwOnError=d.throwOnError||!1,d.macros=d.macros||i&&i.macros,r.katex||(i&&typeof i.engine=="object"?r.katex=i.engine:r.katex=rp());for(const f of a.inline)l&&"outerSpace"in f&&(f.outerSpace=!0),n.inline.ruler.before("escape",f.name,r.inline(f)),n.renderer.rules[f.name]=(p,g)=>f.tmpl.replace(/\$1/,r.render(p[g].content,!!f.displayMode,d));for(const f of a.block)n.block.ruler.before("fence",f.name,r.block(f)),n.renderer.rules[f.name]=(p,g)=>f.tmpl.replace(/\$2/,t(p[g].info)).replace(/\$1/,r.render(p[g].content,!0,d))}r.mergeDelimiters=function(n){const i=Array.isArray(n)?n:typeof n=="string"?[n]:["dollars"],a={inline:[],block:[]};for(const l of i)l in r.rules&&(a.inline.push(...r.rules[l].inline),a.block.push(...r.rules[l].block));return a},r.inline=n=>function(i,a){const l=i.pos,d=i.src,p=d.startsWith(n.tag,n.rex.lastIndex=l)&&(!n.pre||n.pre(d,n.outerSpace,l))&&n.rex.exec(d),g=!!p&&l<n.rex.lastIndex&&(!n.post||n.post(d,n.outerSpace,n.rex.lastIndex-1));if(g){if(!a){const m=i.push(n.name,"math",0);m.content=p[1],m.markup=n.tag}i.pos=n.rex.lastIndex}return g},r.block=n=>function(a,l,d,f){const p=a.bMarks[l]+a.tShift[l],g=a.src,x=g.startsWith(n.tag,n.rex.lastIndex=p)&&(!n.pre||n.pre(g,!1,p))&&n.rex.exec(g),S=!!x&&p<n.rex.lastIndex&&(!n.post||n.post(g,!1,n.rex.lastIndex-1));if(S&&!f){const C=n.rex.lastIndex-1;let _;for(_=l;_<d&&!(C>=a.bMarks[_]+a.tShift[_]&&C<=a.eMarks[_]);_++);const F=a.lineMax,z=a.parentType;a.lineMax=_,a.parentType="math",z==="blockquote"&&(x[1]=x[1].replace(/(\n*?^(?:\s*>)+)/gm,""));let E=a.push(n.name,"math",0);E.block=!0,E.tag=n.tag,E.markup="",E.content=x[1],E.info=x[x.length-1],E.map=[l,_+1],a.parentType=z,a.lineMax=F,a.line=_+1}return S},r.render=function(n,i,a){a.displayMode=i;let l;try{l=r.katex.renderToString(n,a)}catch(d){l=t(`${n}:${d.message}`)}return l},r.use=function(n){return r.katex=n,r},r.inlineRuleNames=["math_inline","math_inline_double"],r.blockRuleNames=["math_block","math_block_eqno"],r.$_pre=(n,i,a)=>{const l=a>0?n[a-1].charCodeAt(0):!1;return i?!l||l===32:!l||l!==92&&(l<48||l>57)},r.$_post=(n,i,a)=>{const l=n[a+1]&&n[a+1].charCodeAt(0);return i?!l||l===32||l===46||l===44||l===59:!l||l<48||l>57},r.rules={brackets:{inline:[{name:"math_inline",rex:/\\\((.+?)\\\)/gy,tmpl:"<eq>$1</eq>",tag:"\\("}],block:[{name:"math_block_eqno",rex:/\\\[(((?!\\\]|\\\[)[\s\S])+?)\\\]\s*?\(([^)$\r\n]+?)\)/gmy,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"\\["},{name:"math_block",rex:/\\\[([\s\S]+?)\\\]/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"\\["}]},doxygen:{inline:[{name:"math_inline",rex:/\\f\$(.+?)\\f\$/gy,tmpl:"<eq>$1</eq>",tag:"\\f$"}],block:[{name:"math_block_eqno",rex:/\\f\[([^]+?)\\f\]\s*?\(([^)\s]+?)\)/gmy,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"\\f["},{name:"math_block",rex:/\\f\[([^]+?)\\f\]/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"\\f["}]},gitlab:{inline:[{name:"math_inline",rex:/\$`(.+?)`\$/gy,tmpl:"<eq>$1</eq>",tag:"$`"}],block:[{name:"math_block_eqno",rex:/`{3}math\s*([^`]+?)\s*?`{3}\s*\(([^)\r\n]+?)\)/gm,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"```math"},{name:"math_block",rex:/`{3}math\s*([^`]*?)\s*`{3}/gm,tmpl:"<section><eqn>$1</eqn></section>",tag:"```math"}]},julia:{inline:[{name:"math_inline",rex:/`{2}([^`]+?)`{2}/gy,tmpl:"<eq>$1</eq>",tag:"``"},{name:"math_inline",rex:/\$((?:\S?)|(?:\S.*?\S))\$/gy,tmpl:"<eq>$1</eq>",tag:"$",spaceEnclosed:!1,pre:r.$_pre,post:r.$_post}],block:[{name:"math_block_eqno",rex:/`{3}math\s+?([^`]+?)\s+?`{3}\s*?\(([^)$\r\n]+?)\)/gmy,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"```math"},{name:"math_block",rex:/`{3}math\s+?([^`]+?)\s+?`{3}/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"```math"}]},kramdown:{inline:[{name:"math_inline",rex:/\${2}(.+?)\${2}/gy,tmpl:"<eq>$1</eq>",tag:"$$"}],block:[{name:"math_block_eqno",rex:/\${2}([^$]+?)\${2}\s*?\(([^)\s]+?)\)/gmy,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"$$"},{name:"math_block",rex:/\${2}([^$]+?)\${2}/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"$$"}]},beg_end:{inline:[],block:[{name:"math_block",rex:/(\\(?:begin)\{([a-z]+)\}[\s\S]+?\\(?:end)\{\2\})/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"\\"}]},dollars:{inline:[{name:"math_inline_double",rex:/\${2}([^$]*?[^\\])\${2}/gy,tmpl:"<section><eqn>$1</eqn></section>",tag:"$$",displayMode:!0,pre:r.$_pre,post:r.$_post},{name:"math_inline",rex:/\$((?:[^\s\\])|(?:\S.*?[^\s\\]))\$/gy,tmpl:"<eq>$1</eq>",tag:"$",outerSpace:!1,pre:r.$_pre,post:r.$_post}],block:[{name:"math_block_eqno",rex:/\${2}([^$]*?[^\\])\${2}\s*?\(([^)\s]+?)\)/gmy,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"$$"},{name:"math_block",rex:/\${2}([^$]*?[^\\])\${2}/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"$$"}]}},e.exports&&(e.exports=r)})(i2);var np=i2.exports;const ap=a2(np),s2={content:{type:Object,required:!0},card:{type:Boolean,default:!0}},ip=/```[\s\S]*?```|~~~[\s\S]*?~~~|`[^`\n]*`/g,op=/(^|[^\\])\$\$([^$]*?[^\\])\$\$/gm,sp=/\u0000MATH_CODE_(\d+)\u0000/g;function lp(e){if(!e.includes("$$"))return e;const t=[];return e.replace(ip,i=>(t.push(i),`\0MATH_CODE_${t.length-1}\0`)).replace(op,(i,a,l)=>`${a}
|
|
546
|
+
|
|
547
|
+
$$${l}$$
|
|
548
|
+
|
|
549
|
+
`).replace(sp,(i,a)=>t[Number(a)]??"")}const vi=new Y0({html:!0,linkify:!0});vi.use(ap,{engine:T5,delimiters:"dollars",katexOptions:{throwOnError:!1,strict:!1}}),vi.linkify.set({fuzzyLink:!1});const up=vi.renderer.rules.link_open??function(e,t,r,n,i){return i.renderToken(e,t,r)};vi.renderer.rules.link_open=function(e,t,r,n,i){const a=e[t];return a&&(a.attrSet("target","_blank"),a.attrSet("rel","noopener noreferrer")),up(e,t,r,n,i)};function cp(e){let t=e;return t=t.replace(/([\u2026\u3001\u3002\uff0c\uff1a\uff1b\uff1f\uff01)】」』]|[;:,.!?(\[\]])[\t ]*(#{2,6}\s+)/g,`$1
|
|
18
550
|
|
|
19
551
|
$2`),t=t.replace(/(\*\*)(\s*)(#{2,6}\s+)/g,`$1
|
|
20
552
|
|
|
21
|
-
$3`),t}function
|
|
22
|
-
`)).replace(/\u0000CODE(\d+)\u0000/g,(
|
|
23
|
-
`),
|
|
24
|
-
`).trim()}const
|
|
553
|
+
$3`),t}function dp(e){if(!e)return e;const t=/\r?\n/.test(e),r=[],n=e.replace(/```[\s\S]*?```|~~~[\s\S]*?~~~|`[^`\n]*`/g,a=>(r.push(a),`\0CODE${r.length-1}\0`));return(t?n:n.replace(/\\r\\n|\\n/g,`
|
|
554
|
+
`)).replace(/\u0000CODE(\d+)\u0000/g,(a,l)=>r[Number(l)]??"")}function fp(e){const t=e.split(`
|
|
555
|
+
`),r=t.filter(i=>i.trim().length>0);if(r.length===0)return e.trim();const n=Math.min(...r.map(i=>{var a;return(((a=i.match(/^\s*/))==null?void 0:a[0])??"").length}));return t.map(i=>i.slice(n)).join(`
|
|
556
|
+
`).trim()}const Ta=c.defineComponent({name:"FXMarkdownMessage",props:s2,setup(e){const t=c.computed(()=>{var d;const r=dp(((d=e.content)==null?void 0:d.content)??""),n=cp(r),i=lp(n),a=fp(i);if(!a)return"";const l=vi.render(a);return Lm.sanitize(l,{ADD_TAGS:["style"],ADD_ATTR:["style","align","valign","colspan","rowspan","scope","title","target","rel"]})});return()=>{var i;const r=(i=e.content)==null?void 0:i.message,n=e.card?" f-chat-message-markdown--card":"";return c.createVNode("div",{class:`f-chat-message-markdown${n}`},[r&&c.createVNode("div",{class:"f-chat-markdown-message"},[r]),c.createVNode("div",{class:"f-chat-markdown-content",innerHTML:t.value},null)])}}});Ta.install=e=>{e.component(Ta.name,Ta)};const hp=(e,t,r)=>{if(e.type!==y0.Text)return null;const i=e.raw;if(!i)return null;if(typeof i!="string")return i;if(!i.trim())return null;let a=r.shouldShowMarkdown.value?i:i.replace(/\r\n/g,`
|
|
25
557
|
`).replace(/\r/g,`
|
|
26
|
-
`).replace(/\t/g," ");return n.shouldShowMarkdown.value?i.createVNode(xn,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:u}},null):i.createVNode("div",{class:"f-chat-bubble-content-text 00",key:`bubble-text-${t}`},[o])};function ih(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ah(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var sh=function(){function e(n){var r=this;this._insertTag=function(u){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(u,o),r.tags.push(u)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ah(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ih(u);try{o.insertRule(r,o.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var u;return(u=r.parentNode)==null?void 0:u.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Re="-ms-",ro="-moz-",de="-webkit-",qa="comm",Su="rule",Nu="decl",lh="@import",Za="@keyframes",ch="@layer",dh=Math.abs,oo=String.fromCharCode,fh=Object.assign;function hh(e,t){return Le(e,0)^45?(((t<<2^Le(e,0))<<2^Le(e,1))<<2^Le(e,2))<<2^Le(e,3):0}function Ya(e){return e.trim()}function mh(e,t){return(e=t.exec(e))?e[0]:e}function fe(e,t,n){return e.replace(t,n)}function Fu(e,t){return e.indexOf(t)}function Le(e,t){return e.charCodeAt(t)|0}function rr(e,t,n){return e.slice(t,n)}function Nt(e){return e.length}function Tu(e){return e.length}function uo(e,t){return t.push(e),e}function ph(e,t){return e.map(t).join("")}var io=1,vn=1,Ka=0,Ze=0,Ae=0,kn="";function ao(e,t,n,r,u,o,a){return{value:e,root:t,parent:n,type:r,props:u,children:o,line:io,column:vn,length:a,return:""}}function or(e,t){return fh(ao("",null,null,"",null,null,0),e,{length:-e.length},t)}function gh(){return Ae}function bh(){return Ae=Ze>0?Le(kn,--Ze):0,vn--,Ae===10&&(vn=1,io--),Ae}function et(){return Ae=Ze<Ka?Le(kn,Ze++):0,vn++,Ae===10&&(vn=1,io++),Ae}function Ft(){return Le(kn,Ze)}function so(){return Ze}function ur(e,t){return rr(kn,e,t)}function ir(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qa(e){return io=vn=1,Ka=Nt(kn=e),Ze=0,[]}function Ja(e){return kn="",e}function lo(e){return Ya(ur(Ze-1,Du(e===91?e+2:e===40?e+1:e)))}function yh(e){for(;(Ae=Ft())&&Ae<33;)et();return ir(e)>2||ir(Ae)>3?"":" "}function wh(e,t){for(;--t&&et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return ur(e,so()+(t<6&&Ft()==32&&et()==32))}function Du(e){for(;et();)switch(Ae){case e:return Ze;case 34:case 39:e!==34&&e!==39&&Du(Ae);break;case 40:e===41&&Du(e);break;case 92:et();break}return Ze}function xh(e,t){for(;et()&&e+Ae!==57;)if(e+Ae===84&&Ft()===47)break;return"/*"+ur(t,Ze-1)+"*"+oo(e===47?e:et())}function vh(e){for(;!ir(Ft());)et();return ur(e,Ze)}function kh(e){return Ja(co("",null,null,null,[""],e=Qa(e),0,[0],e))}function co(e,t,n,r,u,o,a,s,l){for(var d=0,f=0,c=a,h=0,p=0,m=0,x=1,v=1,y=1,b=0,g="",w=u,A=o,N=r,F=g;v;)switch(m=b,b=et()){case 40:if(m!=108&&Le(F,c-1)==58){Fu(F+=fe(lo(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:F+=lo(b);break;case 9:case 10:case 13:case 32:F+=yh(m);break;case 92:F+=wh(so()-1,7);continue;case 47:switch(Ft()){case 42:case 47:uo(Ah(xh(et(),so()),t,n),l);break;default:F+="/"}break;case 123*x:s[d++]=Nt(F)*y;case 125*x:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+f:y==-1&&(F=fe(F,/\f/g,"")),p>0&&Nt(F)-c&&uo(p>32?ts(F+";",r,n,c-1):ts(fe(F," ","")+";",r,n,c-2),l);break;case 59:F+=";";default:if(uo(N=es(F,t,n,d,f,u,s,g,w=[],A=[],c),o),b===123)if(f===0)co(F,t,N,N,w,o,c,s,A);else switch(h===99&&Le(F,3)===110?100:h){case 100:case 108:case 109:case 115:co(e,N,N,r&&uo(es(e,N,N,0,0,u,s,g,u,w=[],c),A),u,A,c,s,r?w:A);break;default:co(F,N,N,N,[""],A,0,s,A)}}d=f=p=0,x=y=1,g=F="",c=a;break;case 58:c=1+Nt(F),p=m;default:if(x<1){if(b==123)--x;else if(b==125&&x++==0&&bh()==125)continue}switch(F+=oo(b),b*x){case 38:y=f>0?1:(F+="\f",-1);break;case 44:s[d++]=(Nt(F)-1)*y,y=1;break;case 64:Ft()===45&&(F+=lo(et())),h=Ft(),f=c=Nt(g=F+=vh(so())),b++;break;case 45:m===45&&Nt(F)==2&&(x=0)}}return o}function es(e,t,n,r,u,o,a,s,l,d,f){for(var c=u-1,h=u===0?o:[""],p=Tu(h),m=0,x=0,v=0;m<r;++m)for(var y=0,b=rr(e,c+1,c=dh(x=a[m])),g=e;y<p;++y)(g=Ya(x>0?h[y]+" "+b:fe(b,/&\f/g,h[y])))&&(l[v++]=g);return ao(e,t,n,u===0?Su:s,l,d,f)}function Ah(e,t,n){return ao(e,t,n,qa,oo(gh()),rr(e,2,-2),0)}function ts(e,t,n,r){return ao(e,t,n,Nu,rr(e,0,r),rr(e,r+1,-1),r)}function An(e,t){for(var n="",r=Tu(e),u=0;u<r;u++)n+=t(e[u],u,e,t)||"";return n}function Ch(e,t,n,r){switch(e.type){case ch:if(e.children.length)break;case lh:case Nu:return e.return=e.return||e.value;case qa:return"";case Za:return e.return=e.value+"{"+An(e.children,r)+"}";case Su:e.value=e.props.join(",")}return Nt(n=An(e.children,r))?e.return=e.value+"{"+n+"}":""}function _h(e){var t=Tu(e);return function(n,r,u,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,u,o)||"";return a}}function Eh(e){return function(t){t.root||(t=t.return)&&e(t)}}function Sh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Nh=function(t,n,r){for(var u=0,o=0;u=o,o=Ft(),u===38&&o===12&&(n[r]=1),!ir(o);)et();return ur(t,Ze)},Fh=function(t,n){var r=-1,u=44;do switch(ir(u)){case 0:u===38&&Ft()===12&&(n[r]=1),t[r]+=Nh(Ze-1,n,r);break;case 2:t[r]+=lo(u);break;case 4:if(u===44){t[++r]=Ft()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=oo(u)}while(u=et());return t},Th=function(t,n){return Ja(Fh(Qa(t),n))},ns=new WeakMap,Dh=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,u=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ns.get(r))&&!u){ns.set(t,!0);for(var o=[],a=Th(n,o),s=r.props,l=0,d=0;l<a.length;l++)for(var f=0;f<s.length;f++,d++)t.props[d]=o[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},Ih=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function rs(e,t){switch(hh(e,t)){case 5103:return de+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return de+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return de+e+ro+e+Re+e+e;case 6828:case 4268:return de+e+Re+e+e;case 6165:return de+e+Re+"flex-"+e+e;case 5187:return de+e+fe(e,/(\w+).+(:[^]+)/,de+"box-$1$2"+Re+"flex-$1$2")+e;case 5443:return de+e+Re+"flex-item-"+fe(e,/flex-|-self/,"")+e;case 4675:return de+e+Re+"flex-line-pack"+fe(e,/align-content|flex-|-self/,"")+e;case 5548:return de+e+Re+fe(e,"shrink","negative")+e;case 5292:return de+e+Re+fe(e,"basis","preferred-size")+e;case 6060:return de+"box-"+fe(e,"-grow","")+de+e+Re+fe(e,"grow","positive")+e;case 4554:return de+fe(e,/([^-])(transform)/g,"$1"+de+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,de+"$1"),/(image-set)/,de+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,de+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,de+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+de+e+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,de+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Nt(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+ro+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fu(e,"stretch")?rs(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,Nt(e)-3-(~Fu(e,"!important")&&10))){case 107:return fe(e,":",":"+de)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(Le(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+Re+e+e}return e}var Oh=function(t,n,r,u){if(t.length>-1&&!t.return)switch(t.type){case Nu:t.return=rs(t.value,t.length);break;case Za:return An([or(t,{value:fe(t.value,"@","@"+de)})],u);case Su:if(t.length)return ph(t.props,function(o){switch(mh(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return An([or(t,{props:[fe(o,/:(read-\w+)/,":"+ro+"$1")]})],u);case"::placeholder":return An([or(t,{props:[fe(o,/:(plac\w+)/,":"+de+"input-$1")]}),or(t,{props:[fe(o,/:(plac\w+)/,":"+ro+"$1")]}),or(t,{props:[fe(o,/:(plac\w+)/,Re+"input-$1")]})],u)}return""})}},Lh=[Oh],Vh=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var v=x.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var u=t.stylisPlugins||Lh,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var v=x.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(x)});var l,d=[Dh,Ih];{var f,c=[Ch,Eh(function(x){f.insert(x)})],h=_h(d.concat(u,c)),p=function(v){return An(kh(v),h)};l=function(v,y,b,g){f=b,p(v?v+"{"+y.styles+"}":y.styles),g&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new sh({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(s),m};function Ph(e){for(var t=0,n,r=0,u=e.length;u>=4;++r,u-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(u){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mh=/[A-Z]|^ms/g,Bh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,os=function(t){return t.charCodeAt(1)===45},us=function(t){return t!=null&&typeof t!="boolean"},Iu=Sh(function(e){return os(e)?e:e.replace(Mh,"-$&").toLowerCase()}),is=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Bh,function(r,u,o){return Wt={name:u,styles:o,next:Wt},u})}return Rh[t]!==1&&!os(t)&&typeof n=="number"&&n!==0?n+"px":n};function fo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var u=n;if(u.anim===1)return Wt={name:u.name,styles:u.styles,next:Wt},u.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Wt={name:a.name,styles:a.styles,next:Wt},a=a.next;var s=o.styles+";";return s}return zh(e,t,n)}}var l=n;if(t==null)return l;var d=t[l];return d!==void 0?d:l}function zh(e,t,n){var r="";if(Array.isArray(n))for(var u=0;u<n.length;u++)r+=fo(e,t,n[u])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":us(s)&&(r+=Iu(o)+":"+is(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)us(a[l])&&(r+=Iu(o)+":"+is(o,a[l])+";");else{var d=fo(e,t,a);switch(o){case"animation":case"animationName":{r+=Iu(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var as=/label:\s*([^\s;{]+)\s*(;|$)/g,Wt;function Ou(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,u="";Wt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,u+=fo(n,t,o);else{var a=o;u+=a[0]}for(var s=1;s<e.length;s++)if(u+=fo(n,t,e[s]),r){var l=o;u+=l[s]}as.lastIndex=0;for(var d="",f;(f=as.exec(u))!==null;)d+="-"+f[1];var c=Ph(u)+d;return{name:c,styles:u,next:Wt}}function ss(e,t,n){var r="";return n.split(" ").forEach(function(u){e[u]!==void 0?t.push(e[u]+";"):u&&(r+=u+" ")}),r}var jh=function(t,n,r){var u=t.key+"-"+n.name;t.registered[u]===void 0&&(t.registered[u]=n.styles)},Hh=function(t,n,r){jh(t,n);var u=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+u:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function ls(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function cs(e,t,n){var r=[],u=ss(e,r,n);return r.length<2?n:u+t(r)}var $h=function(t){var n=Vh(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ou(d,n.registered,void 0);return Hh(n,c),n.key+"-"+c.name},u=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ou(d,n.registered),h="animation-"+c.name;return ls(n,{name:c.name,styles:"@keyframes "+h+"{"+c.styles+"}"}),h},o=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ou(d,n.registered);ls(n,c)},a=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return cs(n.registered,r,Uh(d))};return{css:r,cx:a,injectGlobal:o,keyframes:u,hydrate:function(l){l.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:ss.bind(null,n.registered),merge:cs.bind(null,n.registered,r)}},Uh=function e(t){for(var n="",r=0;r<t.length;r++){var u=t[r];if(u!=null){var o=void 0;switch(typeof u){case"boolean":break;case"object":{if(Array.isArray(u))o=e(u);else{o="";for(var a in u)u[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=u}o&&(n&&(n+=" "),n+=o)}}return n},Wh=$h({key:"css"}),Lu=Wh.css,Xh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ds={exports:{}};/*!
|
|
558
|
+
`).replace(/\t/g," ");return r.shouldShowMarkdown.value?c.createVNode(Ta,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:i}},null):c.createVNode("div",{class:"f-chat-bubble-content-text 00",key:`bubble-text-${t}`},[a])};function mp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function pp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var gp=function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(pp(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=mp(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),x0="-ms-",ts="-moz-",ht="-webkit-",l2="comm",Ru="rule",Pu="decl",bp="@import",u2="@keyframes",yp="@layer",vp=Math.abs,rs=String.fromCharCode,xp=Object.assign;function wp(e,t){return g0(e,0)^45?(((t<<2^g0(e,0))<<2^g0(e,1))<<2^g0(e,2))<<2^g0(e,3):0}function c2(e){return e.trim()}function kp(e,t){return(e=t.exec(e))?e[0]:e}function mt(e,t,r){return e.replace(t,r)}function Vu(e,t){return e.indexOf(t)}function g0(e,t){return e.charCodeAt(t)|0}function xi(e,t,r){return e.slice(t,r)}function $r(e){return e.length}function Hu(e){return e.length}function ns(e,t){return t.push(e),e}function Ap(e,t){return e.map(t).join("")}var as=1,Ea=1,d2=0,H0=0,Kt=0,Da="";function is(e,t,r,n,i,a,l){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:as,column:Ea,length:l,return:""}}function wi(e,t){return xp(is("",null,null,"",null,null,0),e,{length:-e.length},t)}function Sp(){return Kt}function Cp(){return Kt=H0>0?g0(Da,--H0):0,Ea--,Kt===10&&(Ea=1,as--),Kt}function Z0(){return Kt=H0<d2?g0(Da,H0++):0,Ea++,Kt===10&&(Ea=1,as++),Kt}function Ur(){return g0(Da,H0)}function os(){return H0}function ki(e,t){return xi(Da,e,t)}function Ai(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function f2(e){return as=Ea=1,d2=$r(Da=e),H0=0,[]}function h2(e){return Da="",e}function ss(e){return c2(ki(H0-1,qu(e===91?e+2:e===40?e+1:e)))}function Tp(e){for(;(Kt=Ur())&&Kt<33;)Z0();return Ai(e)>2||Ai(Kt)>3?"":" "}function Ep(e,t){for(;--t&&Z0()&&!(Kt<48||Kt>102||Kt>57&&Kt<65||Kt>70&&Kt<97););return ki(e,os()+(t<6&&Ur()==32&&Z0()==32))}function qu(e){for(;Z0();)switch(Kt){case e:return H0;case 34:case 39:e!==34&&e!==39&&qu(Kt);break;case 40:e===41&&qu(e);break;case 92:Z0();break}return H0}function Dp(e,t){for(;Z0()&&e+Kt!==57;)if(e+Kt===84&&Ur()===47)break;return"/*"+ki(t,H0-1)+"*"+rs(e===47?e:Z0())}function Mp(e){for(;!Ai(Ur());)Z0();return ki(e,H0)}function Np(e){return h2(ls("",null,null,null,[""],e=f2(e),0,[0],e))}function ls(e,t,r,n,i,a,l,d,f){for(var p=0,g=0,m=l,x=0,S=0,C=0,_=1,F=1,z=1,E=0,D="",B=i,R=a,W=n,Y=D;F;)switch(C=E,E=Z0()){case 40:if(C!=108&&g0(Y,m-1)==58){Vu(Y+=mt(ss(E),"&","&\f"),"&\f")!=-1&&(z=-1);break}case 34:case 39:case 91:Y+=ss(E);break;case 9:case 10:case 13:case 32:Y+=Tp(C);break;case 92:Y+=Ep(os()-1,7);continue;case 47:switch(Ur()){case 42:case 47:ns(zp(Dp(Z0(),os()),t,r),f);break;default:Y+="/"}break;case 123*_:d[p++]=$r(Y)*z;case 125*_:case 59:case 0:switch(E){case 0:case 125:F=0;case 59+g:z==-1&&(Y=mt(Y,/\f/g,"")),S>0&&$r(Y)-m&&ns(S>32?p2(Y+";",n,r,m-1):p2(mt(Y," ","")+";",n,r,m-2),f);break;case 59:Y+=";";default:if(ns(W=m2(Y,t,r,p,g,i,d,D,B=[],R=[],m),a),E===123)if(g===0)ls(Y,t,W,W,B,a,m,d,R);else switch(x===99&&g0(Y,3)===110?100:x){case 100:case 108:case 109:case 115:ls(e,W,W,n&&ns(m2(e,W,W,0,0,i,d,D,i,B=[],m),R),i,R,m,d,n?B:R);break;default:ls(Y,W,W,W,[""],R,0,d,R)}}p=g=S=0,_=z=1,D=Y="",m=l;break;case 58:m=1+$r(Y),S=C;default:if(_<1){if(E==123)--_;else if(E==125&&_++==0&&Cp()==125)continue}switch(Y+=rs(E),E*_){case 38:z=g>0?1:(Y+="\f",-1);break;case 44:d[p++]=($r(Y)-1)*z,z=1;break;case 64:Ur()===45&&(Y+=ss(Z0())),x=Ur(),g=m=$r(D=Y+=Mp(os())),E++;break;case 45:C===45&&$r(Y)==2&&(_=0)}}return a}function m2(e,t,r,n,i,a,l,d,f,p,g){for(var m=i-1,x=i===0?a:[""],S=Hu(x),C=0,_=0,F=0;C<n;++C)for(var z=0,E=xi(e,m+1,m=vp(_=l[C])),D=e;z<S;++z)(D=c2(_>0?x[z]+" "+E:mt(E,/&\f/g,x[z])))&&(f[F++]=D);return is(e,t,r,i===0?Ru:d,f,p,g)}function zp(e,t,r){return is(e,t,r,l2,rs(Sp()),xi(e,2,-2),0)}function p2(e,t,r,n){return is(e,t,r,Pu,xi(e,0,n),xi(e,n+1,-1),n)}function Ma(e,t){for(var r="",n=Hu(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function _p(e,t,r,n){switch(e.type){case yp:if(e.children.length)break;case bp:case Pu:return e.return=e.return||e.value;case l2:return"";case u2:return e.return=e.value+"{"+Ma(e.children,n)+"}";case Ru:e.value=e.props.join(",")}return $r(r=Ma(e.children,n))?e.return=e.value+"{"+r+"}":""}function Fp(e){var t=Hu(e);return function(r,n,i,a){for(var l="",d=0;d<t;d++)l+=e[d](r,n,i,a)||"";return l}}function Ip(e){return function(t){t.root||(t=t.return)&&e(t)}}function Bp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Op=function(t,r,n){for(var i=0,a=0;i=a,a=Ur(),i===38&&a===12&&(r[n]=1),!Ai(a);)Z0();return ki(t,H0)},Lp=function(t,r){var n=-1,i=44;do switch(Ai(i)){case 0:i===38&&Ur()===12&&(r[n]=1),t[n]+=Op(H0-1,r,n);break;case 2:t[n]+=ss(i);break;case 4:if(i===44){t[++n]=Ur()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=rs(i)}while(i=Z0());return t},Rp=function(t,r){return h2(Lp(f2(t),r))},g2=new WeakMap,Pp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!g2.get(n))&&!i){g2.set(t,!0);for(var a=[],l=Rp(r,a),d=n.props,f=0,p=0;f<l.length;f++)for(var g=0;g<d.length;g++,p++)t.props[p]=a[f]?l[f].replace(/&\f/g,d[g]):d[g]+" "+l[f]}}},Vp=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function b2(e,t){switch(wp(e,t)){case 5103:return ht+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+ts+e+x0+e+e;case 6828:case 4268:return ht+e+x0+e+e;case 6165:return ht+e+x0+"flex-"+e+e;case 5187:return ht+e+mt(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+x0+"flex-$1$2")+e;case 5443:return ht+e+x0+"flex-item-"+mt(e,/flex-|-self/,"")+e;case 4675:return ht+e+x0+"flex-line-pack"+mt(e,/align-content|flex-|-self/,"")+e;case 5548:return ht+e+x0+mt(e,"shrink","negative")+e;case 5292:return ht+e+x0+mt(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+mt(e,"-grow","")+ht+e+x0+mt(e,"grow","positive")+e;case 4554:return ht+mt(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return mt(mt(mt(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return mt(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return mt(mt(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+x0+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4095:case 3583:case 4068:case 2532:return mt(e,/(.+)-inline(.+)/,ht+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if($r(e)-1-t>6)switch(g0(e,t+1)){case 109:if(g0(e,t+4)!==45)break;case 102:return mt(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+ts+(g0(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vu(e,"stretch")?b2(mt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(g0(e,t+1)!==115)break;case 6444:switch(g0(e,$r(e)-3-(~Vu(e,"!important")&&10))){case 107:return mt(e,":",":"+ht)+e;case 101:return mt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(g0(e,14)===45?"inline-":"")+"box$3$1"+ht+"$2$3$1"+x0+"$2box$3")+e}break;case 5936:switch(g0(e,t+11)){case 114:return ht+e+x0+mt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+x0+mt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+x0+mt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+x0+e+e}return e}var Hp=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Pu:t.return=b2(t.value,t.length);break;case u2:return Ma([wi(t,{value:mt(t.value,"@","@"+ht)})],i);case Ru:if(t.length)return Ap(t.props,function(a){switch(kp(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ma([wi(t,{props:[mt(a,/:(read-\w+)/,":"+ts+"$1")]})],i);case"::placeholder":return Ma([wi(t,{props:[mt(a,/:(plac\w+)/,":"+ht+"input-$1")]}),wi(t,{props:[mt(a,/:(plac\w+)/,":"+ts+"$1")]}),wi(t,{props:[mt(a,/:(plac\w+)/,x0+"input-$1")]})],i)}return""})}},qp=[Hp],jp=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(_){var F=_.getAttribute("data-emotion");F.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var i=t.stylisPlugins||qp,a={},l,d=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var F=_.getAttribute("data-emotion").split(" "),z=1;z<F.length;z++)a[F[z]]=!0;d.push(_)});var f,p=[Pp,Vp];{var g,m=[_p,Ip(function(_){g.insert(_)})],x=Fp(p.concat(i,m)),S=function(F){return Ma(Np(F),x)};f=function(F,z,E,D){g=E,S(F?F+"{"+z.styles+"}":z.styles),D&&(C.inserted[z.name]=!0)}}var C={key:r,sheet:new gp({key:r,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:f};return C.sheet.hydrate(d),C};function $p(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Up={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wp=/[A-Z]|^ms/g,Gp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,y2=function(t){return t.charCodeAt(1)===45},v2=function(t){return t!=null&&typeof t!="boolean"},ju=Bp(function(e){return y2(e)?e:e.replace(Wp,"-$&").toLowerCase()}),x2=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Gp,function(n,i,a){return Dn={name:i,styles:a,next:Dn},i})}return Up[t]!==1&&!y2(t)&&typeof r=="number"&&r!==0?r+"px":r};function us(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Dn={name:i.name,styles:i.styles,next:Dn},i.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Dn={name:l.name,styles:l.styles,next:Dn},l=l.next;var d=a.styles+";";return d}return Xp(e,t,r)}}var f=r;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function Xp(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=us(e,t,r[i])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var d=l;t!=null&&t[d]!==void 0?n+=a+"{"+t[d]+"}":v2(d)&&(n+=ju(a)+":"+x2(a,d)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var f=0;f<l.length;f++)v2(l[f])&&(n+=ju(a)+":"+x2(a,l[f])+";");else{var p=us(e,t,l);switch(a){case"animation":case"animationName":{n+=ju(a)+":"+p+";";break}default:n+=a+"{"+p+"}"}}}return n}var w2=/label:\s*([^\s;{]+)\s*(;|$)/g,Dn;function $u(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Dn=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=us(r,t,a);else{var l=a;i+=l[0]}for(var d=1;d<e.length;d++)if(i+=us(r,t,e[d]),n){var f=a;i+=f[d]}w2.lastIndex=0;for(var p="",g;(g=w2.exec(i))!==null;)p+="-"+g[1];var m=$p(i)+p;return{name:m,styles:i,next:Dn}}function k2(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var Yp=function(t,r,n){var i=t.key+"-"+r.name;t.registered[i]===void 0&&(t.registered[i]=r.styles)},Zp=function(t,r,n){Yp(t,r);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function A2(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function S2(e,t,r){var n=[],i=k2(e,n,r);return n.length<2?r:i+t(n)}var Kp=function(t){var r=jp(t);r.sheet.speedy=function(d){this.isSpeedy=d},r.compat=!0;var n=function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];var m=$u(p,r.registered,void 0);return Zp(r,m),r.key+"-"+m.name},i=function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];var m=$u(p,r.registered),x="animation-"+m.name;return A2(r,{name:m.name,styles:"@keyframes "+x+"{"+m.styles+"}"}),x},a=function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];var m=$u(p,r.registered);A2(r,m)},l=function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];return S2(r.registered,n,Qp(p))};return{css:n,cx:l,injectGlobal:a,keyframes:i,hydrate:function(f){f.forEach(function(p){r.inserted[p]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:k2.bind(null,r.registered),merge:S2.bind(null,r.registered,n)}},Qp=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var a=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))a=e(i);else{a="";for(var l in i)i[l]&&l&&(a&&(a+=" "),a+=l)}break}default:a=i}a&&(r&&(r+=" "),r+=a)}}return r},Jp=Kp({key:"css"}),Uu=Jp.css,C2={exports:{}};/*!
|
|
27
559
|
Copyright (c) 2018 Jed Watson.
|
|
28
560
|
Licensed under the MIT License (MIT), see
|
|
29
561
|
http://jedwatson.github.io/classnames
|
|
30
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function
|
|
562
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(a=i(a,n(d)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var d in a)t.call(a,d)&&a[d]&&(l=i(l,d));return l}function i(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(C2);var e9=C2.exports;const Wu=a2(e9),T2={className:{type:String,default:""},viewStatus:{type:String,default:"full"},widgetAPIURL:{type:String,default:""},widgetOptions:{type:Object,default:()=>({mode:"embedded",implOptions:{}})},widgetData:{type:Object,default:()=>({})}};class t9{constructor(t){Tt(this,"root");if(!t)throw new Error("parentElement is required");this.root=document.createElement("div"),this.root.className="fx-card-container-stage__root",t.appendChild(this.root)}dispose(){this.root.remove()}getElement(){return this.root}}function r9(){function e(t,r){if(t===r)return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null||Array.isArray(t)!==Array.isArray(r))return!1;const n=Object.keys(t),i=Object.keys(r);if(n.length!==i.length)return!1;for(const a of n)if(!i.includes(a)||!e(t[a],r[a]))return!1;return!0}return{deepEqual:e}}var Gu={exports:{}};(function(e,t){(function(r,n){n(t)})(n2,function(r){var n=Object.defineProperty,i=Object.defineProperties,a=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(Z,Q,oe)=>Q in Z?n(Z,Q,{enumerable:!0,configurable:!0,writable:!0,value:oe}):Z[Q]=oe,g=(Z,Q)=>{for(var oe in Q||(Q={}))d.call(Q,oe)&&p(Z,oe,Q[oe]);if(l)for(var oe of l(Q))f.call(Q,oe)&&p(Z,oe,Q[oe]);return Z},m=(Z,Q)=>i(Z,a(Q)),x=(Z,Q,oe)=>new Promise((fe,Ae)=>{var ie=Oe=>{try{ge(oe.next(Oe))}catch(Xe){Ae(Xe)}},me=Oe=>{try{ge(oe.throw(Oe))}catch(Xe){Ae(Xe)}},ge=Oe=>Oe.done?fe(Oe.value):Promise.resolve(Oe.value).then(ie,me);ge((oe=oe.apply(Z,Q)).next())}),S=(Z=>(Z[Z.NONE=0]="NONE",Z[Z.LOADING=1]="LOADING",Z[Z.LOADED=2]="LOADED",Z[Z.ERROR=3]="ERROR",Z))(S||{});class C{constructor(Q){this.items={},this.factory=Q}getOrCreateItemByURL(Q){let oe=this.items[Q];return oe||(oe=this.items[Q]=this.factory(Q)),oe}tryGetItemByURL(Q){var oe;return(oe=this.items[Q])!=null?oe:null}removeItemByURL(Q){const oe=this.items[Q];return oe&&(this.items[Q]=null,oe)}}const _="__RUNTIME_IMPORT__";function F(Z,Q){var oe,fe;const Ae=globalThis,ie=(oe=Ae[_])!=null?oe:Ae[_]={};return(fe=ie[Z])!=null?fe:ie[Z]=Q()}const z=F("cssCache",()=>new C(Z=>({url:Z,status:S.NONE,el:null,error:null,reject:null})));function E(Z,Q,oe){const fe={handleLoad(){Z.removeEventListener("load",fe.handleLoad),Z.removeEventListener("error",fe.handleError),Q()},handleError(Ae){Z.removeEventListener("load",fe.handleLoad),Z.removeEventListener("error",fe.handleError),oe(Ae)}};Z.addEventListener("load",fe.handleLoad),Z.addEventListener("error",fe.handleError)}function D(Z){const Q=z.getOrCreateItemByURL(Z),{status:oe,error:fe}=Q;return oe===S.LOADED?Promise.resolve():oe===S.ERROR?Promise.reject(fe):oe===S.LOADING?new Promise((Ae,ie)=>{const{el:me}=Q;E(me,()=>Ae(),ge=>ie(ge.error))}):(Q.status=S.LOADING,new Promise((Ae,ie)=>{const me=document.createElement("link");me.rel="stylesheet",me.href=Z,E(me,()=>{Q.status=S.LOADED,Ae()},ge=>{const Oe=ge.error||new Error(`Load css failed. href=${Z}`);Q.status=S.ERROR,Q.error=Oe,ie(Oe)}),Q.el=me,me.setAttribute("data-runtime-import-type","css"),document.head.appendChild(me)}))}function B(Z){return Promise.all(Z.map(Q=>D(Q))).then(()=>Promise.resolve()).catch(Q=>Promise.reject(Q))}const R=F("jsCache",()=>new C(Z=>({url:Z,status:S.NONE,el:null,error:null,reject:null,exportThing:void 0}))),W=globalThis,{define:Y}=W,{keys:q}=Object;let pe=!1;typeof Y<"u"&&!Y.runtime_import&&(console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."),pe=!0);const he=F("pendingItemMap",()=>({})),ce=function(...Z){const Q=Z.pop(),{currentScript:oe}=document;if(!oe)throw new Error("currentScript is null.");const{src:fe}=oe,Ae=he[fe];if(!Ae)throw new Error(`Can NOT find item, src=${fe}`);he[fe]=null;try{let ie=Z[0]||[],me=null;typeof ie=="string"&&(me=ie,ie=Z[1]||[]);const ge=Ae.exportThing=(()=>{let Oe=!1;const Xe={};let Ze=Q(...ie.map(nt=>nt==="exports"?(Oe=!0,Xe):W[nt]));return!Ze&&Oe&&(Ze=Xe),Ze})();me&&(W[me]=ge),ge&&q(ge).length===1&&ge.default&&(Ae.exportThing=ge.default,Ae.exportThing.default=ge.default)}catch(ie){Ae.status=S.ERROR,ie instanceof Error&&(Ae.error=ie),Ae.reject(ie)}},be=()=>{const{currentScript:Z}=document;if(Z){const{src:Q}=Z;if(he[Q])return!0}return!1};["amd","cmd"].forEach(Z=>{Object.defineProperty(ce,Z,{get:be})}),ce.runtime_import=!0;function ae(Z,Q){if(pe)throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");W.define||(W.define=ce),he[Z]=Q}function xe(Z){const Q=/legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(Z),oe=window;if(Q&&Q.length>0){const fe=Q[1];oe.g_config=oe.g_config||{},oe.g_config.appKey=fe}}function Ce(Z,Q,oe){Z.status=S.LOADING,xe(Q);const{umd:fe,crossOrigin:Ae}=oe;return new Promise((ie,me)=>{const ge=document.createElement("script");if(ge.src=Q,ge.async=!1,ge.crossOrigin=Ae,fe){ge.setAttribute("data-runtime-import-type","javascript-umd"),Z.reject=me;const Oe=ge.src;ae(Oe,Z)}else ge.setAttribute("data-runtime-import-type","javascript");E(ge,()=>{Z.status=S.LOADED,Z.el=null,ie(Z.exportThing)},Oe=>{const Xe=Oe.error||new Error(`Load javascript failed. src=${Q}`);Z.status=S.ERROR,Z.error=Xe,Z.el=null,me(Xe)}),Z.el=ge,document.body.appendChild(ge)})}function te(Z,Q){const oe=R.getOrCreateItemByURL(Z),{status:fe,exportThing:Ae,error:ie}=oe;if(fe===S.LOADED)return Promise.resolve(Ae);if(fe===S.ERROR)return Promise.reject(ie);if(fe===S.LOADING){const{el:me}=oe;return new Promise((ge,Oe)=>{E(me,()=>ge(oe.exportThing),Xe=>Oe(Xe.error))})}return Ce(oe,Z,Q)}function ye(Z,Q){let oe=Promise.resolve();const fe=Z.length-1,{umd:Ae}=Q;return Z.forEach((ie,me)=>{const ge=Ae&&me===fe;oe=oe.then(()=>te(ie,m(g({},Q),{umd:ge})))}),oe}function ne(Z){return x(this,null,function*(){const{scripts:Q,styles:oe}=Z;if(oe){const{urls:ge}=oe;yield B(ge)}const{dependencies:fe=[],entry:Ae,umd:ie=!0,crossOrigin:me="anonymous"}=Q;if((Ae?fe.concat([Ae]):fe).length)return yield ye(fe.concat([Ae]),{umd:ie,crossOrigin:me})})}function ze(Z,Q){return x(this,null,function*(){const oe=Q??{};return yield ne({scripts:{dependencies:[],entry:Z,umd:oe.umd,crossOrigin:oe.crossOrigin}})})}function Ue(Z){return x(this,null,function*(){return yield ne({scripts:{dependencies:[],entry:""},styles:{urls:[Z]}})})}const X=ne;r.importComponent=ne,r.importModule=X,r.importScript=ze,r.importStyle=Ue,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})})})(Gu,Gu.exports);var n9=Gu.exports;function a9(){async function e(t){return await n9.importScript(t)}return{loadWidgetAPI:e}}const Na=c.defineComponent({name:"FXWidgetContainer",props:T2,setup(e,t){const{loadWidgetAPI:r}=a9(),{deepEqual:n}=r9(),i=c.ref(null),a=c.ref(null),l=c.ref(null),d=c.ref(null),f=c.ref(null),p=c.computed(()=>{const E=Uu`width:100%!important`;return Wu("caf-assistant-widget-container__root",E,e.className)}),g=Uu`
|
|
31
563
|
overflow: hidden;
|
|
32
|
-
`,
|
|
33
|
-
display: ${
|
|
34
|
-
`;return Vu("caf-assistant-widget-container__error",b)}),p=()=>{const b=a.value;b&&(s.value=new Zh(b))},m=()=>{const b=s.value;b&&(b.dispose(),s.value=null)},x=()=>{const b=o.value,g=u.value;b&&(b.unmount(),b.dispose()),g&&g.cleanup(),o.value=null,u.value=null},v=async()=>{const b=await n(e.widgetAPIURL);if(!b)throw new Error("Failed to load widget API");await b.initialize();const g=b.createWidget();u.value=b,o.value=g},y=b=>{console.error(b),l.value=b};return i.watch(()=>e.widgetAPIURL,async()=>{if(a.value)try{x(),await v();const b=a.value,g=o.value;g==null||g.updateOptions(e.widgetOptions),g==null||g.updateData(e.widgetData),b&&g&&await g.mount(b)}catch(b){y(b)}}),i.watch(()=>e.widgetOptions,(b,g)=>{try{const w=o.value;w&&(!g||!r(g,b))&&w.updateOptions(b)}catch(w){y(w)}}),i.watch(()=>e.widgetData,(b,g)=>{try{const w=o.value;w&&(!g||!r(g,b))&&w.updateData(b)}catch(w){y(w)}}),i.onMounted(async()=>{try{const b=a.value;if(b){p();const g=s.value;if(g){await v();const w=o.value;w&&(w.updateOptions(e.widgetOptions),w.updateData(e.widgetData),w.mount(g.getElement()),i.nextTick(()=>{b.parentElement&&(b.style.width="100%")}))}}}catch(b){y(b)}}),i.onBeforeUnmount(async()=>{try{x(),m()}catch(b){console.error(b)}}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{ref:a,class:c},null),i.createVNode("div",{class:h.value},null)])}}),hs=(e,t)=>{var n;if(e.type===Pe.AssistantWidgetComplete){const r=e;return r.widgetUrl?i.createVNode(Cn,{key:`widget-${t}`,widgetAPIURL:r.widgetUrl,widgetOptions:{mode:"embedded",implOptions:r.widgetImplOptions},widgetData:((n=r.widgetData)==null?void 0:n.data)||{}},null):null}return e.type===Pe.AssistantWidgetPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`widget-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("数据生成中......")])]):null},Jh=6e4,ms=8e3,Ue=new Map,ft=new Map,ar=new Map,Tt=[];function De(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function ho(e){const t=De(e);if(t)for(let n=Tt.length-1;n>=0;n--)Tt[n]===t&&Tt.splice(n,1)}function em(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function mo(e){if(typeof window>"u")return;const t=window;t.__fluens_dynamic_component_bootstrap_instance_id===e&&delete t.__fluens_dynamic_component_bootstrap_instance_id}function tm(){return Tt[Tt.length-1]||void 0}function po(e,t){const n=De(t);return n?De(e.instanceId)===n||e.componentId!=null&&De(String(e.componentId))===n||e.name!=null&&De(String(e.name))===n:!1}function Ru(e){const t=De(e);if(!t)return null;const n=Ue.get(t);if(n)return{canonicalKey:t,entry:n};for(const[u,o]of Ue.entries())if(De(u)===t)return{canonicalKey:u,entry:o};const r=[];for(const[u,o]of Ue.entries())po(o.config,t)&&r.push({key:u,entry:o});if(r.length===1){const{key:u,entry:o}=r[0];return u!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${u}" (alias match)`),{canonicalKey:u,entry:o}}if(r.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${r.length} pending matches); refusing`),null;if(Ue.size===1){const[u,o]=[...Ue.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${u}"`),{canonicalKey:u,entry:o}}return null}function ps(e,t){for(const[n,r]of ft){const u=De(n),o=e!==""&&u===e,a=String(t??"").trim(),s=e&&po(r.config,e)||a&&po(r.config,a);if(o||s)return console.warn(`[DynamicComponent] register skipped: id "${e||a}" already active (canonical "${n}"); unload first — second register yields "no pending", not duplicate mount`),!0}return!1}function Mu(){return{pendingKeys:[...Ue.keys()],bootstrapQueue:[...Tt],activeKeys:[...ft.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function nm(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...Mu()})}function rm(e){const t=De(e);if(t){if(ps(t,e))return{ok:!1,reason:"already_active_duplicate"};const r=Ru(t);if(r)return{ok:!0,...r}}else if(ps("",e))return{ok:!1,reason:"already_active_duplicate"};for(let n=0;n<Tt.length;n++){const r=Tt[n],u=Ru(r);if(u)return Tt.splice(n,1),t&&De(r)!==t&&console.warn(`[DynamicComponent] register id "${t}" did not match pending; using bootstrap instanceId "${r}" (sync bundle entry or use window.__fluens_dynamic_component_bootstrap_instance_id)`),{ok:!0,...u}}return{ok:!1,reason:"no_pending"}}function gs(e){const t=De(e);if(!t)return null;const n=ft.get(t);if(n)return n;for(const[o,a]of ft.entries())if(De(o)===t)return a;const r=[];for(const o of ft.values())po(o.config,t)&&r.push(o);const u=[...new Map(r.map(o=>[o.config.instanceId,o])).values()];return u.length===1?(u[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${u[0].config.instanceId}" (alias match)`),u[0]):(u.length>1&&console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${u.length} active matches)`),null)}function om(e){const t=De(e);if(!t)return null;const n=ft.get(t);if(n)return n;for(const[r,u]of ft.entries())if(De(r)===t)return u;return null}function um(e){const t=De(e);if(!t)return t;const n=gs(t);if(n)return n.config.instanceId;const r=Ru(t);return r?r.canonicalKey:t}function Bu(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function bs(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(Bu(t)),!0}catch(n){return console.warn("[DynamicComponent] onAssistantMessage failed",n),!1}}function im(e){const t=`fluens-dynamic-component-${e.instanceId}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.style.width="100%",n.style.height="100%"),n}function ys(e){const t=ft.get(e.instanceId);if(t)return Promise.resolve(t.api);const n=Ue.get(e.instanceId);if(n)return new Promise((u,o)=>{const a=n.resolve,s=n.reject;n.resolve=l=>{a(l),u(l)},n.reject=l=>{s(l),o(l)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const r=im(e);return new Promise((u,o)=>{const a={config:e,container:r,resolve:u,reject:o,timeoutId:0},s=setTimeout(()=>{a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Ue.delete(e.instanceId),ho(e.instanceId),mo(e.instanceId),o(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},Jh);a.timeoutId=s,Ue.set(e.instanceId,a),Tt.push(e.instanceId),em(e.instanceId);const l=document.createElement("script");l.src=(e==null?void 0:e.jsUrl)??"",l.dataset.dynamicComponentId=e.instanceId,l.async=!1,l.onload=()=>{a.postLoadRegisterCheckTimerId=window.setTimeout(()=>{a.postLoadRegisterCheckTimerId=void 0,Ue.has(e.instanceId)&&(clearTimeout(s),Ue.delete(e.instanceId),ho(e.instanceId),mo(e.instanceId),o(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${ms}ms after load: ${e.name||e.componentId}`)))},ms)},l.onerror=()=>{clearTimeout(s),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Ue.delete(e.instanceId),ho(e.instanceId),mo(e.instanceId),o(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(l)})}function ws(e){var u;const t=ft.get(e);if(t){try{t.api.unmount()}catch{}(u=t.scriptElement)==null||u.remove(),ft.delete(e)}const n=Ue.get(e);n&&(n.postLoadRegisterCheckTimerId!=null&&(clearTimeout(n.postLoadRegisterCheckTimerId),n.postLoadRegisterCheckTimerId=void 0),clearTimeout(n.timeoutId),Ue.delete(e)),ar.delete(e);const r=document.getElementById(`fluens-dynamic-component-${e}`);r&&r.remove()}function am(e,t){const n=De(e);if(!n)return!1;const r=gs(n);if(r)return bs(r.api,t);const u=um(n),o=ar.get(u)??[],a=o.findIndex(s=>s.messageId===t.messageId);return a>=0?o[a]=Bu(t):o.push(Bu(t)),ar.set(u,o),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=Mu,window.__fluens_dynamic_component_register=function(e,t){const n=De(e),r=rm(e);if(!r.ok){if(r.reason==="already_active_duplicate")return;nm(n),console.warn(`[DynamicComponent] no pending for register id "${n}" (raw ${JSON.stringify(e)}); see diagnostics above. Try: unload tab / avoid double register / ensure FXDynamicComponent loaded this jsUrl first / empty id if sole pending`);return}const{canonicalKey:u,entry:o}=r;ho(u),mo(u),o.postLoadRegisterCheckTimerId!=null&&(clearTimeout(o.postLoadRegisterCheckTimerId),o.postLoadRegisterCheckTimerId=void 0),clearTimeout(o.timeoutId),Ue.delete(u);const a={config:o.config,container:o.container,api:t,scriptElement:document.currentScript};ft.set(u,a),a.container.parentElement;try{t.mount(o.container,o.config)}catch(l){console.error(`Failed to mount dynamic component: ${u}`,l)}const s=[u];n&&n!==u&&s.push(n);for(const l of s){const d=ar.get(l);d&&d.length>0&&(ar.delete(l),d.forEach(f=>bs(t,f)))}o.resolve(t)});const _n=i.defineComponent({name:"FXDynamicComponent",props:{config:{type:Object,required:!0}},setup(e){const t=i.ref("loading"),n=i.ref(""),r=i.computed(()=>`fluens-dynamic-component-${e.config.instanceId}`),u=i.computed(()=>e.config.position==="inline"),o=i.computed(()=>!e.config.jsUrl&&!!e.config.url),a=i.computed(()=>({...u.value?{width:"fit-content",maxWidth:"100%"}:{width:"100%"},height:"auto",...t.value==="ready"&&u.value?{padding:"16px 0"}:{},...t.value==="ready"&&!u.value?{height:"100%",overflow:"hidden"}:{}}));return i.onMounted(()=>{o.value||(t.value="loading",n.value="",ys(e.config).then(()=>{t.value="ready"}).catch(s=>{t.value="error",n.value=s.message||"Unknown error"}))}),i.onUnmounted(()=>{o.value||ws(e.config.instanceId)}),()=>o.value?null:i.createVNode("div",{class:"f-chat-dynamic-component-body",style:a.value},[i.createVNode("div",{id:r.value,style:{width:"100%",height:"100%",display:t.value==="ready"?"":"none"}},null),t.value==="loading"&&i.createVNode("div",{class:"f-chat-dynamic-component-loading"},[i.createVNode("span",{class:"f-chat-dynamic-component-loading-spinner"},null),i.createVNode("span",null,[i.createTextVNode("加载中......")])]),t.value==="error"&&i.createVNode("div",{class:"f-chat-dynamic-component-error"},[i.createVNode("span",{class:"f-chat-dynamic-component-error-icon"},[i.createTextVNode("!")]),i.createVNode("span",null,[n.value])])])}}),xs=(e,t,n)=>{if(e.type===Pe.DynamicComponentComplete){const r=e;if(!r.config)return null;if(r.config.position==="inline")return i.createVNode(_n,{key:`dc-${t}`,config:r.config},null);const u={type:"file",fileContent:{type:"md",name:r.config.title}},o={onPreviewFile:a=>{n.emit("showDynamicComponent",r.config)}};return n.emitDynamicComponentsDetectedOnce(r.config),i.createVNode("div",{style:{padding:"16px 0"}},[n.renderFileEmbeddedContent(u,o)])}return e.type===Pe.DynamicComponentPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`dc-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("组件加载中......")])]):null};function sm(){return{[Pe.Text]:uh,[Pe.AssistantWidgetComplete]:hs,[Pe.AssistantWidgetPending]:hs,[Pe.DynamicComponentComplete]:xs,[Pe.DynamicComponentPending]:xs}}const lm=i.defineComponent({name:"FXBubbleTextContent",props:Pc,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:n}=Mi(),{propertyStates:r,registerProperty:u,updatePropertyValue:o,startStreaming:a}=jr();u("title",e.title??""),u("subtitle",e.subtitle??""),u("text",e.text??""),i.watch([()=>e.title,()=>e.subtitle,()=>e.text],([y,b,g])=>{o("title",y??""),o("subtitle",b??""),o("text",g??"")});const s=i.computed(()=>e.textFormat==="markdown"),l=i.ref(!1),d=i.computed(()=>{var y,b,g;return l.value?{title:((y=r.title)==null?void 0:y.displayedValue)??"",subtitle:((b=r.subtitle)==null?void 0:b.displayedValue)??"",text:((g=r.text)==null?void 0:g.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),f=i.computed(()=>nd(d.value.text)),c=new Set;function h(y){const b=String(y.instanceId??"").trim();!b||c.has(b)||(c.add(b),i.nextTick(()=>{var g;t.emit("dynamicComponentsDetected",[y]),(g=e.onDynamicComponentsDetected)==null||g.call(e,[y])}))}function p(y,...b){var g;t.emit(y,...b),y==="showDynamicComponent"&&((g=e.onShowDynamicComponent)==null||g.call(e,b[0]))}const m={shouldShowMarkdown:s,emit:p,emitDynamicComponentsDetectedOnce:h,renderFileEmbeddedContent:n},x=sm(),v=()=>f.value.length===0?null:i.createVNode("div",{class:"f-chat-bubble-text-collection"},[f.value.map((y,b)=>{var g;return(g=x[y.type])==null?void 0:g.call(x,y,b,m)})]);return i.onMounted(()=>{l.value&&a()}),()=>i.createVNode(i.Fragment,null,[d.value.title&&i.createVNode("div",{class:"f-chat-bubble-content-title"},[d.value.title]),d.value.subtitle&&i.createVNode("div",{class:"f-chat-bubble-content-subtitle"},[d.value.subtitle]),v()])}}),cm={content:{type:Object},outputMode:{type:String,default:"full"}},dm=i.defineComponent({name:"FXBubbleThink",props:cm,setup(e,t){var G;const{propertyStates:n,registerProperty:r,updatePropertyValue:u,isAllDone:o}=jr(),{elapsedSeconds:a,hasEverStarted:s,start:l,stop:d,reset:f}=Ko(),c=i.ref(((G=e.content)==null?void 0:G.completed)!==!0),h=i.ref(null),p=i.ref(null),m=i.ref(!1),x=i.ref(!1),v=i.computed(()=>e.outputMode==="streaming"),y=i.computed(()=>{var $;return($=e.content)==null?void 0:$.completed}),b=i.computed(()=>{var M,H;if(y.value){const I=s.value?`(用时${a.value}秒)`:"";return((M=e.content)==null?void 0:M.title)??"思考完成"+I}return((H=e.content)==null?void 0:H.title)??"正在思考......"}),g=i.computed(()=>{var $,M;return v.value?(($=n.content)==null?void 0:$.displayedValue)??"":((M=e.content)==null?void 0:M.content)??""}),w=i.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!y.value,"is-completed":y.value})),A=()=>{const $=h.value;if(!$||!m.value){x.value=!1;return}x.value=$.scrollTop>0};i.watch(()=>y.value,$=>{$?d():l()},{immediate:!0}),i.watch(()=>y.value,$=>{$&&(c.value=!1)}),i.watch(()=>e.content,$=>{$&&(n.content?u("content",$.content??""):r("content",$.content??""))},{immediate:!0}),i.watch(g,async()=>{if(c.value){await i.nextTick();const $=h.value;if(!$)return;await i.nextTick(),m.value=$.scrollHeight>$.clientHeight,m.value?($.scrollTop=$.scrollHeight,x.value=!0):x.value=!1}},{immediate:!0}),i.watch(c,async $=>{if($){await i.nextTick();const M=h.value;if(!M)return;await i.nextTick(),m.value=M.scrollHeight>M.clientHeight,m.value?(M.scrollTop=M.scrollHeight,x.value=!0):x.value=!1}}),i.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(v.value?o.value:!0)&&y.value:!0}}});const N=()=>{c.value=!c.value},F=()=>y.value?null:i.createVNode(tn,{status:"Working",variant:"thinking"},null),_=()=>!g.value||!c.value?null:i.createVNode("div",{class:"f-chat-bubble-thinking-content"},[i.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:h,onScroll:A},[m.value&&x.value&&i.createVNode("div",{class:"f-chat-bubble-thinking-fade-mask"},null),i.createVNode("div",{class:"f-chat-bubble-thinking-text-wrapper"},[i.createVNode("div",{ref:p,class:"f-chat-bubble-thinking-content-text",innerHTML:g.value},null)])])]);return()=>i.createVNode("div",{class:w.value},[i.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:N},[F(),i.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:b.value},null),g.value&&i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:c.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null)]),_()])}}),fm={content:{type:Object}},vs={id:{type:String},arrowOffsetX:{type:Number,default:0},class:{type:String,default:""},customStyles:{type:Object,default:null},isSimpleTips:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},host:{type:Object},leftBoundary:{type:Object},keepWidthWithReference:{type:Boolean,default:!1},minWidth:{type:Number,default:-1},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},placement:{type:String,default:"bottom"},reference:{type:Object},rightBoundary:{type:Object},showArrow:{type:Boolean,default:!1},theme:{type:String,default:"default"},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function},enableDrag:{type:Boolean,default:!1},renderWhenShown:{type:Boolean,default:!1}};function hm(e){const t=e.host?e.host:"body",n=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().top:0),r=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().bottom:window.innerHeight),u=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),o=i.computed(()=>t==="body"?document.body.getBoundingClientRect().width:t?t.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width),a=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().height:window.innerHeight);return{host:t,hostLeft:u,hostTop:n,hostWidth:o,hostHeight:a,hostBottom:r}}function mm(e,t,n,r){const u=i.ref(e.offsetX||0),o=i.ref(e.offsetY||0),a=i.ref(-1),s=i.ref(-1),l=i.ref(-1),d=i.ref(-1),f=i.ref(e.placement),c=i.ref(0),h=i.ref(0),p=i.ref(0),m=i.computed(()=>document.documentElement.scrollLeft),x=i.computed(()=>document.documentElement.scrollTop),{hostLeft:v,hostTop:y,hostWidth:b,hostHeight:g,hostBottom:w}=r;i.watch(()=>e.offsetX,L=>{u.value=L});const A=i.computed(()=>{const L={left:`${h.value}px`,top:`${p.value}px`,transform:`translate(${u.value}px, ${o.value}px)`};return e.zIndex!==-1&&(L["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&n.value&&a.value>=n.value.getBoundingClientRect().width&&(L.width=`${a.value}px`):a.value!==-1&&(L.width=`${a.value}px`),e.minWidth!==-1&&(L.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(L,e.customStyles),s.value>0&&(L.maxHeight=s.value+"px"),L}),N=i.computed(()=>({left:`${c.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function F(L){if(L&&e.keepWidthWithReference){const R=L.getBoundingClientRect();a.value=Math.max(e.minWidth,R.width)}}function _(L,R){const B=b.value-L.width-4;return B>0?B:R}function G(L,R){const B=g.value-L.height-12;return B>0?B:R}function $(L,R,B){const Q=c.value,re=R.left-v.value+R.width/2+m.value,oe=R.top-y.value-(L.height+B.height)+x.value;return{popoverLeft:re,popoverTop:oe,arrowLeft:Q}}function M(L,R,B){const Q=R.top-y.value+(R.height+B.height)+x.value,re=G(L,Q);return Math.min(Q,re)}function H(L,R){const B=_(R,L),Q=L<=B?c.value:L-B;return{popoverLeft:Math.min(L,B),arrowLeft:Q,maxHeight:0}}function I(L,R){const B=_(R,L),Q=L<=B?c.value:L-B;return{popoverLeft:L,arrowLeft:Q,maxHeight:0}}function X(L,R,B){const Q=R.left-v.value+m.value,{arrowLeft:re,popoverLeft:oe}=I(Q,L),{popoverTop:ce}=$(L,R,B);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function q(L,R,B){const Q=R.left-v.value+R.width/2-(B.width/2-(L.left-v.value))+m.value,{arrowLeft:re,popoverLeft:oe}=H(Q,L),ce=M(L,R,B);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function D(L,R,B){const Q=R.left-v.value+m.value,{arrowLeft:re,popoverLeft:oe}=H(Q,L),ce=M(L,R,B);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function j(L,R,B){const Q=R.right-v.value-L.width+m.value,oe=Math.max(Q,4),ce=oe-Q,le=L.width-B.width-20-ce,he=M(L,R,B);return{popoverLeft:oe,popoverTop:he,arrowLeft:le,maxHeight:0}}function z(L,R,B){const Q=R.left-v.value;let re=0,oe=0,ce=0,le=0,he="bottom-left";window.innerWidth-Q>L.width?re=Q+m.value:(re=R.right-L.width+m.value,ce=L.width-B.width-20);let Be=0;if(e.limitContentBySpace){const fn={topHeight:R.top-y.value-B.height-8,bottomHeight:w.value-R.bottom-B.height-8};Be=Math.max(fn.topHeight,fn.bottomHeight),L.height>Be&&(le=Be,n.value.classList.add("popover-limitmax"))}const kt=le?Math.floor(le):L.height,Ge=R.top-y.value+(R.height+B.height);return w.value-Ge>kt?oe=Ge+x.value:(oe=R.top-kt-B.height+x.value,w.value-Ge>R.top?(oe=Ge+x.value,kt>R.top&&(oe=w.value-kt)):(oe=oe<0?0:oe,he="top")),n.value.classList.add("popover-"+he,"bs-popover-"+he),{popoverLeft:re<0?5:re,popoverTop:oe,arrowLeft:ce,maxHeight:le}}function Z(L,R,B){const Q=R.left+R.width,re=0;let oe=0,ce=L.height;if(e.limitContentBySpace){const Rt=g.value-16-Math.abs(o.value);L.height>Rt?(oe=Rt,ce=Rt,n.value.classList.add("popover-limitmax")):n.value.classList.remove("popover-limitmax")}const le=Math.max(R.top-(ce/2-R.height/2),y.value);let he=y.value+g.value-ce-o.value;he<0&&(he=le);const Be=Math.min(le,he);return{popoverLeft:Q,popoverTop:Be,arrowLeft:re,maxHeight:oe}}function ue(L,R,B){const Q=R.left+R.width,re=Math.max(R.top-R.height,y.value);let oe=y.value+g.value-L.height;oe<0&&(oe=re);const ce=Math.min(re,oe);return{popoverLeft:Q,popoverTop:ce,arrowLeft:0,maxHeight:0}}function C(L,R,B){const Q=R.left-v.value+R.width/2-L.width/2+m.value,re=R.top-y.value-(L.height+B.height)+x.value,oe=L.width/2-B.width/2;return{popoverLeft:Q,popoverTop:re,arrowLeft:oe,maxHeight:0}}function S(L,R,B){const Q=R.left-v.value+R.width/2-L.width/2+m.value,re=M(L,R,B),oe=L.width/2-B.width/2;return{popoverLeft:Q,popoverTop:re,arrowLeft:oe,maxHeight:0}}const T=new Map([["top",$],["top-left",X],["top-center",C],["bottom",q],["bottom-left",D],["bottom-right",j],["bottom-center",S],["right",Z],["right-top",ue],["auto",z]]);function O(L){var oe;e.keepWidthWithReference&&F(L);const R=L.getBoundingClientRect();l.value=R.top,d.value=R.left;const B=t.value?t.value.getBoundingClientRect():{height:4,width:4},Q=(oe=n.value)==null?void 0:oe.getBoundingClientRect();a.value=Q.width;const re=T.get(f.value);if(re){const{arrowLeft:ce,popoverLeft:le,popoverTop:he,maxHeight:Be}=re(Q,R,B);c.value=ce,h.value=le,p.value=he,s.value=Be||-1}}function P(L){if(L){const R=L.getBoundingClientRect();(R.left!==d.value||R.top!==l.value)&&O(L)}}function U(){f.value=e.placement,c.value=0,h.value=0,p.value=0,a.value=-1}return{arrowStyle:N,popoverStyle:A,position:f,popoverWidth:a,fitToReference:F,followToReferencePosition:P,locateToReference:O,resetPosition:U}}function pm(e,t,n,r,u,o,a,s){const l=i.ref(e.visible),d=i.computed(()=>l.value),f=i.ref(!1),{fitToReference:c,followToReferencePosition:h,locateToReference:p,resetPosition:m}=a;function x(){f.value=!0}function v(){f.value=!1}i.watch(()=>e.visible,async A=>{A&&e.reference?(s.value||(s.value=!0,await i.nextTick()),await i.nextTick(),g(e.reference)):A||b()},{flush:"post"});let y;async function b(){l.value&&(e.beforeClose&&typeof e.beforeClose=="function"&&!await e.beforeClose()||(l.value=!1,document.body.removeEventListener("click",y),document.body.removeEventListener("mousedown",y),document.body.removeEventListener("wheel",y,!0),document.removeEventListener("scroll",y),e.enableDrag&&(document.removeEventListener("dragstart",x),document.removeEventListener("dragend",v),f.value=!1),m(),t.emit("hidden"),e.renderWhenShown&&(s.value=!1)))}y=A=>{var _;if(f.value||!u.value)return;const N=u.value.contains(A.target);if(A.type==="scroll"||A.type==="wheel"&&N){b();return}if(A.target.closest(".time-picker-panel"))return;const F=(_=A.target)==null?void 0:_.closest(".popover");if(F&&r.value&&F===r.value){A.type!=="scroll"&&A.type!=="wheel"&&A.stopPropagation();return}if(!N&&l.value){const G=u.value.closest(".popover");G&&G.removeEventListener("click",y),b()}};async function g(A){if(e.renderWhenShown&&!s.value&&(s.value=!0,await i.nextTick()),r.value&&(e.showArrow===!1||e.showArrow&&n.value)&&A){m(),l.value=!0,u.value=A,o.value&&c(A),await i.nextTick(),p(A),document.body.addEventListener("click",y),document.body.addEventListener("mousedown",y),document.body.addEventListener("wheel",y,!0),document.addEventListener("scroll",y),e.enableDrag&&(document.addEventListener("dragstart",x),document.addEventListener("dragend",v)),(top==null?void 0:top.document)!==document&&(top==null||top.document.addEventListener("mousedown",y));const N=A.closest(".popover");N&&N.addEventListener("click",y),t.emit("shown")}}function w(){l.value&&u.value&&h(u.value)}return t.expose({hide:b,popoverRef:r,show:g,shown:d,isShow:l,updatePosition:w}),{showPopover:l,hidePopverOnClickBodyHandler:y}}function gm(e,t,n,r,u,o){const{popoverWidth:a,fitToReference:s,followToReferencePosition:l}=u;function d(){var f;if(o.value&&((f=o.value.style)==null?void 0:f.display)!=="none"&&n.value){l(n.value);const c=n.value.getBoundingClientRect();r.value&&c.width!==a.value&&s(n.value)}}return{onResize:d}}function bm(e,t=500){const n=i.ref(e.value);let r;const u=i.watch(e,a=>{clearTimeout(r),r=setTimeout(()=>{n.value=a},t)}),o=()=>{clearTimeout(r),u()};return i.onUnmounted(o),{delayedValue:n,cleanup:o}}const nn=i.defineComponent({name:"FXPopover",props:vs,emits:["shown","hidden"],setup(e,t){const n=i.ref(),r=i.ref(),u=i.ref(e.reference),o=i.ref(e.keepWidthWithReference),a=i.computed(()=>!!e.title),s=i.ref(!e.renderWhenShown||e.visible),l=hm(e),{host:d}=l,f=mm(e,n,r,l),{position:c,arrowStyle:h,popoverStyle:p,fitToReference:m,locateToReference:x}=f,{showPopover:v,hidePopverOnClickBodyHandler:y}=pm(e,t,n,r,u,o,f,s),{onResize:b}=gm(e,t,u,o,f,r),g=i.computed(()=>{let _=c.value;const G=`popover in popover-${_}`,$=`bs-popover-${_}`,M={"popover-fitcontent":e.fitContent,fade:!0};M[G]=!0,M[$]=!0,e.theme==="dark"&&(M["popover-theme-dark"]=!0);const H=(e.class||"").split(" ");return e.isSimpleTips&&H.unshift("popover-tips"),H.reduce((I,X)=>(I[X]=!0,I),M),M}),w=i.computed(()=>({"popover-content":!0,"popover-body":!0})),A=i.computed(()=>{const _={};return _.opacity=v.value?1:0,_.visibility=v.value?"visible":"hidden",_.zIndex=1060,_}),N=i.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:F}=bm(A,50);return i.onMounted(()=>{var _;s.value&&(o.value&&m(u.value),e.reference&&x(u.value)),window.addEventListener("resize",b),(_=r.value)==null||_.focus()}),i.onUnmounted(()=>{document.body.removeEventListener("click",y),window.removeEventListener("resize",b),v.value=!1}),()=>s.value?i.createVNode(i.Teleport,{to:d},{default:()=>{var _;return[i.withDirectives(i.createVNode("div",{tabindex:"-1",ref:r,class:g.value,style:{...p.value,...F.value},onMousedown:G=>{e.enableDrag||G.stopPropagation()},onClick:G=>{G.stopPropagation()}},[N.value&&i.createVNode("div",{ref:n,class:"popover-arrow arrow",style:h.value},null),a.value&&i.createVNode("h3",{class:"popover-title popover-header"},[e.title]),i.createVNode("div",{class:w.value},[t.slots.default&&((_=t.slots)==null?void 0:_.default())])]),[[i.vShow,v.value]])]}}):null}}),go="FarrisX_PopoverInstancesKey";window[go]=window[go]||new WeakMap;function zu(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&!r.value.isShow&&(r.value.show(n),window[go].set(n,r.value))}function ks(e,t,n){e.stopPropagation(),t.value.value.hide(),window[go].delete(n)}function ym(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&(r.value.isShow?ks(e,t,n):zu(e,t,n))}function As(e,t,n){t.arg&&t.arg==="toggle"?ym(e,t,n):zu(e,t,n)}const Cs={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",r=>zu(r,t,e)),e.addEventListener("mouseleave",r=>ks(r,t,e))):t.modifiers.click?e.addEventListener("click",r=>As(r,t,e)):e.addEventListener("click",r=>As(r,t,e)),e.classList.add("v-popover")},unMounted:(e,t,n)=>{}};nn.install=e=>{e.component(nn.name,nn),e.directive("fxpopover",Cs)};const _s={type:{type:String,default:"StartedToDo"},status:{type:String,default:"NotStart"},message:{type:String,default:""},taskDetail:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"hover"},initExpanded:{type:Boolean,default:!1},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!0},loading:Object,shimmer:{type:Boolean,default:!0},outputMode:{type:String,default:"streaming"},listStatus:{type:String,default:void 0},completedCount:{type:Number,default:void 0},totalCount:{type:Number,default:void 0}},Es={items:{type:Array,default:()=>[]}},Ss={id:{type:Number||String,default:0},status:{type:String},task:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"expand"},initExpanded:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!1},shimmer:{type:Boolean,default:!0},title:{type:String,default:""},message:{type:String,default:""},outputMode:{type:String,default:"full"}},bo=i.defineComponent({name:"FXTodoListItemView",props:Ss,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:r,updatePropertyValue:u,startStreaming:o}=jr();r("title",e.title??""),r("task",e.task??""),r("detail",e.message??""),i.watch([()=>e.title,()=>e.task,()=>e.message],([p,m,x])=>{u("title",p??""),u("task",m??""),u("detail",x??"")});const a=i.computed(()=>["f-chat-todo-item",{"is-done":e.status==="Done","is-working":e.status==="Working","is-not-start":e.status==="NotStart","no-shimmer":!e.shimmer}]),s=i.computed(()=>["f-chat-todo-task",{"is-done":e.status==="Done"}]);function l(){t("click",e,e.id)}const d=i.computed(()=>e.outputMode==="streaming"),f=i.computed(()=>{var p;return d.value?((p=n.title)==null?void 0:p.displayedValue)??"":e.title??""}),c=i.computed(()=>{var p;return d.value?((p=n.task)==null?void 0:p.displayedValue)??"":e.task??""}),h=i.computed(()=>{var p;return d.value?((p=n.detail)==null?void 0:p.displayedValue)??"":e.message??""});return i.onMounted(()=>{d.value&&o()}),()=>i.createVNode("li",{key:e.id,class:a.value,onClick:l},[e.todoList&&e.todoList.length>0&&i.createVNode(rn,{todoList:e.todoList,status:e.status,message:e.task,taskDetail:e.message,detailViewMode:e.detailViewMode,initExpanded:e.initExpanded,showLoading:e.showLoading,showLabel:e.showLabel,outputMode:e.outputMode},null),!e.todoList||e.todoList.length===0&&i.createVNode(i.Fragment,null,[e.showLoading&&i.createVNode(tn,{status:e.status??"Done",variant:"todo"},null),f.value?i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[f.value]),i.createVNode("div",{class:"f-chat-todo-task-description"},[c.value]),h.value?i.withDirectives(i.createVNode("div",{class:"f-chat-todo-task-description"},[h.value]),[[i.resolveDirective("overflow-tooltip")]]):null]):i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[c.value]),h.value?i.withDirectives(i.createVNode("div",{class:"f-chat-todo-task-description"},[h.value]),[[i.resolveDirective("overflow-tooltip")]]):null])])])}}),sr=i.defineComponent({name:"FXTodoListView",props:Es,setup(e){return()=>{var t;return(t=e.items)!=null&&t.length?i.createVNode("ul",{class:"f-chat-todo-items"},[e.items.map((n,r)=>i.createVNode(bo,i.mergeProps({key:r},n),null))]):null}}}),wm=300,xm={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},rn=i.defineComponent({name:"FXStartedTodo",props:_s,setup(e){const t=i.ref(null),n=i.ref(null),r=i.ref(null),u=i.ref(null),o=i.computed(()=>e.outputMode==="streaming"),{displayContent:a}=Ti(()=>({detail:e.taskDetail??""}),()=>!0,o,{charInterval:30}),s=i.ref(e.initExpanded),l=i.computed(()=>({"f-chat-message-started-todo--content":!0,"d-none":!s.value}));function d(){e.detailViewMode!=="expand"&&(u.value!=null&&(window.clearTimeout(u.value),u.value=null),r.value=window.setTimeout(()=>{t.value&&n.value&&n.value.show(t.value),r.value=null},wm))}function f(){e.detailViewMode!=="expand"&&(r.value!=null&&(window.clearTimeout(r.value),r.value=null),u.value=window.setTimeout(()=>{var b,g;(g=(b=n.value)==null?void 0:b.hide)==null||g.call(b),u.value=null},150))}function c(){if(e.detailViewMode==="none")return null;const b=a.value.detail??"";return i.createVNode(i.Fragment,null,[b?i.createVNode("div",{class:"f-chat-started-todo-task-detail"},[b]):null,i.createVNode(sr,{items:e.todoList},null)])}function h(){e.detailViewMode==="expand"&&(s.value=!s.value)}function p(){return e.detailViewMode==="expand"?i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:s.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null):null}function m(){return e.detailViewMode==="hover"&&i.createVNode(nn,{ref:n,class:"f-chat-started-todo-popover"},{default:()=>[i.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{u.value!=null&&(window.clearTimeout(u.value),u.value=null)},onMouseleave:f},[c()])]})}const x=i.computed(()=>e.listStatus==="completed"),v=i.computed(()=>{const b=e.todoList??[],g=e.totalCount??b.length;return{done:e.completedCount??b.filter(A=>(A==null?void 0:A.status)==="Done").length,total:g}});function y(){if(!x.value)return null;const{done:b,total:g}=v.value,w=g>0?`已完成 (${b}/${g})`:"已完成";return i.createVNode("span",{class:"f-chat-started-todo-completed-chip","aria-label":w},[w])}return()=>i.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working","is-completed":x.value}],onMouseenter:d,onMouseleave:f},[i.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:h},[e.showLabel&&i.createVNode("span",{class:"f-chat-started-todo-label"},[xm[e.status]]),i.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),y(),p()]),e.detailViewMode==="expand"&&i.createVNode("div",{class:l.value},[c()]),m()])}});rn.install=e=>{e.component(rn.name,rn)};const vm=i.defineComponent({name:"FXBubbleThoughtChain",props:fm,setup(e,t){const{elapsedSeconds:n,hasEverStarted:r,start:u,stop:o,reset:a}=Ko(),s=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.status)==="Done"}),l=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.message)??"正在思考......"}),d=i.computed(()=>{var p,m;const c=((p=e.content)==null?void 0:p.doneMessage)??((m=e.content)==null?void 0:m.message)??"思考完成",h=r.value?`(用时${n.value}秒)`:"";return""+c+h}),f=i.computed(()=>s.value?d.value:l.value);return i.watch(()=>{var c;return(c=e.content)==null?void 0:c.status},c=>{c==="Working"?u():c==="Done"?o():a()},{immediate:!0}),i.onUnmounted(()=>{a()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var c,h,p,m,x,v;return e.content?i.createVNode(rn,{status:((c=e.content)==null?void 0:c.status)??"Working",message:f.value,todoList:(h=e.content)==null?void 0:h.todoList,detailViewMode:((p=e.content)==null?void 0:p.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0,listStatus:(m=e.content)==null?void 0:m.listStatus,completedCount:(x=e.content)==null?void 0:x.completedCount,totalCount:(v=e.content)==null?void 0:v.totalCount},null):null}}}),lr=i.defineComponent({name:"UserAuthMessage",props:{content:{type:Object,required:!0},onConfirm:{type:Function,default:void 0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-auth"},[i.createVNode("div",{class:"f-ec-auth-desc"},[e.content.description]),i.createVNode("div",{class:"f-ec-auth-actions"},[e.content.options.map(t=>i.createVNode("button",{key:t.optionId,type:"button",class:"f-ec-auth-btn",onClick:()=>{var n;(n=e.onConfirm)==null||n.call(e,t.optionId,t.name,t.message??t.name),console.info("[UserAuth]",t.optionId,t.name)}},[t.name]))])])}}),km=300,En=i.defineComponent({name:"FXToolUseMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>e.content.toolResultApplied===!0||String(e.content.result??"").trim().length>0),{getToolIconClass:n}=Qo(),r=i.computed(()=>e.content.success===!1),u=i.ref(!1);let o=setTimeout(()=>{u.value=!0},km);i.onBeforeUnmount(()=>{o&&clearTimeout(o)});const a=i.computed(()=>t.value),s=i.computed(()=>u.value&&!t.value),l=i.computed(()=>r.value?"执行完成":a.value?"执行成功":"调用中"),d=i.ref(!1),f=i.computed(()=>({"f-chat-tool-use":!0,"is-done":a.value,"is-error":r.value})),c=i.computed(()=>({"f-chat-tool-use-status":!0,"is-done":a.value&&!r.value,"is-run":s.value&&!r.value,"is-error":r.value}));i.watch(()=>t.value,(p,m)=>{p&&!m&&(d.value=!1)},{flush:"post"});const h=()=>t.value?i.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>i.createVNode("div",{class:f.value},[i.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{d.value=!d.value}},[i.createVNode("i",{class:"fx-icon fx-icon-"+n(e.content.toolName)+" tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),i.createVNode("div",{class:c.value},[r.value?i.createVNode(tn,{status:"Error",variant:"tool-use"},null):i.createVNode(tn,{status:a.value?"Done":s.value?"Working":"NotStart",variant:"tool-use"},null),i.createVNode("span",{class:"f-chat-tool-use-status-text"},[l.value])]),i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:d.value?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"}},null)]),d.value&&i.createVNode("div",{class:"f-chat-tool-use-content"},[h()])])}});En.install=e=>{e.component(En.name,En)};const cr=i.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":lr,"fx-app-preview-inline":lt,FXToolUse:En},props:Mr,setup(e,t){const n=i.shallowRef(),r=i.ref(),u=i.ref(),o=i.computed(()=>!!e.showAvatar),a=i.computed(()=>o.value===!0||e.header==="ContentHeader"),s=i.computed(()=>t.slots.leftFooter||t.slots.rightFooter),l=i.computed(()=>{var I;return Ee({},(I=e.styles)==null?void 0:I.footer)}),d=I=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(I.type==="md"&&I.content){e.onPreview({content:I.content,contentType:"markdown"});return}if(I!=null&&I.url){const X=I!=null&&I.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:I.url,previewMode:X,title:I.name})}}},f=I=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const X=I==null?void 0:I.filter(D=>D.type==="md"&&D.content);if(X.length===0)return;const q=Object.fromEntries(X.map(D=>[D.name,D.content??""]));e.onPreview({contentMap:q,contentType:"markdown"})},{renderFileEmbeddedContent:c,renderPageEmbeddedContent:h}=Mi(),p=i.ref(""),m=i.computed(()=>{var X,q;if((X=e.content)!=null&&X.footerContent)return e.content.footerContent;const I=(q=e.content)==null?void 0:q.structuredContent;return I&&(I.footerTemplate||I.footerUrl||I.footerFile)?{type:I.footerUrl?"page":I.footerFile?"file":"template",pageUrl:I.footerUrl,fileContent:I.footerFile,template:I.footerTemplate,width:I.footerWidth,height:I.footerHeight}:null});i.watch(()=>{var I;return(I=m.value)==null?void 0:I.width},I=>{if(!I){p.value="";return}if(I.endsWith("%")){const X=parseFloat(I);isNaN(X)||i.nextTick(()=>{var D,j;const q=(j=(D=n.value)==null?void 0:D.parentElement)==null?void 0:j.clientWidth;q&&(p.value=`${q*X/100}px`)})}else p.value=I},{immediate:!0});const x=I=>{if(!I||I.length===0)return"我";const X=I.charAt(0);return/[\u4e00-\u9fa5]/.test(X)?X:X.toUpperCase()};function v(){return e.header==="ContentHeader"?Dc:Ic}const y=v(),{renderHeader:b}=y(e,t),g=()=>{var q,D,j;const I=((q=e.content)==null?void 0:q.sender)??"发送人",X=x(((D=e.content)==null?void 0:D.sender)??"");return i.createVNode("div",{class:"f-chat-bubble-avatar"},[(j=e.content)!=null&&j.avatar?i.createVNode("img",{src:e.content.avatar,alt:I},null):i.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[X])])},w=()=>{var X;const I=(X=e.content)==null?void 0:X.toolUseAboveText;return I!=null&&I.length?i.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[I.map((q,D)=>i.createVNode(En,{key:q.toolUseId??`tu-${D}`,content:q},null))]):null},A=()=>{var I;return(I=e.content)!=null&&I.thinkingContent?i.createVNode(dm,{ref:r,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},N=()=>{var I;return(I=e.content)!=null&&I.startedTodo?i.createVNode(vm,{ref:u,content:e.content.startedTodo},null):null},F=I=>{if(!(I!=null&&I.type))return null;const{type:X}=I;return X==="page"&&I.pageUrl?h(I,{onNavigate:q=>{var D;(D=e.onPreview)==null||D.call(e,{url:q})}}):X==="file"&&I.fileContent?c(I,{onPreviewFile:d,onBatchPreviewFile:f}):X==="template"&&I.template?I.template():null},_=()=>{var D,j,z;if(!((z=(j=(D=e.content)==null?void 0:D.structuredContent)==null?void 0:j.sections)!=null&&z.length))return null;const{sections:I,showDivider:X}=e.content.structuredContent,q=Z=>{const{content:ue,label:C}=Z;return C||ue&&typeof ue=="string"?i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),Z.label&&i.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[Z.label]),i.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[Z.content])]):F(Z.content)};return i.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":X}]},[I.map((Z,ue)=>i.createVNode("div",{key:ue,class:["f-chat-bubble-structured-section",{"section-divider":Z.showDivider}]},[i.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[Z.icon&&(Z.icon.startsWith("http")||Z.icon.startsWith("//")||Z.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(Z.icon)?i.createVNode("img",{alt:Z.title,src:Z.icon,class:"f-chat-bubble-structured-section-icon"},null):i.createVNode("i",{class:`fx-icon ${Z.icon}`,style:Z.iconStyle},null)),i.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[Z.title])]),Z.items&&Z.items.length>0&&i.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[Z.items.map((C,S)=>i.createVNode("div",{key:S,class:"f-chat-bubble-structured-section-item"},[q(C)]))])]))])},G=()=>{const I=m.value;if(!I)return null;const X={};return p.value&&(X.width=p.value),I.height&&(X.height=`${I.height}px`),i.createVNode("div",{class:"f-chat-bubble-content-footer",style:X},[F(I)])},$=()=>{const I=e.attachmentRowClickOpensPreview!==!1?d:void 0;return i.createVNode(Pi,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:I,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?f:void 0,role:e.role},null)},M=()=>{var X;const I=(X=e.content)==null?void 0:X.compositeInlineBlocks;return I!=null&&I.length?I.map((q,D)=>q.kind==="userAuth"?i.createVNode(i.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${D}`,content:q.content,onConfirm:e.onUserAuthConfirm},null):i.createVNode(i.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${D}`,content:q.content,onOpen:e.onPreview},null)):null},H=()=>{var I,X,q,D,j,z;return i.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[a.value&&b(),$(),i.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(I=e.content)!=null&&I.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():i.createVNode(i.Fragment,null,[A(),w()]),N(),_(),i.createVNode(lm,{title:((X=e.content)==null?void 0:X.title)??"",subtitle:((q=e.content)==null?void 0:q.subtitle)??"",text:typeof((D=e.content)==null?void 0:D.text)=="string"?e.content.text:"",textFormat:((j=e.content)==null?void 0:j.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),G(),(z=e.compositeTailRender)==null?void 0:z.call(e),M()]),s.value&&i.createVNode("div",{class:"f-chat-bubble-footer",style:l.value},[t.slots.leftFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-left"},[t.slots.leftFooter()]),t.slots.rightFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-right"},[t.slots.rightFooter()])])])};return()=>i.createVNode("div",{class:"f-chat-bubble-container",ref:n},[i.createVNode("div",{class:`f-chat-bubble-wrapper ${e.placement}`},[e.placement==="start"?i.createVNode(i.Fragment,null,[o.value&&g(),H()]):i.createVNode(i.Fragment,null,[H(),o.value&&g()])])])}}),Ns={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},ju=i.defineComponent({name:"FXBubbleAction",props:Ns,setup(e,t){const n=i.computed(()=>Ee({},e.customStyle));return()=>t.slots.default&&i.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});cr.install=e=>{e.component(cr.name,cr),e.component(ju.name,ju)};const Fs={items:{type:Array,default:()=>[]},modelValue:{type:Number,default:0},direction:{type:String,default:"horizontal"},autoplay:{type:Boolean,default:!1},interval:{type:Number,default:3e3},loop:{type:Boolean,default:!0},trigger:{type:String,default:"click"},indicatorPosition:{type:String,default:"inside"},arrowVisibility:{type:String,default:"hover"},showIndicator:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showInfo:{type:Boolean,default:!0},height:{type:[String,Number],default:"400px"},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[String,Array,Object],default:""},customStyle:{type:[Object,String],default:""},buttonPosition:{type:String,default:"inner"}},Ts={item:{type:Object,default:()=>({})},index:{type:Number,default:0},active:{type:Boolean,default:!1},showInfo:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},yo=i.defineComponent({name:"FXCarouselItem",props:Ts,emits:["click"],setup(e,{slots:t,emit:n}){const r=i.computed(()=>{var c;const f={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return ke(f,(c=e.classNames)==null?void 0:c.item)}),u=i.computed(()=>{var c,h;const f=Ee({},(c=e.styles)==null?void 0:c.item);return Ee(f,(h=e.styles)==null?void 0:h.item)}),o=()=>{var f,c,h;return e.item.image?i.createVNode("img",{class:["fx-carousel--item-image",(f=e.classNames)==null?void 0:f.image],style:(c=e.styles)==null?void 0:c.image,src:e.item.image,alt:(h=e.item.title)==null?void 0:h.toString()},null):null},a=()=>{var f,c,h,p;return e.item.content?i.createVNode("div",{class:["fx-carousel--item-content",(f=e.classNames)==null?void 0:f.content],style:(c=e.styles)==null?void 0:c.content},[e.item.content]):t.default?i.createVNode("div",{class:["fx-carousel--item-content",(h=e.classNames)==null?void 0:h.content],style:(p=e.styles)==null?void 0:p.content},[t.default()]):null},s=()=>{var f,c;return e.item.title?i.createVNode("h3",{class:["fx-carousel--item-title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[e.item.title]):null},l=()=>{var f,c;return e.item.description?i.createVNode("p",{class:["fx-carousel--item-description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.item.description]):null},d=f=>{e.item.disabled||n("click",f,e.item,e.index)};return()=>i.createVNode("div",{class:r.value,style:u.value,onClick:d},[o(),a(),e.showInfo&&i.createVNode("div",{class:"fx-carousel--item-info"},[s(),l()])])}});function Am(e){const{items:t,autoplay:n=!1,interval:r=3e3,loop:u=!0,direction:o="horizontal"}=e,a=i.ref(0),s=i.ref(!1),l=i.ref(null),d=i.computed(()=>t.length),f=i.computed(()=>d.value<=1);i.computed(()=>a.value===0?u?d.value-1:0:a.value-1),i.computed(()=>a.value===d.value-1?u?0:a.value:a.value+1);const c=i.computed(()=>{const g=-a.value*100;return{transform:o==="horizontal"?`translateX(${g}%)`:`translateY(${g}%)`,transition:"transform 0.5s ease"}}),h=g=>{g<0||g>=d.value||(a.value,a.value=g)},p=()=>{f.value||(a.value===d.value-1?h(u?0:a.value):h(a.value+1))},m=()=>{f.value||(a.value===0?h(u?d.value-1:0):h(a.value-1))},x=()=>{!n||f.value||(v(),l.value=window.setInterval(()=>{s.value||p()},r))},v=()=>{l.value&&(clearInterval(l.value),l.value=null)},y=()=>{s.value=!0,n&&v()},b=()=>{s.value=!1,n&&x()};return i.onMounted(()=>{x()}),i.onUnmounted(()=>{v()}),{currentIndex:a,totalItems:d,isSingleItem:f,trackStyle:c,goTo:h,next:p,prev:m,handleMouseEnter:y,handleMouseLeave:b}}const dr=i.defineComponent({name:"FXCarousel",props:Fs,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:r,isSingleItem:u,trackStyle:o,goTo:a,next:s,prev:l,handleMouseEnter:d,handleMouseLeave:f}=Am({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),c=A=>{n("update:modelValue",A),n("change",A,r.value)},h=i.computed(()=>{var N;const A={"fx-carousel":!0,"fx-carousel--vertical":e.direction==="vertical","fx-carousel--single":u.value,"fx-carousel--button-outer":e.buttonPosition==="outer","fx-carousel--button-inner":e.buttonPosition==="inner"};return ke(A,(N=e.classNames)==null?void 0:N.root)}),p=i.computed(()=>{var F;const A={height:typeof e.height=="number"?`${e.height}px`:e.height},N=Ee(A,e.customStyle);return Ee(N,(F=e.styles)==null?void 0:F.root)}),m=i.computed(()=>{var N;const A={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return ke(A,(N=e.classNames)==null?void 0:N.container)}),x=i.computed(()=>{var N;return ke({"fx-carousel--track":!0},(N=e.classNames)==null?void 0:N.track)}),v=i.computed(()=>{var N;const A={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return ke(A,(N=e.classNames)==null?void 0:N.indicator)}),y=A=>{var F,_;const N={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":A==="left","fx-carousel--arrow-right":A==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return N[`fx-carousel--arrow-${e.buttonPosition}`]=!0,ke(N,A==="left"?(F=e.classNames)==null?void 0:F.arrowLeft:(_=e.classNames)==null?void 0:_.arrowRight)},b=A=>{var _,G;if(u.value)return null;const N=A==="left"?l:s,F=t[A==="left"?"prevArrow":"nextArrow"];return i.createVNode("button",{class:y(A),style:A==="left"?(_=e.styles)==null?void 0:_.arrowLeft:(G=e.styles)==null?void 0:G.arrowRight,onClick:N,"aria-label":`${A} arrow`},[F?F():i.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${A==="left"?"left":"right"}`},null)])},g=()=>{var A;return u.value||!e.showIndicator?null:i.createVNode("div",{class:v.value,style:(A=e.styles)==null?void 0:A.indicator},[e.items.map((N,F)=>{var _,G;return i.createVNode("button",{"aria-label":`indicator ${F}`,key:F,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":F===r.value}],style:F===r.value?(_=e.styles)==null?void 0:_.indicatorItemActive:(G=e.styles)==null?void 0:G.indicatorItem,onClick:()=>{a(F),c(F)}},null)})])},w=()=>i.createVNode("div",{class:x.value,style:o.value},[e.items.map((A,N)=>i.createVNode(yo,{key:A.id||`item_${N}`,item:A,showInfo:e.showInfo,index:N,active:N===r.value,styles:e.styles,classNames:e.classNames,onClick:(F,_,G)=>{n("item-click",F,_,G)}},{default:()=>{var F,_;return[(F=t.item)==null?void 0:F.call(t,{item:A,index:N,active:N===r.value}),(_=t[`item${N}`])==null?void 0:_.call(t,{item:A,index:N,active:N===r.value})]}}))]);return()=>{var A;return i.createVNode("div",{class:h.value,style:p.value,onMouseenter:d,onMouseleave:f},[e.buttonPosition==="outer"&&b("left"),i.createVNode("div",{class:m.value,style:(A=e.styles)==null?void 0:A.container},[e.buttonPosition==="inner"&&b("left"),w(),e.buttonPosition==="inner"&&b("right")]),e.buttonPosition==="outer"&&b("right"),g()])}}});dr.install=e=>{e.component(dr.name,dr),e.component(yo.name,yo)};const Ds={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function Cm(e){const t=i.ref(-1),n=i.ref(-1),r=i.ref(0),u=i.ref(0),o=i.ref(!1),a=i.ref(!1),s=i.computed(()=>({display:o.value?"block":"none",left:`${r.value}px`,cursor:"e-resize"})),l=i.computed(()=>({display:a.value?"block":"none",top:`${u.value}px`,cursor:"n-resize"})),d=i.computed(()=>{const v={display:a.value||o.value?"block":"none"};return u.value>0&&(v.cursor="n-resize"),v});function f(v,y,b,g){const w=e.value;if(w){const{left:A,right:N,width:F}=w.getBoundingClientRect();let _=v.clientX-A;g==="right"&&(_=N-v.clientX),_>y&&(_=y),_<b&&(_=b),g==="right"&&(_=F-_),r.value=_}}function c(v,y,b,g){const w=e.value;if(w){const{top:A,bottom:N,height:F}=w.getBoundingClientRect();let _=v.clientY-A;g==="bottom"&&(_=N-v.clientY),_>y&&(_=y),_<b&&(_=b),g==="bottom"&&(_=F-_),u.value=_}}function h(){const v=e.value;if(v){const{width:y,height:b}=v.getBoundingClientRect();return{width:y,height:b}}return null}function p(){const v=e.value;return v?Array.from(v.querySelectorAll("[data-position]")).reduce((y,b)=>{const g=b.getAttribute("data-position");return y=Object.assign(y,{[g]:b}),y},{}):null}function m(v,y){const b=h(),g=p();if(b&&g){const w=g==null?void 0:g.right,A=g==null?void 0:g.left;if(v==="left"&&A)return w?b.width-w.clientWidth-y:b.width-y;if(v==="right"&&w)return A?b.width-A.clientWidth-y:b.width-y}}function x(v,y){const b=h(),g=p();if(b&&g){const w=g==null?void 0:g.bottom,A=g==null?void 0:g.top;if(v==="top"&&A)return w?b.height-w.clientHeight-y:b.height-y;if(v==="bottom"&&w)return A?b.height-A.clientHeight-y:b.height-y}}return{horizontalResizeHandleStyle:s,verticalResizeHandleStyle:l,resizeOverlayStyle:d,showHorizontalResizeHandle:o,showVerticalResizeHandle:a,horizontalResizeBarPosition:t,verticalResizeBarPosition:n,verticalResizeHandleOffset:u,horizontalResizeHandleOffset:r,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:m,getPanelMaxHeight:x}}const Sn=i.defineComponent({name:"FXSplitter",props:Ds,emits:[],setup(e,t){const n=i.ref(),r=Cm(n),{horizontalResizeHandleStyle:u,verticalResizeHandleStyle:o,resizeOverlayStyle:a}=r;i.provide("splitter",{useResizeHandleComposition:r});const s=i.computed(()=>ke({"f-splitter":!0},e==null?void 0:e.customClass)),l=i.computed(()=>{const d={"flex-direction":e.direction==="row"?"row":"column"};return Ee(d,e==null?void 0:e.customStyle)});return()=>i.createVNode("div",{class:s.value,ref:n,style:l.value},[t.slots.default&&t.slots.default(),i.createVNode("div",{class:"f-splitter-resize-overlay",style:a.value},null),i.createVNode("div",{class:"f-splitter-horizontal-resize-proxy",style:u.value},null),i.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:o.value},null)])}}),_m={customClass:{type:String,defaut:""},customStyle:{type:String,default:""},width:{type:Number},height:{type:Number},position:{type:String,default:"left"},visible:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},resizeHandle:{type:String,default:""},collapsable:{type:Boolean,default:!1},minWidth:{type:Number,default:100},minHeight:{type:Number,default:100},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:0}};function Em(e,t){const n=i.ref(e.width),r=i.ref(e.height),{horizontalResizeBarPosition:u,horizontalResizeHandleOffset:o,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,verticalResizeBarPosition:l,verticalResizeHandleOffset:d,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:h,getPanelMaxHeight:p}=t;let m="",x,v,y;const b=()=>e.maxWidth?e.maxWidth:h(m,e.minWidth)||0,g=()=>e.maxHeight?e.maxHeight:p(m,e.minHeight)||0;function w(F){if((m==="left"||m==="right")&&v){const{left:_}=v.getBoundingClientRect(),{width:G}=x.getBoundingClientRect(),$=F.clientX-_;let M=m==="left"?(G||0)+($-u.value):(G||0)-($-u.value);M=e.minWidth>0?Math.max(e.minWidth,M):M;const H=b();H!=null&&H>0&&(M=H>M?M:H),n.value=M}if((m==="top"||m==="bottom")&&v){const{top:_}=v.getBoundingClientRect(),{height:G}=x.getBoundingClientRect(),$=F.clientY-_;let M=m==="top"?(G||0)+($-l.value):(G||0)-($-l.value);M=e.minHeight>0?Math.max(e.minHeight,M):M;const H=g();H!=null&&H>0&&(M=H>M?M:H),r.value=M}o.value=0,d.value=0,u.value=-1,l.value=-1,a.value=!1,s.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),document.body.style.userSelect="",m="",x=null,v=null}function A(F,_,G){if(m=_,x=G,a.value=!0,v=F.composedPath().find(M=>M.className.split(" ")[0]==="f-splitter"),v){const{left:M}=v.getBoundingClientRect();o.value=F.clientX-M,u.value=F.clientX-M;const H=b();y=I=>f(I,H,e.minWidth,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}function N(F,_,G){if(m=_,x=G,s.value=!0,v=F.composedPath().find(M=>M.className.split(" ")[0]==="f-splitter"),v){const{top:M}=v.getBoundingClientRect();d.value=F.clientY-M,l.value=F.clientY-M;const H=g();y=I=>c(I,H,e.minHeight,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}return{actualWidth:n,actualHeight:r,onClickSplitterHorizontalResizeBar:A,onClickSplitterVerticalResizeBar:N}}const fr=i.defineComponent({name:"FSplitterPane",props:_m,emits:[],setup(e,t){const n=i.ref(),r=i.inject("splitter"),{useResizeHandleComposition:u}=r,o=Em(e,u),{actualHeight:a,actualWidth:s,onClickSplitterHorizontalResizeBar:l,onClickSplitterVerticalResizeBar:d}=o,f=i.ref(e.position),c=i.computed(()=>{const g={"f-splitter-pane":!0,"f-splitter-pane-main":f.value==="center","has-resize-bar":e.resizable};return g["f-splitter-pane-"+f.value]=!0,ke(g,e==null?void 0:e.customClass)}),h=i.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(g=>["e","n","s","w"].find(w=>w===g)):[]),p=i.computed(()=>{const g={};return(s.value||s.value===0)&&(f.value==="left"||f.value==="right"||h.value.find(w=>w==="e")||h.value.find(w=>w==="w"))&&(g.width=`${s.value}px`),(a.value||a.value===0)&&(f.value==="bottom"||f.value==="top"||h.value.find(w=>w==="s")||h.value.find(w=>w==="n"))&&(g.height=`${a.value}px`),e.visible||(g.display="none"),Ee(g,e==null?void 0:e.customStyle)}),m=i.computed(()=>({"f-splitter-resize-bar":!0,"f-splitter-resize-bar-e":f.value==="left","f-splitter-resize-bar-n":f.value==="bottom","f-splitter-resize-bar-s":f.value==="top","f-splitter-resize-bar-w":f.value==="right"}));function x(g){return{e:"left",w:"right",s:"top",n:"bottom"}[g]||g}function v(g,w){w=x(w),["left","right"].find(A=>A===w)&&l(g,w,n.value),["top","bottom"].find(A=>A===w)&&d(g,w,n.value)}function y(){return h.value.length>0?h.value.map(g=>i.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+g,onMousedown:w=>v(w,g)},null)):i.createVNode("span",{class:m.value,onMousedown:g=>v(g,f.value)},null)}function b(){s.value=e.width,a.value=e.height,p.value}return t.expose({reset:b}),()=>i.createVNode("div",{ref:n,class:c.value,style:p.value,"data-position":f.value},[t.slots.default&&t.slots.default(),e.resizable&&y()])}});Sn.install=e=>{e.component(Sn.name,Sn),e.component(fr.name,fr)};const Is={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},Os={content:{type:String,default:null}},Sm=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},Nm=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},hr=(e,t=new WeakMap)=>{if(e===null||Sm(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return Nm(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof Function)return e;if(e instanceof Map){const r=new Map;return t.set(e,r),e.forEach((u,o)=>{r.set(o,hr(u,t))}),r}if(e instanceof Set){const r=new Set;t.set(e,r);for(const u of e)r.add(hr(u,t));return r}if(Array.isArray(e)){const r=[];return t.set(e,r),e.forEach(u=>{r.push(hr(u,t))}),r}const n={};t.set(e,n);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=hr(e[r],t));return n},Fm=(e,t=200)=>{let n=0;return(...r)=>new Promise(u=>{n&&(clearTimeout(n),u("cancel")),n=window.setTimeout(()=>{e.apply(void 0,r),n=0,u("done")},t)})},Hu=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,wo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Tm=new Set(["__proto__","constructor","prototype"]),Dm=e=>!Tm.has(e),$u=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return Uu(e,t,n);const{excludeKeys:r}=n,u=e,o=t;for(const a of Object.keys(o)){if(!Dm(a))continue;const s=o[a],l=u[a];r&&r(a)?u[a]=s:Array.isArray(s)&&Array.isArray(l)?u[a]=Uu(l,s,n):wo(s)&&wo(l)?u[a]=$u(l,s,n):u[a]=s}return e},Uu=(e,t,n)=>{const r=e.slice();return t.forEach((u,o)=>{const a=r[o];Array.isArray(u)&&Array.isArray(a)?r[o]=Uu(a,u,n):wo(u)&&wo(a)?r[o]=$u(a,u,n):r[o]=u}),r},K="md-editor",pe="https://unpkg.com",Im=`${pe}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Ls={main:`${pe}/prettier@3.8.1/standalone.js`,markdown:`${pe}/prettier@3.8.1/plugins/markdown.js`},Om={css:`${pe}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${pe}/cropperjs@1.6.2/dist/cropper.min.js`},Lm=`${pe}/screenfull@5.2.0/dist/screenfull.js`,Vm=`${pe}/mermaid@11.12.3/dist/mermaid.min.js`,Pm={js:`${pe}/katex@0.16.33/dist/katex.min.js`,css:`${pe}/katex@0.16.33/dist/katex.min.css`},Wu={a11y:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},Rm=`${pe}/echarts@6.0.0/dist/echarts.min.js`,Vs={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",previewOnly:"仅预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",previewOnly:"preview only",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Image Link",upload:"Upload Images",clip2upload:"Crop And Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Character Count",scrollAuto:"Scroll Auto"}}},ht={editorExtensions:{highlight:{js:Im,css:Wu},prettier:{standaloneJs:Ls.main,parserMarkdownJs:Ls.markdown},cropper:{...Om},screenfull:{js:Lm},mermaid:{js:Vm,enableZoom:!0},katex:{...Pm},echarts:{js:Rm}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},Mm=({instance:e,ctx:t,props:n={}},r="default")=>{const u=(e==null?void 0:e.$slots[r])||(t==null?void 0:t.slots[r]);return(u?u(e):"")||n[r]},Bm="buildFinished",Xu="errorCatcher",Gu="catalogChanged",zm="pushCatalog",Ps="rerender",jm="taskStateChanged";class Hm{constructor(){ge(this,"pools",{})}remove(t,n,r){const u=this.pools[t]&&this.pools[t][n];u&&(this.pools[t][n]=u.filter(o=>o!==r))}clear(t){this.pools[t]={}}on(t,n){return this.pools[t]||(this.pools[t]={}),this.pools[t][n.name]||(this.pools[t][n.name]=[]),this.pools[t][n.name].push(n.callback),this.pools[t][n.name].includes(n.callback)}emit(t,n,...r){this.pools[t]||(this.pools[t]={});const u=this.pools[t][n];u&&u.forEach(o=>{try{o(...r)}catch(a){console.error(`${n} monitor event exception!`,a)}})}}const at=new Hm,$m=(e,t)=>{if(!e)return e;const n=t.split(`
|
|
35
|
-
`),r=['<span rn-wrapper aria-hidden="true">'];return n.forEach(()=>{r.push("<span></span>")}),r.push("</span>"),`<span class="${K}-code-block">${e}</span>${r.join("")}`};async function Rs(e){if(typeof e=="string"){if(window.isSecureContext&&navigator.clipboard)return await navigator.clipboard.writeText(e);{const t=document.createElement("textarea");let n=!1;if(t.value=e,t.style.position="fixed",t.style.opacity=0,t.style.zIndex="-10000",t.style.top="-10000",document.body.appendChild(t),t.select(),n=document.execCommand("copy"),document.body.removeChild(t),n)return;throw new Error('Failed to copy content via "execCommand"!')}}}const Um={copy:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy ${K}-icon"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,"collapse-tips":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-chevron-left ${K}-icon"><circle cx="12" cy="12" r="10"/><path d="m14 16-4-4 4-4"/></svg>`,pin:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin ${K}-icon"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>`,"pin-off":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin-off ${K}-icon"><path d="M12 17v5"/><path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"/><path d="m2 2 20 20"/><path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check ${K}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},Dt=(e,t)=>typeof t[e]=="string"?t[e]:Um[e],Xt=(e,t,n="")=>{var u;const r=document.getElementById(t.id);if(r)n!==""&&(Reflect.get(window,n)?(u=t.onload)==null||u.call(r,new Event("load")):t.onload&&r.addEventListener("load",t.onload));else{const o={...t};o.onload=null;const a=Xm(e,o);t.onload&&a.addEventListener("load",t.onload),document.head.appendChild(a)}},Wm=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),Xt(e,t)},Xm=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n},Gm=(e,t)=>{const n=new Map;return e==null||e.forEach(r=>{let u=r.querySelector(`.${K}-mermaid-action`);u?u.querySelector(`.${K}-mermaid-copy`)||u.insertAdjacentHTML("beforeend",`<span class="${K}-mermaid-copy">${Dt("copy",t.customIcon)}</span>`):(r.insertAdjacentHTML("beforeend",`<div class="${K}-mermaid-action"><span class="${K}-mermaid-copy">${Dt("copy",t.customIcon)}</span></div>`),u=r.querySelector(`.${K}-mermaid-action`));const o=u.querySelector(`.${K}-mermaid-copy`);let a=-1;const s=()=>{clearTimeout(a),Rs(r.dataset.content||"").then(()=>{o.innerHTML=Dt("check",t.customIcon)}).catch(()=>{o.innerHTML=Dt("copy",t.customIcon)}).finally(()=>{a=window.setTimeout(()=>{o.innerHTML=Dt("copy",t.customIcon)},1500)})};o.addEventListener("click",s),n.set(r,{removeClick:()=>{o.removeEventListener("click",s)}})}),()=>{n.forEach(({removeClick:r})=>{r==null||r()}),n.clear()}},qm=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let r=1,u=0,o=0,a=!1,s,l,d,f=1;const c=()=>{n.style.transform=`translate(${u}px, ${o}px) scale(${r})`},h=w=>{w.touches.length===1?(a=!0,s=w.touches[0].clientX-u,l=w.touches[0].clientY-o):w.touches.length===2&&(d=Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY),f=r)},p=w=>{if(w.preventDefault(),a&&w.touches.length===1)u=w.touches[0].clientX-s,o=w.touches[0].clientY-l,c();else if(w.touches.length===2){const A=Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY)/d,N=r;r=f*(1+(A-1));const F=(w.touches[0].clientX+w.touches[1].clientX)/2,_=(w.touches[0].clientY+w.touches[1].clientY)/2,G=n.getBoundingClientRect(),$=(F-G.left)/N,M=(_-G.top)/N;u-=$*(r-N),o-=M*(r-N),c()}},m=()=>{a=!1},x=w=>{w.preventDefault();const A=.02,N=r;w.deltaY<0?r+=A:r=Math.max(.1,r-A);const F=n.getBoundingClientRect(),_=w.clientX-F.left,G=w.clientY-F.top;u-=_/N*(r-N),o-=G/N*(r-N),c()},v=w=>{a=!0,s=w.clientX-u,l=w.clientY-o},y=w=>{a&&(u=w.clientX-s,o=w.clientY-l,c())},b=()=>{a=!1},g=()=>{a=!1};return t.addEventListener("touchstart",h,{passive:!1}),t.addEventListener("touchmove",p,{passive:!1}),t.addEventListener("touchend",m),t.addEventListener("wheel",x,{passive:!1}),t.addEventListener("mousedown",v),t.addEventListener("mousemove",y),t.addEventListener("mouseup",b),t.addEventListener("mouseleave",g),()=>{t.removeEventListener("touchstart",h),t.removeEventListener("touchmove",p),t.removeEventListener("touchend",m),t.removeEventListener("wheel",x),t.removeEventListener("mousedown",v),t.removeEventListener("mousemove",y),t.removeEventListener("mouseup",b),t.removeEventListener("mouseleave",g)}};return(t,n)=>{const r=new Map;return t==null||t.forEach(u=>{let o=u.querySelector(`.${K}-mermaid-action`);o?o.querySelector(`.${K}-mermaid-zoom`)||o.insertAdjacentHTML("beforeend",`<span class="${K}-mermaid-zoom">${Dt("pin-off",n.customIcon)}</span>`):(u.insertAdjacentHTML("beforeend",`<div class="${K}-mermaid-action"><span class="${K}-mermaid-zoom">${Dt("pin-off",n.customIcon)}</span></div>`),o=u.querySelector(`.${K}-mermaid-action`));const a=o.querySelector(`.${K}-mermaid-zoom`),s=()=>{const l=r.get(u);if(l!=null&&l.removeEvent)l.removeEvent(),u.removeAttribute("data-grab"),r.set(u,{removeClick:l.removeClick}),a.innerHTML=Dt("pin-off",n.customIcon);else{const d=e(u);u.setAttribute("data-grab",""),r.set(u,{removeEvent:d,removeClick:l==null?void 0:l.removeClick}),a.innerHTML=Dt("pin",n.customIcon)}};a.addEventListener("click",s),r.set(u,{removeClick:()=>a.removeEventListener("click",s)})}),()=>{r.forEach(({removeEvent:u,removeClick:o})=>{u==null||u(),o==null||o()}),r.clear()}}})(),Ms=new Set([!0,!1,"alt","title"]);function Bs(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function zs(e,t){e&&e.attrs&&(e.attrs=Bs(e.attrs,t))}function Zm(e,t){if(!Ms.has(e))throw new TypeError(`figcaption must be one of: ${[...Ms]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(zs(t,"title"),n[1]):void 0}function Ym(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let r=1;for(let u=1,o=n.tokens.length;u<o-1;++u){const a=n.tokens[u];if(a.type!=="inline"||!a.children||a.children.length!==1&&a.children.length!==3||a.children.length===1&&a.children[0].type!=="image")continue;if(a.children.length===3){const[d,f,c]=a.children;if(d.type!=="link_open"||f.type!=="image"||c.type!=="link_close")continue}if(u!==0&&n.tokens[u-1].type!=="paragraph_open"||u!==o-1&&n.tokens[u+1].type!=="paragraph_close")continue;const s=n.tokens[u-1];let l;if(s.type="figure_open",s.tag="figure",n.tokens[u+1].type="figure_close",n.tokens[u+1].tag="figure",t.dataType&&n.tokens[u-1].attrPush(["data-type","image"]),t.link&&a.children.length===1){[l]=a.children;const d=new n.Token("link_open","a",1);d.attrPush(["href",l.attrGet("src")]),a.children.unshift(d),a.children.push(new n.Token("link_close","a",-1))}if(l=a.children.length===1?a.children[0]:a.children[1],t.figcaption){const d=Zm(t.figcaption,l);if(d){const[f]=e.parseInline(d,n.env);a.children.push(new n.Token("figcaption_open","figcaption",1)),a.children.push(...f.children),a.children.push(new n.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=Bs(l.attrs,"title"))}}if(t.copyAttrs&&l.attrs){const d=t.copyAttrs===!0?"":t.copyAttrs;s.attrs=l.attrs.filter(([f])=>f.match(d)).map(f=>Array.from(f))}if(t.tabindex&&(n.tokens[u-1].attrPush(["tabindex",r]),r++),t.lazy&&(l.attrs.some(([d])=>d==="loading")||l.attrs.push(["loading","lazy"])),t.async&&(l.attrs.some(([d])=>d==="decoding")||l.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let d=!1;for(let f=0,c=l.attrs.length;f<c&&!d;f++){const h=l.attrs[f];h[0]==="class"&&(h[1]=`${h[1]} ${t.classes}`,d=!0)}d||l.attrs.push(["class",t.classes])}if(t.removeSrc){const d=l.attrs.find(([f])=>f==="src");l.attrs.push(["data-src",d[1]]),zs(l,"src")}}})}const Km=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Qm(e,t){const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==126||t||r+2>=n)return!1;e.pos=r+1;let u=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){u=!0;break}e.md.inline.skipToken(e)}if(!u||r+1===e.pos)return e.pos=r,!1;const o=e.src.slice(r+1,e.pos);if(o.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const a=e.push("sub_open","sub",1);a.markup="~";const s=e.push("text","",0);s.content=o.replace(Km,"$1");const l=e.push("sub_close","sub",-1);return l.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function Jm(e){e.inline.ruler.after("emphasis","sub",Qm)}const ep=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function tp(e,t){const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==94||t||r+2>=n)return!1;e.pos=r+1;let u=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){u=!0;break}e.md.inline.skipToken(e)}if(!u||r+1===e.pos)return e.pos=r,!1;const o=e.src.slice(r+1,e.pos);if(o.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const a=e.push("sup_open","sup",1);a.markup="^";const s=e.push("text","",0);s.content=o.replace(ep,"$1");const l=e.push("sup_close","sup",-1);return l.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function np(e){e.inline.ruler.after("emphasis","sup",tp)}var rp=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,js=new Set,qu=typeof process=="object"&&process?process:{},Hs=(e,t,n,r)=>{typeof qu.emitWarning=="function"?qu.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},xo=globalThis.AbortController,$s=globalThis.AbortSignal;if(typeof xo>"u"){$s=class{constructor(){ge(this,"onabort");ge(this,"_onabort",[]);ge(this,"reason");ge(this,"aborted",!1)}addEventListener(n,r){this._onabort.push(r)}},xo=class{constructor(){ge(this,"signal",new $s);t()}abort(n){var r,u;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let o of this.signal._onabort)o(n);(u=(r=this.signal).onabort)==null||u.call(r,n)}}};let e=((Jl=qu.env)==null?void 0:Jl.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,Hs("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var op=e=>!js.has(e),Gt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Us=e=>Gt(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?vo:null:null,vo=class extends Array{constructor(t){super(t),this.fill(0)}},up=(It=class{constructor(t,n){ge(this,"heap");ge(this,"length");if(!k(It,On))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=Us(t);if(!n)return[];ne(It,On,!0);let r=new It(t,n);return ne(It,On,!1),r}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},On=new WeakMap,se(It,On,!1),It),ip=(Mn=class{constructor(t){se(this,Y);se(this,st);se(this,tt);se(this,mt);se(this,ln);se(this,pt);se(this,Ln);se(this,Vn);se(this,gt);ge(this,"ttl");ge(this,"ttlResolution");ge(this,"ttlAutopurge");ge(this,"updateAgeOnGet");ge(this,"updateAgeOnHas");ge(this,"allowStale");ge(this,"noDisposeOnSet");ge(this,"noUpdateTTL");ge(this,"maxEntrySize");ge(this,"sizeCalculation");ge(this,"noDeleteOnFetchRejection");ge(this,"noDeleteOnStaleGet");ge(this,"allowStaleOnFetchAbort");ge(this,"allowStaleOnFetchRejection");ge(this,"ignoreFetchAbort");se(this,Se);se(this,bt);se(this,Ce);se(this,be);se(this,ie);se(this,We);se(this,nt);se(this,Me);se(this,Ie);se(this,yt);se(this,Oe);se(this,wt);se(this,xt);se(this,rt);se(this,ot);se(this,vt);se(this,Kt);se(this,Xe);se(this,Pn);se(this,cn,()=>{});se(this,Pt,()=>{});se(this,Or,()=>{});se(this,ut,()=>!1);se(this,dn,t=>{});se(this,Rn,(t,n,r)=>{});se(this,Lr,(t,n,r,u)=>{if(r||u)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});ge(this,ec,"LRUCache");let{max:n=0,ttl:r,ttlResolution:u=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:d,onInsert:f,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:p,maxSize:m=0,maxEntrySize:x=0,sizeCalculation:v,fetchMethod:y,memoMethod:b,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:N,ignoreFetchAbort:F,perf:_}=t;if(_!==void 0&&typeof(_==null?void 0:_.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(ne(this,gt,_??rp),n!==0&&!Gt(n))throw new TypeError("max option must be a nonnegative integer");let G=n?Us(n):Array;if(!G)throw new Error("invalid max value: "+n);if(ne(this,st,n),ne(this,tt,m),this.maxEntrySize=x||k(this,tt),this.sizeCalculation=v,this.sizeCalculation){if(!k(this,tt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(ne(this,Vn,b),y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(ne(this,Ln,y),ne(this,Kt,!!y),ne(this,Ce,new Map),ne(this,be,new Array(n).fill(void 0)),ne(this,ie,new Array(n).fill(void 0)),ne(this,We,new G(n)),ne(this,nt,new G(n)),ne(this,Me,0),ne(this,Ie,0),ne(this,yt,up.create(n)),ne(this,Se,0),ne(this,bt,0),typeof d=="function"&&ne(this,mt,d),typeof f=="function"&&ne(this,ln,f),typeof c=="function"?(ne(this,pt,c),ne(this,Oe,[])):(ne(this,pt,void 0),ne(this,Oe,void 0)),ne(this,vt,!!k(this,mt)),ne(this,Pn,!!k(this,ln)),ne(this,Xe,!!k(this,pt)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!A,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!F,this.maxEntrySize!==0){if(k(this,tt)!==0&&!Gt(k(this,tt)))throw new TypeError("maxSize must be a positive integer if specified");if(!Gt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");J(this,Y,xc).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Gt(u)||u===0?u:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!Gt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");J(this,Y,ki).call(this)}if(k(this,st)===0&&this.ttl===0&&k(this,tt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!k(this,st)&&!k(this,tt)){let $="LRU_CACHE_UNBOUNDED";op($)&&(js.add($),Hs("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",$,Mn))}}get perf(){return k(this,gt)}static unsafeExposeInternals(t){return{starts:k(t,xt),ttls:k(t,rt),autopurgeTimers:k(t,ot),sizes:k(t,wt),keyMap:k(t,Ce),keyList:k(t,be),valList:k(t,ie),next:k(t,We),prev:k(t,nt),get head(){return k(t,Me)},get tail(){return k(t,Ie)},free:k(t,yt),isBackgroundFetch:n=>{var r;return J(r=t,Y,ye).call(r,n)},backgroundFetch:(n,r,u,o)=>{var a;return J(a=t,Y,qo).call(a,n,r,u,o)},moveToTail:n=>{var r;return J(r=t,Y,Rr).call(r,n)},indexes:n=>{var r;return J(r=t,Y,Qt).call(r,n)},rindexes:n=>{var r;return J(r=t,Y,Jt).call(r,n)},isStale:n=>{var r;return k(r=t,ut).call(r,n)}}}get max(){return k(this,st)}get maxSize(){return k(this,tt)}get calculatedSize(){return k(this,bt)}get size(){return k(this,Se)}get fetchMethod(){return k(this,Ln)}get memoMethod(){return k(this,Vn)}get dispose(){return k(this,mt)}get onInsert(){return k(this,ln)}get disposeAfter(){return k(this,pt)}getRemainingTTL(t){return k(this,Ce).has(t)?1/0:0}*entries(){for(let t of J(this,Y,Qt).call(this))k(this,ie)[t]!==void 0&&k(this,be)[t]!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield[k(this,be)[t],k(this,ie)[t]])}*rentries(){for(let t of J(this,Y,Jt).call(this))k(this,ie)[t]!==void 0&&k(this,be)[t]!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield[k(this,be)[t],k(this,ie)[t]])}*keys(){for(let t of J(this,Y,Qt).call(this)){let n=k(this,be)[t];n!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield n)}}*rkeys(){for(let t of J(this,Y,Jt).call(this)){let n=k(this,be)[t];n!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield n)}}*values(){for(let t of J(this,Y,Qt).call(this))k(this,ie)[t]!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield k(this,ie)[t])}*rvalues(){for(let t of J(this,Y,Jt).call(this))k(this,ie)[t]!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield k(this,ie)[t])}[(tc=Symbol.iterator,ec=Symbol.toStringTag,tc)](){return this.entries()}find(t,n={}){for(let r of J(this,Y,Qt).call(this)){let u=k(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;if(o!==void 0&&t(o,k(this,be)[r],this))return this.get(k(this,be)[r],n)}}forEach(t,n=this){for(let r of J(this,Y,Qt).call(this)){let u=k(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;o!==void 0&&t.call(n,o,k(this,be)[r],this)}}rforEach(t,n=this){for(let r of J(this,Y,Jt).call(this)){let u=k(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;o!==void 0&&t.call(n,o,k(this,be)[r],this)}}purgeStale(){let t=!1;for(let n of J(this,Y,Jt).call(this,{allowStale:!0}))k(this,ut).call(this,n)&&(J(this,Y,en).call(this,k(this,be)[n],"expire"),t=!0);return t}info(t){let n=k(this,Ce).get(t);if(n===void 0)return;let r=k(this,ie)[n],u=J(this,Y,ye).call(this,r)?r.__staleWhileFetching:r;if(u===void 0)return;let o={value:u};if(k(this,rt)&&k(this,xt)){let a=k(this,rt)[n],s=k(this,xt)[n];if(a&&s){let l=a-(k(this,gt).now()-s);o.ttl=l,o.start=Date.now()}}return k(this,wt)&&(o.size=k(this,wt)[n]),o}dump(){let t=[];for(let n of J(this,Y,Qt).call(this,{allowStale:!0})){let r=k(this,be)[n],u=k(this,ie)[n],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;if(o===void 0||r===void 0)continue;let a={value:o};if(k(this,rt)&&k(this,xt)){a.ttl=k(this,rt)[n];let s=k(this,gt).now()-k(this,xt)[n];a.start=Math.floor(Date.now()-s)}k(this,wt)&&(a.size=k(this,wt)[n]),t.unshift([r,a])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let u=Date.now()-r.start;r.start=k(this,gt).now()-u}this.set(n,r.value,r)}}set(t,n,r={}){var h,p,m,x,v,y,b;if(n===void 0)return this.delete(t),this;let{ttl:u=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=r,{noUpdateTTL:d=this.noUpdateTTL}=r,f=k(this,Lr).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),J(this,Y,en).call(this,t,"set"),this;let c=k(this,Se)===0?void 0:k(this,Ce).get(t);if(c===void 0)c=k(this,Se)===0?k(this,Ie):k(this,yt).length!==0?k(this,yt).pop():k(this,Se)===k(this,st)?J(this,Y,Go).call(this,!1):k(this,Se),k(this,be)[c]=t,k(this,ie)[c]=n,k(this,Ce).set(t,c),k(this,We)[k(this,Ie)]=c,k(this,nt)[c]=k(this,Ie),ne(this,Ie,c),Xo(this,Se)._++,k(this,Rn).call(this,c,f,l),l&&(l.set="add"),d=!1,k(this,Pn)&&((h=k(this,ln))==null||h.call(this,n,t,"add"));else{J(this,Y,Rr).call(this,c);let g=k(this,ie)[c];if(n!==g){if(k(this,Kt)&&J(this,Y,ye).call(this,g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=g;w!==void 0&&!a&&(k(this,vt)&&((p=k(this,mt))==null||p.call(this,w,t,"set")),k(this,Xe)&&((m=k(this,Oe))==null||m.push([w,t,"set"])))}else a||(k(this,vt)&&((x=k(this,mt))==null||x.call(this,g,t,"set")),k(this,Xe)&&((v=k(this,Oe))==null||v.push([g,t,"set"])));if(k(this,dn).call(this,c),k(this,Rn).call(this,c,f,l),k(this,ie)[c]=n,l){l.set="replace";let w=g&&J(this,Y,ye).call(this,g)?g.__staleWhileFetching:g;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update");k(this,Pn)&&((y=this.onInsert)==null||y.call(this,n,t,n===g?"update":"replace"))}if(u!==0&&!k(this,rt)&&J(this,Y,ki).call(this),k(this,rt)&&(d||k(this,Or).call(this,c,u,o),l&&k(this,Pt).call(this,l,c)),!a&&k(this,Xe)&&k(this,Oe)){let g=k(this,Oe),w;for(;w=g==null?void 0:g.shift();)(b=k(this,pt))==null||b.call(this,...w)}return this}pop(){var t;try{for(;k(this,Se);){let n=k(this,ie)[k(this,Me)];if(J(this,Y,Go).call(this,!0),J(this,Y,ye).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(k(this,Xe)&&k(this,Oe)){let n=k(this,Oe),r;for(;r=n==null?void 0:n.shift();)(t=k(this,pt))==null||t.call(this,...r)}}}has(t,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:u}=n,o=k(this,Ce).get(t);if(o!==void 0){let a=k(this,ie)[o];if(J(this,Y,ye).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(k(this,ut).call(this,o))u&&(u.has="stale",k(this,Pt).call(this,u,o));else return r&&k(this,cn).call(this,o),u&&(u.has="hit",k(this,Pt).call(this,u,o)),!0}else u&&(u.has="miss");return!1}peek(t,n={}){let{allowStale:r=this.allowStale}=n,u=k(this,Ce).get(t);if(u===void 0||!r&&k(this,ut).call(this,u))return;let o=k(this,ie)[u];return J(this,Y,ye).call(this,o)?o.__staleWhileFetching:o}async fetch(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:x,forceRefresh:v=!1,status:y,signal:b}=n;if(!k(this,Kt))return y&&(y.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:u,noDeleteOnStaleGet:o,status:y});let g={allowStale:r,updateAgeOnGet:u,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:p,status:y,signal:b},w=k(this,Ce).get(t);if(w===void 0){y&&(y.fetch="miss");let A=J(this,Y,qo).call(this,t,w,g,x);return A.__returned=A}else{let A=k(this,ie)[w];if(J(this,Y,ye).call(this,A)){let G=r&&A.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",G&&(y.returnedStale=!0)),G?A.__staleWhileFetching:A.__returned=A}let N=k(this,ut).call(this,w);if(!v&&!N)return y&&(y.fetch="hit"),J(this,Y,Rr).call(this,w),u&&k(this,cn).call(this,w),y&&k(this,Pt).call(this,y,w),A;let F=J(this,Y,qo).call(this,t,w,g,x),_=F.__staleWhileFetching!==void 0&&r;return y&&(y.fetch=N?"stale":"refresh",_&&N&&(y.returnedStale=!0)),_?F.__staleWhileFetching:F.__returned=F}}async forceFetch(t,n={}){let r=await this.fetch(t,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(t,n={}){let r=k(this,Vn);if(!r)throw new Error("no memoMethod provided to constructor");let{context:u,forceRefresh:o,...a}=n,s=this.get(t,a);if(!o&&s!==void 0)return s;let l=r(t,s,{options:a,context:u});return this.set(t,l,a),l}get(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=n,s=k(this,Ce).get(t);if(s!==void 0){let l=k(this,ie)[s],d=J(this,Y,ye).call(this,l);return a&&k(this,Pt).call(this,a,s),k(this,ut).call(this,s)?(a&&(a.get="stale"),d?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(o||J(this,Y,en).call(this,t,"expire"),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),d?l.__staleWhileFetching:(J(this,Y,Rr).call(this,s),u&&k(this,cn).call(this,s),l))}else a&&(a.get="miss")}delete(t){return J(this,Y,en).call(this,t,"delete")}clear(){return J(this,Y,_i).call(this,"delete")}},st=new WeakMap,tt=new WeakMap,mt=new WeakMap,ln=new WeakMap,pt=new WeakMap,Ln=new WeakMap,Vn=new WeakMap,gt=new WeakMap,Se=new WeakMap,bt=new WeakMap,Ce=new WeakMap,be=new WeakMap,ie=new WeakMap,We=new WeakMap,nt=new WeakMap,Me=new WeakMap,Ie=new WeakMap,yt=new WeakMap,Oe=new WeakMap,wt=new WeakMap,xt=new WeakMap,rt=new WeakMap,ot=new WeakMap,vt=new WeakMap,Kt=new WeakMap,Xe=new WeakMap,Pn=new WeakMap,Y=new WeakSet,ki=function(){let t=new vo(k(this,st)),n=new vo(k(this,st));ne(this,rt,t),ne(this,xt,n);let r=this.ttlAutopurge?new Array(k(this,st)):void 0;ne(this,ot,r),ne(this,Or,(s,l,d=k(this,gt).now())=>{n[s]=l!==0?d:0,t[s]=l,u(s,l)}),ne(this,cn,s=>{n[s]=t[s]!==0?k(this,gt).now():0,u(s,t[s])});let u=this.ttlAutopurge?(s,l)=>{if(r!=null&&r[s]&&(clearTimeout(r[s]),r[s]=void 0),l&&l!==0&&r){let d=setTimeout(()=>{k(this,ut).call(this,s)&&J(this,Y,en).call(this,k(this,be)[s],"expire")},l+1);d.unref&&d.unref(),r[s]=d}}:()=>{};ne(this,Pt,(s,l)=>{if(t[l]){let d=t[l],f=n[l];if(!d||!f)return;s.ttl=d,s.start=f,s.now=o||a();let c=s.now-f;s.remainingTTL=d-c}});let o=0,a=()=>{let s=k(this,gt).now();if(this.ttlResolution>0){o=s;let l=setTimeout(()=>o=0,this.ttlResolution);l.unref&&l.unref()}return s};this.getRemainingTTL=s=>{let l=k(this,Ce).get(s);if(l===void 0)return 0;let d=t[l],f=n[l];if(!d||!f)return 1/0;let c=(o||a())-f;return d-c},ne(this,ut,s=>{let l=n[s],d=t[s];return!!d&&!!l&&(o||a())-l>d})},cn=new WeakMap,Pt=new WeakMap,Or=new WeakMap,ut=new WeakMap,xc=function(){let t=new vo(k(this,st));ne(this,bt,0),ne(this,wt,t),ne(this,dn,n=>{ne(this,bt,k(this,bt)-t[n]),t[n]=0}),ne(this,Lr,(n,r,u,o)=>{if(J(this,Y,ye).call(this,r))return 0;if(!Gt(u))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(u=o(r,n),!Gt(u))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return u}),ne(this,Rn,(n,r,u)=>{if(t[n]=r,k(this,tt)){let o=k(this,tt)-t[n];for(;k(this,bt)>o;)J(this,Y,Go).call(this,!0)}ne(this,bt,k(this,bt)+t[n]),u&&(u.entrySize=r,u.totalCalculatedSize=k(this,bt))})},dn=new WeakMap,Rn=new WeakMap,Lr=new WeakMap,Qt=function*({allowStale:t=this.allowStale}={}){if(k(this,Se))for(let n=k(this,Ie);!(!J(this,Y,Ai).call(this,n)||((t||!k(this,ut).call(this,n))&&(yield n),n===k(this,Me)));)n=k(this,nt)[n]},Jt=function*({allowStale:t=this.allowStale}={}){if(k(this,Se))for(let n=k(this,Me);!(!J(this,Y,Ai).call(this,n)||((t||!k(this,ut).call(this,n))&&(yield n),n===k(this,Ie)));)n=k(this,We)[n]},Ai=function(t){return t!==void 0&&k(this,Ce).get(k(this,be)[t])===t},Go=function(t){var o,a,s;let n=k(this,Me),r=k(this,be)[n],u=k(this,ie)[n];return k(this,Kt)&&J(this,Y,ye).call(this,u)?u.__abortController.abort(new Error("evicted")):(k(this,vt)||k(this,Xe))&&(k(this,vt)&&((o=k(this,mt))==null||o.call(this,u,r,"evict")),k(this,Xe)&&((a=k(this,Oe))==null||a.push([u,r,"evict"]))),k(this,dn).call(this,n),(s=k(this,ot))!=null&&s[n]&&(clearTimeout(k(this,ot)[n]),k(this,ot)[n]=void 0),t&&(k(this,be)[n]=void 0,k(this,ie)[n]=void 0,k(this,yt).push(n)),k(this,Se)===1?(ne(this,Me,ne(this,Ie,0)),k(this,yt).length=0):ne(this,Me,k(this,We)[n]),k(this,Ce).delete(r),Xo(this,Se)._--,n},qo=function(t,n,r,u){let o=n===void 0?void 0:k(this,ie)[n];if(J(this,Y,ye).call(this,o))return o;let a=new xo,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let l={signal:a.signal,options:r,context:u},d=(x,v=!1)=>{let{aborted:y}=a.signal,b=r.ignoreFetchAbort&&x!==void 0,g=r.ignoreFetchAbort||!!(r.allowStaleOnFetchAbort&&x!==void 0);if(r.status&&(y&&!v?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,b&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),y&&!b&&!v)return c(a.signal.reason,g);let w=p,A=k(this,ie)[n];return(A===p||b&&v&&A===void 0)&&(x===void 0?w.__staleWhileFetching!==void 0?k(this,ie)[n]=w.__staleWhileFetching:J(this,Y,en).call(this,t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,x,l.options))),x},f=x=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=x),c(x,!1)),c=(x,v)=>{let{aborted:y}=a.signal,b=y&&r.allowStaleOnFetchAbort,g=b||r.allowStaleOnFetchRejection,w=g||r.noDeleteOnFetchRejection,A=p;if(k(this,ie)[n]===p&&(!w||!v&&A.__staleWhileFetching===void 0?J(this,Y,en).call(this,t,"fetch"):b||(k(this,ie)[n]=A.__staleWhileFetching)),g)return r.status&&A.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),A.__staleWhileFetching;if(A.__returned===A)throw x},h=(x,v)=>{var b;let y=(b=k(this,Ln))==null?void 0:b.call(this,t,o,l);y&&y instanceof Promise&&y.then(g=>x(g===void 0?void 0:g),v),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(x(void 0),r.allowStaleOnFetchAbort&&(x=g=>d(g,!0)))})};r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(d,f),m=Object.assign(p,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return n===void 0?(this.set(t,m,{...l.options,status:void 0}),n=k(this,Ce).get(t)):k(this,ie)[n]=m,m},ye=function(t){if(!k(this,Kt))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof xo},Ci=function(t,n){k(this,nt)[n]=t,k(this,We)[t]=n},Rr=function(t){t!==k(this,Ie)&&(t===k(this,Me)?ne(this,Me,k(this,We)[t]):J(this,Y,Ci).call(this,k(this,nt)[t],k(this,We)[t]),J(this,Y,Ci).call(this,k(this,Ie),t),ne(this,Ie,t))},en=function(t,n){var u,o,a,s,l,d;let r=!1;if(k(this,Se)!==0){let f=k(this,Ce).get(t);if(f!==void 0)if((u=k(this,ot))!=null&&u[f]&&(clearTimeout((o=k(this,ot))==null?void 0:o[f]),k(this,ot)[f]=void 0),r=!0,k(this,Se)===1)J(this,Y,_i).call(this,n);else{k(this,dn).call(this,f);let c=k(this,ie)[f];if(J(this,Y,ye).call(this,c)?c.__abortController.abort(new Error("deleted")):(k(this,vt)||k(this,Xe))&&(k(this,vt)&&((a=k(this,mt))==null||a.call(this,c,t,n)),k(this,Xe)&&((s=k(this,Oe))==null||s.push([c,t,n]))),k(this,Ce).delete(t),k(this,be)[f]=void 0,k(this,ie)[f]=void 0,f===k(this,Ie))ne(this,Ie,k(this,nt)[f]);else if(f===k(this,Me))ne(this,Me,k(this,We)[f]);else{let h=k(this,nt)[f];k(this,We)[h]=k(this,We)[f];let p=k(this,We)[f];k(this,nt)[p]=k(this,nt)[f]}Xo(this,Se)._--,k(this,yt).push(f)}}if(k(this,Xe)&&((l=k(this,Oe))!=null&&l.length)){let f=k(this,Oe),c;for(;c=f==null?void 0:f.shift();)(d=k(this,pt))==null||d.call(this,...c)}return r},_i=function(t){var n,r,u,o;for(let a of J(this,Y,Jt).call(this,{allowStale:!0})){let s=k(this,ie)[a];if(J(this,Y,ye).call(this,s))s.__abortController.abort(new Error("deleted"));else{let l=k(this,be)[a];k(this,vt)&&((n=k(this,mt))==null||n.call(this,s,l,t)),k(this,Xe)&&((r=k(this,Oe))==null||r.push([s,l,t]))}}if(k(this,Ce).clear(),k(this,ie).fill(void 0),k(this,be).fill(void 0),k(this,rt)&&k(this,xt)){k(this,rt).fill(0),k(this,xt).fill(0);for(let a of k(this,ot)??[])a!==void 0&&clearTimeout(a);(u=k(this,ot))==null||u.fill(void 0)}if(k(this,wt)&&k(this,wt).fill(0),ne(this,Me,0),ne(this,Ie,0),k(this,yt).length=0,ne(this,bt,0),ne(this,Se,0),k(this,Xe)&&k(this,Oe)){let a=k(this,Oe),s;for(;s=a==null?void 0:a.shift();)(o=k(this,pt))==null||o.call(this,...s)}},Mn);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko=function(t){return t.tagName==="IMG"},ap=function(t){return NodeList.prototype.isPrototypeOf(t)},Ao=function(t){return t&&t.nodeType===1},Ws=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},Xs=function(t){try{return Array.isArray(t)?t.filter(ko):ap(t)?[].slice.call(t).filter(ko):Ao(t)?[t].filter(ko):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(ko):[]}catch{throw new TypeError(`The provided selector is invalid.
|
|
564
|
+
`,m=Wu("caf-assistant-widget-container__inner",g),x=c.computed(()=>{const E=Uu`
|
|
565
|
+
display: ${f.value?"block":"none"};
|
|
566
|
+
`;return Wu("caf-assistant-widget-container__error",E)}),S=()=>{const E=l.value;E&&(d.value=new t9(E))},C=()=>{const E=d.value;E&&(E.dispose(),d.value=null)},_=()=>{const E=a.value,D=i.value;E&&(E.unmount(),E.dispose()),D&&D.cleanup(),a.value=null,i.value=null},F=async()=>{const E=await r(e.widgetAPIURL);if(!E)throw new Error("Failed to load widget API");await E.initialize();const D=E.createWidget();i.value=E,a.value=D},z=E=>{console.error(E),f.value=E};return c.watch(()=>e.widgetAPIURL,async()=>{if(l.value)try{_(),await F();const E=l.value,D=a.value;D==null||D.updateOptions(e.widgetOptions),D==null||D.updateData(e.widgetData),E&&D&&await D.mount(E)}catch(E){z(E)}}),c.watch(()=>e.widgetOptions,(E,D)=>{try{const B=a.value;B&&(!D||!n(D,E))&&B.updateOptions(E)}catch(B){z(B)}}),c.watch(()=>e.widgetData,(E,D)=>{try{const B=a.value;B&&(!D||!n(D,E))&&B.updateData(E)}catch(B){z(B)}}),c.onMounted(async()=>{try{const E=l.value;if(E){S();const D=d.value;if(D){await F();const B=a.value;B&&(B.updateOptions(e.widgetOptions),B.updateData(e.widgetData),B.mount(D.getElement()),c.nextTick(()=>{E.parentElement&&(E.style.width="100%")}))}}}catch(E){z(E)}}),c.onBeforeUnmount(async()=>{try{_(),C()}catch(E){console.error(E)}}),()=>c.createVNode("div",{class:p.value},[c.createVNode("div",{ref:l,class:m},null),c.createVNode("div",{class:x.value},null)])}}),E2=(e,t)=>{var r;if(e.type===y0.AssistantWidgetComplete){const n=e;return n.widgetUrl?c.createVNode(Na,{key:`widget-${t}`,widgetAPIURL:n.widgetUrl,widgetOptions:{mode:"embedded",implOptions:n.widgetImplOptions},widgetData:((r=n.widgetData)==null?void 0:r.data)||{}},null):null}return e.type===y0.AssistantWidgetPending?c.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`widget-loading-${t}`},[c.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),c.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[c.createTextVNode("数据生成中......")])]):null},i9=6e4,D2=8e3,_0=new Map,xr=new Map,Si=new Map,Wr=[];function h0(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function cs(e){const t=h0(e);if(t)for(let r=Wr.length-1;r>=0;r--)Wr[r]===t&&Wr.splice(r,1)}function o9(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function ds(e){if(typeof window>"u")return;const t=window;t.__fluens_dynamic_component_bootstrap_instance_id===e&&delete t.__fluens_dynamic_component_bootstrap_instance_id}function s9(){return Wr[Wr.length-1]||void 0}function fs(e,t){const r=h0(t);return r?h0(e.instanceId)===r||e.componentId!=null&&h0(String(e.componentId))===r||e.name!=null&&h0(String(e.name))===r:!1}function Xu(e){const t=h0(e);if(!t)return null;const r=_0.get(t);if(r)return{canonicalKey:t,entry:r};for(const[i,a]of _0.entries())if(h0(i)===t)return{canonicalKey:i,entry:a};const n=[];for(const[i,a]of _0.entries())fs(a.config,t)&&n.push({key:i,entry:a});if(n.length===1){const{key:i,entry:a}=n[0];return i!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${i}" (alias match)`),{canonicalKey:i,entry:a}}if(n.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${n.length} pending matches); refusing`),null;if(_0.size===1){const[i,a]=[..._0.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${i}"`),{canonicalKey:i,entry:a}}return null}function M2(e,t){for(const[r,n]of xr){const i=h0(r),a=e!==""&&i===e,l=String(t??"").trim(),d=e&&fs(n.config,e)||l&&fs(n.config,l);if(a||d)return console.warn(`[DynamicComponent] register skipped: id "${e||l}" already active (canonical "${r}"); unload first — second register yields "no pending", not duplicate mount`),!0}return!1}function Yu(){return{pendingKeys:[..._0.keys()],bootstrapQueue:[...Wr],activeKeys:[...xr.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function l9(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...Yu()})}function u9(e){const t=h0(e);if(t){if(M2(t,e))return{ok:!1,reason:"already_active_duplicate"};const n=Xu(t);if(n)return{ok:!0,...n}}else if(M2("",e))return{ok:!1,reason:"already_active_duplicate"};for(let r=0;r<Wr.length;r++){const n=Wr[r],i=Xu(n);if(i)return Wr.splice(r,1),t&&h0(n)!==t&&console.warn(`[DynamicComponent] register id "${t}" did not match pending; using bootstrap instanceId "${n}" (sync bundle entry or use window.__fluens_dynamic_component_bootstrap_instance_id)`),{ok:!0,...i}}return{ok:!1,reason:"no_pending"}}function N2(e){const t=h0(e);if(!t)return null;const r=xr.get(t);if(r)return r;for(const[a,l]of xr.entries())if(h0(a)===t)return l;const n=[];for(const a of xr.values())fs(a.config,t)&&n.push(a);const i=[...new Map(n.map(a=>[a.config.instanceId,a])).values()];return i.length===1?(i[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${i[0].config.instanceId}" (alias match)`),i[0]):(i.length>1&&console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${i.length} active matches)`),null)}function c9(e){const t=h0(e);if(!t)return null;const r=xr.get(t);if(r)return r;for(const[n,i]of xr.entries())if(h0(n)===t)return i;return null}function d9(e){const t=h0(e);if(!t)return t;const r=N2(t);if(r)return r.config.instanceId;const n=Xu(t);return n?n.canonicalKey:t}function Zu(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function z2(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(Zu(t)),!0}catch(r){return console.warn("[DynamicComponent] onAssistantMessage failed",r),!1}}function f9(e){const t=`fluens-dynamic-component-${e.instanceId}`;let r=document.getElementById(t);return r||(r=document.createElement("div"),r.id=t,r.style.width="100%",r.style.height="100%"),r}function _2(e){const t=xr.get(e.instanceId);if(t)return Promise.resolve(t.api);const r=_0.get(e.instanceId);if(r)return new Promise((i,a)=>{const l=r.resolve,d=r.reject;r.resolve=f=>{l(f),i(f)},r.reject=f=>{d(f),a(f)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const n=f9(e);return new Promise((i,a)=>{const l={config:e,container:n,resolve:i,reject:a,timeoutId:0},d=setTimeout(()=>{l.postLoadRegisterCheckTimerId!=null&&(clearTimeout(l.postLoadRegisterCheckTimerId),l.postLoadRegisterCheckTimerId=void 0),_0.delete(e.instanceId),cs(e.instanceId),ds(e.instanceId),a(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},i9);l.timeoutId=d,_0.set(e.instanceId,l),Wr.push(e.instanceId),o9(e.instanceId);const f=document.createElement("script");f.src=(e==null?void 0:e.jsUrl)??"",f.dataset.dynamicComponentId=e.instanceId,f.async=!1,f.onload=()=>{l.postLoadRegisterCheckTimerId=window.setTimeout(()=>{l.postLoadRegisterCheckTimerId=void 0,_0.has(e.instanceId)&&(clearTimeout(d),_0.delete(e.instanceId),cs(e.instanceId),ds(e.instanceId),a(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${D2}ms after load: ${e.name||e.componentId}`)))},D2)},f.onerror=()=>{clearTimeout(d),l.postLoadRegisterCheckTimerId!=null&&(clearTimeout(l.postLoadRegisterCheckTimerId),l.postLoadRegisterCheckTimerId=void 0),_0.delete(e.instanceId),cs(e.instanceId),ds(e.instanceId),a(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(f)})}function F2(e){var i;const t=xr.get(e);if(t){try{t.api.unmount()}catch{}(i=t.scriptElement)==null||i.remove(),xr.delete(e)}const r=_0.get(e);r&&(r.postLoadRegisterCheckTimerId!=null&&(clearTimeout(r.postLoadRegisterCheckTimerId),r.postLoadRegisterCheckTimerId=void 0),clearTimeout(r.timeoutId),_0.delete(e)),Si.delete(e);const n=document.getElementById(`fluens-dynamic-component-${e}`);n&&n.remove()}function h9(e,t){const r=h0(e);if(!r)return!1;const n=N2(r);if(n)return z2(n.api,t);const i=d9(r),a=Si.get(i)??[],l=a.findIndex(d=>d.messageId===t.messageId);return l>=0?a[l]=Zu(t):a.push(Zu(t)),Si.set(i,a),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=Yu,window.__fluens_dynamic_component_register=function(e,t){const r=h0(e),n=u9(e);if(!n.ok){if(n.reason==="already_active_duplicate")return;l9(r),console.warn(`[DynamicComponent] no pending for register id "${r}" (raw ${JSON.stringify(e)}); see diagnostics above. Try: unload tab / avoid double register / ensure FXDynamicComponent loaded this jsUrl first / empty id if sole pending`);return}const{canonicalKey:i,entry:a}=n;cs(i),ds(i),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),clearTimeout(a.timeoutId),_0.delete(i);const l={config:a.config,container:a.container,api:t,scriptElement:document.currentScript};xr.set(i,l),l.container.parentElement;try{t.mount(a.container,a.config)}catch(f){console.error(`Failed to mount dynamic component: ${i}`,f)}const d=[i];r&&r!==i&&d.push(r);for(const f of d){const p=Si.get(f);p&&p.length>0&&(Si.delete(f),p.forEach(g=>z2(t,g)))}a.resolve(t)});const za=c.defineComponent({name:"FXDynamicComponent",props:{config:{type:Object,required:!0}},setup(e){const t=c.ref("loading"),r=c.ref(""),n=c.computed(()=>`fluens-dynamic-component-${e.config.instanceId}`),i=c.computed(()=>e.config.position==="inline"),a=c.computed(()=>!e.config.jsUrl&&!!e.config.url),l=c.computed(()=>({...i.value?{width:"fit-content",maxWidth:"100%"}:{width:"100%"},height:"auto",...t.value==="ready"&&i.value?{padding:"16px 0"}:{},...t.value==="ready"&&!i.value?{height:"100%",overflow:"hidden"}:{}}));return c.onMounted(()=>{a.value||(t.value="loading",r.value="",_2(e.config).then(()=>{t.value="ready"}).catch(d=>{t.value="error",r.value=d.message||"Unknown error"}))}),c.onUnmounted(()=>{a.value||F2(e.config.instanceId)}),()=>a.value?null:c.createVNode("div",{class:"f-chat-dynamic-component-body",style:l.value},[c.createVNode("div",{id:n.value,style:{width:"100%",height:"100%",display:t.value==="ready"?"":"none"}},null),t.value==="loading"&&c.createVNode("div",{class:"f-chat-dynamic-component-loading"},[c.createVNode("span",{class:"f-chat-dynamic-component-loading-spinner"},null),c.createVNode("span",null,[c.createTextVNode("加载中......")])]),t.value==="error"&&c.createVNode("div",{class:"f-chat-dynamic-component-error"},[c.createVNode("span",{class:"f-chat-dynamic-component-error-icon"},[c.createTextVNode("!")]),c.createVNode("span",null,[r.value])])])}}),I2=(e,t,r)=>{if(e.type===y0.DynamicComponentComplete){const n=e;if(!n.config)return null;if(n.config.position==="inline")return c.createVNode(za,{key:`dc-${t}`,config:n.config},null);const i={type:"file",fileContent:{type:"md",name:n.config.title}},a={onPreviewFile:l=>{r.emit("showDynamicComponent",n.config)}};return r.emitDynamicComponentsDetectedOnce(n.config),c.createVNode("div",{style:{padding:"16px 0"}},[r.renderFileEmbeddedContent(i,a)])}return e.type===y0.DynamicComponentPending?c.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`dc-loading-${t}`},[c.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),c.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[c.createTextVNode("组件加载中......")])]):null};function m9(){return{[y0.Text]:hp,[y0.AssistantWidgetComplete]:E2,[y0.AssistantWidgetPending]:E2,[y0.DynamicComponentComplete]:I2,[y0.DynamicComponentPending]:I2}}const p9=c.defineComponent({name:"FXBubbleTextContent",props:Y3,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:r}=x1(),{propertyStates:n,registerProperty:i,updatePropertyValue:a,startStreaming:l}=co();i("title",e.title??""),i("subtitle",e.subtitle??""),i("text",e.text??""),c.watch([()=>e.title,()=>e.subtitle,()=>e.text],([z,E,D])=>{a("title",z??""),a("subtitle",E??""),a("text",D??"")});const d=c.computed(()=>e.textFormat==="markdown"),f=c.ref(!1),p=c.computed(()=>{var z,E,D;return f.value?{title:((z=n.title)==null?void 0:z.displayedValue)??"",subtitle:((E=n.subtitle)==null?void 0:E.displayedValue)??"",text:((D=n.text)==null?void 0:D.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),g=c.computed(()=>pm(p.value.text)),m=new Set;function x(z){const E=String(z.instanceId??"").trim();!E||m.has(E)||(m.add(E),c.nextTick(()=>{var D;t.emit("dynamicComponentsDetected",[z]),(D=e.onDynamicComponentsDetected)==null||D.call(e,[z])}))}function S(z,...E){var D;t.emit(z,...E),z==="showDynamicComponent"&&((D=e.onShowDynamicComponent)==null||D.call(e,E[0]))}const C={shouldShowMarkdown:d,emit:S,emitDynamicComponentsDetectedOnce:x,renderFileEmbeddedContent:r},_=m9(),F=()=>g.value.length===0?null:c.createVNode("div",{class:"f-chat-bubble-text-collection"},[g.value.map((z,E)=>{var D;return(D=_[z.type])==null?void 0:D.call(_,z,E,C)})]);return c.onMounted(()=>{f.value&&l()}),()=>c.createVNode(c.Fragment,null,[p.value.title&&c.createVNode("div",{class:"f-chat-bubble-content-title"},[p.value.title]),p.value.subtitle&&c.createVNode("div",{class:"f-chat-bubble-content-subtitle"},[p.value.subtitle]),F()])}}),g9={content:{type:Object},outputMode:{type:String,default:"full"}},b9=c.defineComponent({name:"FXBubbleThink",props:g9,setup(e,t){var pe;const{propertyStates:r,registerProperty:n,updatePropertyValue:i,isAllDone:a}=co(),{elapsedSeconds:l,hasEverStarted:d,start:f,stop:p,reset:g}=pl(),m=c.ref(((pe=e.content)==null?void 0:pe.completed)!==!0),x=c.ref(null),S=c.ref(null),C=c.ref(!1),_=c.ref(!1),F=c.computed(()=>e.outputMode==="streaming"),z=c.computed(()=>{var he;return(he=e.content)==null?void 0:he.completed}),E=c.computed(()=>{var ce,be;if(z.value){const ae=d.value?`(用时${l.value}秒)`:"";return((ce=e.content)==null?void 0:ce.title)??"思考完成"+ae}return((be=e.content)==null?void 0:be.title)??"正在思考......"}),D=c.computed(()=>{var he,ce;return F.value?((he=r.content)==null?void 0:he.displayedValue)??"":((ce=e.content)==null?void 0:ce.content)??""}),B=c.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!z.value,"is-completed":z.value})),R=()=>{const he=x.value;if(!he||!C.value){_.value=!1;return}_.value=he.scrollTop>0};c.watch(()=>z.value,he=>{he?p():f()},{immediate:!0}),c.watch(()=>z.value,he=>{he&&(m.value=!1)}),c.watch(()=>e.content,he=>{he&&(r.content?i("content",he.content??""):n("content",he.content??""))},{immediate:!0}),c.watch(D,async()=>{if(m.value){await c.nextTick();const he=x.value;if(!he)return;await c.nextTick(),C.value=he.scrollHeight>he.clientHeight,C.value?(he.scrollTop=he.scrollHeight,_.value=!0):_.value=!1}},{immediate:!0}),c.watch(m,async he=>{if(he){await c.nextTick();const ce=x.value;if(!ce)return;await c.nextTick(),C.value=ce.scrollHeight>ce.clientHeight,C.value?(ce.scrollTop=ce.scrollHeight,_.value=!0):_.value=!1}}),c.onUnmounted(()=>{g()}),t.expose({instance:{get loadDone(){return e.content?(F.value?a.value:!0)&&z.value:!0}}});const W=()=>{m.value=!m.value},Y=()=>z.value?null:c.createVNode(Xn,{status:"Working",variant:"thinking"},null),q=()=>!D.value||!m.value?null:c.createVNode("div",{class:"f-chat-bubble-thinking-content"},[c.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:x,onScroll:R},[C.value&&_.value&&c.createVNode("div",{class:"f-chat-bubble-thinking-fade-mask"},null),c.createVNode("div",{class:"f-chat-bubble-thinking-text-wrapper"},[c.createVNode("div",{ref:S,class:"f-chat-bubble-thinking-content-text",innerHTML:D.value},null)])])]);return()=>c.createVNode("div",{class:B.value},[c.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:W},[Y(),c.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:E.value},null),D.value&&c.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:m.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null)]),q()])}}),y9={content:{type:Object}},B2={id:{type:String},arrowOffsetX:{type:Number,default:0},class:{type:String,default:""},customStyles:{type:Object,default:null},isSimpleTips:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},host:{type:Object},leftBoundary:{type:Object},keepWidthWithReference:{type:Boolean,default:!1},minWidth:{type:Number,default:-1},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},placement:{type:String,default:"bottom"},reference:{type:Object},rightBoundary:{type:Object},showArrow:{type:Boolean,default:!1},theme:{type:String,default:"default"},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function},enableDrag:{type:Boolean,default:!1},renderWhenShown:{type:Boolean,default:!1}};function v9(e){const t=e.host?e.host:"body",r=c.computed(()=>t==="body"?0:t?t.getBoundingClientRect().top:0),n=c.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().bottom:window.innerHeight),i=c.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),a=c.computed(()=>t==="body"?document.body.getBoundingClientRect().width:t?t.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width),l=c.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().height:window.innerHeight);return{host:t,hostLeft:i,hostTop:r,hostWidth:a,hostHeight:l,hostBottom:n}}function x9(e,t,r,n){const i=c.ref(e.offsetX||0),a=c.ref(e.offsetY||0),l=c.ref(-1),d=c.ref(-1),f=c.ref(-1),p=c.ref(-1),g=c.ref(e.placement),m=c.ref(0),x=c.ref(0),S=c.ref(0),C=c.computed(()=>document.documentElement.scrollLeft),_=c.computed(()=>document.documentElement.scrollTop),{hostLeft:F,hostTop:z,hostWidth:E,hostHeight:D,hostBottom:B}=n;c.watch(()=>e.offsetX,ie=>{i.value=ie});const R=c.computed(()=>{const ie={left:`${x.value}px`,top:`${S.value}px`,transform:`translate(${i.value}px, ${a.value}px)`};return e.zIndex!==-1&&(ie["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&r.value&&l.value>=r.value.getBoundingClientRect().width&&(ie.width=`${l.value}px`):l.value!==-1&&(ie.width=`${l.value}px`),e.minWidth!==-1&&(ie.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(ie,e.customStyles),d.value>0&&(ie.maxHeight=d.value+"px"),ie}),W=c.computed(()=>({left:`${m.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function Y(ie){if(ie&&e.keepWidthWithReference){const me=ie.getBoundingClientRect();l.value=Math.max(e.minWidth,me.width)}}function q(ie,me){const ge=E.value-ie.width-4;return ge>0?ge:me}function pe(ie,me){const ge=D.value-ie.height-12;return ge>0?ge:me}function he(ie,me,ge){const Oe=m.value,Xe=me.left-F.value+me.width/2+C.value,Ze=me.top-z.value-(ie.height+ge.height)+_.value;return{popoverLeft:Xe,popoverTop:Ze,arrowLeft:Oe}}function ce(ie,me,ge){const Oe=me.top-z.value+(me.height+ge.height)+_.value,Xe=pe(ie,Oe);return Math.min(Oe,Xe)}function be(ie,me){const ge=q(me,ie),Oe=ie<=ge?m.value:ie-ge;return{popoverLeft:Math.min(ie,ge),arrowLeft:Oe,maxHeight:0}}function ae(ie,me){const ge=q(me,ie),Oe=ie<=ge?m.value:ie-ge;return{popoverLeft:ie,arrowLeft:Oe,maxHeight:0}}function xe(ie,me,ge){const Oe=me.left-F.value+C.value,{arrowLeft:Xe,popoverLeft:Ze}=ae(Oe,ie),{popoverTop:nt}=he(ie,me,ge);return{popoverLeft:Ze,popoverTop:nt,arrowLeft:Xe,maxHeight:0}}function Ce(ie,me,ge){const Oe=me.left-F.value+me.width/2-(ge.width/2-(ie.left-F.value))+C.value,{arrowLeft:Xe,popoverLeft:Ze}=be(Oe,ie),nt=ce(ie,me,ge);return{popoverLeft:Ze,popoverTop:nt,arrowLeft:Xe,maxHeight:0}}function te(ie,me,ge){const Oe=me.left-F.value+C.value,{arrowLeft:Xe,popoverLeft:Ze}=be(Oe,ie),nt=ce(ie,me,ge);return{popoverLeft:Ze,popoverTop:nt,arrowLeft:Xe,maxHeight:0}}function ye(ie,me,ge){const Oe=me.right-F.value-ie.width+C.value,Ze=Math.max(Oe,4),nt=Ze-Oe,at=ie.width-ge.width-20-nt,it=ce(ie,me,ge);return{popoverLeft:Ze,popoverTop:it,arrowLeft:at,maxHeight:0}}function ne(ie,me,ge){const Oe=me.left-F.value;let Xe=0,Ze=0,nt=0,at=0,it="bottom-left";window.innerWidth-Oe>ie.width?Xe=Oe+C.value:(Xe=me.right-ie.width+C.value,nt=ie.width-ge.width-20);let qt=0;if(e.limitContentBySpace){const Se={topHeight:me.top-z.value-ge.height-8,bottomHeight:B.value-me.bottom-ge.height-8};qt=Math.max(Se.topHeight,Se.bottomHeight),ie.height>qt&&(at=qt,r.value.classList.add("popover-limitmax"))}const B0=at?Math.floor(at):ie.height,Wt=me.top-z.value+(me.height+ge.height);return B.value-Wt>B0?Ze=Wt+_.value:(Ze=me.top-B0-ge.height+_.value,B.value-Wt>me.top?(Ze=Wt+_.value,B0>me.top&&(Ze=B.value-B0)):(Ze=Ze<0?0:Ze,it="top")),r.value.classList.add("popover-"+it,"bs-popover-"+it),{popoverLeft:Xe<0?5:Xe,popoverTop:Ze,arrowLeft:nt,maxHeight:at}}function ze(ie,me,ge){const Oe=me.left+me.width,Xe=0;let Ze=0,nt=ie.height;if(e.limitContentBySpace){const lt=D.value-16-Math.abs(a.value);ie.height>lt?(Ze=lt,nt=lt,r.value.classList.add("popover-limitmax")):r.value.classList.remove("popover-limitmax")}const at=Math.max(me.top-(nt/2-me.height/2),z.value);let it=z.value+D.value-nt-a.value;it<0&&(it=at);const qt=Math.min(at,it);return{popoverLeft:Oe,popoverTop:qt,arrowLeft:Xe,maxHeight:Ze}}function Ue(ie,me,ge){const Oe=me.left+me.width,Xe=Math.max(me.top-me.height,z.value);let Ze=z.value+D.value-ie.height;Ze<0&&(Ze=Xe);const nt=Math.min(Xe,Ze);return{popoverLeft:Oe,popoverTop:nt,arrowLeft:0,maxHeight:0}}function X(ie,me,ge){const Oe=me.left-F.value+me.width/2-ie.width/2+C.value,Xe=me.top-z.value-(ie.height+ge.height)+_.value,Ze=ie.width/2-ge.width/2;return{popoverLeft:Oe,popoverTop:Xe,arrowLeft:Ze,maxHeight:0}}function Z(ie,me,ge){const Oe=me.left-F.value+me.width/2-ie.width/2+C.value,Xe=ce(ie,me,ge),Ze=ie.width/2-ge.width/2;return{popoverLeft:Oe,popoverTop:Xe,arrowLeft:Ze,maxHeight:0}}const Q=new Map([["top",he],["top-left",xe],["top-center",X],["bottom",Ce],["bottom-left",te],["bottom-right",ye],["bottom-center",Z],["right",ze],["right-top",Ue],["auto",ne]]);function oe(ie){var Ze;e.keepWidthWithReference&&Y(ie);const me=ie.getBoundingClientRect();f.value=me.top,p.value=me.left;const ge=t.value?t.value.getBoundingClientRect():{height:4,width:4},Oe=(Ze=r.value)==null?void 0:Ze.getBoundingClientRect();l.value=Oe.width;const Xe=Q.get(g.value);if(Xe){const{arrowLeft:nt,popoverLeft:at,popoverTop:it,maxHeight:qt}=Xe(Oe,me,ge);m.value=nt,x.value=at,S.value=it,d.value=qt||-1}}function fe(ie){if(ie){const me=ie.getBoundingClientRect();(me.left!==p.value||me.top!==f.value)&&oe(ie)}}function Ae(){g.value=e.placement,m.value=0,x.value=0,S.value=0,l.value=-1}return{arrowStyle:W,popoverStyle:R,position:g,popoverWidth:l,fitToReference:Y,followToReferencePosition:fe,locateToReference:oe,resetPosition:Ae}}function w9(e,t,r,n,i,a,l,d){const f=c.ref(e.visible),p=c.computed(()=>f.value),g=c.ref(!1),{fitToReference:m,followToReferencePosition:x,locateToReference:S,resetPosition:C}=l;function _(){g.value=!0}function F(){g.value=!1}c.watch(()=>e.visible,async R=>{R&&e.reference?(d.value||(d.value=!0,await c.nextTick()),await c.nextTick(),D(e.reference)):R||E()},{flush:"post"});let z;async function E(){f.value&&(e.beforeClose&&typeof e.beforeClose=="function"&&!await e.beforeClose()||(f.value=!1,document.body.removeEventListener("click",z),document.body.removeEventListener("mousedown",z),document.body.removeEventListener("wheel",z,!0),document.removeEventListener("scroll",z),e.enableDrag&&(document.removeEventListener("dragstart",_),document.removeEventListener("dragend",F),g.value=!1),C(),t.emit("hidden"),e.renderWhenShown&&(d.value=!1)))}z=R=>{var q;if(g.value||!i.value)return;const W=i.value.contains(R.target);if(R.type==="scroll"||R.type==="wheel"&&W){E();return}if(R.target.closest(".time-picker-panel"))return;const Y=(q=R.target)==null?void 0:q.closest(".popover");if(Y&&n.value&&Y===n.value){R.type!=="scroll"&&R.type!=="wheel"&&R.stopPropagation();return}if(!W&&f.value){const pe=i.value.closest(".popover");pe&&pe.removeEventListener("click",z),E()}};async function D(R){if(e.renderWhenShown&&!d.value&&(d.value=!0,await c.nextTick()),n.value&&(e.showArrow===!1||e.showArrow&&r.value)&&R){C(),f.value=!0,i.value=R,a.value&&m(R),await c.nextTick(),S(R),document.body.addEventListener("click",z),document.body.addEventListener("mousedown",z),document.body.addEventListener("wheel",z,!0),document.addEventListener("scroll",z),e.enableDrag&&(document.addEventListener("dragstart",_),document.addEventListener("dragend",F)),(top==null?void 0:top.document)!==document&&(top==null||top.document.addEventListener("mousedown",z));const W=R.closest(".popover");W&&W.addEventListener("click",z),t.emit("shown")}}function B(){f.value&&i.value&&x(i.value)}return t.expose({hide:E,popoverRef:n,show:D,shown:p,isShow:f,updatePosition:B}),{showPopover:f,hidePopverOnClickBodyHandler:z}}function k9(e,t,r,n,i,a){const{popoverWidth:l,fitToReference:d,followToReferencePosition:f}=i;function p(){var g;if(a.value&&((g=a.value.style)==null?void 0:g.display)!=="none"&&r.value){f(r.value);const m=r.value.getBoundingClientRect();n.value&&m.width!==l.value&&d(r.value)}}return{onResize:p}}function A9(e,t=500){const r=c.ref(e.value);let n;const i=c.watch(e,l=>{clearTimeout(n),n=setTimeout(()=>{r.value=l},t)}),a=()=>{clearTimeout(n),i()};return c.onUnmounted(a),{delayedValue:r,cleanup:a}}const Qn=c.defineComponent({name:"FXPopover",props:B2,emits:["shown","hidden"],setup(e,t){const r=c.ref(),n=c.ref(),i=c.ref(e.reference),a=c.ref(e.keepWidthWithReference),l=c.computed(()=>!!e.title),d=c.ref(!e.renderWhenShown||e.visible),f=v9(e),{host:p}=f,g=x9(e,r,n,f),{position:m,arrowStyle:x,popoverStyle:S,fitToReference:C,locateToReference:_}=g,{showPopover:F,hidePopverOnClickBodyHandler:z}=w9(e,t,r,n,i,a,g,d),{onResize:E}=k9(e,t,i,a,g,n),D=c.computed(()=>{let q=m.value;const pe=`popover in popover-${q}`,he=`bs-popover-${q}`,ce={"popover-fitcontent":e.fitContent,fade:!0};ce[pe]=!0,ce[he]=!0,e.theme==="dark"&&(ce["popover-theme-dark"]=!0);const be=(e.class||"").split(" ");return e.isSimpleTips&&be.unshift("popover-tips"),be.reduce((ae,xe)=>(ae[xe]=!0,ae),ce),ce}),B=c.computed(()=>({"popover-content":!0,"popover-body":!0})),R=c.computed(()=>{const q={};return q.opacity=F.value?1:0,q.visibility=F.value?"visible":"hidden",q.zIndex=1060,q}),W=c.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:Y}=A9(R,50);return c.onMounted(()=>{var q;d.value&&(a.value&&C(i.value),e.reference&&_(i.value)),window.addEventListener("resize",E),(q=n.value)==null||q.focus()}),c.onUnmounted(()=>{document.body.removeEventListener("click",z),window.removeEventListener("resize",E),F.value=!1}),()=>d.value?c.createVNode(c.Teleport,{to:p},{default:()=>{var q;return[c.withDirectives(c.createVNode("div",{tabindex:"-1",ref:n,class:D.value,style:{...S.value,...Y.value},onMousedown:pe=>{e.enableDrag||pe.stopPropagation()},onClick:pe=>{pe.stopPropagation()}},[W.value&&c.createVNode("div",{ref:r,class:"popover-arrow arrow",style:x.value},null),l.value&&c.createVNode("h3",{class:"popover-title popover-header"},[e.title]),c.createVNode("div",{class:B.value},[t.slots.default&&((q=t.slots)==null?void 0:q.default())])]),[[c.vShow,F.value]])]}}):null}}),hs="FarrisX_PopoverInstancesKey";window[hs]=window[hs]||new WeakMap;function Ku(e,t,r){e.stopPropagation();const n=t.value;n&&n.value&&!n.value.isShow&&(n.value.show(r),window[hs].set(r,n.value))}function O2(e,t,r){e.stopPropagation(),t.value.value.hide(),window[hs].delete(r)}function S9(e,t,r){e.stopPropagation();const n=t.value;n&&n.value&&(n.value.isShow?O2(e,t,r):Ku(e,t,r))}function L2(e,t,r){t.arg&&t.arg==="toggle"?S9(e,t,r):Ku(e,t,r)}const R2={mounted:(e,t,r)=>{t.modifiers.hover?(e.addEventListener("mouseenter",n=>Ku(n,t,e)),e.addEventListener("mouseleave",n=>O2(n,t,e))):t.modifiers.click?e.addEventListener("click",n=>L2(n,t,e)):e.addEventListener("click",n=>L2(n,t,e)),e.classList.add("v-popover")},unMounted:(e,t,r)=>{}};Qn.install=e=>{e.component(Qn.name,Qn),e.directive("fxpopover",R2)};const P2={type:{type:String,default:"StartedToDo"},status:{type:String,default:"NotStart"},message:{type:String,default:""},taskDetail:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"hover"},initExpanded:{type:Boolean,default:!1},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!0},loading:Object,shimmer:{type:Boolean,default:!0},outputMode:{type:String,default:"streaming"},listStatus:{type:String,default:void 0},completedCount:{type:Number,default:void 0},totalCount:{type:Number,default:void 0}},V2={items:{type:Array,default:()=>[]}},H2={id:{type:Number||String,default:0},status:{type:String},task:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"expand"},initExpanded:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!1},shimmer:{type:Boolean,default:!0},title:{type:String,default:""},message:{type:String,default:""},outputMode:{type:String,default:"full"}},ms=c.defineComponent({name:"FXTodoListItemView",props:H2,emits:["click"],setup(e,{emit:t}){const{propertyStates:r,registerProperty:n,updatePropertyValue:i,startStreaming:a}=co();n("title",e.title??""),n("task",e.task??""),n("detail",e.message??""),c.watch([()=>e.title,()=>e.task,()=>e.message],([S,C,_])=>{i("title",S??""),i("task",C??""),i("detail",_??"")});const l=c.computed(()=>["f-chat-todo-item",{"is-done":e.status==="Done","is-working":e.status==="Working","is-not-start":e.status==="NotStart","no-shimmer":!e.shimmer}]),d=c.computed(()=>["f-chat-todo-task",{"is-done":e.status==="Done"}]);function f(){t("click",e,e.id)}const p=c.computed(()=>e.outputMode==="streaming"),g=c.computed(()=>{var S;return p.value?((S=r.title)==null?void 0:S.displayedValue)??"":e.title??""}),m=c.computed(()=>{var S;return p.value?((S=r.task)==null?void 0:S.displayedValue)??"":e.task??""}),x=c.computed(()=>{var S;return p.value?((S=r.detail)==null?void 0:S.displayedValue)??"":e.message??""});return c.onMounted(()=>{p.value&&a()}),()=>c.createVNode("li",{key:e.id,class:l.value,onClick:f},[e.todoList&&e.todoList.length>0&&c.createVNode(Jn,{todoList:e.todoList,status:e.status,message:e.task,taskDetail:e.message,detailViewMode:e.detailViewMode,initExpanded:e.initExpanded,showLoading:e.showLoading,showLabel:e.showLabel,outputMode:e.outputMode},null),!e.todoList||e.todoList.length===0&&c.createVNode(c.Fragment,null,[e.showLoading&&c.createVNode(Xn,{status:e.status??"Done",variant:"todo"},null),g.value?c.createVNode("div",{class:"f-chat-todo-task-wrapper"},[c.createVNode("span",{class:d.value},[g.value]),c.createVNode("div",{class:"f-chat-todo-task-description"},[m.value]),x.value?c.withDirectives(c.createVNode("div",{class:"f-chat-todo-task-description"},[x.value]),[[c.resolveDirective("overflow-tooltip")]]):null]):c.createVNode("div",{class:"f-chat-todo-task-wrapper"},[c.createVNode("span",{class:d.value},[m.value]),x.value?c.withDirectives(c.createVNode("div",{class:"f-chat-todo-task-description"},[x.value]),[[c.resolveDirective("overflow-tooltip")]]):null])])])}}),Ci=c.defineComponent({name:"FXTodoListView",props:V2,setup(e){return()=>{var t;return(t=e.items)!=null&&t.length?c.createVNode("ul",{class:"f-chat-todo-items"},[e.items.map((r,n)=>c.createVNode(ms,c.mergeProps({key:n},r),null))]):null}}}),C9=300,T9={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},Jn=c.defineComponent({name:"FXStartedTodo",props:P2,setup(e){const t=c.ref(null),r=c.ref(null),n=c.ref(null),i=c.ref(null),a=c.computed(()=>e.outputMode==="streaming"),{displayContent:l}=f1(()=>({detail:e.taskDetail??""}),()=>!0,a,{charInterval:30}),d=c.ref(e.initExpanded),f=c.computed(()=>({"f-chat-message-started-todo--content":!0,"d-none":!d.value}));function p(){e.detailViewMode!=="expand"&&(i.value!=null&&(window.clearTimeout(i.value),i.value=null),n.value=window.setTimeout(()=>{t.value&&r.value&&r.value.show(t.value),n.value=null},C9))}function g(){e.detailViewMode!=="expand"&&(n.value!=null&&(window.clearTimeout(n.value),n.value=null),i.value=window.setTimeout(()=>{var E,D;(D=(E=r.value)==null?void 0:E.hide)==null||D.call(E),i.value=null},150))}function m(){if(e.detailViewMode==="none")return null;const E=l.value.detail??"";return c.createVNode(c.Fragment,null,[E?c.createVNode("div",{class:"f-chat-started-todo-task-detail"},[E]):null,c.createVNode(Ci,{items:e.todoList},null)])}function x(){e.detailViewMode==="expand"&&(d.value=!d.value)}function S(){return e.detailViewMode==="expand"?c.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:d.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null):null}function C(){return e.detailViewMode==="hover"&&c.createVNode(Qn,{ref:r,class:"f-chat-started-todo-popover"},{default:()=>[c.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{i.value!=null&&(window.clearTimeout(i.value),i.value=null)},onMouseleave:g},[m()])]})}const _=c.computed(()=>e.listStatus==="completed"),F=c.computed(()=>{const E=e.todoList??[],D=e.totalCount??E.length;return{done:e.completedCount??E.filter(R=>(R==null?void 0:R.status)==="Done").length,total:D}});function z(){if(!_.value)return null;const{done:E,total:D}=F.value,B=D>0?`已完成 (${E}/${D})`:"已完成";return c.createVNode("span",{class:"f-chat-started-todo-completed-chip","aria-label":B},[B])}return()=>c.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working","is-completed":_.value}],onMouseenter:p,onMouseleave:g},[c.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:x},[e.showLabel&&c.createVNode("span",{class:"f-chat-started-todo-label"},[T9[e.status]]),c.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),z(),S()]),e.detailViewMode==="expand"&&c.createVNode("div",{class:f.value},[m()]),C()])}});Jn.install=e=>{e.component(Jn.name,Jn)};const E9=c.defineComponent({name:"FXBubbleThoughtChain",props:y9,setup(e,t){const{elapsedSeconds:r,hasEverStarted:n,start:i,stop:a,reset:l}=pl(),d=c.computed(()=>{var m;return((m=e.content)==null?void 0:m.status)==="Done"}),f=c.computed(()=>{var m;return((m=e.content)==null?void 0:m.message)??"正在思考......"}),p=c.computed(()=>{var S,C;const m=((S=e.content)==null?void 0:S.doneMessage)??((C=e.content)==null?void 0:C.message)??"思考完成",x=n.value?`(用时${r.value}秒)`:"";return""+m+x}),g=c.computed(()=>d.value?p.value:f.value);return c.watch(()=>{var m;return(m=e.content)==null?void 0:m.status},m=>{m==="Working"?i():m==="Done"?a():l()},{immediate:!0}),c.onUnmounted(()=>{l()}),t.expose({instance:{get loadDone(){return e.content?d.value:!0}}}),()=>{var m,x,S,C,_,F;return e.content?c.createVNode(Jn,{status:((m=e.content)==null?void 0:m.status)??"Working",message:g.value,todoList:(x=e.content)==null?void 0:x.todoList,detailViewMode:((S=e.content)==null?void 0:S.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0,listStatus:(C=e.content)==null?void 0:C.listStatus,completedCount:(_=e.content)==null?void 0:_.completedCount,totalCount:(F=e.content)==null?void 0:F.totalCount},null):null}}}),Ti=c.defineComponent({name:"UserAuthMessage",props:{content:{type:Object,required:!0},onConfirm:{type:Function,default:void 0}},setup(e){return()=>c.createVNode("div",{class:"f-ec-auth"},[c.createVNode("div",{class:"f-ec-auth-desc"},[e.content.description]),c.createVNode("div",{class:"f-ec-auth-actions"},[e.content.options.map(t=>c.createVNode("button",{key:t.optionId,type:"button",class:"f-ec-auth-btn",onClick:()=>{var r;(r=e.onConfirm)==null||r.call(e,t.optionId,t.name,t.message??t.name),console.info("[UserAuth]",t.optionId,t.name)}},[t.name]))])])}}),D9=300,_a=c.defineComponent({name:"FXToolUseMessage",props:{content:{type:Object,required:!0}},setup(e){const t=c.computed(()=>e.content.toolResultApplied===!0||String(e.content.result??"").trim().length>0),{getToolIconClass:r}=gl(),n=c.computed(()=>e.content.success===!1),i=c.ref(!1);let a=setTimeout(()=>{i.value=!0},D9);c.onBeforeUnmount(()=>{a&&clearTimeout(a)});const l=c.computed(()=>t.value),d=c.computed(()=>i.value&&!t.value),f=c.computed(()=>n.value?"执行完成":l.value?"执行成功":"调用中"),p=c.ref(!1),g=c.computed(()=>({"f-chat-tool-use":!0,"is-done":l.value,"is-error":n.value})),m=c.computed(()=>({"f-chat-tool-use-status":!0,"is-done":l.value&&!n.value,"is-run":d.value&&!n.value,"is-error":n.value}));c.watch(()=>t.value,(S,C)=>{S&&!C&&(p.value=!1)},{flush:"post"});const x=()=>t.value?c.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>c.createVNode("div",{class:g.value},[c.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{p.value=!p.value}},[c.createVNode("i",{class:"fx-icon fx-icon-"+r(e.content.toolName)+" tool-icon"},null),c.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),c.createVNode("div",{class:m.value},[n.value?c.createVNode(Xn,{status:"Error",variant:"tool-use"},null):c.createVNode(Xn,{status:l.value?"Done":d.value?"Working":"NotStart",variant:"tool-use"},null),c.createVNode("span",{class:"f-chat-tool-use-status-text"},[f.value])]),c.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:p.value?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"}},null)]),p.value&&c.createVNode("div",{class:"f-chat-tool-use-content"},[x()])])}});_a.install=e=>{e.component(_a.name,_a)};const Ei=c.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":Ti,"fx-app-preview-inline":gr,FXToolUse:_a},props:so,setup(e,t){const r=c.shallowRef(),n=c.ref(),i=c.ref(),a=c.computed(()=>!!e.showAvatar),l=c.computed(()=>a.value===!0||e.header==="ContentHeader"),d=c.computed(()=>t.slots.leftFooter||t.slots.rightFooter),f=c.computed(()=>{var ae;return n0({},(ae=e.styles)==null?void 0:ae.footer)}),p=ae=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(ae.type==="md"&&ae.content){e.onPreview({content:ae.content,contentType:"markdown"});return}if(ae!=null&&ae.url){const xe=ae!=null&&ae.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:ae.url,previewMode:xe,title:ae.name})}}},g=ae=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const xe=ae==null?void 0:ae.filter(te=>te.type==="md"&&te.content);if(xe.length===0)return;const Ce=Object.fromEntries(xe.map(te=>[te.name,te.content??""]));e.onPreview({contentMap:Ce,contentType:"markdown"})},{renderFileEmbeddedContent:m,renderPageEmbeddedContent:x}=x1(),S=c.ref(""),C=c.computed(()=>{var xe,Ce;if((xe=e.content)!=null&&xe.footerContent)return e.content.footerContent;const ae=(Ce=e.content)==null?void 0:Ce.structuredContent;return ae&&(ae.footerTemplate||ae.footerUrl||ae.footerFile)?{type:ae.footerUrl?"page":ae.footerFile?"file":"template",pageUrl:ae.footerUrl,fileContent:ae.footerFile,template:ae.footerTemplate,width:ae.footerWidth,height:ae.footerHeight}:null});c.watch(()=>{var ae;return(ae=C.value)==null?void 0:ae.width},ae=>{if(!ae){S.value="";return}if(ae.endsWith("%")){const xe=parseFloat(ae);isNaN(xe)||c.nextTick(()=>{var te,ye;const Ce=(ye=(te=r.value)==null?void 0:te.parentElement)==null?void 0:ye.clientWidth;Ce&&(S.value=`${Ce*xe/100}px`)})}else S.value=ae},{immediate:!0});const _=ae=>{if(!ae||ae.length===0)return"我";const xe=ae.charAt(0);return/[\u4e00-\u9fa5]/.test(xe)?xe:xe.toUpperCase()};function F(){return e.header==="ContentHeader"?$3:U3}const z=F(),{renderHeader:E}=z(e,t),D=()=>{var Ce,te,ye;const ae=((Ce=e.content)==null?void 0:Ce.sender)??"发送人",xe=_(((te=e.content)==null?void 0:te.sender)??"");return c.createVNode("div",{class:"f-chat-bubble-avatar"},[(ye=e.content)!=null&&ye.avatar?c.createVNode("img",{src:e.content.avatar,alt:ae},null):c.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[xe])])},B=()=>{var xe;const ae=(xe=e.content)==null?void 0:xe.toolUseAboveText;return ae!=null&&ae.length?c.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[ae.map((Ce,te)=>c.createVNode(_a,{key:Ce.toolUseId??`tu-${te}`,content:Ce},null))]):null},R=()=>{var ae;return(ae=e.content)!=null&&ae.thinkingContent?c.createVNode(b9,{ref:n,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},W=()=>{var ae;return(ae=e.content)!=null&&ae.startedTodo?c.createVNode(E9,{ref:i,content:e.content.startedTodo},null):null},Y=ae=>{if(!(ae!=null&&ae.type))return null;const{type:xe}=ae;return xe==="page"&&ae.pageUrl?x(ae,{onNavigate:Ce=>{var te;(te=e.onPreview)==null||te.call(e,{url:Ce})}}):xe==="file"&&ae.fileContent?m(ae,{onPreviewFile:p,onBatchPreviewFile:g}):xe==="template"&&ae.template?ae.template():null},q=()=>{var te,ye,ne;if(!((ne=(ye=(te=e.content)==null?void 0:te.structuredContent)==null?void 0:ye.sections)!=null&&ne.length))return null;const{sections:ae,showDivider:xe}=e.content.structuredContent,Ce=ze=>{const{content:Ue,label:X}=ze;return X||Ue&&typeof Ue=="string"?c.createVNode(c.Fragment,null,[c.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),ze.label&&c.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[ze.label]),c.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[ze.content])]):Y(ze.content)};return c.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":xe}]},[ae.map((ze,Ue)=>c.createVNode("div",{key:Ue,class:["f-chat-bubble-structured-section",{"section-divider":ze.showDivider}]},[c.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[ze.icon&&(ze.icon.startsWith("http")||ze.icon.startsWith("//")||ze.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(ze.icon)?c.createVNode("img",{alt:ze.title,src:ze.icon,class:"f-chat-bubble-structured-section-icon"},null):c.createVNode("i",{class:`fx-icon ${ze.icon}`,style:ze.iconStyle},null)),c.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[ze.title])]),ze.items&&ze.items.length>0&&c.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[ze.items.map((X,Z)=>c.createVNode("div",{key:Z,class:"f-chat-bubble-structured-section-item"},[Ce(X)]))])]))])},pe=()=>{const ae=C.value;if(!ae)return null;const xe={};return S.value&&(xe.width=S.value),ae.height&&(xe.height=`${ae.height}px`),c.createVNode("div",{class:"f-chat-bubble-content-footer",style:xe},[Y(ae)])},he=()=>{const ae=e.attachmentRowClickOpensPreview!==!1?p:void 0;return c.createVNode(y1,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:ae,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?g:void 0,role:e.role},null)},ce=()=>{var xe;const ae=(xe=e.content)==null?void 0:xe.compositeInlineBlocks;return ae!=null&&ae.length?ae.map((Ce,te)=>Ce.kind==="userAuth"?c.createVNode(c.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${te}`,content:Ce.content,onConfirm:e.onUserAuthConfirm},null):c.createVNode(c.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${te}`,content:Ce.content,onOpen:e.onPreview},null)):null},be=()=>{var ae,xe,Ce,te,ye,ne;return c.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[l.value&&E(),he(),c.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(ae=e.content)!=null&&ae.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():c.createVNode(c.Fragment,null,[R(),B()]),W(),q(),c.createVNode(p9,{title:((xe=e.content)==null?void 0:xe.title)??"",subtitle:((Ce=e.content)==null?void 0:Ce.subtitle)??"",text:typeof((te=e.content)==null?void 0:te.text)=="string"?e.content.text:"",textFormat:((ye=e.content)==null?void 0:ye.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),pe(),(ne=e.compositeTailRender)==null?void 0:ne.call(e),ce()]),d.value&&c.createVNode("div",{class:"f-chat-bubble-footer",style:f.value},[t.slots.leftFooter&&c.createVNode("div",{class:"f-chat-bubble-footer-left"},[t.slots.leftFooter()]),t.slots.rightFooter&&c.createVNode("div",{class:"f-chat-bubble-footer-right"},[t.slots.rightFooter()])])])};return()=>c.createVNode("div",{class:"f-chat-bubble-container",ref:r},[c.createVNode("div",{class:`f-chat-bubble-wrapper ${e.placement}`},[e.placement==="start"?c.createVNode(c.Fragment,null,[a.value&&D(),be()]):c.createVNode(c.Fragment,null,[be(),a.value&&D()])])])}}),q2={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},Qu=c.defineComponent({name:"FXBubbleAction",props:q2,setup(e,t){const r=c.computed(()=>n0({},e.customStyle));return()=>t.slots.default&&c.createVNode("span",{class:"f-chat-bubble-footer-action",style:r.value},[t.slots.default()])}});Ei.install=e=>{e.component(Ei.name,Ei),e.component(Qu.name,Qu)};const j2={items:{type:Array,default:()=>[]},modelValue:{type:Number,default:0},direction:{type:String,default:"horizontal"},autoplay:{type:Boolean,default:!1},interval:{type:Number,default:3e3},loop:{type:Boolean,default:!0},trigger:{type:String,default:"click"},indicatorPosition:{type:String,default:"inside"},arrowVisibility:{type:String,default:"hover"},showIndicator:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showInfo:{type:Boolean,default:!0},height:{type:[String,Number],default:"400px"},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[String,Array,Object],default:""},customStyle:{type:[Object,String],default:""},buttonPosition:{type:String,default:"inner"}},$2={item:{type:Object,default:()=>({})},index:{type:Number,default:0},active:{type:Boolean,default:!1},showInfo:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},ps=c.defineComponent({name:"FXCarouselItem",props:$2,emits:["click"],setup(e,{slots:t,emit:r}){const n=c.computed(()=>{var m;const g={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return Ut(g,(m=e.classNames)==null?void 0:m.item)}),i=c.computed(()=>{var m,x;const g=n0({},(m=e.styles)==null?void 0:m.item);return n0(g,(x=e.styles)==null?void 0:x.item)}),a=()=>{var g,m,x;return e.item.image?c.createVNode("img",{class:["fx-carousel--item-image",(g=e.classNames)==null?void 0:g.image],style:(m=e.styles)==null?void 0:m.image,src:e.item.image,alt:(x=e.item.title)==null?void 0:x.toString()},null):null},l=()=>{var g,m,x,S;return e.item.content?c.createVNode("div",{class:["fx-carousel--item-content",(g=e.classNames)==null?void 0:g.content],style:(m=e.styles)==null?void 0:m.content},[e.item.content]):t.default?c.createVNode("div",{class:["fx-carousel--item-content",(x=e.classNames)==null?void 0:x.content],style:(S=e.styles)==null?void 0:S.content},[t.default()]):null},d=()=>{var g,m;return e.item.title?c.createVNode("h3",{class:["fx-carousel--item-title",(g=e.classNames)==null?void 0:g.title],style:(m=e.styles)==null?void 0:m.title},[e.item.title]):null},f=()=>{var g,m;return e.item.description?c.createVNode("p",{class:["fx-carousel--item-description",(g=e.classNames)==null?void 0:g.description],style:(m=e.styles)==null?void 0:m.description},[e.item.description]):null},p=g=>{e.item.disabled||r("click",g,e.item,e.index)};return()=>c.createVNode("div",{class:n.value,style:i.value,onClick:p},[a(),l(),e.showInfo&&c.createVNode("div",{class:"fx-carousel--item-info"},[d(),f()])])}});function M9(e){const{items:t,autoplay:r=!1,interval:n=3e3,loop:i=!0,direction:a="horizontal"}=e,l=c.ref(0),d=c.ref(!1),f=c.ref(null),p=c.computed(()=>t.length),g=c.computed(()=>p.value<=1);c.computed(()=>l.value===0?i?p.value-1:0:l.value-1),c.computed(()=>l.value===p.value-1?i?0:l.value:l.value+1);const m=c.computed(()=>{const D=-l.value*100;return{transform:a==="horizontal"?`translateX(${D}%)`:`translateY(${D}%)`,transition:"transform 0.5s ease"}}),x=D=>{D<0||D>=p.value||(l.value,l.value=D)},S=()=>{g.value||(l.value===p.value-1?x(i?0:l.value):x(l.value+1))},C=()=>{g.value||(l.value===0?x(i?p.value-1:0):x(l.value-1))},_=()=>{!r||g.value||(F(),f.value=window.setInterval(()=>{d.value||S()},n))},F=()=>{f.value&&(clearInterval(f.value),f.value=null)},z=()=>{d.value=!0,r&&F()},E=()=>{d.value=!1,r&&_()};return c.onMounted(()=>{_()}),c.onUnmounted(()=>{F()}),{currentIndex:l,totalItems:p,isSingleItem:g,trackStyle:m,goTo:x,next:S,prev:C,handleMouseEnter:z,handleMouseLeave:E}}const Di=c.defineComponent({name:"FXCarousel",props:j2,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:r}){const{currentIndex:n,isSingleItem:i,trackStyle:a,goTo:l,next:d,prev:f,handleMouseEnter:p,handleMouseLeave:g}=M9({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),m=R=>{r("update:modelValue",R),r("change",R,n.value)},x=c.computed(()=>{var W;const R={"fx-carousel":!0,"fx-carousel--vertical":e.direction==="vertical","fx-carousel--single":i.value,"fx-carousel--button-outer":e.buttonPosition==="outer","fx-carousel--button-inner":e.buttonPosition==="inner"};return Ut(R,(W=e.classNames)==null?void 0:W.root)}),S=c.computed(()=>{var Y;const R={height:typeof e.height=="number"?`${e.height}px`:e.height},W=n0(R,e.customStyle);return n0(W,(Y=e.styles)==null?void 0:Y.root)}),C=c.computed(()=>{var W;const R={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return Ut(R,(W=e.classNames)==null?void 0:W.container)}),_=c.computed(()=>{var W;return Ut({"fx-carousel--track":!0},(W=e.classNames)==null?void 0:W.track)}),F=c.computed(()=>{var W;const R={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return Ut(R,(W=e.classNames)==null?void 0:W.indicator)}),z=R=>{var Y,q;const W={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":R==="left","fx-carousel--arrow-right":R==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return W[`fx-carousel--arrow-${e.buttonPosition}`]=!0,Ut(W,R==="left"?(Y=e.classNames)==null?void 0:Y.arrowLeft:(q=e.classNames)==null?void 0:q.arrowRight)},E=R=>{var q,pe;if(i.value)return null;const W=R==="left"?f:d,Y=t[R==="left"?"prevArrow":"nextArrow"];return c.createVNode("button",{class:z(R),style:R==="left"?(q=e.styles)==null?void 0:q.arrowLeft:(pe=e.styles)==null?void 0:pe.arrowRight,onClick:W,"aria-label":`${R} arrow`},[Y?Y():c.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${R==="left"?"left":"right"}`},null)])},D=()=>{var R;return i.value||!e.showIndicator?null:c.createVNode("div",{class:F.value,style:(R=e.styles)==null?void 0:R.indicator},[e.items.map((W,Y)=>{var q,pe;return c.createVNode("button",{"aria-label":`indicator ${Y}`,key:Y,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":Y===n.value}],style:Y===n.value?(q=e.styles)==null?void 0:q.indicatorItemActive:(pe=e.styles)==null?void 0:pe.indicatorItem,onClick:()=>{l(Y),m(Y)}},null)})])},B=()=>c.createVNode("div",{class:_.value,style:a.value},[e.items.map((R,W)=>c.createVNode(ps,{key:R.id||`item_${W}`,item:R,showInfo:e.showInfo,index:W,active:W===n.value,styles:e.styles,classNames:e.classNames,onClick:(Y,q,pe)=>{r("item-click",Y,q,pe)}},{default:()=>{var Y,q;return[(Y=t.item)==null?void 0:Y.call(t,{item:R,index:W,active:W===n.value}),(q=t[`item${W}`])==null?void 0:q.call(t,{item:R,index:W,active:W===n.value})]}}))]);return()=>{var R;return c.createVNode("div",{class:x.value,style:S.value,onMouseenter:p,onMouseleave:g},[e.buttonPosition==="outer"&&E("left"),c.createVNode("div",{class:C.value,style:(R=e.styles)==null?void 0:R.container},[e.buttonPosition==="inner"&&E("left"),B(),e.buttonPosition==="inner"&&E("right")]),e.buttonPosition==="outer"&&E("right"),D()])}}});Di.install=e=>{e.component(Di.name,Di),e.component(ps.name,ps)};const U2={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function N9(e){const t=c.ref(-1),r=c.ref(-1),n=c.ref(0),i=c.ref(0),a=c.ref(!1),l=c.ref(!1),d=c.computed(()=>({display:a.value?"block":"none",left:`${n.value}px`,cursor:"e-resize"})),f=c.computed(()=>({display:l.value?"block":"none",top:`${i.value}px`,cursor:"n-resize"})),p=c.computed(()=>{const F={display:l.value||a.value?"block":"none"};return i.value>0&&(F.cursor="n-resize"),F});function g(F,z,E,D){const B=e.value;if(B){const{left:R,right:W,width:Y}=B.getBoundingClientRect();let q=F.clientX-R;D==="right"&&(q=W-F.clientX),q>z&&(q=z),q<E&&(q=E),D==="right"&&(q=Y-q),n.value=q}}function m(F,z,E,D){const B=e.value;if(B){const{top:R,bottom:W,height:Y}=B.getBoundingClientRect();let q=F.clientY-R;D==="bottom"&&(q=W-F.clientY),q>z&&(q=z),q<E&&(q=E),D==="bottom"&&(q=Y-q),i.value=q}}function x(){const F=e.value;if(F){const{width:z,height:E}=F.getBoundingClientRect();return{width:z,height:E}}return null}function S(){const F=e.value;return F?Array.from(F.querySelectorAll("[data-position]")).reduce((z,E)=>{const D=E.getAttribute("data-position");return z=Object.assign(z,{[D]:E}),z},{}):null}function C(F,z){const E=x(),D=S();if(E&&D){const B=D==null?void 0:D.right,R=D==null?void 0:D.left;if(F==="left"&&R)return B?E.width-B.clientWidth-z:E.width-z;if(F==="right"&&B)return R?E.width-R.clientWidth-z:E.width-z}}function _(F,z){const E=x(),D=S();if(E&&D){const B=D==null?void 0:D.bottom,R=D==null?void 0:D.top;if(F==="top"&&R)return B?E.height-B.clientHeight-z:E.height-z;if(F==="bottom"&&B)return R?E.height-R.clientHeight-z:E.height-z}}return{horizontalResizeHandleStyle:d,verticalResizeHandleStyle:f,resizeOverlayStyle:p,showHorizontalResizeHandle:a,showVerticalResizeHandle:l,horizontalResizeBarPosition:t,verticalResizeBarPosition:r,verticalResizeHandleOffset:i,horizontalResizeHandleOffset:n,draggingHorizontalResizeHandle:g,draggingVerticalResizeHandle:m,getPanelMaxWidth:C,getPanelMaxHeight:_}}const Fa=c.defineComponent({name:"FXSplitter",props:U2,emits:[],setup(e,t){const r=c.ref(),n=N9(r),{horizontalResizeHandleStyle:i,verticalResizeHandleStyle:a,resizeOverlayStyle:l}=n;c.provide("splitter",{useResizeHandleComposition:n});const d=c.computed(()=>Ut({"f-splitter":!0},e==null?void 0:e.customClass)),f=c.computed(()=>{const p={"flex-direction":e.direction==="row"?"row":"column"};return n0(p,e==null?void 0:e.customStyle)});return()=>c.createVNode("div",{class:d.value,ref:r,style:f.value},[t.slots.default&&t.slots.default(),c.createVNode("div",{class:"f-splitter-resize-overlay",style:l.value},null),c.createVNode("div",{class:"f-splitter-horizontal-resize-proxy",style:i.value},null),c.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:a.value},null)])}}),z9={customClass:{type:String,defaut:""},customStyle:{type:String,default:""},width:{type:Number},height:{type:Number},position:{type:String,default:"left"},visible:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},resizeHandle:{type:String,default:""},collapsable:{type:Boolean,default:!1},minWidth:{type:Number,default:100},minHeight:{type:Number,default:100},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:0}};function _9(e,t){const r=c.ref(e.width),n=c.ref(e.height),{horizontalResizeBarPosition:i,horizontalResizeHandleOffset:a,showHorizontalResizeHandle:l,showVerticalResizeHandle:d,verticalResizeBarPosition:f,verticalResizeHandleOffset:p,draggingHorizontalResizeHandle:g,draggingVerticalResizeHandle:m,getPanelMaxWidth:x,getPanelMaxHeight:S}=t;let C="",_,F,z;const E=()=>e.maxWidth?e.maxWidth:x(C,e.minWidth)||0,D=()=>e.maxHeight?e.maxHeight:S(C,e.minHeight)||0;function B(Y){if((C==="left"||C==="right")&&F){const{left:q}=F.getBoundingClientRect(),{width:pe}=_.getBoundingClientRect(),he=Y.clientX-q;let ce=C==="left"?(pe||0)+(he-i.value):(pe||0)-(he-i.value);ce=e.minWidth>0?Math.max(e.minWidth,ce):ce;const be=E();be!=null&&be>0&&(ce=be>ce?ce:be),r.value=ce}if((C==="top"||C==="bottom")&&F){const{top:q}=F.getBoundingClientRect(),{height:pe}=_.getBoundingClientRect(),he=Y.clientY-q;let ce=C==="top"?(pe||0)+(he-f.value):(pe||0)-(he-f.value);ce=e.minHeight>0?Math.max(e.minHeight,ce):ce;const be=D();be!=null&&be>0&&(ce=be>ce?ce:be),n.value=ce}a.value=0,p.value=0,i.value=-1,f.value=-1,l.value=!1,d.value=!1,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",B),document.body.style.userSelect="",C="",_=null,F=null}function R(Y,q,pe){if(C=q,_=pe,l.value=!0,F=Y.composedPath().find(ce=>ce.className.split(" ")[0]==="f-splitter"),F){const{left:ce}=F.getBoundingClientRect();a.value=Y.clientX-ce,i.value=Y.clientX-ce;const be=E();z=ae=>g(ae,be,e.minWidth,C),document.addEventListener("mousemove",z),document.addEventListener("mouseup",B),document.body.style.userSelect="none"}}function W(Y,q,pe){if(C=q,_=pe,d.value=!0,F=Y.composedPath().find(ce=>ce.className.split(" ")[0]==="f-splitter"),F){const{top:ce}=F.getBoundingClientRect();p.value=Y.clientY-ce,f.value=Y.clientY-ce;const be=D();z=ae=>m(ae,be,e.minHeight,C),document.addEventListener("mousemove",z),document.addEventListener("mouseup",B),document.body.style.userSelect="none"}}return{actualWidth:r,actualHeight:n,onClickSplitterHorizontalResizeBar:R,onClickSplitterVerticalResizeBar:W}}const Mi=c.defineComponent({name:"FSplitterPane",props:z9,emits:[],setup(e,t){const r=c.ref(),n=c.inject("splitter"),{useResizeHandleComposition:i}=n,a=_9(e,i),{actualHeight:l,actualWidth:d,onClickSplitterHorizontalResizeBar:f,onClickSplitterVerticalResizeBar:p}=a,g=c.ref(e.position),m=c.computed(()=>{const D={"f-splitter-pane":!0,"f-splitter-pane-main":g.value==="center","has-resize-bar":e.resizable};return D["f-splitter-pane-"+g.value]=!0,Ut(D,e==null?void 0:e.customClass)}),x=c.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(D=>["e","n","s","w"].find(B=>B===D)):[]),S=c.computed(()=>{const D={};return(d.value||d.value===0)&&(g.value==="left"||g.value==="right"||x.value.find(B=>B==="e")||x.value.find(B=>B==="w"))&&(D.width=`${d.value}px`),(l.value||l.value===0)&&(g.value==="bottom"||g.value==="top"||x.value.find(B=>B==="s")||x.value.find(B=>B==="n"))&&(D.height=`${l.value}px`),e.visible||(D.display="none"),n0(D,e==null?void 0:e.customStyle)}),C=c.computed(()=>({"f-splitter-resize-bar":!0,"f-splitter-resize-bar-e":g.value==="left","f-splitter-resize-bar-n":g.value==="bottom","f-splitter-resize-bar-s":g.value==="top","f-splitter-resize-bar-w":g.value==="right"}));function _(D){return{e:"left",w:"right",s:"top",n:"bottom"}[D]||D}function F(D,B){B=_(B),["left","right"].find(R=>R===B)&&f(D,B,r.value),["top","bottom"].find(R=>R===B)&&p(D,B,r.value)}function z(){return x.value.length>0?x.value.map(D=>c.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+D,onMousedown:B=>F(B,D)},null)):c.createVNode("span",{class:C.value,onMousedown:D=>F(D,g.value)},null)}function E(){d.value=e.width,l.value=e.height,S.value}return t.expose({reset:E}),()=>c.createVNode("div",{ref:r,class:m.value,style:S.value,"data-position":g.value},[t.slots.default&&t.slots.default(),e.resizable&&z()])}});Fa.install=e=>{e.component(Fa.name,Fa),e.component(Mi.name,Mi)};const W2={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},G2={content:{type:String,default:null}},F9=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},I9=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},Ni=(e,t=new WeakMap)=>{if(e===null||F9(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return I9(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof Function)return e;if(e instanceof Map){const n=new Map;return t.set(e,n),e.forEach((i,a)=>{n.set(a,Ni(i,t))}),n}if(e instanceof Set){const n=new Set;t.set(e,n);for(const i of e)n.add(Ni(i,t));return n}if(Array.isArray(e)){const n=[];return t.set(e,n),e.forEach(i=>{n.push(Ni(i,t))}),n}const r={};t.set(e,r);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Ni(e[n],t));return r},B9=(e,t=200)=>{let r=0;return(...n)=>new Promise(i=>{r&&(clearTimeout(r),i("cancel")),r=window.setTimeout(()=>{e.apply(void 0,n),r=0,i("done")},t)})},Ju=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,gs=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),O9=new Set(["__proto__","constructor","prototype"]),L9=e=>!O9.has(e),ec=(e,t,r={})=>{if(Array.isArray(e)&&Array.isArray(t))return tc(e,t,r);const{excludeKeys:n}=r,i=e,a=t;for(const l of Object.keys(a)){if(!L9(l))continue;const d=a[l],f=i[l];n&&n(l)?i[l]=d:Array.isArray(d)&&Array.isArray(f)?i[l]=tc(f,d,r):gs(d)&&gs(f)?i[l]=ec(f,d,r):i[l]=d}return e},tc=(e,t,r)=>{const n=e.slice();return t.forEach((i,a)=>{const l=n[a];Array.isArray(i)&&Array.isArray(l)?n[a]=tc(l,i,r):gs(i)&&gs(l)?n[a]=ec(l,i,r):n[a]=i}),n},Le="md-editor",St="https://unpkg.com",R9=`${St}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,X2={main:`${St}/prettier@3.8.1/standalone.js`,markdown:`${St}/prettier@3.8.1/plugins/markdown.js`},P9={css:`${St}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${St}/cropperjs@1.6.2/dist/cropper.min.js`},V9=`${St}/screenfull@5.2.0/dist/screenfull.js`,H9=`${St}/mermaid@11.12.3/dist/mermaid.min.js`,q9={js:`${St}/katex@0.16.33/dist/katex.min.js`,css:`${St}/katex@0.16.33/dist/katex.min.css`},rc={a11y:{light:`${St}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${St}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${St}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${St}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${St}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${St}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${St}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${St}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${St}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${St}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${St}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${St}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${St}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${St}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${St}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${St}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},j9=`${St}/echarts@6.0.0/dist/echarts.min.js`,Y2={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",previewOnly:"仅预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",previewOnly:"preview only",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Image Link",upload:"Upload Images",clip2upload:"Crop And Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Character Count",scrollAuto:"Scroll Auto"}}},wr={editorExtensions:{highlight:{js:R9,css:rc},prettier:{standaloneJs:X2.main,parserMarkdownJs:X2.markdown},cropper:{...P9},screenfull:{js:V9},mermaid:{js:H9,enableZoom:!0},katex:{...q9},echarts:{js:j9}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},$9=({instance:e,ctx:t,props:r={}},n="default")=>{const i=(e==null?void 0:e.$slots[n])||(t==null?void 0:t.slots[n]);return(i?i(e):"")||r[n]},U9="buildFinished",nc="errorCatcher",ac="catalogChanged",W9="pushCatalog",Z2="rerender",G9="taskStateChanged";class X9{constructor(){Tt(this,"pools",{})}remove(t,r,n){const i=this.pools[t]&&this.pools[t][r];i&&(this.pools[t][r]=i.filter(a=>a!==n))}clear(t){this.pools[t]={}}on(t,r){return this.pools[t]||(this.pools[t]={}),this.pools[t][r.name]||(this.pools[t][r.name]=[]),this.pools[t][r.name].push(r.callback),this.pools[t][r.name].includes(r.callback)}emit(t,r,...n){this.pools[t]||(this.pools[t]={});const i=this.pools[t][r];i&&i.forEach(a=>{try{a(...n)}catch(l){console.error(`${r} monitor event exception!`,l)}})}}const ur=new X9,Y9=(e,t)=>{if(!e)return e;const r=t.split(`
|
|
567
|
+
`),n=['<span rn-wrapper aria-hidden="true">'];return r.forEach(()=>{n.push("<span></span>")}),n.push("</span>"),`<span class="${Le}-code-block">${e}</span>${n.join("")}`};async function K2(e){if(typeof e=="string"){if(window.isSecureContext&&navigator.clipboard)return await navigator.clipboard.writeText(e);{const t=document.createElement("textarea");let r=!1;if(t.value=e,t.style.position="fixed",t.style.opacity=0,t.style.zIndex="-10000",t.style.top="-10000",document.body.appendChild(t),t.select(),r=document.execCommand("copy"),document.body.removeChild(t),r)return;throw new Error('Failed to copy content via "execCommand"!')}}}const Z9={copy:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy ${Le}-icon"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,"collapse-tips":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-chevron-left ${Le}-icon"><circle cx="12" cy="12" r="10"/><path d="m14 16-4-4 4-4"/></svg>`,pin:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin ${Le}-icon"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>`,"pin-off":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin-off ${Le}-icon"><path d="M12 17v5"/><path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"/><path d="m2 2 20 20"/><path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check ${Le}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},Gr=(e,t)=>typeof t[e]=="string"?t[e]:Z9[e],Mn=(e,t,r="")=>{var i;const n=document.getElementById(t.id);if(n)r!==""&&(Reflect.get(window,r)?(i=t.onload)==null||i.call(n,new Event("load")):t.onload&&n.addEventListener("load",t.onload));else{const a={...t};a.onload=null;const l=Q9(e,a);t.onload&&l.addEventListener("load",t.onload),document.head.appendChild(l)}},K9=(e,t)=>{var r;(r=document.getElementById(t.id))==null||r.remove(),Mn(e,t)},Q9=(e,t)=>{const r=document.createElement(e);return Object.keys(t).forEach(n=>{t[n]!==void 0&&(r[n]=t[n])}),r},J9=(e,t)=>{const r=new Map;return e==null||e.forEach(n=>{let i=n.querySelector(`.${Le}-mermaid-action`);i?i.querySelector(`.${Le}-mermaid-copy`)||i.insertAdjacentHTML("beforeend",`<span class="${Le}-mermaid-copy">${Gr("copy",t.customIcon)}</span>`):(n.insertAdjacentHTML("beforeend",`<div class="${Le}-mermaid-action"><span class="${Le}-mermaid-copy">${Gr("copy",t.customIcon)}</span></div>`),i=n.querySelector(`.${Le}-mermaid-action`));const a=i.querySelector(`.${Le}-mermaid-copy`);let l=-1;const d=()=>{clearTimeout(l),K2(n.dataset.content||"").then(()=>{a.innerHTML=Gr("check",t.customIcon)}).catch(()=>{a.innerHTML=Gr("copy",t.customIcon)}).finally(()=>{l=window.setTimeout(()=>{a.innerHTML=Gr("copy",t.customIcon)},1500)})};a.addEventListener("click",d),r.set(n,{removeClick:()=>{a.removeEventListener("click",d)}})}),()=>{r.forEach(({removeClick:n})=>{n==null||n()}),r.clear()}},eg=(()=>{const e=t=>{if(!t)return()=>{};const r=t.firstChild;let n=1,i=0,a=0,l=!1,d,f,p,g=1;const m=()=>{r.style.transform=`translate(${i}px, ${a}px) scale(${n})`},x=B=>{B.touches.length===1?(l=!0,d=B.touches[0].clientX-i,f=B.touches[0].clientY-a):B.touches.length===2&&(p=Math.hypot(B.touches[0].clientX-B.touches[1].clientX,B.touches[0].clientY-B.touches[1].clientY),g=n)},S=B=>{if(B.preventDefault(),l&&B.touches.length===1)i=B.touches[0].clientX-d,a=B.touches[0].clientY-f,m();else if(B.touches.length===2){const R=Math.hypot(B.touches[0].clientX-B.touches[1].clientX,B.touches[0].clientY-B.touches[1].clientY)/p,W=n;n=g*(1+(R-1));const Y=(B.touches[0].clientX+B.touches[1].clientX)/2,q=(B.touches[0].clientY+B.touches[1].clientY)/2,pe=r.getBoundingClientRect(),he=(Y-pe.left)/W,ce=(q-pe.top)/W;i-=he*(n-W),a-=ce*(n-W),m()}},C=()=>{l=!1},_=B=>{B.preventDefault();const R=.02,W=n;B.deltaY<0?n+=R:n=Math.max(.1,n-R);const Y=r.getBoundingClientRect(),q=B.clientX-Y.left,pe=B.clientY-Y.top;i-=q/W*(n-W),a-=pe/W*(n-W),m()},F=B=>{l=!0,d=B.clientX-i,f=B.clientY-a},z=B=>{l&&(i=B.clientX-d,a=B.clientY-f,m())},E=()=>{l=!1},D=()=>{l=!1};return t.addEventListener("touchstart",x,{passive:!1}),t.addEventListener("touchmove",S,{passive:!1}),t.addEventListener("touchend",C),t.addEventListener("wheel",_,{passive:!1}),t.addEventListener("mousedown",F),t.addEventListener("mousemove",z),t.addEventListener("mouseup",E),t.addEventListener("mouseleave",D),()=>{t.removeEventListener("touchstart",x),t.removeEventListener("touchmove",S),t.removeEventListener("touchend",C),t.removeEventListener("wheel",_),t.removeEventListener("mousedown",F),t.removeEventListener("mousemove",z),t.removeEventListener("mouseup",E),t.removeEventListener("mouseleave",D)}};return(t,r)=>{const n=new Map;return t==null||t.forEach(i=>{let a=i.querySelector(`.${Le}-mermaid-action`);a?a.querySelector(`.${Le}-mermaid-zoom`)||a.insertAdjacentHTML("beforeend",`<span class="${Le}-mermaid-zoom">${Gr("pin-off",r.customIcon)}</span>`):(i.insertAdjacentHTML("beforeend",`<div class="${Le}-mermaid-action"><span class="${Le}-mermaid-zoom">${Gr("pin-off",r.customIcon)}</span></div>`),a=i.querySelector(`.${Le}-mermaid-action`));const l=a.querySelector(`.${Le}-mermaid-zoom`),d=()=>{const f=n.get(i);if(f!=null&&f.removeEvent)f.removeEvent(),i.removeAttribute("data-grab"),n.set(i,{removeClick:f.removeClick}),l.innerHTML=Gr("pin-off",r.customIcon);else{const p=e(i);i.setAttribute("data-grab",""),n.set(i,{removeEvent:p,removeClick:f==null?void 0:f.removeClick}),l.innerHTML=Gr("pin",r.customIcon)}};l.addEventListener("click",d),n.set(i,{removeClick:()=>l.removeEventListener("click",d)})}),()=>{n.forEach(({removeEvent:i,removeClick:a})=>{i==null||i(),a==null||a()}),n.clear()}}})(),Q2=new Set([!0,!1,"alt","title"]);function J2(e,t){return(Array.isArray(e)?e:[]).filter(([r])=>r!==t)}function ef(e,t){e&&e.attrs&&(e.attrs=J2(e.attrs,t))}function tg(e,t){if(!Q2.has(e))throw new TypeError(`figcaption must be one of: ${[...Q2]}.`);if(e==="alt")return t.content;const r=t.attrs.find(([n])=>n==="title");return Array.isArray(r)&&r[1]?(ef(t,"title"),r[1]):void 0}function rg(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(r){let n=1;for(let i=1,a=r.tokens.length;i<a-1;++i){const l=r.tokens[i];if(l.type!=="inline"||!l.children||l.children.length!==1&&l.children.length!==3||l.children.length===1&&l.children[0].type!=="image")continue;if(l.children.length===3){const[p,g,m]=l.children;if(p.type!=="link_open"||g.type!=="image"||m.type!=="link_close")continue}if(i!==0&&r.tokens[i-1].type!=="paragraph_open"||i!==a-1&&r.tokens[i+1].type!=="paragraph_close")continue;const d=r.tokens[i-1];let f;if(d.type="figure_open",d.tag="figure",r.tokens[i+1].type="figure_close",r.tokens[i+1].tag="figure",t.dataType&&r.tokens[i-1].attrPush(["data-type","image"]),t.link&&l.children.length===1){[f]=l.children;const p=new r.Token("link_open","a",1);p.attrPush(["href",f.attrGet("src")]),l.children.unshift(p),l.children.push(new r.Token("link_close","a",-1))}if(f=l.children.length===1?l.children[0]:l.children[1],t.figcaption){const p=tg(t.figcaption,f);if(p){const[g]=e.parseInline(p,r.env);l.children.push(new r.Token("figcaption_open","figcaption",1)),l.children.push(...g.children),l.children.push(new r.Token("figcaption_close","figcaption",-1)),f.attrs&&(f.attrs=J2(f.attrs,"title"))}}if(t.copyAttrs&&f.attrs){const p=t.copyAttrs===!0?"":t.copyAttrs;d.attrs=f.attrs.filter(([g])=>g.match(p)).map(g=>Array.from(g))}if(t.tabindex&&(r.tokens[i-1].attrPush(["tabindex",n]),n++),t.lazy&&(f.attrs.some(([p])=>p==="loading")||f.attrs.push(["loading","lazy"])),t.async&&(f.attrs.some(([p])=>p==="decoding")||f.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let p=!1;for(let g=0,m=f.attrs.length;g<m&&!p;g++){const x=f.attrs[g];x[0]==="class"&&(x[1]=`${x[1]} ${t.classes}`,p=!0)}p||f.attrs.push(["class",t.classes])}if(t.removeSrc){const p=f.attrs.find(([g])=>g==="src");f.attrs.push(["data-src",p[1]]),ef(f,"src")}}})}const ng=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function ag(e,t){const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==126||t||n+2>=r)return!1;e.pos=n+1;let i=!1;for(;e.pos<r;){if(e.src.charCodeAt(e.pos)===126){i=!0;break}e.md.inline.skipToken(e)}if(!i||n+1===e.pos)return e.pos=n,!1;const a=e.src.slice(n+1,e.pos);if(a.match(/(^|[^\\])(\\\\)*\s/))return e.pos=n,!1;e.posMax=e.pos,e.pos=n+1;const l=e.push("sub_open","sub",1);l.markup="~";const d=e.push("text","",0);d.content=a.replace(ng,"$1");const f=e.push("sub_close","sub",-1);return f.markup="~",e.pos=e.posMax+1,e.posMax=r,!0}function ig(e){e.inline.ruler.after("emphasis","sub",ag)}const og=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function sg(e,t){const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==94||t||n+2>=r)return!1;e.pos=n+1;let i=!1;for(;e.pos<r;){if(e.src.charCodeAt(e.pos)===94){i=!0;break}e.md.inline.skipToken(e)}if(!i||n+1===e.pos)return e.pos=n,!1;const a=e.src.slice(n+1,e.pos);if(a.match(/(^|[^\\])(\\\\)*\s/))return e.pos=n,!1;e.posMax=e.pos,e.pos=n+1;const l=e.push("sup_open","sup",1);l.markup="^";const d=e.push("text","",0);d.content=a.replace(og,"$1");const f=e.push("sup_close","sup",-1);return f.markup="^",e.pos=e.posMax+1,e.posMax=r,!0}function lg(e){e.inline.ruler.after("emphasis","sup",sg)}var ug=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tf=new Set,ic=typeof process=="object"&&process?process:{},rf=(e,t,r,n)=>{typeof ic.emitWarning=="function"?ic.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},bs=globalThis.AbortController,nf=globalThis.AbortSignal;if(typeof bs>"u"){nf=class{constructor(){Tt(this,"onabort");Tt(this,"_onabort",[]);Tt(this,"reason");Tt(this,"aborted",!1)}addEventListener(r,n){this._onabort.push(n)}},bs=class{constructor(){Tt(this,"signal",new nf);t()}abort(r){var n,i;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let a of this.signal._onabort)a(r);(i=(n=this.signal).onabort)==null||i.call(n,r)}}};let e=((mh=ic.env)==null?void 0:mh.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,rf("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var cg=e=>!tf.has(e),Nn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),af=e=>Nn(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?ys:null:null,ys=class extends Array{constructor(t){super(t),this.fill(0)}},dg=(Xr=class{constructor(t,r){Tt(this,"heap");Tt(this,"length");if(!V(Xr,Pa))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}static create(t){let r=af(t);if(!r)return[];Ge(Xr,Pa,!0);let n=new Xr(t,r);return Ge(Xr,Pa,!1),n}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Pa=new WeakMap,st(Xr,Pa,!1),Xr),fg=($a=class{constructor(t){st(this,Be);st(this,cr);st(this,K0);st(this,kr);st(this,aa);st(this,Ar);st(this,Va);st(this,Ha);st(this,Sr);Tt(this,"ttl");Tt(this,"ttlResolution");Tt(this,"ttlAutopurge");Tt(this,"updateAgeOnGet");Tt(this,"updateAgeOnHas");Tt(this,"allowStale");Tt(this,"noDisposeOnSet");Tt(this,"noUpdateTTL");Tt(this,"maxEntrySize");Tt(this,"sizeCalculation");Tt(this,"noDeleteOnFetchRejection");Tt(this,"noDeleteOnStaleGet");Tt(this,"allowStaleOnFetchAbort");Tt(this,"allowStaleOnFetchRejection");Tt(this,"ignoreFetchAbort");st(this,i0);st(this,Cr);st(this,Qt);st(this,Et);st(this,et);st(this,F0);st(this,Q0);st(this,w0);st(this,m0);st(this,Tr);st(this,p0);st(this,Er);st(this,Dr);st(this,J0);st(this,er);st(this,Mr);st(this,In);st(this,I0);st(this,qa);st(this,ia,()=>{});st(this,un,()=>{});st(this,Zi,()=>{});st(this,tr,()=>!1);st(this,oa,t=>{});st(this,ja,(t,r,n)=>{});st(this,Ki,(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Tt(this,ph,"LRUCache");let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:a,updateAgeOnGet:l,updateAgeOnHas:d,allowStale:f,dispose:p,onInsert:g,disposeAfter:m,noDisposeOnSet:x,noUpdateTTL:S,maxSize:C=0,maxEntrySize:_=0,sizeCalculation:F,fetchMethod:z,memoMethod:E,noDeleteOnFetchRejection:D,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:W,ignoreFetchAbort:Y,perf:q}=t;if(q!==void 0&&typeof(q==null?void 0:q.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(Ge(this,Sr,q??ug),r!==0&&!Nn(r))throw new TypeError("max option must be a nonnegative integer");let pe=r?af(r):Array;if(!pe)throw new Error("invalid max value: "+r);if(Ge(this,cr,r),Ge(this,K0,C),this.maxEntrySize=_||V(this,K0),this.sizeCalculation=F,this.sizeCalculation){if(!V(this,K0)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(Ge(this,Ha,E),z!==void 0&&typeof z!="function")throw new TypeError("fetchMethod must be a function if specified");if(Ge(this,Va,z),Ge(this,In,!!z),Ge(this,Qt,new Map),Ge(this,Et,new Array(r).fill(void 0)),Ge(this,et,new Array(r).fill(void 0)),Ge(this,F0,new pe(r)),Ge(this,Q0,new pe(r)),Ge(this,w0,0),Ge(this,m0,0),Ge(this,Tr,dg.create(r)),Ge(this,i0,0),Ge(this,Cr,0),typeof p=="function"&&Ge(this,kr,p),typeof g=="function"&&Ge(this,aa,g),typeof m=="function"?(Ge(this,Ar,m),Ge(this,p0,[])):(Ge(this,Ar,void 0),Ge(this,p0,void 0)),Ge(this,Mr,!!V(this,kr)),Ge(this,qa,!!V(this,aa)),Ge(this,I0,!!V(this,Ar)),this.noDisposeOnSet=!!x,this.noUpdateTTL=!!S,this.noDeleteOnFetchRejection=!!D,this.allowStaleOnFetchRejection=!!R,this.allowStaleOnFetchAbort=!!W,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(V(this,K0)!==0&&!Nn(V(this,K0)))throw new TypeError("maxSize must be a positive integer if specified");if(!Nn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");qe(this,Be,F3).call(this)}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!B,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!d,this.ttlResolution=Nn(i)||i===0?i:1,this.ttlAutopurge=!!a,this.ttl=n||0,this.ttl){if(!Nn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");qe(this,Be,a1).call(this)}if(V(this,cr)===0&&this.ttl===0&&V(this,K0)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!V(this,cr)&&!V(this,K0)){let he="LRU_CACHE_UNBOUNDED";cg(he)&&(tf.add(he),rf("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",he,$a))}}get perf(){return V(this,Sr)}static unsafeExposeInternals(t){return{starts:V(t,Dr),ttls:V(t,J0),autopurgeTimers:V(t,er),sizes:V(t,Er),keyMap:V(t,Qt),keyList:V(t,Et),valList:V(t,et),next:V(t,F0),prev:V(t,Q0),get head(){return V(t,w0)},get tail(){return V(t,m0)},free:V(t,Tr),isBackgroundFetch:r=>{var n;return qe(n=t,Be,Nt).call(n,r)},backgroundFetch:(r,n,i,a)=>{var l;return qe(l=t,Be,fl).call(l,r,n,i,a)},moveToTail:r=>{var n;return qe(n=t,Be,oo).call(n,r)},indexes:r=>{var n;return qe(n=t,Be,Un).call(n,r)},rindexes:r=>{var n;return qe(n=t,Be,Wn).call(n,r)},isStale:r=>{var n;return V(n=t,tr).call(n,r)}}}get max(){return V(this,cr)}get maxSize(){return V(this,K0)}get calculatedSize(){return V(this,Cr)}get size(){return V(this,i0)}get fetchMethod(){return V(this,Va)}get memoMethod(){return V(this,Ha)}get dispose(){return V(this,kr)}get onInsert(){return V(this,aa)}get disposeAfter(){return V(this,Ar)}getRemainingTTL(t){return V(this,Qt).has(t)?1/0:0}*entries(){for(let t of qe(this,Be,Un).call(this))V(this,et)[t]!==void 0&&V(this,Et)[t]!==void 0&&!qe(this,Be,Nt).call(this,V(this,et)[t])&&(yield[V(this,Et)[t],V(this,et)[t]])}*rentries(){for(let t of qe(this,Be,Wn).call(this))V(this,et)[t]!==void 0&&V(this,Et)[t]!==void 0&&!qe(this,Be,Nt).call(this,V(this,et)[t])&&(yield[V(this,Et)[t],V(this,et)[t]])}*keys(){for(let t of qe(this,Be,Un).call(this)){let r=V(this,Et)[t];r!==void 0&&!qe(this,Be,Nt).call(this,V(this,et)[t])&&(yield r)}}*rkeys(){for(let t of qe(this,Be,Wn).call(this)){let r=V(this,Et)[t];r!==void 0&&!qe(this,Be,Nt).call(this,V(this,et)[t])&&(yield r)}}*values(){for(let t of qe(this,Be,Un).call(this))V(this,et)[t]!==void 0&&!qe(this,Be,Nt).call(this,V(this,et)[t])&&(yield V(this,et)[t])}*rvalues(){for(let t of qe(this,Be,Wn).call(this))V(this,et)[t]!==void 0&&!qe(this,Be,Nt).call(this,V(this,et)[t])&&(yield V(this,et)[t])}[(gh=Symbol.iterator,ph=Symbol.toStringTag,gh)](){return this.entries()}find(t,r={}){for(let n of qe(this,Be,Un).call(this)){let i=V(this,et)[n],a=qe(this,Be,Nt).call(this,i)?i.__staleWhileFetching:i;if(a!==void 0&&t(a,V(this,Et)[n],this))return this.get(V(this,Et)[n],r)}}forEach(t,r=this){for(let n of qe(this,Be,Un).call(this)){let i=V(this,et)[n],a=qe(this,Be,Nt).call(this,i)?i.__staleWhileFetching:i;a!==void 0&&t.call(r,a,V(this,Et)[n],this)}}rforEach(t,r=this){for(let n of qe(this,Be,Wn).call(this)){let i=V(this,et)[n],a=qe(this,Be,Nt).call(this,i)?i.__staleWhileFetching:i;a!==void 0&&t.call(r,a,V(this,Et)[n],this)}}purgeStale(){let t=!1;for(let r of qe(this,Be,Wn).call(this,{allowStale:!0}))V(this,tr).call(this,r)&&(qe(this,Be,Gn).call(this,V(this,Et)[r],"expire"),t=!0);return t}info(t){let r=V(this,Qt).get(t);if(r===void 0)return;let n=V(this,et)[r],i=qe(this,Be,Nt).call(this,n)?n.__staleWhileFetching:n;if(i===void 0)return;let a={value:i};if(V(this,J0)&&V(this,Dr)){let l=V(this,J0)[r],d=V(this,Dr)[r];if(l&&d){let f=l-(V(this,Sr).now()-d);a.ttl=f,a.start=Date.now()}}return V(this,Er)&&(a.size=V(this,Er)[r]),a}dump(){let t=[];for(let r of qe(this,Be,Un).call(this,{allowStale:!0})){let n=V(this,Et)[r],i=V(this,et)[r],a=qe(this,Be,Nt).call(this,i)?i.__staleWhileFetching:i;if(a===void 0||n===void 0)continue;let l={value:a};if(V(this,J0)&&V(this,Dr)){l.ttl=V(this,J0)[r];let d=V(this,Sr).now()-V(this,Dr)[r];l.start=Math.floor(Date.now()-d)}V(this,Er)&&(l.size=V(this,Er)[r]),t.unshift([n,l])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=V(this,Sr).now()-i}this.set(r,n.value,n)}}set(t,r,n={}){var x,S,C,_,F,z,E;if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:a,noDisposeOnSet:l=this.noDisposeOnSet,sizeCalculation:d=this.sizeCalculation,status:f}=n,{noUpdateTTL:p=this.noUpdateTTL}=n,g=V(this,Ki).call(this,t,r,n.size||0,d);if(this.maxEntrySize&&g>this.maxEntrySize)return f&&(f.set="miss",f.maxEntrySizeExceeded=!0),qe(this,Be,Gn).call(this,t,"set"),this;let m=V(this,i0)===0?void 0:V(this,Qt).get(t);if(m===void 0)m=V(this,i0)===0?V(this,m0):V(this,Tr).length!==0?V(this,Tr).pop():V(this,i0)===V(this,cr)?qe(this,Be,dl).call(this,!1):V(this,i0),V(this,Et)[m]=t,V(this,et)[m]=r,V(this,Qt).set(t,m),V(this,F0)[V(this,m0)]=m,V(this,Q0)[m]=V(this,m0),Ge(this,m0,m),cl(this,i0)._++,V(this,ja).call(this,m,g,f),f&&(f.set="add"),p=!1,V(this,qa)&&((x=V(this,aa))==null||x.call(this,r,t,"add"));else{qe(this,Be,oo).call(this,m);let D=V(this,et)[m];if(r!==D){if(V(this,In)&&qe(this,Be,Nt).call(this,D)){D.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:B}=D;B!==void 0&&!l&&(V(this,Mr)&&((S=V(this,kr))==null||S.call(this,B,t,"set")),V(this,I0)&&((C=V(this,p0))==null||C.push([B,t,"set"])))}else l||(V(this,Mr)&&((_=V(this,kr))==null||_.call(this,D,t,"set")),V(this,I0)&&((F=V(this,p0))==null||F.push([D,t,"set"])));if(V(this,oa).call(this,m),V(this,ja).call(this,m,g,f),V(this,et)[m]=r,f){f.set="replace";let B=D&&qe(this,Be,Nt).call(this,D)?D.__staleWhileFetching:D;B!==void 0&&(f.oldValue=B)}}else f&&(f.set="update");V(this,qa)&&((z=this.onInsert)==null||z.call(this,r,t,r===D?"update":"replace"))}if(i!==0&&!V(this,J0)&&qe(this,Be,a1).call(this),V(this,J0)&&(p||V(this,Zi).call(this,m,i,a),f&&V(this,un).call(this,f,m)),!l&&V(this,I0)&&V(this,p0)){let D=V(this,p0),B;for(;B=D==null?void 0:D.shift();)(E=V(this,Ar))==null||E.call(this,...B)}return this}pop(){var t;try{for(;V(this,i0);){let r=V(this,et)[V(this,w0)];if(qe(this,Be,dl).call(this,!0),qe(this,Be,Nt).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(V(this,I0)&&V(this,p0)){let r=V(this,p0),n;for(;n=r==null?void 0:r.shift();)(t=V(this,Ar))==null||t.call(this,...n)}}}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,a=V(this,Qt).get(t);if(a!==void 0){let l=V(this,et)[a];if(qe(this,Be,Nt).call(this,l)&&l.__staleWhileFetching===void 0)return!1;if(V(this,tr).call(this,a))i&&(i.has="stale",V(this,un).call(this,i,a));else return n&&V(this,ia).call(this,a),i&&(i.has="hit",V(this,un).call(this,i,a)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=V(this,Qt).get(t);if(i===void 0||!n&&V(this,tr).call(this,i))return;let a=V(this,et)[i];return qe(this,Be,Nt).call(this,a)?a.__staleWhileFetching:a}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:l=this.ttl,noDisposeOnSet:d=this.noDisposeOnSet,size:f=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:g=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:x=this.allowStaleOnFetchRejection,ignoreFetchAbort:S=this.ignoreFetchAbort,allowStaleOnFetchAbort:C=this.allowStaleOnFetchAbort,context:_,forceRefresh:F=!1,status:z,signal:E}=r;if(!V(this,In))return z&&(z.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:a,status:z});let D={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:a,ttl:l,noDisposeOnSet:d,size:f,sizeCalculation:p,noUpdateTTL:g,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:C,ignoreFetchAbort:S,status:z,signal:E},B=V(this,Qt).get(t);if(B===void 0){z&&(z.fetch="miss");let R=qe(this,Be,fl).call(this,t,B,D,_);return R.__returned=R}else{let R=V(this,et)[B];if(qe(this,Be,Nt).call(this,R)){let pe=n&&R.__staleWhileFetching!==void 0;return z&&(z.fetch="inflight",pe&&(z.returnedStale=!0)),pe?R.__staleWhileFetching:R.__returned=R}let W=V(this,tr).call(this,B);if(!F&&!W)return z&&(z.fetch="hit"),qe(this,Be,oo).call(this,B),i&&V(this,ia).call(this,B),z&&V(this,un).call(this,z,B),R;let Y=qe(this,Be,fl).call(this,t,B,D,_),q=Y.__staleWhileFetching!==void 0&&n;return z&&(z.fetch=W?"stale":"refresh",q&&W&&(z.returnedStale=!0)),q?Y.__staleWhileFetching:Y.__returned=Y}}async forceFetch(t,r={}){let n=await this.fetch(t,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(t,r={}){let n=V(this,Ha);if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:a,...l}=r,d=this.get(t,l);if(!a&&d!==void 0)return d;let f=n(t,d,{options:l,context:i});return this.set(t,f,l),f}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:l}=r,d=V(this,Qt).get(t);if(d!==void 0){let f=V(this,et)[d],p=qe(this,Be,Nt).call(this,f);return l&&V(this,un).call(this,l,d),V(this,tr).call(this,d)?(l&&(l.get="stale"),p?(l&&n&&f.__staleWhileFetching!==void 0&&(l.returnedStale=!0),n?f.__staleWhileFetching:void 0):(a||qe(this,Be,Gn).call(this,t,"expire"),l&&n&&(l.returnedStale=!0),n?f:void 0)):(l&&(l.get="hit"),p?f.__staleWhileFetching:(qe(this,Be,oo).call(this,d),i&&V(this,ia).call(this,d),f))}else l&&(l.get="miss")}delete(t){return qe(this,Be,Gn).call(this,t,"delete")}clear(){return qe(this,Be,s1).call(this,"delete")}},cr=new WeakMap,K0=new WeakMap,kr=new WeakMap,aa=new WeakMap,Ar=new WeakMap,Va=new WeakMap,Ha=new WeakMap,Sr=new WeakMap,i0=new WeakMap,Cr=new WeakMap,Qt=new WeakMap,Et=new WeakMap,et=new WeakMap,F0=new WeakMap,Q0=new WeakMap,w0=new WeakMap,m0=new WeakMap,Tr=new WeakMap,p0=new WeakMap,Er=new WeakMap,Dr=new WeakMap,J0=new WeakMap,er=new WeakMap,Mr=new WeakMap,In=new WeakMap,I0=new WeakMap,qa=new WeakMap,Be=new WeakSet,a1=function(){let t=new ys(V(this,cr)),r=new ys(V(this,cr));Ge(this,J0,t),Ge(this,Dr,r);let n=this.ttlAutopurge?new Array(V(this,cr)):void 0;Ge(this,er,n),Ge(this,Zi,(d,f,p=V(this,Sr).now())=>{r[d]=f!==0?p:0,t[d]=f,i(d,f)}),Ge(this,ia,d=>{r[d]=t[d]!==0?V(this,Sr).now():0,i(d,t[d])});let i=this.ttlAutopurge?(d,f)=>{if(n!=null&&n[d]&&(clearTimeout(n[d]),n[d]=void 0),f&&f!==0&&n){let p=setTimeout(()=>{V(this,tr).call(this,d)&&qe(this,Be,Gn).call(this,V(this,Et)[d],"expire")},f+1);p.unref&&p.unref(),n[d]=p}}:()=>{};Ge(this,un,(d,f)=>{if(t[f]){let p=t[f],g=r[f];if(!p||!g)return;d.ttl=p,d.start=g,d.now=a||l();let m=d.now-g;d.remainingTTL=p-m}});let a=0,l=()=>{let d=V(this,Sr).now();if(this.ttlResolution>0){a=d;let f=setTimeout(()=>a=0,this.ttlResolution);f.unref&&f.unref()}return d};this.getRemainingTTL=d=>{let f=V(this,Qt).get(d);if(f===void 0)return 0;let p=t[f],g=r[f];if(!p||!g)return 1/0;let m=(a||l())-g;return p-m},Ge(this,tr,d=>{let f=r[d],p=t[d];return!!p&&!!f&&(a||l())-f>p})},ia=new WeakMap,un=new WeakMap,Zi=new WeakMap,tr=new WeakMap,F3=function(){let t=new ys(V(this,cr));Ge(this,Cr,0),Ge(this,Er,t),Ge(this,oa,r=>{Ge(this,Cr,V(this,Cr)-t[r]),t[r]=0}),Ge(this,Ki,(r,n,i,a)=>{if(qe(this,Be,Nt).call(this,n))return 0;if(!Nn(i))if(a){if(typeof a!="function")throw new TypeError("sizeCalculation must be a function");if(i=a(n,r),!Nn(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),Ge(this,ja,(r,n,i)=>{if(t[r]=n,V(this,K0)){let a=V(this,K0)-t[r];for(;V(this,Cr)>a;)qe(this,Be,dl).call(this,!0)}Ge(this,Cr,V(this,Cr)+t[r]),i&&(i.entrySize=n,i.totalCalculatedSize=V(this,Cr))})},oa=new WeakMap,ja=new WeakMap,Ki=new WeakMap,Un=function*({allowStale:t=this.allowStale}={}){if(V(this,i0))for(let r=V(this,m0);!(!qe(this,Be,i1).call(this,r)||((t||!V(this,tr).call(this,r))&&(yield r),r===V(this,w0)));)r=V(this,Q0)[r]},Wn=function*({allowStale:t=this.allowStale}={}){if(V(this,i0))for(let r=V(this,w0);!(!qe(this,Be,i1).call(this,r)||((t||!V(this,tr).call(this,r))&&(yield r),r===V(this,m0)));)r=V(this,F0)[r]},i1=function(t){return t!==void 0&&V(this,Qt).get(V(this,Et)[t])===t},dl=function(t){var a,l,d;let r=V(this,w0),n=V(this,Et)[r],i=V(this,et)[r];return V(this,In)&&qe(this,Be,Nt).call(this,i)?i.__abortController.abort(new Error("evicted")):(V(this,Mr)||V(this,I0))&&(V(this,Mr)&&((a=V(this,kr))==null||a.call(this,i,n,"evict")),V(this,I0)&&((l=V(this,p0))==null||l.push([i,n,"evict"]))),V(this,oa).call(this,r),(d=V(this,er))!=null&&d[r]&&(clearTimeout(V(this,er)[r]),V(this,er)[r]=void 0),t&&(V(this,Et)[r]=void 0,V(this,et)[r]=void 0,V(this,Tr).push(r)),V(this,i0)===1?(Ge(this,w0,Ge(this,m0,0)),V(this,Tr).length=0):Ge(this,w0,V(this,F0)[r]),V(this,Qt).delete(n),cl(this,i0)._--,r},fl=function(t,r,n,i){let a=r===void 0?void 0:V(this,et)[r];if(qe(this,Be,Nt).call(this,a))return a;let l=new bs,{signal:d}=n;d==null||d.addEventListener("abort",()=>l.abort(d.reason),{signal:l.signal});let f={signal:l.signal,options:n,context:i},p=(_,F=!1)=>{let{aborted:z}=l.signal,E=n.ignoreFetchAbort&&_!==void 0,D=n.ignoreFetchAbort||!!(n.allowStaleOnFetchAbort&&_!==void 0);if(n.status&&(z&&!F?(n.status.fetchAborted=!0,n.status.fetchError=l.signal.reason,E&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),z&&!E&&!F)return m(l.signal.reason,D);let B=S,R=V(this,et)[r];return(R===S||E&&F&&R===void 0)&&(_===void 0?B.__staleWhileFetching!==void 0?V(this,et)[r]=B.__staleWhileFetching:qe(this,Be,Gn).call(this,t,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(t,_,f.options))),_},g=_=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=_),m(_,!1)),m=(_,F)=>{let{aborted:z}=l.signal,E=z&&n.allowStaleOnFetchAbort,D=E||n.allowStaleOnFetchRejection,B=D||n.noDeleteOnFetchRejection,R=S;if(V(this,et)[r]===S&&(!B||!F&&R.__staleWhileFetching===void 0?qe(this,Be,Gn).call(this,t,"fetch"):E||(V(this,et)[r]=R.__staleWhileFetching)),D)return n.status&&R.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),R.__staleWhileFetching;if(R.__returned===R)throw _},x=(_,F)=>{var E;let z=(E=V(this,Va))==null?void 0:E.call(this,t,a,f);z&&z instanceof Promise&&z.then(D=>_(D===void 0?void 0:D),F),l.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(_(void 0),n.allowStaleOnFetchAbort&&(_=D=>p(D,!0)))})};n.status&&(n.status.fetchDispatched=!0);let S=new Promise(x).then(p,g),C=Object.assign(S,{__abortController:l,__staleWhileFetching:a,__returned:void 0});return r===void 0?(this.set(t,C,{...f.options,status:void 0}),r=V(this,Qt).get(t)):V(this,et)[r]=C,C},Nt=function(t){if(!V(this,In))return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof bs},o1=function(t,r){V(this,Q0)[r]=t,V(this,F0)[t]=r},oo=function(t){t!==V(this,m0)&&(t===V(this,w0)?Ge(this,w0,V(this,F0)[t]):qe(this,Be,o1).call(this,V(this,Q0)[t],V(this,F0)[t]),qe(this,Be,o1).call(this,V(this,m0),t),Ge(this,m0,t))},Gn=function(t,r){var i,a,l,d,f,p;let n=!1;if(V(this,i0)!==0){let g=V(this,Qt).get(t);if(g!==void 0)if((i=V(this,er))!=null&&i[g]&&(clearTimeout((a=V(this,er))==null?void 0:a[g]),V(this,er)[g]=void 0),n=!0,V(this,i0)===1)qe(this,Be,s1).call(this,r);else{V(this,oa).call(this,g);let m=V(this,et)[g];if(qe(this,Be,Nt).call(this,m)?m.__abortController.abort(new Error("deleted")):(V(this,Mr)||V(this,I0))&&(V(this,Mr)&&((l=V(this,kr))==null||l.call(this,m,t,r)),V(this,I0)&&((d=V(this,p0))==null||d.push([m,t,r]))),V(this,Qt).delete(t),V(this,Et)[g]=void 0,V(this,et)[g]=void 0,g===V(this,m0))Ge(this,m0,V(this,Q0)[g]);else if(g===V(this,w0))Ge(this,w0,V(this,F0)[g]);else{let x=V(this,Q0)[g];V(this,F0)[x]=V(this,F0)[g];let S=V(this,F0)[g];V(this,Q0)[S]=V(this,Q0)[g]}cl(this,i0)._--,V(this,Tr).push(g)}}if(V(this,I0)&&((f=V(this,p0))!=null&&f.length)){let g=V(this,p0),m;for(;m=g==null?void 0:g.shift();)(p=V(this,Ar))==null||p.call(this,...m)}return n},s1=function(t){var r,n,i,a;for(let l of qe(this,Be,Wn).call(this,{allowStale:!0})){let d=V(this,et)[l];if(qe(this,Be,Nt).call(this,d))d.__abortController.abort(new Error("deleted"));else{let f=V(this,Et)[l];V(this,Mr)&&((r=V(this,kr))==null||r.call(this,d,f,t)),V(this,I0)&&((n=V(this,p0))==null||n.push([d,f,t]))}}if(V(this,Qt).clear(),V(this,et).fill(void 0),V(this,Et).fill(void 0),V(this,J0)&&V(this,Dr)){V(this,J0).fill(0),V(this,Dr).fill(0);for(let l of V(this,er)??[])l!==void 0&&clearTimeout(l);(i=V(this,er))==null||i.fill(void 0)}if(V(this,Er)&&V(this,Er).fill(0),Ge(this,w0,0),Ge(this,m0,0),V(this,Tr).length=0,Ge(this,Cr,0),Ge(this,i0,0),V(this,I0)&&V(this,p0)){let l=V(this,p0),d;for(;d=l==null?void 0:l.shift();)(a=V(this,Ar))==null||a.call(this,...d)}},$a);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vs=function(t){return t.tagName==="IMG"},hg=function(t){return NodeList.prototype.isPrototypeOf(t)},xs=function(t){return t&&t.nodeType===1},of=function(t){var r=t.currentSrc||t.src;return r.substr(-4).toLowerCase()===".svg"},sf=function(t){try{return Array.isArray(t)?t.filter(vs):hg(t)?[].slice.call(t).filter(vs):xs(t)?[t].filter(vs):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(vs):[]}catch{throw new TypeError(`The provided selector is invalid.
|
|
36
568
|
Expects a CSS selector, a Node element, a NodeList or an array.
|
|
37
|
-
See: https://github.com/francoischalifour/medium-zoom`)}},sp=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},lp=function(t){var n=t.getBoundingClientRect(),r=n.top,u=n.left,o=n.width,a=n.height,s=t.cloneNode(),l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,d=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return s.removeAttribute("id"),s.style.position="absolute",s.style.top=r+l+"px",s.style.left=u+d+"px",s.style.width=o+"px",s.style.height=a+"px",s.style.transform="",s},Nn=function(t,n){var r=on({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,r);var u=document.createEvent("CustomEvent");return u.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),u},cp=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(H){function I(){}H(I,I)},u=function(H){var I=H.target;if(I===G){m();return}g.indexOf(I)!==-1&&x({target:I})},o=function(){if(!(A||!_.original)){var H=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(N-H)>F.scrollOffset&&setTimeout(m,150)}},a=function(H){var I=H.key||H.keyCode;(I==="Escape"||I==="Esc"||I===27)&&m()},s=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=H;if(H.background&&(G.style.background=H.background),H.container&&H.container instanceof Object&&(I.container=on({},F.container,H.container)),H.template){var X=Ao(H.template)?H.template:document.querySelector(H.template);I.template=X}return F=on({},F,I),g.forEach(function(q){q.dispatchEvent(Nn("medium-zoom:update",{detail:{zoom:$}}))}),$},l=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(on({},F,H))},d=function(){for(var H=arguments.length,I=Array(H),X=0;X<H;X++)I[X]=arguments[X];var q=I.reduce(function(D,j){return[].concat(D,Xs(j))},[]);return q.filter(function(D){return g.indexOf(D)===-1}).forEach(function(D){g.push(D),D.classList.add("medium-zoom-image")}),w.forEach(function(D){var j=D.type,z=D.listener,Z=D.options;q.forEach(function(ue){ue.addEventListener(j,z,Z)})}),$},f=function(){for(var H=arguments.length,I=Array(H),X=0;X<H;X++)I[X]=arguments[X];_.zoomed&&m();var q=I.length>0?I.reduce(function(D,j){return[].concat(D,Xs(j))},[]):g;return q.forEach(function(D){D.classList.remove("medium-zoom-image"),D.dispatchEvent(Nn("medium-zoom:detach",{detail:{zoom:$}}))}),g=g.filter(function(D){return q.indexOf(D)===-1}),$},c=function(H,I){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(q){q.addEventListener("medium-zoom:"+H,I,X)}),w.push({type:"medium-zoom:"+H,listener:I,options:X}),$},h=function(H,I){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(q){q.removeEventListener("medium-zoom:"+H,I,X)}),w=w.filter(function(q){return!(q.type==="medium-zoom:"+H&&q.listener.toString()===I.toString())}),$},p=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=H.target,X=function(){var D={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},j=void 0,z=void 0;if(F.container)if(F.container instanceof Object)D=on({},D,F.container),j=D.width-D.left-D.right-F.margin*2,z=D.height-D.top-D.bottom-F.margin*2;else{var Z=Ao(F.container)?F.container:document.querySelector(F.container),ue=Z.getBoundingClientRect(),C=ue.width,S=ue.height,T=ue.left,O=ue.top;D=on({},D,{width:C,height:S,left:T,top:O})}j=j||D.width-F.margin*2,z=z||D.height-F.margin*2;var P=_.zoomedHd||_.original,U=Ws(P)?j:P.naturalWidth||j,L=Ws(P)?z:P.naturalHeight||z,R=P.getBoundingClientRect(),B=R.top,Q=R.left,re=R.width,oe=R.height,ce=Math.min(Math.max(re,U),j)/re,le=Math.min(Math.max(oe,L),z)/oe,he=Math.min(ce,le),Be=(-Q+(j-re)/2+F.margin+D.left)/he,kt=(-B+(z-oe)/2+F.margin+D.top)/he,Ge="scale("+he+") translate3d("+Be+"px, "+kt+"px, 0)";_.zoomed.style.transform=Ge,_.zoomedHd&&(_.zoomedHd.style.transform=Ge)};return new r(function(q){if(I&&g.indexOf(I)===-1){q($);return}var D=function C(){A=!1,_.zoomed.removeEventListener("transitionend",C),_.original.dispatchEvent(Nn("medium-zoom:opened",{detail:{zoom:$}})),q($)};if(_.zoomed){q($);return}if(I)_.original=I;else if(g.length>0){var j=g;_.original=j[0]}else{q($);return}if(_.original.dispatchEvent(Nn("medium-zoom:open",{detail:{zoom:$}})),N=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,A=!0,_.zoomed=lp(_.original),document.body.appendChild(G),F.template){var z=Ao(F.template)?F.template:document.querySelector(F.template);_.template=document.createElement("div"),_.template.appendChild(z.content.cloneNode(!0)),document.body.appendChild(_.template)}if(_.original.parentElement&&_.original.parentElement.tagName==="PICTURE"&&_.original.currentSrc&&(_.zoomed.src=_.original.currentSrc),document.body.appendChild(_.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),_.original.classList.add("medium-zoom-image--hidden"),_.zoomed.classList.add("medium-zoom-image--opened"),_.zoomed.addEventListener("click",m),_.zoomed.addEventListener("transitionend",D),_.original.getAttribute("data-zoom-src")){_.zoomedHd=_.zoomed.cloneNode(),_.zoomedHd.removeAttribute("srcset"),_.zoomedHd.removeAttribute("sizes"),_.zoomedHd.removeAttribute("loading"),_.zoomedHd.src=_.zoomed.getAttribute("data-zoom-src"),_.zoomedHd.onerror=function(){clearInterval(Z),console.warn("Unable to reach the zoom image target "+_.zoomedHd.src),_.zoomedHd=null,X()};var Z=setInterval(function(){_.zoomedHd.complete&&(clearInterval(Z),_.zoomedHd.classList.add("medium-zoom-image--opened"),_.zoomedHd.addEventListener("click",m),document.body.appendChild(_.zoomedHd),X())},10)}else if(_.original.hasAttribute("srcset")){_.zoomedHd=_.zoomed.cloneNode(),_.zoomedHd.removeAttribute("sizes"),_.zoomedHd.removeAttribute("loading");var ue=_.zoomedHd.addEventListener("load",function(){_.zoomedHd.removeEventListener("load",ue),_.zoomedHd.classList.add("medium-zoom-image--opened"),_.zoomedHd.addEventListener("click",m),document.body.appendChild(_.zoomedHd),X()})}else X()})},m=function(){return new r(function(H){if(A||!_.original){H($);return}var I=function X(){_.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(_.zoomed),_.zoomedHd&&document.body.removeChild(_.zoomedHd),document.body.removeChild(G),_.zoomed.classList.remove("medium-zoom-image--opened"),_.template&&document.body.removeChild(_.template),A=!1,_.zoomed.removeEventListener("transitionend",X),_.original.dispatchEvent(Nn("medium-zoom:closed",{detail:{zoom:$}})),_.original=null,_.zoomed=null,_.zoomedHd=null,_.template=null,H($)};A=!0,document.body.classList.remove("medium-zoom--opened"),_.zoomed.style.transform="",_.zoomedHd&&(_.zoomedHd.style.transform=""),_.template&&(_.template.style.transition="opacity 150ms",_.template.style.opacity=0),_.original.dispatchEvent(Nn("medium-zoom:close",{detail:{zoom:$}})),_.zoomed.addEventListener("transitionend",I)})},x=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=H.target;return _.original?m():p({target:I})},v=function(){return F},y=function(){return g},b=function(){return _.original},g=[],w=[],A=!1,N=0,F=n,_={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?F=t:(t||typeof t=="string")&&d(t),F=on({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},F);var G=sp(F.background);document.addEventListener("click",u),document.addEventListener("keyup",a),document.addEventListener("scroll",o),window.addEventListener("resize",m);var $={open:p,close:m,toggle:x,update:s,clone:l,attach:d,detach:f,on:c,off:h,getOptions:v,getImages:y,getZoomedImage:b};return $};function dp(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.type="text/css",n==="top"&&r.firstChild?r.insertBefore(u,r.firstChild):r.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e))}}var fp=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";dp(fp);const qt={hljs:`${K}-hljs`,hlcss:`${K}-hlCss`,mermaidM:`${K}-mermaid-m`,mermaid:`${K}-mermaid`,katexjs:`${K}-katex`,katexcss:`${K}-katexCss`,echarts:`${K}-echarts`},hp=(e,{editorId:t,rootRef:n,setting:r})=>{const u=ht.editorExtensions.highlight,o=ht.editorExtensionsAttrs.highlight;i.provide("editorId",t),i.provide("rootRef",n),i.provide("theme",i.computed(()=>e.theme)),i.provide("language",i.computed(()=>e.language)),i.provide("highlight",i.computed(()=>{const{js:s}=u,l={...Wu,...u.css},{js:d,css:f={}}=o||{},c=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,h=l[e.codeTheme]?l[e.codeTheme][c]:Wu.atom[c],p=l[e.codeTheme]&&f[e.codeTheme]?f[e.codeTheme][c]:f.atom?f.atom[c]:{};return{js:{src:s,...d},css:{href:h,...p}}})),i.provide("showCodeRowNumber",e.showCodeRowNumber);const a=i.computed(()=>{const s={...Vs,...ht.editorConfig.languageUserDefined};return $u(hr(Vs["en-US"]),s[e.language]||{})});return i.provide("usedLanguageText",a),i.provide("previewTheme",i.computed(()=>e.previewTheme)),i.provide("customIcon",i.computed(()=>e.customIcon)),i.provide("setting",i.computed(()=>r?{...r}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:t}},mp=e=>{const t=i.useId();return e.id||e.editorId||`${K}-${t}`},pp=(e,t,n)=>{const r=i.inject("editorId"),u=i.inject("rootRef"),o=i.inject("usedLanguageText"),a=i.inject("setting"),s=()=>{u.value.querySelectorAll(`#${r} .${K}-preview .${K}-code`).forEach(f=>{let c=-1;const h=f.querySelector(`.${K}-copy-button:not([data-processed])`);h&&(h.onclick=p=>{p.preventDefault(),clearTimeout(c);const m=(f.querySelector("input:checked + pre code")||f.querySelector("pre code")).textContent,{text:x,successTips:v,failTips:y}=o.value.copyCode;let b=v;Rs(e.formatCopiedText(m||"")).catch(()=>{b=y}).finally(()=>{h.dataset.isIcon?h.dataset.tips=b:h.innerHTML=b,c=window.setTimeout(()=>{h.dataset.isIcon?h.dataset.tips=x:h.innerHTML=x},1500)})},h.setAttribute("data-processed","true"))})},l=()=>{i.nextTick(s)},d=f=>{f&&i.nextTick(s)};i.watch([t,n],l),i.watch(()=>a.value.preview,d),i.watch(()=>a.value.htmlPreview,d),i.onMounted(s)},gp=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:u,editorExtensionsAttrs:o}=ht;let a=u.echarts.instance;const s=i.shallowRef(-1),l=()=>{!e.noEcharts&&a&&(s.value=s.value+1)};i.watch(()=>n.value,()=>{l()}),i.onMounted(()=>{var x;if(e.noEcharts||a)return;const m=u.echarts.js;Xt("script",{...(x=o.echarts)==null?void 0:x.js,src:m,id:qt.echarts,onload(){a=window.echarts,l()}},"echarts")});let d=[],f=[],c=[];const h=(m=!1)=>{if(!d.length){m&&(f.forEach(b=>{var g;(g=b.dispose)==null||g.call(b)}),c.forEach(b=>{var g;(g=b.disconnect)==null||g.call(b)}),f=[],c=[]);return}const x=[],v=[],y=[];d.forEach((b,g)=>{var N,F;const w=f[g],A=c[g];if(m||!b||!b.isConnected||r!=null&&r.value&&!r.value.contains(b)){(N=w==null?void 0:w.dispose)==null||N.call(w),(F=A==null?void 0:A.disconnect)==null||F.call(A);return}x.push(b),w&&v.push(w),A&&y.push(A)}),d=x,f=v,c=y},p=()=>{h(),!e.noEcharts&&a&&Array.from(r.value.querySelectorAll(`#${t} div.${K}-echarts:not([data-processed])`)).forEach(m=>{if(m.dataset.closed==="false")return!1;try{const x=new Function(`return ${m.innerText}`)(),v=a.init(m,n.value);v.setOption(x),m.setAttribute("data-processed",""),d.push(m),f.push(v);const y=new ResizeObserver(()=>{v.resize()});y.observe(m),c.push(y)}catch(x){at.emit(t,Xu,{name:"echarts",message:x==null?void 0:x.message,error:x})}})};return i.onBeforeUnmount(()=>{h(!0)}),{reRenderEcharts:s,replaceEcharts:p}},bp=e=>{const t=i.inject("highlight"),n=i.shallowRef(ht.editorExtensions.highlight.instance);return i.onMounted(()=>{e.noHighlight||n.value||(Xt("link",{...t.value.css,rel:"stylesheet",id:qt.hlcss}),Xt("script",{...t.value.js,id:qt.hljs,onload(){n.value=window.hljs}},"hljs"))}),i.watch(()=>t.value.css,()=>{e.noHighlight||ht.editorExtensions.highlight.instance||Wm("link",{...t.value.css,rel:"stylesheet",id:qt.hlcss})}),n},yp=e=>{const t=i.shallowRef(ht.editorExtensions.katex.instance);return i.onMounted(()=>{var u,o;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:r}=ht;Xt("script",{...(u=r.katex)==null?void 0:u.js,src:n.katex.js,id:qt.katexjs,onload(){t.value=window.katex}},"katex"),Xt("link",{...(o=r.katex)==null?void 0:o.css,rel:"stylesheet",href:n.katex.css,id:qt.katexcss})}),t},Co=new ip({max:1e3,ttl:6e5}),wp=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:u,editorExtensionsAttrs:o,mermaidConfig:a}=ht;let s=u.mermaid.instance;const l=i.shallowRef(-1),d=()=>{if(!e.noMermaid&&s){const f=n.value==="dark"?{startOnLoad:!1,theme:"dark"}:{startOnLoad:!1,theme:"base",themeVariables:{background:"#ffffff",primaryColor:"#ffffff",primaryTextColor:"#1f2329",primaryBorderColor:"#b7c0cc",secondaryColor:"#f7f8fa",tertiaryColor:"#f7f8fa",lineColor:"#596273",edgeLabelBackground:"#ffffff",clusterBkg:"#ffffff",clusterBorder:"#b7c0cc"}};s.initialize(a(f)),l.value=l.value+1}};return i.watch(()=>n.value,()=>{Co.clear(),d()}),i.onMounted(()=>{var c,h;if(e.noMermaid||s)return;const f=u.mermaid.js;/\.mjs/.test(f)?(Xt("link",{...(c=o.mermaid)==null?void 0:c.js,rel:"modulepreload",href:f,id:qt.mermaidM}),import(f).then(p=>{s=p.default,d()}).catch(p=>{at.emit(t,Xu,{name:"mermaid",message:`Failed to load mermaid module: ${p.message}`,error:p})})):Xt("script",{...(h=o.mermaid)==null?void 0:h.js,src:f,id:qt.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:l,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=r.value.querySelectorAll(`div.${K}-mermaid`),c=document.createElement("div"),h=document.body.offsetWidth>1366?document.body.offsetWidth:1366,p=document.body.offsetHeight>768?document.body.offsetHeight:768;c.style.width=h+"px",c.style.height=p+"px",c.style.position="fixed",c.style.zIndex="-10000",c.style.top="-10000";let m=f.length;m>0&&document.body.appendChild(c),await Promise.allSettled(Array.from(f).map(x=>(async v=>{var g;if(v.dataset.closed==="false")return!1;const y=v.innerText;let b=Co.get(y);if(!b){const w=Hu();let A={svg:""};try{A=await s.render(w,y,c),b=await e.sanitizeMermaid(A.svg);const N=document.createElement("p");N.className=`${K}-mermaid`,N.setAttribute("data-processed",""),N.setAttribute("data-content",y),N.innerHTML=b,(g=N.children[0])==null||g.removeAttribute("height"),Co.set(y,N.innerHTML),v.dataset.line!==void 0&&(N.dataset.line=v.dataset.line),v.replaceWith(N)}catch(N){at.emit(t,Xu,{name:"mermaid",message:N.message,error:N})}--m===0&&c.remove()}})(x)))}}}},xp=(e,t)=>{t=t||{};const n=3,r=t.marker||"!",u=r.charCodeAt(0),o=r.length;let a="",s="";const l=(f,c,h,p,m)=>{const x=f[c];return x.type==="admonition_open"?f[c].attrPush(["class",`${K}-admonition ${K}-admonition-${x.info}`]):x.type==="admonition_title_open"&&f[c].attrPush(["class",`${K}-admonition-title`]),m.renderToken(f,c,h)},d=f=>{const c=f.trim().split(" ",2);s="",a=c[0],c.length>1&&(s=f.substring(a.length+2))};e.block.ruler.before("code","admonition",(f,c,h,p)=>{let m,x,v,y=!1,b=f.bMarks[c]+f.tShift[c],g=f.eMarks[c];if(u!==f.src.charCodeAt(b))return!1;for(m=b+1;m<=g&&r[(m-b)%o]===f.src[m];m++);const w=Math.floor((m-b)/o);if(w!==n)return!1;m-=(m-b)%o;const A=f.src.slice(b,m),N=f.src.slice(m,g);if(d(N),p)return!0;for(x=c;x++,!(x>=h||(b=f.bMarks[x]+f.tShift[x],g=f.eMarks[x],b<g&&f.sCount[x]<f.blkIndent));)if(u===f.src.charCodeAt(b)&&!(f.sCount[x]-f.blkIndent>=4)){for(m=b+1;m<=g&&r[(m-b)%o]===f.src[m];m++);if(!(Math.floor((m-b)/o)<w)&&(m-=(m-b)%o,m=f.skipSpaces(m),!(m<g))){y=!0;break}}const F=f.parentType,_=f.lineMax;return f.parentType="root",f.lineMax=x,v=f.push("admonition_open","div",1),v.markup=A,v.block=!0,v.info=a,v.map=[c,x],s&&(v=f.push("admonition_title_open","p",1),v.markup=A+" "+a,v.map=[c,x],v=f.push("inline","",0),v.content=s,v.map=[c,f.line-1],v.children=[],v=f.push("admonition_title_close","p",-1),v.markup=A+" "+a),f.md.block.tokenize(f,c+1,x),v=f.push("admonition_close","div",-1),v.markup=f.src.slice(b,m),v.block=!0,f.parentType=F,f.lineMax=_,f.line=x+(y?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=l,e.renderer.rules.admonition_title_open=l,e.renderer.rules.admonition_title_close=l,e.renderer.rules.admonition_close=l},Zu=(e,t)=>{const n=e.attrs?e.attrs.slice():[];return t.forEach(r=>{const u=e.attrIndex(r[0]);u<0?n.push(r):(n[u]=n[u].slice(),n[u][1]+=` ${r[1]}`)}),n},vp=(e,t)=>{const n=e.renderer.rules.fence,r=e.utils.unescapeAll,u=/\[(\w*)(?::([\w ]*))?\]/,o=/::(open|close)/,a=c=>c.info?r(c.info).trim():"",s=c=>{const h=a(c),[p=null,m=""]=(u.exec(h)||[]).slice(1);return[p,m]},l=c=>{const h=a(c);return h?h.split(/(\s+)/g)[0]:""},d=c=>{const h=c.info.match(o)||[],p=h[1]==="open"||h[1]!=="close"&&t.codeFoldable&&c.content.trim().split(`
|
|
38
|
-
`).length<t.autoFoldThreshold,
|
|
39
|
-
<${
|
|
40
|
-
<${
|
|
41
|
-
<div class="${
|
|
42
|
-
<div class="${
|
|
43
|
-
<span class="${
|
|
44
|
-
<span class="${
|
|
45
|
-
${t.extraTools instanceof Function?t.extraTools({lang:
|
|
46
|
-
${
|
|
569
|
+
See: https://github.com/francoischalifour/medium-zoom`)}},mg=function(t){var r=document.createElement("div");return r.classList.add("medium-zoom-overlay"),r.style.background=t,r},pg=function(t){var r=t.getBoundingClientRect(),n=r.top,i=r.left,a=r.width,l=r.height,d=t.cloneNode(),f=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,p=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return d.removeAttribute("id"),d.style.position="absolute",d.style.top=n+f+"px",d.style.left=i+p+"px",d.style.width=a+"px",d.style.height=l+"px",d.style.transform="",d},Ia=function(t,r){var n=ea({bubbles:!1,cancelable:!1,detail:void 0},r);if(typeof window.CustomEvent=="function")return new CustomEvent(t,n);var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),i},gg=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=window.Promise||function(be){function ae(){}be(ae,ae)},i=function(be){var ae=be.target;if(ae===pe){C();return}D.indexOf(ae)!==-1&&_({target:ae})},a=function(){if(!(R||!q.original)){var be=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(W-be)>Y.scrollOffset&&setTimeout(C,150)}},l=function(be){var ae=be.key||be.keyCode;(ae==="Escape"||ae==="Esc"||ae===27)&&C()},d=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=be;if(be.background&&(pe.style.background=be.background),be.container&&be.container instanceof Object&&(ae.container=ea({},Y.container,be.container)),be.template){var xe=xs(be.template)?be.template:document.querySelector(be.template);ae.template=xe}return Y=ea({},Y,ae),D.forEach(function(Ce){Ce.dispatchEvent(Ia("medium-zoom:update",{detail:{zoom:he}}))}),he},f=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(ea({},Y,be))},p=function(){for(var be=arguments.length,ae=Array(be),xe=0;xe<be;xe++)ae[xe]=arguments[xe];var Ce=ae.reduce(function(te,ye){return[].concat(te,sf(ye))},[]);return Ce.filter(function(te){return D.indexOf(te)===-1}).forEach(function(te){D.push(te),te.classList.add("medium-zoom-image")}),B.forEach(function(te){var ye=te.type,ne=te.listener,ze=te.options;Ce.forEach(function(Ue){Ue.addEventListener(ye,ne,ze)})}),he},g=function(){for(var be=arguments.length,ae=Array(be),xe=0;xe<be;xe++)ae[xe]=arguments[xe];q.zoomed&&C();var Ce=ae.length>0?ae.reduce(function(te,ye){return[].concat(te,sf(ye))},[]):D;return Ce.forEach(function(te){te.classList.remove("medium-zoom-image"),te.dispatchEvent(Ia("medium-zoom:detach",{detail:{zoom:he}}))}),D=D.filter(function(te){return Ce.indexOf(te)===-1}),he},m=function(be,ae){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return D.forEach(function(Ce){Ce.addEventListener("medium-zoom:"+be,ae,xe)}),B.push({type:"medium-zoom:"+be,listener:ae,options:xe}),he},x=function(be,ae){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return D.forEach(function(Ce){Ce.removeEventListener("medium-zoom:"+be,ae,xe)}),B=B.filter(function(Ce){return!(Ce.type==="medium-zoom:"+be&&Ce.listener.toString()===ae.toString())}),he},S=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=be.target,xe=function(){var te={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},ye=void 0,ne=void 0;if(Y.container)if(Y.container instanceof Object)te=ea({},te,Y.container),ye=te.width-te.left-te.right-Y.margin*2,ne=te.height-te.top-te.bottom-Y.margin*2;else{var ze=xs(Y.container)?Y.container:document.querySelector(Y.container),Ue=ze.getBoundingClientRect(),X=Ue.width,Z=Ue.height,Q=Ue.left,oe=Ue.top;te=ea({},te,{width:X,height:Z,left:Q,top:oe})}ye=ye||te.width-Y.margin*2,ne=ne||te.height-Y.margin*2;var fe=q.zoomedHd||q.original,Ae=of(fe)?ye:fe.naturalWidth||ye,ie=of(fe)?ne:fe.naturalHeight||ne,me=fe.getBoundingClientRect(),ge=me.top,Oe=me.left,Xe=me.width,Ze=me.height,nt=Math.min(Math.max(Xe,Ae),ye)/Xe,at=Math.min(Math.max(Ze,ie),ne)/Ze,it=Math.min(nt,at),qt=(-Oe+(ye-Xe)/2+Y.margin+te.left)/it,B0=(-ge+(ne-Ze)/2+Y.margin+te.top)/it,Wt="scale("+it+") translate3d("+qt+"px, "+B0+"px, 0)";q.zoomed.style.transform=Wt,q.zoomedHd&&(q.zoomedHd.style.transform=Wt)};return new n(function(Ce){if(ae&&D.indexOf(ae)===-1){Ce(he);return}var te=function X(){R=!1,q.zoomed.removeEventListener("transitionend",X),q.original.dispatchEvent(Ia("medium-zoom:opened",{detail:{zoom:he}})),Ce(he)};if(q.zoomed){Ce(he);return}if(ae)q.original=ae;else if(D.length>0){var ye=D;q.original=ye[0]}else{Ce(he);return}if(q.original.dispatchEvent(Ia("medium-zoom:open",{detail:{zoom:he}})),W=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,R=!0,q.zoomed=pg(q.original),document.body.appendChild(pe),Y.template){var ne=xs(Y.template)?Y.template:document.querySelector(Y.template);q.template=document.createElement("div"),q.template.appendChild(ne.content.cloneNode(!0)),document.body.appendChild(q.template)}if(q.original.parentElement&&q.original.parentElement.tagName==="PICTURE"&&q.original.currentSrc&&(q.zoomed.src=q.original.currentSrc),document.body.appendChild(q.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),q.original.classList.add("medium-zoom-image--hidden"),q.zoomed.classList.add("medium-zoom-image--opened"),q.zoomed.addEventListener("click",C),q.zoomed.addEventListener("transitionend",te),q.original.getAttribute("data-zoom-src")){q.zoomedHd=q.zoomed.cloneNode(),q.zoomedHd.removeAttribute("srcset"),q.zoomedHd.removeAttribute("sizes"),q.zoomedHd.removeAttribute("loading"),q.zoomedHd.src=q.zoomed.getAttribute("data-zoom-src"),q.zoomedHd.onerror=function(){clearInterval(ze),console.warn("Unable to reach the zoom image target "+q.zoomedHd.src),q.zoomedHd=null,xe()};var ze=setInterval(function(){q.zoomedHd.complete&&(clearInterval(ze),q.zoomedHd.classList.add("medium-zoom-image--opened"),q.zoomedHd.addEventListener("click",C),document.body.appendChild(q.zoomedHd),xe())},10)}else if(q.original.hasAttribute("srcset")){q.zoomedHd=q.zoomed.cloneNode(),q.zoomedHd.removeAttribute("sizes"),q.zoomedHd.removeAttribute("loading");var Ue=q.zoomedHd.addEventListener("load",function(){q.zoomedHd.removeEventListener("load",Ue),q.zoomedHd.classList.add("medium-zoom-image--opened"),q.zoomedHd.addEventListener("click",C),document.body.appendChild(q.zoomedHd),xe()})}else xe()})},C=function(){return new n(function(be){if(R||!q.original){be(he);return}var ae=function xe(){q.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(q.zoomed),q.zoomedHd&&document.body.removeChild(q.zoomedHd),document.body.removeChild(pe),q.zoomed.classList.remove("medium-zoom-image--opened"),q.template&&document.body.removeChild(q.template),R=!1,q.zoomed.removeEventListener("transitionend",xe),q.original.dispatchEvent(Ia("medium-zoom:closed",{detail:{zoom:he}})),q.original=null,q.zoomed=null,q.zoomedHd=null,q.template=null,be(he)};R=!0,document.body.classList.remove("medium-zoom--opened"),q.zoomed.style.transform="",q.zoomedHd&&(q.zoomedHd.style.transform=""),q.template&&(q.template.style.transition="opacity 150ms",q.template.style.opacity=0),q.original.dispatchEvent(Ia("medium-zoom:close",{detail:{zoom:he}})),q.zoomed.addEventListener("transitionend",ae)})},_=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=be.target;return q.original?C():S({target:ae})},F=function(){return Y},z=function(){return D},E=function(){return q.original},D=[],B=[],R=!1,W=0,Y=r,q={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?Y=t:(t||typeof t=="string")&&p(t),Y=ea({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},Y);var pe=mg(Y.background);document.addEventListener("click",i),document.addEventListener("keyup",l),document.addEventListener("scroll",a),window.addEventListener("resize",C);var he={open:S,close:C,toggle:_,update:d,clone:f,attach:p,detach:g,on:m,off:x,getOptions:F,getImages:z,getZoomedImage:E};return he};function bg(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var yg=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";bg(yg);const zn={hljs:`${Le}-hljs`,hlcss:`${Le}-hlCss`,mermaidM:`${Le}-mermaid-m`,mermaid:`${Le}-mermaid`,katexjs:`${Le}-katex`,katexcss:`${Le}-katexCss`,echarts:`${Le}-echarts`},vg=(e,{editorId:t,rootRef:r,setting:n})=>{const i=wr.editorExtensions.highlight,a=wr.editorExtensionsAttrs.highlight;c.provide("editorId",t),c.provide("rootRef",r),c.provide("theme",c.computed(()=>e.theme)),c.provide("language",c.computed(()=>e.language)),c.provide("highlight",c.computed(()=>{const{js:d}=i,f={...rc,...i.css},{js:p,css:g={}}=a||{},m=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,x=f[e.codeTheme]?f[e.codeTheme][m]:rc.atom[m],S=f[e.codeTheme]&&g[e.codeTheme]?g[e.codeTheme][m]:g.atom?g.atom[m]:{};return{js:{src:d,...p},css:{href:x,...S}}})),c.provide("showCodeRowNumber",e.showCodeRowNumber);const l=c.computed(()=>{const d={...Y2,...wr.editorConfig.languageUserDefined};return ec(Ni(Y2["en-US"]),d[e.language]||{})});return c.provide("usedLanguageText",l),c.provide("previewTheme",c.computed(()=>e.previewTheme)),c.provide("customIcon",c.computed(()=>e.customIcon)),c.provide("setting",c.computed(()=>n?{...n}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:t}},xg=e=>{const t=c.useId();return e.id||e.editorId||`${Le}-${t}`},wg=(e,t,r)=>{const n=c.inject("editorId"),i=c.inject("rootRef"),a=c.inject("usedLanguageText"),l=c.inject("setting"),d=()=>{i.value.querySelectorAll(`#${n} .${Le}-preview .${Le}-code`).forEach(g=>{let m=-1;const x=g.querySelector(`.${Le}-copy-button:not([data-processed])`);x&&(x.onclick=S=>{S.preventDefault(),clearTimeout(m);const C=(g.querySelector("input:checked + pre code")||g.querySelector("pre code")).textContent,{text:_,successTips:F,failTips:z}=a.value.copyCode;let E=F;K2(e.formatCopiedText(C||"")).catch(()=>{E=z}).finally(()=>{x.dataset.isIcon?x.dataset.tips=E:x.innerHTML=E,m=window.setTimeout(()=>{x.dataset.isIcon?x.dataset.tips=_:x.innerHTML=_},1500)})},x.setAttribute("data-processed","true"))})},f=()=>{c.nextTick(d)},p=g=>{g&&c.nextTick(d)};c.watch([t,r],f),c.watch(()=>l.value.preview,p),c.watch(()=>l.value.htmlPreview,p),c.onMounted(d)},kg=e=>{const t=c.inject("editorId"),r=c.inject("theme"),n=c.inject("rootRef"),{editorExtensions:i,editorExtensionsAttrs:a}=wr;let l=i.echarts.instance;const d=c.shallowRef(-1),f=()=>{!e.noEcharts&&l&&(d.value=d.value+1)};c.watch(()=>r.value,()=>{f()}),c.onMounted(()=>{var _;if(e.noEcharts||l)return;const C=i.echarts.js;Mn("script",{...(_=a.echarts)==null?void 0:_.js,src:C,id:zn.echarts,onload(){l=window.echarts,f()}},"echarts")});let p=[],g=[],m=[];const x=(C=!1)=>{if(!p.length){C&&(g.forEach(E=>{var D;(D=E.dispose)==null||D.call(E)}),m.forEach(E=>{var D;(D=E.disconnect)==null||D.call(E)}),g=[],m=[]);return}const _=[],F=[],z=[];p.forEach((E,D)=>{var W,Y;const B=g[D],R=m[D];if(C||!E||!E.isConnected||n!=null&&n.value&&!n.value.contains(E)){(W=B==null?void 0:B.dispose)==null||W.call(B),(Y=R==null?void 0:R.disconnect)==null||Y.call(R);return}_.push(E),B&&F.push(B),R&&z.push(R)}),p=_,g=F,m=z},S=()=>{x(),!e.noEcharts&&l&&Array.from(n.value.querySelectorAll(`#${t} div.${Le}-echarts:not([data-processed])`)).forEach(C=>{if(C.dataset.closed==="false")return!1;try{const _=new Function(`return ${C.innerText}`)(),F=l.init(C,r.value);F.setOption(_),C.setAttribute("data-processed",""),p.push(C),g.push(F);const z=new ResizeObserver(()=>{F.resize()});z.observe(C),m.push(z)}catch(_){ur.emit(t,nc,{name:"echarts",message:_==null?void 0:_.message,error:_})}})};return c.onBeforeUnmount(()=>{x(!0)}),{reRenderEcharts:d,replaceEcharts:S}},Ag=e=>{const t=c.inject("highlight"),r=c.shallowRef(wr.editorExtensions.highlight.instance);return c.onMounted(()=>{e.noHighlight||r.value||(Mn("link",{...t.value.css,rel:"stylesheet",id:zn.hlcss}),Mn("script",{...t.value.js,id:zn.hljs,onload(){r.value=window.hljs}},"hljs"))}),c.watch(()=>t.value.css,()=>{e.noHighlight||wr.editorExtensions.highlight.instance||K9("link",{...t.value.css,rel:"stylesheet",id:zn.hlcss})}),r},Sg=e=>{const t=c.shallowRef(wr.editorExtensions.katex.instance);return c.onMounted(()=>{var i,a;if(e.noKatex||t.value)return;const{editorExtensions:r,editorExtensionsAttrs:n}=wr;Mn("script",{...(i=n.katex)==null?void 0:i.js,src:r.katex.js,id:zn.katexjs,onload(){t.value=window.katex}},"katex"),Mn("link",{...(a=n.katex)==null?void 0:a.css,rel:"stylesheet",href:r.katex.css,id:zn.katexcss})}),t},ws=new fg({max:1e3,ttl:6e5}),Cg=e=>{const t=c.inject("editorId"),r=c.inject("theme"),n=c.inject("rootRef"),{editorExtensions:i,editorExtensionsAttrs:a,mermaidConfig:l}=wr;let d=i.mermaid.instance;const f=c.shallowRef(-1),p=()=>{if(!e.noMermaid&&d){const g=r.value==="dark"?{startOnLoad:!1,theme:"dark"}:{startOnLoad:!1,theme:"base",themeVariables:{background:"#ffffff",primaryColor:"#ffffff",primaryTextColor:"#1f2329",primaryBorderColor:"#b7c0cc",secondaryColor:"#f7f8fa",tertiaryColor:"#f7f8fa",lineColor:"#596273",edgeLabelBackground:"#ffffff",clusterBkg:"#ffffff",clusterBorder:"#b7c0cc"}};d.initialize(l(g)),f.value=f.value+1}};return c.watch(()=>r.value,()=>{ws.clear(),p()}),c.onMounted(()=>{var m,x;if(e.noMermaid||d)return;const g=i.mermaid.js;/\.mjs/.test(g)?(Mn("link",{...(m=a.mermaid)==null?void 0:m.js,rel:"modulepreload",href:g,id:zn.mermaidM}),import(g).then(S=>{d=S.default,p()}).catch(S=>{ur.emit(t,nc,{name:"mermaid",message:`Failed to load mermaid module: ${S.message}`,error:S})})):Mn("script",{...(x=a.mermaid)==null?void 0:x.js,src:g,id:zn.mermaid,onload(){d=window.mermaid,p()}},"mermaid")}),{reRenderRef:f,replaceMermaid:async()=>{if(!e.noMermaid&&d){const g=n.value.querySelectorAll(`div.${Le}-mermaid`),m=document.createElement("div"),x=document.body.offsetWidth>1366?document.body.offsetWidth:1366,S=document.body.offsetHeight>768?document.body.offsetHeight:768;m.style.width=x+"px",m.style.height=S+"px",m.style.position="fixed",m.style.zIndex="-10000",m.style.top="-10000";let C=g.length;C>0&&document.body.appendChild(m),await Promise.allSettled(Array.from(g).map(_=>(async F=>{var D;if(F.dataset.closed==="false")return!1;const z=F.innerText;let E=ws.get(z);if(!E){const B=Ju();let R={svg:""};try{R=await d.render(B,z,m),E=await e.sanitizeMermaid(R.svg);const W=document.createElement("p");W.className=`${Le}-mermaid`,W.setAttribute("data-processed",""),W.setAttribute("data-content",z),W.innerHTML=E,(D=W.children[0])==null||D.removeAttribute("height"),ws.set(z,W.innerHTML),F.dataset.line!==void 0&&(W.dataset.line=F.dataset.line),F.replaceWith(W)}catch(W){ur.emit(t,nc,{name:"mermaid",message:W.message,error:W})}--C===0&&m.remove()}})(_)))}}}},Tg=(e,t)=>{t=t||{};const r=3,n=t.marker||"!",i=n.charCodeAt(0),a=n.length;let l="",d="";const f=(g,m,x,S,C)=>{const _=g[m];return _.type==="admonition_open"?g[m].attrPush(["class",`${Le}-admonition ${Le}-admonition-${_.info}`]):_.type==="admonition_title_open"&&g[m].attrPush(["class",`${Le}-admonition-title`]),C.renderToken(g,m,x)},p=g=>{const m=g.trim().split(" ",2);d="",l=m[0],m.length>1&&(d=g.substring(l.length+2))};e.block.ruler.before("code","admonition",(g,m,x,S)=>{let C,_,F,z=!1,E=g.bMarks[m]+g.tShift[m],D=g.eMarks[m];if(i!==g.src.charCodeAt(E))return!1;for(C=E+1;C<=D&&n[(C-E)%a]===g.src[C];C++);const B=Math.floor((C-E)/a);if(B!==r)return!1;C-=(C-E)%a;const R=g.src.slice(E,C),W=g.src.slice(C,D);if(p(W),S)return!0;for(_=m;_++,!(_>=x||(E=g.bMarks[_]+g.tShift[_],D=g.eMarks[_],E<D&&g.sCount[_]<g.blkIndent));)if(i===g.src.charCodeAt(E)&&!(g.sCount[_]-g.blkIndent>=4)){for(C=E+1;C<=D&&n[(C-E)%a]===g.src[C];C++);if(!(Math.floor((C-E)/a)<B)&&(C-=(C-E)%a,C=g.skipSpaces(C),!(C<D))){z=!0;break}}const Y=g.parentType,q=g.lineMax;return g.parentType="root",g.lineMax=_,F=g.push("admonition_open","div",1),F.markup=R,F.block=!0,F.info=l,F.map=[m,_],d&&(F=g.push("admonition_title_open","p",1),F.markup=R+" "+l,F.map=[m,_],F=g.push("inline","",0),F.content=d,F.map=[m,g.line-1],F.children=[],F=g.push("admonition_title_close","p",-1),F.markup=R+" "+l),g.md.block.tokenize(g,m+1,_),F=g.push("admonition_close","div",-1),F.markup=g.src.slice(E,C),F.block=!0,g.parentType=Y,g.lineMax=q,g.line=_+(z?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=f,e.renderer.rules.admonition_title_open=f,e.renderer.rules.admonition_title_close=f,e.renderer.rules.admonition_close=f},oc=(e,t)=>{const r=e.attrs?e.attrs.slice():[];return t.forEach(n=>{const i=e.attrIndex(n[0]);i<0?r.push(n):(r[i]=r[i].slice(),r[i][1]+=` ${n[1]}`)}),r},Eg=(e,t)=>{const r=e.renderer.rules.fence,n=e.utils.unescapeAll,i=/\[(\w*)(?::([\w ]*))?\]/,a=/::(open|close)/,l=m=>m.info?n(m.info).trim():"",d=m=>{const x=l(m),[S=null,C=""]=(i.exec(x)||[]).slice(1);return[S,C]},f=m=>{const x=l(m);return x?x.split(/(\s+)/g)[0]:""},p=m=>{const x=m.info.match(a)||[],S=x[1]==="open"||x[1]!=="close"&&t.codeFoldable&&m.content.trim().split(`
|
|
570
|
+
`).length<t.autoFoldThreshold,C=x[1]||t.codeFoldable?"details":"div",_=x[1]||t.codeFoldable?"summary":"div";return{open:S,tagContainer:C,tagHeader:_}},g=(m,x,S,C,_)=>{var ye;if(m[x].hidden)return"";const F=(ye=t.usedLanguageTextRef.value)==null?void 0:ye.copyCode.text,z=t.customIconRef.value.copy||F,E=!!t.customIconRef.value.copy,D=`<span class="${Le}-collapse-tips">${Gr("collapse-tips",t.customIconRef.value)}</span>`,[B]=d(m[x]);if(B===null){const{open:ne,tagContainer:ze,tagHeader:Ue}=p(m[x]),X=[["class",`${Le}-code`]];ne&&X.push(["open",""]);const Z={attrs:oc(m[x],X)};m[x].info=m[x].info.replace(a,"");const Q=r(m,x,S,C,_);return`
|
|
571
|
+
<${ze} ${_.renderAttrs(Z)}>
|
|
572
|
+
<${Ue} class="${Le}-code-head">
|
|
573
|
+
<div class="${Le}-code-flag"><span></span><span></span><span></span></div>
|
|
574
|
+
<div class="${Le}-code-action">
|
|
575
|
+
<span class="${Le}-code-lang">${e.utils.escapeHtml(m[x].info.trim())}</span>
|
|
576
|
+
<span class="${Le}-copy-button" data-tips="${F}"${E?" data-is-icon=true":""}>${z}</span>
|
|
577
|
+
${t.extraTools instanceof Function?t.extraTools({lang:m[x].info.trim()}):t.extraTools||""}
|
|
578
|
+
${ze==="details"?D:""}
|
|
47
579
|
</div>
|
|
48
|
-
</${
|
|
49
|
-
${
|
|
50
|
-
</${
|
|
51
|
-
`}let
|
|
580
|
+
</${Ue}>
|
|
581
|
+
${Q}
|
|
582
|
+
</${ze}>
|
|
583
|
+
`}let R,W,Y,q,pe="",he="",ce="";const{open:be,tagContainer:ae,tagHeader:xe}=p(m[x]),Ce=[["class",`${Le}-code`]];be&&Ce.push(["open",""]);const te={attrs:oc(m[x],Ce)};for(let ne=x;ne<m.length&&(R=m[ne],[W,Y]=d(R),W===B);ne++){R.info=R.info.replace(i,"").replace(a,""),R.hidden=!0;const ze=`${Le}-codetab-${t.editorId}-${x}-${ne-x}`;q=ne-x>0?"":"checked",pe+=`
|
|
52
584
|
<li>
|
|
53
585
|
<input
|
|
54
586
|
type="radio"
|
|
55
|
-
id="label-${
|
|
56
|
-
name="${
|
|
57
|
-
class="${
|
|
58
|
-
${
|
|
587
|
+
id="label-${Le}-codetab-label-1-${t.editorId}-${x}-${ne-x}"
|
|
588
|
+
name="${Le}-codetab-label-${t.editorId}-${x}"
|
|
589
|
+
class="${ze}"
|
|
590
|
+
${q}
|
|
59
591
|
>
|
|
60
592
|
<label
|
|
61
|
-
for="label-${
|
|
62
|
-
onclick="this.getRootNode().querySelectorAll('.${
|
|
593
|
+
for="label-${Le}-codetab-label-1-${t.editorId}-${x}-${ne-x}"
|
|
594
|
+
onclick="this.getRootNode().querySelectorAll('.${ze}').forEach(e => e.click())"
|
|
63
595
|
>
|
|
64
|
-
${e.utils.escapeHtml(
|
|
596
|
+
${e.utils.escapeHtml(Y||f(R))}
|
|
65
597
|
</label>
|
|
66
|
-
</li
|
|
598
|
+
</li>`,he+=`
|
|
67
599
|
<div role="tabpanel">
|
|
68
600
|
<input
|
|
69
601
|
type="radio"
|
|
70
|
-
name="${
|
|
71
|
-
class="${
|
|
72
|
-
${
|
|
602
|
+
name="${Le}-codetab-pre-${t.editorId}-${x}"
|
|
603
|
+
class="${ze}"
|
|
604
|
+
${q}
|
|
73
605
|
role="presentation">
|
|
74
|
-
${
|
|
75
|
-
</div>`,
|
|
606
|
+
${r(m,ne,S,C,_)}
|
|
607
|
+
</div>`,ce+=`
|
|
76
608
|
<input
|
|
77
609
|
type="radio"
|
|
78
|
-
name="${
|
|
79
|
-
class="${
|
|
80
|
-
${
|
|
610
|
+
name="${Le}-codetab-lang-${t.editorId}-${x}"
|
|
611
|
+
class="${ze}"
|
|
612
|
+
${q}
|
|
81
613
|
role="presentation">
|
|
82
|
-
<span class=${
|
|
83
|
-
<${
|
|
84
|
-
<${
|
|
85
|
-
<div class="${
|
|
86
|
-
<ul class="${
|
|
614
|
+
<span class=${Le}-code-lang role="note">${e.utils.escapeHtml(f(R))}</span>`}return`
|
|
615
|
+
<${ae} ${_.renderAttrs(te)}>
|
|
616
|
+
<${xe} class="${Le}-code-head">
|
|
617
|
+
<div class="${Le}-code-flag">
|
|
618
|
+
<ul class="${Le}-codetab-label" role="tablist">${pe}</ul>
|
|
87
619
|
</div>
|
|
88
|
-
<div class="${
|
|
89
|
-
<span class="${
|
|
90
|
-
<span class="${
|
|
91
|
-
${t.extraTools instanceof Function?t.extraTools({lang:
|
|
92
|
-
${
|
|
620
|
+
<div class="${Le}-code-action">
|
|
621
|
+
<span class="${Le}-codetab-lang">${ce}</span>
|
|
622
|
+
<span class="${Le}-copy-button" data-tips="${F}"${E?" data-is-icon=true":""}>${z}</span>
|
|
623
|
+
${t.extraTools instanceof Function?t.extraTools({lang:m[x].info.trim()}):t.extraTools||""}
|
|
624
|
+
${ae==="details"?D:""}
|
|
93
625
|
</div>
|
|
94
|
-
</${
|
|
95
|
-
${
|
|
96
|
-
</${
|
|
97
|
-
`};e.renderer.rules.fence=
|
|
98
|
-
`)})));let
|
|
99
|
-
`)}))},
|
|
100
|
-
`),
|
|
101
|
-
`))):at.emit(n,jm,c+1,p)};a.forEach(l=>{l.addEventListener("click",s)}),u=()=>{a.forEach(l=>{l.removeEventListener("click",s)})}};i.onBeforeUnmount(()=>{u()}),i.watch([t],()=>{u(),i.nextTick(o)},{immediate:!0})},Up=(e,t,n)=>{const r=i.inject("setting"),u=()=>{i.nextTick(()=>{var a;(a=e.onRemount)==null||a.call(e)})},o=a=>{a&&u()};i.watch([t,n],u),i.watch(()=>r.value.preview,o),i.watch(()=>r.value.htmlPreview,o),i.onMounted(u)},Ys={modelValue:{type:String,default:""},onChange:{type:Function,default:()=>{}},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},noKatex:{type:Boolean,default:!1},formatCopiedText:{type:Function,default:e=>e},noHighlight:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean},sanitizeMermaid:{type:Function},codeFoldable:{type:Boolean},autoFoldThreshold:{type:Number},onRemount:{type:Function},noEcharts:{type:Boolean},previewComponent:{type:[Object,Function],default:void 0}};({...Ys});const Ks=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},Wp=(e,t)=>e.nodeType!==t.nodeType?!1:e.nodeType===Node.TEXT_NODE||e.nodeType===Node.COMMENT_NODE?e.textContent===t.textContent:e.nodeType===Node.ELEMENT_NODE?e.outerHTML===t.outerHTML:e.isEqualNode?e.isEqualNode(t):!1,Xp=i.defineComponent({name:"UpdateOnDemand",props:{id:{type:String,required:!0},class:{type:[String,Array,Object],required:!0},html:{type:String,required:!0}},setup(e){const t=i.ref(),n=e.html,r=(u,o)=>{if(!t.value)return;const a=t.value,s=Array.from(a.childNodes),l=Math.min(u.length,o.length);let d=-1;for(let c=0;c<l;c++)if(!Wp(u[c],o[c])){d=c;break}if(d===-1)if(o.length>u.length)d=u.length;else if(u.length>o.length)d=o.length;else return;const f=Math.min(d,s.length);for(let c=s.length-1;c>=f;c--)s[c].remove();for(let c=d;c<u.length;c++)a.appendChild(u[c].cloneNode(!0))};return i.watch(()=>e.html,(u,o)=>{const a=Ks(u),s=Ks(o||"");r(a,s)}),()=>i.createVNode("div",{id:e.id,class:e.class,innerHTML:n,ref:t},null)}}),Gp=i.defineComponent({name:"ContentPreview",props:Ys,setup(e){const t=i.inject("editorId"),n=i.inject("setting"),r=i.inject("previewTheme"),u=i.inject("showCodeRowNumber"),{html:o,key:a}=jp(e,e.previewOnly);pp(e,o,a),Hp(e,o),$p(e,o),Up(e,o,a);const s=i.computed(()=>[`${K}-preview`,`${r==null?void 0:r.value}-theme`,u&&`${K}-scrn`].filter(Boolean)),l=()=>{const d=`${t}-preview`;return e.previewComponent?i.h(e.previewComponent,{key:a.value,html:o.value,id:d,class:s.value}):i.createVNode(Xp,{key:a.value,html:o.value,id:d,class:s.value},null)};return()=>i.createVNode(i.Fragment,null,[n.value.preview&&(e.previewOnly?l():i.createVNode("div",{id:`${t}-preview-wrapper`,class:`${K}-preview-wrapper`,key:"content-preview-wrapper"},[l()])),n.value.htmlPreview&&i.createVNode("div",{id:`${t}-html-wrapper`,class:`${K}-preview-wrapper`,key:"html-preview-wrapper"},[i.createVNode("div",{class:`${K}-html`},[o.value])])])}}),qp=({text:e})=>e,Qs={modelValue:{type:String,default:""},onChange:{type:Function,default:void 0},theme:{type:String,default:"light"},class:{type:String,default:""},language:{type:String,default:"zh-CN"},onHtmlChanged:{type:Function,default:void 0},onGetCatalog:{type:Function,default:void 0},editorId:{type:String,default:void 0},id:{type:String,default:void 0},showCodeRowNumber:{type:Boolean,default:!0},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:qp},sanitize:{type:Function,default:e=>e},noMermaid:{type:Boolean,default:!1},noKatex:{type:Boolean,default:!1},codeTheme:{type:String,default:"atom"},formatCopiedText:{type:Function,default:e=>e},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},noHighlight:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean,default:!1},customIcon:{type:Object,default:{}},sanitizeMermaid:{type:Function,default:e=>Promise.resolve(e)},codeFoldable:{type:Boolean,default:!0},autoFoldThreshold:{type:Number,default:30},onRemount:{type:Function,default:void 0},noEcharts:{type:Boolean,default:!1},previewComponent:{type:[Object,Function],default:void 0}};({...Qs});const Js=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...Js];const Zp=(e,t,n)=>{const{editorId:r}=n,u={rerender(){at.emit(r,Ps)}};t.expose(u)},_o=i.defineComponent({name:"MdPreview",props:Qs,emits:Js,setup(e,t){const{noKatex:n,noMermaid:r,noHighlight:u}=e,o=i.ref(),a=mp(e);hp(e,{rootRef:o,editorId:a}),Zp(e,t,{editorId:a}),i.onBeforeUnmount(()=>{at.clear(a)});const s=c=>{var h;(h=e.onChange)==null||h.call(e,c),t.emit("onChange",c),t.emit("update:modelValue",c)},l=c=>{var h;(h=e.onHtmlChanged)==null||h.call(e,c),t.emit("onHtmlChanged",c)},d=c=>{var h;(h=e.onGetCatalog)==null||h.call(e,c),t.emit("onGetCatalog",c)},f=()=>{var c;(c=e.onRemount)==null||c.call(e),t.emit("onRemount")};return()=>i.createVNode("div",{id:a,class:[K,e.class,e.theme==="dark"&&`${K}-dark`,`${K}-previewOnly`],style:e.style,ref:o},[i.createVNode(Gp,{modelValue:e.modelValue,onChange:s,onHtmlChanged:l,onGetCatalog:d,mdHeadingId:e.mdHeadingId,noMermaid:r,sanitize:e.sanitize,noKatex:n,formatCopiedText:e.formatCopiedText,noHighlight:u,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,onRemount:f,noEcharts:e.noEcharts,previewComponent:e.previewComponent},null)])}});_o.install=e=>(e.component(_o.name,_o),e);const Yp={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},Yu=i.defineComponent({name:"NormalFooterToolbar",props:Yp,emits:["onClick"],setup(e,t){return()=>{const n=Mm({props:e,ctx:t});return i.createVNode("div",{class:[`${K}-footer-item`,e.disabled&&`${K}-disabled`],onClick:r=>{var u;e.disabled||((u=e.onClick)==null||u.call(e,r),t.emit("onClick",r))}},[n])}}});Yu.install=e=>(e.component(Yu.name,Yu),e);var Ku={exports:{}},we={},Qu={exports:{}},un={},el;function tl(){if(el)return un;el=1;function e(){var o={};return o["align-content"]=!1,o["align-items"]=!1,o["align-self"]=!1,o["alignment-adjust"]=!1,o["alignment-baseline"]=!1,o.all=!1,o["anchor-point"]=!1,o.animation=!1,o["animation-delay"]=!1,o["animation-direction"]=!1,o["animation-duration"]=!1,o["animation-fill-mode"]=!1,o["animation-iteration-count"]=!1,o["animation-name"]=!1,o["animation-play-state"]=!1,o["animation-timing-function"]=!1,o.azimuth=!1,o["backface-visibility"]=!1,o.background=!0,o["background-attachment"]=!0,o["background-clip"]=!0,o["background-color"]=!0,o["background-image"]=!0,o["background-origin"]=!0,o["background-position"]=!0,o["background-repeat"]=!0,o["background-size"]=!0,o["baseline-shift"]=!1,o.binding=!1,o.bleed=!1,o["bookmark-label"]=!1,o["bookmark-level"]=!1,o["bookmark-state"]=!1,o.border=!0,o["border-bottom"]=!0,o["border-bottom-color"]=!0,o["border-bottom-left-radius"]=!0,o["border-bottom-right-radius"]=!0,o["border-bottom-style"]=!0,o["border-bottom-width"]=!0,o["border-collapse"]=!0,o["border-color"]=!0,o["border-image"]=!0,o["border-image-outset"]=!0,o["border-image-repeat"]=!0,o["border-image-slice"]=!0,o["border-image-source"]=!0,o["border-image-width"]=!0,o["border-left"]=!0,o["border-left-color"]=!0,o["border-left-style"]=!0,o["border-left-width"]=!0,o["border-radius"]=!0,o["border-right"]=!0,o["border-right-color"]=!0,o["border-right-style"]=!0,o["border-right-width"]=!0,o["border-spacing"]=!0,o["border-style"]=!0,o["border-top"]=!0,o["border-top-color"]=!0,o["border-top-left-radius"]=!0,o["border-top-right-radius"]=!0,o["border-top-style"]=!0,o["border-top-width"]=!0,o["border-width"]=!0,o.bottom=!1,o["box-decoration-break"]=!0,o["box-shadow"]=!0,o["box-sizing"]=!0,o["box-snap"]=!0,o["box-suppress"]=!0,o["break-after"]=!0,o["break-before"]=!0,o["break-inside"]=!0,o["caption-side"]=!1,o.chains=!1,o.clear=!0,o.clip=!1,o["clip-path"]=!1,o["clip-rule"]=!1,o.color=!0,o["color-interpolation-filters"]=!0,o["column-count"]=!1,o["column-fill"]=!1,o["column-gap"]=!1,o["column-rule"]=!1,o["column-rule-color"]=!1,o["column-rule-style"]=!1,o["column-rule-width"]=!1,o["column-span"]=!1,o["column-width"]=!1,o.columns=!1,o.contain=!1,o.content=!1,o["counter-increment"]=!1,o["counter-reset"]=!1,o["counter-set"]=!1,o.crop=!1,o.cue=!1,o["cue-after"]=!1,o["cue-before"]=!1,o.cursor=!1,o.direction=!1,o.display=!0,o["display-inside"]=!0,o["display-list"]=!0,o["display-outside"]=!0,o["dominant-baseline"]=!1,o.elevation=!1,o["empty-cells"]=!1,o.filter=!1,o.flex=!1,o["flex-basis"]=!1,o["flex-direction"]=!1,o["flex-flow"]=!1,o["flex-grow"]=!1,o["flex-shrink"]=!1,o["flex-wrap"]=!1,o.float=!1,o["float-offset"]=!1,o["flood-color"]=!1,o["flood-opacity"]=!1,o["flow-from"]=!1,o["flow-into"]=!1,o.font=!0,o["font-family"]=!0,o["font-feature-settings"]=!0,o["font-kerning"]=!0,o["font-language-override"]=!0,o["font-size"]=!0,o["font-size-adjust"]=!0,o["font-stretch"]=!0,o["font-style"]=!0,o["font-synthesis"]=!0,o["font-variant"]=!0,o["font-variant-alternates"]=!0,o["font-variant-caps"]=!0,o["font-variant-east-asian"]=!0,o["font-variant-ligatures"]=!0,o["font-variant-numeric"]=!0,o["font-variant-position"]=!0,o["font-weight"]=!0,o.grid=!1,o["grid-area"]=!1,o["grid-auto-columns"]=!1,o["grid-auto-flow"]=!1,o["grid-auto-rows"]=!1,o["grid-column"]=!1,o["grid-column-end"]=!1,o["grid-column-start"]=!1,o["grid-row"]=!1,o["grid-row-end"]=!1,o["grid-row-start"]=!1,o["grid-template"]=!1,o["grid-template-areas"]=!1,o["grid-template-columns"]=!1,o["grid-template-rows"]=!1,o["hanging-punctuation"]=!1,o.height=!0,o.hyphens=!1,o.icon=!1,o["image-orientation"]=!1,o["image-resolution"]=!1,o["ime-mode"]=!1,o["initial-letters"]=!1,o["inline-box-align"]=!1,o["justify-content"]=!1,o["justify-items"]=!1,o["justify-self"]=!1,o.left=!1,o["letter-spacing"]=!0,o["lighting-color"]=!0,o["line-box-contain"]=!1,o["line-break"]=!1,o["line-grid"]=!1,o["line-height"]=!1,o["line-snap"]=!1,o["line-stacking"]=!1,o["line-stacking-ruby"]=!1,o["line-stacking-shift"]=!1,o["line-stacking-strategy"]=!1,o["list-style"]=!0,o["list-style-image"]=!0,o["list-style-position"]=!0,o["list-style-type"]=!0,o.margin=!0,o["margin-bottom"]=!0,o["margin-left"]=!0,o["margin-right"]=!0,o["margin-top"]=!0,o["marker-offset"]=!1,o["marker-side"]=!1,o.marks=!1,o.mask=!1,o["mask-box"]=!1,o["mask-box-outset"]=!1,o["mask-box-repeat"]=!1,o["mask-box-slice"]=!1,o["mask-box-source"]=!1,o["mask-box-width"]=!1,o["mask-clip"]=!1,o["mask-image"]=!1,o["mask-origin"]=!1,o["mask-position"]=!1,o["mask-repeat"]=!1,o["mask-size"]=!1,o["mask-source-type"]=!1,o["mask-type"]=!1,o["max-height"]=!0,o["max-lines"]=!1,o["max-width"]=!0,o["min-height"]=!0,o["min-width"]=!0,o["move-to"]=!1,o["nav-down"]=!1,o["nav-index"]=!1,o["nav-left"]=!1,o["nav-right"]=!1,o["nav-up"]=!1,o["object-fit"]=!1,o["object-position"]=!1,o.opacity=!1,o.order=!1,o.orphans=!1,o.outline=!1,o["outline-color"]=!1,o["outline-offset"]=!1,o["outline-style"]=!1,o["outline-width"]=!1,o.overflow=!1,o["overflow-wrap"]=!1,o["overflow-x"]=!1,o["overflow-y"]=!1,o.padding=!0,o["padding-bottom"]=!0,o["padding-left"]=!0,o["padding-right"]=!0,o["padding-top"]=!0,o.page=!1,o["page-break-after"]=!1,o["page-break-before"]=!1,o["page-break-inside"]=!1,o["page-policy"]=!1,o.pause=!1,o["pause-after"]=!1,o["pause-before"]=!1,o.perspective=!1,o["perspective-origin"]=!1,o.pitch=!1,o["pitch-range"]=!1,o["play-during"]=!1,o.position=!1,o["presentation-level"]=!1,o.quotes=!1,o["region-fragment"]=!1,o.resize=!1,o.rest=!1,o["rest-after"]=!1,o["rest-before"]=!1,o.richness=!1,o.right=!1,o.rotation=!1,o["rotation-point"]=!1,o["ruby-align"]=!1,o["ruby-merge"]=!1,o["ruby-position"]=!1,o["shape-image-threshold"]=!1,o["shape-outside"]=!1,o["shape-margin"]=!1,o.size=!1,o.speak=!1,o["speak-as"]=!1,o["speak-header"]=!1,o["speak-numeral"]=!1,o["speak-punctuation"]=!1,o["speech-rate"]=!1,o.stress=!1,o["string-set"]=!1,o["tab-size"]=!1,o["table-layout"]=!1,o["text-align"]=!0,o["text-align-last"]=!0,o["text-combine-upright"]=!0,o["text-decoration"]=!0,o["text-decoration-color"]=!0,o["text-decoration-line"]=!0,o["text-decoration-skip"]=!0,o["text-decoration-style"]=!0,o["text-emphasis"]=!0,o["text-emphasis-color"]=!0,o["text-emphasis-position"]=!0,o["text-emphasis-style"]=!0,o["text-height"]=!0,o["text-indent"]=!0,o["text-justify"]=!0,o["text-orientation"]=!0,o["text-overflow"]=!0,o["text-shadow"]=!0,o["text-space-collapse"]=!0,o["text-transform"]=!0,o["text-underline-position"]=!0,o["text-wrap"]=!0,o.top=!1,o.transform=!1,o["transform-origin"]=!1,o["transform-style"]=!1,o.transition=!1,o["transition-delay"]=!1,o["transition-duration"]=!1,o["transition-property"]=!1,o["transition-timing-function"]=!1,o["unicode-bidi"]=!1,o["vertical-align"]=!1,o.visibility=!1,o["voice-balance"]=!1,o["voice-duration"]=!1,o["voice-family"]=!1,o["voice-pitch"]=!1,o["voice-range"]=!1,o["voice-rate"]=!1,o["voice-stress"]=!1,o["voice-volume"]=!1,o.volume=!1,o["white-space"]=!1,o.widows=!1,o.width=!0,o["will-change"]=!1,o["word-break"]=!0,o["word-spacing"]=!0,o["word-wrap"]=!0,o["wrap-flow"]=!1,o["wrap-through"]=!1,o["writing-mode"]=!1,o["z-index"]=!1,o}function t(o,a,s){}function n(o,a,s){}var r=/javascript\s*\:/img;function u(o,a){return r.test(a)?"":a}return un.whiteList=e(),un.getDefaultWhiteList=e,un.onAttr=t,un.onIgnoreAttr=n,un.safeAttrValue=u,un}var nl,rl;function ol(){return rl||(rl=1,nl={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,u;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,u=e.length;r<u;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}),nl}var Ju,ul;function Kp(){if(ul)return Ju;ul=1;var e=ol();function t(n,r){n=e.trimRight(n),n[n.length-1]!==";"&&(n+=";");var u=n.length,o=!1,a=0,s=0,l="";function d(){if(!o){var h=e.trim(n.slice(a,s)),p=h.indexOf(":");if(p!==-1){var m=e.trim(h.slice(0,p)),x=e.trim(h.slice(p+1));if(m){var v=r(a,l.length,m,x,h);v&&(l+=v+"; ")}}}a=s+1}for(;s<u;s++){var f=n[s];if(f==="/"&&n[s+1]==="*"){var c=n.indexOf("*/",s+2);if(c===-1)break;s=c+1,a=s+1,o=!1}else f==="("?o=!0:f===")"?o=!1:f===";"?o||d():f===`
|
|
102
|
-
`&&d()}return e.trim(l)}return Ju=t,Ju}var ei,il;function Qp(){if(il)return ei;il=1;var e=tl(),t=Kp();ol();function n(o){return o==null}function r(o){var a={};for(var s in o)a[s]=o[s];return a}function u(o){o=r(o||{}),o.whiteList=o.whiteList||e.whiteList,o.onAttr=o.onAttr||e.onAttr,o.onIgnoreAttr=o.onIgnoreAttr||e.onIgnoreAttr,o.safeAttrValue=o.safeAttrValue||e.safeAttrValue,this.options=o}return u.prototype.process=function(o){if(o=o||"",o=o.toString(),!o)return"";var a=this,s=a.options,l=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,c=s.safeAttrValue,h=t(o,function(p,m,x,v,y){var b=l[x],g=!1;if(b===!0?g=b:typeof b=="function"?g=b(v):b instanceof RegExp&&(g=b.test(v)),g!==!0&&(g=!1),v=c(x,v),!!v){var w={position:m,sourcePosition:p,source:y,isWhite:g};if(g){var A=d(x,v,w);return n(A)?x+":"+v:A}else{var A=f(x,v,w);if(!n(A))return A}}});return h},ei=u,ei}var al;function ti(){return al||(al=1,function(e,t){var n=tl(),r=Qp();function u(a,s){var l=new r(s);return l.process(a)}t=e.exports=u,t.FilterCSS=r;for(var o in n)t[o]=n[o];typeof window<"u"&&(window.filterCSS=e.exports)}(Qu,Qu.exports)),Qu.exports}var sl,ll;function ni(){return ll||(ll=1,sl={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,u;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,u=e.length;r<u;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}}),sl}var cl;function dl(){if(cl)return we;cl=1;var e=ti().FilterCSS,t=ti().getDefaultWhiteList,n=ni();function r(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var u=new e;function o(D,j,z){}function a(D,j,z){}function s(D,j,z){}function l(D,j,z){}function d(D){return D.replace(c,"<").replace(h,">")}function f(D,j,z,Z){if(z=$(z),j==="href"||j==="src"){if(z=n.trim(z),z==="#")return"#";if(!(z.substr(0,7)==="http://"||z.substr(0,8)==="https://"||z.substr(0,7)==="mailto:"||z.substr(0,4)==="tel:"||z.substr(0,11)==="data:image/"||z.substr(0,6)==="ftp://"||z.substr(0,2)==="./"||z.substr(0,3)==="../"||z[0]==="#"||z[0]==="/"))return""}else if(j==="background"){if(b.lastIndex=0,b.test(z))return""}else if(j==="style"){if(g.lastIndex=0,g.test(z)||(w.lastIndex=0,w.test(z)&&(b.lastIndex=0,b.test(z))))return"";Z!==!1&&(Z=Z||u,z=Z.process(z))}return z=M(z),z}var c=/</g,h=/>/g,p=/"/g,m=/"/g,x=/&#([a-zA-Z0-9]*);?/gim,v=/:?/gim,y=/&newline;?/gim,b=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,g=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,w=/u\s*r\s*l\s*\(.*/gi;function A(D){return D.replace(p,""")}function N(D){return D.replace(m,'"')}function F(D){return D.replace(x,function(j,z){return z[0]==="x"||z[0]==="X"?String.fromCharCode(parseInt(z.substr(1),16)):String.fromCharCode(parseInt(z,10))})}function _(D){return D.replace(v,":").replace(y," ")}function G(D){for(var j="",z=0,Z=D.length;z<Z;z++)j+=D.charCodeAt(z)<32?" ":D.charAt(z);return n.trim(j)}function $(D){return D=N(D),D=F(D),D=_(D),D=G(D),D}function M(D){return D=A(D),D=d(D),D}function H(){return""}function I(D,j){typeof j!="function"&&(j=function(){});var z=!Array.isArray(D);function Z(S){return z?!0:n.indexOf(D,S)!==-1}var ue=[],C=!1;return{onIgnoreTag:function(S,T,O){if(Z(S))if(O.isClosing){var P="[/removed]",U=O.position+P.length;return ue.push([C!==!1?C:O.position,U]),C=!1,P}else return C||(C=O.position),"[removed]";else return j(S,T,O)},remove:function(S){var T="",O=0;return n.forEach(ue,function(P){T+=S.slice(O,P[0]),O=P[1]}),T+=S.slice(O),T}}}function X(D){for(var j="",z=0;z<D.length;){var Z=D.indexOf("<!--",z);if(Z===-1){j+=D.slice(z);break}j+=D.slice(z,Z);var ue=D.indexOf("-->",Z);if(ue===-1)break;z=ue+3}return j}function q(D){var j=D.split("");return j=j.filter(function(z){var Z=z.charCodeAt(0);return Z===127?!1:Z<=31?Z===10||Z===13:!0}),j.join("")}return we.whiteList=r(),we.getDefaultWhiteList=r,we.onTag=o,we.onIgnoreTag=a,we.onTagAttr=s,we.onIgnoreTagAttr=l,we.safeAttrValue=f,we.escapeHtml=d,we.escapeQuote=A,we.unescapeQuote=N,we.escapeHtmlEntities=F,we.escapeDangerHtml5Entities=_,we.clearNonPrintableCharacter=G,we.friendlyAttrValue=$,we.escapeAttrValue=M,we.onIgnoreTagStripAll=H,we.StripTagBody=I,we.stripCommentTag=X,we.stripBlankChar=q,we.attributeWrapSign='"',we.cssFilter=u,we.getDefaultCSSWhiteList=t,we}var Eo={},fl;function hl(){if(fl)return Eo;fl=1;var e=ni();function t(c){var h=e.spaceIndex(c),p;return h===-1?p=c.slice(1,-1):p=c.slice(1,h+1),p=e.trim(p).toLowerCase(),p.slice(0,1)==="/"&&(p=p.slice(1)),p.slice(-1)==="/"&&(p=p.slice(0,-1)),p}function n(c){return c.slice(0,2)==="</"}function r(c,h,p){var m="",x=0,v=!1,y=!1,b=0,g=c.length,w="",A="";e:for(b=0;b<g;b++){var N=c.charAt(b);if(v===!1){if(N==="<"){v=b;continue}}else if(y===!1){if(N==="<"){m+=p(c.slice(x,b)),v=b,x=b;continue}if(N===">"||b===g-1){m+=p(c.slice(x,v)),A=c.slice(v,b+1),w=t(A),m+=h(v,m.length,w,A,n(A)),x=b+1,v=!1;continue}if(N==='"'||N==="'")for(var F=1,_=c.charAt(b-F);_.trim()===""||_==="=";){if(_==="="){y=N;continue e}_=c.charAt(b-++F)}}else if(N===y){y=!1;continue}}return x<g&&(m+=p(c.substr(x))),m}var u=/[^a-zA-Z0-9\\_:.-]/gim;function o(c,h){var p=0,m=0,x=[],v=!1,y=c.length;function b(F,_){if(F=e.trim(F),F=F.replace(u,"").toLowerCase(),!(F.length<1)){var G=h(F,_||"");G&&x.push(G)}}for(var g=0;g<y;g++){var w=c.charAt(g),A,N;if(v===!1&&w==="="){v=c.slice(p,g),p=g+1,m=c.charAt(p)==='"'||c.charAt(p)==="'"?p:s(c,g+1);continue}if(v!==!1&&g===m){if(N=c.indexOf(w,g+1),N===-1)break;A=e.trim(c.slice(m+1,N)),b(v,A),v=!1,g=N,p=g+1;continue}if(/\s|\n|\t/.test(w))if(c=c.replace(/\s|\n|\t/g," "),v===!1)if(N=a(c,g),N===-1){A=e.trim(c.slice(p,g)),b(A),v=!1,p=g+1;continue}else{g=N-1;continue}else if(N=l(c,g-1),N===-1){A=e.trim(c.slice(p,g)),A=f(A),b(v,A),v=!1,p=g+1;continue}else continue}return p<c.length&&(v===!1?b(c.slice(p)):b(v,f(e.trim(c.slice(p))))),e.trim(x.join(" "))}function a(c,h){for(;h<c.length;h++){var p=c[h];if(p!==" ")return p==="="?h:-1}}function s(c,h){for(;h<c.length;h++){var p=c[h];if(p!==" ")return p==="'"||p==='"'?h:-1}}function l(c,h){for(;h>0;h--){var p=c[h];if(p!==" ")return p==="="?h:-1}}function d(c){return c[0]==='"'&&c[c.length-1]==='"'||c[0]==="'"&&c[c.length-1]==="'"}function f(c){return d(c)?c.substr(1,c.length-2):c}return Eo.parseTag=r,Eo.parseAttr=o,Eo}var ri,ml;function Jp(){if(ml)return ri;ml=1;var e=ti().FilterCSS,t=dl(),n=hl(),r=n.parseTag,u=n.parseAttr,o=ni();function a(c){return c==null}function s(c){var h=o.spaceIndex(c);if(h===-1)return{html:"",closing:c[c.length-2]==="/"};c=o.trim(c.slice(h+1,-1));var p=c[c.length-1]==="/";return p&&(c=o.trim(c.slice(0,-1))),{html:c,closing:p}}function l(c){var h={};for(var p in c)h[p]=c[p];return h}function d(c){var h={};for(var p in c)Array.isArray(c[p])?h[p.toLowerCase()]=c[p].map(function(m){return m.toLowerCase()}):h[p.toLowerCase()]=c[p];return h}function f(c){c=l(c||{}),c.stripIgnoreTag&&(c.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),c.onIgnoreTag=t.onIgnoreTagStripAll),c.whiteList||c.allowList?c.whiteList=d(c.whiteList||c.allowList):c.whiteList=t.whiteList,this.attributeWrapSign=c.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,c.onTag=c.onTag||t.onTag,c.onTagAttr=c.onTagAttr||t.onTagAttr,c.onIgnoreTag=c.onIgnoreTag||t.onIgnoreTag,c.onIgnoreTagAttr=c.onIgnoreTagAttr||t.onIgnoreTagAttr,c.safeAttrValue=c.safeAttrValue||t.safeAttrValue,c.escapeHtml=c.escapeHtml||t.escapeHtml,this.options=c,c.css===!1?this.cssFilter=!1:(c.css=c.css||{},this.cssFilter=new e(c.css))}return f.prototype.process=function(c){if(c=c||"",c=c.toString(),!c)return"";var h=this,p=h.options,m=p.whiteList,x=p.onTag,v=p.onIgnoreTag,y=p.onTagAttr,b=p.onIgnoreTagAttr,g=p.safeAttrValue,w=p.escapeHtml,A=h.attributeWrapSign,N=h.cssFilter;p.stripBlankChar&&(c=t.stripBlankChar(c)),p.allowCommentTag||(c=t.stripCommentTag(c));var F=!1;p.stripIgnoreTagBody&&(F=t.StripTagBody(p.stripIgnoreTagBody,v),v=F.onIgnoreTag);var _=r(c,function(G,$,M,H,I){var X={sourcePosition:G,position:$,isClosing:I,isWhite:Object.prototype.hasOwnProperty.call(m,M)},q=x(M,H,X);if(!a(q))return q;if(X.isWhite){if(X.isClosing)return"</"+M+">";var D=s(H),j=m[M],z=u(D.html,function(Z,ue){var C=o.indexOf(j,Z)!==-1,S=y(M,Z,ue,C);return a(S)?C?(ue=g(M,Z,ue,N),ue?Z+"="+A+ue+A:Z):(S=b(M,Z,ue,C),a(S)?void 0:S):S});return H="<"+M,z&&(H+=" "+z),D.closing&&(H+=" /"),H+=">",H}else return q=v(M,H,X),a(q)?w(H):q},w);return F&&(_=F.remove(_)),_},ri=f,ri}var pl;function e1(){return pl||(pl=1,function(e,t){var n=dl(),r=hl(),u=Jp();function o(s,l){var d=new u(l);return d.process(s)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=u,function(){for(var s in n)t[s]=n[s];for(var l in r)t[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)}(Ku,Ku.exports)),Ku.exports}e1();const an=i.defineComponent({name:"FMarkdownPreview",props:Os,setup(e){return()=>i.createVNode("div",{class:"f-markdown-preview-container"},[i.createVNode(_o,{modelValue:e.content},null)])}});an.install=e=>{e.component(an.name,an)};const oi="farris-x-preview-bridge",ui=1,ii="assistant.message";function gl(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function bl(e){return e!==null&&typeof e=="object"}function yl(e){if(!bl(e)||e.source!==oi||e.v!==ui||e.type!==ii)return!1;const t=e.payload;return!(!bl(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function t1(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function wl(e,t,n){const r=gl(n);try{return e.postMessage({source:oi,v:ui,type:ii,payload:r},t),!0}catch{return!1}}function xl(e){const t=e.allowTopAsSource!==!1,n=r=>{var u;t1(r,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(r.origin)||yl(r.data)&&((u=e.onAssistantMessage)==null||u.call(e,r.data.payload)))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}const n1="/platform/common/web/renderer/index.html#/preview",r1="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",o1="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",u1="67441dbb-0219-46f2-b247-51555c317995";function vl(e){if(e.url)return e.url;const t=e.baseUri??n1,n=e.metadataPath??r1,r=e.projectPath??o1,u=e.baseMetadataId??u1;return`${t}?metadataPath=${encodeURIComponent(n)}&projectPath=${encodeURIComponent(r)}&baseMetadataId=${encodeURIComponent(u)}`}function i1(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=vl(e),n=new URL(t,window.location.href).origin;return n==="null"||n===""?window.location.origin:n}catch{return null}}const mr=i.defineComponent({name:"ChatPreview",props:Is,setup(e,{expose:t}){const n=i.ref(null),r=i.ref(null),u=i.ref(!1),o=i.ref(!1),a=i.computed(()=>vl(e.previewConfig??{})),s=i.computed(()=>{var D;return((D=e.previewConfig)==null?void 0:D.contentType)==="markdown"}),l=i.computed(()=>{var D;return Object.keys(((D=e.previewConfig)==null?void 0:D.contentMap)??{})}),d=i.computed(()=>l.value.filter(D=>D).length>0),f=i.ref(),c=i.ref(),h=i.ref(!1);let p=null;i.onBeforeUnmount(()=>{p==null||p(),p=null,H()}),i.watch(()=>[a.value,n.value,s.value],()=>{if(p==null||p(),p=null,s.value)return;const D=n.value;if(!D)return;h.value=!1,u.value=!1,o.value=!1;const j=Date.now(),z=200,Z=300,ue=1e4;let C=!1,S=null,T=null;T=window.setTimeout(()=>{T=null,C||(o.value=!0)},z);const O=()=>{if(C)return;if(C=!0,S&&(window.clearTimeout(S),S=null),T&&(window.clearTimeout(T),T=null),h.value=!0,I(D),o.value){const L=Date.now()-j,R=Math.max(0,Z-L);setTimeout(()=>{u.value=!0},R)}else u.value=!0;const U=()=>{var L;return(L=e.onIframeLoad)==null?void 0:L.call(e)};U(),window.setTimeout(U,0),window.setTimeout(U,120)},P=()=>{var U;C||(C=!0,T&&(window.clearTimeout(T),T=null),console.warn("ChatPreview: iframe load timeout"),h.value=!0,u.value=!0,(U=e.onIframeLoad)==null||U.call(e))};D.addEventListener("load",O,{once:!0}),S=window.setTimeout(P,ue),p=()=>{D.removeEventListener("load",O),S&&(window.clearTimeout(S),S=null),T&&(window.clearTimeout(T),T=null)}},{flush:"post"}),i.watch([s,()=>{var D;return(D=e.previewConfig)==null?void 0:D.contentMap}],()=>{H(),s.value&&i.nextTick(()=>M())},{flush:"post"}),i.watch(()=>{var D;return(D=e.previewConfig)==null?void 0:D.contentMap},D=>{if(D){const j=Object.keys(D);f.value=j[0]??""}else f.value="";m()},{immediate:!0});function m(D){var j,z;D&&(f.value=D),d.value&&f.value?c.value=((z=(j=e.previewConfig)==null?void 0:j.contentMap)==null?void 0:z[f.value])||"":c.value=""}function x(D){var Z;if(s.value||!h.value)return!1;const j=(Z=n.value)==null?void 0:Z.contentWindow;if(!j)return!1;const z=i1(e.previewConfig??{});return z?wl(j,z,D):!1}t({postAssistantPayload:x});const v=i.ref(!1);let y=null;const b=800;function g(){v.value=!0,$(!0),y!=null&&(window.clearTimeout(y),y=null)}function w(){y!=null&&window.clearTimeout(y),y=window.setTimeout(()=>{v.value=!1,$(!1),y=null},b)}function A(){g(),w()}function N(){g()}function F(){w()}let _=[];function G(){const D=r.value;if(!D)return[];const j=[],z=D.querySelectorAll(".f-markdown-preview-container");return z.length>0&&z.forEach(Z=>j.push(Z)),j.length===0&&D.scrollHeight>D.clientHeight&&j.push(D),j}function $(D){const j=r.value;j&&j.querySelectorAll(".f-markdown-preview-container").forEach(z=>{z.classList.toggle("f-chat-preview-scrollbar-visible",D)})}function M(){const D=G();_=D,D.forEach(j=>{j.addEventListener("scroll",A,{passive:!0}),j.addEventListener("mouseenter",N),j.addEventListener("mouseleave",F)})}function H(){_.forEach(D=>{D.removeEventListener("scroll",A),D.removeEventListener("mouseenter",N),D.removeEventListener("mouseleave",F)}),_=[]}function I(D){try{const j=D.contentDocument;if(!j)return;const z="f-chat-preview-injected-scrollbar-style";if(j.getElementById(z))return;const Z=j.createElement("style");Z.id=z,Z.textContent=`
|
|
626
|
+
</${xe}>
|
|
627
|
+
${he}
|
|
628
|
+
</${ae}>
|
|
629
|
+
`};e.renderer.rules.fence=g,e.renderer.rules.code_block=g},Dg=(e,t)=>{const r=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(n,i,a,l,d)=>{var g,m;const f=n[i],p=f.content.trim();if(f.info==="echarts"){if(f.attrSet("class",`${Le}-echarts`),f.attrSet("data-echarts-theme",t.themeRef.value),f.map&&f.level===0){const x=f.map[1]-1,S=!!((m=(g=l.srcLines[x])==null?void 0:g.trim())!=null&&m.startsWith("```"));f.attrSet("data-closed",`${S}`),f.attrSet("data-line",String(f.map[0]))}return`<div ${d.renderAttrs(f)} style="width: 100%; aspect-ratio: 4 / 3;">${e.utils.escapeHtml(p)}</div>`}return r(n,i,a,l,d)}},Mg=(e,t)=>{e.renderer.rules.heading_open=(r,n)=>{var d;const i=r[n],a=((d=r[n+1].children)==null?void 0:d.reduce((f,p)=>f+(["text","code_inline","math_inline"].includes(p.type)&&p.content||""),""))||"",l=i.markup.length;return t.headsRef.value.push({text:a,level:l,line:i.map[0],currentToken:i,nextToken:r[n+1]}),i.map&&i.level===0&&i.attrSet("id",t.mdHeadingId({text:a,level:l,index:t.headsRef.value.length,currentToken:i,nextToken:r[n+1]})),e.renderer.renderToken(r,n,t)},e.renderer.rules.heading_close=(r,n,i,a,l)=>l.renderToken(r,n,i)},lf={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},Ng=e=>(t,r)=>{const n=e.delimiters;for(const i of n){if(!t.src.startsWith(i.open,t.pos))continue;const a=t.pos+i.open.length;let l=a;for(;(l=t.src.indexOf(i.close,l))!==-1;){let d=0,f=l-1;for(;f>=0&&t.src[f]==="\\";)d++,f--;if(d%2===0)break;l+=i.close.length}if(l!==-1){if(l-a===0)return r||(t.pending+=i.open+i.close),t.pos=l+i.close.length,!0;if(!r){const d=t.push("math_inline","math",0);d.markup=i.open,d.content=t.src.slice(a,l)}return t.pos=l+i.close.length,!0}}return!1},zg=e=>(t,r,n,i)=>{const a=e.delimiters,l=t.bMarks[r]+t.tShift[r],d=t.eMarks[r],f=(p,g,m)=>{t.line=g;const x=t.push("math_block","math",0);return x.block=!0,x.content=p,x.map=[r,t.line],x.markup=m,!0};for(const p of a){const g=l;if(t.src.slice(g,g+p.open.length)!==p.open)continue;const m=g+p.open.length,x=t.src.slice(m,d).trim(),S=x==="",C=x===p.close,_=x.endsWith(p.close);if(!S&&!C&&!_)continue;if(i)return!0;if(C)return f("",r+1,p.open);if(!S&&_){const B=x.slice(0,-p.close.length);return f(B,r+1,p.open)}let F=r+1,z=!1,E="";for(;F<n;F++){const B=t.bMarks[F]+t.tShift[F],R=t.eMarks[F];if(B<R&&t.tShift[F]<t.blkIndent)break;if(t.src.slice(B,R).trim().endsWith(p.close)){const W=t.src.slice(0,R).lastIndexOf(p.close);E=t.src.slice(B,W),z=!0;break}}if(!z)continue;const D=t.getLines(r+1,F,t.tShift[r],!0)+(E.trim()?E:"");return f(D,F+1,p.open)}return!1},_g=(e,{katexRef:t,inlineDelimiters:r,blockDelimiters:n})=>{const i=(d,f,p,g,m=!1)=>{const x={attrs:oc(d,[["class",f]])},S=g.renderAttrs(x);if(!t.value)return`<${p} ${S}>${d.content}</${p}>`;const C=t.value.renderToString(d.content,wr.katexConfig({throwOnError:!1,displayMode:m}));return`<${p} ${S} data-processed>${C}</${p}>`},a=(d,f,p,g,m)=>i(d[f],`${Le}-katex-inline`,"span",m),l=(d,f,p,g,m)=>i(d[f],`${Le}-katex-block`,"p",m,!0);e.inline.ruler.before("escape","math_inline",Ng({delimiters:r||lf.inline})),e.block.ruler.after("blockquote","math_block",zg({delimiters:n||lf.block}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=a,e.renderer.rules.math_block=l},Fg=(e,t)=>{const r=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(n,i,a,l,d)=>{var g,m;const f=n[i],p=f.content.trim();if(f.info==="mermaid"){if(f.attrSet("class",`${Le}-mermaid`),f.attrSet("data-mermaid-theme",t.themeRef.value),f.map&&f.level===0){const S=f.map[1]-1,C=!!((m=(g=l.srcLines[S])==null?void 0:g.trim())!=null&&m.startsWith("```"));f.attrSet("data-closed",`${C}`),f.attrSet("data-line",String(f.map[0]))}const x=ws.get(p);return x?(f.attrSet("data-processed",""),f.attrSet("data-content",p),`<p ${d.renderAttrs(f)}>${x}</p>`):`<div ${d.renderAttrs(f)}>${e.utils.escapeHtml(p)}</div>`}return r(n,i,a,l,d)}},uf=(e,t,r)=>{const n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):(e.attrs=e.attrs||[],e.attrs[n]=i)},Ig=e=>e.type==="inline",Bg=e=>e.type==="paragraph_open",Og=e=>e.type==="list_item_open",Lg=e=>e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0,Rg=(e,t)=>Ig(e[t])&&Bg(e[t-1])&&Og(e[t-2])&&Lg(e[t]),Pg=(e,t)=>{const r=e[t].level-1;for(let n=t-1;n>=0;n--)if(e[n].level===r)return n;return-1},Vg=e=>{const t=new e("html_inline","",0);return t.content="<label>",t},Hg=e=>{const t=new e("html_inline","",0);return t.content="</label>",t},qg=(e,t,r)=>{const n=new r("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",n.attrs=[["for",t]],n},jg=(e,t,r)=>{const n=new t("html_inline","",0),i=r.enabled?" ":' disabled="" ';return e.content.indexOf("[ ] ")===0?n.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(n.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">'),n},$g=(e,t,r)=>{if(e.children=e.children||[],e.children.unshift(jg(e,t,r)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r.label)if(r.labelAfter){e.children.pop();const n="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+n+'">',e.children.push(qg(e.content,n,t))}else e.children.unshift(Vg(t)),e.children.push(Hg(t))},Ug=(e,t={})=>{e.core.ruler.after("inline","github-task-lists",r=>{const n=r.tokens;for(let i=2;i<n.length;i++)Rg(n,i)&&($g(n[i],r.Token,t),uf(n[i-2],"class","task-list-item"+(t.enabled?" enabled":" ")),uf(n[Pg(n,i-2)],"class","contains-task-list"))})},Wg=e=>{e.core.ruler.push("init-line-number",t=>(t.tokens.forEach(r=>{r.map&&(r.attrs||(r.attrs=[]),r.attrs.push(["data-line",r.map[0].toString()]))}),!0))},Gg=(e,t)=>{const{editorConfig:r,markdownItPlugins:n}=wr,i=c.inject("editorId"),a=c.inject("language"),l=c.inject("usedLanguageText"),d=c.inject("showCodeRowNumber"),f=c.inject("theme"),p=c.inject("customIcon"),g=c.inject("rootRef"),m=c.inject("setting"),x=c.ref([]),S=Ag(e),C=Sg(e),{reRenderRef:_,replaceMermaid:F}=Cg(e),{reRenderEcharts:z,replaceEcharts:E}=kg(e),D=Y0({html:!0,breaks:!0,linkify:!0}),B=[{type:"image",plugin:rg,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:Tg,options:{}},{type:"taskList",plugin:Ug,options:{}},{type:"heading",plugin:Mg,options:{mdHeadingId:e.mdHeadingId,headsRef:x}},{type:"code",plugin:Eg,options:{editorId:i,usedLanguageTextRef:l,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,customIconRef:p}},{type:"sub",plugin:ig,options:{}},{type:"sup",plugin:lg,options:{}}];e.noKatex||B.push({type:"katex",plugin:_g,options:{katexRef:C}}),e.noMermaid||B.push({type:"mermaid",plugin:Fg,options:{themeRef:f}}),e.noEcharts||B.push({type:"echarts",plugin:Dg,options:{themeRef:f}}),n(B,{editorId:i}).forEach(Ce=>{D.use(Ce.plugin,Ce.options)});const R=D.options.highlight;D.set({highlight:(Ce,te,ye)=>{if(R){const Ue=R(Ce,te,ye);if(Ue)return Ue}let ne;!e.noHighlight&&S.value?S.value.getLanguage(te)?ne=S.value.highlight(Ce,{language:te,ignoreIllegals:!0}).value:ne=S.value.highlightAuto(Ce).value:ne=D.utils.escapeHtml(Ce);const ze=d?Y9(ne.replace(/^\n+|\n+$/g,""),Ce.replace(/^\n+|\n+$/g,"")):`<span class="${Le}-code-block">${ne.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${te}" language=${te}>${ze}</code></pre>`}}),Wg(D);const W=c.ref(`_article-key_${Ju()}`),Y=c.ref(e.sanitize(D.render(e.modelValue,{srcLines:e.modelValue.split(`
|
|
630
|
+
`)})));let q=()=>{},pe=()=>{};const he=()=>{var te;const Ce=(te=g.value)==null?void 0:te.querySelectorAll(`#${i} p.${Le}-mermaid:not([data-closed=false])`);pe(),pe=J9(Ce,{customIcon:p.value}),q(),q=eg(Ce,{customIcon:p.value})},ce=()=>{ur.emit(i,U9,Y.value),e.onHtmlChanged(Y.value),e.onGetCatalog(x.value),ur.emit(i,ac,x.value),c.nextTick(()=>{F().then(he),E()})},be=()=>{x.value=[],Y.value=e.sanitize(D.render(e.modelValue,{srcLines:e.modelValue.split(`
|
|
631
|
+
`)}))},ae=c.computed(()=>(e.noKatex||!!C.value)&&(e.noHighlight||!!S.value));let xe=-1;return c.watch([c.toRef(e,"modelValue"),ae,_,a],()=>{xe=window.setTimeout(()=>{be()},t?0:r.renderDelay)}),c.watch(()=>m.value.preview,()=>{m.value.preview&&c.nextTick(()=>{F().then(he),E(),ur.emit(i,ac,x.value)})}),c.watch([Y,z],()=>{ce()}),c.onMounted(ce),c.onMounted(()=>{ur.on(i,{name:W9,callback(){ur.emit(i,ac,x.value)}}),ur.on(i,{name:Z2,callback:()=>{W.value=`_article-key_${Ju()}`,be()}})}),c.onBeforeUnmount(()=>{q(),pe(),clearTimeout(xe)}),{html:Y,key:W}},Xg=(e,t)=>{const r=c.inject("editorId"),n=c.inject("setting"),{noImgZoomIn:i}=e,a=B9(()=>{const l=document.querySelectorAll(`#${r}-preview img:not(.not-zoom):not(.medium-zoom-image)`);l.length!==0&&gg(l,{background:"#00000073"})});c.onMounted(async()=>{!i&&n.value.preview&&await a()}),c.watch([t,()=>n.value.preview],async()=>{!i&&n.value.preview&&await a()})},cf={checked:{regexp:/- \[x\]/,value:"- [ ]"},unChecked:{regexp:/- \[\s\]/,value:"- [x]"}},Yg=(e,t)=>{const r=c.inject("editorId"),n=c.inject("rootRef");let i=()=>{};const a=()=>{if(!n.value)return!1;const l=n.value.querySelectorAll(".task-list-item.enabled"),d=f=>{var C;f.preventDefault();const p=f.target.checked?"unChecked":"checked",g=(C=f.target.parentElement)==null?void 0:C.dataset.line;if(!g)return;const m=Number(g),x=e.modelValue.split(`
|
|
632
|
+
`),S=x[Number(m)].replace(cf[p].regexp,cf[p].value);e.previewOnly?(x[Number(m)]=S,e.onChange(x.join(`
|
|
633
|
+
`))):ur.emit(r,G9,m+1,S)};l.forEach(f=>{f.addEventListener("click",d)}),i=()=>{l.forEach(f=>{f.removeEventListener("click",d)})}};c.onBeforeUnmount(()=>{i()}),c.watch([t],()=>{i(),c.nextTick(a)},{immediate:!0})},Zg=(e,t,r)=>{const n=c.inject("setting"),i=()=>{c.nextTick(()=>{var l;(l=e.onRemount)==null||l.call(e)})},a=l=>{l&&i()};c.watch([t,r],i),c.watch(()=>n.value.preview,a),c.watch(()=>n.value.htmlPreview,a),c.onMounted(i)},df={modelValue:{type:String,default:""},onChange:{type:Function,default:()=>{}},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},noKatex:{type:Boolean,default:!1},formatCopiedText:{type:Function,default:e=>e},noHighlight:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean},sanitizeMermaid:{type:Function},codeFoldable:{type:Boolean},autoFoldThreshold:{type:Number},onRemount:{type:Function},noEcharts:{type:Boolean},previewComponent:{type:[Object,Function],default:void 0}};({...df});const ff=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},Kg=(e,t)=>e.nodeType!==t.nodeType?!1:e.nodeType===Node.TEXT_NODE||e.nodeType===Node.COMMENT_NODE?e.textContent===t.textContent:e.nodeType===Node.ELEMENT_NODE?e.outerHTML===t.outerHTML:e.isEqualNode?e.isEqualNode(t):!1,Qg=c.defineComponent({name:"UpdateOnDemand",props:{id:{type:String,required:!0},class:{type:[String,Array,Object],required:!0},html:{type:String,required:!0}},setup(e){const t=c.ref(),r=e.html,n=(i,a)=>{if(!t.value)return;const l=t.value,d=Array.from(l.childNodes),f=Math.min(i.length,a.length);let p=-1;for(let m=0;m<f;m++)if(!Kg(i[m],a[m])){p=m;break}if(p===-1)if(a.length>i.length)p=i.length;else if(i.length>a.length)p=a.length;else return;const g=Math.min(p,d.length);for(let m=d.length-1;m>=g;m--)d[m].remove();for(let m=p;m<i.length;m++)l.appendChild(i[m].cloneNode(!0))};return c.watch(()=>e.html,(i,a)=>{const l=ff(i),d=ff(a||"");n(l,d)}),()=>c.createVNode("div",{id:e.id,class:e.class,innerHTML:r,ref:t},null)}}),Jg=c.defineComponent({name:"ContentPreview",props:df,setup(e){const t=c.inject("editorId"),r=c.inject("setting"),n=c.inject("previewTheme"),i=c.inject("showCodeRowNumber"),{html:a,key:l}=Gg(e,e.previewOnly);wg(e,a,l),Xg(e,a),Yg(e,a),Zg(e,a,l);const d=c.computed(()=>[`${Le}-preview`,`${n==null?void 0:n.value}-theme`,i&&`${Le}-scrn`].filter(Boolean)),f=()=>{const p=`${t}-preview`;return e.previewComponent?c.h(e.previewComponent,{key:l.value,html:a.value,id:p,class:d.value}):c.createVNode(Qg,{key:l.value,html:a.value,id:p,class:d.value},null)};return()=>c.createVNode(c.Fragment,null,[r.value.preview&&(e.previewOnly?f():c.createVNode("div",{id:`${t}-preview-wrapper`,class:`${Le}-preview-wrapper`,key:"content-preview-wrapper"},[f()])),r.value.htmlPreview&&c.createVNode("div",{id:`${t}-html-wrapper`,class:`${Le}-preview-wrapper`,key:"html-preview-wrapper"},[c.createVNode("div",{class:`${Le}-html`},[a.value])])])}}),eb=({text:e})=>e,hf={modelValue:{type:String,default:""},onChange:{type:Function,default:void 0},theme:{type:String,default:"light"},class:{type:String,default:""},language:{type:String,default:"zh-CN"},onHtmlChanged:{type:Function,default:void 0},onGetCatalog:{type:Function,default:void 0},editorId:{type:String,default:void 0},id:{type:String,default:void 0},showCodeRowNumber:{type:Boolean,default:!0},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:eb},sanitize:{type:Function,default:e=>e},noMermaid:{type:Boolean,default:!1},noKatex:{type:Boolean,default:!1},codeTheme:{type:String,default:"atom"},formatCopiedText:{type:Function,default:e=>e},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},noHighlight:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean,default:!1},customIcon:{type:Object,default:{}},sanitizeMermaid:{type:Function,default:e=>Promise.resolve(e)},codeFoldable:{type:Boolean,default:!0},autoFoldThreshold:{type:Number,default:30},onRemount:{type:Function,default:void 0},noEcharts:{type:Boolean,default:!1},previewComponent:{type:[Object,Function],default:void 0}};({...hf});const mf=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...mf];const tb=(e,t,r)=>{const{editorId:n}=r,i={rerender(){ur.emit(n,Z2)}};t.expose(i)},ks=c.defineComponent({name:"MdPreview",props:hf,emits:mf,setup(e,t){const{noKatex:r,noMermaid:n,noHighlight:i}=e,a=c.ref(),l=xg(e);vg(e,{rootRef:a,editorId:l}),tb(e,t,{editorId:l}),c.onBeforeUnmount(()=>{ur.clear(l)});const d=m=>{var x;(x=e.onChange)==null||x.call(e,m),t.emit("onChange",m),t.emit("update:modelValue",m)},f=m=>{var x;(x=e.onHtmlChanged)==null||x.call(e,m),t.emit("onHtmlChanged",m)},p=m=>{var x;(x=e.onGetCatalog)==null||x.call(e,m),t.emit("onGetCatalog",m)},g=()=>{var m;(m=e.onRemount)==null||m.call(e),t.emit("onRemount")};return()=>c.createVNode("div",{id:l,class:[Le,e.class,e.theme==="dark"&&`${Le}-dark`,`${Le}-previewOnly`],style:e.style,ref:a},[c.createVNode(Jg,{modelValue:e.modelValue,onChange:d,onHtmlChanged:f,onGetCatalog:p,mdHeadingId:e.mdHeadingId,noMermaid:n,sanitize:e.sanitize,noKatex:r,formatCopiedText:e.formatCopiedText,noHighlight:i,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,onRemount:g,noEcharts:e.noEcharts,previewComponent:e.previewComponent},null)])}});ks.install=e=>(e.component(ks.name,ks),e);const rb={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},sc=c.defineComponent({name:"NormalFooterToolbar",props:rb,emits:["onClick"],setup(e,t){return()=>{const r=$9({props:e,ctx:t});return c.createVNode("div",{class:[`${Le}-footer-item`,e.disabled&&`${Le}-disabled`],onClick:n=>{var i;e.disabled||((i=e.onClick)==null||i.call(e,n),t.emit("onClick",n))}},[r])}}});sc.install=e=>(e.component(sc.name,sc),e);var lc={exports:{}},Ft={},uc={exports:{}},ta={},pf;function gf(){if(pf)return ta;pf=1;function e(){var a={};return a["align-content"]=!1,a["align-items"]=!1,a["align-self"]=!1,a["alignment-adjust"]=!1,a["alignment-baseline"]=!1,a.all=!1,a["anchor-point"]=!1,a.animation=!1,a["animation-delay"]=!1,a["animation-direction"]=!1,a["animation-duration"]=!1,a["animation-fill-mode"]=!1,a["animation-iteration-count"]=!1,a["animation-name"]=!1,a["animation-play-state"]=!1,a["animation-timing-function"]=!1,a.azimuth=!1,a["backface-visibility"]=!1,a.background=!0,a["background-attachment"]=!0,a["background-clip"]=!0,a["background-color"]=!0,a["background-image"]=!0,a["background-origin"]=!0,a["background-position"]=!0,a["background-repeat"]=!0,a["background-size"]=!0,a["baseline-shift"]=!1,a.binding=!1,a.bleed=!1,a["bookmark-label"]=!1,a["bookmark-level"]=!1,a["bookmark-state"]=!1,a.border=!0,a["border-bottom"]=!0,a["border-bottom-color"]=!0,a["border-bottom-left-radius"]=!0,a["border-bottom-right-radius"]=!0,a["border-bottom-style"]=!0,a["border-bottom-width"]=!0,a["border-collapse"]=!0,a["border-color"]=!0,a["border-image"]=!0,a["border-image-outset"]=!0,a["border-image-repeat"]=!0,a["border-image-slice"]=!0,a["border-image-source"]=!0,a["border-image-width"]=!0,a["border-left"]=!0,a["border-left-color"]=!0,a["border-left-style"]=!0,a["border-left-width"]=!0,a["border-radius"]=!0,a["border-right"]=!0,a["border-right-color"]=!0,a["border-right-style"]=!0,a["border-right-width"]=!0,a["border-spacing"]=!0,a["border-style"]=!0,a["border-top"]=!0,a["border-top-color"]=!0,a["border-top-left-radius"]=!0,a["border-top-right-radius"]=!0,a["border-top-style"]=!0,a["border-top-width"]=!0,a["border-width"]=!0,a.bottom=!1,a["box-decoration-break"]=!0,a["box-shadow"]=!0,a["box-sizing"]=!0,a["box-snap"]=!0,a["box-suppress"]=!0,a["break-after"]=!0,a["break-before"]=!0,a["break-inside"]=!0,a["caption-side"]=!1,a.chains=!1,a.clear=!0,a.clip=!1,a["clip-path"]=!1,a["clip-rule"]=!1,a.color=!0,a["color-interpolation-filters"]=!0,a["column-count"]=!1,a["column-fill"]=!1,a["column-gap"]=!1,a["column-rule"]=!1,a["column-rule-color"]=!1,a["column-rule-style"]=!1,a["column-rule-width"]=!1,a["column-span"]=!1,a["column-width"]=!1,a.columns=!1,a.contain=!1,a.content=!1,a["counter-increment"]=!1,a["counter-reset"]=!1,a["counter-set"]=!1,a.crop=!1,a.cue=!1,a["cue-after"]=!1,a["cue-before"]=!1,a.cursor=!1,a.direction=!1,a.display=!0,a["display-inside"]=!0,a["display-list"]=!0,a["display-outside"]=!0,a["dominant-baseline"]=!1,a.elevation=!1,a["empty-cells"]=!1,a.filter=!1,a.flex=!1,a["flex-basis"]=!1,a["flex-direction"]=!1,a["flex-flow"]=!1,a["flex-grow"]=!1,a["flex-shrink"]=!1,a["flex-wrap"]=!1,a.float=!1,a["float-offset"]=!1,a["flood-color"]=!1,a["flood-opacity"]=!1,a["flow-from"]=!1,a["flow-into"]=!1,a.font=!0,a["font-family"]=!0,a["font-feature-settings"]=!0,a["font-kerning"]=!0,a["font-language-override"]=!0,a["font-size"]=!0,a["font-size-adjust"]=!0,a["font-stretch"]=!0,a["font-style"]=!0,a["font-synthesis"]=!0,a["font-variant"]=!0,a["font-variant-alternates"]=!0,a["font-variant-caps"]=!0,a["font-variant-east-asian"]=!0,a["font-variant-ligatures"]=!0,a["font-variant-numeric"]=!0,a["font-variant-position"]=!0,a["font-weight"]=!0,a.grid=!1,a["grid-area"]=!1,a["grid-auto-columns"]=!1,a["grid-auto-flow"]=!1,a["grid-auto-rows"]=!1,a["grid-column"]=!1,a["grid-column-end"]=!1,a["grid-column-start"]=!1,a["grid-row"]=!1,a["grid-row-end"]=!1,a["grid-row-start"]=!1,a["grid-template"]=!1,a["grid-template-areas"]=!1,a["grid-template-columns"]=!1,a["grid-template-rows"]=!1,a["hanging-punctuation"]=!1,a.height=!0,a.hyphens=!1,a.icon=!1,a["image-orientation"]=!1,a["image-resolution"]=!1,a["ime-mode"]=!1,a["initial-letters"]=!1,a["inline-box-align"]=!1,a["justify-content"]=!1,a["justify-items"]=!1,a["justify-self"]=!1,a.left=!1,a["letter-spacing"]=!0,a["lighting-color"]=!0,a["line-box-contain"]=!1,a["line-break"]=!1,a["line-grid"]=!1,a["line-height"]=!1,a["line-snap"]=!1,a["line-stacking"]=!1,a["line-stacking-ruby"]=!1,a["line-stacking-shift"]=!1,a["line-stacking-strategy"]=!1,a["list-style"]=!0,a["list-style-image"]=!0,a["list-style-position"]=!0,a["list-style-type"]=!0,a.margin=!0,a["margin-bottom"]=!0,a["margin-left"]=!0,a["margin-right"]=!0,a["margin-top"]=!0,a["marker-offset"]=!1,a["marker-side"]=!1,a.marks=!1,a.mask=!1,a["mask-box"]=!1,a["mask-box-outset"]=!1,a["mask-box-repeat"]=!1,a["mask-box-slice"]=!1,a["mask-box-source"]=!1,a["mask-box-width"]=!1,a["mask-clip"]=!1,a["mask-image"]=!1,a["mask-origin"]=!1,a["mask-position"]=!1,a["mask-repeat"]=!1,a["mask-size"]=!1,a["mask-source-type"]=!1,a["mask-type"]=!1,a["max-height"]=!0,a["max-lines"]=!1,a["max-width"]=!0,a["min-height"]=!0,a["min-width"]=!0,a["move-to"]=!1,a["nav-down"]=!1,a["nav-index"]=!1,a["nav-left"]=!1,a["nav-right"]=!1,a["nav-up"]=!1,a["object-fit"]=!1,a["object-position"]=!1,a.opacity=!1,a.order=!1,a.orphans=!1,a.outline=!1,a["outline-color"]=!1,a["outline-offset"]=!1,a["outline-style"]=!1,a["outline-width"]=!1,a.overflow=!1,a["overflow-wrap"]=!1,a["overflow-x"]=!1,a["overflow-y"]=!1,a.padding=!0,a["padding-bottom"]=!0,a["padding-left"]=!0,a["padding-right"]=!0,a["padding-top"]=!0,a.page=!1,a["page-break-after"]=!1,a["page-break-before"]=!1,a["page-break-inside"]=!1,a["page-policy"]=!1,a.pause=!1,a["pause-after"]=!1,a["pause-before"]=!1,a.perspective=!1,a["perspective-origin"]=!1,a.pitch=!1,a["pitch-range"]=!1,a["play-during"]=!1,a.position=!1,a["presentation-level"]=!1,a.quotes=!1,a["region-fragment"]=!1,a.resize=!1,a.rest=!1,a["rest-after"]=!1,a["rest-before"]=!1,a.richness=!1,a.right=!1,a.rotation=!1,a["rotation-point"]=!1,a["ruby-align"]=!1,a["ruby-merge"]=!1,a["ruby-position"]=!1,a["shape-image-threshold"]=!1,a["shape-outside"]=!1,a["shape-margin"]=!1,a.size=!1,a.speak=!1,a["speak-as"]=!1,a["speak-header"]=!1,a["speak-numeral"]=!1,a["speak-punctuation"]=!1,a["speech-rate"]=!1,a.stress=!1,a["string-set"]=!1,a["tab-size"]=!1,a["table-layout"]=!1,a["text-align"]=!0,a["text-align-last"]=!0,a["text-combine-upright"]=!0,a["text-decoration"]=!0,a["text-decoration-color"]=!0,a["text-decoration-line"]=!0,a["text-decoration-skip"]=!0,a["text-decoration-style"]=!0,a["text-emphasis"]=!0,a["text-emphasis-color"]=!0,a["text-emphasis-position"]=!0,a["text-emphasis-style"]=!0,a["text-height"]=!0,a["text-indent"]=!0,a["text-justify"]=!0,a["text-orientation"]=!0,a["text-overflow"]=!0,a["text-shadow"]=!0,a["text-space-collapse"]=!0,a["text-transform"]=!0,a["text-underline-position"]=!0,a["text-wrap"]=!0,a.top=!1,a.transform=!1,a["transform-origin"]=!1,a["transform-style"]=!1,a.transition=!1,a["transition-delay"]=!1,a["transition-duration"]=!1,a["transition-property"]=!1,a["transition-timing-function"]=!1,a["unicode-bidi"]=!1,a["vertical-align"]=!1,a.visibility=!1,a["voice-balance"]=!1,a["voice-duration"]=!1,a["voice-family"]=!1,a["voice-pitch"]=!1,a["voice-range"]=!1,a["voice-rate"]=!1,a["voice-stress"]=!1,a["voice-volume"]=!1,a.volume=!1,a["white-space"]=!1,a.widows=!1,a.width=!0,a["will-change"]=!1,a["word-break"]=!0,a["word-spacing"]=!0,a["word-wrap"]=!0,a["wrap-flow"]=!1,a["wrap-through"]=!1,a["writing-mode"]=!1,a["z-index"]=!1,a}function t(a,l,d){}function r(a,l,d){}var n=/javascript\s*\:/img;function i(a,l){return n.test(l)?"":l}return ta.whiteList=e(),ta.getDefaultWhiteList=e,ta.onAttr=t,ta.onIgnoreAttr=r,ta.safeAttrValue=i,ta}var bf,yf;function vf(){return yf||(yf=1,bf={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}),bf}var cc,xf;function nb(){if(xf)return cc;xf=1;var e=vf();function t(r,n){r=e.trimRight(r),r[r.length-1]!==";"&&(r+=";");var i=r.length,a=!1,l=0,d=0,f="";function p(){if(!a){var x=e.trim(r.slice(l,d)),S=x.indexOf(":");if(S!==-1){var C=e.trim(x.slice(0,S)),_=e.trim(x.slice(S+1));if(C){var F=n(l,f.length,C,_,x);F&&(f+=F+"; ")}}}l=d+1}for(;d<i;d++){var g=r[d];if(g==="/"&&r[d+1]==="*"){var m=r.indexOf("*/",d+2);if(m===-1)break;d=m+1,l=d+1,a=!1}else g==="("?a=!0:g===")"?a=!1:g===";"?a||p():g===`
|
|
634
|
+
`&&p()}return e.trim(f)}return cc=t,cc}var dc,wf;function ab(){if(wf)return dc;wf=1;var e=gf(),t=nb();vf();function r(a){return a==null}function n(a){var l={};for(var d in a)l[d]=a[d];return l}function i(a){a=n(a||{}),a.whiteList=a.whiteList||e.whiteList,a.onAttr=a.onAttr||e.onAttr,a.onIgnoreAttr=a.onIgnoreAttr||e.onIgnoreAttr,a.safeAttrValue=a.safeAttrValue||e.safeAttrValue,this.options=a}return i.prototype.process=function(a){if(a=a||"",a=a.toString(),!a)return"";var l=this,d=l.options,f=d.whiteList,p=d.onAttr,g=d.onIgnoreAttr,m=d.safeAttrValue,x=t(a,function(S,C,_,F,z){var E=f[_],D=!1;if(E===!0?D=E:typeof E=="function"?D=E(F):E instanceof RegExp&&(D=E.test(F)),D!==!0&&(D=!1),F=m(_,F),!!F){var B={position:C,sourcePosition:S,source:z,isWhite:D};if(D){var R=p(_,F,B);return r(R)?_+":"+F:R}else{var R=g(_,F,B);if(!r(R))return R}}});return x},dc=i,dc}var kf;function fc(){return kf||(kf=1,function(e,t){var r=gf(),n=ab();function i(l,d){var f=new n(d);return f.process(l)}t=e.exports=i,t.FilterCSS=n;for(var a in r)t[a]=r[a];typeof window<"u"&&(window.filterCSS=e.exports)}(uc,uc.exports)),uc.exports}var Af,Sf;function hc(){return Sf||(Sf=1,Af={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}}),Af}var Cf;function Tf(){if(Cf)return Ft;Cf=1;var e=fc().FilterCSS,t=fc().getDefaultWhiteList,r=hc();function n(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var i=new e;function a(te,ye,ne){}function l(te,ye,ne){}function d(te,ye,ne){}function f(te,ye,ne){}function p(te){return te.replace(m,"<").replace(x,">")}function g(te,ye,ne,ze){if(ne=he(ne),ye==="href"||ye==="src"){if(ne=r.trim(ne),ne==="#")return"#";if(!(ne.substr(0,7)==="http://"||ne.substr(0,8)==="https://"||ne.substr(0,7)==="mailto:"||ne.substr(0,4)==="tel:"||ne.substr(0,11)==="data:image/"||ne.substr(0,6)==="ftp://"||ne.substr(0,2)==="./"||ne.substr(0,3)==="../"||ne[0]==="#"||ne[0]==="/"))return""}else if(ye==="background"){if(E.lastIndex=0,E.test(ne))return""}else if(ye==="style"){if(D.lastIndex=0,D.test(ne)||(B.lastIndex=0,B.test(ne)&&(E.lastIndex=0,E.test(ne))))return"";ze!==!1&&(ze=ze||i,ne=ze.process(ne))}return ne=ce(ne),ne}var m=/</g,x=/>/g,S=/"/g,C=/"/g,_=/&#([a-zA-Z0-9]*);?/gim,F=/:?/gim,z=/&newline;?/gim,E=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,D=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,B=/u\s*r\s*l\s*\(.*/gi;function R(te){return te.replace(S,""")}function W(te){return te.replace(C,'"')}function Y(te){return te.replace(_,function(ye,ne){return ne[0]==="x"||ne[0]==="X"?String.fromCharCode(parseInt(ne.substr(1),16)):String.fromCharCode(parseInt(ne,10))})}function q(te){return te.replace(F,":").replace(z," ")}function pe(te){for(var ye="",ne=0,ze=te.length;ne<ze;ne++)ye+=te.charCodeAt(ne)<32?" ":te.charAt(ne);return r.trim(ye)}function he(te){return te=W(te),te=Y(te),te=q(te),te=pe(te),te}function ce(te){return te=R(te),te=p(te),te}function be(){return""}function ae(te,ye){typeof ye!="function"&&(ye=function(){});var ne=!Array.isArray(te);function ze(Z){return ne?!0:r.indexOf(te,Z)!==-1}var Ue=[],X=!1;return{onIgnoreTag:function(Z,Q,oe){if(ze(Z))if(oe.isClosing){var fe="[/removed]",Ae=oe.position+fe.length;return Ue.push([X!==!1?X:oe.position,Ae]),X=!1,fe}else return X||(X=oe.position),"[removed]";else return ye(Z,Q,oe)},remove:function(Z){var Q="",oe=0;return r.forEach(Ue,function(fe){Q+=Z.slice(oe,fe[0]),oe=fe[1]}),Q+=Z.slice(oe),Q}}}function xe(te){for(var ye="",ne=0;ne<te.length;){var ze=te.indexOf("<!--",ne);if(ze===-1){ye+=te.slice(ne);break}ye+=te.slice(ne,ze);var Ue=te.indexOf("-->",ze);if(Ue===-1)break;ne=Ue+3}return ye}function Ce(te){var ye=te.split("");return ye=ye.filter(function(ne){var ze=ne.charCodeAt(0);return ze===127?!1:ze<=31?ze===10||ze===13:!0}),ye.join("")}return Ft.whiteList=n(),Ft.getDefaultWhiteList=n,Ft.onTag=a,Ft.onIgnoreTag=l,Ft.onTagAttr=d,Ft.onIgnoreTagAttr=f,Ft.safeAttrValue=g,Ft.escapeHtml=p,Ft.escapeQuote=R,Ft.unescapeQuote=W,Ft.escapeHtmlEntities=Y,Ft.escapeDangerHtml5Entities=q,Ft.clearNonPrintableCharacter=pe,Ft.friendlyAttrValue=he,Ft.escapeAttrValue=ce,Ft.onIgnoreTagStripAll=be,Ft.StripTagBody=ae,Ft.stripCommentTag=xe,Ft.stripBlankChar=Ce,Ft.attributeWrapSign='"',Ft.cssFilter=i,Ft.getDefaultCSSWhiteList=t,Ft}var As={},Ef;function Df(){if(Ef)return As;Ef=1;var e=hc();function t(m){var x=e.spaceIndex(m),S;return x===-1?S=m.slice(1,-1):S=m.slice(1,x+1),S=e.trim(S).toLowerCase(),S.slice(0,1)==="/"&&(S=S.slice(1)),S.slice(-1)==="/"&&(S=S.slice(0,-1)),S}function r(m){return m.slice(0,2)==="</"}function n(m,x,S){var C="",_=0,F=!1,z=!1,E=0,D=m.length,B="",R="";e:for(E=0;E<D;E++){var W=m.charAt(E);if(F===!1){if(W==="<"){F=E;continue}}else if(z===!1){if(W==="<"){C+=S(m.slice(_,E)),F=E,_=E;continue}if(W===">"||E===D-1){C+=S(m.slice(_,F)),R=m.slice(F,E+1),B=t(R),C+=x(F,C.length,B,R,r(R)),_=E+1,F=!1;continue}if(W==='"'||W==="'")for(var Y=1,q=m.charAt(E-Y);q.trim()===""||q==="=";){if(q==="="){z=W;continue e}q=m.charAt(E-++Y)}}else if(W===z){z=!1;continue}}return _<D&&(C+=S(m.substr(_))),C}var i=/[^a-zA-Z0-9\\_:.-]/gim;function a(m,x){var S=0,C=0,_=[],F=!1,z=m.length;function E(Y,q){if(Y=e.trim(Y),Y=Y.replace(i,"").toLowerCase(),!(Y.length<1)){var pe=x(Y,q||"");pe&&_.push(pe)}}for(var D=0;D<z;D++){var B=m.charAt(D),R,W;if(F===!1&&B==="="){F=m.slice(S,D),S=D+1,C=m.charAt(S)==='"'||m.charAt(S)==="'"?S:d(m,D+1);continue}if(F!==!1&&D===C){if(W=m.indexOf(B,D+1),W===-1)break;R=e.trim(m.slice(C+1,W)),E(F,R),F=!1,D=W,S=D+1;continue}if(/\s|\n|\t/.test(B))if(m=m.replace(/\s|\n|\t/g," "),F===!1)if(W=l(m,D),W===-1){R=e.trim(m.slice(S,D)),E(R),F=!1,S=D+1;continue}else{D=W-1;continue}else if(W=f(m,D-1),W===-1){R=e.trim(m.slice(S,D)),R=g(R),E(F,R),F=!1,S=D+1;continue}else continue}return S<m.length&&(F===!1?E(m.slice(S)):E(F,g(e.trim(m.slice(S))))),e.trim(_.join(" "))}function l(m,x){for(;x<m.length;x++){var S=m[x];if(S!==" ")return S==="="?x:-1}}function d(m,x){for(;x<m.length;x++){var S=m[x];if(S!==" ")return S==="'"||S==='"'?x:-1}}function f(m,x){for(;x>0;x--){var S=m[x];if(S!==" ")return S==="="?x:-1}}function p(m){return m[0]==='"'&&m[m.length-1]==='"'||m[0]==="'"&&m[m.length-1]==="'"}function g(m){return p(m)?m.substr(1,m.length-2):m}return As.parseTag=n,As.parseAttr=a,As}var mc,Mf;function ib(){if(Mf)return mc;Mf=1;var e=fc().FilterCSS,t=Tf(),r=Df(),n=r.parseTag,i=r.parseAttr,a=hc();function l(m){return m==null}function d(m){var x=a.spaceIndex(m);if(x===-1)return{html:"",closing:m[m.length-2]==="/"};m=a.trim(m.slice(x+1,-1));var S=m[m.length-1]==="/";return S&&(m=a.trim(m.slice(0,-1))),{html:m,closing:S}}function f(m){var x={};for(var S in m)x[S]=m[S];return x}function p(m){var x={};for(var S in m)Array.isArray(m[S])?x[S.toLowerCase()]=m[S].map(function(C){return C.toLowerCase()}):x[S.toLowerCase()]=m[S];return x}function g(m){m=f(m||{}),m.stripIgnoreTag&&(m.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),m.onIgnoreTag=t.onIgnoreTagStripAll),m.whiteList||m.allowList?m.whiteList=p(m.whiteList||m.allowList):m.whiteList=t.whiteList,this.attributeWrapSign=m.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,m.onTag=m.onTag||t.onTag,m.onTagAttr=m.onTagAttr||t.onTagAttr,m.onIgnoreTag=m.onIgnoreTag||t.onIgnoreTag,m.onIgnoreTagAttr=m.onIgnoreTagAttr||t.onIgnoreTagAttr,m.safeAttrValue=m.safeAttrValue||t.safeAttrValue,m.escapeHtml=m.escapeHtml||t.escapeHtml,this.options=m,m.css===!1?this.cssFilter=!1:(m.css=m.css||{},this.cssFilter=new e(m.css))}return g.prototype.process=function(m){if(m=m||"",m=m.toString(),!m)return"";var x=this,S=x.options,C=S.whiteList,_=S.onTag,F=S.onIgnoreTag,z=S.onTagAttr,E=S.onIgnoreTagAttr,D=S.safeAttrValue,B=S.escapeHtml,R=x.attributeWrapSign,W=x.cssFilter;S.stripBlankChar&&(m=t.stripBlankChar(m)),S.allowCommentTag||(m=t.stripCommentTag(m));var Y=!1;S.stripIgnoreTagBody&&(Y=t.StripTagBody(S.stripIgnoreTagBody,F),F=Y.onIgnoreTag);var q=n(m,function(pe,he,ce,be,ae){var xe={sourcePosition:pe,position:he,isClosing:ae,isWhite:Object.prototype.hasOwnProperty.call(C,ce)},Ce=_(ce,be,xe);if(!l(Ce))return Ce;if(xe.isWhite){if(xe.isClosing)return"</"+ce+">";var te=d(be),ye=C[ce],ne=i(te.html,function(ze,Ue){var X=a.indexOf(ye,ze)!==-1,Z=z(ce,ze,Ue,X);return l(Z)?X?(Ue=D(ce,ze,Ue,W),Ue?ze+"="+R+Ue+R:ze):(Z=E(ce,ze,Ue,X),l(Z)?void 0:Z):Z});return be="<"+ce,ne&&(be+=" "+ne),te.closing&&(be+=" /"),be+=">",be}else return Ce=F(ce,be,xe),l(Ce)?B(be):Ce},B);return Y&&(q=Y.remove(q)),q},mc=g,mc}var Nf;function ob(){return Nf||(Nf=1,function(e,t){var r=Tf(),n=Df(),i=ib();function a(d,f){var p=new i(f);return p.process(d)}t=e.exports=a,t.filterXSS=a,t.FilterXSS=i,function(){for(var d in r)t[d]=r[d];for(var f in n)t[f]=n[f]}(),typeof window<"u"&&(window.filterXSS=e.exports);function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=e.exports)}(lc,lc.exports)),lc.exports}ob();const ra=c.defineComponent({name:"FMarkdownPreview",props:G2,setup(e){return()=>c.createVNode("div",{class:"f-markdown-preview-container"},[c.createVNode(ks,{modelValue:e.content},null)])}});ra.install=e=>{e.component(ra.name,ra)};const pc="farris-x-preview-bridge",gc=1,bc="assistant.message";function zf(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function _f(e){return e!==null&&typeof e=="object"}function Ff(e){if(!_f(e)||e.source!==pc||e.v!==gc||e.type!==bc)return!1;const t=e.payload;return!(!_f(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function sb(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function If(e,t,r){const n=zf(r);try{return e.postMessage({source:pc,v:gc,type:bc,payload:n},t),!0}catch{return!1}}function Bf(e){const t=e.allowTopAsSource!==!1,r=n=>{var i;sb(n,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(n.origin)||Ff(n.data)&&((i=e.onAssistantMessage)==null||i.call(e,n.data.payload)))};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)}const lb="/platform/common/web/renderer/index.html#/preview",ub="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",cb="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",db="67441dbb-0219-46f2-b247-51555c317995";function Of(e){if(e.url)return e.url;const t=e.baseUri??lb,r=e.metadataPath??ub,n=e.projectPath??cb,i=e.baseMetadataId??db;return`${t}?metadataPath=${encodeURIComponent(r)}&projectPath=${encodeURIComponent(n)}&baseMetadataId=${encodeURIComponent(i)}`}function fb(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=Of(e),r=new URL(t,window.location.href).origin;return r==="null"||r===""?window.location.origin:r}catch{return null}}const zi=c.defineComponent({name:"ChatPreview",props:W2,setup(e,{expose:t}){const r=c.ref(null),n=c.ref(null),i=c.ref(!1),a=c.ref(!1),l=c.computed(()=>Of(e.previewConfig??{})),d=c.computed(()=>{var te;return((te=e.previewConfig)==null?void 0:te.contentType)==="markdown"}),f=c.computed(()=>{var te;return Object.keys(((te=e.previewConfig)==null?void 0:te.contentMap)??{})}),p=c.computed(()=>f.value.filter(te=>te).length>0),g=c.ref(),m=c.ref(),x=c.ref(!1);let S=null;c.onBeforeUnmount(()=>{S==null||S(),S=null,be()}),c.watch(()=>[l.value,r.value,d.value],()=>{if(S==null||S(),S=null,d.value)return;const te=r.value;if(!te)return;x.value=!1,i.value=!1,a.value=!1;const ye=Date.now(),ne=200,ze=300,Ue=1e4;let X=!1,Z=null,Q=null;Q=window.setTimeout(()=>{Q=null,X||(a.value=!0)},ne);const oe=()=>{if(X)return;if(X=!0,Z&&(window.clearTimeout(Z),Z=null),Q&&(window.clearTimeout(Q),Q=null),x.value=!0,ae(te),a.value){const ie=Date.now()-ye,me=Math.max(0,ze-ie);setTimeout(()=>{i.value=!0},me)}else i.value=!0;const Ae=()=>{var ie;return(ie=e.onIframeLoad)==null?void 0:ie.call(e)};Ae(),window.setTimeout(Ae,0),window.setTimeout(Ae,120)},fe=()=>{var Ae;X||(X=!0,Q&&(window.clearTimeout(Q),Q=null),console.warn("ChatPreview: iframe load timeout"),x.value=!0,i.value=!0,(Ae=e.onIframeLoad)==null||Ae.call(e))};te.addEventListener("load",oe,{once:!0}),Z=window.setTimeout(fe,Ue),S=()=>{te.removeEventListener("load",oe),Z&&(window.clearTimeout(Z),Z=null),Q&&(window.clearTimeout(Q),Q=null)}},{flush:"post"}),c.watch([d,()=>{var te;return(te=e.previewConfig)==null?void 0:te.contentMap}],()=>{be(),d.value&&c.nextTick(()=>ce())},{flush:"post"}),c.watch(()=>{var te;return(te=e.previewConfig)==null?void 0:te.contentMap},te=>{if(te){const ye=Object.keys(te);g.value=ye[0]??""}else g.value="";C()},{immediate:!0});function C(te){var ye,ne;te&&(g.value=te),p.value&&g.value?m.value=((ne=(ye=e.previewConfig)==null?void 0:ye.contentMap)==null?void 0:ne[g.value])||"":m.value=""}function _(te){var ze;if(d.value||!x.value)return!1;const ye=(ze=r.value)==null?void 0:ze.contentWindow;if(!ye)return!1;const ne=fb(e.previewConfig??{});return ne?If(ye,ne,te):!1}t({postAssistantPayload:_});const F=c.ref(!1);let z=null;const E=800;function D(){F.value=!0,he(!0),z!=null&&(window.clearTimeout(z),z=null)}function B(){z!=null&&window.clearTimeout(z),z=window.setTimeout(()=>{F.value=!1,he(!1),z=null},E)}function R(){D(),B()}function W(){D()}function Y(){B()}let q=[];function pe(){const te=n.value;if(!te)return[];const ye=[],ne=te.querySelectorAll(".f-markdown-preview-container");return ne.length>0&&ne.forEach(ze=>ye.push(ze)),ye.length===0&&te.scrollHeight>te.clientHeight&&ye.push(te),ye}function he(te){const ye=n.value;ye&&ye.querySelectorAll(".f-markdown-preview-container").forEach(ne=>{ne.classList.toggle("f-chat-preview-scrollbar-visible",te)})}function ce(){const te=pe();q=te,te.forEach(ye=>{ye.addEventListener("scroll",R,{passive:!0}),ye.addEventListener("mouseenter",W),ye.addEventListener("mouseleave",Y)})}function be(){q.forEach(te=>{te.removeEventListener("scroll",R),te.removeEventListener("mouseenter",W),te.removeEventListener("mouseleave",Y)}),q=[]}function ae(te){try{const ye=te.contentDocument;if(!ye)return;const ne="f-chat-preview-injected-scrollbar-style";if(ye.getElementById(ne))return;const ze=ye.createElement("style");ze.id=ne,ze.textContent=`
|
|
103
635
|
html, body {
|
|
104
636
|
scrollbar-width: thin;
|
|
105
637
|
scrollbar-color: transparent transparent;
|
|
@@ -125,7 +657,7 @@ See: https://github.com/francoischalifour/medium-zoom`)}},sp=function(t){var n=d
|
|
|
125
657
|
body.iframe-scrollbar-visible::-webkit-scrollbar-thumb {
|
|
126
658
|
background: #ccc;
|
|
127
659
|
}
|
|
128
|
-
`,(
|
|
660
|
+
`,(ye.head||ye.documentElement).appendChild(ze);const Ue="f-chat-preview-injected-scrollbar-script";if(ye.getElementById(Ue))return;const X=ye.createElement("script");X.id=Ue,X.textContent=`
|
|
129
661
|
(function() {
|
|
130
662
|
var hideTimer = null;
|
|
131
663
|
var HIDE_DELAY = 800;
|
|
@@ -146,8 +678,8 @@ See: https://github.com/francoischalifour/medium-zoom`)}},sp=function(t){var n=d
|
|
|
146
678
|
document.addEventListener('mouseenter', show);
|
|
147
679
|
document.addEventListener('mouseleave', scheduleHide);
|
|
148
680
|
})();
|
|
149
|
-
`,(
|
|
150
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
681
|
+
`,(ye.head||ye.documentElement).appendChild(X)}catch{}}const xe=()=>{var te;return c.createVNode("div",{class:"f-chat-preview-header"},[c.createVNode("div",{class:"f-chat-preview-header-left"},[c.createVNode("button",{class:"f-chat-preview-preview-btn"},[c.createVNode("i",{class:"fx-icon fx-icon-card_info"},null),c.createVNode("span",{class:"f-chat-preview-preview-text"},[((te=e.previewConfig)==null?void 0:te.title)||"预览"])])]),c.createVNode("div",{class:"f-chat-preview-header-right"},[c.createVNode("button",{class:"f-chat-preview-tool-btn",title:"关闭预览","aria-label":"关闭预览",onClick:()=>{var ye;return(ye=e.onClose)==null?void 0:ye.call(e)}},[c.createVNode("i",{class:"fx-icon fx-icon-sidewindow_close"},null)])])])},Ce=()=>{var te;return p.value?m.value?c.createVNode("div",{class:"d-flex"},[c.createVNode(Fa,{class:"f-chat-content-main-layout",direction:"row"},{default:()=>[c.createVNode(Mi,{position:"center",resizable:!1,minWidth:100,class:"f-chat-content-main-left"},{default:()=>[c.createVNode("div",{class:"f-chat-preview-content-nav"},[c.createVNode("div",{class:"f-chat-preview-content-nav-title"},[c.createTextVNode("全部文件")]),c.createVNode("div",{class:"f-chat-preview-content-nav-content"},[f.value.map((ye,ne)=>c.createVNode("div",{key:ne,class:["f-chat-preview-content-nav-item",ye===g.value?"active-nav-item":""],title:ye,onClick:()=>C(ye)},[ye]))])])]}),c.createVNode(Mi,{position:"right",resizable:!0,width:600,class:"f-chat-preview-pane-right"},{default:()=>[c.createVNode(ra,{content:m.value},null)]})]})]):null:c.createVNode(ra,{content:((te=e.previewConfig)==null?void 0:te.content)??""},null)};return()=>c.createVNode("div",{class:"f-chat-preview"},[xe(),c.createVNode("div",{ref:n,class:"f-chat-preview-content",style:{overflow:d.value?"auto":"hidden"}},[d.value?Ce():c.createVNode(c.Fragment,null,[c.withDirectives(c.createVNode("div",{class:["f-chat-preview-skeleton",{"f-chat-preview-skeleton--fade-out":i.value}]},[c.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"60%"}},null),c.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"80%"}},null),c.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"45%"}},null),c.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"70%"}},null),c.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"55%"}},null)]),[[c.vShow,a.value]]),c.createVNode("iframe",{ref:r,name:"preview-iframe",title:"preview-iframe",src:l.value,class:["f-chat-preview-iframe",{"f-chat-preview-iframe--visible":i.value}]},null)])])])}});function hb(e,t){const r=typeof window<"u"?window.AgentWorkbenchSDK:void 0;if(!r){console.warn("[AgentWorkbenchSDK] invoke: window.AgentWorkbenchSDK is not available");return}try{const n=r[e];if(typeof n!="function"){console.warn("[AgentWorkbenchSDK] invoke: not a function:",e);return}return n(...t??[])}catch(n){console.warn("[AgentWorkbenchSDK] invoke error:",e,n);return}}function mb(e){return Bf(e)}let pb=0;const _i=[];function na(){var e;return((e=_i[_i.length-1])==null?void 0:e.h)??{}}function gb(e){const t=++pb;return _i.push({id:t,h:e}),()=>{const r=_i.findIndex(n=>n.id===t);r>=0&&_i.splice(r,1)}}const bb={showPreview(e){var t,r;(r=(t=na()).showPreview)==null||r.call(t,e)},replaceRightPreview(e){var t,r;(r=(t=na()).showPreview)==null||r.call(t,e)},closePreviewPane(){var e,t;(t=(e=na()).closePreviewPane)==null||t.call(e)},closeRightPreview(){var e,t;(t=(e=na()).closeRightPreview)==null||t.call(e)},showFullScreenPreview(e){var t,r;(r=(t=na()).showFullScreenPreview)==null||r.call(t,e)},closeFullScreenPreview(){var e,t;(t=(e=na()).closeFullScreenPreview)==null||t.call(e)},isPreviewLayoutActive(){return typeof na().showPreview=="function"}};zi.install=e=>{e.component(zi.name,zi)};const Lf={modelValue:{type:Boolean,default:!1},title:{type:[String,Object],default:"标题"},description:{type:[String,Object],default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},closeOnMask:{type:Boolean,default:!1},showDivider:{type:Boolean,default:!1},iconType:{type:String,default:"warning"}};function yb(){return c.createVNode("svg",{class:"f-chat-confirm-dialog-icon-symbol",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c.createVNode("rect",{x:"5.125",y:"1",width:"1.75",height:"7.25",rx:"0.875",fill:"#FFFFFF"},null),c.createVNode("circle",{cx:"6",cy:"10.5",r:"1",fill:"#FFFFFF"},null)])}function vb(){return c.createVNode("svg",{class:"f-chat-confirm-dialog-icon-symbol",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c.createVNode("path",{d:"M2.5 6.25L4.75 8.5L9.5 3.75",stroke:"#FFFFFF","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round"},null)])}function xb(){return c.createVNode("span",{class:"f-chat-confirm-dialog-icon-letter"},[c.createTextVNode("i")])}function wb(){return c.createVNode("svg",{class:"f-chat-confirm-dialog-icon-symbol",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c.createVNode("path",{d:"M2.5 2.5L9.5 9.5M9.5 2.5L2.5 9.5",stroke:"#FFFFFF","stroke-width":"1.75","stroke-linecap":"round"},null)])}const Ba=c.defineComponent({name:"FXConfirmDialog",props:Lf,emits:{"update:modelValue":e=>!0,cancel:()=>!0,confirm:()=>!0},setup(e,{emit:t,slots:r}){function n(){t("update:modelValue",!1)}function i(){t("cancel"),n()}function a(){t("confirm"),n()}function l(f){e.closeOnMask&&f.target===f.currentTarget&&i()}function d(){const f=e.iconType??"warning";return c.createVNode("div",{class:["f-chat-confirm-dialog-icon",`is-${f}`],"aria-hidden":"true"},[f==="success"?vb():null,f==="info"?xb():null,f==="error"?wb():null,f==="warning"?yb():null])}return()=>e.modelValue?c.createVNode(c.Teleport,{to:"body"},{default:()=>[c.createVNode("div",{class:"f-chat-confirm-dialog-mask",onClick:l},[c.createVNode("div",{class:"f-chat-confirm-dialog",role:"dialog","aria-modal":"true"},[c.createVNode("div",{class:"f-chat-confirm-dialog-body"},[c.createVNode("div",{class:"f-chat-confirm-dialog-header"},[d(),c.createVNode("div",{class:"f-chat-confirm-dialog-title"},[r.title?r.title():e.title])]),(r.default||e.description)&&c.createVNode("div",{class:"f-chat-confirm-dialog-description"},[r.default?r.default():e.description])]),c.createVNode("div",{class:["f-chat-confirm-dialog-actions",{"with-divider":e.showDivider}]},[e.cancelText&&c.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-cancel",onClick:i},[e.cancelText]),e.confirmText&&c.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-confirm",onClick:a},[e.confirmText])])])])]}):null}});let Fi=null,Ss=null;function yc(){Fi&&(Fi.unmount(),Fi=null),Ss&&(Ss.remove(),Ss=null)}function kb(e){return new Promise(t=>{yc();const r=document.createElement("div");document.body.appendChild(r),Ss=r;const n=c.ref(!0);function i(a){n.value=!1,t(a),setTimeout(yc,0)}Fi=c.createApp({setup(){return()=>c.h(Ba,{modelValue:n.value,"onUpdate:modelValue":a=>{a||i("cancel")},onConfirm:()=>i("confirm"),onCancel:()=>i("cancel"),title:e.title,description:e.description,cancelText:e.cancelText,confirmText:e.confirmText,closeOnMask:e.closeOnMask,showDivider:e.showDivider,iconType:e.iconType})}}),Fi.mount(r)})}function Ab(){yc()}Ba.install=e=>{e.component(Ba.name,Ba)};function Rf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Sb(e){if(Array.isArray(e))return e}function Cb(e,t,r){return(t=_b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tb(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,l,d=[],f=!0,p=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(f=(n=a.call(r)).done)&&(d.push(n.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(p)throw i}}return d}}function Eb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
682
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pf(Object(r),!0).forEach(function(n){Cb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Db(e,t){if(e==null)return{};var r,n,i=Mb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Mb(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Nb(e,t){return Sb(e)||Tb(e,t)||Fb(e,t)||Eb()}function zb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _b(e){var t=zb(e,"string");return typeof t=="symbol"?t:t+""}function Fb(e,t){if(e){if(typeof e=="string")return Rf(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rf(e,t):void 0}}function Ib(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hf(Object(r),!0).forEach(function(n){Ib(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(i,a){return a(i)},n)}}function Ii(e){return function t(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return i.length>=e.length?e.apply(this,i):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(r,[].concat(i,d))}}}function Cs(e){return{}.toString.call(e).includes("Object")}function Ob(e){return!Object.keys(e).length}function Bi(e){return typeof e=="function"}function Lb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Rb(e,t){return Cs(t)||_n("changeType"),Object.keys(t).some(function(r){return!Lb(e,r)})&&_n("changeField"),t}function Pb(e){Bi(e)||_n("selectorType")}function Vb(e){Bi(e)||Cs(e)||_n("handlerType"),Cs(e)&&Object.values(e).some(function(t){return!Bi(t)})&&_n("handlersType")}function Hb(e){e||_n("initialIsRequired"),Cs(e)||_n("initialType"),Ob(e)&&_n("initialContent")}function qb(e,t){throw new Error(e[t]||e.default)}var jb={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},_n=Ii(qb)(jb),Ts={changes:Rb,selector:Pb,handler:Vb,initial:Hb};function $b(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ts.initial(e),Ts.handler(t);var r={current:e},n=Ii(Gb)(r,t),i=Ii(Wb)(r),a=Ii(Ts.changes)(e),l=Ii(Ub)(r);function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return Ts.selector(p),p(r.current)}function f(p){Bb(n,i,a,l)(p)}return[d,f]}function Ub(e,t){return Bi(t)?t(e.current):t}function Wb(e,t){return e.current=qf(qf({},e.current),t),t}function Gb(e,t,r){return Bi(t)?t(e.current):Object.keys(r).forEach(function(n){var i;return(i=t[n])===null||i===void 0?void 0:i.call(t,e.current[n])}),r}var Xb={create:$b},Yb={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Zb(e){return function t(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return i.length>=e.length?e.apply(this,i):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(r,[].concat(i,d))}}}function Kb(e){return{}.toString.call(e).includes("Object")}function Qb(e){return e||$f("configIsRequired"),Kb(e)||$f("configType"),e.urls?(Jb(),{paths:{vs:e.urls.monacoBase}}):e}function Jb(){console.warn(jf.deprecation)}function ey(e,t){throw new Error(e[t]||e.default)}var jf={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
151
683
|
You are using deprecated way of configuration.
|
|
152
684
|
|
|
153
685
|
Instead of using
|
|
@@ -156,6 +688,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
156
688
|
monaco.config({ paths: { vs: '...' } })
|
|
157
689
|
|
|
158
690
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
159
|
-
`}
|
|
160
|
-
`).length,
|
|
161
|
-
`).length:0;y=F?G+_:_}return s2+y*Ll}const d=i.computed(()=>(u.value,l()>Tn));function f(){n.value=!n.value,o.value=n.value?l():Tn,h()}function c(){if(!u.value)return;u.value=null;const x=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(x,{timeout:100}):setTimeout(x,0)}function h(){if(a.value)return;const m=r.value,x=u.value;if(!m||!(x!=null&&x.layout))return;const v=m.clientWidth||m.offsetWidth,y=o.value;requestAnimationFrame(()=>{var b,g;a.value||!u.value||(g=(b=u.value)==null?void 0:b.layout)==null||g.call(b,{width:v,height:y})})}function p(){var m;a.value||!r.value||!((m=e.content)!=null&&m.code)||a2.init().then(x=>{var w;if(a.value||!r.value||!((w=e.content)!=null&&w.code))return;const{value:v,originalValue:y,language:b="typescript"}=e.content.code,g={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:Ll,padding:{top:8,bottom:8}};if(y){const A=x.editor.createDiffEditor(r.value,{...g,renderSideBySide:!1,renderOverviewRuler:!1});A.setModel({original:x.editor.createModel(y,b),modified:x.editor.createModel(v,b)}),A.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),A.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),i.nextTick(()=>{var F;if(a.value)return;const N=(F=A.getContainerDomNode)==null?void 0:F.call(A);if(N){const _=N.querySelector('.diff-editor-cell.original, [class*="original"]');_&&(_.style.display="none")}}),u.value=A}else{const A=x.editor.create(r.value,{value:v,language:b,...g});u.value=A}o.value=Tn,i.nextTick(()=>h())})}return i.onMounted(()=>{l2(()=>{a.value||!r.value||p()})}),i.watch(t,m=>{m&&!a.value&&i.nextTick(()=>h())}),i.onBeforeUnmount(()=>{a.value=!0,c()}),i.watch(()=>{var m,x;return(x=(m=e.content)==null?void 0:m.code)==null?void 0:x.value},()=>{a.value||(n.value?o.value=l():o.value=Tn,h())}),()=>{const m=e.content;if(!m)return null;const{message:x,fileIcon:v,fileName:y,code:b}=m;return i.createVNode("div",{class:"f-chat-message-coding"},[i.createVNode("div",{class:"f-chat-coding-message"},[x]),i.createVNode("div",{class:"f-chat-coding-card"},[i.createVNode("div",{class:"f-chat-coding-header",onClick:s,role:"button",tabindex:0,onKeydown:g=>g.key==="Enter"&&s()},[i.createVNode("span",{class:"f-chat-coding-header-icon-slot"},[i.createVNode("span",{class:"f-chat-coding-header-icon"},[i.createVNode("img",{src:v,alt:"",onError:g=>{var w;g.target.style.display="none",(w=g.target.parentElement)==null||w.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-coding-header-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-coding-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),i.createVNode("span",{class:"f-chat-coding-header-filename"},[y]),i.createVNode("span",{class:"f-chat-coding-header-stats"},[i.createVNode("span",{class:"f-chat-coding-stat-add"},[i.createTextVNode("+"),b.addedLines]),i.createVNode("span",{class:"f-chat-coding-stat-del"},[i.createTextVNode("-"),b.deletedLines])])]),i.createVNode("div",{style:{display:t.value?"block":"none"}},[i.createVNode("div",{ref:r,class:"f-chat-coding-editor",style:{height:`${o.value}px`}},null),d.value&&i.createVNode("button",{type:"button",class:"f-chat-coding-expand-btn",onClick:f,"aria-label":n.value?"收起代码":"展开代码",title:n.value?"收起代码":"展开代码"},[i.createVNode("i",{class:["fx-icon fx-icon-expanddown",n.value&&"f-chat-coding-expand-icon-up"]},null)])])])])}}});xr.install=e=>{e.component(xr.name,xr)};const Vl={content:{type:Object,required:!0}};function c2(e){return"file"in e&&"path"in e}const vr=i.defineComponent({name:"FileOperationMessage",props:Vl,setup(e){const t=i.ref(!0),n=i.ref({}),r=i.computed(()=>{var l;return!!((l=e.content)!=null&&l.summary)}),u=i.computed(()=>{var d;const l=(d=e.content)==null?void 0:d.summary;return l?`浏览了 ${l.explored} 个文件并查询了 ${l.searched} 个文件`:""});function o(){t.value=!t.value}function a(l){n.value={...n.value,[l]:!n.value[l]}}function s(l){return n.value[l]??!1}return()=>{const l=e.content;if(!l)return null;const{summary:d,operations:f}=l,c=!r.value||t.value;return i.createVNode("div",{class:"f-chat-message-file-operation"},[d&&i.createVNode("div",{class:"f-chat-file-op-summary",onClick:o,role:"button",tabindex:0,onKeydown:h=>h.key==="Enter"&&o()},[i.createVNode("span",{class:"f-chat-file-op-summary-inner"},[i.createVNode("span",{class:"f-chat-file-op-summary-text"},[u.value]),i.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])])]),c&&i.createVNode("div",{class:"f-chat-file-op-operations"},[f.map((h,p)=>{var m,x,v,y;return i.createVNode("div",{key:p,class:"f-chat-file-op-operation"},[i.createVNode("div",i.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":h.type==="Read","has-details":!!((m=h.details)!=null&&m.length)}],onClick:()=>{var b;return((b=h.details)==null?void 0:b.length)&&a(p)}},(x=h.details)!=null&&x.length?{role:"button",tabIndex:0}:{},{onKeydown:b=>{var g;return((g=h.details)==null?void 0:g.length)&&b.key==="Enter"&&a(p)}}),[i.createVNode("span",{class:"f-chat-file-op-type"},[h.type]),i.createVNode("span",{class:"f-chat-file-op-message-wrap"},[i.createVNode("span",{class:"f-chat-file-op-message"},[h.message]),(v=h.details)!=null&&v.length?i.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:s(p)}]},[i.createVNode("i",{class:s(p)?"fx-icon fx-icon-foldu":"fx-icon pfx-icon-expanddown"},null)]):null])]),((y=h.details)==null?void 0:y.length)&&s(p)&&i.createVNode("div",{class:"f-chat-file-op-details"},[h.details.map((b,g)=>c2(b)?i.createVNode("div",{key:g,class:"f-chat-file-op-detail-file"},[i.createVNode("span",{class:"f-chat-file-op-file-icon"},[i.createVNode("img",{src:b.icon,alt:"",onError:w=>{const A=w.target;A.style.display="none";const N=A.parentElement;N&&N.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-file-op-file-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-file-op-file-name"},[b.file]),i.createVNode("span",{class:"f-chat-file-op-file-path",title:b.path},[b.path])]):i.createVNode("div",{key:g,class:"f-chat-file-op-detail-text"},[i.createVNode("div",{class:"f-chat-file-op-detail-title"},[b.title]),i.createVNode("div",{class:"f-chat-file-op-detail-content"},[b.text])]))])])})])])}}});vr.install=e=>{e.component(vr.name,vr)};const Pl={visible:{type:Boolean,default:!0},description:[String,Object],progress:{type:Number,default:0},showProgress:{type:Boolean,default:!0},icon:{type:[String,Object],default:""},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},d2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='60px'%20height='60px'%20viewBox='0%200%2060%2060'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e智能logo60px%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%231EBBC6'%20offset='58.0673923%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cpath%20d='M25.1971977,0%20L45.8523137,11.3712178%20L45.8523137,37.6155801%20L44.4946453,38.9692599%20L24.623,28.022%20L24.6233274,49.9395377%20L21.4535582,49.9395377%20L2.72549351,39.5965647%20L0,34.4406135%20L0,12.8076673%20L3.70534859,10.5019677%20L20.556,20.546%20L20.5567534,0.161454345%20L25.1971977,0%20Z%20M20.7578212,28.1498874%20L5.81325199,36.7628182%20L20.7578212,45.0027895%20L20.7578212,28.1498874%20Z%20M41.8027832,15.9256338%20L26.7716137,24.6706076%20L41.8027832,32.9879669%20L41.8027832,15.9256338%20Z%20M4.06159924,15.4742393%20L4.06159924,32.9879669%20L19.1488772,24.4568004%20L4.06159924,15.4742393%20Z%20M24.6233274,4.32908173%20L24.6233274,21.2862528%20L39.8727429,12.4882393%20L24.6233274,4.32908173%20Z'%20id='path-2'%3e%3c/path%3e%3clinearGradient%20x1='81.0966666%25'%20y1='38.5584607%25'%20x2='28.8545509%25'%20y2='61.9626707%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-5'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='44.8152906%25'%20y1='77.6521765%25'%20x2='44.8152906%25'%20y2='3.26462903%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-7'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='3.93796935%25'%20y1='32.607826%25'%20x2='78.9687461%25'%20y2='60.0462823%25'%20id='linearGradient-8'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-9'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='56.0769337%25'%20y1='45.0797149%25'%20x2='24.9463054%25'%20y2='71.1433818%25'%20id='linearGradient-10'%3e%3cstop%20stop-color='%23159BD7'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='10.434388%25'%20y1='68.063656%25'%20x2='86.6988821%25'%20y2='30.8651063%25'%20id='linearGradient-11'%3e%3cstop%20stop-color='%2321C6C1'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-12'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='生成过程'%20transform='translate(-766,%20-1268)'%3e%3cg%20id='编组-7'%20transform='translate(321,%20699)'%3e%3cg%20id='编组-5'%20transform='translate(247,%20488)'%3e%3cg%20id='智能logo60px'%20transform='translate(198,%2081)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='60'%20height='60'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.8571,%200.8571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='58.2857143'%20height='58.2857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(3.4286,%201.7143)'%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L27.3406238,30.8038254%20L27.3409512,52.7213631%20L24.171182,52.7213631%20L5.44311735,42.3783901%20L2.71762384,37.2224388%20L2.71762384,15.5894926%20L6.42297243,13.283793%20L23.2736238,23.3278254%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M23.4754451,30.9317128%20L8.53087583,39.5446435%20L23.4754451,47.7846148%20L23.4754451,30.9317128%20Z%20M44.520407,18.7074592%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.520407,18.7074592%20Z%20M6.77922307,18.2560647%20L6.77922307,35.7697922%20L21.866501,27.2386257%20L6.77922307,18.2560647%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(2.7176,%202.7818)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='蒙版'%20fill='url(%23linearGradient-1)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cpolygon%20id='路径-2'%20fill='url(%23linearGradient-4)'%20filter='url(%23filter-5)'%20mask='url(%23mask-3)'%20points='14.177196%2023.2632694%2022.5796859%2023.2632694%2023.4218687%2027.5957059%209.52757789%2036.9780352%203.7254788%2029.0812693'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='23.4218687%2022.4125055%2027.1161878%2015.1091341%2027.8042533%206.35665145%2018.1506617%205.88610282%2018.8417696%2016.8706238%2022.5796859%2022.4125055'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='33.5501273%2024.6706076%2024.403058%2024.9983902%2024.403058%2027.5289361%2028.4733448%2033.3539069%2036.4355638%2036.3335669%2041.6970622%2028.387534'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L23.2743772,28.5628437%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L28.3053772,23.5108254%20L28.3061985,25.7112082%20L30.1053772,27.0928254%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.5203772,18.7198254%20L45.4350062,17.1793767%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='22.5927693%2026.8440709%2023.6315003%2030.8033921%208.53087583%2039.5446435%207.30516741%2035.4601402'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M25.4312165,33.1398658%20C28.857043,33.1398658%2031.634224,30.3626848%2031.634224,26.9368583%20C31.634224,23.5110318%2028.857043,20.7338508%2025.4312165,20.7338508%20C22.00539,20.7338508%2019.228209,23.5110318%2019.228209,26.9368583%20C19.228209,30.3626848%2022.00539,33.1398658%2025.4312165,33.1398658%20Z%20M46.5950591,20.103577%20C49.2645342,20.103577%2051.4285714,17.9395398%2051.4285714,15.2700646%20C51.4285714,12.6005895%2049.2645342,10.4365523%2046.5950591,10.4365523%20C43.9255839,10.4365523%2041.7615467,12.6005895%2041.7615467,15.2700646%20C41.7615467,17.9395398%2043.9255839,20.103577%2046.5950591,20.103577%20Z%20M25.4312165,54.9048659%20C28.1006917,54.9048659%2030.2647289,52.7408287%2030.2647289,50.0713536%20C30.2647289,47.4018784%2028.1006917,45.2378412%2025.4312165,45.2378412%20C22.7617413,45.2378412%2020.5977042,47.4018784%2020.5977042,50.0713536%20C20.5977042,52.7408287%2022.7617413,54.9048659%2025.4312165,54.9048659%20Z%20M4.83351235,43.462539%20C7.50298751,43.462539%209.6670247,41.2985018%209.6670247,38.6290267%20C9.6670247,35.9595515%207.50298751,33.7955143%204.83351235,33.7955143%20C2.16403719,33.7955143%200,35.9595515%200,38.6290267%20C0,41.2985018%202.16403719,43.462539%204.83351235,43.462539%20Z%20M25.4312165,8.37808808%20C27.7447616,8.37808808%2029.6202605,6.50258918%2029.6202605,4.18904404%20C29.6202605,1.8754989%2027.7447616,0%2025.4312165,0%20C23.1176714,0%2021.2421725,1.8754989%2021.2421725,4.18904404%20C21.2421725,6.50258918%2023.1176714,8.37808808%2025.4312165,8.37808808%20Z%20M46.5950591,43.3044363%20C48.9086042,43.3044363%2050.7841031,41.4289374%2050.7841031,39.1153922%20C50.7841031,36.8018471%2048.9086042,34.9263482%2046.5950591,34.9263482%20C44.2815139,34.9263482%2042.406015,36.8018471%2042.406015,39.1153922%20C42.406015,41.4289374%2044.2815139,43.3044363%2046.5950591,43.3044363%20Z%20M4.83351235,18.3420872%20C7.14705749,18.3420872%209.02255639,16.4665883%209.02255639,14.1530432%20C9.02255639,11.8394981%207.14705749,9.96399915%204.83351235,9.96399915%20C2.51996721,9.96399915%200.644468314,11.8394981%200.644468314,14.1530432%20C0.644468314,16.4665883%202.51996721,18.3420872%204.83351235,18.3420872%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",kr=i.defineComponent({name:"FXGenerateProcess",props:Pl,emits:["closed"],setup(e,t){const n=i.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return ke(d,e.customClass)}),r=i.computed(()=>Ee({},e.customStyle));function u(){var d,f;return t.slots.icon?t.slots.icon():i.createVNode("div",{class:["fx-generate-process--icon",(d=e.classNames)==null?void 0:d.icon],style:(f=e.styles)==null?void 0:f.icon},[e.icon?zr(e.icon):i.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:d2},null)])}function o(){var d,f;return e.description&&i.createVNode("p",{class:["fx-generate-process--description",(d=e.classNames)==null?void 0:d.description],style:(f=e.styles)==null?void 0:f.description},[e.description])}function a(){var d,f;return e.progress>0&&i.createVNode("div",{class:["fx-generate-process--progress-text",(d=e.classNames)==null?void 0:d["progress-text"]],style:(f=e.styles)==null?void 0:f["progress-text"]},[e.progress,i.createTextVNode("%")])}function s(){return i.createVNode("div",{class:"fx-generate-process--mask",onClick:d=>{d.stopPropagation()}},null)}function l(d=()=>{}){t.emit("closed",{callback:d})}return i.watch(()=>e.visible,d=>{d||l()}),t.expose({close:l}),()=>{var d,f;return i.createVNode(i.Fragment,null,[e.visible&&s(),e.visible&&i.createVNode("div",{class:n.value,style:r.value},[u(),!e.showProgress&&o(),e.showProgress&&i.createVNode("div",{class:["fx-generate-process--progress-bar",(d=e.classNames)==null?void 0:d["progress-bar"]],style:(f=e.styles)==null?void 0:f["progress-bar"]},[i.createVNode("div",{class:"fx-generate-process--progress-fill",style:{width:`${e.progress}%`}},null),!e.description&&a()]),e.description&&e.progress>0&&i.createVNode("div",{class:"fx-generate-process--progress"},[o(),i.createTextVNode(" "),a()])])])}}});kr.install=e=>{e.component(kr.name,kr)};const Rl={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},f2=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],Ar=i.defineComponent({name:"FXChatHistory",props:Rl,emits:["itemClick"],setup(e,{emit:t}){const n=a=>{const s=new Date(a),l=new Date;return s.getDate()===l.getDate()&&s.getMonth()===l.getMonth()&&s.getFullYear()===l.getFullYear()},r=a=>{const s=new Date(a),l=new Date;return l.setDate(l.getDate()-7),s>=l&&!n(a)},u=i.computed(()=>{var l;const a={today:[],week:[],older:[]};(l=e.items)==null||l.forEach(d=>{n(d.timestamp)?a.today.push(d):r(d.timestamp)?a.week.push(d):a.older.push(d)});const s=(d,f)=>f.timestamp-d.timestamp;return a.today.sort(s).length||a.week.sort(s).length||a.older.sort(s).length?{today:a.today.sort(s),week:a.week.sort(s),older:a.older.sort(s)}:null}),o=(a,s)=>s.length>0&&i.createVNode("div",{class:"f-chat-history-section"},[i.createVNode("span",{class:"f-chat-history-section-header"},[a]),i.createVNode("div",{class:"d-flex flex-column"},[s.map(l=>i.createVNode("div",{key:l.id,class:"f-chat-history-item",onClick:()=>t("itemClick",l)},[i.createVNode("span",{class:"f-chat-history-item-title"},[l.title])]))])]);return()=>i.createVNode("div",{class:"f-chat-history-manager"},[i.createVNode("div",{class:"f-chat-history-manager-scroll"},[u.value&&f2.map(a=>o(a.label,u.value[a.key]))])])}});Ar.install=e=>{e.component(Ar.name,Ar)};const Ml={items:{type:Array,default:()=>[]},title:{type:[String,Object],default:""},vertical:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},gap:{type:[String,Number],default:12},fadeIn:{type:Boolean,default:!1},fadeInLeft:{type:Boolean,default:!1},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}};var Bl=(e=>(e.standardFeatureCard="standard-feature-card",e.primaryFeatureCard="primary-feature-card",e.compactFeatureCard="compact-feature-card",e.standardQuestionItem="standard-question-item",e.functionEntryItem="function-entry-item",e.defaultTextItem="default-text-item",e.hasNestEntryItem="has-nest-entry-item",e.likeButtonEntryItem="like-button-entry-item",e.none="",e))(Bl||{});const zl={id:{type:[String,Number],default:""},icon:{type:[String,Object],default:""},label:{type:[String,Object],default:""},description:{type:[String,Object],default:""},badge:{type:[String,Object],default:""},disabled:{type:Boolean,default:!1},children:{type:Array,default:()=>[]},styles:{type:Object},classNames:{type:Object},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},showType:{type:String,default:Bl.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},Do=i.defineComponent({name:"FPrompt",props:zl,setup(e){const t=i.computed(()=>!e.id&&e.children&&e.children.length>0),n=i.computed(()=>{var h;let c={"fx-prompt--item-wrapper":!0,"fx-prompt--item-disabled":e.disabled,"fx-prompt--item-has-nest":e.id&&e.children&&e.children.length>0};return c=ke(c,(h=e.classNames)==null?void 0:h.item),ke(c,e.customClass)}),r=i.computed(()=>{let c={"fx-prompt--item":!0};return c[`fx-prompt--${e.showType||"none"}`]=!0,c}),u=i.computed(()=>{var h;const c=Ee({},(h=e.styles)==null?void 0:h.item);return Ee(c,e.customStyle)}),o=()=>{var c,h;return e.icon?i.createVNode("div",{class:["fx-prompt--item-icon",(c=e.classNames)==null?void 0:c.icon],style:(h=e.styles)==null?void 0:h.icon},[zr(e.icon)]):null},a=()=>{var c,h;return e.label?i.createVNode("h6",{class:["fx-prompt--item-label",(c=e.classNames)==null?void 0:c.label],style:(h=e.styles)==null?void 0:h.label},[$n(e.label)]):null};function s(){var h;const c={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(c["badge-default"]=!0),ke(c,(h=e.classNames)==null?void 0:h.badge)}const l=()=>{var c;return e.badge?i.createVNode("span",{class:s(),style:(c=e.styles)==null?void 0:c.badge},[$n(e.badge)]):null},d=()=>{var c,h;return e.description?i.createVNode("p",{class:["fx-prompt--item-description",(c=e.classNames)==null?void 0:c.description],style:(h=e.styles)==null?void 0:h.description},[$n(e.description)]):null},f=()=>{var c,h,p,m;return!e.children||e.children.length===0?null:i.createVNode(Dn,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(c=e.classNames)==null?void 0:c.subItems,customStyle:(h=e.styles)==null?void 0:h.subItems,styles:{item:((p=e.styles)==null?void 0:p.subItem)??{}},classNames:{item:((m=e.classNames)==null?void 0:m.subItem)??""}},null)};return()=>{var c,h;return i.createVNode("div",{class:n.value,style:u.value,onClick:e.onClick},[t.value?f():i.createVNode("div",{class:r.value},[o(),l(),i.createVNode("div",{class:["fx-prompt--item-content",(c=e.classNames)==null?void 0:c.itemContent],style:(h=e.styles)==null?void 0:h.itemContent},[a(),d(),f()])])])}}}),Dn=i.defineComponent({name:"FXPrompts",props:Ml,emits:["item-click"],setup(e,t){const n=i.computed(()=>{var f;let d={"fx-prompts":!0,"fx-prompts--fade-in":e.fadeIn,"fx-prompts--fade-in-left":e.fadeInLeft};return d=ke(d,e.customClass),d=ke(d,(f=e.classNames)==null?void 0:f.root),d});function r(d=null){var c;let f={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return f=ke(f,(c=e.classNames)==null?void 0:c.items),f=ke(f,d==null?void 0:d.customClass),f}function u(d=null){var c;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=Ee(f,(c=e.styles)==null?void 0:c.items),f=Ee(f,d==null?void 0:d.customStyle),f}const o=(d,f)=>{f.disabled||f.children&&f.children.length>0||t.emit("item-click",d,f)},a=d=>{var f,c;return d!=null&&d.title?i.createVNode("h5",{class:["fx-prompts--title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[$n(d==null?void 0:d.title)]):null};function s(d){return!d.items||d.items.length===0?null:i.createVNode("div",{class:r(d),style:u(d)},[d.items.map((f,c)=>i.createVNode(Do,{key:f.id||`key_${c}`,id:f.id,icon:f.icon,label:f.label,description:f.description,disabled:f.disabled,children:f.children,styles:f.styles||e.styles,classNames:f.classNames||e.classNames,showType:f.showType,customClass:f.customClass,customStyle:f.customStyle,gap:f.gap,badge:f.badge,onClick:h=>o(h,f)},null))])}function l(){return t.slots.footer?t.slots.footer():null}return()=>{var d;return i.createVNode("div",{class:n.value,style:(d=e.styles)==null?void 0:d.root},[t.slots.title&&t.slots.title(),a(e),t.slots.default&&t.slots.default(),s(e),l()])}}});Dn.install=e=>{e.component(Dn.name,Dn),e.component(Do.name,Do)};const jl={items:{type:Array,default:()=>[]},height:{type:Number,default:200},title:{type:[String,Object],default:"推荐操作"},prompt:{type:[String,Object],default:"输入@获取推荐操作"},promptChar:{type:String,default:"@"},promptAgentName:{type:String,default:"AI助理"}},Cr=i.defineComponent({name:"FXSuggestion",props:jl,setup(e,t){const n=i.ref(null),r=i.ref(!1),u=i.ref(!1),o=i.ref({top:0,left:0,height:0}),a=i.ref(-1),s=i.ref(""),l=i.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),d=i.computed(()=>{var y;return(((y=e.items)==null?void 0:y.length)??0)===0}),f=()=>{var G;if(!n.value||d.value)return;if((((G=n.value.textContent)==null?void 0:G.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",x();return}const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=b.getRangeAt(0),w=g.cloneRange();w.selectNodeContents(n.value),w.setEnd(g.endContainer,g.endOffset);const A=w.toString(),N=A.lastIndexOf(e.promptChar);if(s.value=n.value.textContent||"",N!==-1&&A.substring(N+1).trim()===""&&(n.value.textContent=A.replace(/@$/,`@${e.promptAgentName} `),s.value=n.value.textContent,r.value=!0,g.selectNodeContents(n.value),g.collapse(!1),b.removeAllRanges(),b.addRange(g)),r.value===!1){u.value=!1,a.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const $=document.createRange();$.setStart(n.value,0),$.setEnd(g.endContainer,g.endOffset);const{top:M,right:H}=$.getBoundingClientRect(),I=c();o.value={top:M-I-5,left:H+5,height:I},a.value===-1&&(a.value=0),u.value=!0}else u.value=!1,a.value=-1},c=()=>{const b=e.items.length*38-6;return Math.min(b+28+20,e.height)},h=y=>{var A;if(!n.value)return;const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=((A=n.value.textContent)==null?void 0:A.replace(/\s*$/,""))||"";n.value.textContent=`${g} ${y.label}`;const w=b.getRangeAt(0);w.selectNodeContents(n.value),w.collapse(!1),b.removeAllRanges(),b.addRange(w),x()},p=async y=>{if(!u.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(y.key)&&y.preventDefault(),y.key){case"ArrowDown":a.value++,a.value>=e.items.length&&(a.value=0);break;case"ArrowUp":a.value--,a.value<0&&(a.value=e.items.length-1);break;case"Enter":a.value!==-1&&h(e.items[a.value]);break;case"Escape":x();break}await i.nextTick();const b=a.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",g=document.querySelector(b);g==null||g.scrollIntoView({block:"nearest",behavior:"smooth"})},m=y=>{n.value&&!n.value.contains(y.target)&&x()},x=()=>{r.value=!1,u.value=!1,a.value=-1};i.onMounted(()=>{document.addEventListener("click",m)}),i.onUnmounted(()=>{document.removeEventListener("click",m)});const v=y=>{const b=y.iconUrl||"",g=y.icon||"fx-icon fx-icon-sender_task";return i.createVNode(i.Fragment,null,[b?i.createVNode("img",{alt:"suggestion item icon",src:b},null):i.createVNode("i",{class:g},null),i.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[y.label])])};return()=>{var y;return i.createVNode("div",{class:"f-chat-suggestion-container"},[i.createVNode("div",{ref:n,class:"f-chat-suggestion-input",contenteditable:"true",onInput:f,onKeyup:f,onKeydown:p,"data-placeholder":l.value},null),u.value&&i.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${o.value.top}px`,left:`${o.value.left}px`,height:`${o.value.height}px`}},[i.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),i.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(y=e.items)==null?void 0:y.map((b,g)=>i.createVNode("div",{key:g,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":g===a.value}],onClick:()=>h(b),onMouseenter:()=>a.value===g},[v(b)]))])])])}}});Cr.install=e=>{e.component(Cr.name,Cr)};const Hl={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},_r=i.defineComponent({name:"Todo",props:Hl,setup(e){const t=i.ref(!0),n=i.computed(()=>{var u;return(u=e.items)==null?void 0:u.length});function r(){t.value=!t.value}return()=>i.createVNode("div",{class:["f-chat-message-todo",e.customClass]},[i.createVNode("div",{class:"f-chat-todo-message"},[e.message]),i.createVNode("div",{class:"f-chat-todo-list"},[i.createVNode("div",{class:"f-chat-todo-header",onClick:r,role:"button",tabindex:0,onKeydown:u=>u.key==="Enter"&&r()},[i.createVNode("span",{class:"f-chat-todo-header-icon-slot"},[i.createVNode("span",{class:"f-chat-todo-header-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-task-record"},null)]),i.createVNode("span",{class:"f-chat-todo-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),i.createVNode("span",{class:"f-chat-todo-header-label"},[i.createTextVNode("待办任务")]),i.createVNode("span",{class:"f-chat-todo-header-count"},[n.value])]),t.value&&i.createVNode("div",{class:"f-chat-todo-content"},[i.createVNode(sr,{items:e.items},null)])])])}});_r.install=e=>{e.component(_r.name,_r),e.component(sr.name,sr),e.component(bo.name,bo),e.directive("overflow-tooltip",Oi)};function In(e){return e.toolResultApplied===!0||String(e.result??"").trim().length>0}const Er=i.defineComponent({name:"FXToolUseBatch",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>{const c=e.content.toolCalls;return!c||c.length===0?!0:c.every(In)}),{getToolIconClass:n}=Qo(),r=i.computed(()=>t.value?`共调用 ${e.content.totalCount??e.content.toolCalls.length} 个工具`:"正在调用工具"),u=i.ref(!t.value),o=()=>{u.value=!u.value};i.watch(t,c=>{c&&(u.value=!1)});const a=c=>{In(c)&&(c._expanded=!c._expanded)},s=c=>{const h=In(c),p=c.success===!1;return{"f-chat-tool-use-batch-item":!0,"is-done":h&&!p,"is-error":p,"is-run":!h&&!p}},l=c=>{const h=In(c);return c.success===!1?"执行完成":h?"执行成功":"调用中"},d=c=>{const h=In(c);return c.success===!1?"Error":h?"Done":"Working"},f=c=>c.toolDescription?c.toolDescription:c.command?`{ command: ${c.command} }`:c.toolName??"tool";return()=>i.createVNode("div",{class:"f-chat-tool-use-batch"},[i.createVNode("div",{class:"f-chat-tool-use-batch-header",onClick:o},[i.createVNode("span",{class:"f-chat-tool-use-batch-title"},[r.value]),i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:u.value?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),u.value&&i.createVNode("div",{class:"f-chat-tool-use-batch-body"},[e.content.toolCalls.map(c=>{const h=In(c),p=c.success===!1,m=h||p,x=!!c._expanded;return i.createVNode("div",{class:s(c)},[i.createVNode("div",{class:"f-chat-tool-use-batch-item-header",onClick:()=>a(c)},[i.createVNode("i",{class:"fx-icon fx-icon-"+n(c.toolName)+" tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-batch-item-text"},[f(c)]),i.createVNode("div",{class:"f-chat-tool-use-batch-item-status"},[i.createVNode(tn,{status:d(c),variant:"tool-use"},null),i.createVNode("span",null,[l(c)])]),m&&i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:x?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),x&&m&&i.createVNode("div",{class:"f-chat-tool-use-batch-item-result"},[c.errorMessage||c.result])])})])])}});Er.install=e=>{e.component(Er.name,Er)};const $l={icon:[String,Object],title:[String,Object],description:[String,Object],customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},Sr=i.defineComponent({name:"FXWelcome",props:$l,emits:[],setup(e,t){const n=i.computed(()=>{const a={"fx-welcome":!0};return!e.description&&(e.icon||t.slots.icon)&&(a["fx-welcome--no-description"]=!0),ke(a,e.customClass)}),r=i.computed(()=>Ee({},e.customStyle));function u(){var a,s;return t.slots.icon?t.slots.icon():e.icon?i.createVNode("div",{class:["fx-welcome--icon",(a=e.classNames)==null?void 0:a.icon],style:(s=e.styles)==null?void 0:s.icon},[zr(e.icon)]):null}function o(){var a,s,l,d,f,c;return t.slots.content?i.createVNode("div",{class:"fx-welcome--content"},[t.slots.content()]):(e.title||e.description)&&i.createVNode("div",{class:["fx-welcome--content",(a=e.classNames)==null?void 0:a.content],style:(s=e.styles)==null?void 0:s.content},[e.title&&i.createVNode("h4",{class:["fx-welcome--title",(l=e.classNames)==null?void 0:l.title],style:(d=e.styles)==null?void 0:d.title},[e.title]),e.description&&i.createVNode("p",{class:["fx-welcome--description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.description])])}return()=>i.createVNode("div",{class:n.value,style:r.value},[u(),o()])}});Sr.install=e=>{e.component(Sr.name,Sr)};const Ul={content:{type:Object,required:!0},onOpen:{type:Function}},h2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHHUlEQVRYCV2XSY8VVRTHT9UbgAbpZpSmaRNMxIiGqZVEE1csXBoNboyJ23ahfgI/gQuXdiRx6UY2utKNEUJjQLrBEEwUmQcBBZuphzdU+fufc+tVw61Xde894/+ce+6tepml9uKhpYMbVpWTuWUTpZUjQc7oSnvUMZvvVZJO8om4ZjzLUmK2bqVZO4g+r3hLfbMHi5plc1lZztBPnftkxeGkbfbCocUvW5lNrl+ZYQdLaurCv3UKs7mlNIHuo9RXsqJtHuKZwFRmxH+4ZLbYq3mS5Z76/dOVH2WKvCjLb1e3zHQPHEszIZDNfxY0AyAT9QNHSaoJaf0KV4qHApAcBu8+NisqwBUdO3mevZcT8aRE27mEaamLCdJShEaGknM4QkQLIJqbrWgsUwy2M3osnYtDS2qDQVlkkwDIJjKYrUbSSp0bDy96ugPJeYbUsyyRjbDXwpK31HkkjDusv5rsPa1PPUzkWBlpKX+VosKleS1Aq6IcOAgmWUkQkaFwo/jcRpUJJvy6/WR7kDU37/oEMNLUtC30lV64dilhKVg8sdo5DxeLQlX0mqs1PbQYV8Qq3Uu90Bc3xJQJKYZ+U327kdREdyDuWTpJSfzMmoDo9pNBtxFG2hSvU0WTjowUhXVZfzmVyQoGBe9zZU3UZo5RGXaypBEYbhf24SvaEj617/7s2/UH1AF8AnLi2zsatnNTwwvrxv3CfryoonAVr43NQ2bv7GxaL9XAVyd7NqedpKVzN3gEQ9NT63pQPd2lPUDwrecbNsK5oHZ3vrBvzvasJbTaT4D8eH/TxoeZ0249KuyH84vExCWriOwfy+yDPb7C9t98aZ//zGkmvtTpXZNxrvRHktTDJJBOr7AT1+ujb9dmEobjFtpav7E15cC5dLasyW3rMwGs7PdN9+4tAU786Su9VEsR0OA5AKB1KQO5ouuQ56MoVW3Xs9osIGNdm1lhb4zXxiuZfTgs4Eu/pN896pE5e/qibAUddjT5ZMRhVM1FEDdj7wLgcjcYPIdX5rZ9GK6ywAHw+rbaeCU0sbVBlqIOtpCh0bU1yGMXOp45mfcdIDcOREuBjjAEDp4g61I4tx4WduleqiD4SmlZ9NnvAHgu1vbOoz4vGQzQ9o5BA0Ch9C+L/o87Pfv3Md7k3CXlI40JKGAO0s82S4Ake/yqCieajGoZdmzMbf1QqJ240rHZ6yGzcXVu4yMqw9J2bw2A0jx2kUwqWhWnOr986I9YgbQeEuz1ZZwbUEcu1XWwZ1QRlvbqWJ3+GQCeWgZyAl7J8u1dDuACAOScZKrO/ABTLgSKGwC6YqIt5Gc3DI1PXusBSJK8atc0bHSN2Wvb4nwQ7QzRz16rs7RvrGV8U9j4ugC50C3tFDbcg0DoR68dJefymwsRP5+oDNmBPGGBdr6b2ZmbdRYmWOc9Kbq/H/TZ/yV1Utg9zgm1feMt27etTv+vV7opo7XNquZcAb9UVjhX3wWxg0lIxTl+uY7w/b1DNpROLqVeQHVVWRhZldu7u/ksSu0Y6dfBIzeKVnc0tETnTjUgchYFqFRVRQntiIoote0b6uh+IzNZpnrJbOZaLbNrrF2J2zS6pVLuzlSegktTlDQth2dASETUue08pPKcfU1/7nZh99NWc630OI1TmROIGVL9dLt5v28X7xbhEpnMqw2n4RtH/HwbOkHVqTddSpYy4Kigo3ziKQe3fP0jAmXgBi+qOw/rM0NgpnX4EF8u57KmMlnmXDTdsaHhqPgcFUjE0DJ4wlCavvRkhLMpeqm7AxRmrz4pc+yvqP5Iu1ty+/WRH/4Gi9qJ49oRxfkkRJHin8537aVN8yknZkdVXIqM24mA/v7skt3m9PQlRPMXP0NYRkWttcSWotWu8wD9yfjNrxcpfT67F7QFGegnJQlyFyoMjuC1rYLXcbWmGMvBrtczsnoH9Fk/vbZDGX6G80YTG7hLYONLCNtq0qPzLyJN9KXjRMlzDT65VMU40odIW2PdHgtPjDtYKN0Sh7p8UWWau3IufxLk58lQclPzJdCHI6aCJDlFL0nGWmMZ0orm+nil8T5yUHKifVzC71JleUObCl1fPRWfLtfwPsemA5ENLo35GsvmOl3+isk/tytorObRIshC9gs49J5SMIXhJEYX7xCVpYxINkkQQGw3mYc38KFKy+aajzvlDP/dDohRmYtsYACEypybwuC8/z2rnBMDNEXBHwzeU8qaeCkLFUTqSvpuQw4qP7KbZTPNhW42hZEDtQAcF4peS6qzQEgW2CmSEyjRfUDnDlLE4g3cMXaenjDE03yQhaycyuNfag6IYIivFoppDFMOdWvt3HmScbDUgLab7louOUOuXvfQh6RsTZ3+bMVhByTCy18sHWStJim6Cb7t+LSgCRRNY0c/mEfqB5HIeSWjkUcjAjetskX9zFFPM3nWxHnT/57/Dzj0fqfCZcLZAAAAAElFTkSuQmCC",m2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHeklEQVRYCV1XW2hcVRTd985MZjKxNaVa6cNqnwbaftSIiuiPilh8NC2tWh+lXyFFbMEKgvgABQUfIGoxWqGioFLjR0GQlqooGhptjNU+9EPaarT2IUySZt73Xtfa+5w7o3dyc885+5y91l57nzN3AnHXjoOPbJAgGEhEegNJugUNCURqzbrUk5ok6GcklK6OLrTRwc2PxPhLYkniCAswEqPtbXiWGxekEdUkxniQSCmReDSO4sGP+vYPERoQIjtGtr2JRQOB9tQ3Rh0DPMvNCnAi6cwUJROEBk4QvQluoCkBR6QR1UFgqkVYiWKufmRwT9+BrYFFLh/Dl7sSCAEN0PeEIgA044bkM3mNlkYFR9R8sq8qEIB9AMRRU6brUxiPNHol5whwfsK2yMYsZaeRYFzrwVM6GMuEoYRBBxxRZkgOQubEOeJCOFQHrl1uTEsEcKpDGwFjZ0sVC5KBLJb26kJkw0iADDPjCBHQR8n1BgRnKQknqToHIZCsRVWJoJgBeQJGUpXD3ITkEunN4n93GjXm+LaVAxGJadIyCq5ScOaRkVFIgpMQKoWSVxtlDBkZGHW+X6trdK6u6876PPsU0F+rzdwagDkkCPueEOGtr+BwPF2fNGKOnE8BSbZI2BrWTbaOSs2FHQwUFwzUni0YdRGj54dPFxX7nGVzGLXZKoi8qYWJPqNsA9X6cX3vm4Fka0ogp9ITnCBRxEi53smNZ7sz2ii1H0tirEHO682qI0pCppbVSosMx9vVRBHGUsE+78wWzaGqwJRiEe55nfPkmjnX6SICY5J8PX5AzpfPKohGipytWbROsmGWZp0zdnpEfj47iq4D5w6iAvyoShYUVgQ4YiLRVAQZBdK8AzyKIvlzelw2dW+WK2Yuome9rpy5WF75/llETZKR3L74bll/1f3eLGenT8ueI7uVIGX2kht4q88gQxYcG9VmGYBNnUyGXrqo2ZBdP+3E1qqlAMtm9cjNl6/Rw+ay4nxZu3xTaouw9tXh5+wQgl+Cp4cUI9fbpxYEfJW2y8IcKXMewHBwhhEdfz8FYWPd8vtkftdC6V+93aR31qFj78nRc2P/CcQK2MhYDaCt5BIJWZ0EzId5rWztY4ys/RaERvLlqX3y45lDKYlcJidP3Pi8LLy4lZpfzx+VDw7vgjIOQKNFmjTvLVAGS5/ECgkeJgG+6Zh/xxILtJpgCzDGYuS8d8bekMnaREqikC2kbW7Bl755CqSbEoSabdvRDIRE6Bt+VFn4sjawYZECvmQ8S/Y9EQPGInyPkvFktSS7Dr2WgrY33v1hp/w9OY61zjlJo4ipJH16EnySBGtMFcjzENIgwRIfLgiwgOAKrG0qgWrF3+Ez3+kWbAevN2sy9teIFN1W1mCcigyGvnxQJOjJkBh2bgagzAmJsvgYgZfMnvSFI0od9fVskkuKc9rxpSObl4FrH8O7QgZf2QyIcy16KzZ3BpCI+jaVVQGViOCMmEbIZiTIGo5oY8GgvWTWUlnbc6+O/f/f1fOvl1uX3ikdIMBvU42camqxEdj8+XEM6BwtQisIG9A0YDKJ8YiNQYj2HKLr730U7waZFPuXc0fSNhsPrt4qc7sW4FTt1DXMsx5Wqir90RdTwDYCxjiK0Bvw9G08qbgu0OgjuWfFFpk7Y0EKOD5xUp7et10OnvoqHctjVzx8w5OSxSefMRIE0mDgp1UHLEDe3IZkQpH5guBYKUP0yZ57evmsFXLLojtSIJ52r3/7Aux1eevgi7o7vHHJ7B5Zv2oLDqdc6/0R872SFqRhtilgcnh5aCAJFAW2aEGl54uKv/Ye+1B+++e4vjdM1Ery9sjL3qTPvpUPybLZK/UlNuGhxBTwo8q2lLYiZJQuN5zAYgO8Rs7FD6zql9nFS1OAP0onZM/h3Qoe4HzAmSPDJ76Q4ZOfp3NYJ9tuekby2JYF1gP9Akefrqb8jgv6P9tIRDUaAccwSvANWZOpyoQrSCuoAo7sPLYd1eFrCXeN5pkAmmcd1fcL3boYLVcnpR5XsYS+tbjUJzqsAZOG4HYrG2VcqV/AcvQ5B855LNci/EaIcdziYGKfKoAHLvpBm/N5saboE6CdObxrtOF4NWjHNvTA/mkHSLU5bUB0CBBGg7dzfdJG7fXEZBSwaTpABFMwh/WDC6A6B/bOnP2i8niMXmsAVEu6AxxbRtHAz7Ea3pL0Ql8dgoeXL4ICjUYFbkmOMXOOkSMRlR6RS2BBMWK+LeWwM/wpS3CsKVGBUVBRqQgQoF3B7zl1C1IwENkiJKDesf7mM5uzY1yjZ0qUNJ7wpWeAC66AoiRRrmNqiB1i+SCBLToUDPIeRw2VR5VROWF3zuAVTi2/F/DVzHGO8dYi1G1nwPY+YQQJyruYnQHfNoayHgx337V3CO4H6YhvtTW+2TICd3MRZfMONDrY2G9ilzSQKhajRqSOPSB9WFvzToLo82ceT0w4GBx+vDKkiqAnmz+5bcNUtTSQxM1enIDduih1QAUYNZWCU8SaAqJ3UcdMyI9KgTLMkNrcXKpC0owatVGCj1HUyeCn237Xn+f/Avavy/P8wtVMAAAAAElFTkSuQmCC",p2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGCklEQVRYCYVXPY8cRRCtnt29s/EhW0KAEAkxmXUBIkBkRERwdoqFHNiW/AMwPwCJECTYEDKEnYJk4+ASIwQ6WSIjwJKNQBjO8t6Xb3dvZ5r3XlXPjIzX7rub7qmuqvfqo3v3ksXIH53fsJQvmOV1y3aqyJ8055x74sZyAys8EqS+hX2pcC9b3t6xPD/i/gSPrWxpvPrNjWt0QhvLV85/CU2AP3sQXEDmwEIiXkuKLw4sb5DnBgz/nWju9NL42Lc3LyZFbs3VZ0O7RusATrnmj0ceURMMg3JfYEVC+4dme4ctUe5Xls4MlfbQdYvHnnQ4m4N9KKVkmYiDyqzCX+C6VYArG65PcI3jq5Z3D7QsQYDEhSE8rLvGkudRbfZwDzwZSZAo69WR2ck1EAlbYLU6EAmcMrIk8dHAjP60R3+2XmHvqQ1XlBuC8ifA4Q+ZObL8cBcLuGGz4afoQ63LGl+wn4aM131I0fIpSJ42oNws6KmtMyEEVRzNa8vTmVUrgyBHfwhbme+DwY6s3YF7gY+lBErtqM9RIpQ8hCUbNkePDFHjICp96DBJjNgnMKoSEiFmkvHxRAKljllHDdGfPWeDd8+0RssWeTbFmf/b6p82rdn8TuDMVhKZx7LBkoBhaR/5FDAYo10QMY5O3VgNxoXQMuAiT6vHrHr1NRu9f85GF68QGqWAPQJp2CN1NKCOqhP6XwZ0aZAAvCpbWLAB0b/taHYnciwBw1AoONUnnsdSibfB66dt8cbb1vx40xKzTjHLESWhLUsmAoxQ+2DmelQEa8gpqXjme2Pn40uWD3CrjnAMkV8RxX56bs1OfHDZVk6/Ke3hW+/Y9NYPOsIJfhrcJ06A0bvD1rNH3kPhkjwGoLQCoP7ApZJWcIeJrQensu3v2v7Xn7Wa1YuvWLPAKSEYH0cLTA7u5UYPtHWRGSJGOK5EdNaMNaSH/tA1ipgSSoM/MEEBRCjv7VhzsOfKo5Wwhd99NGiEzblk2nuATUFmBBJWmXHBoBFd1hEgGOOuAMwf/ja4L3hbVmtrVqEXOOr7f8q0gY90iM+CdngW6HjoeHp2QCwqu5YdHKxbWy38pCR8KPiJAYfB0KqXXrbjGx+2qvOtW/CJXto9tLRoeA20/tyvLiIHLxdPP1rGKVbBr3g++elXZbl0rrfv2+x7fOTvPrJqhtuU4KHdD2qo1DPKsqvLhykqvcAz1G4uBexvzH/9xfa++MTyPw+swtnnFayysczhqs1Ax4ZpB1TR6Hnswy/u/W6HiEwnAGWKFpBdgzov7t2x+u5ddPxR15xQA7TK1XMrG2SgE1GJgyTaDOAY0VkZ9YNtm25e14VT0XGDCNnEPG6oM4n51VuuWQBTCJ+8V9Q1ESTXOAVINSPhoMPY1CvXIoAalkGwR1O9hTvZUVChy0icgH5SQEbY1ORgy/pwHJ4C+HNWWGBQsdGxxCLI9DhRRTo8+z4IFsThvUp4Q0CciOZazChe9FUqdMN6qGMUtHQSxIMGodEu/J0OSdhnX+s6jjRTKzETEWubXVhQ1hGCInwPWRfX7ZWCXiR3Im5EIQbUieWXkIv4ZN0LZ+nrhZBcADxwhNeZoQek6OmXPIBdB67guf7rD5vf/lmixZ3fPAr2Db+UoocIXgaBCihTTncdtaIIDd+wNL981lUk6BQadXe2xXRuNb731XErVgBNAGfDMQuBIIziVJBsLrgrMp/df5FxH1dxVxdFQSLBjjPTqT+ACZDvWFOmjpfPSLFkFEiIp8/+HutuW/b0OSmMSsNo1tEEKCJlivmFpCIhrKt+zltQEnIQzvKh1y7dkjMzpObBTfBxl7dEVMa8fl2BEYo5P8kierJl1RU/HQDAQQsIEZ0ErQuQXIe4aIiMpS1WdOyKYYLInSkB4mZzNnINDkSNElBXOP7AmpEX+5IFN4GcWQ0dylLK42r4+dVriHBs0XSQx5CKrwXooCFwYL3AMeYCGiJXgwvulqwK3bWZxvELN25fI4rG7NJ7G/jywf+Q13Ou9d+SosHnQDPZb69rAtFIgHSmX1JwmfaYBRdQypX0sTfB2xayKHDK/wNolX2UI+Wo7QAAAABJRU5ErkJggg==",Wl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGLUlEQVRYCW1XTY9UVRCt19M9MwyiAxojRI1REImJRAfQhcSVGmJINMG9G5LRH+DOxJ0JP0BnpYlbMCYqGBciJmqIZiAsSARUUDQoYGjmo2emP97znFNVr3vUm+n76ladqjpV9973oLAYcyf6hwZlOVtVNmNWTVcQDH9lPLnGcr1Oa9cTRoD8KEoerstS3m1g5pe71dw7h6eP0b3g9O7x7ntwnKUsR4AzoQIymGzUU/DAFDlS53Il0qlTnABSJpHOGnzKau7IG1teL7zywVE6OJjoQnIGB1gEmEk4JQ0yAqWvP9PPn8DV/obkpQ1K4pClarzaZNs9OuEcnlyVY1UBzDEk586upUF/9ZJCFkM5Wi9df1B58iRkg9kmwDNKFoFSromMZmBzMPRYR4w6D+BEA5d4PJHTVteEkr/jihkQKKcVFEwC7wePieg10pG0J5BrVsuhp+SR7ZO/GStfQXKC3IczcDjszdpZQQiihlgXSu5BqKXhxDWDSRHY/9Ex/1qvtH5fIT00fWpsZc0S7KTjlEMALGSIR9hFbAQ7gD8H9byyVVVgnyskxY+x0y+6kddaPpianS69PcmGcQ9UHzw3iQcdkhDFPFxsrcf2ZNhSkTEQ4chO1nLk8u0FgayITFOJ7amvTlbAUlLO5PLRNPLCUtqiPkfJ3rsjY52Hrs2sHuFlzRZxlQmFcXOty+SRX77ug7nGupBFEkQ5zJKbXGTlmXy8ZfbwVp3PCJbtrez6rYHduxm84fjz731bXoGAxe5HWtr728ulbb6jIUI5sWM9HMRzP63VuZI43wNiNMpy01RhLz09kf7rnp9+t2J7do7b1rvHbP5C1z76umP7do3by/un7OT8ij32YMtmdv7Xd7FT2rlLIMBo4kypwBmI0yklbdAvLFV2/PSq5AP7JmxsrLCvzq4Zg1y93reb7YG9dmCjPbmjZafPN+z5PZN2a3FgX55ZtW1bxuzCr13b8UDL9u6atD9u9O3UmRXr4lZkh1UscnGNLXAm2ps4uWs9s/NXBqL64l4QgHTxas/+XvDXX3uxtLOXevbUo+N2+OAmG28VdvTzRet2K7v8Z99+uVbZxHgBAmbtpdJ++JFfH4XD5KKvK2uocnSh0tF3q5PxL5c8wond4X4y1klUxXvO5Feu9ez85R46Bgv/COCPI3R8oaW/Y/xcNWpsbIWS00/ew0lBY8lte+i+pjWxNRzb7mnaXTg3HCLBp1Y+1cRCqyIC0BDBTB6OTKDfaBTaAKa+iQvywt4NuAGlXfitqy4cfHZK4enivu6stdjzGxHvi4hFIg2COTJ4rl0nkybZASV6/xOTdufGhrbh41PL2ord2yds+zZcz4g39GRsj18zDCNj6sIqOJR8cngy7pGvQ6n1lk0Ne+bxCfsL74MzF7t2Ewfzm3Orgrzy3EYrsBN52t1P80jMOEcKzWuIJEoUCrYlB/Wf4d4z6GIHOBhaOHSffNuxazd6/j2A8ovvO7pu9JvCK2CxY9iann14YsFuLQ08OWxej8fPPMVb7y9Iw9ZNTfo+8YPCl0SCRBLp64aIpH/3l/Bu4A0qS7+iDJbb4P6O80JhHLEzXvx7wFkNQXCKTnhyuqENwcAZx+cXFrWcJGjHj3aHZnL6pw7PkBm76Szp6AB3pByB5Ip1EsKTATTok2v5cwoTA6UOqnXdFMavLTrgrfWlV5nJGYryuqAef0hIoBoiaJJ1/3BAhxRXb1vkxJZx6/xjFExjG+EBMEP9K7nI0FZXTfL8ZXCW5qW4PgqAVqE4YYx2Qy8iad2mgOTGEXjpXB5JBMjwuolu+DipoT99kojLDnRdA1esTUZM6RX6s24jnWFXQ4gbxbJy+KkiCIpDaMh08k5QiT/4JibIt/EmtPkaSBKkpwkPRNJHRCpXpt3JMoHDk3ztzK2iDVONYWwO6fEoivkGPmhzDgybql3PXD5wykoVFEpWUXeHQairq/QYo8Xw4HGt6oEtkLtxZBb/SxWJCAaDQmmKKpJU2JTL80HjeOpEUBrows6Htg2C5HSwau6Dt+8/5kcWyjfn2oemWgP8D7kxMygH00QziLd25E3HKBiqHvIy3oTkJ10IddsVIBK73AZ0vrBCyenzD7OyHHaTkJSSAAAAAElFTkSuQmCC",g2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGkElEQVRYCZVXS2udRRh+Z+Y7zTFtk5iml7S1XpBW3HhJdVER0YUKikhtRNCFF5TYheLWjX/AlRuzcOnO/AXXIpiFG0URoUWq0KJpLb2eb8bned6ZcxLaCP1O5szMe33ey8z5Eqw+5czyKSt5Bdsli3vnRB6dB+k6lgV/2SVLsYJ1IE108pw23jf6plk6pWyEYOuhhNXwyPdrNBj4Vc689qXlQudm3QGoJS2t9GbX/8B6hOEgCpzROeexQ4EjHRTSsZ/IEXjjYV31ILuaHl3/MHjk/TdEaHEPxvTYkBzlq2Y3zrkzOWD0XNBJM+h7OmqOmyPOkmsgMvRDDaDYcoShFQqFMJRz2a4oIYbtFOgzQq40ykmLUNL0zoVkVJrmtM4OGNbgXCAzs0SdvBLxtUTDJd1dIyPD0+xC2HezKFa0QKXxqBmAtNEwsyFwVR9eW5kcOAWd53KSX4pANRfibjA7qgMEnXiEboB6oIYZ8R0A00iDeOi4OQM4lY00Aa3louaY5mup5zIXA1WQYndMJlHSMI1x8shCYhlEqWwH6ptJXb0Hqh6BKTuTyEGRXdqn7a6EnbCBVqiIZZBfAjJRFKw0a2V0ofJcxh1WueGDFhc/RtvcZ+HKT5bPfV5PEfjVXusDZQBgOjUYFkSmR7ItddUJJqWWWRj9gx2OpTLjdOmCF+//wkLnV4jNPm1xeK/1Py+jd27QEP5q9DLrPtBZ6MPKbChZ32JMPUd1rgzBCPulloV8zxzoO5+YOJcW9KaOmO1+EjtPdyvn5pm5B5+jatE4hqoNWpATp8EM+mWXDMpoPVa+ZpS3PgH3inULEJnUXmv6Aw3h07l2mDxiORKtRegArFu0MjyGXpweN1cDGP79zsqNP7cgKFd+Mbv2O474rLJD+5ujp++uaZChk1AJbhhQMq5jgCmocTr8KUpwl+WzV61c/FZZyrhUvD+GuNI/s7BwysKOQ1au/WblwtrYoXV7LfTXcLtfZujj0bErme7mvNWUWfBaUzxb3PeuhcT7ArIHTlu+hIjzZb+cEk4SLjLrL1r56ysWzUEBuHe727DBfrQNrvZ8E1Y8814CbPSppWjN5bTeytRRi7sel3N+xanDFuZfrWWAicE+2GuAGRBLWTPK7OkukCb6ASAkWwGo2SRMAUfejJUesUA5LbxB5pYnLryOfbIyWJA4v5Q90FgW+sjQLfhFVXZrf/HHjld76wdlwDveETnD1wSk6KePbnHOTZxaNNtzEg05lKPMIA68b/HY1xbnXxTNywobygiUiIo2cSpCGKg8AtDq3hQQNl4PMNCAac8r9HfbJy2chBxKhBH3v2Np/gVcKwNLix9Y2H3CecyCDhe/HEzARVMGe5WFSOfNMaPPPVFSFgqoV9z1mO9v852QmTL1gIWZpwD05S0S3eGPoI9jiw9tFf4EMxPVfEi4T9DUuoi8duRUMIicYOL880hV6+Mt9sebwf43bXDo9HjfFiENLR35pDomDHwULPGwN1CyHQhQkFgbDU5g6tNZmn2m2dt27maO43jyB+3WJ+18GC9ZL7kzOpSIl4L+GK5fxUI3YbCucebEtoZvdbU9pTv4tmVcYq2nVIoGBnHXDPAi4rHBrRdYJ9zRc89tb/UOOMxOd/A9aHhe+T6oNTMOmpqQDjWUCQji7k7TD92Bm/8XTeilsuMgfKC8uFvgRs656ASoOm73QRldsv7SDxaG90DQz8ikFblqg4aIna/tfJw+6dsql684T3XHEgBcBl0w+vUtvWixRkKI+rMU/egm5lE957xKUB798NChQnBL1OOzmcaoMhoM/nmKYoy4H/HyVyLWLi4A0MGbKH8YIKgLhYrsVl6faETPFZigwU+gRUWhN0kH4imEBYJinWkLkYHOtTsmSOjw5cfFuIU+3gnj9bMb6Po5Jlo/GrwsACJiUDoydtRtQIN0LjpYtERjmimLlcCTyHPODtcLBznIBkBRBU5rHORvENI6BciQIISYnqj3ZUaDCw1rvLspmoQoEgT4z1uCnA9Pd4IcR4QMdSjHwLCUHdpX6jETJIjrAFZWBZdMDAFhrZlGiFGZhqIG1jLMmUB0jjXzzabTnv9ZMnK3x5rTTguyZZq0kPNq5H+psA0QkgFCjwaT0FJwclVj0wSZ47bGTOBbmhNcOVYw7CsPSCo0A5/ds3+vSYb78uPxU31/cwUAlnLf490aDqqThppyPClthltlajyD54C9nNKvNggQvA3Q1lFOOD+/Rjv/AYfYvIrlGomFAAAAAElFTkSuQmCC",Nr=i.defineComponent({name:"FChatAttachmentPreview",props:Ul,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return h2;case"xlsx":case"xls":return m2;case"ppt":case"mobi":return p2;case"txt":return Wl;case"png":case"jpg":case"jpeg":case"gif":return g2;default:return Wl}}function n(s){return s.icon?s.icon:t(s.type||"")}function r(s){if(s===0)return"0 B";const l=1024,d=["B","KB","MB","GB"],f=Math.floor(Math.log(s)/Math.log(l));return parseFloat((s/Math.pow(l,f)).toFixed(2))+" "+d[f]}async function u(s){var l;(l=e.onOpen)==null||l.call(e,s)}async function o(s,l){s.stopPropagation(),s.preventDefault();const d=mn(l);d&&await Br(d,l.name)}function a(s,l){const d=r(s.size||0),f=n(s),c=mn(s);return i.createVNode("div",{key:l,class:"f-chat-attachment-preview-card"},[i.createVNode("div",{class:"f-chat-attachment-preview-card-inner"},[i.createVNode("div",{class:"f-chat-attachment-preview-main",role:"button",tabindex:0,onClick:()=>u(s),onKeydown:h=>h.key==="Enter"&&u(s)},[i.createVNode("div",{class:"f-chat-attachment-preview-icon-wrapper"},[i.createVNode("img",{src:f,alt:""},null)]),i.createVNode("div",{class:"f-chat-attachment-preview-info"},[i.createVNode("div",{class:"f-chat-attachment-preview-name",title:s.name},[s.name]),i.createVNode("div",{class:"f-chat-attachment-preview-meta"},[d&&i.createVNode("span",null,[d])])])]),c?i.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:h=>o(h,s)},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])])}return()=>{const s=e.content;if(!s)return null;const{message:l,attachments:d}=s;return i.createVNode("div",{class:"f-chat-attachment-preview"},[l&&i.createVNode("div",{class:"f-chat-attachment-preview-message"},[l]),i.createVNode("div",{class:"f-chat-attachment-preview-list"},[d.map((f,c)=>a(f,c))])])}}});Nr.install=e=>{e.component(Nr.name,Nr)},Cn.install=e=>{e.component(Cn.name,Cn)},_n.install=e=>{e.component(_n.name,_n)};const Xl={activeNavId:{type:String,default:""},displayField:{type:String,default:"text"},disableField:{type:String,default:"disable"},horizontal:{type:Boolean,default:!0},idField:{type:String,default:"id"},maxNum:{type:Number,default:99},navData:{type:Array,default:()=>[]},navPicking:{type:Function,default:null},valueField:{type:String,default:"num"},visible:{type:Boolean,default:!0},customClass:{type:String,default:""},customStyle:{type:String,default:""}},Fr=i.defineComponent({name:"FXNav",props:Xl,emits:["nav","update:activeNavId"],setup(e,t){const n=i.ref(e.activeNavId),r=i.ref(e.navData);function u(f){if(r.value&&r.value.length){let c=r.value.find(h=>h[e.idField]===f&&h[e.disableField]!==!0);c||(c=r.value.find(h=>h[e.disableField]!==!0)),c&&n.value!==c.id&&(n.value=c.id,t.emit("nav",c))}}i.watch([()=>e.activeNavId,()=>e.navData],([f,c])=>{r.value=c,u(f)});const o=i.computed(()=>e.visible&&r.value.length>0);function a(f){f.disable||f.id===n.value||Promise.resolve().then(()=>{const c=e.navPicking;return c&&typeof c=="function"?c(f):!0}).then(c=>{let h=!0;typeof c=="object"?c.canContinue||(h=!1,c.message&&console.error({message:c.message,position:"top-center"})):h=c,h&&(n.value=f.id,t.emit("update:activeNavId",f.id),t.emit("nav",f))})}const s=i.computed(()=>{const f={"farris-nav":!0,"farris-nav-vertical":!e.horizontal};return ke(f,e.customClass)}),l=i.computed(()=>Ee({},e.customStyle));function d(f){r.value=f,u(n.value)}return t.expose({updateNavData:d}),()=>{var f;return o.value&&i.createVNode("div",{class:s.value,style:l.value},[(f=r.value)==null?void 0:f.map(c=>i.createVNode("div",{class:["farris-nav-item",{active:c[e.idField]===n.value},{disabled:c[e.disableField]}],onClick:()=>a(c)},[i.createVNode("div",{class:"farris-nav-item-link pt-3"},[i.createVNode("span",{class:"farris-nav-item-link-text"},[typeof c[e.displayField]=="function"?c[e.displayField]():c[e.displayField],c[e.valueField]&&i.createVNode("div",{class:"farris-nav-item-tag"},[c[e.valueField]<=e.maxNum&&i.createVNode("span",{class:"tag-text"},[c[e.valueField]]),c[e.valueField]>e.maxNum&&i.createVNode("span",{class:"tag-text"},[e.maxNum,i.createTextVNode("+")])])]),i.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}});Fr.install=e=>{e.component(Fr.name,Fr)};const Gl={buttonContent:{type:String,default:'<i class="fx-icon fx-icon-search"></i>'},customClass:{type:String,default:""},modelValue:{type:String,default:""},popupHost:{type:Object},data:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词"},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},showDropdown:{type:Boolean,default:!0},itemClass:{type:String,default:""},dropdownClass:{type:String,default:""}},ql={data:{type:Array,default:()=>[]},onConfirmResult:{type:Function,default:void 0},onSearchedValue:{type:Function,default:void 0},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},enableHighlight:{type:Boolean,default:!0},itemClass:{type:String,default:""}},Io=i.defineComponent({name:"FXSearchBoxContainer",props:ql,emits:["confirmResult","searchedValue"],setup(e,t){const n=i.ref(e.data),r=i.ref(""),u=i.computed(()=>{if(!r.value)return n.value;const f=r.value.toLowerCase();return n.value.filter(c=>String(c[e.textField]??"").toLowerCase().includes(f))});function o(f){r.value=f}function a(f){t.emit("confirmResult",f[e.textField]),t.emit("searchedValue",[f])}function s(f,c){if(!c)return[f];const h=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),p=new RegExp(`(${h})`,"gi");return f.split(p).map(x=>x.toLowerCase()===c.toLowerCase()?i.createVNode("span",{class:"search-box-highlight"},[x]):x)}function l(f){const c=String(f[e.textField]??"");return t.slots.default?t.slots.default({item:f,searchValue:r.value,highlight:s}):s(c,r.value)}const d=i.computed(()=>{const f={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(f.maxHeight=`${e.maxHeight}px`),f});return i.watch(()=>e.data,f=>{f!==n.value&&(n.value=f)}),t.expose({search:o}),()=>i.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:d.value},[e.loading&&i.createVNode("div",{class:"search-box-loading"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_step_loading fx-icon-spin"},null)]),i.createVNode("ul",{class:"search-box-list"},[u.value.map(f=>i.createVNode("li",{class:["search-box-item dropdown-item",e.itemClass],key:f[e.idField],onClick:()=>a(f)},[l(f)])),!e.loading&&u.value.length===0&&i.createVNode("li",{class:"search-box-empty"},[i.createTextVNode("无匹配结果")])])])}}),Tr=i.defineComponent({name:"FXSearchBox",props:Gl,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const n=i.ref(),r=i.ref(),u=i.ref(),o=i.ref(e.modelValue),a=i.ref(!1),s='<i class="fx-icon fx-icon-clockwise fx-icon-spin"></i>',l=i.computed(()=>e.loading?s:e.buttonContent);i.watch(o,w=>{var A;(A=u.value)==null||A.search(w),t.emit("update:modelValue",w)}),i.watch(()=>e.modelValue,w=>{o.value=w});function d(w){o.value=w,m()}function f(w){const A=o.value;t.emit("change",w,{oldValue:A,newValue:w})}function c(w){t.emit("selectedValue",w)}function h(){t.emit("clickButton",{})}async function p(){var w;a.value=!0,await i.nextTick(),(w=r.value)==null||w.show(n.value)}function m(){var w;(w=r.value)==null||w.hide(),a.value=!1}function x(){a.value?m():p()}function v(w){const A=w.target.value;o.value=A,f(A),e.showDropdown&&A&&p()}function y(){e.showDropdown&&o.value&&p()}function b(){o.value="",t.emit("update:modelValue",""),m()}t.expose({togglePopup:x,hidePopup:m,showPopup:p});const g=i.computed(()=>{const w=ke({},e.customClass);return["f-search-box",{"f-search-box-disabled":e.disable},...typeof w=="string"?[w]:Array.isArray(w)?w:[]]});return()=>i.createVNode("div",{class:g.value},[i.createVNode("div",{class:"f-search-box-input-group",ref:n},[t.slots.prefix&&i.createVNode("span",{class:"f-search-box-prefix"},[t.slots.prefix()]),i.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:o.value,disabled:e.disable,onInput:v,onFocus:y},null),o.value&&!e.disable&&i.createVNode("span",{class:"f-search-box-clear",onClick:b},[i.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),t.slots.suffix?i.createVNode("span",{class:"f-search-box-suffix",onClick:h},[t.slots.suffix()]):l.value&&i.createVNode("span",{class:"f-search-box-button",onClick:h,innerHTML:l.value},null)]),e.showDropdown&&i.createVNode(nn,{ref:r,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost,class:"f-search-box--dropdown "+e.dropdownClass},{default:()=>[t.slots.dropdown?t.slots.dropdown({data:e.data,searchValue:o.value,loading:e.loading}):i.createVNode(Io,{ref:u,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:d,onSearchedValue:w=>c(w),loading:e.loading,maxHeight:e.maxHeight,itemClass:e.itemClass},t.slots)]})])}});Tr.install=e=>{e.component(Tr.name,Tr),e.component(Io.name,Io)};const ci={data:{type:Array,default:()=>[]},view:{type:String,default:"ContentView"},customClass:{type:String,default:""},itemClass:{type:[String,Function],default:""},idField:{type:String,default:"id"},textField:{type:String,default:"name"},titleField:{type:String,default:"name"},valueField:{type:String,default:"id"},group:{type:Object,default:void 0}};function b2(e){const t=i.ref([...e.data]),n=i.ref([]),r=i.ref(""),u=i.computed(()=>{var h;const c=e.group;return c!=null&&c.enable&&((h=c.groupFields)!=null&&h.length)?o(t.value,c):t.value.map((p,m)=>({type:0,data:p,originalIndex:m}))});function o(c,h){const p=[],m=h.groupFields[0],x=new Map;c.forEach(y=>{const b=String(y[m]??"");x.has(b)||x.set(b,[]),x.get(b).push(y)});let v=0;return x.forEach((y,b)=>{p.push({type:1,data:{[m]:b},groupField:m,groupValue:b,originalIndex:v++}),y.forEach(g=>{p.push({type:0,data:g,groupField:m,groupValue:b,originalIndex:v++})})}),p}function a(c){t.value=[...c],n.value=[],r.value=""}function s(c){r.value=c;const h=t.value.find(p=>p[e.idField]===c);h&&!n.value.includes(h)&&(n.value=[h])}function l(){n.value=[],r.value=""}function d(c){const h=n.value.indexOf(c);h>=0?n.value.splice(h,1):n.value=[c],r.value=c[e.idField]}function f(c){return n.value.includes(c)}return{data:t,visualData:u,selectedItems:n,activeItemId:r,updateDataSource:a,activeRowById:s,clearSelection:l,toggleSelection:d,isSelected:f}}const y2=i.defineComponent({name:"FXListViewItem",props:{...ci,item:{type:Object,default:()=>({})},index:{type:Number,default:0},isActive:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["clickItem"],setup(e,t){const n=i.computed(()=>({"f-list-view-item":!0,"f-list-view-item-active":e.isActive}));return()=>i.createVNode("li",{class:[n.value,typeof e.itemClass=="function"?e.itemClass(e.item,e.index):e.itemClass],onClick:()=>t.emit("clickItem",e.item,e.index)},[t.slots.default?t.slots.default({item:e.item,index:e.index,selectedItem:e.isSelected?e.item:null}):i.createVNode("span",null,[e.item[e.textField]])])}}),w2=i.defineComponent({name:"FXListGroupItem",props:{groupData:{type:Object,default:()=>({})},groupField:{type:String,default:""},groupValue:{type:String,default:""},index:{type:Number,default:0}},setup(e,t){return()=>i.createVNode("li",{class:"f-list-view-group-item"},[t.slots.default?t.slots.default({item:e.groupData,index:e.index}):i.createVNode("div",{class:"f-list-view-group-header"},[i.createVNode("i",{class:"fx-icon f-accordion-expand"},null),i.createVNode("span",null,[e.groupValue])])])}}),Dr=i.defineComponent({name:"FXListView",props:ci,emits:["clickItem"],setup(e,t){const{visualData:n,activeItemId:r,updateDataSource:u,activeRowById:o,clearSelection:a,toggleSelection:s,isSelected:l}=b2({data:e.data,idField:e.idField,group:e.group}),d=i.computed(()=>ke({"f-list-view":!0},e.customClass));function f(c,h){s(c),t.emit("clickItem",c,h)}return t.expose({updateDataSource:u,activeRowById:o,clearSelection:a}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{class:"f-list-view-content"},[i.createVNode("ul",{class:"f-listview-items"},[n.value.map((c,h)=>c.type===1?i.createVNode(w2,{key:`group_${c.groupValue}_${h}`,groupData:c.data,groupField:c.groupField,groupValue:c.groupValue,index:h},{default:t.slots.group}):i.createVNode(y2,{key:`${c.data[e.idField]}_${h}`,item:c.data,index:c.originalIndex,isActive:c.data[e.idField]===r.value,isSelected:l(c.data),itemClass:e.itemClass,textField:e.textField,onClickItem:f},{default:t.slots.content}))])])])}});Dr.install=e=>{e.component(Dr.name,Dr)};const Zl={content:{type:Object,required:!0},defaultExpanded:{type:Boolean,default:!0}},Oo=i.defineComponent({name:"FXAgentThinkingMessage",props:Zl,setup(e){const t=i.ref(e.defaultExpanded),n=i.ref({}),r=i.computed(()=>{var p;const h=(p=e.content)==null?void 0:p.streamStatus;return h==="end"||h===void 0}),u=i.computed(()=>{var p;const h=(p=e.content)==null?void 0:p.title;return h||(r.value?"思考过程":"正在思考...")}),o=i.computed(()=>{var h;return((h=e.content)==null?void 0:h.steps)??[]}),a=i.computed(()=>{var h,p;return o.value.length>0?"":((p=(h=e.content)==null?void 0:h.text)==null?void 0:p.trim())??""}),s=i.computed(()=>{var h,p;return o.value.length>0||!!a.value||(((p=(h=e.content)==null?void 0:h.sources)==null?void 0:p.length)??0)>0});i.watch(o,h=>{const p={};h.forEach((m,x)=>{p[x]=n.value[x]??!!m.detail}),n.value=p},{immediate:!0}),i.watch(r,h=>{h&&(t.value=!1)});const l=()=>{t.value=!t.value},d=h=>{n.value={...n.value,[h]:!n.value[h]}},f=h=>i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:h?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null),c=(h,p)=>{var v;const m=!!((v=h.detail)!=null&&v.trim()),x=n.value[p]??m;return i.createVNode("div",{class:"f-x-thinking-step",key:p},[i.createVNode("div",{class:"f-x-thinking-step-header",onClick:()=>m&&d(p)},[i.createVNode("span",{class:"f-x-thinking-step-dot","aria-hidden":!0},null),i.createVNode("span",{class:"f-x-thinking-step-summary"},[h.summary]),m?f(x):null]),m&&x?i.createVNode("div",{class:"f-x-thinking-step-detail"},[h.detail]):null])};return()=>{const h=e.content;if(!h)return null;const p={"f-x-thinking":!0,"is-pending":!r.value,"is-completed":r.value};return i.createVNode("div",{class:p},[i.createVNode("div",{class:"f-x-thinking-header",onClick:l},[r.value?null:i.createVNode(tn,{status:"Working",variant:"thinking"},null),i.createVNode("span",{class:"f-x-thinking-title"},[u.value]),s.value?f(t.value):null]),t.value&&s.value?i.createVNode("div",{class:"f-x-thinking-body"},[a.value?i.createVNode("div",{class:"f-x-thinking-text"},[a.value]):null,o.value.map(c),h.sources&&h.sources.length>0?i.createVNode("ul",{class:"f-x-thinking-sources"},[h.sources.map((m,x)=>i.createVNode("li",{key:x},[m]))]):null]):null])}}});Oo.install=e=>{e.component(Oo.name,Oo)};function x2(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function v2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function k2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const Lo=i.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>v2(e.content.media)),n=i.computed(()=>mn(k2(e.content.media)));async function r(u){u.preventDefault(),u.stopPropagation();const o=n.value;o&&await Br(o,e.content.name)}return()=>{const u=!!n.value;return i.createVNode("div",{class:"f-ec-attach-row"},[i.createVNode("a",{class:"f-ec-attach f-ec-attach--stretch",href:t.value,target:"_blank",rel:"noopener noreferrer"},[i.createVNode("span",{class:"f-ec-attach-icon","aria-hidden":!0},[i.createTextVNode("📎")]),i.createVNode("span",{class:"f-ec-attach-body"},[i.createVNode("span",{class:"f-ec-attach-name"},[e.content.name]),i.createVNode("span",{class:"f-ec-attach-meta"},[i.createVNode("span",{class:"f-ec-attach-cat"},[e.content.category]),i.createVNode("span",{class:"f-ec-attach-size"},[x2(e.content.size)])])])]),u?i.createVNode("button",{type:"button",class:"f-ec-attach-download-btn","aria-label":"下载附件",title:"下载",onClick:r},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}}});Lo.install=e=>{e.component(Lo.name,Lo)};const A2={0:"高",1:"中",2:"低"},Vo=i.defineComponent({name:"ErrorReminderMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content.errorLevel;return i.createVNode("div",{class:["f-ec-error",`f-ec-error--lvl-${t}`]},[i.createVNode("div",{class:"f-ec-error-head"},[i.createVNode("span",{class:"f-ec-error-badge"},[A2[t]]),i.createVNode("span",{class:"f-ec-error-label"},[i.createTextVNode("错误提醒")])]),i.createVNode("div",{class:"f-ec-error-text"},[e.content.errorText]),e.content.errorLink?i.createVNode("a",{class:"f-ec-error-link",href:e.content.errorLink,target:"_blank",rel:"noopener noreferrer"},[i.createTextVNode("查看详情")]):null])}}});Vo.install=e=>{e.component(Vo.name,Vo)};function C2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Yl=".f-chat-content-input-section";function _2(e,t){const n=(t??"").trim();return n||`Agent请求使用【${e.trim()||"该系统"}】凭证访问该系统,是否授权?`}const Ir=i.defineComponent({name:"FXCredentialAuthDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"凭证授权请求"},question:{type:String,default:""},systemName:{type:String,default:""},disabled:{type:Boolean,default:!1},onSelect:{type:Function,required:!0},onClose:{type:Function,default:void 0},teleportTo:{type:[String,Object],default:Yl}},setup(e){const t=i.computed(()=>_2(e.systemName,e.question));function n(u){e.disabled||e.onSelect(u)}const r=i.computed(()=>e.teleportTo??Yl);return()=>{if(!e.visible)return null;const u=i.createVNode("div",{class:"f-credential-auth-anchor f-credential-auth-anchor--overlay-input",role:"dialog","aria-modal":"true","aria-labelledby":"f-credential-auth-title"},[i.createVNode("div",{class:"f-credential-auth-dialog"},[i.createVNode("div",{id:"f-credential-auth-title",class:"f-credential-auth-dialog__title"},[e.title]),i.createVNode("div",{class:"f-credential-auth-dialog__body"},[t.value]),i.createVNode("div",{class:"f-credential-auth-dialog__actions"},[i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--primary","data-testid":"auth-per-access",disabled:e.disabled,onClick:()=>n("PER_ACCESS_YES")},[i.createTextVNode("临时授权一次")]),i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-session",disabled:e.disabled,onClick:()=>n("SESSION_YES")},[i.createTextVNode("授权整个会话")]),i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-no",disabled:e.disabled,onClick:()=>n("NO")},[i.createTextVNode("拒绝")])])])]);return r.value?i.createVNode(i.Teleport,{to:r.value},C2(u)?u:{default:()=>[u]}):u}}});Ir.install=e=>{e.component(Ir.name,Ir)};function E2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Vt="__hitl_other__";function di(e,t=120){return e?e.length>t?e.slice(0,t)+"...":e:""}function Yt(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"||t==="authorize"?t:"text"}function Kl(e){return e==="PER_ACCESS_YES"?"是(本次授权)":e==="SESSION_YES"?"是,当前会话后续不再询问":e==="NO"?"否":String(e??"")}const Po=i.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!0},pinned:{type:Boolean,default:!1},pinnedWidth:{type:String,default:void 0},pinnedInputHeight:{type:Number,default:0},pinnedBottom:{type:Number,default:36},teleportTo:{type:[String,Object],default:void 0},onSubmitAnswers:{type:Function,default:void 0},onSubmitAuthAnswer:{type:Function,default:void 0}},setup(e){const t=i.ref(!1),n=i.ref(0),r=i.ref({}),u=i.ref({}),o=i.computed(()=>t.value||e.disabled),a=i.computed(()=>{var C;return e.content.questions.length===1&&Yt((C=e.content.questions[0])==null?void 0:C.ui_type)==="authorize"&&!!e.content.credentialAuth}),s=i.ref(!1);i.watch(()=>[a.value,t.value,e.disabled],([C,S,T])=>{s.value=C&&!S&&!T},{immediate:!0});function l(C){var T;const S=e.content.questions[0];S&&(r.value={[S.id]:C},t.value=!0,s.value=!1,(T=e.onSubmitAuthAnswer)==null||T.call(e,{questionId:S.id,answer:C}))}function d(C){const S={},T={};for(const O of C){const P=Yt(O.ui_type);if(P==="confirm")S[O.id]=void 0;else if(P==="authorize")S[O.id]=void 0;else if(P==="text"||P==="select")S[O.id]=O.default_value??"";else if(P==="multi_select")S[O.id]=O.default_value?JSON.parse(O.default_value):[];else if(P==="form"){const U={};if(Array.isArray(O.fields))for(const L of O.fields)U[L.name]=L.default_value??"";S[O.id]=U}else S[O.id]=O.default_value??"";T[O.id]={active:!1,text:""}}r.value=S,u.value=T,n.value=0}i.watch(()=>e.content.questions,C=>{Array.isArray(C)&&C.length&&d(C)},{immediate:!0}),i.watch(()=>e.content.answers,C=>{if(!Array.isArray(C)||C.length===0)return;const S={...r.value},T={...u.value};for(const O of C){S[O.id]=O.answer;const P=e.content.questions.find(U=>U.id===O.id);P&&Yt(P.ui_type)==="select"&&typeof O.answer=="string"&&!(P.options??[]).some(R=>R.label===O.answer)&&O.answer!==""&&(T[O.id]={active:!0,text:O.answer},S[O.id]=Vt)}r.value=S,u.value=T,t.value=!0},{immediate:!0});const f=i.computed(()=>e.content.questions.length),c=i.computed(()=>{const C=e.content.questions;if(C.length===0)return null;const S=Math.max(0,Math.min(n.value,C.length-1));return C[S]}),h=i.computed(()=>n.value<=0),p=i.computed(()=>n.value>=f.value-1),m=i.computed(()=>{const C=c.value;return C?y(C):!0});function x(){e.required&&!m.value||p.value||(n.value+=1)}function v(){h.value||(n.value-=1)}function y(C){var O,P;const S=Yt(C.ui_type),T=r.value[C.id];if(S==="text"&&(typeof T!="string"||T.trim()==="")||S==="select"&&(typeof T!="string"||T.trim()===""||T===Vt&&(((P=(O=u.value[C.id])==null?void 0:O.text)==null?void 0:P.trim())??"")==="")||S==="confirm"&&typeof T!="boolean"||S==="multi_select"&&(!Array.isArray(T)||T.length===0))return!1;if(S==="form"){const U=C.fields??[],L=T;for(const R of U)if(R.required){const B=L[R.name];if(typeof B!="string"||B.trim()==="")return!1}}return!((S==="date"||S==="number")&&(typeof T!="string"||T.trim()===""))}const b=i.computed(()=>o.value?!1:e.content.questions.every(C=>y(C)));function g(C,S){r.value={...r.value,[C]:S}}function w(C,S,T){const O=r.value[C]??{};g(C,{...O,[S]:T})}function A(C){const S=Yt(C.ui_type);return S==="select"||S==="multi_select"}function N(C,S){var T;S===Vt?(u.value={...u.value,[C.id]:{...u.value[C.id],active:!0,text:((T=u.value[C.id])==null?void 0:T.text)??""}},g(C.id,Vt)):(u.value={...u.value,[C.id]:{active:!1,text:""}},g(C.id,S))}function F(C,S){const T=r.value[C.id]??[];T.includes(S)?g(C.id,T.filter(O=>O!==S)):g(C.id,[...T,S])}function _(){var S,T,O;if(!b.value)return;const C=[];for(const P of e.content.questions){const U=Yt(P.ui_type);let L=r.value[P.id];U==="select"&&L===Vt&&(L=((T=(S=u.value[P.id])==null?void 0:S.text)==null?void 0:T.trim())??""),U==="number"&&(L=Number(L)),C.push({id:P.id,answer:L})}t.value=!0,(O=e.onSubmitAnswers)==null||O.call(e,C)}function G(C,S,T){return i.createVNode("div",{class:"f-hitl-date-wrap"},[i.createVNode("input",{class:"f-hitl-input",type:"date",value:C,disabled:S,onInput:O=>T(O.target.value)},null)])}function $(C,S,T,O,P){const U=B=>{let Q=Number(C)||0;Q+=B,O!==void 0&&(Q=Math.max(O,Q)),P!==void 0&&(Q=Math.min(P,Q)),T(String(Q))},L=P!==void 0&&Number(C||0)>=P,R=O!==void 0&&Number(C||0)<=O;return i.createVNode("div",{class:"f-hitl-num-wrap"},[i.createVNode("input",{class:"f-hitl-input f-hitl-num-input",type:"number",value:C,min:O,max:P,disabled:S,onInput:B=>T(B.target.value)},null),i.createVNode("div",{class:"f-hitl-num-btns"},[i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:S||L,onClick:()=>U(1)},[i.createVNode("span",{class:"fx-icon fx-icon-foldup"},null)]),i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:S||R,onClick:()=>U(-1)},[i.createVNode("span",{class:"fx-icon fx-icon-expanddown"},null)])])])}function M(C,S,T,O){return i.createVNode("div",{key:C.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":T}],onClick:O},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[S+1]),i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[C.label]),C.description?i.createVNode("span",{class:"f-hitl-opt-row__desc",title:C.description},[di(C.description)]):null]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[T?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}function H(C,S){return i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),S])}function I(C,S,T){const O=r.value[C.id]??"",P=r.value[C.id]??[],U=u.value[C.id]??{active:!1,text:""},L=T==="single",R=L&&O===Vt||U.active,B=C.allow_other&&R,Q=le=>L?O===le.label&&!U.active:P.includes(le.label),re=le=>()=>{o.value||(L?N(C,le.label):F(C,le.label))},oe=()=>{if(!o.value)if(L)N(C,Vt);else{const le=U.text;U.active?(g(C.id,P.filter(he=>he!==le)),u.value={...u.value,[C.id]:{active:!1,text:""}}):(u.value={...u.value,[C.id]:{active:!0,text:U.text}},U.text&&!P.includes(U.text)&&g(C.id,[...P,U.text]))}},ce=le=>{const he=le.target.value;u.value={...u.value,[C.id]:{active:!0,text:he}},L?g(C.id,Vt):g(C.id,[...P.filter(Be=>Be!==U.text),he])};return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[S.map((le,he)=>M(le,he,Q(le),re(le))),C.allow_other?i.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":R}],onClick:oe},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[i.createTextVNode("...")]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[i.createTextVNode("其他")]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[R?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),B?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:U.text,placeholder:"请输入自定义内容",disabled:o.value,onInput:ce},null):null])}function X(C){const S=r.value[C.id]??{},T=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[T.map(O=>{const P=S[O.name]??"";return O.type==="select"?H(O,i.createVNode("div",{class:"f-hitl-select-group"},[(O.options??[]).map(U=>{const L=typeof U=="string"?U:U.label??"";return i.createVNode("button",{key:L,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":P===L}],disabled:o.value,onClick:()=>w(C.id,O.name,L)},[L])})])):O.type==="number"?H(O,$(P,o.value,U=>w(C.id,O.name,U),O.min,O.max)):O.type==="date"?H(O,G(P,o.value,U=>w(C.id,O.name,U))):H(O,i.createVNode("input",{class:"f-hitl-input",type:"text",value:P,placeholder:O.default_value??"请输入",disabled:o.value,onInput:U=>w(C.id,O.name,U.target.value)},null))})])])}function q(C){const S=Yt(C.ui_type);if(S==="text"){const T=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("input",{class:"f-hitl-input",type:"text",value:T,placeholder:C.placeholder??"请输入",disabled:o.value,onInput:O=>g(C.id,O.target.value)},null)])}if(S==="multi_select"){const T=Array.isArray(C.options)?C.options:[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[I(C,T,"multi")])}if(S==="form")return X(C);if(S==="select"){let T=Array.isArray(C.options)?C.options:[];return T.length===0&&(T=[{label:"暂无"}]),i.createVNode("div",{class:"f-hitl-field",key:C.id},[I(C,T,"single")])}if(S==="confirm"){const T=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":T===!0}],disabled:o.value,onClick:()=>g(C.id,!0)},[i.createTextVNode("是")]),i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":T===!1}],disabled:o.value,onClick:()=>g(C.id,!1)},[i.createTextVNode("否")])])])}if(S==="authorize")return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[Kl(r.value[C.id])])]);if(S==="date"){const T=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[G(T,o.value,O=>g(C.id,O))])}if(S==="number"){const T=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[$(T,o.value,O=>g(C.id,O),C.min,C.max)])}return i.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:C.id},[i.createVNode("div",{class:"f-hitl-unsupported"},[i.createTextVNode("暂不支持 ui_type「"),String(C.ui_type),i.createTextVNode("」,请升级前端。")])])}function D(C){const S=Yt(C.ui_type),T=(P,U,L)=>i.createVNode("input",{class:"f-hitl-input",type:P,value:U,readonly:!0,min:L==null?void 0:L.min,max:L==null?void 0:L.max},null);if(S==="text"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[T("text",P)])}if(S==="multi_select"){const P=r.value[C.id]??[],U=Array.isArray(C.options)?C.options:[],L=new Set(U.map(B=>B.label)),R=P.filter(B=>!L.has(B));return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[U.filter(B=>P.includes(B.label)).map(B=>i.createVNode("div",{class:"f-hitl-opt-row",key:B.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[B.label]),B.description?i.createVNode("span",{class:"f-hitl-opt-row__desc",title:B.description},[di(B.description)]):null])])),R.map(B=>i.createVNode("div",{class:"f-hitl-opt-row",key:B},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[B])])]))])])}if(S==="select"){const P=r.value[C.id]??"",U=u.value[C.id]??{active:!1,text:""},L=Array.isArray(C.options)?C.options:[],R=P===Vt||U.active;return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[R?i.createVNode("div",{class:"f-hitl-opt-row"},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[U.text||"其他"])])]):L.filter(B=>B.label===P).map(B=>i.createVNode("div",{class:"f-hitl-opt-row",key:B.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[B.label]),B.description?i.createVNode("span",{class:"f-hitl-opt-row__desc",title:B.description},[di(B.description)]):null])]))])])}if(S==="confirm"){const P=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn","f-hitl-cbtn--readonly"]},[P===!0?"是":"否"])])])}if(S==="authorize")return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[Kl(r.value[C.id])])]);if(S==="form"){const P=r.value[C.id]??{},U=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[U.map(L=>{const R=P[L.name]??"";let B;return L.type==="number"?B=T("number",R,{min:L.min,max:L.max}):L.type==="date"?B=T("date",R):B=T("text",R),H(L,B)})])])}if(S==="date"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[T("date",P)])}if(S==="number"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[T("number",P)])}const O=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[String(O??"")])])}function j(C){return i.createVNode("div",{class:"f-hitl-card__title-wrap"},[i.createVNode("span",{class:"f-hitl-card__title"},[C.question]),i.createVNode("span",{class:"f-hitl-card__subtitle"},[C.header])])}function z(){return f.value<=1?null:i.createVNode("div",{class:"f-hitl-pagination"},[i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:h.value,onClick:v},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-left"},null)]),i.createVNode("span",{class:"f-hitl-pagination__text"},[n.value+1,i.createTextVNode("/"),f.value]),i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:p.value,onClick:x},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-right"},null)])])}function Z(){const C=e.pinnedWidth?{width:`calc(${e.pinnedWidth} * 0.8)`,minWidth:"343px",maxWidth:"800px"}:void 0;return i.createVNode("div",{class:"f-hitl-card",style:C},[i.createVNode("div",{class:"f-hitl-submitted-flat"},[e.content.questions.map(S=>i.createVNode("div",{class:"f-hitl-submitted-item",key:S.id},[i.createVNode("div",{class:"f-hitl-card__header"},[j(S)]),i.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":A(S)}]},[D(S)])]))])])}function ue(){const C=c.value;if(!C)return null;const S=e.pinned?"f-hitl-card--pinned":"",T=e.pinned&&e.pinnedWidth?{width:e.pinnedWidth}:void 0,O=e.pinnedInputHeight??0,P=e.pinnedBottom??36,U=()=>i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"f-hitl-card__header"},[j(C),z()]),i.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":A(C)}]},[q(C)]),!o.value&&i.createVNode("div",{class:"f-hitl-card__footer"},[f.value>1&&!p.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:e.required&&!m.value,onClick:x},[i.createTextVNode("下一条")]),p.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:!b.value,onClick:_},[i.createTextVNode("提交")])])]);if(e.pinned){const L=i.createVNode("div",{class:"f-hitl-pinned-spacer","aria-hidden":"true"},[i.createVNode("div",{class:"f-hitl-card",style:{...T,marginBottom:`-${O}px`}},[U()])]);if(e.teleportTo){const B={...T,bottom:`${P}px`},Q=i.createVNode("div",{class:["f-hitl-card",S],style:B},[U()]);return i.createVNode(i.Fragment,null,[L,i.createVNode(i.Teleport,{to:e.teleportTo},E2(Q)?Q:{default:()=>[Q]})])}const R=i.createVNode("div",{class:["f-hitl-card",S],style:T},[U()]);return i.createVNode(i.Fragment,null,[L,R])}return i.createVNode("div",{class:["f-hitl-card",S],style:T},[U()])}return()=>{var C;if(a.value){const S=e.content.questions[0];return S?i.createVNode(i.Fragment,null,[i.createVNode(Ir,{visible:s.value,title:S.header??"凭证授权请求",question:S.question,systemName:((C=e.content.credentialAuth)==null?void 0:C.systemName)??"",disabled:o.value,teleportTo:".f-chat-content-input-section",onSelect:l},null)]):null}return o.value?Z():ue()}}});Po.install=e=>{e.component(Po.name,Po)};function S2(e,t){var r;const n=(r=e.pickActions)==null?void 0:r[t];return n||e.pickActionDefault}const Ro=i.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,r)=>{var u;S2(e.content,r),(u=e.onPick)==null||u.call(e,n)};return()=>i.createVNode("div",{class:"f-ec-recommend"},[e.content.title?i.createVNode("div",{class:"f-ec-recommend-title"},[e.content.title]):null,i.createVNode("div",{class:"f-ec-recommend-chips"},[e.content.suggestions.map((n,r)=>i.createVNode("button",{key:r,type:"button",class:"f-ec-recommend-chip",onClick:()=>t(n,r)},[n]))])])}});Ro.install=e=>{e.component(Ro.name,Ro)};const Mo=i.defineComponent({name:"LinkCardMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content;return i.createVNode("div",{class:"f-ec-linkcard"},[t.poster?i.createVNode("div",{class:"f-ec-linkcard-poster"},[i.createVNode("img",{src:t.poster,alt:""},null)]):null,i.createVNode("div",{class:"f-ec-linkcard-body"},[i.createVNode("a",{class:"f-ec-linkcard-title",href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title]),t.subtitle?i.createVNode("div",{class:"f-ec-linkcard-sub"},[t.subtitle]):null,t.relatedLinks&&t.relatedLinks.length>0?i.createVNode("div",{class:"f-ec-linkcard-related"},[i.createVNode("div",{class:"f-ec-linkcard-related-label"},[i.createTextVNode("相关阅读")]),i.createVNode("ul",null,[t.relatedLinks.map((n,r)=>i.createVNode("li",{key:r},[i.createVNode("a",{href:n.url,target:"_blank",rel:"noopener noreferrer"},[n.title])]))])]):null])])}}});Mo.install=e=>{e.component(Mo.name,Mo)};const Bo=i.defineComponent({name:"ReferenceSourcesMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-sources"},[i.createVNode("div",{class:"f-ec-sources-title"},[i.createTextVNode("引用来源")]),i.createVNode("ul",{class:"f-ec-sources-list"},[e.content.items.map((t,n)=>i.createVNode("li",{key:n},[i.createVNode("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title])]))])])}});Bo.install=e=>{e.component(Bo.name,Bo)};function Ql(e){const t=new Map;for(const n of e){const r=t.get(n.docId),u=typeof n.url=="string"&&n.url.trim()!==""?n.url.trim():void 0;r?(r.chunkCount+=1,r.contentIds.push(n.contentId),!r.url&&u&&(r.url=u)):t.set(n.docId,{key:n.docId,docName:n.docName,chunkCount:1,contentIds:[n.contentId],...u?{url:u}:{}})}return[...t.values()]}const zo=i.defineComponent({name:"FXKnowledgeTraceStrip",props:{content:{type:Object,required:!0}},emits:["open"],setup(e,{emit:t}){const n=i.ref(!1),r=i.computed(()=>Ql(e.content.chunks??[])),u=i.computed(()=>{var l;return((l=e.content.chunks)==null?void 0:l.length)??0}),o=()=>{t("open")},a=l=>{l.stopPropagation(),n.value=!n.value},s=(l,d)=>{l.stopPropagation();const f=typeof d=="string"?d.trim():"";!f||typeof window>"u"||window.open(f,"_blank","noopener,noreferrer")};return()=>u.value?i.createVNode("div",{class:"f-ec-knowledge-trace"},[i.createVNode("div",{class:"f-ec-knowledge-trace__header",onClick:o},[i.createVNode("span",{class:"f-ec-knowledge-trace__main"},[i.createVNode("svg",{class:"f-ec-knowledge-trace__icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.createVNode("circle",{cx:"12",cy:"12",r:"10"},null),i.createVNode("path",{d:"M12 16v-4M12 8h.01"},null)]),i.createVNode("span",null,[i.createTextVNode("知识溯源 · "),u.value,i.createTextVNode(" 条参考来源")])]),i.createVNode("button",{type:"button",class:"f-ec-knowledge-trace__toggle","aria-label":n.value?"收起原始文档":"展开原始文档",title:n.value?"收起原始文档":"展开原始文档","data-testid":"knowledge-trace-files-toggle",onClick:a},[i.createVNode("span",{class:["f-ec-knowledge-trace__toggle-icon",n.value&&"f-ec-knowledge-trace__toggle-icon--open"]},[i.createTextVNode("▼")])])]),n.value&&r.value.length>0?i.createVNode("div",{class:"f-ec-knowledge-trace__files"},[r.value.map(l=>i.createVNode("div",{key:l.key,class:"f-ec-knowledge-trace__file","data-testid":"knowledge-trace-source-file"},[i.createVNode("button",{type:"button",class:["f-ec-knowledge-trace__file-name",!l.url&&"f-ec-knowledge-trace__file-name--disabled"],title:l.docName,disabled:!l.url,"data-testid":"knowledge-trace-source-file-preview",onClick:d=>s(d,l.url)},[l.docName]),i.createVNode("span",{class:"f-ec-knowledge-trace__file-meta"},[l.chunkCount,i.createTextVNode(" 条切片")])]))]):null]):null}});function N2(e){return Number.isFinite(e)?Number(e).toFixed(4):""}const fi=i.defineComponent({name:"FXKnowledgeTracePanel",props:{chunks:{type:Array,default:()=>[]},isShow:{type:Boolean,default:!1},selectedContentId:{type:String,default:void 0}},emits:["update:isShow","close"],setup(e,{emit:t}){const n=i.ref({}),r=i.ref(null),u=()=>{t("update:isShow",!1),t("close")},o=l=>{n.value={...n.value,[l]:!n.value[l]}},a=l=>{const d=typeof l=="string"?l.trim():"";!d||typeof window>"u"||window.open(d,"_blank","noopener,noreferrer")},s=()=>{if(!e.isShow||!e.selectedContentId||!r.value)return;const l=typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e.selectedContentId):e.selectedContentId.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),d=r.value.querySelector(`[data-knowledge-trace-content-id="${l}"]`);d instanceof HTMLElement&&d.scrollIntoView({block:"nearest",behavior:"smooth"})};return i.watch(()=>[e.isShow,e.selectedContentId,e.chunks],()=>{!e.isShow||!e.selectedContentId||i.nextTick(()=>{s()})},{immediate:!0}),()=>{if(!e.isShow)return null;const l=e.chunks??[];return i.createVNode("aside",{class:"f-ec-knowledge-trace-panel","data-testid":"knowledge-trace-panel","aria-label":"参考来源"},[i.createVNode("div",{class:"f-ec-knowledge-trace-panel__header"},[i.createVNode("span",{class:"f-ec-knowledge-trace-panel__title"},[i.createTextVNode("参考来源 · "),l.length]),i.createVNode("button",{type:"button",class:"f-ec-knowledge-trace-panel__close","aria-label":"关闭",title:"关闭","data-testid":"knowledge-trace-panel-close",onClick:u},[i.createTextVNode("×")])]),i.createVNode("div",{class:"f-ec-knowledge-trace-panel__body",ref:r},[l.length===0?i.createVNode("div",{class:"f-ec-knowledge-trace-panel__empty"},[i.createTextVNode("暂无参考来源")]):l.map((d,f)=>{const c=d.contentId===e.selectedContentId,h=!!n.value[d.contentId],p=typeof d.score=="number"?N2(d.score):"",m=String(f+1),x=typeof d.url=="string"&&d.url.trim()!==""?d.url.trim():"";return i.createVNode("div",{key:d.contentId,class:["f-ec-knowledge-trace-panel__card",c&&"f-ec-knowledge-trace-panel__card--selected",h&&"f-ec-knowledge-trace-panel__card--expanded"],"data-knowledge-trace-content-id":d.contentId,"data-testid":"knowledge-trace-panel-card"},[i.createVNode("div",{class:["f-ec-knowledge-trace-panel__card-title",x&&"f-ec-knowledge-trace-panel__card-title--link"],title:d.docName,role:x?"link":void 0,tabindex:x?0:void 0,onClick:()=>a(x),onKeydown:v=>{x&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),a(x))}},[d.docName]),p?i.createVNode("div",{class:"f-ec-knowledge-trace-panel__card-meta"},[i.createVNode("span",null,null),i.createVNode("span",null,[p])]):null,i.createVNode("div",{class:["f-ec-knowledge-trace-panel__card-content",h&&"f-ec-knowledge-trace-panel__card-content--expanded"]},[d.content]),i.createVNode("div",{class:"f-ec-knowledge-trace-panel__card-footer"},[i.createVNode("button",{type:"button",class:"f-ec-knowledge-trace-panel__toggle",onClick:()=>o(d.contentId)},[h?"收起":"展开"]),i.createVNode("span",{class:"f-ec-knowledge-trace-panel__mark"},[m])])])})])])}}});zo.install=e=>{e.component(zo.name,zo),e.component(fi.name,fi)};const jo=i.defineComponent({name:"UnknownEnterpriseMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-unknown"},[i.createVNode("div",{class:"f-ec-unknown-title"},[i.createTextVNode("未知类型消息")]),e.content.wireType?i.createVNode("div",{class:"f-ec-unknown-wire"},[i.createTextVNode("wire type: "),e.content.wireType]):null,i.createVNode("div",{class:"f-ec-unknown-desc"},[e.content.hint??"客户端无法识别此消息类型,已按占位展示。"])])}});jo.install=e=>{e.component(jo.name,jo)},lr.install=e=>{e.component(lr.name,lr)};const F2={install(e){e.use(lt).use(cr).use(dr).use(mr).use(Fn).use(xr).use(vr).use(kr).use(Ar).use(xn).use(an).use(Dn).use(rn).use(Cr).use(_r).use(Er).use(Sr).use(Nr).use(Cn).use(_n).use(nn).use(Sn).use(Fr).use(Tr).use(Dr)}};V.FXAgentThinking=Oo,V.FXAppPreview=lt,V.FXAttachmentFile=Lo,V.FXAttachmentPreview=Nr,V.FXBubble=cr,V.FXBubbleAction=ju,V.FXCarousel=dr,V.FXCarouselItem=yo,V.FXChatPreview=mr,V.FXCoding=xr,V.FXConfirmDialog=Fn,V.FXCredentialAuthDialog=Ir,V.FXDynamicComponent=_n,V.FXErrorReminder=Vo,V.FXFileEmbeddedContent=Ri,V.FXFileOperation=vr,V.FXGenerateProcess=kr,V.FXHistory=Ar,V.FXHitlQuestion=Po,V.FXInputRecommend=Ro,V.FXKnowledgeTracePanel=fi,V.FXKnowledgeTraceStrip=zo,V.FXLinkCard=Mo,V.FXListView=Dr,V.FXMarkdown=xn,V.FXMarkdownPreview=an,V.FXNav=Fr,V.FXPopover=nn,V.FXPopoverDirective=Cs,V.FXPrompt=Do,V.FXPrompts=Dn,V.FXReferenceSources=Bo,V.FXSearchBox=Tr,V.FXSearchBoxContainer=Io,V.FXSplitter=Sn,V.FXSplitterPane=fr,V.FXStartedTodo=rn,V.FXSuggestion=Cr,V.FXTodo=_r,V.FXTodoListItemView=bo,V.FXTodoListView=sr,V.FXToolUse=En,V.FXToolUseBatch=Er,V.FXUnknownEnterprise=jo,V.FXUserAuth=lr,V.FXWelcome=Sr,V.FXWidgetContainer=Cn,V.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=ii,V.PREVIEW_BRIDGE_SOURCE=oi,V.PREVIEW_BRIDGE_VERSION=ui,V.agentThinkingProps=Zl,V.aggregateKnowledgeTraceByDoc=Ql,V.appPreviewMessageProps=ve,V.attachmentPreviewProps=Ul,V.bubbleActionProps=Ns,V.bubbleProps=Mr,V.carouselItemProps=Ts,V.carouselProps=Fs,V.chatHistoryProps=Rl,V.chatPreviewProps=Is,V.clonePreviewPayloadForPostMessage=gl,V.closeFXConfirmDialog=b1,V.codingMessageProps=Ol,V.confirmDialogProps=kl,V.createPreviewIframeSdk=s1,V.default=F2,V.extractFileIdFromRuntimeDownloadUrl=Ei,V.fileEmbeddedContentProps=Li,V.fileOperationMessageProps=Vl,V.generateProcessProps=Pl,V.getCustomClass=ke,V.getCustomStyle=Ee,V.getDynamicCompState=om,V.getDynamicComponentRegistryDebugSnapshot=Mu,V.invokeAgentWorkbenchSdkApi=a1,V.isImageUrl=Fi,V.isPreviewBridgeAssistantMessage=yl,V.listViewProps=ci,V.loadDynamicComponent=ys,V.markdownMessageProps=Ga,V.markdownPreviewProps=Os,V.navProps=Xl,V.normalizeDynamicComponentRegisterClaim=De,V.openFXConfirmDialog=g1,V.overflowTooltipDirective=Oi,V.peekDynamicComponentRegisterBootstrapId=tm,V.popoverProps=vs,V.postAssistantToPreviewIframe=wl,V.postDynamicComponentAssistantMessage=am,V.previewLayoutBridge=d1,V.promptProps=zl,V.promptsProps=Ml,V.registerPreviewChromeSdk=c1,V.renderIconNode=zr,V.renderNode=$n,V.resolveHrefForAttachmentDownload=mn,V.resolveRuntimeAttachmentDownloadUrl=Yo,V.searchBoxContainerProps=ql,V.searchBoxProps=Gl,V.splitterProps=Ds,V.startedTodoProps=_s,V.subscribeAssistantInPreviewIframe=xl,V.suggestionProps=jl,V.todoListItemProps=Ss,V.todoListViewProps=Es,V.todoProps=Hl,V.triggerAttachmentDownload=Br,V.unloadDynamicComponent=ws,V.useAttachment=Vi,V.useSequentialStreaming=jr,V.useStreamingOutput=Ti,V.useTimer=Ko,V.useToolIcon=Qo,V.welcomeProps=$l,V.widgetContainerProps=fs,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
691
|
+
`},$f=Zb(ey)(jf),ty={config:Qb},ry=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduceRight(function(a,l){return l(a)},i)}};function Uf(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Uf(e[r],t[r]))}),Vf(Vf({},e),t)}var ny={type:"cancelation",msg:"operation is manually canceled"};function vc(e){var t=!1,r=new Promise(function(n,i){e.then(function(a){return t?i(ny):n(a)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var ay=["monaco"],iy=Xb.create({config:Yb,isInitialized:!1,resolve:null,reject:null,monaco:null}),Wf=Nb(iy,2),Oi=Wf[0],Es=Wf[1];function oy(e){var t=ty.config(e),r=t.monaco,n=Db(t,ay);Es(function(i){return{config:Uf(i.config,n),monaco:r}})}function sy(){var e=Oi(function(t){var r=t.monaco,n=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:n,resolve:i}});if(!e.isInitialized){if(Es({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),vc(xc);if(window.monaco&&window.monaco.editor)return Gf(window.monaco),e.resolve(window.monaco),vc(xc);ry(ly,cy)(dy)}return vc(xc)}function ly(e){return document.body.appendChild(e)}function uy(e){var t=document.createElement("script");return e&&(t.src=e),t}function cy(e){var t=Oi(function(n){var i=n.config,a=n.reject;return{config:i,reject:a}}),r=uy("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function dy(){var e=Oi(function(r){var n=r.config,i=r.resolve,a=r.reject;return{config:n,resolve:i,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;Gf(n),e.resolve(n)},function(r){e.reject(r)})}function Gf(e){Oi().monaco||Es({monaco:e})}function fy(){return Oi(function(e){var t=e.monaco;return t})}var xc=new Promise(function(e,t){return Es({resolve:e,reject:t})}),hy={config:oy,init:sy,__getMonacoInstance:fy};const Xf={content:{type:Object,required:!0}},Yf=20,my=16,Oa=180;function py(e){typeof requestIdleCallback<"u"?requestIdleCallback(e,{timeout:500}):setTimeout(e,0)}const Li=c.defineComponent({name:"FXCodingMessage",props:Xf,setup(e){const t=c.ref(!0),r=c.ref(!1),n=c.ref(null),i=c.ref(null),a=c.ref(Oa),l=c.ref(!1);function d(){t.value=!t.value}function f(){var E,D,B,R;const C=(E=e.content)==null?void 0:E.code;if(!C)return Oa;const F=i.value;let z;if(F!=null&&F.getOriginalEditor&&(F!=null&&F.getModifiedEditor)){const W=((D=F.getOriginalEditor().getModel())==null?void 0:D.getLineCount())??0,Y=((B=F.getModifiedEditor().getModel())==null?void 0:B.getLineCount())??0;z=W+Y}else if(F!=null&&F.getModel)z=((R=F.getModel())==null?void 0:R.getLineCount())??0;else{const{value:W,originalValue:Y}=C,q=(W||"").split(`
|
|
692
|
+
`).length,pe=Y?Y.split(`
|
|
693
|
+
`).length:0;z=Y?pe+q:q}return my+z*Yf}const p=c.computed(()=>(i.value,f()>Oa));function g(){r.value=!r.value,a.value=r.value?f():Oa,x()}function m(){if(!i.value)return;i.value=null;const _=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(_,{timeout:100}):setTimeout(_,0)}function x(){if(l.value)return;const C=n.value,_=i.value;if(!C||!(_!=null&&_.layout))return;const F=C.clientWidth||C.offsetWidth,z=a.value;requestAnimationFrame(()=>{var E,D;l.value||!i.value||(D=(E=i.value)==null?void 0:E.layout)==null||D.call(E,{width:F,height:z})})}function S(){var C;l.value||!n.value||!((C=e.content)!=null&&C.code)||hy.init().then(_=>{var B;if(l.value||!n.value||!((B=e.content)!=null&&B.code))return;const{value:F,originalValue:z,language:E="typescript"}=e.content.code,D={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:Yf,padding:{top:8,bottom:8}};if(z){const R=_.editor.createDiffEditor(n.value,{...D,renderSideBySide:!1,renderOverviewRuler:!1});R.setModel({original:_.editor.createModel(z,E),modified:_.editor.createModel(F,E)}),R.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),R.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),c.nextTick(()=>{var Y;if(l.value)return;const W=(Y=R.getContainerDomNode)==null?void 0:Y.call(R);if(W){const q=W.querySelector('.diff-editor-cell.original, [class*="original"]');q&&(q.style.display="none")}}),i.value=R}else{const R=_.editor.create(n.value,{value:F,language:E,...D});i.value=R}a.value=Oa,c.nextTick(()=>x())})}return c.onMounted(()=>{py(()=>{l.value||!n.value||S()})}),c.watch(t,C=>{C&&!l.value&&c.nextTick(()=>x())}),c.onBeforeUnmount(()=>{l.value=!0,m()}),c.watch(()=>{var C,_;return(_=(C=e.content)==null?void 0:C.code)==null?void 0:_.value},()=>{l.value||(r.value?a.value=f():a.value=Oa,x())}),()=>{const C=e.content;if(!C)return null;const{message:_,fileIcon:F,fileName:z,code:E}=C;return c.createVNode("div",{class:"f-chat-message-coding"},[c.createVNode("div",{class:"f-chat-coding-message"},[_]),c.createVNode("div",{class:"f-chat-coding-card"},[c.createVNode("div",{class:"f-chat-coding-header",onClick:d,role:"button",tabindex:0,onKeydown:D=>D.key==="Enter"&&d()},[c.createVNode("span",{class:"f-chat-coding-header-icon-slot"},[c.createVNode("span",{class:"f-chat-coding-header-icon"},[c.createVNode("img",{src:F,alt:"",onError:D=>{var B;D.target.style.display="none",(B=D.target.parentElement)==null||B.classList.add("icon-error")}},null),c.createVNode("span",{class:"f-chat-coding-header-icon-fallback"},[c.createTextVNode("📄")])]),c.createVNode("span",{class:"f-chat-coding-header-expand"},[c.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),c.createVNode("span",{class:"f-chat-coding-header-filename"},[z]),c.createVNode("span",{class:"f-chat-coding-header-stats"},[c.createVNode("span",{class:"f-chat-coding-stat-add"},[c.createTextVNode("+"),E.addedLines]),c.createVNode("span",{class:"f-chat-coding-stat-del"},[c.createTextVNode("-"),E.deletedLines])])]),c.createVNode("div",{style:{display:t.value?"block":"none"}},[c.createVNode("div",{ref:n,class:"f-chat-coding-editor",style:{height:`${a.value}px`}},null),p.value&&c.createVNode("button",{type:"button",class:"f-chat-coding-expand-btn",onClick:g,"aria-label":r.value?"收起代码":"展开代码",title:r.value?"收起代码":"展开代码"},[c.createVNode("i",{class:["fx-icon fx-icon-expanddown",r.value&&"f-chat-coding-expand-icon-up"]},null)])])])])}}});Li.install=e=>{e.component(Li.name,Li)};const Zf={content:{type:Object,required:!0}};function gy(e){return"file"in e&&"path"in e}const Ri=c.defineComponent({name:"FileOperationMessage",props:Zf,setup(e){const t=c.ref(!0),r=c.ref({}),n=c.computed(()=>{var f;return!!((f=e.content)!=null&&f.summary)}),i=c.computed(()=>{var p;const f=(p=e.content)==null?void 0:p.summary;return f?`浏览了 ${f.explored} 个文件并查询了 ${f.searched} 个文件`:""});function a(){t.value=!t.value}function l(f){r.value={...r.value,[f]:!r.value[f]}}function d(f){return r.value[f]??!1}return()=>{const f=e.content;if(!f)return null;const{summary:p,operations:g}=f,m=!n.value||t.value;return c.createVNode("div",{class:"f-chat-message-file-operation"},[p&&c.createVNode("div",{class:"f-chat-file-op-summary",onClick:a,role:"button",tabindex:0,onKeydown:x=>x.key==="Enter"&&a()},[c.createVNode("span",{class:"f-chat-file-op-summary-inner"},[c.createVNode("span",{class:"f-chat-file-op-summary-text"},[i.value]),c.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[c.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])])]),m&&c.createVNode("div",{class:"f-chat-file-op-operations"},[g.map((x,S)=>{var C,_,F,z;return c.createVNode("div",{key:S,class:"f-chat-file-op-operation"},[c.createVNode("div",c.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":x.type==="Read","has-details":!!((C=x.details)!=null&&C.length)}],onClick:()=>{var E;return((E=x.details)==null?void 0:E.length)&&l(S)}},(_=x.details)!=null&&_.length?{role:"button",tabIndex:0}:{},{onKeydown:E=>{var D;return((D=x.details)==null?void 0:D.length)&&E.key==="Enter"&&l(S)}}),[c.createVNode("span",{class:"f-chat-file-op-type"},[x.type]),c.createVNode("span",{class:"f-chat-file-op-message-wrap"},[c.createVNode("span",{class:"f-chat-file-op-message"},[x.message]),(F=x.details)!=null&&F.length?c.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:d(S)}]},[c.createVNode("i",{class:d(S)?"fx-icon fx-icon-foldu":"fx-icon pfx-icon-expanddown"},null)]):null])]),((z=x.details)==null?void 0:z.length)&&d(S)&&c.createVNode("div",{class:"f-chat-file-op-details"},[x.details.map((E,D)=>gy(E)?c.createVNode("div",{key:D,class:"f-chat-file-op-detail-file"},[c.createVNode("span",{class:"f-chat-file-op-file-icon"},[c.createVNode("img",{src:E.icon,alt:"",onError:B=>{const R=B.target;R.style.display="none";const W=R.parentElement;W&&W.classList.add("icon-error")}},null),c.createVNode("span",{class:"f-chat-file-op-file-icon-fallback"},[c.createTextVNode("📄")])]),c.createVNode("span",{class:"f-chat-file-op-file-name"},[E.file]),c.createVNode("span",{class:"f-chat-file-op-file-path",title:E.path},[E.path])]):c.createVNode("div",{key:D,class:"f-chat-file-op-detail-text"},[c.createVNode("div",{class:"f-chat-file-op-detail-title"},[E.title]),c.createVNode("div",{class:"f-chat-file-op-detail-content"},[E.text])]))])])})])])}}});Ri.install=e=>{e.component(Ri.name,Ri)};const Kf={visible:{type:Boolean,default:!0},description:[String,Object],progress:{type:Number,default:0},showProgress:{type:Boolean,default:!0},icon:{type:[String,Object],default:""},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},by="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='60px'%20height='60px'%20viewBox='0%200%2060%2060'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e智能logo60px%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%231EBBC6'%20offset='58.0673923%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cpath%20d='M25.1971977,0%20L45.8523137,11.3712178%20L45.8523137,37.6155801%20L44.4946453,38.9692599%20L24.623,28.022%20L24.6233274,49.9395377%20L21.4535582,49.9395377%20L2.72549351,39.5965647%20L0,34.4406135%20L0,12.8076673%20L3.70534859,10.5019677%20L20.556,20.546%20L20.5567534,0.161454345%20L25.1971977,0%20Z%20M20.7578212,28.1498874%20L5.81325199,36.7628182%20L20.7578212,45.0027895%20L20.7578212,28.1498874%20Z%20M41.8027832,15.9256338%20L26.7716137,24.6706076%20L41.8027832,32.9879669%20L41.8027832,15.9256338%20Z%20M4.06159924,15.4742393%20L4.06159924,32.9879669%20L19.1488772,24.4568004%20L4.06159924,15.4742393%20Z%20M24.6233274,4.32908173%20L24.6233274,21.2862528%20L39.8727429,12.4882393%20L24.6233274,4.32908173%20Z'%20id='path-2'%3e%3c/path%3e%3clinearGradient%20x1='81.0966666%25'%20y1='38.5584607%25'%20x2='28.8545509%25'%20y2='61.9626707%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-5'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='44.8152906%25'%20y1='77.6521765%25'%20x2='44.8152906%25'%20y2='3.26462903%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-7'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='3.93796935%25'%20y1='32.607826%25'%20x2='78.9687461%25'%20y2='60.0462823%25'%20id='linearGradient-8'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-9'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='56.0769337%25'%20y1='45.0797149%25'%20x2='24.9463054%25'%20y2='71.1433818%25'%20id='linearGradient-10'%3e%3cstop%20stop-color='%23159BD7'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='10.434388%25'%20y1='68.063656%25'%20x2='86.6988821%25'%20y2='30.8651063%25'%20id='linearGradient-11'%3e%3cstop%20stop-color='%2321C6C1'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-12'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='生成过程'%20transform='translate(-766,%20-1268)'%3e%3cg%20id='编组-7'%20transform='translate(321,%20699)'%3e%3cg%20id='编组-5'%20transform='translate(247,%20488)'%3e%3cg%20id='智能logo60px'%20transform='translate(198,%2081)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='60'%20height='60'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.8571,%200.8571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='58.2857143'%20height='58.2857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(3.4286,%201.7143)'%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L27.3406238,30.8038254%20L27.3409512,52.7213631%20L24.171182,52.7213631%20L5.44311735,42.3783901%20L2.71762384,37.2224388%20L2.71762384,15.5894926%20L6.42297243,13.283793%20L23.2736238,23.3278254%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M23.4754451,30.9317128%20L8.53087583,39.5446435%20L23.4754451,47.7846148%20L23.4754451,30.9317128%20Z%20M44.520407,18.7074592%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.520407,18.7074592%20Z%20M6.77922307,18.2560647%20L6.77922307,35.7697922%20L21.866501,27.2386257%20L6.77922307,18.2560647%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(2.7176,%202.7818)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='蒙版'%20fill='url(%23linearGradient-1)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cpolygon%20id='路径-2'%20fill='url(%23linearGradient-4)'%20filter='url(%23filter-5)'%20mask='url(%23mask-3)'%20points='14.177196%2023.2632694%2022.5796859%2023.2632694%2023.4218687%2027.5957059%209.52757789%2036.9780352%203.7254788%2029.0812693'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='23.4218687%2022.4125055%2027.1161878%2015.1091341%2027.8042533%206.35665145%2018.1506617%205.88610282%2018.8417696%2016.8706238%2022.5796859%2022.4125055'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='33.5501273%2024.6706076%2024.403058%2024.9983902%2024.403058%2027.5289361%2028.4733448%2033.3539069%2036.4355638%2036.3335669%2041.6970622%2028.387534'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L23.2743772,28.5628437%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L28.3053772,23.5108254%20L28.3061985,25.7112082%20L30.1053772,27.0928254%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.5203772,18.7198254%20L45.4350062,17.1793767%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='22.5927693%2026.8440709%2023.6315003%2030.8033921%208.53087583%2039.5446435%207.30516741%2035.4601402'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M25.4312165,33.1398658%20C28.857043,33.1398658%2031.634224,30.3626848%2031.634224,26.9368583%20C31.634224,23.5110318%2028.857043,20.7338508%2025.4312165,20.7338508%20C22.00539,20.7338508%2019.228209,23.5110318%2019.228209,26.9368583%20C19.228209,30.3626848%2022.00539,33.1398658%2025.4312165,33.1398658%20Z%20M46.5950591,20.103577%20C49.2645342,20.103577%2051.4285714,17.9395398%2051.4285714,15.2700646%20C51.4285714,12.6005895%2049.2645342,10.4365523%2046.5950591,10.4365523%20C43.9255839,10.4365523%2041.7615467,12.6005895%2041.7615467,15.2700646%20C41.7615467,17.9395398%2043.9255839,20.103577%2046.5950591,20.103577%20Z%20M25.4312165,54.9048659%20C28.1006917,54.9048659%2030.2647289,52.7408287%2030.2647289,50.0713536%20C30.2647289,47.4018784%2028.1006917,45.2378412%2025.4312165,45.2378412%20C22.7617413,45.2378412%2020.5977042,47.4018784%2020.5977042,50.0713536%20C20.5977042,52.7408287%2022.7617413,54.9048659%2025.4312165,54.9048659%20Z%20M4.83351235,43.462539%20C7.50298751,43.462539%209.6670247,41.2985018%209.6670247,38.6290267%20C9.6670247,35.9595515%207.50298751,33.7955143%204.83351235,33.7955143%20C2.16403719,33.7955143%200,35.9595515%200,38.6290267%20C0,41.2985018%202.16403719,43.462539%204.83351235,43.462539%20Z%20M25.4312165,8.37808808%20C27.7447616,8.37808808%2029.6202605,6.50258918%2029.6202605,4.18904404%20C29.6202605,1.8754989%2027.7447616,0%2025.4312165,0%20C23.1176714,0%2021.2421725,1.8754989%2021.2421725,4.18904404%20C21.2421725,6.50258918%2023.1176714,8.37808808%2025.4312165,8.37808808%20Z%20M46.5950591,43.3044363%20C48.9086042,43.3044363%2050.7841031,41.4289374%2050.7841031,39.1153922%20C50.7841031,36.8018471%2048.9086042,34.9263482%2046.5950591,34.9263482%20C44.2815139,34.9263482%2042.406015,36.8018471%2042.406015,39.1153922%20C42.406015,41.4289374%2044.2815139,43.3044363%2046.5950591,43.3044363%20Z%20M4.83351235,18.3420872%20C7.14705749,18.3420872%209.02255639,16.4665883%209.02255639,14.1530432%20C9.02255639,11.8394981%207.14705749,9.96399915%204.83351235,9.96399915%20C2.51996721,9.96399915%200.644468314,11.8394981%200.644468314,14.1530432%20C0.644468314,16.4665883%202.51996721,18.3420872%204.83351235,18.3420872%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Pi=c.defineComponent({name:"FXGenerateProcess",props:Kf,emits:["closed"],setup(e,t){const r=c.computed(()=>{const p={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return Ut(p,e.customClass)}),n=c.computed(()=>n0({},e.customStyle));function i(){var p,g;return t.slots.icon?t.slots.icon():c.createVNode("div",{class:["fx-generate-process--icon",(p=e.classNames)==null?void 0:p.icon],style:(g=e.styles)==null?void 0:g.icon},[e.icon?uo(e.icon):c.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:by},null)])}function a(){var p,g;return e.description&&c.createVNode("p",{class:["fx-generate-process--description",(p=e.classNames)==null?void 0:p.description],style:(g=e.styles)==null?void 0:g.description},[e.description])}function l(){var p,g;return e.progress>0&&c.createVNode("div",{class:["fx-generate-process--progress-text",(p=e.classNames)==null?void 0:p["progress-text"]],style:(g=e.styles)==null?void 0:g["progress-text"]},[e.progress,c.createTextVNode("%")])}function d(){return c.createVNode("div",{class:"fx-generate-process--mask",onClick:p=>{p.stopPropagation()}},null)}function f(p=()=>{}){t.emit("closed",{callback:p})}return c.watch(()=>e.visible,p=>{p||f()}),t.expose({close:f}),()=>{var p,g;return c.createVNode(c.Fragment,null,[e.visible&&d(),e.visible&&c.createVNode("div",{class:r.value,style:n.value},[i(),!e.showProgress&&a(),e.showProgress&&c.createVNode("div",{class:["fx-generate-process--progress-bar",(p=e.classNames)==null?void 0:p["progress-bar"]],style:(g=e.styles)==null?void 0:g["progress-bar"]},[c.createVNode("div",{class:"fx-generate-process--progress-fill",style:{width:`${e.progress}%`}},null),!e.description&&l()]),e.description&&e.progress>0&&c.createVNode("div",{class:"fx-generate-process--progress"},[a(),c.createTextVNode(" "),l()])])])}}});Pi.install=e=>{e.component(Pi.name,Pi)};const Qf={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},yy=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],Vi=c.defineComponent({name:"FXChatHistory",props:Qf,emits:["itemClick"],setup(e,{emit:t}){const r=l=>{const d=new Date(l),f=new Date;return d.getDate()===f.getDate()&&d.getMonth()===f.getMonth()&&d.getFullYear()===f.getFullYear()},n=l=>{const d=new Date(l),f=new Date;return f.setDate(f.getDate()-7),d>=f&&!r(l)},i=c.computed(()=>{var f;const l={today:[],week:[],older:[]};(f=e.items)==null||f.forEach(p=>{r(p.timestamp)?l.today.push(p):n(p.timestamp)?l.week.push(p):l.older.push(p)});const d=(p,g)=>g.timestamp-p.timestamp;return l.today.sort(d).length||l.week.sort(d).length||l.older.sort(d).length?{today:l.today.sort(d),week:l.week.sort(d),older:l.older.sort(d)}:null}),a=(l,d)=>d.length>0&&c.createVNode("div",{class:"f-chat-history-section"},[c.createVNode("span",{class:"f-chat-history-section-header"},[l]),c.createVNode("div",{class:"d-flex flex-column"},[d.map(f=>c.createVNode("div",{key:f.id,class:"f-chat-history-item",onClick:()=>t("itemClick",f)},[c.createVNode("span",{class:"f-chat-history-item-title"},[f.title])]))])]);return()=>c.createVNode("div",{class:"f-chat-history-manager"},[c.createVNode("div",{class:"f-chat-history-manager-scroll"},[i.value&&yy.map(l=>a(l.label,i.value[l.key]))])])}});Vi.install=e=>{e.component(Vi.name,Vi)};const Jf={items:{type:Array,default:()=>[]},title:{type:[String,Object],default:""},vertical:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},gap:{type:[String,Number],default:12},fadeIn:{type:Boolean,default:!1},fadeInLeft:{type:Boolean,default:!1},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}};var eh=(e=>(e.standardFeatureCard="standard-feature-card",e.primaryFeatureCard="primary-feature-card",e.compactFeatureCard="compact-feature-card",e.standardQuestionItem="standard-question-item",e.functionEntryItem="function-entry-item",e.defaultTextItem="default-text-item",e.hasNestEntryItem="has-nest-entry-item",e.likeButtonEntryItem="like-button-entry-item",e.none="",e))(eh||{});const th={id:{type:[String,Number],default:""},icon:{type:[String,Object],default:""},label:{type:[String,Object],default:""},description:{type:[String,Object],default:""},badge:{type:[String,Object],default:""},disabled:{type:Boolean,default:!1},children:{type:Array,default:()=>[]},styles:{type:Object},classNames:{type:Object},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},showType:{type:String,default:eh.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},Ds=c.defineComponent({name:"FPrompt",props:th,setup(e){const t=c.computed(()=>!e.id&&e.children&&e.children.length>0),r=c.computed(()=>{var x;let m={"fx-prompt--item-wrapper":!0,"fx-prompt--item-disabled":e.disabled,"fx-prompt--item-has-nest":e.id&&e.children&&e.children.length>0};return m=Ut(m,(x=e.classNames)==null?void 0:x.item),Ut(m,e.customClass)}),n=c.computed(()=>{let m={"fx-prompt--item":!0};return m[`fx-prompt--${e.showType||"none"}`]=!0,m}),i=c.computed(()=>{var x;const m=n0({},(x=e.styles)==null?void 0:x.item);return n0(m,e.customStyle)}),a=()=>{var m,x;return e.icon?c.createVNode("div",{class:["fx-prompt--item-icon",(m=e.classNames)==null?void 0:m.icon],style:(x=e.styles)==null?void 0:x.icon},[uo(e.icon)]):null},l=()=>{var m,x;return e.label?c.createVNode("h6",{class:["fx-prompt--item-label",(m=e.classNames)==null?void 0:m.label],style:(x=e.styles)==null?void 0:x.label},[Ja(e.label)]):null};function d(){var x;const m={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(m["badge-default"]=!0),Ut(m,(x=e.classNames)==null?void 0:x.badge)}const f=()=>{var m;return e.badge?c.createVNode("span",{class:d(),style:(m=e.styles)==null?void 0:m.badge},[Ja(e.badge)]):null},p=()=>{var m,x;return e.description?c.createVNode("p",{class:["fx-prompt--item-description",(m=e.classNames)==null?void 0:m.description],style:(x=e.styles)==null?void 0:x.description},[Ja(e.description)]):null},g=()=>{var m,x,S,C;return!e.children||e.children.length===0?null:c.createVNode(La,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(m=e.classNames)==null?void 0:m.subItems,customStyle:(x=e.styles)==null?void 0:x.subItems,styles:{item:((S=e.styles)==null?void 0:S.subItem)??{}},classNames:{item:((C=e.classNames)==null?void 0:C.subItem)??""}},null)};return()=>{var m,x;return c.createVNode("div",{class:r.value,style:i.value,onClick:e.onClick},[t.value?g():c.createVNode("div",{class:n.value},[a(),f(),c.createVNode("div",{class:["fx-prompt--item-content",(m=e.classNames)==null?void 0:m.itemContent],style:(x=e.styles)==null?void 0:x.itemContent},[l(),p(),g()])])])}}}),La=c.defineComponent({name:"FXPrompts",props:Jf,emits:["item-click"],setup(e,t){const r=c.computed(()=>{var g;let p={"fx-prompts":!0,"fx-prompts--fade-in":e.fadeIn,"fx-prompts--fade-in-left":e.fadeInLeft};return p=Ut(p,e.customClass),p=Ut(p,(g=e.classNames)==null?void 0:g.root),p});function n(p=null){var m;let g={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return g=Ut(g,(m=e.classNames)==null?void 0:m.items),g=Ut(g,p==null?void 0:p.customClass),g}function i(p=null){var m;let g={};return(e.gap||e.gap===0)&&(g.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),g=n0(g,(m=e.styles)==null?void 0:m.items),g=n0(g,p==null?void 0:p.customStyle),g}const a=(p,g)=>{g.disabled||g.children&&g.children.length>0||t.emit("item-click",p,g)},l=p=>{var g,m;return p!=null&&p.title?c.createVNode("h5",{class:["fx-prompts--title",(g=e.classNames)==null?void 0:g.title],style:(m=e.styles)==null?void 0:m.title},[Ja(p==null?void 0:p.title)]):null};function d(p){return!p.items||p.items.length===0?null:c.createVNode("div",{class:n(p),style:i(p)},[p.items.map((g,m)=>c.createVNode(Ds,{key:g.id||`key_${m}`,id:g.id,icon:g.icon,label:g.label,description:g.description,disabled:g.disabled,children:g.children,styles:g.styles||e.styles,classNames:g.classNames||e.classNames,showType:g.showType,customClass:g.customClass,customStyle:g.customStyle,gap:g.gap,badge:g.badge,onClick:x=>a(x,g)},null))])}function f(){return t.slots.footer?t.slots.footer():null}return()=>{var p;return c.createVNode("div",{class:r.value,style:(p=e.styles)==null?void 0:p.root},[t.slots.title&&t.slots.title(),l(e),t.slots.default&&t.slots.default(),d(e),f()])}}});La.install=e=>{e.component(La.name,La),e.component(Ds.name,Ds)};const rh={items:{type:Array,default:()=>[]},height:{type:Number,default:200},title:{type:[String,Object],default:"推荐操作"},prompt:{type:[String,Object],default:"输入@获取推荐操作"},promptChar:{type:String,default:"@"},promptAgentName:{type:String,default:"AI助理"}},Hi=c.defineComponent({name:"FXSuggestion",props:rh,setup(e,t){const r=c.ref(null),n=c.ref(!1),i=c.ref(!1),a=c.ref({top:0,left:0,height:0}),l=c.ref(-1),d=c.ref(""),f=c.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),p=c.computed(()=>{var z;return(((z=e.items)==null?void 0:z.length)??0)===0}),g=()=>{var pe;if(!r.value||p.value)return;if((((pe=r.value.textContent)==null?void 0:pe.trim())||"")===""){r.value.textContent="",r.value.innerHTML="",_();return}const E=window.getSelection();if(!E||E.rangeCount===0)return;const D=E.getRangeAt(0),B=D.cloneRange();B.selectNodeContents(r.value),B.setEnd(D.endContainer,D.endOffset);const R=B.toString(),W=R.lastIndexOf(e.promptChar);if(d.value=r.value.textContent||"",W!==-1&&R.substring(W+1).trim()===""&&(r.value.textContent=R.replace(/@$/,`@${e.promptAgentName} `),d.value=r.value.textContent,n.value=!0,D.selectNodeContents(r.value),D.collapse(!1),E.removeAllRanges(),E.addRange(D)),n.value===!1){i.value=!1,l.value=-1;return}if((r.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const he=document.createRange();he.setStart(r.value,0),he.setEnd(D.endContainer,D.endOffset);const{top:ce,right:be}=he.getBoundingClientRect(),ae=m();a.value={top:ce-ae-5,left:be+5,height:ae},l.value===-1&&(l.value=0),i.value=!0}else i.value=!1,l.value=-1},m=()=>{const E=e.items.length*38-6;return Math.min(E+28+20,e.height)},x=z=>{var R;if(!r.value)return;const E=window.getSelection();if(!E||E.rangeCount===0)return;const D=((R=r.value.textContent)==null?void 0:R.replace(/\s*$/,""))||"";r.value.textContent=`${D} ${z.label}`;const B=E.getRangeAt(0);B.selectNodeContents(r.value),B.collapse(!1),E.removeAllRanges(),E.addRange(B),_()},S=async z=>{if(!i.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(z.key)&&z.preventDefault(),z.key){case"ArrowDown":l.value++,l.value>=e.items.length&&(l.value=0);break;case"ArrowUp":l.value--,l.value<0&&(l.value=e.items.length-1);break;case"Enter":l.value!==-1&&x(e.items[l.value]);break;case"Escape":_();break}await c.nextTick();const E=l.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",D=document.querySelector(E);D==null||D.scrollIntoView({block:"nearest",behavior:"smooth"})},C=z=>{r.value&&!r.value.contains(z.target)&&_()},_=()=>{n.value=!1,i.value=!1,l.value=-1};c.onMounted(()=>{document.addEventListener("click",C)}),c.onUnmounted(()=>{document.removeEventListener("click",C)});const F=z=>{const E=z.iconUrl||"",D=z.icon||"fx-icon fx-icon-sender_task";return c.createVNode(c.Fragment,null,[E?c.createVNode("img",{alt:"suggestion item icon",src:E},null):c.createVNode("i",{class:D},null),c.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[z.label])])};return()=>{var z;return c.createVNode("div",{class:"f-chat-suggestion-container"},[c.createVNode("div",{ref:r,class:"f-chat-suggestion-input",contenteditable:"true",onInput:g,onKeyup:g,onKeydown:S,"data-placeholder":f.value},null),i.value&&c.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${a.value.top}px`,left:`${a.value.left}px`,height:`${a.value.height}px`}},[c.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),c.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(z=e.items)==null?void 0:z.map((E,D)=>c.createVNode("div",{key:D,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":D===l.value}],onClick:()=>x(E),onMouseenter:()=>l.value===D},[F(E)]))])])])}}});Hi.install=e=>{e.component(Hi.name,Hi)};const nh={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},qi=c.defineComponent({name:"Todo",props:nh,setup(e){const t=c.ref(!0),r=c.computed(()=>{var i;return(i=e.items)==null?void 0:i.length});function n(){t.value=!t.value}return()=>c.createVNode("div",{class:["f-chat-message-todo",e.customClass]},[c.createVNode("div",{class:"f-chat-todo-message"},[e.message]),c.createVNode("div",{class:"f-chat-todo-list"},[c.createVNode("div",{class:"f-chat-todo-header",onClick:n,role:"button",tabindex:0,onKeydown:i=>i.key==="Enter"&&n()},[c.createVNode("span",{class:"f-chat-todo-header-icon-slot"},[c.createVNode("span",{class:"f-chat-todo-header-icon"},[c.createVNode("i",{class:"fx-icon fx-icon-task-record"},null)]),c.createVNode("span",{class:"f-chat-todo-header-expand"},[c.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),c.createVNode("span",{class:"f-chat-todo-header-label"},[c.createTextVNode("待办任务")]),c.createVNode("span",{class:"f-chat-todo-header-count"},[r.value])]),t.value&&c.createVNode("div",{class:"f-chat-todo-content"},[c.createVNode(Ci,{items:e.items},null)])])])}});qi.install=e=>{e.component(qi.name,qi),e.component(Ci.name,Ci),e.component(ms.name,ms),e.directive("overflow-tooltip",p1)};function Ra(e){return e.toolResultApplied===!0||String(e.result??"").trim().length>0}const ji=c.defineComponent({name:"FXToolUseBatch",props:{content:{type:Object,required:!0}},setup(e){const t=c.computed(()=>{const m=e.content.toolCalls;return!m||m.length===0?!0:m.every(Ra)}),{getToolIconClass:r}=gl(),n=c.computed(()=>t.value?`共调用 ${e.content.totalCount??e.content.toolCalls.length} 个工具`:"正在调用工具"),i=c.ref(!t.value),a=()=>{i.value=!i.value};c.watch(t,m=>{m&&(i.value=!1)});const l=m=>{Ra(m)&&(m._expanded=!m._expanded)},d=m=>{const x=Ra(m),S=m.success===!1;return{"f-chat-tool-use-batch-item":!0,"is-done":x&&!S,"is-error":S,"is-run":!x&&!S}},f=m=>{const x=Ra(m);return m.success===!1?"执行完成":x?"执行成功":"调用中"},p=m=>{const x=Ra(m);return m.success===!1?"Error":x?"Done":"Working"},g=m=>m.toolDescription?m.toolDescription:m.command?`{ command: ${m.command} }`:m.toolName??"tool";return()=>c.createVNode("div",{class:"f-chat-tool-use-batch"},[c.createVNode("div",{class:"f-chat-tool-use-batch-header",onClick:a},[c.createVNode("span",{class:"f-chat-tool-use-batch-title"},[n.value]),c.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:i.value?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),i.value&&c.createVNode("div",{class:"f-chat-tool-use-batch-body"},[e.content.toolCalls.map(m=>{const x=Ra(m),S=m.success===!1,C=x||S,_=!!m._expanded;return c.createVNode("div",{class:d(m)},[c.createVNode("div",{class:"f-chat-tool-use-batch-item-header",onClick:()=>l(m)},[c.createVNode("i",{class:"fx-icon fx-icon-"+r(m.toolName)+" tool-icon"},null),c.createVNode("span",{class:"f-chat-tool-use-batch-item-text"},[g(m)]),c.createVNode("div",{class:"f-chat-tool-use-batch-item-status"},[c.createVNode(Xn,{status:p(m),variant:"tool-use"},null),c.createVNode("span",null,[f(m)])]),C&&c.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:_?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),_&&C&&c.createVNode("div",{class:"f-chat-tool-use-batch-item-result"},[m.errorMessage||m.result])])})])])}});ji.install=e=>{e.component(ji.name,ji)};const ah={icon:[String,Object],title:[String,Object],description:[String,Object],customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},$i=c.defineComponent({name:"FXWelcome",props:ah,emits:[],setup(e,t){const r=c.computed(()=>{const l={"fx-welcome":!0};return!e.description&&(e.icon||t.slots.icon)&&(l["fx-welcome--no-description"]=!0),Ut(l,e.customClass)}),n=c.computed(()=>n0({},e.customStyle));function i(){var l,d;return t.slots.icon?t.slots.icon():e.icon?c.createVNode("div",{class:["fx-welcome--icon",(l=e.classNames)==null?void 0:l.icon],style:(d=e.styles)==null?void 0:d.icon},[uo(e.icon)]):null}function a(){var l,d,f,p,g,m;return t.slots.content?c.createVNode("div",{class:"fx-welcome--content"},[t.slots.content()]):(e.title||e.description)&&c.createVNode("div",{class:["fx-welcome--content",(l=e.classNames)==null?void 0:l.content],style:(d=e.styles)==null?void 0:d.content},[e.title&&c.createVNode("h4",{class:["fx-welcome--title",(f=e.classNames)==null?void 0:f.title],style:(p=e.styles)==null?void 0:p.title},[e.title]),e.description&&c.createVNode("p",{class:["fx-welcome--description",(g=e.classNames)==null?void 0:g.description],style:(m=e.styles)==null?void 0:m.description},[e.description])])}return()=>c.createVNode("div",{class:r.value,style:n.value},[i(),a()])}});$i.install=e=>{e.component($i.name,$i)};const ih={content:{type:Object,required:!0},onOpen:{type:Function}},vy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHHUlEQVRYCV2XSY8VVRTHT9UbgAbpZpSmaRNMxIiGqZVEE1csXBoNboyJ23ahfgI/gQuXdiRx6UY2utKNEUJjQLrBEEwUmQcBBZuphzdU+fufc+tVw61Xde894/+ce+6tepml9uKhpYMbVpWTuWUTpZUjQc7oSnvUMZvvVZJO8om4ZjzLUmK2bqVZO4g+r3hLfbMHi5plc1lZztBPnftkxeGkbfbCocUvW5lNrl+ZYQdLaurCv3UKs7mlNIHuo9RXsqJtHuKZwFRmxH+4ZLbYq3mS5Z76/dOVH2WKvCjLb1e3zHQPHEszIZDNfxY0AyAT9QNHSaoJaf0KV4qHApAcBu8+NisqwBUdO3mevZcT8aRE27mEaamLCdJShEaGknM4QkQLIJqbrWgsUwy2M3osnYtDS2qDQVlkkwDIJjKYrUbSSp0bDy96ugPJeYbUsyyRjbDXwpK31HkkjDusv5rsPa1PPUzkWBlpKX+VosKleS1Aq6IcOAgmWUkQkaFwo/jcRpUJJvy6/WR7kDU37/oEMNLUtC30lV64dilhKVg8sdo5DxeLQlX0mqs1PbQYV8Qq3Uu90Bc3xJQJKYZ+U327kdREdyDuWTpJSfzMmoDo9pNBtxFG2hSvU0WTjowUhXVZfzmVyQoGBe9zZU3UZo5RGXaypBEYbhf24SvaEj617/7s2/UH1AF8AnLi2zsatnNTwwvrxv3CfryoonAVr43NQ2bv7GxaL9XAVyd7NqedpKVzN3gEQ9NT63pQPd2lPUDwrecbNsK5oHZ3vrBvzvasJbTaT4D8eH/TxoeZ0249KuyH84vExCWriOwfy+yDPb7C9t98aZ//zGkmvtTpXZNxrvRHktTDJJBOr7AT1+ujb9dmEobjFtpav7E15cC5dLasyW3rMwGs7PdN9+4tAU786Su9VEsR0OA5AKB1KQO5ouuQ56MoVW3Xs9osIGNdm1lhb4zXxiuZfTgs4Eu/pN896pE5e/qibAUddjT5ZMRhVM1FEDdj7wLgcjcYPIdX5rZ9GK6ywAHw+rbaeCU0sbVBlqIOtpCh0bU1yGMXOp45mfcdIDcOREuBjjAEDp4g61I4tx4WduleqiD4SmlZ9NnvAHgu1vbOoz4vGQzQ9o5BA0Ch9C+L/o87Pfv3Md7k3CXlI40JKGAO0s82S4Ake/yqCieajGoZdmzMbf1QqJ240rHZ6yGzcXVu4yMqw9J2bw2A0jx2kUwqWhWnOr986I9YgbQeEuz1ZZwbUEcu1XWwZ1QRlvbqWJ3+GQCeWgZyAl7J8u1dDuACAOScZKrO/ABTLgSKGwC6YqIt5Gc3DI1PXusBSJK8atc0bHSN2Wvb4nwQ7QzRz16rs7RvrGV8U9j4ugC50C3tFDbcg0DoR68dJefymwsRP5+oDNmBPGGBdr6b2ZmbdRYmWOc9Kbq/H/TZ/yV1Utg9zgm1feMt27etTv+vV7opo7XNquZcAb9UVjhX3wWxg0lIxTl+uY7w/b1DNpROLqVeQHVVWRhZldu7u/ksSu0Y6dfBIzeKVnc0tETnTjUgchYFqFRVRQntiIoote0b6uh+IzNZpnrJbOZaLbNrrF2J2zS6pVLuzlSegktTlDQth2dASETUue08pPKcfU1/7nZh99NWc630OI1TmROIGVL9dLt5v28X7xbhEpnMqw2n4RtH/HwbOkHVqTddSpYy4Kigo3ziKQe3fP0jAmXgBi+qOw/rM0NgpnX4EF8u57KmMlnmXDTdsaHhqPgcFUjE0DJ4wlCavvRkhLMpeqm7AxRmrz4pc+yvqP5Iu1ty+/WRH/4Gi9qJ49oRxfkkRJHin8537aVN8yknZkdVXIqM24mA/v7skt3m9PQlRPMXP0NYRkWttcSWotWu8wD9yfjNrxcpfT67F7QFGegnJQlyFyoMjuC1rYLXcbWmGMvBrtczsnoH9Fk/vbZDGX6G80YTG7hLYONLCNtq0qPzLyJN9KXjRMlzDT65VMU40odIW2PdHgtPjDtYKN0Sh7p8UWWau3IufxLk58lQclPzJdCHI6aCJDlFL0nGWmMZ0orm+nil8T5yUHKifVzC71JleUObCl1fPRWfLtfwPsemA5ENLo35GsvmOl3+isk/tytorObRIshC9gs49J5SMIXhJEYX7xCVpYxINkkQQGw3mYc38KFKy+aajzvlDP/dDohRmYtsYACEypybwuC8/z2rnBMDNEXBHwzeU8qaeCkLFUTqSvpuQw4qP7KbZTPNhW42hZEDtQAcF4peS6qzQEgW2CmSEyjRfUDnDlLE4g3cMXaenjDE03yQhaycyuNfag6IYIivFoppDFMOdWvt3HmScbDUgLab7louOUOuXvfQh6RsTZ3+bMVhByTCy18sHWStJim6Cb7t+LSgCRRNY0c/mEfqB5HIeSWjkUcjAjetskX9zFFPM3nWxHnT/57/Dzj0fqfCZcLZAAAAAElFTkSuQmCC",xy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHeklEQVRYCV1XW2hcVRTd985MZjKxNaVa6cNqnwbaftSIiuiPilh8NC2tWh+lXyFFbMEKgvgABQUfIGoxWqGioFLjR0GQlqooGhptjNU+9EPaarT2IUySZt73Xtfa+5w7o3dyc885+5y91l57nzN3AnHXjoOPbJAgGEhEegNJugUNCURqzbrUk5ok6GcklK6OLrTRwc2PxPhLYkniCAswEqPtbXiWGxekEdUkxniQSCmReDSO4sGP+vYPERoQIjtGtr2JRQOB9tQ3Rh0DPMvNCnAi6cwUJROEBk4QvQluoCkBR6QR1UFgqkVYiWKufmRwT9+BrYFFLh/Dl7sSCAEN0PeEIgA044bkM3mNlkYFR9R8sq8qEIB9AMRRU6brUxiPNHol5whwfsK2yMYsZaeRYFzrwVM6GMuEoYRBBxxRZkgOQubEOeJCOFQHrl1uTEsEcKpDGwFjZ0sVC5KBLJb26kJkw0iADDPjCBHQR8n1BgRnKQknqToHIZCsRVWJoJgBeQJGUpXD3ITkEunN4n93GjXm+LaVAxGJadIyCq5ScOaRkVFIgpMQKoWSVxtlDBkZGHW+X6trdK6u6876PPsU0F+rzdwagDkkCPueEOGtr+BwPF2fNGKOnE8BSbZI2BrWTbaOSs2FHQwUFwzUni0YdRGj54dPFxX7nGVzGLXZKoi8qYWJPqNsA9X6cX3vm4Fka0ogp9ITnCBRxEi53smNZ7sz2ii1H0tirEHO682qI0pCppbVSosMx9vVRBHGUsE+78wWzaGqwJRiEe55nfPkmjnX6SICY5J8PX5AzpfPKohGipytWbROsmGWZp0zdnpEfj47iq4D5w6iAvyoShYUVgQ4YiLRVAQZBdK8AzyKIvlzelw2dW+WK2Yuome9rpy5WF75/llETZKR3L74bll/1f3eLGenT8ueI7uVIGX2kht4q88gQxYcG9VmGYBNnUyGXrqo2ZBdP+3E1qqlAMtm9cjNl6/Rw+ay4nxZu3xTaouw9tXh5+wQgl+Cp4cUI9fbpxYEfJW2y8IcKXMewHBwhhEdfz8FYWPd8vtkftdC6V+93aR31qFj78nRc2P/CcQK2MhYDaCt5BIJWZ0EzId5rWztY4ys/RaERvLlqX3y45lDKYlcJidP3Pi8LLy4lZpfzx+VDw7vgjIOQKNFmjTvLVAGS5/ECgkeJgG+6Zh/xxILtJpgCzDGYuS8d8bekMnaREqikC2kbW7Bl755CqSbEoSabdvRDIRE6Bt+VFn4sjawYZECvmQ8S/Y9EQPGInyPkvFktSS7Dr2WgrY33v1hp/w9OY61zjlJo4ipJH16EnySBGtMFcjzENIgwRIfLgiwgOAKrG0qgWrF3+Ez3+kWbAevN2sy9teIFN1W1mCcigyGvnxQJOjJkBh2bgagzAmJsvgYgZfMnvSFI0od9fVskkuKc9rxpSObl4FrH8O7QgZf2QyIcy16KzZ3BpCI+jaVVQGViOCMmEbIZiTIGo5oY8GgvWTWUlnbc6+O/f/f1fOvl1uX3ikdIMBvU42camqxEdj8+XEM6BwtQisIG9A0YDKJ8YiNQYj2HKLr730U7waZFPuXc0fSNhsPrt4qc7sW4FTt1DXMsx5Wqir90RdTwDYCxjiK0Bvw9G08qbgu0OgjuWfFFpk7Y0EKOD5xUp7et10OnvoqHctjVzx8w5OSxSefMRIE0mDgp1UHLEDe3IZkQpH5guBYKUP0yZ57evmsFXLLojtSIJ52r3/7Aux1eevgi7o7vHHJ7B5Zv2oLDqdc6/0R872SFqRhtilgcnh5aCAJFAW2aEGl54uKv/Ye+1B+++e4vjdM1Ery9sjL3qTPvpUPybLZK/UlNuGhxBTwo8q2lLYiZJQuN5zAYgO8Rs7FD6zql9nFS1OAP0onZM/h3Qoe4HzAmSPDJ76Q4ZOfp3NYJ9tuekby2JYF1gP9Akefrqb8jgv6P9tIRDUaAccwSvANWZOpyoQrSCuoAo7sPLYd1eFrCXeN5pkAmmcd1fcL3boYLVcnpR5XsYS+tbjUJzqsAZOG4HYrG2VcqV/AcvQ5B855LNci/EaIcdziYGKfKoAHLvpBm/N5saboE6CdObxrtOF4NWjHNvTA/mkHSLU5bUB0CBBGg7dzfdJG7fXEZBSwaTpABFMwh/WDC6A6B/bOnP2i8niMXmsAVEu6AxxbRtHAz7Ea3pL0Ql8dgoeXL4ICjUYFbkmOMXOOkSMRlR6RS2BBMWK+LeWwM/wpS3CsKVGBUVBRqQgQoF3B7zl1C1IwENkiJKDesf7mM5uzY1yjZ0qUNJ7wpWeAC66AoiRRrmNqiB1i+SCBLToUDPIeRw2VR5VROWF3zuAVTi2/F/DVzHGO8dYi1G1nwPY+YQQJyruYnQHfNoayHgx337V3CO4H6YhvtTW+2TICd3MRZfMONDrY2G9ilzSQKhajRqSOPSB9WFvzToLo82ceT0w4GBx+vDKkiqAnmz+5bcNUtTSQxM1enIDduih1QAUYNZWCU8SaAqJ3UcdMyI9KgTLMkNrcXKpC0owatVGCj1HUyeCn237Xn+f/Avavy/P8wtVMAAAAAElFTkSuQmCC",wy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGCklEQVRYCYVXPY8cRRCtnt29s/EhW0KAEAkxmXUBIkBkRERwdoqFHNiW/AMwPwCJECTYEDKEnYJk4+ASIwQ6WSIjwJKNQBjO8t6Xb3dvZ5r3XlXPjIzX7rub7qmuqvfqo3v3ksXIH53fsJQvmOV1y3aqyJ8055x74sZyAys8EqS+hX2pcC9b3t6xPD/i/gSPrWxpvPrNjWt0QhvLV85/CU2AP3sQXEDmwEIiXkuKLw4sb5DnBgz/nWju9NL42Lc3LyZFbs3VZ0O7RusATrnmj0ceURMMg3JfYEVC+4dme4ctUe5Xls4MlfbQdYvHnnQ4m4N9KKVkmYiDyqzCX+C6VYArG65PcI3jq5Z3D7QsQYDEhSE8rLvGkudRbfZwDzwZSZAo69WR2ck1EAlbYLU6EAmcMrIk8dHAjP60R3+2XmHvqQ1XlBuC8ifA4Q+ZObL8cBcLuGGz4afoQ63LGl+wn4aM131I0fIpSJ42oNws6KmtMyEEVRzNa8vTmVUrgyBHfwhbme+DwY6s3YF7gY+lBErtqM9RIpQ8hCUbNkePDFHjICp96DBJjNgnMKoSEiFmkvHxRAKljllHDdGfPWeDd8+0RssWeTbFmf/b6p82rdn8TuDMVhKZx7LBkoBhaR/5FDAYo10QMY5O3VgNxoXQMuAiT6vHrHr1NRu9f85GF68QGqWAPQJp2CN1NKCOqhP6XwZ0aZAAvCpbWLAB0b/taHYnciwBw1AoONUnnsdSibfB66dt8cbb1vx40xKzTjHLESWhLUsmAoxQ+2DmelQEa8gpqXjme2Pn40uWD3CrjnAMkV8RxX56bs1OfHDZVk6/Ke3hW+/Y9NYPOsIJfhrcJ06A0bvD1rNH3kPhkjwGoLQCoP7ApZJWcIeJrQensu3v2v7Xn7Wa1YuvWLPAKSEYH0cLTA7u5UYPtHWRGSJGOK5EdNaMNaSH/tA1ipgSSoM/MEEBRCjv7VhzsOfKo5Wwhd99NGiEzblk2nuATUFmBBJWmXHBoBFd1hEgGOOuAMwf/ja4L3hbVmtrVqEXOOr7f8q0gY90iM+CdngW6HjoeHp2QCwqu5YdHKxbWy38pCR8KPiJAYfB0KqXXrbjGx+2qvOtW/CJXto9tLRoeA20/tyvLiIHLxdPP1rGKVbBr3g++elXZbl0rrfv2+x7fOTvPrJqhtuU4KHdD2qo1DPKsqvLhykqvcAz1G4uBexvzH/9xfa++MTyPw+swtnnFayysczhqs1Ax4ZpB1TR6Hnswy/u/W6HiEwnAGWKFpBdgzov7t2x+u5ddPxR15xQA7TK1XMrG2SgE1GJgyTaDOAY0VkZ9YNtm25e14VT0XGDCNnEPG6oM4n51VuuWQBTCJ+8V9Q1ESTXOAVINSPhoMPY1CvXIoAalkGwR1O9hTvZUVChy0icgH5SQEbY1ORgy/pwHJ4C+HNWWGBQsdGxxCLI9DhRRTo8+z4IFsThvUp4Q0CciOZazChe9FUqdMN6qGMUtHQSxIMGodEu/J0OSdhnX+s6jjRTKzETEWubXVhQ1hGCInwPWRfX7ZWCXiR3Im5EIQbUieWXkIv4ZN0LZ+nrhZBcADxwhNeZoQek6OmXPIBdB67guf7rD5vf/lmixZ3fPAr2Db+UoocIXgaBCihTTncdtaIIDd+wNL981lUk6BQadXe2xXRuNb731XErVgBNAGfDMQuBIIziVJBsLrgrMp/df5FxH1dxVxdFQSLBjjPTqT+ACZDvWFOmjpfPSLFkFEiIp8/+HutuW/b0OSmMSsNo1tEEKCJlivmFpCIhrKt+zltQEnIQzvKh1y7dkjMzpObBTfBxl7dEVMa8fl2BEYo5P8kierJl1RU/HQDAQQsIEZ0ErQuQXIe4aIiMpS1WdOyKYYLInSkB4mZzNnINDkSNElBXOP7AmpEX+5IFN4GcWQ0dylLK42r4+dVriHBs0XSQx5CKrwXooCFwYL3AMeYCGiJXgwvulqwK3bWZxvELN25fI4rG7NJ7G/jywf+Q13Ou9d+SosHnQDPZb69rAtFIgHSmX1JwmfaYBRdQypX0sTfB2xayKHDK/wNolX2UI+Wo7QAAAABJRU5ErkJggg==",oh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGLUlEQVRYCW1XTY9UVRCt19M9MwyiAxojRI1REImJRAfQhcSVGmJINMG9G5LRH+DOxJ0JP0BnpYlbMCYqGBciJmqIZiAsSARUUDQoYGjmo2emP97znFNVr3vUm+n76ladqjpV9973oLAYcyf6hwZlOVtVNmNWTVcQDH9lPLnGcr1Oa9cTRoD8KEoerstS3m1g5pe71dw7h6eP0b3g9O7x7ntwnKUsR4AzoQIymGzUU/DAFDlS53Il0qlTnABSJpHOGnzKau7IG1teL7zywVE6OJjoQnIGB1gEmEk4JQ0yAqWvP9PPn8DV/obkpQ1K4pClarzaZNs9OuEcnlyVY1UBzDEk586upUF/9ZJCFkM5Wi9df1B58iRkg9kmwDNKFoFSromMZmBzMPRYR4w6D+BEA5d4PJHTVteEkr/jihkQKKcVFEwC7wePieg10pG0J5BrVsuhp+SR7ZO/GStfQXKC3IczcDjszdpZQQiihlgXSu5BqKXhxDWDSRHY/9Ex/1qvtH5fIT00fWpsZc0S7KTjlEMALGSIR9hFbAQ7gD8H9byyVVVgnyskxY+x0y+6kddaPpianS69PcmGcQ9UHzw3iQcdkhDFPFxsrcf2ZNhSkTEQ4chO1nLk8u0FgayITFOJ7amvTlbAUlLO5PLRNPLCUtqiPkfJ3rsjY52Hrs2sHuFlzRZxlQmFcXOty+SRX77ug7nGupBFEkQ5zJKbXGTlmXy8ZfbwVp3PCJbtrez6rYHduxm84fjz731bXoGAxe5HWtr728ulbb6jIUI5sWM9HMRzP63VuZI43wNiNMpy01RhLz09kf7rnp9+t2J7do7b1rvHbP5C1z76umP7do3by/un7OT8ij32YMtmdv7Xd7FT2rlLIMBo4kypwBmI0yklbdAvLFV2/PSq5AP7JmxsrLCvzq4Zg1y93reb7YG9dmCjPbmjZafPN+z5PZN2a3FgX55ZtW1bxuzCr13b8UDL9u6atD9u9O3UmRXr4lZkh1UscnGNLXAm2ps4uWs9s/NXBqL64l4QgHTxas/+XvDXX3uxtLOXevbUo+N2+OAmG28VdvTzRet2K7v8Z99+uVbZxHgBAmbtpdJ++JFfH4XD5KKvK2uocnSh0tF3q5PxL5c8wond4X4y1klUxXvO5Feu9ez85R46Bgv/COCPI3R8oaW/Y/xcNWpsbIWS00/ew0lBY8lte+i+pjWxNRzb7mnaXTg3HCLBp1Y+1cRCqyIC0BDBTB6OTKDfaBTaAKa+iQvywt4NuAGlXfitqy4cfHZK4enivu6stdjzGxHvi4hFIg2COTJ4rl0nkybZASV6/xOTdufGhrbh41PL2ord2yds+zZcz4g39GRsj18zDCNj6sIqOJR8cngy7pGvQ6n1lk0Ne+bxCfsL74MzF7t2Ewfzm3Orgrzy3EYrsBN52t1P80jMOEcKzWuIJEoUCrYlB/Wf4d4z6GIHOBhaOHSffNuxazd6/j2A8ovvO7pu9JvCK2CxY9iann14YsFuLQ08OWxej8fPPMVb7y9Iw9ZNTfo+8YPCl0SCRBLp64aIpH/3l/Bu4A0qS7+iDJbb4P6O80JhHLEzXvx7wFkNQXCKTnhyuqENwcAZx+cXFrWcJGjHj3aHZnL6pw7PkBm76Szp6AB3pByB5Ip1EsKTATTok2v5cwoTA6UOqnXdFMavLTrgrfWlV5nJGYryuqAef0hIoBoiaJJ1/3BAhxRXb1vkxJZx6/xjFExjG+EBMEP9K7nI0FZXTfL8ZXCW5qW4PgqAVqE4YYx2Qy8iad2mgOTGEXjpXB5JBMjwuolu+DipoT99kojLDnRdA1esTUZM6RX6s24jnWFXQ4gbxbJy+KkiCIpDaMh08k5QiT/4JibIt/EmtPkaSBKkpwkPRNJHRCpXpt3JMoHDk3ztzK2iDVONYWwO6fEoivkGPmhzDgybql3PXD5wykoVFEpWUXeHQairq/QYo8Xw4HGt6oEtkLtxZBb/SxWJCAaDQmmKKpJU2JTL80HjeOpEUBrows6Htg2C5HSwau6Dt+8/5kcWyjfn2oemWgP8D7kxMygH00QziLd25E3HKBiqHvIy3oTkJ10IddsVIBK73AZ0vrBCyenzD7OyHHaTkJSSAAAAAElFTkSuQmCC",ky="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGkElEQVRYCZVXS2udRRh+Z+Y7zTFtk5iml7S1XpBW3HhJdVER0YUKikhtRNCFF5TYheLWjX/AlRuzcOnO/AXXIpiFG0URoUWq0KJpLb2eb8bned6ZcxLaCP1O5szMe33ey8z5Eqw+5czyKSt5Bdsli3vnRB6dB+k6lgV/2SVLsYJ1IE108pw23jf6plk6pWyEYOuhhNXwyPdrNBj4Vc689qXlQudm3QGoJS2t9GbX/8B6hOEgCpzROeexQ4EjHRTSsZ/IEXjjYV31ILuaHl3/MHjk/TdEaHEPxvTYkBzlq2Y3zrkzOWD0XNBJM+h7OmqOmyPOkmsgMvRDDaDYcoShFQqFMJRz2a4oIYbtFOgzQq40ykmLUNL0zoVkVJrmtM4OGNbgXCAzs0SdvBLxtUTDJd1dIyPD0+xC2HezKFa0QKXxqBmAtNEwsyFwVR9eW5kcOAWd53KSX4pANRfibjA7qgMEnXiEboB6oIYZ8R0A00iDeOi4OQM4lY00Aa3louaY5mup5zIXA1WQYndMJlHSMI1x8shCYhlEqWwH6ptJXb0Hqh6BKTuTyEGRXdqn7a6EnbCBVqiIZZBfAjJRFKw0a2V0ofJcxh1WueGDFhc/RtvcZ+HKT5bPfV5PEfjVXusDZQBgOjUYFkSmR7ItddUJJqWWWRj9gx2OpTLjdOmCF+//wkLnV4jNPm1xeK/1Py+jd27QEP5q9DLrPtBZ6MPKbChZ32JMPUd1rgzBCPulloV8zxzoO5+YOJcW9KaOmO1+EjtPdyvn5pm5B5+jatE4hqoNWpATp8EM+mWXDMpoPVa+ZpS3PgH3inULEJnUXmv6Aw3h07l2mDxiORKtRegArFu0MjyGXpweN1cDGP79zsqNP7cgKFd+Mbv2O474rLJD+5ujp++uaZChk1AJbhhQMq5jgCmocTr8KUpwl+WzV61c/FZZyrhUvD+GuNI/s7BwysKOQ1au/WblwtrYoXV7LfTXcLtfZujj0bErme7mvNWUWfBaUzxb3PeuhcT7ArIHTlu+hIjzZb+cEk4SLjLrL1r56ysWzUEBuHe727DBfrQNrvZ8E1Y8814CbPSppWjN5bTeytRRi7sel3N+xanDFuZfrWWAicE+2GuAGRBLWTPK7OkukCb6ASAkWwGo2SRMAUfejJUesUA5LbxB5pYnLryOfbIyWJA4v5Q90FgW+sjQLfhFVXZrf/HHjld76wdlwDveETnD1wSk6KePbnHOTZxaNNtzEg05lKPMIA68b/HY1xbnXxTNywobygiUiIo2cSpCGKg8AtDq3hQQNl4PMNCAac8r9HfbJy2chBxKhBH3v2Np/gVcKwNLix9Y2H3CecyCDhe/HEzARVMGe5WFSOfNMaPPPVFSFgqoV9z1mO9v852QmTL1gIWZpwD05S0S3eGPoI9jiw9tFf4EMxPVfEi4T9DUuoi8duRUMIicYOL880hV6+Mt9sebwf43bXDo9HjfFiENLR35pDomDHwULPGwN1CyHQhQkFgbDU5g6tNZmn2m2dt27maO43jyB+3WJ+18GC9ZL7kzOpSIl4L+GK5fxUI3YbCucebEtoZvdbU9pTv4tmVcYq2nVIoGBnHXDPAi4rHBrRdYJ9zRc89tb/UOOMxOd/A9aHhe+T6oNTMOmpqQDjWUCQji7k7TD92Bm/8XTeilsuMgfKC8uFvgRs656ASoOm73QRldsv7SDxaG90DQz8ikFblqg4aIna/tfJw+6dsql684T3XHEgBcBl0w+vUtvWixRkKI+rMU/egm5lE957xKUB798NChQnBL1OOzmcaoMhoM/nmKYoy4H/HyVyLWLi4A0MGbKH8YIKgLhYrsVl6faETPFZigwU+gRUWhN0kH4imEBYJinWkLkYHOtTsmSOjw5cfFuIU+3gnj9bMb6Po5Jlo/GrwsACJiUDoydtRtQIN0LjpYtERjmimLlcCTyHPODtcLBznIBkBRBU5rHORvENI6BciQIISYnqj3ZUaDCw1rvLspmoQoEgT4z1uCnA9Pd4IcR4QMdSjHwLCUHdpX6jETJIjrAFZWBZdMDAFhrZlGiFGZhqIG1jLMmUB0jjXzzabTnv9ZMnK3x5rTTguyZZq0kPNq5H+psA0QkgFCjwaT0FJwclVj0wSZ47bGTOBbmhNcOVYw7CsPSCo0A5/ds3+vSYb78uPxU31/cwUAlnLf490aDqqThppyPClthltlajyD54C9nNKvNggQvA3Q1lFOOD+/Rjv/AYfYvIrlGomFAAAAAElFTkSuQmCC",Ui=c.defineComponent({name:"FChatAttachmentPreview",props:ih,emits:[],setup(e){function t(d){switch(d.toLowerCase()){case"doc":case"docx":return vy;case"xlsx":case"xls":return xy;case"ppt":case"mobi":return wy;case"txt":return oh;case"png":case"jpg":case"jpeg":case"gif":return ky;default:return oh}}function r(d){return d.icon?d.icon:t(d.type||"")}function n(d){if(d===0)return"0 B";const f=1024,p=["B","KB","MB","GB"],g=Math.floor(Math.log(d)/Math.log(f));return parseFloat((d/Math.pow(f,g)).toFixed(2))+" "+p[g]}async function i(d){var f;(f=e.onOpen)==null||f.call(e,d)}async function a(d,f){d.stopPropagation(),d.preventDefault();const p=da(f);p&&await lo(p,f.name)}function l(d,f){const p=n(d.size||0),g=r(d),m=da(d);return c.createVNode("div",{key:f,class:"f-chat-attachment-preview-card"},[c.createVNode("div",{class:"f-chat-attachment-preview-card-inner"},[c.createVNode("div",{class:"f-chat-attachment-preview-main",role:"button",tabindex:0,onClick:()=>i(d),onKeydown:x=>x.key==="Enter"&&i(d)},[c.createVNode("div",{class:"f-chat-attachment-preview-icon-wrapper"},[c.createVNode("img",{src:g,alt:""},null)]),c.createVNode("div",{class:"f-chat-attachment-preview-info"},[c.createVNode("div",{class:"f-chat-attachment-preview-name",title:d.name},[d.name]),c.createVNode("div",{class:"f-chat-attachment-preview-meta"},[p&&c.createVNode("span",null,[p])])])]),m?c.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:x=>a(x,d)},[c.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[c.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),c.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),c.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])])}return()=>{const d=e.content;if(!d)return null;const{message:f,attachments:p}=d;return c.createVNode("div",{class:"f-chat-attachment-preview"},[f&&c.createVNode("div",{class:"f-chat-attachment-preview-message"},[f]),c.createVNode("div",{class:"f-chat-attachment-preview-list"},[p.map((g,m)=>l(g,m))])])}}});Ui.install=e=>{e.component(Ui.name,Ui)},Na.install=e=>{e.component(Na.name,Na)},za.install=e=>{e.component(za.name,za)};const sh={activeNavId:{type:String,default:""},displayField:{type:String,default:"text"},disableField:{type:String,default:"disable"},horizontal:{type:Boolean,default:!0},idField:{type:String,default:"id"},maxNum:{type:Number,default:99},navData:{type:Array,default:()=>[]},navPicking:{type:Function,default:null},valueField:{type:String,default:"num"},visible:{type:Boolean,default:!0},customClass:{type:String,default:""},customStyle:{type:String,default:""}},Wi=c.defineComponent({name:"FXNav",props:sh,emits:["nav","update:activeNavId"],setup(e,t){const r=c.ref(e.activeNavId),n=c.ref(e.navData);function i(g){if(n.value&&n.value.length){let m=n.value.find(x=>x[e.idField]===g&&x[e.disableField]!==!0);m||(m=n.value.find(x=>x[e.disableField]!==!0)),m&&r.value!==m.id&&(r.value=m.id,t.emit("nav",m))}}c.watch([()=>e.activeNavId,()=>e.navData],([g,m])=>{n.value=m,i(g)});const a=c.computed(()=>e.visible&&n.value.length>0);function l(g){g.disable||g.id===r.value||Promise.resolve().then(()=>{const m=e.navPicking;return m&&typeof m=="function"?m(g):!0}).then(m=>{let x=!0;typeof m=="object"?m.canContinue||(x=!1,m.message&&console.error({message:m.message,position:"top-center"})):x=m,x&&(r.value=g.id,t.emit("update:activeNavId",g.id),t.emit("nav",g))})}const d=c.computed(()=>{const g={"farris-nav":!0,"farris-nav-vertical":!e.horizontal};return Ut(g,e.customClass)}),f=c.computed(()=>n0({},e.customStyle));function p(g){n.value=g,i(r.value)}return t.expose({updateNavData:p}),()=>{var g;return a.value&&c.createVNode("div",{class:d.value,style:f.value},[(g=n.value)==null?void 0:g.map(m=>c.createVNode("div",{class:["farris-nav-item",{active:m[e.idField]===r.value},{disabled:m[e.disableField]}],onClick:()=>l(m)},[c.createVNode("div",{class:"farris-nav-item-link pt-3"},[c.createVNode("span",{class:"farris-nav-item-link-text"},[typeof m[e.displayField]=="function"?m[e.displayField]():m[e.displayField],m[e.valueField]&&c.createVNode("div",{class:"farris-nav-item-tag"},[m[e.valueField]<=e.maxNum&&c.createVNode("span",{class:"tag-text"},[m[e.valueField]]),m[e.valueField]>e.maxNum&&c.createVNode("span",{class:"tag-text"},[e.maxNum,c.createTextVNode("+")])])]),c.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}});Wi.install=e=>{e.component(Wi.name,Wi)};const lh={buttonContent:{type:String,default:'<i class="fx-icon fx-icon-search"></i>'},customClass:{type:String,default:""},modelValue:{type:String,default:""},popupHost:{type:Object},data:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词"},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},showDropdown:{type:Boolean,default:!0},itemClass:{type:String,default:""},dropdownClass:{type:String,default:""}},uh={data:{type:Array,default:()=>[]},onConfirmResult:{type:Function,default:void 0},onSearchedValue:{type:Function,default:void 0},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},enableHighlight:{type:Boolean,default:!0},itemClass:{type:String,default:""}},Ms=c.defineComponent({name:"FXSearchBoxContainer",props:uh,emits:["confirmResult","searchedValue"],setup(e,t){const r=c.ref(e.data),n=c.ref(""),i=c.computed(()=>{if(!n.value)return r.value;const g=n.value.toLowerCase();return r.value.filter(m=>String(m[e.textField]??"").toLowerCase().includes(g))});function a(g){n.value=g}function l(g){t.emit("confirmResult",g[e.textField]),t.emit("searchedValue",[g])}function d(g,m){if(!m)return[g];const x=m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),S=new RegExp(`(${x})`,"gi");return g.split(S).map(_=>_.toLowerCase()===m.toLowerCase()?c.createVNode("span",{class:"search-box-highlight"},[_]):_)}function f(g){const m=String(g[e.textField]??"");return t.slots.default?t.slots.default({item:g,searchValue:n.value,highlight:d}):d(m,n.value)}const p=c.computed(()=>{const g={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(g.maxHeight=`${e.maxHeight}px`),g});return c.watch(()=>e.data,g=>{g!==r.value&&(r.value=g)}),t.expose({search:a}),()=>c.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:p.value},[e.loading&&c.createVNode("div",{class:"search-box-loading"},[c.createVNode("i",{class:"fx-icon fx-icon-bubble_step_loading fx-icon-spin"},null)]),c.createVNode("ul",{class:"search-box-list"},[i.value.map(g=>c.createVNode("li",{class:["search-box-item dropdown-item",e.itemClass],key:g[e.idField],onClick:()=>l(g)},[f(g)])),!e.loading&&i.value.length===0&&c.createVNode("li",{class:"search-box-empty"},[c.createTextVNode("无匹配结果")])])])}}),Gi=c.defineComponent({name:"FXSearchBox",props:lh,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const r=c.ref(),n=c.ref(),i=c.ref(),a=c.ref(e.modelValue),l=c.ref(!1),d='<i class="fx-icon fx-icon-clockwise fx-icon-spin"></i>',f=c.computed(()=>e.loading?d:e.buttonContent);c.watch(a,B=>{var R;(R=i.value)==null||R.search(B),t.emit("update:modelValue",B)}),c.watch(()=>e.modelValue,B=>{a.value=B});function p(B){a.value=B,C()}function g(B){const R=a.value;t.emit("change",B,{oldValue:R,newValue:B})}function m(B){t.emit("selectedValue",B)}function x(){t.emit("clickButton",{})}async function S(){var B;l.value=!0,await c.nextTick(),(B=n.value)==null||B.show(r.value)}function C(){var B;(B=n.value)==null||B.hide(),l.value=!1}function _(){l.value?C():S()}function F(B){const R=B.target.value;a.value=R,g(R),e.showDropdown&&R&&S()}function z(){e.showDropdown&&a.value&&S()}function E(){a.value="",t.emit("update:modelValue",""),C()}t.expose({togglePopup:_,hidePopup:C,showPopup:S});const D=c.computed(()=>{const B=Ut({},e.customClass);return["f-search-box",{"f-search-box-disabled":e.disable},...typeof B=="string"?[B]:Array.isArray(B)?B:[]]});return()=>c.createVNode("div",{class:D.value},[c.createVNode("div",{class:"f-search-box-input-group",ref:r},[t.slots.prefix&&c.createVNode("span",{class:"f-search-box-prefix"},[t.slots.prefix()]),c.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:a.value,disabled:e.disable,onInput:F,onFocus:z},null),a.value&&!e.disable&&c.createVNode("span",{class:"f-search-box-clear",onClick:E},[c.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),t.slots.suffix?c.createVNode("span",{class:"f-search-box-suffix",onClick:x},[t.slots.suffix()]):f.value&&c.createVNode("span",{class:"f-search-box-button",onClick:x,innerHTML:f.value},null)]),e.showDropdown&&c.createVNode(Qn,{ref:n,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost,class:"f-search-box--dropdown "+e.dropdownClass},{default:()=>[t.slots.dropdown?t.slots.dropdown({data:e.data,searchValue:a.value,loading:e.loading}):c.createVNode(Ms,{ref:i,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:p,onSearchedValue:B=>m(B),loading:e.loading,maxHeight:e.maxHeight,itemClass:e.itemClass},t.slots)]})])}});Gi.install=e=>{e.component(Gi.name,Gi),e.component(Ms.name,Ms)};const wc={data:{type:Array,default:()=>[]},view:{type:String,default:"ContentView"},customClass:{type:String,default:""},itemClass:{type:[String,Function],default:""},idField:{type:String,default:"id"},textField:{type:String,default:"name"},titleField:{type:String,default:"name"},valueField:{type:String,default:"id"},group:{type:Object,default:void 0}};function Ay(e){const t=c.ref([...e.data]),r=c.ref([]),n=c.ref(""),i=c.computed(()=>{var x;const m=e.group;return m!=null&&m.enable&&((x=m.groupFields)!=null&&x.length)?a(t.value,m):t.value.map((S,C)=>({type:0,data:S,originalIndex:C}))});function a(m,x){const S=[],C=x.groupFields[0],_=new Map;m.forEach(z=>{const E=String(z[C]??"");_.has(E)||_.set(E,[]),_.get(E).push(z)});let F=0;return _.forEach((z,E)=>{S.push({type:1,data:{[C]:E},groupField:C,groupValue:E,originalIndex:F++}),z.forEach(D=>{S.push({type:0,data:D,groupField:C,groupValue:E,originalIndex:F++})})}),S}function l(m){t.value=[...m],r.value=[],n.value=""}function d(m){n.value=m;const x=t.value.find(S=>S[e.idField]===m);x&&!r.value.includes(x)&&(r.value=[x])}function f(){r.value=[],n.value=""}function p(m){const x=r.value.indexOf(m);x>=0?r.value.splice(x,1):r.value=[m],n.value=m[e.idField]}function g(m){return r.value.includes(m)}return{data:t,visualData:i,selectedItems:r,activeItemId:n,updateDataSource:l,activeRowById:d,clearSelection:f,toggleSelection:p,isSelected:g}}const Sy=c.defineComponent({name:"FXListViewItem",props:{...wc,item:{type:Object,default:()=>({})},index:{type:Number,default:0},isActive:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["clickItem"],setup(e,t){const r=c.computed(()=>({"f-list-view-item":!0,"f-list-view-item-active":e.isActive}));return()=>c.createVNode("li",{class:[r.value,typeof e.itemClass=="function"?e.itemClass(e.item,e.index):e.itemClass],onClick:()=>t.emit("clickItem",e.item,e.index)},[t.slots.default?t.slots.default({item:e.item,index:e.index,selectedItem:e.isSelected?e.item:null}):c.createVNode("span",null,[e.item[e.textField]])])}}),Cy=c.defineComponent({name:"FXListGroupItem",props:{groupData:{type:Object,default:()=>({})},groupField:{type:String,default:""},groupValue:{type:String,default:""},index:{type:Number,default:0}},setup(e,t){return()=>c.createVNode("li",{class:"f-list-view-group-item"},[t.slots.default?t.slots.default({item:e.groupData,index:e.index}):c.createVNode("div",{class:"f-list-view-group-header"},[c.createVNode("i",{class:"fx-icon f-accordion-expand"},null),c.createVNode("span",null,[e.groupValue])])])}}),Xi=c.defineComponent({name:"FXListView",props:wc,emits:["clickItem"],setup(e,t){const{visualData:r,activeItemId:n,updateDataSource:i,activeRowById:a,clearSelection:l,toggleSelection:d,isSelected:f}=Ay({data:e.data,idField:e.idField,group:e.group}),p=c.computed(()=>Ut({"f-list-view":!0},e.customClass));function g(m,x){d(m),t.emit("clickItem",m,x)}return t.expose({updateDataSource:i,activeRowById:a,clearSelection:l}),()=>c.createVNode("div",{class:p.value},[c.createVNode("div",{class:"f-list-view-content"},[c.createVNode("ul",{class:"f-listview-items"},[r.value.map((m,x)=>m.type===1?c.createVNode(Cy,{key:`group_${m.groupValue}_${x}`,groupData:m.data,groupField:m.groupField,groupValue:m.groupValue,index:x},{default:t.slots.group}):c.createVNode(Sy,{key:`${m.data[e.idField]}_${x}`,item:m.data,index:m.originalIndex,isActive:m.data[e.idField]===n.value,isSelected:f(m.data),itemClass:e.itemClass,textField:e.textField,onClickItem:g},{default:t.slots.content}))])])])}});Xi.install=e=>{e.component(Xi.name,Xi)};const ch={content:{type:Object,required:!0},defaultExpanded:{type:Boolean,default:!0}},Ns=c.defineComponent({name:"FXAgentThinkingMessage",props:ch,setup(e){const t=c.ref(e.defaultExpanded),r=c.ref({}),n=c.computed(()=>{var S;const x=(S=e.content)==null?void 0:S.streamStatus;return x==="end"||x===void 0}),i=c.computed(()=>{var S;const x=(S=e.content)==null?void 0:S.title;return x||(n.value?"思考过程":"正在思考...")}),a=c.computed(()=>{var x;return((x=e.content)==null?void 0:x.steps)??[]}),l=c.computed(()=>{var x,S;return a.value.length>0?"":((S=(x=e.content)==null?void 0:x.text)==null?void 0:S.trim())??""}),d=c.computed(()=>{var x,S;return a.value.length>0||!!l.value||(((S=(x=e.content)==null?void 0:x.sources)==null?void 0:S.length)??0)>0});c.watch(a,x=>{const S={};x.forEach((C,_)=>{S[_]=r.value[_]??!!C.detail}),r.value=S},{immediate:!0}),c.watch(n,x=>{x&&(t.value=!1)});const f=()=>{t.value=!t.value},p=x=>{r.value={...r.value,[x]:!r.value[x]}},g=x=>c.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:x?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null),m=(x,S)=>{var F;const C=!!((F=x.detail)!=null&&F.trim()),_=r.value[S]??C;return c.createVNode("div",{class:"f-x-thinking-step",key:S},[c.createVNode("div",{class:"f-x-thinking-step-header",onClick:()=>C&&p(S)},[c.createVNode("span",{class:"f-x-thinking-step-dot","aria-hidden":!0},null),c.createVNode("span",{class:"f-x-thinking-step-summary"},[x.summary]),C?g(_):null]),C&&_?c.createVNode("div",{class:"f-x-thinking-step-detail"},[x.detail]):null])};return()=>{const x=e.content;if(!x)return null;const S={"f-x-thinking":!0,"is-pending":!n.value,"is-completed":n.value};return c.createVNode("div",{class:S},[c.createVNode("div",{class:"f-x-thinking-header",onClick:f},[n.value?null:c.createVNode(Xn,{status:"Working",variant:"thinking"},null),c.createVNode("span",{class:"f-x-thinking-title"},[i.value]),d.value?g(t.value):null]),t.value&&d.value?c.createVNode("div",{class:"f-x-thinking-body"},[l.value?c.createVNode("div",{class:"f-x-thinking-text"},[l.value]):null,a.value.map(m),x.sources&&x.sources.length>0?c.createVNode("ul",{class:"f-x-thinking-sources"},[x.sources.map((C,_)=>c.createVNode("li",{key:_},[C]))]):null]):null])}}});Ns.install=e=>{e.component(Ns.name,Ns)};function Ty(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Ey(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function Dy(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const zs=c.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=c.computed(()=>Ey(e.content.media)),r=c.computed(()=>da(Dy(e.content.media)));async function n(i){i.preventDefault(),i.stopPropagation();const a=r.value;a&&await lo(a,e.content.name)}return()=>{const i=!!r.value;return c.createVNode("div",{class:"f-ec-attach-row"},[c.createVNode("a",{class:"f-ec-attach f-ec-attach--stretch",href:t.value,target:"_blank",rel:"noopener noreferrer"},[c.createVNode("span",{class:"f-ec-attach-icon","aria-hidden":!0},[c.createTextVNode("📎")]),c.createVNode("span",{class:"f-ec-attach-body"},[c.createVNode("span",{class:"f-ec-attach-name"},[e.content.name]),c.createVNode("span",{class:"f-ec-attach-meta"},[c.createVNode("span",{class:"f-ec-attach-cat"},[e.content.category]),c.createVNode("span",{class:"f-ec-attach-size"},[Ty(e.content.size)])])])]),i?c.createVNode("button",{type:"button",class:"f-ec-attach-download-btn","aria-label":"下载附件",title:"下载",onClick:n},[c.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[c.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),c.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),c.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}}});zs.install=e=>{e.component(zs.name,zs)};const My={0:"高",1:"中",2:"低"},_s=c.defineComponent({name:"ErrorReminderMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content.errorLevel;return c.createVNode("div",{class:["f-ec-error",`f-ec-error--lvl-${t}`]},[c.createVNode("div",{class:"f-ec-error-head"},[c.createVNode("span",{class:"f-ec-error-badge"},[My[t]]),c.createVNode("span",{class:"f-ec-error-label"},[c.createTextVNode("错误提醒")])]),c.createVNode("div",{class:"f-ec-error-text"},[e.content.errorText]),e.content.errorLink?c.createVNode("a",{class:"f-ec-error-link",href:e.content.errorLink,target:"_blank",rel:"noopener noreferrer"},[c.createTextVNode("查看详情")]):null])}}});_s.install=e=>{e.component(_s.name,_s)};function Ny(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!c.isVNode(e)}const dh=".f-chat-content-input-section";function zy(e,t){const r=(t??"").trim();return r||`Agent请求使用【${e.trim()||"该系统"}】凭证访问该系统,是否授权?`}const Yi=c.defineComponent({name:"FXCredentialAuthDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"凭证授权请求"},question:{type:String,default:""},systemName:{type:String,default:""},disabled:{type:Boolean,default:!1},onSelect:{type:Function,required:!0},onClose:{type:Function,default:void 0},teleportTo:{type:[String,Object],default:dh}},setup(e){const t=c.computed(()=>zy(e.systemName,e.question));function r(i){e.disabled||e.onSelect(i)}const n=c.computed(()=>e.teleportTo??dh);return()=>{if(!e.visible)return null;const i=c.createVNode("div",{class:"f-credential-auth-anchor f-credential-auth-anchor--overlay-input",role:"dialog","aria-modal":"true","aria-labelledby":"f-credential-auth-title"},[c.createVNode("div",{class:"f-credential-auth-dialog"},[c.createVNode("div",{id:"f-credential-auth-title",class:"f-credential-auth-dialog__title"},[e.title]),c.createVNode("div",{class:"f-credential-auth-dialog__body"},[t.value]),c.createVNode("div",{class:"f-credential-auth-dialog__actions"},[c.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--primary","data-testid":"auth-per-access",disabled:e.disabled,onClick:()=>r("PER_ACCESS_YES")},[c.createTextVNode("临时授权一次")]),c.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-session",disabled:e.disabled,onClick:()=>r("SESSION_YES")},[c.createTextVNode("授权整个会话")]),c.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-no",disabled:e.disabled,onClick:()=>r("NO")},[c.createTextVNode("拒绝")])])])]);return n.value?c.createVNode(c.Teleport,{to:n.value},Ny(i)?i:{default:()=>[i]}):i}}});Yi.install=e=>{e.component(Yi.name,Yi)};function _y(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!c.isVNode(e)}const ln="__hitl_other__";function kc(e,t=120){return e?e.length>t?e.slice(0,t)+"...":e:""}function Fn(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"||t==="authorize"?t:"text"}function fh(e){return e==="PER_ACCESS_YES"?"是(本次授权)":e==="SESSION_YES"?"是,当前会话后续不再询问":e==="NO"?"否":String(e??"")}const Fs=c.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!0},pinned:{type:Boolean,default:!1},pinnedWidth:{type:String,default:void 0},pinnedInputHeight:{type:Number,default:0},pinnedBottom:{type:Number,default:36},teleportTo:{type:[String,Object],default:void 0},onSubmitAnswers:{type:Function,default:void 0},onSubmitAuthAnswer:{type:Function,default:void 0}},setup(e){const t=c.ref(!1),r=c.ref(0),n=c.ref({}),i=c.ref({}),a=c.computed(()=>t.value||e.disabled),l=c.computed(()=>{var X;return e.content.questions.length===1&&Fn((X=e.content.questions[0])==null?void 0:X.ui_type)==="authorize"&&!!e.content.credentialAuth}),d=c.ref(!1);c.watch(()=>[l.value,t.value,e.disabled],([X,Z,Q])=>{d.value=X&&!Z&&!Q},{immediate:!0});function f(X){var Q;const Z=e.content.questions[0];Z&&(n.value={[Z.id]:X},t.value=!0,d.value=!1,(Q=e.onSubmitAuthAnswer)==null||Q.call(e,{questionId:Z.id,answer:X}))}function p(X){const Z={},Q={};for(const oe of X){const fe=Fn(oe.ui_type);if(fe==="confirm")Z[oe.id]=void 0;else if(fe==="authorize")Z[oe.id]=void 0;else if(fe==="text"||fe==="select")Z[oe.id]=oe.default_value??"";else if(fe==="multi_select")Z[oe.id]=oe.default_value?JSON.parse(oe.default_value):[];else if(fe==="form"){const Ae={};if(Array.isArray(oe.fields))for(const ie of oe.fields)Ae[ie.name]=ie.default_value??"";Z[oe.id]=Ae}else Z[oe.id]=oe.default_value??"";Q[oe.id]={active:!1,text:""}}n.value=Z,i.value=Q,r.value=0}c.watch(()=>e.content.questions,X=>{Array.isArray(X)&&X.length&&p(X)},{immediate:!0}),c.watch(()=>e.content.answers,X=>{if(!Array.isArray(X)||X.length===0)return;const Z={...n.value},Q={...i.value};for(const oe of X){Z[oe.id]=oe.answer;const fe=e.content.questions.find(Ae=>Ae.id===oe.id);fe&&Fn(fe.ui_type)==="select"&&typeof oe.answer=="string"&&!(fe.options??[]).some(me=>me.label===oe.answer)&&oe.answer!==""&&(Q[oe.id]={active:!0,text:oe.answer},Z[oe.id]=ln)}n.value=Z,i.value=Q,t.value=!0},{immediate:!0});const g=c.computed(()=>e.content.questions.length),m=c.computed(()=>{const X=e.content.questions;if(X.length===0)return null;const Z=Math.max(0,Math.min(r.value,X.length-1));return X[Z]}),x=c.computed(()=>r.value<=0),S=c.computed(()=>r.value>=g.value-1),C=c.computed(()=>{const X=m.value;return X?z(X):!0});function _(){e.required&&!C.value||S.value||(r.value+=1)}function F(){x.value||(r.value-=1)}function z(X){var oe,fe;const Z=Fn(X.ui_type),Q=n.value[X.id];if(Z==="text"&&(typeof Q!="string"||Q.trim()==="")||Z==="select"&&(typeof Q!="string"||Q.trim()===""||Q===ln&&(((fe=(oe=i.value[X.id])==null?void 0:oe.text)==null?void 0:fe.trim())??"")==="")||Z==="confirm"&&typeof Q!="boolean"||Z==="multi_select"&&(!Array.isArray(Q)||Q.length===0))return!1;if(Z==="form"){const Ae=X.fields??[],ie=Q;for(const me of Ae)if(me.required){const ge=ie[me.name];if(typeof ge!="string"||ge.trim()==="")return!1}}return!((Z==="date"||Z==="number")&&(typeof Q!="string"||Q.trim()===""))}const E=c.computed(()=>a.value?!1:e.content.questions.every(X=>z(X)));function D(X,Z){n.value={...n.value,[X]:Z}}function B(X,Z,Q){const oe=n.value[X]??{};D(X,{...oe,[Z]:Q})}function R(X){const Z=Fn(X.ui_type);return Z==="select"||Z==="multi_select"}function W(X,Z){var Q;Z===ln?(i.value={...i.value,[X.id]:{...i.value[X.id],active:!0,text:((Q=i.value[X.id])==null?void 0:Q.text)??""}},D(X.id,ln)):(i.value={...i.value,[X.id]:{active:!1,text:""}},D(X.id,Z))}function Y(X,Z){const Q=n.value[X.id]??[];Q.includes(Z)?D(X.id,Q.filter(oe=>oe!==Z)):D(X.id,[...Q,Z])}function q(){var Z,Q,oe;if(!E.value)return;const X=[];for(const fe of e.content.questions){const Ae=Fn(fe.ui_type);let ie=n.value[fe.id];Ae==="select"&&ie===ln&&(ie=((Q=(Z=i.value[fe.id])==null?void 0:Z.text)==null?void 0:Q.trim())??""),Ae==="number"&&(ie=Number(ie)),X.push({id:fe.id,answer:ie})}t.value=!0,(oe=e.onSubmitAnswers)==null||oe.call(e,X)}function pe(X,Z,Q){return c.createVNode("div",{class:"f-hitl-date-wrap"},[c.createVNode("input",{class:"f-hitl-input",type:"date",value:X,disabled:Z,onInput:oe=>Q(oe.target.value)},null)])}function he(X,Z,Q,oe,fe){const Ae=ge=>{let Oe=Number(X)||0;Oe+=ge,oe!==void 0&&(Oe=Math.max(oe,Oe)),fe!==void 0&&(Oe=Math.min(fe,Oe)),Q(String(Oe))},ie=fe!==void 0&&Number(X||0)>=fe,me=oe!==void 0&&Number(X||0)<=oe;return c.createVNode("div",{class:"f-hitl-num-wrap"},[c.createVNode("input",{class:"f-hitl-input f-hitl-num-input",type:"number",value:X,min:oe,max:fe,disabled:Z,onInput:ge=>Q(ge.target.value)},null),c.createVNode("div",{class:"f-hitl-num-btns"},[c.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:Z||ie,onClick:()=>Ae(1)},[c.createVNode("span",{class:"fx-icon fx-icon-foldup"},null)]),c.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:Z||me,onClick:()=>Ae(-1)},[c.createVNode("span",{class:"fx-icon fx-icon-expanddown"},null)])])])}function ce(X,Z,Q,oe){return c.createVNode("div",{key:X.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":Q}],onClick:oe},[c.createVNode("span",{class:"f-hitl-opt-row__index"},[Z+1]),c.createVNode("div",{class:"f-hitl-opt-row__label"},[c.createVNode("span",null,[X.label]),X.description?c.createVNode("span",{class:"f-hitl-opt-row__desc",title:X.description},[kc(X.description)]):null]),c.createVNode("span",{class:"f-hitl-opt-row__check"},[Q?c.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}function be(X,Z){return c.createVNode("div",{class:"f-hitl-form-item",key:X.name},[c.createVNode("div",{class:"f-hitl-form-item__label"},[X.label]),Z])}function ae(X,Z,Q){const oe=n.value[X.id]??"",fe=n.value[X.id]??[],Ae=i.value[X.id]??{active:!1,text:""},ie=Q==="single",me=ie&&oe===ln||Ae.active,ge=X.allow_other&&me,Oe=at=>ie?oe===at.label&&!Ae.active:fe.includes(at.label),Xe=at=>()=>{a.value||(ie?W(X,at.label):Y(X,at.label))},Ze=()=>{if(!a.value)if(ie)W(X,ln);else{const at=Ae.text;Ae.active?(D(X.id,fe.filter(it=>it!==at)),i.value={...i.value,[X.id]:{active:!1,text:""}}):(i.value={...i.value,[X.id]:{active:!0,text:Ae.text}},Ae.text&&!fe.includes(Ae.text)&&D(X.id,[...fe,Ae.text]))}},nt=at=>{const it=at.target.value;i.value={...i.value,[X.id]:{active:!0,text:it}},ie?D(X.id,ln):D(X.id,[...fe.filter(qt=>qt!==Ae.text),it])};return c.createVNode("div",{key:X.id},[c.createVNode("div",{class:"f-hitl-option-list"},[Z.map((at,it)=>ce(at,it,Oe(at),Xe(at))),X.allow_other?c.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":me}],onClick:Ze},[c.createVNode("span",{class:"f-hitl-opt-row__index"},[c.createTextVNode("...")]),c.createVNode("span",{class:"f-hitl-opt-row__label"},[c.createTextVNode("其他")]),c.createVNode("span",{class:"f-hitl-opt-row__check"},[me?c.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),ge?c.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:Ae.text,placeholder:"请输入自定义内容",disabled:a.value,onInput:nt},null):null])}function xe(X){const Z=n.value[X.id]??{},Q=X.fields??[];return c.createVNode("div",{class:"f-hitl-field",key:X.id},[c.createVNode("div",{class:"f-hitl-form-group"},[Q.map(oe=>{const fe=Z[oe.name]??"";return oe.type==="select"?be(oe,c.createVNode("div",{class:"f-hitl-select-group"},[(oe.options??[]).map(Ae=>{const ie=typeof Ae=="string"?Ae:Ae.label??"";return c.createVNode("button",{key:ie,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":fe===ie}],disabled:a.value,onClick:()=>B(X.id,oe.name,ie)},[ie])})])):oe.type==="number"?be(oe,he(fe,a.value,Ae=>B(X.id,oe.name,Ae),oe.min,oe.max)):oe.type==="date"?be(oe,pe(fe,a.value,Ae=>B(X.id,oe.name,Ae))):be(oe,c.createVNode("input",{class:"f-hitl-input",type:"text",value:fe,placeholder:oe.default_value??"请输入",disabled:a.value,onInput:Ae=>B(X.id,oe.name,Ae.target.value)},null))})])])}function Ce(X){const Z=Fn(X.ui_type);if(Z==="text"){const Q=n.value[X.id]??"";return c.createVNode("div",{class:"f-hitl-field",key:X.id},[c.createVNode("input",{class:"f-hitl-input",type:"text",value:Q,placeholder:X.placeholder??"请输入",disabled:a.value,onInput:oe=>D(X.id,oe.target.value)},null)])}if(Z==="multi_select"){const Q=Array.isArray(X.options)?X.options:[];return c.createVNode("div",{class:"f-hitl-field",key:X.id},[ae(X,Q,"multi")])}if(Z==="form")return xe(X);if(Z==="select"){let Q=Array.isArray(X.options)?X.options:[];return Q.length===0&&(Q=[{label:"暂无"}]),c.createVNode("div",{class:"f-hitl-field",key:X.id},[ae(X,Q,"single")])}if(Z==="confirm"){const Q=n.value[X.id];return c.createVNode("div",{class:"f-hitl-field",key:X.id},[c.createVNode("div",{class:"f-hitl-confirm"},[c.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":Q===!0}],disabled:a.value,onClick:()=>D(X.id,!0)},[c.createTextVNode("是")]),c.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":Q===!1}],disabled:a.value,onClick:()=>D(X.id,!1)},[c.createTextVNode("否")])])])}if(Z==="authorize")return c.createVNode("div",{class:"f-hitl-field",key:X.id},[c.createVNode("span",{class:"f-hitl-submitted-value"},[fh(n.value[X.id])])]);if(Z==="date"){const Q=n.value[X.id]??"";return c.createVNode("div",{class:"f-hitl-field",key:X.id},[pe(Q,a.value,oe=>D(X.id,oe))])}if(Z==="number"){const Q=n.value[X.id]??"";return c.createVNode("div",{class:"f-hitl-field",key:X.id},[he(Q,a.value,oe=>D(X.id,oe),X.min,X.max)])}return c.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:X.id},[c.createVNode("div",{class:"f-hitl-unsupported"},[c.createTextVNode("暂不支持 ui_type「"),String(X.ui_type),c.createTextVNode("」,请升级前端。")])])}function te(X){const Z=Fn(X.ui_type),Q=(fe,Ae,ie)=>c.createVNode("input",{class:"f-hitl-input",type:fe,value:Ae,readonly:!0,min:ie==null?void 0:ie.min,max:ie==null?void 0:ie.max},null);if(Z==="text"){const fe=n.value[X.id]??"";return c.createVNode("div",{class:"f-hitl-field",key:X.id},[Q("text",fe)])}if(Z==="multi_select"){const fe=n.value[X.id]??[],Ae=Array.isArray(X.options)?X.options:[],ie=new Set(Ae.map(ge=>ge.label)),me=fe.filter(ge=>!ie.has(ge));return c.createVNode("div",{key:X.id},[c.createVNode("div",{class:"f-hitl-option-list"},[Ae.filter(ge=>fe.includes(ge.label)).map(ge=>c.createVNode("div",{class:"f-hitl-opt-row",key:ge.label},[c.createVNode("div",{class:"f-hitl-opt-row__label"},[c.createVNode("span",null,[ge.label]),ge.description?c.createVNode("span",{class:"f-hitl-opt-row__desc",title:ge.description},[kc(ge.description)]):null])])),me.map(ge=>c.createVNode("div",{class:"f-hitl-opt-row",key:ge},[c.createVNode("div",{class:"f-hitl-opt-row__label"},[c.createVNode("span",null,[ge])])]))])])}if(Z==="select"){const fe=n.value[X.id]??"",Ae=i.value[X.id]??{active:!1,text:""},ie=Array.isArray(X.options)?X.options:[],me=fe===ln||Ae.active;return c.createVNode("div",{key:X.id},[c.createVNode("div",{class:"f-hitl-option-list"},[me?c.createVNode("div",{class:"f-hitl-opt-row"},[c.createVNode("div",{class:"f-hitl-opt-row__label"},[c.createVNode("span",null,[Ae.text||"其他"])])]):ie.filter(ge=>ge.label===fe).map(ge=>c.createVNode("div",{class:"f-hitl-opt-row",key:ge.label},[c.createVNode("div",{class:"f-hitl-opt-row__label"},[c.createVNode("span",null,[ge.label]),ge.description?c.createVNode("span",{class:"f-hitl-opt-row__desc",title:ge.description},[kc(ge.description)]):null])]))])])}if(Z==="confirm"){const fe=n.value[X.id];return c.createVNode("div",{class:"f-hitl-field",key:X.id},[c.createVNode("div",{class:"f-hitl-confirm"},[c.createVNode("button",{type:"button",class:["f-hitl-cbtn","f-hitl-cbtn--readonly"]},[fe===!0?"是":"否"])])])}if(Z==="authorize")return c.createVNode("div",{class:"f-hitl-field",key:X.id},[c.createVNode("span",{class:"f-hitl-submitted-value"},[fh(n.value[X.id])])]);if(Z==="form"){const fe=n.value[X.id]??{},Ae=X.fields??[];return c.createVNode("div",{class:"f-hitl-field",key:X.id},[c.createVNode("div",{class:"f-hitl-form-group"},[Ae.map(ie=>{const me=fe[ie.name]??"";let ge;return ie.type==="number"?ge=Q("number",me,{min:ie.min,max:ie.max}):ie.type==="date"?ge=Q("date",me):ge=Q("text",me),be(ie,ge)})])])}if(Z==="date"){const fe=n.value[X.id]??"";return c.createVNode("div",{class:"f-hitl-field",key:X.id},[Q("date",fe)])}if(Z==="number"){const fe=n.value[X.id]??"";return c.createVNode("div",{class:"f-hitl-field",key:X.id},[Q("number",fe)])}const oe=n.value[X.id];return c.createVNode("div",{class:"f-hitl-field",key:X.id},[c.createVNode("span",{class:"f-hitl-submitted-value"},[String(oe??"")])])}function ye(X){return c.createVNode("div",{class:"f-hitl-card__title-wrap"},[c.createVNode("span",{class:"f-hitl-card__title"},[X.question]),c.createVNode("span",{class:"f-hitl-card__subtitle"},[X.header])])}function ne(){return g.value<=1?null:c.createVNode("div",{class:"f-hitl-pagination"},[c.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:x.value,onClick:F},[c.createVNode("span",{class:"fx-icon fx-icon-arrow-left"},null)]),c.createVNode("span",{class:"f-hitl-pagination__text"},[r.value+1,c.createTextVNode("/"),g.value]),c.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:S.value,onClick:_},[c.createVNode("span",{class:"fx-icon fx-icon-arrow-right"},null)])])}function ze(){const X=e.pinnedWidth?{width:`calc(${e.pinnedWidth} * 0.8)`,minWidth:"343px",maxWidth:"800px"}:void 0;return c.createVNode("div",{class:"f-hitl-card",style:X},[c.createVNode("div",{class:"f-hitl-submitted-flat"},[e.content.questions.map(Z=>c.createVNode("div",{class:"f-hitl-submitted-item",key:Z.id},[c.createVNode("div",{class:"f-hitl-card__header"},[ye(Z)]),c.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":R(Z)}]},[te(Z)])]))])])}function Ue(){const X=m.value;if(!X)return null;const Z=e.pinned?"f-hitl-card--pinned":"",Q=e.pinned&&e.pinnedWidth?{width:e.pinnedWidth}:void 0,oe=e.pinnedInputHeight??0,fe=e.pinnedBottom??36,Ae=()=>c.createVNode(c.Fragment,null,[c.createVNode("div",{class:"f-hitl-card__header"},[ye(X),ne()]),c.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":R(X)}]},[Ce(X)]),!a.value&&c.createVNode("div",{class:"f-hitl-card__footer"},[g.value>1&&!S.value&&c.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:e.required&&!C.value,onClick:_},[c.createTextVNode("下一条")]),S.value&&c.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:!E.value,onClick:q},[c.createTextVNode("提交")])])]);if(e.pinned){const ie=c.createVNode("div",{class:"f-hitl-pinned-spacer","aria-hidden":"true"},[c.createVNode("div",{class:"f-hitl-card",style:{...Q,marginBottom:`-${oe}px`}},[Ae()])]);if(e.teleportTo){const ge={...Q,bottom:`${fe}px`},Oe=c.createVNode("div",{class:["f-hitl-card",Z],style:ge},[Ae()]);return c.createVNode(c.Fragment,null,[ie,c.createVNode(c.Teleport,{to:e.teleportTo},_y(Oe)?Oe:{default:()=>[Oe]})])}const me=c.createVNode("div",{class:["f-hitl-card",Z],style:Q},[Ae()]);return c.createVNode(c.Fragment,null,[ie,me])}return c.createVNode("div",{class:["f-hitl-card",Z],style:Q},[Ae()])}return()=>{var X;if(l.value){const Z=e.content.questions[0];return Z?c.createVNode(c.Fragment,null,[c.createVNode(Yi,{visible:d.value,title:Z.header??"凭证授权请求",question:Z.question,systemName:((X=e.content.credentialAuth)==null?void 0:X.systemName)??"",disabled:a.value,teleportTo:".f-chat-content-input-section",onSelect:f},null)]):null}return a.value?ze():Ue()}}});Fs.install=e=>{e.component(Fs.name,Fs)};function Fy(e,t){var n;const r=(n=e.pickActions)==null?void 0:n[t];return r||e.pickActionDefault}const Is=c.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(r,n)=>{var i;Fy(e.content,n),(i=e.onPick)==null||i.call(e,r)};return()=>c.createVNode("div",{class:"f-ec-recommend"},[e.content.title?c.createVNode("div",{class:"f-ec-recommend-title"},[e.content.title]):null,c.createVNode("div",{class:"f-ec-recommend-chips"},[e.content.suggestions.map((r,n)=>c.createVNode("button",{key:n,type:"button",class:"f-ec-recommend-chip",onClick:()=>t(r,n)},[r]))])])}});Is.install=e=>{e.component(Is.name,Is)};const Bs=c.defineComponent({name:"LinkCardMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content;return c.createVNode("div",{class:"f-ec-linkcard"},[t.poster?c.createVNode("div",{class:"f-ec-linkcard-poster"},[c.createVNode("img",{src:t.poster,alt:""},null)]):null,c.createVNode("div",{class:"f-ec-linkcard-body"},[c.createVNode("a",{class:"f-ec-linkcard-title",href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title]),t.subtitle?c.createVNode("div",{class:"f-ec-linkcard-sub"},[t.subtitle]):null,t.relatedLinks&&t.relatedLinks.length>0?c.createVNode("div",{class:"f-ec-linkcard-related"},[c.createVNode("div",{class:"f-ec-linkcard-related-label"},[c.createTextVNode("相关阅读")]),c.createVNode("ul",null,[t.relatedLinks.map((r,n)=>c.createVNode("li",{key:n},[c.createVNode("a",{href:r.url,target:"_blank",rel:"noopener noreferrer"},[r.title])]))])]):null])])}}});Bs.install=e=>{e.component(Bs.name,Bs)};const Os=c.defineComponent({name:"ReferenceSourcesMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>c.createVNode("div",{class:"f-ec-sources"},[c.createVNode("div",{class:"f-ec-sources-title"},[c.createTextVNode("引用来源")]),c.createVNode("ul",{class:"f-ec-sources-list"},[e.content.items.map((t,r)=>c.createVNode("li",{key:r},[c.createVNode("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title])]))])])}});Os.install=e=>{e.component(Os.name,Os)};function hh(e){const t=new Map;for(const r of e){const n=t.get(r.docId),i=typeof r.url=="string"&&r.url.trim()!==""?r.url.trim():void 0;n?(n.chunkCount+=1,n.contentIds.push(r.contentId),!n.url&&i&&(n.url=i)):t.set(r.docId,{key:r.docId,docName:r.docName,chunkCount:1,contentIds:[r.contentId],...i?{url:i}:{}})}return[...t.values()]}const Ls=c.defineComponent({name:"FXKnowledgeTraceStrip",props:{content:{type:Object,required:!0}},emits:["open"],setup(e,{emit:t}){const r=c.ref(!1),n=c.computed(()=>hh(e.content.chunks??[])),i=c.computed(()=>{var f;return((f=e.content.chunks)==null?void 0:f.length)??0}),a=()=>{t("open")},l=f=>{f.stopPropagation(),r.value=!r.value},d=(f,p)=>{f.stopPropagation();const g=typeof p=="string"?p.trim():"";!g||typeof window>"u"||window.open(g,"_blank","noopener,noreferrer")};return()=>i.value?c.createVNode("div",{class:"f-ec-knowledge-trace"},[c.createVNode("div",{class:"f-ec-knowledge-trace__header",onClick:a},[c.createVNode("span",{class:"f-ec-knowledge-trace__main"},[c.createVNode("svg",{class:"f-ec-knowledge-trace__icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[c.createVNode("circle",{cx:"12",cy:"12",r:"10"},null),c.createVNode("path",{d:"M12 16v-4M12 8h.01"},null)]),c.createVNode("span",null,[c.createTextVNode("知识溯源 · "),i.value,c.createTextVNode(" 条参考来源")])]),c.createVNode("button",{type:"button",class:"f-ec-knowledge-trace__toggle","aria-label":r.value?"收起原始文档":"展开原始文档",title:r.value?"收起原始文档":"展开原始文档","data-testid":"knowledge-trace-files-toggle",onClick:l},[c.createVNode("span",{class:["f-ec-knowledge-trace__toggle-icon",r.value&&"f-ec-knowledge-trace__toggle-icon--open"]},[c.createTextVNode("▼")])])]),r.value&&n.value.length>0?c.createVNode("div",{class:"f-ec-knowledge-trace__files"},[n.value.map(f=>c.createVNode("div",{key:f.key,class:"f-ec-knowledge-trace__file","data-testid":"knowledge-trace-source-file"},[c.createVNode("button",{type:"button",class:["f-ec-knowledge-trace__file-name",!f.url&&"f-ec-knowledge-trace__file-name--disabled"],title:f.docName,disabled:!f.url,"data-testid":"knowledge-trace-source-file-preview",onClick:p=>d(p,f.url)},[f.docName]),c.createVNode("span",{class:"f-ec-knowledge-trace__file-meta"},[f.chunkCount,c.createTextVNode(" 条切片")])]))]):null]):null}});function Iy(e){return Number.isFinite(e)?Number(e).toFixed(4):""}const Ac=c.defineComponent({name:"FXKnowledgeTracePanel",props:{chunks:{type:Array,default:()=>[]},isShow:{type:Boolean,default:!1},selectedContentId:{type:String,default:void 0}},emits:["update:isShow","close"],setup(e,{emit:t}){const r=c.ref({}),n=c.ref(null),i=()=>{t("update:isShow",!1),t("close")},a=f=>{r.value={...r.value,[f]:!r.value[f]}},l=f=>{const p=typeof f=="string"?f.trim():"";!p||typeof window>"u"||window.open(p,"_blank","noopener,noreferrer")},d=()=>{if(!e.isShow||!e.selectedContentId||!n.value)return;const f=typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e.selectedContentId):e.selectedContentId.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),p=n.value.querySelector(`[data-knowledge-trace-content-id="${f}"]`);p instanceof HTMLElement&&p.scrollIntoView({block:"nearest",behavior:"smooth"})};return c.watch(()=>[e.isShow,e.selectedContentId,e.chunks],()=>{!e.isShow||!e.selectedContentId||c.nextTick(()=>{d()})},{immediate:!0}),()=>{if(!e.isShow)return null;const f=e.chunks??[];return c.createVNode("aside",{class:"f-ec-knowledge-trace-panel","data-testid":"knowledge-trace-panel","aria-label":"参考来源"},[c.createVNode("div",{class:"f-ec-knowledge-trace-panel__header"},[c.createVNode("span",{class:"f-ec-knowledge-trace-panel__title"},[c.createTextVNode("参考来源 · "),f.length]),c.createVNode("button",{type:"button",class:"f-ec-knowledge-trace-panel__close","aria-label":"关闭",title:"关闭","data-testid":"knowledge-trace-panel-close",onClick:i},[c.createTextVNode("×")])]),c.createVNode("div",{class:"f-ec-knowledge-trace-panel__body",ref:n},[f.length===0?c.createVNode("div",{class:"f-ec-knowledge-trace-panel__empty"},[c.createTextVNode("暂无参考来源")]):f.map((p,g)=>{const m=p.contentId===e.selectedContentId,x=!!r.value[p.contentId],S=typeof p.score=="number"?Iy(p.score):"",C=String(g+1),_=typeof p.url=="string"&&p.url.trim()!==""?p.url.trim():"";return c.createVNode("div",{key:p.contentId,class:["f-ec-knowledge-trace-panel__card",m&&"f-ec-knowledge-trace-panel__card--selected",x&&"f-ec-knowledge-trace-panel__card--expanded"],"data-knowledge-trace-content-id":p.contentId,"data-testid":"knowledge-trace-panel-card"},[c.createVNode("div",{class:["f-ec-knowledge-trace-panel__card-title",_&&"f-ec-knowledge-trace-panel__card-title--link"],title:p.docName,role:_?"link":void 0,tabindex:_?0:void 0,onClick:()=>l(_),onKeydown:F=>{_&&(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),l(_))}},[p.docName]),S?c.createVNode("div",{class:"f-ec-knowledge-trace-panel__card-meta"},[c.createVNode("span",null,null),c.createVNode("span",null,[S])]):null,c.createVNode("div",{class:["f-ec-knowledge-trace-panel__card-content",x&&"f-ec-knowledge-trace-panel__card-content--expanded"]},[p.content]),c.createVNode("div",{class:"f-ec-knowledge-trace-panel__card-footer"},[c.createVNode("button",{type:"button",class:"f-ec-knowledge-trace-panel__toggle",onClick:()=>a(p.contentId)},[x?"收起":"展开"]),c.createVNode("span",{class:"f-ec-knowledge-trace-panel__mark"},[C])])])})])])}}});Ls.install=e=>{e.component(Ls.name,Ls),e.component(Ac.name,Ac)};const Rs=c.defineComponent({name:"UnknownEnterpriseMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>c.createVNode("div",{class:"f-ec-unknown"},[c.createVNode("div",{class:"f-ec-unknown-title"},[c.createTextVNode("未知类型消息")]),e.content.wireType?c.createVNode("div",{class:"f-ec-unknown-wire"},[c.createTextVNode("wire type: "),e.content.wireType]):null,c.createVNode("div",{class:"f-ec-unknown-desc"},[e.content.hint??"客户端无法识别此消息类型,已按占位展示。"])])}});Rs.install=e=>{e.component(Rs.name,Rs)},Ti.install=e=>{e.component(Ti.name,Ti)};const By={install(e){e.use(gr).use(Ei).use(Di).use(zi).use(Ba).use(Li).use(Ri).use(Pi).use(Vi).use(Ta).use(ra).use(La).use(Jn).use(Hi).use(qi).use(ji).use($i).use(Ui).use(Na).use(za).use(Qn).use(Fa).use(Wi).use(Gi).use(Xi)}};ue.FXAgentThinking=Ns,ue.FXAppPreview=gr,ue.FXAttachmentFile=zs,ue.FXAttachmentPreview=Ui,ue.FXBubble=Ei,ue.FXBubbleAction=Qu,ue.FXCarousel=Di,ue.FXCarouselItem=ps,ue.FXChatPreview=zi,ue.FXCoding=Li,ue.FXConfirmDialog=Ba,ue.FXCredentialAuthDialog=Yi,ue.FXDynamicComponent=za,ue.FXErrorReminder=_s,ue.FXFileEmbeddedContent=v1,ue.FXFileOperation=Ri,ue.FXGenerateProcess=Pi,ue.FXHistory=Vi,ue.FXHitlQuestion=Fs,ue.FXInputRecommend=Is,ue.FXKnowledgeTracePanel=Ac,ue.FXKnowledgeTraceStrip=Ls,ue.FXLinkCard=Bs,ue.FXListView=Xi,ue.FXMarkdown=Ta,ue.FXMarkdownPreview=ra,ue.FXNav=Wi,ue.FXPopover=Qn,ue.FXPopoverDirective=R2,ue.FXPrompt=Ds,ue.FXPrompts=La,ue.FXReferenceSources=Os,ue.FXSearchBox=Gi,ue.FXSearchBoxContainer=Ms,ue.FXSplitter=Fa,ue.FXSplitterPane=Mi,ue.FXStartedTodo=Jn,ue.FXSuggestion=Hi,ue.FXTodo=qi,ue.FXTodoListItemView=ms,ue.FXTodoListView=Ci,ue.FXToolUse=_a,ue.FXToolUseBatch=ji,ue.FXUnknownEnterprise=Rs,ue.FXUserAuth=Ti,ue.FXWelcome=$i,ue.FXWidgetContainer=Na,ue.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=bc,ue.PREVIEW_BRIDGE_SOURCE=pc,ue.PREVIEW_BRIDGE_VERSION=gc,ue.agentThinkingProps=ch,ue.aggregateKnowledgeTraceByDoc=hh,ue.appPreviewMessageProps=Vt,ue.attachmentPreviewProps=ih,ue.bubbleActionProps=q2,ue.bubbleProps=so,ue.carouselItemProps=$2,ue.carouselProps=j2,ue.chatHistoryProps=Qf,ue.chatPreviewProps=W2,ue.clonePreviewPayloadForPostMessage=zf,ue.closeFXConfirmDialog=Ab,ue.codingMessageProps=Xf,ue.confirmDialogProps=Lf,ue.createPreviewIframeSdk=mb,ue.default=By,ue.extractFileIdFromRuntimeDownloadUrl=l1,ue.fileEmbeddedContentProps=g1,ue.fileOperationMessageProps=Zf,ue.generateProcessProps=Kf,ue.getCustomClass=Ut,ue.getCustomStyle=n0,ue.getDynamicCompState=c9,ue.getDynamicComponentRegistryDebugSnapshot=Yu,ue.invokeAgentWorkbenchSdkApi=hb,ue.isImageUrl=d1,ue.isPreviewBridgeAssistantMessage=Ff,ue.listViewProps=wc,ue.loadDynamicComponent=_2,ue.markdownMessageProps=s2,ue.markdownPreviewProps=G2,ue.navProps=sh,ue.normalizeDynamicComponentRegisterClaim=h0,ue.openFXConfirmDialog=kb,ue.overflowTooltipDirective=p1,ue.peekDynamicComponentRegisterBootstrapId=s9,ue.popoverProps=B2,ue.postAssistantToPreviewIframe=If,ue.postDynamicComponentAssistantMessage=h9,ue.previewLayoutBridge=bb,ue.promptProps=th,ue.promptsProps=Jf,ue.registerPreviewChromeSdk=gb,ue.renderIconNode=uo,ue.renderNode=Ja,ue.resolveHrefForAttachmentDownload=da,ue.resolveRuntimeAttachmentDownloadUrl=ml,ue.searchBoxContainerProps=uh,ue.searchBoxProps=lh,ue.splitterProps=U2,ue.startedTodoProps=P2,ue.subscribeAssistantInPreviewIframe=Bf,ue.suggestionProps=rh,ue.todoListItemProps=H2,ue.todoListViewProps=V2,ue.todoProps=nh,ue.triggerAttachmentDownload=lo,ue.unloadDynamicComponent=F2,ue.useAttachment=b1,ue.useSequentialStreaming=co,ue.useStreamingOutput=f1,ue.useTimer=pl,ue.useToolIcon=gl,ue.welcomeProps=ah,ue.widgetContainerProps=T2,Object.defineProperties(ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|