llama.cpp/examples/server/public/index.html

667 lines
3.0 MiB
HTML
Raw Normal View History

<!--
This is a single file build of the frontend.
It is automatically generated by the build process.
Do not edit this file directly.
To make changes, refer to the "Web UI" section in the README.
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="color-scheme" content="light dark">
<title>🦙 llama.cpp - chat</title>
2024-12-12 20:46:06 +00:00
<script type="module" crossorigin>var Jp=t=>{throw TypeError(t)};var al=(t,e,r)=>e.has(t)||Jp("Cannot "+r);var nn=(t,e,r)=>(al(t,e,"read from private field"),r?r.call(t):e.get(t)),la=(t,e,r)=>e.has(t)?Jp("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Wa=(t,e,r,n)=>(al(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),il=(t,e,r)=>(al(t,e,"access private method"),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-12-12 20:46:06 +00:00
**//*! #__NO_SIDE_EFFECTS__ */function Mt(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const we={},fa=[],Ct=()=>{},Za=()=>!1,ea=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),d0=t=>t.startsWith("onUpdate:"),Le=Object.assign,_0=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},UC=Object.prototype.hasOwnProperty,Ue=(t,e)=>UC.call(t,e),ue=Array.isArray,ga=t=>Ba(t)==="[object Map]",ta=t=>Ba(t)==="[object Set]",jp=t=>Ba(t)==="[object Date]",GC=t=>Ba(t)==="[object RegExp]",be=t=>typeof t=="function",Ce=t=>typeof t=="string",$t=t=>typeof t=="symbol",He=t=>t!==null&&typeof t=="object",p0=t=>(He(t)||be(t))&&be(t.then)&&be(t.catch),Kh=Object.prototype.toString,Ba=t=>Kh.call(t),YC=t=>Ba(t).slice(8,-1),ho=t=>Ba(t)==="[object Object]",m0=t=>Ce(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Tn=Mt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qC=Mt("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),bo=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},HC=/-(\w)/g,Je=bo(t=>t.replace(HC,(e,r)=>r?r.toUpperCase():"")),zC=/\B([A-Z])/g,Bt=bo(t=>t.replace(zC,"-$1").toLowerCase()),ra=bo(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ea=bo(t=>t?`on${ra(t)}`:""),Pt=(t,e)=>!Object.is(t,e),Sa=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},ya=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},Ps=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Fs=t=>{const e=Ce(t)?Number(t):NaN;return isNaN(e)?t:e};let em;const zn=()=>em||(em=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function VC(t,e){return t+JSON.stringify(e,(r,n)=>typeof n=="function"?n.toString():n)}const $C="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",WC=Mt($C);function Ua(t){if(ue(t)){const e={};for(let r=0;r<t.length;r++){const n=t[r],a=Ce(n)?Qh(n):Ua(n);if(a)for(const i in a)e[i]=a[i]}return e}else if(Ce(t)||He(t))return t}const KC=/;(?![^(]*\))/g,QC=/:([^]+)/,XC=/\/\*[^]*?\*\//g;function Qh(t){const e={};return t.replace(XC,"").split(KC).forEach(r=>{if(r){const n=r.split(QC);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function ZC(t){if(!t)return"";if(Ce(t))return t;let e="";for(const r in t){const n=t[r];if(Ce(n)||typeof n=="number"){const a=r.startsWith("--")?r:Bt(r);e+=`${a}:${n};`}}return e}function Ga(t){let e="";if(Ce(t))e=t;else if(ue(t))for(let r=0;r<t.length;r++){const n=Ga(t[r]);n&&(e+=n+" ")}else if(He(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function JC(t){if(!t)return null;let{class:e,style:r}=t;return e&&!Ce(e)&&(t.class=Ga(e)),r&&(t.style=Ua(r)),t}const jC="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",eR="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,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,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,poly
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-12-12 20:46:06 +00:00
**/let kt;class g0{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=kt,!e&&kt&&(this.index=(kt.scopes||(kt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].pause();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].resume();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].resume()}}run(e){if(this._active){const r=kt;try{return kt=this,e()}finally{kt=r}}}on(){kt=this}off(){kt=this.parent}stop(e){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function mR(t){return new g0(t)}function eb(){return kt}function fR(t,e=!1){kt&&kt.cleanups.push(t)}let $e;const ol=new WeakSet;class mi{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,kt&&kt.active&&kt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ol.has(this)&&(ol.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||rb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,rm(this),nb(this);const e=$e,r=Sr;$e=this,Sr=!0;try{return this.fn()}finally{ab(this),$e=e,Sr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)h0(e);this.deps=this.depsTail=void 0,rm(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ol.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){b_(this)&&this.run()}get dirty(){return b_(this)}}let tb=0,ni,ai;function rb(t,e=!1){if(t.flags|=8,e){t.next=ai,ai=t;return}t.next=ni,ni=t}function E0(){tb++}function S0(){if(--tb>0)return;if(ai){let e=ai;for(ai=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;ni;){let e=ni;for(ni=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function nb(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function ab(t){let e,r=t.depsTail,n=r;for(;n;){const a=n.prevDep;n.version===-1?(n===r&&(r=a),h0(n),gR(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}t.deps=e,t.depsTail=r}function b_(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(ib(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function ib(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===fi))return;t.globalVersion=fi;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!b_(t)){t.flags&=-3;return}const r=$e,n=Sr;$e=t,Sr=!0;try{nb(t);const a=t.fn(t._value);(e.version===0||Pt(a,t._value))&&(t._value=a,e.version++)}catch(a){throw e.version++,a}finally{$e=r,Sr=n,ab(t),t.flags&=-3}}function h0(t,e=!1){const{dep:r,prevSub:n,nextSub:a}=t;if(n&&(n.nextSub=a,t.prevSub=void 0),a&&(a.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)h0(i,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function gR(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}function ER(t,e){t.effect instanceof mi&&(t=t.effect.fn);const r=new mi(t);e&&Le(r,e);try{r.run()}catch(a){throw r.stop(),a}const n=r.run.bind(r);return n.effect=r,n}function SR(t){t.effect.stop()}let Sr=!0;const sb=[];function jr(){sb.push(Sr),Sr=!1}function en(){const t=sb.pop();Sr=t===void 0?!0:t}function rm(t){const{cleanup:e}=t;if(t
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-12-12 20:46:06 +00:00
**/const $n=[];function jR(t){$n.push(t)}function ey(){$n.pop()}let ul=!1;function cn(t,...e){if(ul)return;ul=!0,jr();const r=$n.length?$n[$n.length-1].component:null,n=r&&r.appContext.config.warnHandler,a=ty();if(n)na(n,r,11,[t+e.map(i=>{var s,o;return(o=(s=i.toString)==null?void 0:s.call(i))!=null?o:JSON.stringify(i)}).join(""),r&&r.proxy,a.map(({vnode:i})=>`at <${I1(r,i.type)}>`).join(`
`),a]);else{const i=[`[Vue warn]: ${t}`,...e];a.length&&i.push(`
`,...ry(a)),console.warn(...i)}en(),ul=!1}function ty(){let t=$n[$n.length-1];if(!t)return[];const e=[];for(;t;){const r=e[0];r&&r.vnode===t?r.recurseCount++:e.push({vnode:t,recurseCount:0});const n=t.component&&t.component.parent;t=n&&n.vnode}return e}function ry(t){const e=[];return t.forEach((r,n)=>{e.push(...n===0?[]:[`
`],...ny(r))}),e}function ny({vnode:t,recurseCount:e}){const r=e>0?`... (${e} recursive calls)`:"",n=t.component?t.component.parent==null:!1,a=` at <${I1(t.component,t.type,n)}`,i=">"+r;return t.props?[a,...ay(t.props),i]:[a+i]}function ay(t){const e=[],r=Object.keys(t);return r.slice(0,3).forEach(n=>{e.push(...vb(n,t[n]))}),r.length>3&&e.push(" ..."),e}function vb(t,e,r){return Ce(e)?(e=JSON.stringify(e),r?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?r?e:[`${t}=${e}`]:pt(e)?(e=vb(t,Me(e.value),!0),r?e:[`${t}=Ref<`,e,">"]):be(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Me(e),r?e:[`${t}=`,e])}function iy(t,e){}const sy={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},oy={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function na(t,e,r,n){try{return n?t(...n):t()}catch(a){aa(a,e,r)}}function ur(t,e,r,n){if(be(t)){const a=na(t,e,r,n);return a&&p0(a)&&a.catch(i=>{aa(i,e,r)}),a}if(ue(t)){const a=[];for(let i=0;i<t.length;i++)a.push(ur(t[i],e,r,n));return a}}function aa(t,e,r,n=!0){const a=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||we;if(e){let o=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${r}`;for(;o;){const u=o.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](t,l,c)===!1)return}o=o.parent}if(i){jr(),na(i,null,10,[t,l,c]),en();return}}ly(t,r,a,n,s)}function ly(t,e,r,n=!0,a=!1){if(a)throw t;console.error(t)}const Ft=[];let Cr=-1;const ha=[];let _n=null,ma=0;const Cb=Promise.resolve();let Gs=null;function Io(t){const e=Gs||Cb;return t?e.then(this?t.bind(this):t):e}function cy(t){let e=Cr+1,r=Ft.length;for(;e<r;){const n=e+r>>>1,a=Ft[n],i=Si(a);i<t||i===t&&a.flags&2?e=n+1:r=n}return e}function C0(t){if(!(t.flags&1)){const e=Si(t),r=Ft[Ft.length-1];!r||!(t.flags&2)&&e>=Si(r)?Ft.push(t):Ft.splice(cy(e),0,t),t.flags|=1,Rb()}}function Rb(){Gs||(Gs=Cb.then(yb))}function Ei(t){ue(t)?ha.push(...t):_n&&t.id===-1?_n.splice(ma+1,0,t):t.flags&1||(ha.push(t),t.flags|=1),Rb()}function am(t,e,r=Cr+1){for(;r<Ft.length;r++){const n=Ft[r];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Ft.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ys(t){if(ha.length){const e=[...new Set(ha)].sort((r,n)=>Si(r)-Si(n));if(ha.length=0,_n){_n.push(...e);return}for(_n=e,ma=0;ma<_n.length;ma++){const r=_n[ma];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}_n=null,ma=0}}const Si=t=>t.id==null?t.flags&2?-1:1/0:t.id;function yb(t){try{for(Cr=0;Cr<Ft.length;Cr++){const e=Ft[Cr];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),na(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Cr<Ft.length;Cr++){const e=Ft[Cr];e&&(e.flags&=-2)}Cr=-1,Ft.length=0,Ys(),Gs=null,(Ft.length||ha.length)&&yb()}}let gr,Ja=[],R_=!1;function Do(t,...e){gr?gr.emit(t,...e):R_||Ja.push({event:t,args:e})}function R0(t,e){var r,n;gr=t,gr?(gr.enabled=!0,Ja.forEach(({event:a,args:i})=>gr.emit(a,...i)),Ja=[]):typeof window<"u"&&window.HTMLE
- rendered on server: ${JSON.stringify(h.data)}
- expected on client: ${JSON.stringify(T.children)}`),Ln(),h.data=T.children),ee=i(h));break;case ct:C(h)?(ee=i(h),R(T.el=h.content.firstChild,h,y)):Q!==8||D?ee=F():ee=i(h);break;case Rn:if(D&&(h=i(h),Q=h.nodeType),Q===1||Q===3){ee=h;const U=!T.children.length;for(let Y=0;Y<T.staticCount;Y++)U&&(T.children+=ee.nodeType===1?ee.outerHTML:ee.data),Y===T.staticCount-1&&(T.anchor=ee),ee=i(ee);return D?i(ee):ee}else F();break;case _t:D?ee=g(h,T,y,O,k,M):ee=F();break;default:if(V&1)(Q!==1||T.type.toLowerCase()!==h.tagName.toLowerCase())&&!C(h)?ee=F():ee=m(h,T,y,O,k,M);else if(V&6){T.slotScopeIds=k;const U=s(h);if(D?ee=v(h):Gn(h)&&h.data==="teleport start"?ee=v(h,h.data,"teleport end"):ee=i(h),e(T,U,null,y,O,os(U),M),Cn(T)&&!T.type.__asyncResolved){let Y;D?(Y=Ze(_t),Y.anchor=ee?ee.previousSibling:U.lastChild):Y=h.nodeType===3?B0(""):Ze("div"),Y.el=h,T.component.subTree=Y}}else V&64?Q!==8?ee=F():ee=T.type.hydrate(h,T,y,O,k,M,t,p):V&128?ee=T.type.hydrate(h,T,y,O,os(s(h)),k,M,t,d):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&cn("Invalid HostVNode type:",B,`(${typeof B})`)}return P!=null&&bi(P,null,O,T),ee},m=(h,T,y,O,k,M)=>{M=M||!!T.dynamicChildren;const{type:D,props:F,patchFlag:B,shapeFlag:P,dirs:V,transition:J}=T,Q=D==="input"||D==="option";if(Q||B!==-1){V&&Rr(T,null,y,"created");let ee=!1;if(C(h)){ee=l1(null,J)&&y&&y.vnode.props&&y.vnode.props.appear;const Y=h.content.firstChild;ee&&J.beforeEnter(Y),R(Y,h,y),T.el=h=Y}if(P&16&&!(F&&(F.innerHTML||F.textContent))){let Y=p(h.firstChild,T,h,y,O,k,M),oe=!1;for(;Y;){ja(h,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!oe&&(cn("Hydration children mismatch on",h,`
Server rendered element contains more child nodes than client vdom.`),oe=!0),Ln());const pe=Y;Y=Y.nextSibling,o(pe)}}else if(P&8){let Y=T.children;Y[0]===`
`&&(h.tagName==="PRE"||h.tagName==="TEXTAREA")&&(Y=Y.slice(1)),h.textContent!==Y&&(ja(h,0)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&cn("Hydration text content mismatch on",h,`
- rendered on server: ${h.textContent}
- expected on client: ${T.children}`),Ln()),h.textContent=T.children)}if(F){if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||Q||!M||B&48){const Y=h.tagName.includes("-");for(const oe in F)__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!(V&&V.some(pe=>pe.dir.created))&&Oy(h,oe,F[oe],T,y)&&Ln(),(Q&&(oe.endsWith("value")||oe==="indeterminate")||ea(oe)&&!Tn(oe)||oe[0]==="."||Y)&&n(h,oe,null,F[oe],void 0,y)}else if(F.onClick)n(h,"onClick",null,F.onClick,void 0,y);else if(B&4&&vn(F.style))for(const Y in F.style)F.style[Y]}let U;(U=F&&F.onVnodeBeforeMount)&&qt(U,y,T),V&&Rr(T,null,y,"beforeMount"),((U=F&&F.onVnodeMounted)||V||ee)&&E1(()=>{U&&qt(U,y,T),ee&&J.enter(h),V&&Rr(T,null,y,"mounted")},O)}return h.nextSibling},p=(h,T,y,O,k,M,D)=>{D=D||!!T.dynamicChildren;const F=T.children,B=F.length;let P=!1;for(let V=0;V<B;V++){const J=D?F[V]:F[V]=zt(F[V]),Q=J.type===zr;h?(Q&&!D&&V+1<B&&zt(F[V+1]).type===zr&&(l(a(h.data.slice(J.children.length)),y,i(h)),h.data=J.children),h=d(h,J,O,k,M,D)):Q&&!J.children?l(J.el=a(""),y):(ja(y,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!P&&(cn("Hydration children mismatch on",y,`
Server rendered element contains fewer child nodes than client vdom.`),P=!0),Ln()),r(null,J,y,null,O,k,os(y),M))}return h},g=(h,T,y,O,k,M)=>{const{slotScopeIds:D}=T;D&&(k=k?k.concat(D):D);const F=s(h),B=p(i(h),T,F,y,O,k,M);return B&&Gn(B)&&B.data==="]"?i(T.anchor=B):(Ln(),l(T.anchor=c("]"),F,B),B)},E=(h,T,y,O,k,M)=>{if(ja(h.parentElement,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&cn(`Hydration node mismatch:
- rendered on server:`,h,h.nodeType===3?"(text)":Gn(h)&&h.data==="["?"(start of fragment)":"",`
- expected on client:`,T.type),Ln()),T.el=null,M){const B=v(h);for(;;){const P=i(h);if(P&&P!==B)o(P);else break}}const D=i(h),F=s(h);return o(h),r(null,T,F,D,y,O,os(F),k),y&&(y.vnode.el=T.el,Bo(y,T.el)),D},v=(h,T="[",y="]")=>{let O=0;for(;h;)if(h=i(h),h&&Gn(h)&&(h.data===T&&O++,h.data===y)){if(O===0)return i(h);O--}return h},R=(h,T,y)=>{const O=T.parentNode;O&&O.replaceChild(h,T);let k=y;for(;k;)k.vnode.el===T&&(k.vnode.el=k.subTree.el=h),k=k.parent},C=h=>h.nodeType===1&&h.tagName==="TEMPLATE";return[u,d]}function Oy(t,e,r,n,a){let i,s,o,l;if(e==="class")o=t.getAttribute("class"),l=Ga(r),Ay(um(o||""),um(l))||(i=2,s="class");else if(e==="style"){o=t.getAttribute("style")||"",l=Ce(r)?r:ZC(Ua(r));const c=dm(o),u=dm(l);if(n.dirs)for(const{dir:d,value:m}of n.dirs)d.name==="show"&&!m&&u.set("display","none");a&&kb(a,n,u),Iy(c,u)||(i=3,s="style")}else(t instanceof SVGElement&&cR(e)||t instanceof HTMLElement&&(tm(e)||lR(e)))&&(tm(e)?(o=t.hasAttribute(e),l=f0(r)):r==null?(o=t.hasAttribute(e),l=!1):(t.hasAttribute(e)?o=t.getAttribute(e):e==="value"&&t.tagName==="TEXTAREA"?o=t.value:o=!1,l=uR(r)?String(r):!1),o!==l&&(i=4,s=e));if(i!=null&&!ja(t,i)){const c=m=>m===!1?"(not rendered)":`${s}="${m}"`,u=`Hydration ${Pb[i]} mismatch on`,d=`
- rendered on server: ${c(o)}
- expected on client: ${c(l)}
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
2024-12-12 20:46:06 +00:00
You should fix the source of the mismatch.`;return cn(u,t,d),!0}return!1}function um(t){return new Set(t.trim().split(/\s+/))}function Ay(t,e){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}function dm(t){const e=new Map;for(const r of t.split(";")){let[n,a]=r.split(":");n=n.trim(),a=a&&a.trim(),n&&a&&e.set(n,a)}return e}function Iy(t,e){if(t.size!==e.size)return!1;for(const[r,n]of t)if(n!==e.get(r))return!1;return!0}function kb(t,e,r){const n=t.subTree;if(t.getCssVars&&(e===n||n&&n.type===_t&&n.children.includes(e))){const a=t.getCssVars();for(const i in a)r.set(`--${_R(i)}`,String(a[i]))}e===n&&t.parent&&kb(t.parent,t.vnode,r)}const _m="data-allow-mismatch",Pb={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ja(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(_m);)t=t.parentElement;const r=t&&t.getAttribute(_m);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return e===0&&n.includes("children")?!0:r.split(",").includes(Pb[e])}}const Dy=zn().requestIdleCallback||(t=>setTimeout(t,1)),xy=zn().cancelIdleCallback||(t=>clearTimeout(t)),My=(t=1e4)=>e=>{const r=Dy(e,{timeout:t});return()=>xy(r)};function wy(t){const{top:e,left:r,bottom:n,right:a}=t.getBoundingClientRect(),{innerHeight:i,innerWidth:s}=window;return(e>0&&e<i||n>0&&n<i)&&(r>0&&r<s||a>0&&a<s)}const Ly=t=>(e,r)=>{const n=new IntersectionObserver(a=>{for(const i of a)if(i.isIntersecting){n.disconnect(),e();break}},t);return r(a=>{if(a instanceof Element){if(wy(a))return e(),n.disconnect(),!1;n.observe(a)}}),()=>n.disconnect()},ky=t=>e=>{if(t){const r=matchMedia(t);if(r.matches)e();else return r.addEventListener("change",e,{once:!0}),()=>r.removeEventListener("change",e)}},Py=(t=[])=>(e,r)=>{Ce(t)&&(t=[t]);let n=!1;const a=s=>{n||(n=!0,i(),e(),s.target.dispatchEvent(new s.constructor(s.type,s)))},i=()=>{r(s=>{for(const o of t)s.removeEventListener(o,a)})};return r(s=>{for(const o of t)s.addEventListener(o,a,{once:!0})}),i};function Fy(t,e){if(Gn(t)&&t.data==="["){let r=1,n=t.nextSibling;for(;n;){if(n.nodeType===1){if(e(n)===!1)break}else if(Gn(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else e(t)}const Cn=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function By(t){be(t)&&(t={loader:t});const{loader:e,loadingComponent:r,errorComponent:n,delay:a=200,hydrate:i,timeout:s,suspensible:o=!0,onError:l}=t;let c=null,u,d=0;const m=()=>(d++,c=null,p()),p=()=>{let g;return c||(g=c=e().catch(E=>{if(E=E instanceof Error?E:new Error(String(E)),l)return new Promise((v,R)=>{l(E,()=>v(m()),()=>R(E),d+1)});throw E}).then(E=>g!==c&&c?c:(E&&(E.__esModule||E[Symbol.toStringTag]==="Module")&&(E=E.default),u=E,E)))};return Ya({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(g,E,v){const R=i?()=>{const C=i(v,h=>Fy(g,h));C&&(E.bum||(E.bum=[])).push(C)}:v;u?R():p().then(()=>!E.isUnmounted&&R())},get __asyncResolved(){return u},setup(){const g=Et;if(I0(g),u)return()=>_l(u,g);const E=h=>{c=null,aa(h,g,13,!n)};if(o&&g.suspense||Oa)return p().then(h=>()=>_l(h,g)).catch(h=>(E(h),()=>n?Ze(n,{error:h}):null));const v=ii(!1),R=ii(),C=ii(!!a);return a&&setTimeout(()=>{C.value=!1},a),s!=null&&setTimeout(()=>{if(!v.value&&!R.value){const h=new Error(`Async component timed out after ${s}ms.`);E(h),R.value=h}},s),p().then(()=>{v.value=!0,g.parent&&Yi(g.parent.vnode)&&g.parent.update()}).catch(h=>{E(h),R.value=h}),()=>{if(v.value&&u)return _l(u,g);if(R.value&&n)return Ze(n,{error:R.value});if(r&&!C.value)return Ze(r)}}})}function _l(t,e){const{ref:r,props:n,children:a,ce:i}=e.vnode,s=Ze(t,n,a);return s.ref=r,s.ce=i,delete e.vnode.ce,s}const Yi=t=>t.type.__isKeepAlive,Uy={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=mr(),n=r.ctx;if(!n.renderer)return()=>{const C=e.default&&e.default();return C&&C.length===1?C[0]:C};const a=new Map,i=new Set;let s=null;__VUE_PROD_DEVTOOLS__&&(r.__v_cache=a);const o=r.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=n,m=d("div");n.activate=(C,h,T,y,O)=>{const
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-12-12 20:46:06 +00:00
**/let U_;const bm=typeof window<"u"&&window.trustedTypes;if(bm)try{U_=bm.createPolicy("vue",{createHTML:t=>t})}catch{}const x1=U_?t=>U_.createHTML(t):t=>t,_O="http://www.w3.org/2000/svg",pO="http://www.w3.org/1998/Math/MathML",Ur=typeof document<"u"?document:null,Tm=Ur&&Ur.createElement("template"),mO={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const a=e==="svg"?Ur.createElementNS(_O,t):e==="mathml"?Ur.createElementNS(pO,t):r?Ur.createElement(t,{is:r}):Ur.createElement(t);return t==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:t=>Ur.createTextNode(t),createComment:t=>Ur.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ur.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,a,i){const s=r?r.previousSibling:e.lastChild;if(a&&(a===i||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),r),!(a===i||!(a=a.nextSibling)););else{Tm.innerHTML=x1(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const o=Tm.content;if(n==="svg"||n==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,r)}return[s?s.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},an="transition",Qa="animation",Aa=Symbol("_vtc"),M1={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},w1=Le({},A0,M1),fO=t=>(t.displayName="Transition",t.props=w1,t),gO=fO((t,{slots:e})=>Y0(wb,L1(t),e)),Pn=(t,e=[])=>{ue(t)?t.forEach(r=>r(...e)):t&&t(...e)},vm=t=>t?ue(t)?t.some(e=>e.length>1):t.length>1:!1;function L1(t){const e={};for(const P in t)P in M1||(e[P]=t[P]);if(t.css===!1)return e;const{name:r="v",type:n,duration:a,enterFromClass:i=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:o=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:u=o,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:m=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=t,g=EO(a),E=g&&g[0],v=g&&g[1],{onBeforeEnter:R,onEnter:C,onEnterCancelled:h,onLeave:T,onLeaveCancelled:y,onBeforeAppear:O=R,onAppear:k=C,onAppearCancelled:M=h}=e,D=(P,V,J,Q)=>{P._enterCancelled=Q,un(P,V?u:o),un(P,V?c:s),J&&J()},F=(P,V)=>{P._isLeaving=!1,un(P,d),un(P,p),un(P,m),V&&V()},B=P=>(V,J)=>{const Q=P?k:C,ee=()=>D(V,P,J);Pn(Q,[V,ee]),Cm(()=>{un(V,P?l:i),vr(V,P?u:o),vm(Q)||Rm(V,n,E,ee)})};return Le(e,{onBeforeEnter(P){Pn(R,[P]),vr(P,i),vr(P,s)},onBeforeAppear(P){Pn(O,[P]),vr(P,l),vr(P,c)},onEnter:B(!1),onAppear:B(!0),onLeave(P,V){P._isLeaving=!0;const J=()=>F(P,V);vr(P,d),P._enterCancelled?(vr(P,m),G_()):(G_(),vr(P,m)),Cm(()=>{P._isLeaving&&(un(P,d),vr(P,p),vm(T)||Rm(P,n,v,J))}),Pn(T,[P,J])},onEnterCancelled(P){D(P,!1,void 0,!0),Pn(h,[P])},onAppearCancelled(P){D(P,!0,void 0,!0),Pn(M,[P])},onLeaveCancelled(P){F(P),Pn(y,[P])}})}function EO(t){if(t==null)return null;if(He(t))return[gl(t.enter),gl(t.leave)];{const e=gl(t);return[e,e]}}function gl(t){return Fs(t)}function vr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[Aa]||(t[Aa]=new Set)).add(e)}function un(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[Aa];r&&(r.delete(e),r.size||(t[Aa]=void 0))}function Cm(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let SO=0;function Rm(t,e,r,n){const a=t._endId=++SO,i=()=>{a===t._endId&&n()};if(r!=null)return setTimeout(i,r);const{type:s,timeout:o,propCount:l}=k1(t,e);if(!s)return n();const c=s+"end";let u=0;const d=()=>{t.removeEventListener(c,m),i()},m=p=>{p.target===t&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},o+1),t.addEventListener(c,m)}function k1(t,e){const r=window.getComputedStyle(t),n=g=>(r[g]||"").split(", "),a=n(`${an}Delay`),i=n(`${an}Duration`),s=ym(a,i),o=n(`${Qa}Delay`),l=n(`${Qa}Durati
* @vue/compiler-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-12-12 20:46:06 +00:00
**/const Ri=Symbol(""),di=Symbol(""),z0=Symbol(""),eo=Symbol(""),eT=Symbol(""),jn=Symbol(""),tT=Symbol(""),rT=Symbol(""),V0=Symbol(""),$0=Symbol(""),Vi=Symbol(""),W0=Symbol(""),nT=Symbol(""),K0=Symbol(""),Q0=Symbol(""),X0=Symbol(""),Z0=Symbol(""),J0=Symbol(""),j0=Symbol(""),aT=Symbol(""),iT=Symbol(""),Go=Symbol(""),to=Symbol(""),ep=Symbol(""),tp=Symbol(""),yi=Symbol(""),$i=Symbol(""),rp=Symbol(""),q_=Symbol(""),tA=Symbol(""),H_=Symbol(""),ro=Symbol(""),rA=Symbol(""),nA=Symbol(""),np=Symbol(""),aA=Symbol(""),iA=Symbol(""),ap=Symbol(""),sT=Symbol(""),Da={[Ri]:"Fragment",[di]:"Teleport",[z0]:"Suspense",[eo]:"KeepAlive",[eT]:"BaseTransition",[jn]:"openBlock",[tT]:"createBlock",[rT]:"createElementBlock",[V0]:"createVNode",[$0]:"createElementVNode",[Vi]:"createCommentVNode",[W0]:"createTextVNode",[nT]:"createStaticVNode",[K0]:"resolveComponent",[Q0]:"resolveDynamicComponent",[X0]:"resolveDirective",[Z0]:"resolveFilter",[J0]:"withDirectives",[j0]:"renderList",[aT]:"renderSlot",[iT]:"createSlots",[Go]:"toDisplayString",[to]:"mergeProps",[ep]:"normalizeClass",[tp]:"normalizeStyle",[yi]:"normalizeProps",[$i]:"guardReactiveProps",[rp]:"toHandlers",[q_]:"camelize",[tA]:"capitalize",[H_]:"toHandlerKey",[ro]:"setBlockTracking",[rA]:"pushScopeId",[nA]:"popScopeId",[np]:"withCtx",[aA]:"unref",[iA]:"isRef",[ap]:"withMemo",[sT]:"isMemoSame"};function sA(t){Object.getOwnPropertySymbols(t).forEach(e=>{Da[e]=t[e]})}const tr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function oA(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:tr}}function Ni(t,e,r,n,a,i,s,o=!1,l=!1,c=!1,u=tr){return t&&(o?(t.helper(jn),t.helper(wa(t.inSSR,c))):t.helper(Ma(t.inSSR,c)),s&&t.helper(J0)),{type:13,tag:e,props:r,children:n,patchFlag:a,dynamicProps:i,directives:s,isBlock:o,disableTracking:l,isComponent:c,loc:u}}function Kn(t,e=tr){return{type:17,loc:e,elements:t}}function sr(t,e=tr){return{type:15,loc:e,properties:t}}function ut(t,e){return{type:16,loc:tr,key:Ce(t)?Ne(t,!0):t,value:e}}function Ne(t,e=!1,r=tr,n=0){return{type:4,loc:r,content:t,isStatic:e,constType:e?3:n}}function hr(t,e=tr){return{type:8,loc:e,children:t}}function gt(t,e=[],r=tr){return{type:14,loc:r,callee:t,arguments:e}}function xa(t,e=void 0,r=!1,n=!1,a=tr){return{type:18,params:t,returns:e,newline:r,isSlot:n,loc:a}}function z_(t,e,r,n=!0){return{type:19,test:t,consequent:e,alternate:r,newline:n,loc:tr}}function lA(t,e,r=!1,n=!1){return{type:20,index:t,value:e,needPauseTracking:r,inVOnce:n,needArraySpread:!1,loc:tr}}function cA(t){return{type:21,body:t,loc:tr}}function Ma(t,e){return t||e?V0:$0}function wa(t,e){return t||e?tT:rT}function ip(t,{helper:e,removeHelper:r,inSSR:n}){t.isBlock||(t.isBlock=!0,r(Ma(n,t.isComponent)),e(jn),e(wa(n,t.isComponent)))}const qm=new Uint8Array([123,123]),Hm=new Uint8Array([125,125]);function zm(t){return t>=97&&t<=122||t>=65&&t<=90}function Xt(t){return t===32||t===10||t===9||t===12||t===13}function sn(t){return t===47||t===62||Xt(t)}function no(t){const e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}const Nt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class uA{constructor(e,r){this.stack=e,this.cbs=r,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=qm,this.delimiterClose=Hm,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.l
`);else if(xA(i.content)){const s=t[a-1]&&t[a-1].type,o=t[a+1]&&t[a+1].type;!s||!o||r&&(s===3&&(o===3||o===1)||s===1&&(o===3||o===1&&MA(i.content)))?(n=!0,t[a]=null):i.content=" "}else r&&(i.content=fT(i.content))}return n?t.filter(Boolean):t}function xA(t){for(let e=0;e<t.length;e++)if(!Xt(t.charCodeAt(e)))return!1;return!0}function MA(t){for(let e=0;e<t.length;e++){const r=t.charCodeAt(e);if(r===10||r===13)return!0}return!1}function fT(t){let e="",r=!1;for(let n=0;n<t.length;n++)Xt(t.charCodeAt(n))?r||(e+=" ",r=!0):(e+=t[n],r=!1);return e}function $_(t){(et[0]||Ii).children.push(t)}function lt(t,e){return{start:ot.getPos(t),end:e==null?e:ot.getPos(e),source:e==null?e:Rt(t,e)}}function wA(t){return lt(t.start.offset,t.end.offset)}function qn(t,e){t.end=ot.getPos(e),t.source=Rt(t.start.offset,e)}function LA(t){const e={type:6,name:t.rawName,nameLoc:lt(t.loc.start.offset,t.loc.start.offset+t.rawName.length),value:void 0,loc:t.loc};if(t.exp){const r=t.exp.loc;r.end.offset<t.loc.end.offset&&(r.start.offset--,r.start.column--,r.end.offset++,r.end.column++),e.value={type:2,content:t.exp.content,loc:r}}return e}function xs(t,e=!1,r,n=0,a=0){return Ne(t,e,r,n)}function Pr(t,e,r){Ge.onError(tt(t,lt(e,e)))}function kA(){ot.reset(),Ot=null,Pe=null,Yt="",Br=-1,Un=-1,et.length=0}function PA(t,e){if(kA(),Vr=t,Ge=Le({},_T),e){let a;for(a in e)e[a]!=null&&(Ge[a]=e[a])}ot.mode=Ge.parseMode==="html"?1:Ge.parseMode==="sfc"?2:0,ot.inXML=Ge.ns===1||Ge.ns===2;const r=e&&e.delimiters;r&&(ot.delimiterOpen=no(r[0]),ot.delimiterClose=no(r[1]));const n=Ii=oA([],t);return ot.parse(Vr),n.loc=lt(0,t.length),n.children=mT(n.children),Ii=null,n}function FA(t,e){Ms(t,void 0,e,gT(t,t.children[0]))}function gT(t,e){const{children:r}=t;return r.length===1&&e.type===1&&!io(e)}function Ms(t,e,r,n=!1,a=!1){const{children:i}=t,s=[];for(let u=0;u<i.length;u++){const d=i[u];if(d.type===1&&d.tagType===0){const m=n?0:Jt(d,r);if(m>0){if(m>=2){d.codegenNode.patchFlag=-1,s.push(d);continue}}else{const p=d.codegenNode;if(p.type===13){const g=p.patchFlag;if((g===void 0||g===512||g===1)&&ST(d,r)>=2){const E=hT(d);E&&(p.props=r.hoist(E))}p.dynamicProps&&(p.dynamicProps=r.hoist(p.dynamicProps))}}}else if(d.type===12&&(n?0:Jt(d,r))>=2){s.push(d);continue}if(d.type===1){const m=d.tagType===1;m&&r.scopes.vSlot++,Ms(d,t,r,!1,a),m&&r.scopes.vSlot--}else if(d.type===11)Ms(d,t,r,d.children.length===1,!0);else if(d.type===9)for(let m=0;m<d.branches.length;m++)Ms(d.branches[m],t,r,d.branches[m].children.length===1,a)}let o=!1;if(s.length===i.length&&t.type===1){if(t.tagType===0&&t.codegenNode&&t.codegenNode.type===13&&ue(t.codegenNode.children))t.codegenNode.children=l(Kn(t.codegenNode.children)),o=!0;else if(t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!ue(t.codegenNode.children)&&t.codegenNode.children.type===15){const u=c(t.codegenNode,"default");u&&(u.returns=l(Kn(u.returns)),o=!0)}else if(t.tagType===3&&e&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!ue(e.codegenNode.children)&&e.codegenNode.children.type===15){const u=ar(t,"slot",!0),d=u&&u.arg&&c(e.codegenNode,u.arg);d&&(d.returns=l(Kn(d.returns)),o=!0)}}if(!o)for(const u of s)u.codegenNode=r.cache(u.codegenNode);function l(u){const d=r.cache(u);return a&&r.hmr&&(d.needArraySpread=!0),d}function c(u,d){if(u.children&&!ue(u.children)&&u.children.type===15){const m=u.children.properties.find(p=>p.key===d||p.key.content===d);return m&&m.value}}s.length&&r.transformHoist&&r.transformHoist(i,r,t)}function Jt(t,e){const{constantCache:r}=e;switch(t.type){case 1:if(t.tagType!==0)return 0;const n=r.get(t);if(n!==void 0)return n;const a=t.codegenNode;if(a.type!==13||a.isBlock&&t.tag!=="svg"&&t.tag!=="foreignObject"&&t.tag!=="math")return 0;if(a.patchFlag===void 0){let s=3;const o=ST(t,e);if(o===0)return r.set(t,0),0;o<s&&(s=o);for(let l=0;l<t.children.length;l++){const c=Jt(t.children[l],e);if(c===0)return r.set(t,0),0;c<s&&(s=c)}if(s>1)for(let l=0;l<t.props.length;l++){const c=t.props[l];if(c.type===7&&c.name==="bind"&&c.exp){const u=Jt(c.exp,e);if(u=
`+" ".repeat(E),0)}return p}function zA(t,e={}){const r=HA(t,e);e.onContextCreated&&e.onContextCreated(r);const{mode:n,push:a,prefixIdentifiers:i,indent:s,deindent:o,newline:l,scopeId:c,ssr:u}=r,d=Array.from(t.helpers),m=d.length>0,p=!i&&n!=="module";VA(t,r);const E=u?"ssrRender":"render",R=(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(a(`function ${E}(${R}) {`),s(),p&&(a("with (_ctx) {"),s(),m&&(a(`const { ${d.map(TT).join(", ")} } = _Vue
`,-1),l())),t.components.length&&(bl(t.components,"component",r),(t.directives.length||t.temps>0)&&l()),t.directives.length&&(bl(t.directives,"directive",r),t.temps>0&&l()),t.filters&&t.filters.length&&(l(),bl(t.filters,"filter",r),l()),t.temps>0){a("let ");for(let C=0;C<t.temps;C++)a(`${C>0?", ":""}_temp${C}`)}return(t.components.length||t.directives.length||t.temps)&&(a(`
`,0),l()),u||a("return "),t.codegenNode?xt(t.codegenNode,r):a("null"),p&&(o(),a("}")),o(),a("}"),{ast:t,code:r.code,preamble:"",map:r.map?r.map.toJSON():void 0}}function VA(t,e){const{ssr:r,prefixIdentifiers:n,push:a,newline:i,runtimeModuleName:s,runtimeGlobalName:o,ssrRuntimeModuleName:l}=e,c=o,u=Array.from(t.helpers);if(u.length>0&&(a(`const _Vue = ${c}
`,-1),t.hoists.length)){const d=[V0,$0,Vi,W0,nT].filter(m=>u.includes(m)).map(TT).join(", ");a(`const { ${d} } = _Vue
`,-1)}$A(t.hoists,e),i(),a("return ")}function bl(t,e,{helper:r,push:n,newline:a,isTS:i}){const s=r(e==="filter"?Z0:e==="component"?K0:X0);for(let o=0;o<t.length;o++){let l=t[o];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),n(`const ${Ai(l,e)} = ${s}(${JSON.stringify(l)}${c?", true":""})${i?"!":""}`),o<t.length-1&&a()}}function $A(t,e){if(!t.length)return;e.pure=!0;const{push:r,newline:n}=e;n();for(let a=0;a<t.length;a++){const i=t[a];i&&(r(`const _hoisted_${a+1} = `),xt(i,e),n())}e.pure=!1}function cp(t,e){const r=t.length>3||!1;e.push("["),r&&e.indent(),Wi(t,e,r),r&&e.deindent(),e.push("]")}function Wi(t,e,r=!1,n=!0){const{push:a,newline:i}=e;for(let s=0;s<t.length;s++){const o=t[s];Ce(o)?a(o,-3):ue(o)?cp(o,e):xt(o,e),s<t.length-1&&(r?(n&&a(","),i()):n&&a(", "))}}function xt(t,e){if(Ce(t)){e.push(t,-3);return}if($t(t)){e.push(e.helper(t));return}switch(t.type){case 1:case 9:case 11:xt(t.codegenNode,e);break;case 2:WA(t,e);break;case 4:vT(t,e);break;case 5:KA(t,e);break;case 12:xt(t.codegenNode,e);break;case 8:CT(t,e);break;case 3:XA(t,e);break;case 13:ZA(t,e);break;case 14:jA(t,e);break;case 15:eI(t,e);break;case 17:tI(t,e);break;case 18:rI(t,e);break;case 19:nI(t,e);break;case 20:aI(t,e);break;case 21:Wi(t.body,e,!0,!1);break}}function WA(t,e){e.push(JSON.stringify(t.content),-3,t)}function vT(t,e){const{content:r,isStatic:n}=t;e.push(n?JSON.stringify(r):r,-3,t)}function KA(t,e){const{push:r,helper:n,pure:a}=e;a&&r(Ho),r(`${n(Go)}(`),xt(t.content,e),r(")")}function CT(t,e){for(let r=0;r<t.children.length;r++){const n=t.children[r];Ce(n)?e.push(n,-3):xt(n,e)}}function QA(t,e){const{push:r}=e;if(t.type===8)r("["),CT(t,e),r("]");else if(t.isStatic){const n=op(t.content)?t.content:JSON.stringify(t.content);r(n,-2,t)}else r(`[${t.content}]`,-3,t)}function XA(t,e){const{push:r,helper:n,pure:a}=e;a&&r(Ho),r(`${n(Vi)}(${JSON.stringify(t.content)})`,-3,t)}function ZA(t,e){const{push:r,helper:n,pure:a}=e,{tag:i,props:s,children:o,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:m,isComponent:p}=t;let g;l&&(g=String(l)),u&&r(n(J0)+"("),d&&r(`(${n(jn)}(${m?"true":""}), `),a&&r(Ho);const E=d?wa(e.inSSR,p):Ma(e.inSSR,p);r(n(E)+"(",-2,t),Wi(JA([i,s,o,g,c]),e),r(")"),d&&r(")"),u&&(r(", "),xt(u,e),r(")"))}function JA(t){let e=t.length;for(;e--&&t[e]==null;);return t.slice(0,e+1).map(r=>r||"null")}function jA(t,e){const{push:r,helper:n,pure:a}=e,i=Ce(t.callee)?t.callee:n(t.callee);a&&r(Ho),r(i+"(",-2,t),Wi(t.arguments,e),r(")")}function eI(t,e){const{push:r,indent:n,deindent:a,newline:i}=e,{properties:s}=t;if(!s.length){r("{}",-2,t);return}const o=s.length>1||!1;r(o?"{":"{ "),o&&n();for(let l=0;l<s.length;l++){const{key:c,value:u}=s[l];QA(c,e),r(": "),xt(u,e),l<s.length-1&&(r(","),i())}o&&a(),r(o?"}":" }")}function tI(t,e){cp(t.elements,e)}function rI(t,e){const{push:r,indent:n,deindent:a}=e,{params:i,returns:s,body:o,newline:l,isSlot:c}=t;c&&r(`_${Da[np]}(`),r("(",-2,t),ue(i)?Wi(i,e):i&&xt(i,e),r(") => "),(l||o)&&(r("{"),n()),s?(l&&r("return "),ue(s)?cp(s,e):xt(s,e)):o&&xt(o,e),(l||o)&&(a(),r("}")),c&&(t.isNonScopedSlot&&r(", undefined, true"),r(")"))}function nI(t,e){const{test:r,consequent:n,alternate:a,newline:i}=t,{push:s,indent:o,deindent:l,newline:c}=e;if(r.type===4){const d=!op(r.content);d&&s("("),vT(r,e),d&&s(")")}else s("("),xt(r,e),s(")");i&&o(),e.indentLevel++,i||s(" "),s("? "),xt(n,e),e.indentLevel--,i&&c(),i||s(" "),s(": ");const u=a.type===19;u||e.indentLevel++,xt(a,e),u||e.indentLevel--,i&&l(!0)}function aI(t,e){const{push:r,helper:n,indent:a,deindent:i,newline:s}=e,{needPauseTracking:o,needArraySpread:l}=t;l&&r("[...("),r(`_cache[${t.index}] || (`),o&&(a(),r(`${n(ro)}(-1`),t.inVOnce&&r(", true"),r("),"),s(),r("(")),r(`_cache[${t.index}] = `),xt(t.value,e),o&&(r(`).cacheIndex = ${t.index},`),s(),r(`${n(ro)}(1),`),s(),r(`_cache[${t.index}]`),i()),r(")"),l&&r(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\
* @vue/compiler-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-12-12 20:46:06 +00:00
**/const xT=Symbol(""),MT=Symbol(""),wT=Symbol(""),LT=Symbol(""),Q_=Symbol(""),kT=Symbol(""),PT=Symbol(""),FT=Symbol(""),BT=Symbol(""),UT=Symbol("");sA({[xT]:"vModelRadio",[MT]:"vModelCheckbox",[wT]:"vModelText",[LT]:"vModelSelect",[Q_]:"vModelDynamic",[kT]:"withModifiers",[PT]:"withKeys",[FT]:"vShow",[BT]:"Transition",[UT]:"TransitionGroup"});let ua;function xI(t,e=!1){return ua||(ua=document.createElement("div")),e?(ua.innerHTML=`<div foo="${t.replace(/"/g,"&quot;")}">`,ua.children[0].getAttribute("foo")):(ua.innerHTML=t,ua.textContent)}const MI={parseMode:"html",isVoidTag:sR,isNativeTag:t=>nR(t)||aR(t)||iR(t),isPreTag:t=>t==="pre",isIgnoreNewlineTag:t=>t==="pre"||t==="textarea",decodeEntities:xI,isBuiltInComponent:t=>{if(t==="Transition"||t==="transition")return BT;if(t==="TransitionGroup"||t==="transition-group")return UT},getNamespace(t,e,r){let n=e?e.ns:r;if(e&&n===2)if(e.tag==="annotation-xml"){if(t==="svg")return 1;e.props.some(a=>a.type===6&&a.name==="encoding"&&a.value!=null&&(a.value.content==="text/html"||a.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&t!=="mglyph"&&t!=="malignmark"&&(n=0);else e&&n===1&&(e.tag==="foreignObject"||e.tag==="desc"||e.tag==="title")&&(n=0);if(n===0){if(t==="svg")return 1;if(t==="math")return 2}return n}},wI=t=>{t.type===1&&t.props.forEach((e,r)=>{e.type===6&&e.name==="style"&&e.value&&(t.props[r]={type:7,name:"bind",arg:Ne("style",!0,e.loc),exp:LI(e.value.content,e.loc),modifiers:[],loc:e.loc})})},LI=(t,e)=>{const r=Qh(t);return Ne(JSON.stringify(r),!1,e,3)};function yn(t,e){return tt(t,e)}const kI=(t,e,r)=>{const{exp:n,loc:a}=t;return n||r.onError(yn(53,a)),e.children.length&&(r.onError(yn(54,a)),e.children.length=0),{props:[ut(Ne("innerHTML",!0,a),n||Ne("",!0))]}},PI=(t,e,r)=>{const{exp:n,loc:a}=t;return n||r.onError(yn(55,a)),e.children.length&&(r.onError(yn(56,a)),e.children.length=0),{props:[ut(Ne("textContent",!0),n?Jt(n,r)>0?n:gt(r.helperString(Go),[n],a):Ne("",!0))]}},FI=(t,e,r)=>{const n=DT(t,e,r);if(!n.props.length||e.tagType===1)return n;t.arg&&r.onError(yn(58,t.arg.loc));const{tag:a}=e,i=r.isCustomElement(a);if(a==="input"||a==="textarea"||a==="select"||i){let s=wT,o=!1;if(a==="input"||i){const l=Yo(e,"type");if(l){if(l.type===7)s=Q_;else if(l.value)switch(l.value.content){case"radio":s=xT;break;case"checkbox":s=MT;break;case"file":o=!0,r.onError(yn(59,t.loc));break}}else hA(e)&&(s=Q_)}else a==="select"&&(s=LT);o||(n.needRuntime=r.helper(s))}else r.onError(yn(57,t.loc));return n.props=n.props.filter(s=>!(s.key.type===4&&s.key.content==="modelValue")),n},BI=Mt("passive,once,capture"),UI=Mt("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),GI=Mt("left,right"),GT=Mt("onkeyup,onkeydown,onkeypress"),YI=(t,e,r,n)=>{const a=[],i=[],s=[];for(let o=0;o<e.length;o++){const l=e[o].content;l==="native"&&Oi("COMPILER_V_ON_NATIVE",r)||BI(l)?s.push(l):GI(l)?Vt(t)?GT(t.content.toLowerCase())?a.push(l):i.push(l):(a.push(l),i.push(l)):UI(l)?i.push(l):a.push(l)}return{keyModifiers:a,nonKeyModifiers:i,eventOptionModifiers:s}},sf=(t,e)=>Vt(t)&&t.content.toLowerCase()==="onclick"?Ne(e,!0):t.type!==4?hr(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t,qI=(t,e,r)=>IT(t,e,r,n=>{const{modifiers:a}=t;if(!a.length)return n;let{key:i,value:s}=n.props[0];const{keyModifiers:o,nonKeyModifiers:l,eventOptionModifiers:c}=YI(i,a,r,t.loc);if(l.includes("right")&&(i=sf(i,"onContextmenu")),l.includes("middle")&&(i=sf(i,"onMouseup")),l.length&&(s=gt(r.helper(kT),[s,JSON.stringify(l)])),o.length&&(!Vt(i)||GT(i.content.toLowerCase()))&&(s=gt(r.helper(PT),[s,JSON.stringify(o)])),c.length){const u=c.map(ra).join("");i=Vt(i)?Ne(`${i.content}${u}`,!0):hr(["(",i,`) + "${u}"`])}return{props:[ut(i,s)]}}),HI=(t,e,r)=>{const{exp:n,loc:a}=t;return n||r.onError(yn(61,a)),{props:[],needRuntime:r.helper(FT)}},zI=(t,e)=>{t.type===1&&t.tagType===0&&(t.tag==="script"||t.tag==="style")&&e.removeNode()},VI=[wI],$I={cloak:DI,html:kI,text:PI,model:FI,on:qI,show:HI};function WI(t,e={}){return II(t,Le({},MI,e,{nodeTransforms:[zI,...VI,...e.nodeTransforms||[]],directiveTransforms:Le({},$
* vue v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-12-12 20:46:06 +00:00
**/const of=Object.create(null);function KI(t,e){if(!Ce(t))if(t.nodeType)t=t.innerHTML;else return Ct;const r=VC(t,e),n=of[r];if(n)return n;if(t[0]==="#"){const o=document.querySelector(t);t=o?o.innerHTML:""}const a=Le({hoistStatic:!0,onError:void 0,onWarn:Ct},e);!a.isCustomElement&&typeof customElements<"u"&&(a.isCustomElement=o=>!!customElements.get(o));const{code:i}=WI(t,a),s=new Function("Vue",i)(eA);return s._rc=!0,of[r]=s}N1(KI);const lf={};function QI(t){let e=lf[t];if(e)return e;e=lf[t]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);e.push(n)}for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);e[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return e}function La(t,e){typeof e!="string"&&(e=La.defaultChars);const r=QI(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(n){let a="";for(let i=0,s=n.length;i<s;i+=3){const o=parseInt(n.slice(i+1,i+3),16);if(o<128){a+=r[o];continue}if((o&224)===192&&i+3<s){const l=parseInt(n.slice(i+4,i+6),16);if((l&192)===128){const c=o<<6&1984|l&63;c<128?a+="<22><>":a+=String.fromCharCode(c),i+=3;continue}}if((o&240)===224&&i+6<s){const l=parseInt(n.slice(i+4,i+6),16),c=parseInt(n.slice(i+7,i+9),16);if((l&192)===128&&(c&192)===128){const u=o<<12&61440|l<<6&4032|c&63;u<2048||u>=55296&&u<=57343?a+="<22><><EFBFBD>":a+=String.fromCharCode(u),i+=6;continue}}if((o&248)===240&&i+9<s){const l=parseInt(n.slice(i+4,i+6),16),c=parseInt(n.slice(i+7,i+9),16),u=parseInt(n.slice(i+10,i+12),16);if((l&192)===128&&(c&192)===128&&(u&192)===128){let d=o<<18&1835008|l<<12&258048|c<<6&4032|u&63;d<65536||d>1114111?a+="<22><><EFBFBD><EFBFBD>":(d-=65536,a+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}}a+="<22>"}return a})}La.defaultChars=";/?:@&=+$,#";La.componentChars="";const cf={};function XI(t){let e=cf[t];if(e)return e;e=cf[t]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?e.push(n):e.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<t.length;r++)e[t.charCodeAt(r)]=t[r];return e}function Ki(t,e,r){typeof e!="string"&&(r=e,e=Ki.defaultChars),typeof r>"u"&&(r=!0);const n=XI(e);let a="";for(let i=0,s=t.length;i<s;i++){const o=t.charCodeAt(i);if(r&&o===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(t.slice(i+1,i+3))){a+=t.slice(i,i+3),i+=2;continue}if(o<128){a+=n[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&i+1<s){const l=t.charCodeAt(i+1);if(l>=56320&&l<=57343){a+=encodeURIComponent(t[i]+t[i+1]),i++;continue}}a+="%EF%BF%BD";continue}a+=encodeURIComponent(t[i])}return a}Ki.defaultChars=";/?:@&=+$,-_.!~*'()#";Ki.componentChars="-_.!~*'()";function up(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function lo(){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 ZI=/^([a-z0-9.+-]+:)/i,JI=/:[0-9]*$/,jI=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,e2=["<",">",'"',"`"," ","\r",`
`," "],t2=["{","}","|","\\","^","`"].concat(e2),r2=["'"].concat(t2),uf=["%","/","?",";","#"].concat(r2),df=["/","?","#"],n2=255,_f=/^[+a-z0-9A-Z_-]{0,63}$/,a2=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,pf={javascript:!0,"javascript:":!0},mf={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function dp(t,e){if(t&&t instanceof lo)return t;const r=new lo;return r.parse(t,e),r}lo.prototype.parse=function(t,e){let r,n,a,i=t;if(i=i.trim(),!e&&t.split("#").length===1){const c=jI.exec(i);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=ZI.exec(i);if(s&&(s=s[0],r=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(e||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=i.substr(0,2)==="//",a&&!(s&&pf[s])&&(i=i.substr(2),this.slashes=!0)),!pf[s]&&(a||s&&!mf[s])){let c=-1;for(let g=0;g<df.length;g++)n=i.indexOf(df[g]),n!==-1&&(c===-1||n<c)&&(c=n);let u,d;c===-1?d=i.lastIndexOf("@"):d=i.lastIndexOf("@",c),d!==-1&&(u=i.slice(0,d),i=i.slice(d+1),this.auth=u),c=-1;for(let g=0;g<uf.length;g++)n=i.indexOf(uf[g]),n!==-1&&(c===-1||n<c)&&(c=n);c===-1&&(c=i.length),i[c-1]===":"&&c--;const m=i.slice(0,c);i=i.slice(c),this.parseHost(m),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const g=this.hostname.split(/\./);for(let E=0,v=g.length;E<v;E++){const R=g[E];if(R&&!R.match(_f)){let C="";for(let h=0,T=R.length;h<T;h++)R.charCodeAt(h)>127?C+="x":C+=R[h];if(!C.match(_f)){const h=g.slice(0,E),T=g.slice(E+1),y=R.match(a2);y&&(h.push(y[1]),T.unshift(y[2])),T.length&&(i=T.join(".")+i),this.hostname=h.join(".");break}}}}this.hostname.length>n2&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=i.indexOf("#");o!==-1&&(this.hash=i.substr(o),i=i.slice(0,o));const l=i.indexOf("?");return l!==-1&&(this.search=i.substr(l),i=i.slice(0,l)),i&&(this.pathname=i),mf[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};lo.prototype.parseHost=function(t){let e=JI.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const i2=Object.freeze(Object.defineProperty({__proto__:null,decode:La,encode:Ki,format:up,parse:dp},Symbol.toStringTag,{value:"Module"})),YT=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qT=/[\0-\x1F\x7F-\x9F]/,s2=/[\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]/,_p=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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\uD
`};Dr.fence=function(t,e,r,n,a){const i=t[e],s=i.info?ka(i.info).trim():"";let o="",l="";if(s){const u=s.split(/(\s+)/g);o=u[0],l=u.slice(2).join("")}let c;if(r.highlight?c=r.highlight(i.content,o,l)||In(i.content):c=In(i.content),c.indexOf("<pre")===0)return c+`
`;if(s){const u=i.attrIndex("class"),d=i.attrs?i.attrs.slice():[];u<0?d.push(["class",r.langPrefix+o]):(d[u]=d[u].slice(),d[u][1]+=" "+r.langPrefix+o);const m={attrs:d};return`<pre><code${a.renderAttrs(m)}>${c}</code></pre>
`}return`<pre><code${a.renderAttrs(i)}>${c}</code></pre>
`};Dr.image=function(t,e,r,n,a){const i=t[e];return i.attrs[i.attrIndex("alt")][1]=a.renderInlineAsText(i.children,r,n),a.renderToken(t,e,r)};Dr.hardbreak=function(t,e,r){return r.xhtmlOut?`<br />
`:`<br>
2024-12-12 20:46:06 +00:00
`};Dr.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`<br />
`:`<br>
`:`
2024-12-12 20:46:06 +00:00
`};Dr.text=function(t,e){return In(t[e].content)};Dr.html_block=function(t,e){return t[e].content};Dr.html_inline=function(t,e){return t[e].content};function qa(){this.rules=zo({},Dr)}qa.prototype.renderAttrs=function(e){let r,n,a;if(!e.attrs)return"";for(a="",r=0,n=e.attrs.length;r<n;r++)a+=" "+In(e.attrs[r][0])+'="'+In(e.attrs[r][1])+'"';return a};qa.prototype.renderToken=function(e,r,n){const a=e[r];let i="";if(a.hidden)return"";a.block&&a.nesting!==-1&&r&&e[r-1].hidden&&(i+=`
`),i+=(a.nesting===-1?"</":"<")+a.tag,i+=this.renderAttrs(a),a.nesting===0&&n.xhtmlOut&&(i+=" /");let s=!1;if(a.block&&(s=!0,a.nesting===1&&r+1<e.length)){const o=e[r+1];(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===a.tag)&&(s=!1)}return i+=s?`>
`:">",i};qa.prototype.renderInline=function(t,e,r){let n="";const a=this.rules;for(let i=0,s=t.length;i<s;i++){const o=t[i].type;typeof a[o]<"u"?n+=a[o](t,i,e,r,this):n+=this.renderToken(t,i,e)}return n};qa.prototype.renderInlineAsText=function(t,e,r){let n="";for(let a=0,i=t.length;a<i;a++)switch(t[a].type){case"text":n+=t[a].content;break;case"image":n+=this.renderInlineAsText(t[a].children,e,r);break;case"html_inline":case"html_block":n+=t[a].content;break;case"softbreak":case"hardbreak":n+=`
`;break}return n};qa.prototype.render=function(t,e,r){let n="";const a=this.rules;for(let i=0,s=t.length;i<s;i++){const o=t[i].type;o==="inline"?n+=this.renderInline(t[i].children,e,r):typeof a[o]<"u"?n+=a[o](t,i,e,r,this):n+=this.renderToken(t,i,e,r)}return n};function Wt(){this.__rules__=[],this.__cache__=null}Wt.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Wt.prototype.__compile__=function(){const t=this,e=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),t.__cache__={},e.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||t.__cache__[r].push(n.fn))})})};Wt.prototype.at=function(t,e,r){const n=this.__find__(t),a=r||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=a.alt||[],this.__cache__=null};Wt.prototype.before=function(t,e,r,n){const a=this.__find__(t),i=n||{};if(a===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(a,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null};Wt.prototype.after=function(t,e,r,n){const a=this.__find__(t),i=n||{};if(a===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(a+1,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null};Wt.prototype.push=function(t,e,r){const n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};Wt.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);const r=[];return t.forEach(function(n){const a=this.__find__(n);if(a<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!0,r.push(n)},this),this.__cache__=null,r};Wt.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,e)};Wt.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);const r=[];return t.forEach(function(n){const a=this.__find__(n);if(a<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!1,r.push(n)},this),this.__cache__=null,r};Wt.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function br(t,e,r){this.type=t,this.tag=e,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}br.prototype.attrIndex=function(e){if(!this.attrs)return-1;const r=this.attrs;for(let n=0,a=r.length;n<a;n++)if(r[n][0]===e)return n;return-1};br.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};br.prototype.attrSet=function(e,r){const n=this.attrIndex(e),a=[e,r];n<0?this.attrPush(a):this.attrs[n]=a};br.prototype.attrGet=function(e){const r=this.attrIndex(e);let n=null;return r>=0&&(n=this.attrs[r][1]),n};br.prototype.attrJoin=function(e,r){const n=this.attrIndex(e);n<0?this.attrPush([e,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};function QT(t,e,r){this.src=t,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}QT.prototype.Token=br;const G2=/\r\n?|\n/g,Y2=/\0/g;function q2(t){let e;e=t.src.replace(G2,`
`),e=e.replace(Y2,"<22>"),t.src=e}function H2(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function z2(t){const e=t.tokens;for(let r=0,n=e.length;r<n;r++){const a=e[r];a.type==="inline"&&t.md.inline.parse(a.content,t.md,t.env,a.children)}}function V2(t){return/^<a[>\s]/i.test(t)}function $2(t){return/^<\/a\s*>/i.test(t)}function W2(t){const e=t.tokens;if(t.md.options.linkify)for(let r=0,n=e.length;r<n;r++){if(e[r].type!=="inline"||!t.md.linkify.pretest(e[r].content))continue;let a=e[r].children,i=0;for(let s=a.length-1;s>=0;s--){const o=a[s];if(o.type==="link_close"){for(s--;a[s].level!==o.level&&a[s].type!=="link_open";)s--;continue}if(o.type==="html_inline"&&(V2(o.content)&&i>0&&i--,$2(o.content)&&i++),!(i>0)&&o.type==="text"&&t.md.linkify.test(o.content)){const l=o.content;let c=t.md.linkify.match(l);const u=[];let d=o.level,m=0;c.length>0&&c[0].index===0&&s>0&&a[s-1].type==="text_special"&&(c=c.slice(1));for(let p=0;p<c.length;p++){const g=c[p].url,E=t.md.normalizeLink(g);if(!t.md.validateLink(E))continue;let v=c[p].text;c[p].schema?c[p].schema==="mailto:"&&!/^mailto:/i.test(v)?v=t.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=t.md.normalizeLinkText(v):v=t.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,"");const R=c[p].index;if(R>m){const y=new t.Token("text","",0);y.content=l.slice(m,R),y.level=d,u.push(y)}const C=new t.Token("link_open","a",1);C.attrs=[["href",E]],C.level=d++,C.markup="linkify",C.info="auto",u.push(C);const h=new t.Token("text","",0);h.content=v,h.level=d,u.push(h);const T=new t.Token("link_close","a",-1);T.level=--d,T.markup="linkify",T.info="auto",u.push(T),m=c[p].lastIndex}if(m<l.length){const p=new t.Token("text","",0);p.content=l.slice(m),p.level=d,u.push(p)}e[r].children=a=WT(a,s,u)}}}}const XT=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,K2=/\((c|tm|r)\)/i,Q2=/\((c|tm|r)\)/ig,X2={c:"©",r:"®",tm:"™"};function Z2(t,e){return X2[e.toLowerCase()]}function J2(t){let e=0;for(let r=t.length-1;r>=0;r--){const n=t[r];n.type==="text"&&!e&&(n.content=n.content.replace(Q2,Z2)),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function j2(t){let e=0;for(let r=t.length-1;r>=0;r--){const n=t[r];n.type==="text"&&!e&&XT.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"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function eD(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(K2.test(t.tokens[e].content)&&J2(t.tokens[e].children),XT.test(t.tokens[e].content)&&j2(t.tokens[e].children))}const tD=/['"]/,ff=/['"]/g,gf="";function ps(t,e,r){return t.slice(0,e)+r+t.slice(e+1)}function rD(t,e){let r;const n=[];for(let a=0;a<t.length;a++){const i=t[a],s=t[a].level;for(r=n.length-1;r>=0&&!(n[r].level<=s);r--);if(n.length=r+1,i.type!=="text")continue;let o=i.content,l=0,c=o.length;e:for(;l<c;){ff.lastIndex=l;const u=ff.exec(o);if(!u)break;let d=!0,m=!0;l=u.index+1;const p=u[0]==="'";let g=32;if(u.index-1>=0)g=o.charCodeAt(u.index-1);else for(r=a-1;r>=0&&!(t[r].type==="softbreak"||t[r].type==="hardbreak");r--)if(t[r].content){g=t[r].content.charCodeAt(t[r].content.length-1);break}let E=32;if(l<c)E=o.charCodeAt(l);else for(r=a+1;r<t.length&&!(t[r].type==="softbreak"||t[r].type==="hardbreak");r++)if(t[r].content){E=t[r].content.charCodeAt(0);break}const v=Mi(g)||xi(String.fromCharCode(g)),R=Mi(E)||xi(String.fromCharCode(E)),C=Di(g),h=Di(E);if(h?d=!1:R&&(C||v||(d=!1)),C?m=!1:v&&(h||R||(m=!1)),E===34&&u[0]==='"'&&g>=48&&g<=57&&(m=d=!1),d&&m&&(d=v,m=R),!d&&!m){p&&(i.content=ps(i.content,u.index,gf));continue}if(m)for(r=n.length-1;r>=0;r--){let T=n[r];if(n[r].level<s)break;if(T.single===p&&n[r].level===s){T=n[r];let y,O;p?(y=e.md.optio
`,i.map=[e,t.line],!0}function lD(t,e,r,n){let a=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||a+3>i)return!1;const s=t.src.charCodeAt(a);if(s!==126&&s!==96)return!1;let o=a;a=t.skipChars(a,s);let l=a-o;if(l<3)return!1;const c=t.src.slice(o,a),u=t.src.slice(a,i);if(s===96&&u.indexOf(String.fromCharCode(s))>=0)return!1;if(n)return!0;let d=e,m=!1;for(;d++,!(d>=r||(a=o=t.bMarks[d]+t.tShift[d],i=t.eMarks[d],a<i&&t.sCount[d]<t.blkIndent));)if(t.src.charCodeAt(a)===s&&!(t.sCount[d]-t.blkIndent>=4)&&(a=t.skipChars(a,s),!(a-o<l)&&(a=t.skipSpaces(a),!(a<i)))){m=!0;break}l=t.sCount[e],t.line=d+(m?1:0);const p=t.push("fence","code",0);return p.info=u,p.content=t.getLines(e+1,d,l,!0),p.markup=c,p.map=[e,t.line],!0}function cD(t,e,r,n){let a=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];const s=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(a)!==62)return!1;if(n)return!0;const o=[],l=[],c=[],u=[],d=t.md.block.ruler.getRules("blockquote"),m=t.parentType;t.parentType="blockquote";let p=!1,g;for(g=e;g<r;g++){const h=t.sCount[g]<t.blkIndent;if(a=t.bMarks[g]+t.tShift[g],i=t.eMarks[g],a>=i)break;if(t.src.charCodeAt(a++)===62&&!h){let y=t.sCount[g]+1,O,k;t.src.charCodeAt(a)===32?(a++,y++,k=!1,O=!0):t.src.charCodeAt(a)===9?(O=!0,(t.bsCount[g]+y)%4===3?(a++,y++,k=!1):k=!0):O=!1;let M=y;for(o.push(t.bMarks[g]),t.bMarks[g]=a;a<i;){const D=t.src.charCodeAt(a);if(We(D))D===9?M+=4-(M+t.bsCount[g]+(k?1:0))%4:M++;else break;a++}p=a>=i,l.push(t.bsCount[g]),t.bsCount[g]=t.sCount[g]+1+(O?1:0),c.push(t.sCount[g]),t.sCount[g]=M-y,u.push(t.tShift[g]),t.tShift[g]=a-t.bMarks[g];continue}if(p)break;let T=!1;for(let y=0,O=d.length;y<O;y++)if(d[y](t,g,r,!0)){T=!0;break}if(T){t.lineMax=g,t.blkIndent!==0&&(o.push(t.bMarks[g]),l.push(t.bsCount[g]),u.push(t.tShift[g]),c.push(t.sCount[g]),t.sCount[g]-=t.blkIndent);break}o.push(t.bMarks[g]),l.push(t.bsCount[g]),u.push(t.tShift[g]),c.push(t.sCount[g]),t.sCount[g]=-1}const E=t.blkIndent;t.blkIndent=0;const v=t.push("blockquote_open","blockquote",1);v.markup=">";const R=[e,0];v.map=R,t.md.block.tokenize(t,e,g);const C=t.push("blockquote_close","blockquote",-1);C.markup=">",t.lineMax=s,t.parentType=m,R[1]=t.line;for(let h=0;h<u.length;h++)t.bMarks[h+e]=o[h],t.tShift[h+e]=u[h],t.sCount[h+e]=c[h],t.bsCount[h+e]=l[h];return t.blkIndent=E,!0}function uD(t,e,r,n){const a=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let i=t.bMarks[e]+t.tShift[e];const s=t.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let o=1;for(;i<a;){const c=t.src.charCodeAt(i++);if(c!==s&&!We(c))return!1;c===s&&o++}if(o<3)return!1;if(n)return!0;t.line=e+1;const l=t.push("hr","hr",0);return l.map=[e,t.line],l.markup=Array(o+1).join(String.fromCharCode(s)),!0}function Sf(t,e){const r=t.eMarks[e];let n=t.bMarks[e]+t.tShift[e];const a=t.src.charCodeAt(n++);if(a!==42&&a!==45&&a!==43)return-1;if(n<r){const i=t.src.charCodeAt(n);if(!We(i))return-1}return n}function hf(t,e){const r=t.bMarks[e]+t.tShift[e],n=t.eMarks[e];let a=r;if(a+1>=n)return-1;let i=t.src.charCodeAt(a++);if(i<48||i>57)return-1;for(;;){if(a>=n)return-1;if(i=t.src.charCodeAt(a++),i>=48&&i<=57){if(a-r>=10)return-1;continue}if(i===41||i===46)break;return-1}return a<n&&(i=t.src.charCodeAt(a),!We(i))?-1:a}function dD(t,e){const r=t.level+2;for(let n=e+2,a=t.tokens.length-2;n<a;n++)t.tokens[n].level===r&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}function _D(t,e,r,n){let a,i,s,o,l=e,c=!0;if(t.sCount[l]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;let u=!1;n&&t.parentType==="paragraph"&&t.sCount[l]>=t.blkIndent&&(u=!0);let d,m,p;if((p=hf(t,l))>=0){if(d=!0,s=t.bMarks[l]+t.tShift[l],m=Number(t.src.slice(s,p-1)),u&&m!==1)return!1}else if((p=Sf(t,l))>=0)d=!1;else return!1;if(u&&t.skipSpaces(p)>=t.eMarks[l])return!1;if(n)return!0;const g=t.src.charCodeAt(p-1),E=t.tokens.length;d?(o=t.push("ordered_list_open","ol",1),m!==1&&(o.attrs=[["start",m]])):o=t.push("bullet_list_open","ul",1);const v=[l,0];o.map=v,o.markup=String.fromCharCode(g);let R=!1;const C=t.md.block.ruler.ge
`,n)});la(this,Gi);la(this,Bi,"");la(this,Ui,!1);la(this,Ra,!1);la(this,Hn,r=>r);Wa(this,Ui,(r==null?void 0:r.allowCR)??!1),Wa(this,Ra,(r==null?void 0:r.returnEmptyLines)??!1),Wa(this,Hn,(r==null?void 0:r.mapperFun)??nn(this,Hn))}}Bi=new WeakMap,Ui=new WeakMap,Ra=new WeakMap,Hn=new WeakMap,Gi=new WeakSet,j_=function(r,n){for(r=nn(this,Bi)+r;;){const a=r.indexOf(`
`);if(nn(this,Ui)){const i=r.indexOf("\r");if(i!==-1&&i!==r.length-1&&(a===-1||a-1>i)){const s=nn(this,Hn).call(this,r.slice(0,crOrLfIndex));(nn(this,Ra)||s)&&n.enqueue(s),r=r.slice(i+1);continue}}if(a!==-1){let i=a;r[a-1]==="\r"&&i--;const s=nn(this,Hn).call(this,r.slice(0,i));(nn(this,Ra)||s)&&n.enqueue(s),r=r.slice(a+1);continue}break}Wa(this,Bi,r)};function _v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function kx(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}function pv(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const r=t[e],n=typeof r;(n==="object"||n==="function")&&!Object.isFrozen(r)&&pv(r)}),t}class Nf{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function mv(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function hn(t,...e){const r=Object.create(null);for(const n in t)r[n]=t[n];return e.forEach(function(n){for(const a in n)r[a]=n[a]}),r}const Px="</span>",Of=t=>!!t.scope,Fx=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const r=t.split(".");return[`${e}${r.shift()}`,...r.map((n,a)=>`${n}${"_".repeat(a+1)}`)].join(" ")}return`${e}${t}`};class Bx{constructor(e,r){this.buffer="",this.classPrefix=r.classPrefix,e.walk(this)}addText(e){this.buffer+=mv(e)}openNode(e){if(!Of(e))return;const r=Fx(e.scope,{prefix:this.classPrefix});this.span(r)}closeNode(e){Of(e)&&(this.buffer+=Px)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Af=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class Sp{constructor(){this.rootNode=Af(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const r=Af({scope:e});this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,r){return typeof r=="string"?e.addText(r):r.children&&(e.openNode(r),r.children.forEach(n=>this._walk(e,n)),e.closeNode(r)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(r=>typeof r=="string")?e.children=[e.children.join("")]:e.children.forEach(r=>{Sp._collapse(r)}))}}class Ux extends Sp{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,r){const n=e.root;r&&(n.scope=`language:${r}`),this.add(n)}toHTML(){return new Bx(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Li(t){return t?typeof t=="string"?t:t.source:null}function fv(t){return ia("(?=",t,")")}function Gx(t){return ia("(?:",t,")*")}function Yx(t){return ia("(?:",t,")?")}function ia(...t){return t.map(r=>Li(r)).join("")}function qx(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function hp(...t){return"("+(qx(t).capture?"":"?:")+t.map(n=>Li(n)).join("|")+")"}function gv(t){return new RegExp(t.toString()+"|").exec("").length-1}function Hx(t,e){const r=t&&t.exec(e);return r&&r.index===0}const zx=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function bp(t,{joinWith:e}){let r=0;return t.map(n=>{r+=1;const a=r;let i=Li(n),s="";for(;i.length>0;)
https://github.com/highlightjs/highlight.js/issues/2277`),Ee=U,pe=Y),oe===void 0&&(oe=!0);const Re={code:pe,language:Ee};Q("before:highlight",Re);const Ye=Re.result?Re.result:d(Re.language,Re.code,oe);return Ye.code=Re.code,Q("after:highlight",Ye),Ye}function d(U,Y,oe,pe){const Ee=Object.create(null);function Re(W,ne){return W.keywords[ne]}function Ye(){if(!H.keywords){Z.addText(z);return}let W=0;H.keywordPatternRe.lastIndex=0;let ne=H.keywordPatternRe.exec(z),le="";for(;ne;){le+=z.substring(W,ne.index);const Te=$.case_insensitive?ne[0].toLowerCase():ne[0],xe=Re(H,Te);if(xe){const[Xe,bt]=xe;if(Z.addText(le),le="",Ee[Te]=(Ee[Te]||0)+1,Ee[Te]<=O4&&(fe+=bt),Xe.startsWith("_"))le+=ne[0];else{const Tr=$.classNameAliases[Xe]||Xe;De(ne[0],Tr)}}else le+=ne[0];W=H.keywordPatternRe.lastIndex,ne=H.keywordPatternRe.exec(z)}le+=z.substring(W),Z.addText(le)}function Qe(){if(z==="")return;let W=null;if(typeof H.subLanguage=="string"){if(!e[H.subLanguage]){Z.addText(z);return}W=d(H.subLanguage,z,!0,ae[H.subLanguage]),ae[H.subLanguage]=W._top}else W=p(z,H.subLanguage.length?H.subLanguage:null);H.relevance>0&&(fe+=W.relevance),Z.__addSublanguage(W._emitter,W.language)}function Oe(){H.subLanguage!=null?Qe():Ye(),z=""}function De(W,ne){W!==""&&(Z.startScope(ne),Z.addText(W),Z.endScope())}function Ae(W,ne){let le=1;const Te=ne.length-1;for(;le<=Te;){if(!W._emit[le]){le++;continue}const xe=$.classNameAliases[W[le]]||W[le],Xe=ne[le];xe?De(Xe,xe):(z=Xe,Ye(),z=""),le++}}function ye(W,ne){return W.scope&&typeof W.scope=="string"&&Z.openNode($.classNameAliases[W.scope]||W.scope),W.beginScope&&(W.beginScope._wrap?(De(z,$.classNameAliases[W.beginScope._wrap]||W.beginScope._wrap),z=""):W.beginScope._multi&&(Ae(W.beginScope,ne),z="")),H=Object.create(W,{parent:{value:H}}),H}function ke(W,ne,le){let Te=Hx(W.endRe,le);if(Te){if(W["on:end"]){const xe=new Nf(W);W["on:end"](ne,xe),xe.isMatchIgnored&&(Te=!1)}if(Te){for(;W.endsParent&&W.parent;)W=W.parent;return W}}if(W.endsWithParent)return ke(W.parent,ne,le)}function Be(W){return H.matcher.regexIndex===0?(z+=W[0],1):(me=!0,0)}function Ve(W){const ne=W[0],le=W.rule,Te=new Nf(le),xe=[le.__beforeBegin,le["on:begin"]];for(const Xe of xe)if(Xe&&(Xe(W,Te),Te.isMatchIgnored))return Be(ne);return le.skip?z+=ne:(le.excludeBegin&&(z+=ne),Oe(),!le.returnBegin&&!le.excludeBegin&&(z=ne)),ye(le,W),le.returnBegin?0:ne.length}function it(W){const ne=W[0],le=Y.substring(W.index),Te=ke(H,W,le);if(!Te)return Mf;const xe=H;H.endScope&&H.endScope._wrap?(Oe(),De(ne,H.endScope._wrap)):H.endScope&&H.endScope._multi?(Oe(),Ae(H.endScope,W)):xe.skip?z+=ne:(xe.returnEnd||xe.excludeEnd||(z+=ne),Oe(),xe.excludeEnd&&(z=ne));do H.scope&&Z.closeNode(),!H.skip&&!H.subLanguage&&(fe+=H.relevance),H=H.parent;while(H!==Te.parent);return Te.starts&&ye(Te.starts,W),xe.returnEnd?0:ne.length}function A(){const W=[];for(let ne=H;ne!==$;ne=ne.parent)ne.scope&&W.unshift(ne.scope);W.forEach(ne=>Z.openNode(ne))}let x={};function q(W,ne){const le=ne&&ne[0];if(z+=W,le==null)return Oe(),0;if(x.type==="begin"&&ne.type==="end"&&x.index===ne.index&&le===""){if(z+=Y.slice(ne.index,ne.index+1),!a){const Te=new Error(`0 width match regex (${U})`);throw Te.languageName=U,Te.badRule=x.rule,Te}return 1}if(x=ne,ne.type==="begin")return Ve(ne);if(ne.type==="illegal"&&!oe){const Te=new Error('Illegal lexeme "'+le+'" for mode "'+(H.scope||"<unnamed>")+'"');throw Te.mode=H,Te}else if(ne.type==="end"){const Te=it(ne);if(Te!==Mf)return Te}if(ne.type==="illegal"&&le==="")return 1;if(_e>1e5&&_e>ne.index*3)throw new Error("potential infinite loop, way more iterations than matches");return z+=le,le.length}const $=D(U);if(!$)throw Xn(i.replace("{}",U)),new Error('Unknown language: "'+U+'"');const K=C4($);let X="",H=pe||K;const ae={},Z=new o.__emitter(o);A();let z="",fe=0,se=0,_e=0,me=!1;try{if($.__emitTokens)$.__emitTokens(Y,Z);else{for(H.matcher.considerAll();;){_e++,me?me=!1:H.matcher.considerAll(),H.matcher.lastIndex=se;const W=H.matcher.exec(Y);if(!W)break;const ne=Y.substring(se,W.index),le=q(ne,W);se=W.index+le}q(Y.substring(se))}return Z.finalize(),X=Z.toHTML(),{langu
`},g]}}return pu=a,pu}var mu,SE;function mM(){if(SE)return mu;SE=1;function t(e){const r="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",a="\\]|\\?>",i={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("\x3C!--","-->",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+n},c={className:"symbol",begin:"'"+r+"'"},u=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[c]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:a,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:a,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[s]}},o,l].concat(u)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(u)}}return mu=t,mu}var fu,hE;function fM(){if(hE)return fu;hE=1;function t(e){const n=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(B=>B+"(?![a-zA-Z@:_])")),a=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA
]`,g={scope:"string",variants:[u,c,d,m]},E={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},v=["false","null","true"],R=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],C=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],T={keyword:R,literal:(J=>{const Q=[];return J.forEach(ee=>{Q.push(ee),ee.toLowerCase()===ee?Q.push(ee.toUpperCase()):Q.push(ee.toLowerCase())}),Q})(v),built_in:C},y=J=>J.map(Q=>Q.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,r.concat(p,"+"),r.concat("(?!",y(C).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},k=r.concat(a,"\\b(?!\\()"),M={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,r.concat(/::/,r.lookahead(/(?!class\b)/)),k],scope:{1:"title.class",3:"variable.constant"}},{match:[i,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},D={scope:"attr",match:r.concat(a,r.lookahead(":"),r.lookahead(/(?!::)/))},F={relevance:0,begin:/\(/,end:/\)/,keywords:T,contains:[D,s,M,e.C_BLOCK_COMMENT_MODE,g,E,O]},B={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",y(R).join("\\b|"),"|",y(C).join("\\b|"),"\\b)"),a,r.concat(p,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[F]};F.contains.push(B);const P=[D,M,e.C_BLOCK_COMMENT_MODE,g,E,O],V={begin:r.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:v,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:v,keyword:["new","array"]},contains:["self",...P]},.
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return Od=t,Od}var Ad,MS;function A6(){if(MS)return Ad;MS=1;function t(e){const r="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},a={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},e.C_NUMBER_MODE,a,n,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,a]}]}}return Ad=t,Ad}var Id,wS;function I6(){if(wS)return Id;wS=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return Id=t,Id}var Dd,LS;function D6(){if(LS)return Dd;LS=1;function t(e){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},a={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],s=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],o=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addV
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return wd=t,wd}var Ld,BS;function L6(){if(BS)return Ld;BS=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return Ld=t,Ld}var kd,US;function k6(){if(US)return kd;US=1;const t=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],a=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inv
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return Pd=t,Pd}var Fd,YS;function F6(){if(YS)return Fd;YS=1;function t(M){return M?typeof M=="string"?M:M.source:null}function e(M){return r("(?=",M,")")}function r(...M){return M.map(F=>t(F)).join("")}function n(M){const D=M[M.length-1];return typeof D=="object"&&D.constructor===Object?(M.splice(M.length-1,1),D):{}}function a(...M){return"("+(n(M).capture?"":"?:")+M.map(B=>t(B)).join("|")+")"}const i=M=>r(/\b/,M,/\w$/.test(M)?/\b/:/\B/),s=["Protocol","Type"].map(i),o=["init","self"].map(i),l=["Any","Self"],c=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],u=["false","nil","true"],d=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],g=a(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),E=a(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=r(g,E,"*"),R=a(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),C=a(R,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),h=r(R,C,"*"),T=r(/[A-Z]/,C,"*"),y=["attached","autoclosure",r(/convention\(/,a("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,h,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicat
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
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
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+e/2.075+" -"+e+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+e)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},jw=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+e/2.084+" -"+e+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+e)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
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
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},eL=function(e,r){return"M983 "+(10+e+r)+`
l`+e/3.13+" -"+e+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
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
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
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},tL=function(e,r){return"M424,"+(2398+e+r)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
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
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+e)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+`
h400000v`+(40+e)+"h-400000z"},rL=function(e,r){return"M473,"+(2713+e+r)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
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
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
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},nL=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},aL=function(e,r,n){var a=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+`
H742v`+a+`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
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},iL=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=Jw(r,pa);break;case"sqrtSize1":a=jw(r,pa);break;case"sqrtSize2":a=eL(r,pa);break;case"sqrtSize3":a=tL(r,pa);break;case"sqrtSize4":a=rL(r,pa);break;case"sqrtTall":a=aL(r,pa,n)}return a},sL=function(e,r){switch(e){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""}},mh={doubleleftarrow:`M262 157
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
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
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
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
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
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-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
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
-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
-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
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
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
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
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
-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
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
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
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
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
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
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
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 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
435 0h399565z`,leftgroupunder:`M400000 262
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
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-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
-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
-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
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
-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
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
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
-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
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
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
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
-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
-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
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 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-70-101l-7-8h399905v-40H95l7-8
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
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
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
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
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
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
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
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
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
-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
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
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
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
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
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
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
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
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
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
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
-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
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
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
-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
-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
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-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
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
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
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-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
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
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
-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
-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
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
-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
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
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
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
-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
-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
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
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
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
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
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
-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
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
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-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
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
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
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
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
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
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
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
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
-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
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
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-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
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
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
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
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-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
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
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
-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
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
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
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
-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
-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
-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,
-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,
-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,
-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,
-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
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
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
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
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
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
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 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 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 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-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
-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
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
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
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
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,
-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
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
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
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,
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,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
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
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,
-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
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
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},oL=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
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
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
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
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
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
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
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
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
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,
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
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
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,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-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,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
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
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
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
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-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 Ji{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return ge.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){var e=r=>r.toText();return this.children.map(e).join("")}}var Ar={"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,.755
`+k+" children.");for(var B=0;B<k;B++){var P=new xn(h[B]),V=new Xr([P],{width:"400em",height:ie(O),viewBox:"0 0 "+o+" "+y,preserveAspectRatio:D[B]+" slice"}),J=G.makeSvgSpan([M[B]],[V],r);if(k===1)return{span:J,minWidth:T,height:O};J.style.height=ie(O),R.push(J)}return{span:G.makeSpan(["stretchy"],R,r),minWidth:T,height:O}}}var{span:a,minWidth:i,height:s}=n();return a.height=s,a.style.height=ie(s),i>0&&(a.style.minWidth=ie(i)),a},VL=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=G.makeSpan(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(r)&&c.push(new a0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&c.push(new a0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Xr(c,{width:"100%",height:ie(o)});s=G.makeSvgSpan([],[u],i)}return s.height=o,s.style.height=ie(o),s},Jr={encloseSpan:VL,mathMLnode:YL,svgSpan:zL};function Ie(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function xp(t){var e=Jo(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Jo(t){return t&&(t.type==="atom"||gL.hasOwnProperty(t.type))?t:null}var Mp=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=Ie(t.base,"accent"),r=n.base,t.base=r,a=mL(Fe(t,e)),t.base=n):(n=Ie(t,"accent"),r=n.base);var i=Fe(r,e.havingCrampedStyle()),s=n.isShifty&&ge.isCharacterBox(r),o=0;if(s){var l=ge.getBaseElem(r),c=Fe(l,e.havingCrampedStyle());o=Sh(c).skew}var u=n.label==="\\c",d=u?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),m;if(n.isStretchy)m=Jr.svgSpan(n,e),m=G.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+ie(2*o)+")",marginLeft:ie(2*o)}:void 0}]},e);else{var p,g;n.label==="\\vec"?(p=G.staticSvg("vec",e),g=G.svgData.vec[1]):(p=G.makeOrd({mode:n.mode,text:n.label},e,"textord"),p=Sh(p),p.italic=0,g=p.width,u&&(d+=p.depth)),m=G.makeSpan(["accent-body"],[p]);var E=n.label==="\\textcircled";E&&(m.classes.push("accent-full"),d=i.height);var v=o;E||(v-=g/2),m.style.left=ie(v),n.label==="\\textcircled"&&(m.style.top=".2em"),m=G.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-d},{type:"elem",elem:m}]},e)}var R=G.makeSpan(["mord","accent"],[m],e);return a?(a.children[0]=R,a.height=Math.max(R.height,a.height),a.classes[0]="mord",a):R},Kv=(t,e)=>{var r=t.isStretchy?Jr.mathMLnode(t.label):new te.MathNode("mo",[pr(t.label,t.mode)]),n=new te.MathNode("mover",[ze(t.base,e),r]);return n.setAttribute("accent","true"),n},$L=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));ce({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:(t,e)=>{var r=Eo(e[0]),n=!$L.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Mp,mathmlBuilder:Kv});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Mp,mathmlBuilder:Kv});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarr
]`,h5="\\\\[a-zA-Z@]+",b5="\\\\[^\uD800-\uDFFF]",T5="("+h5+")"+TC+"*",v5=`\\\\(
|[ \r ]+
?)[ \r ]*`,u0="[̀-ͯ]",C5=new RegExp(u0+"+$"),R5="("+TC+"+)|"+(v5+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(u0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(u0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+T5)+("|"+b5+")");class Hh{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(R5,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new cr("EOF",new Zt(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new re("Unexpected character: '"+e[r]+"'",new cr(e[r],new Zt(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(`
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.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=i+1,this.lex()}return new cr(a,new Zt(this,r,this.tokenRegex.lastIndex))}}class y5{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new re("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var N5=uC;b("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});b("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});b("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});b("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});b("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});b("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");b("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var zh={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};b("\\char",function(t){var e=t.popToken(),r,n="";if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new re("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=zh[e.text],n==null||n>=r)throw new re("Invalid base-"+r+" digit "+e.text);for(var a;(a=zh[t.future().text])!=null&&a<r;)n*=r,n+=a,t.popToken()}return"\\@char{"+n+"}"});var Gp=(t,e,r)=>{var n=t.consumeArg().tokens;if(n.length!==1)throw new re("\\newcommand's first argument must be a macro name");var a=n[0].text,i=t.isDefined(a);if(i&&!e)throw new re("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!i&&!r)throw new re("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var s=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var o="",l=t.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=t.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new re("Invalid number of arguments: "+o);s=parseInt(o),n=t.consumeArg().tokens}return t.macros.set(a,{tokens:n,numArgs:s}),""};b("\\newcommand",t=>Gp(t,!1,!0));b("\\renewcommand",t=>Gp(t,!0,!1));b("\\providecommand",t=>Gp(t,!0,!0));b("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});b("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});b("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),bn[r],Ke.math[r],Ke.text[r]),""});b("\\bgroup","{");b("\\egroup","}");b("~","\\nobreakspace");b("\\lq","`");b("\\rq","'");b("\\aa","\\r a");b("\\AA","\\r A");b("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");b("\\copyright","\\TextOrMath{\\textcopyright}{
2024-12-12 21:23:59 +00:00
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Wh.hasOwnProperty(r[0])&&!Ke[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=Wh[r[0]]+r.slice(1));var i=C5.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Ke[this.mode][r]){this.settings.strict&&this.mode==="math"&&i0.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var o=Ke[this.mode][r].group,l=Zt.range(e),c;if(fL.hasOwnProperty(o)){var u=o;c={type:"atom",mode:this.mode,family:u,loc:l,text:r}}else c={type:o,mode:this.mode,loc:l,text:r};s=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(wv(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:Zt.range(e),text:r};else return null;if(this.consume(),i)for(var d=0;d<i[0].length;d++){var m=i[0][d];if(!h_[m])throw new re("Unknown accent ' "+m+"'",e);var p=h_[m][this.mode]||h_[m].text;if(!p)throw new re("Accent "+m+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:Zt.range(e),label:p,isStretchy:!1,isShifty:!0,base:s}}return s}}rl.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var qp=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new rl(e,r);delete n.gullet.macros.current["\\df@tag"];var a=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 re("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new cr("\\df@tag")])}]}return a},yC=function(e,r,n){r.textContent="";var a=Hp(e,n).toNode();r.appendChild(a)};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."),yC=function(){throw new re("KaTeX doesn't work in quirks mode.")});var A5=function(e,r){var n=Hp(e,r).toMarkup();return n},I5=function(e,r){var n=new Rp(r);return qp(e,n)},NC=function(e,r,n){if(n.throwOnError||!(e instanceof re))throw e;var a=G.makeSpan(["katex-error"],[new _r(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},Hp=function(e,r){var n=new Rp(r);try{var a=qp(e,n);return BL(a,e,n)}catch(i){return NC(i,e,n)}},D5=function(e,r){var n=new Rp(r);try{var a=qp(e,n);return UL(a,e,n)}catch(i){return NC(i,e,n)}},x5={version:"0.16.15",render:yC,renderToString:A5,ParseError:re,SETTINGS_SCHEMA:Ls,__parse:I5,__renderToDomTree:Hp,__renderToHTMLTree:D5,__setFontMetrics:lL,__defineSymbol:_,__defineFunction:ce,__defineMacro:b,__domTree:{Span:ji,Anchor:Op,SymbolNode:_r,SvgNode:Xr,PathNode:xn,LineNode:a0}};const M5={delimiters:[{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!1}]};function w5(t){return(e,r)=>{const n=e.posMax,a=e.pos;for(const{left:i,right:s,display:o}of t.delimiters){if(!e.src.slice(a).startsWith(i))continue;let l=a+i.length;for(;l<n&&!e.src.slice(l).startsWith(s);)l++;if(!(l>=n)){if(!r){const c=e.src.slice(a+i.length,l);try{const u=x5.renderToString(c,{throwOnError:!1,output:"mathml",displayMode:o}),d=e.push("html_inline","",0);d.content=u}catch(u){console.error(u)}}return e.pos=l+s.length,!0}}}}function L5(t,e=M5){t.inline.ruler.after("text","escaped_bracket",w5(e))}const k5=t=>!!t.toLowerCase,P5=t=>t===!0||t===!1,F5=t=>!k5(t)&&!isNaN(t)&&!P5(t),B5=t=>t.replace(/>/g,"&gt;").replace(/"/g,"&quot;"),OC=t=>navigator.clipboard.writeText(t),U5=localStorage.getItem("base")||new URL(".",document.baseURI).href.toString().replace(/\/$/,""
<div class="text-right sticky top-4 mb-2 mr-2 h-0">
2024-12-12 20:46:06 +00:00
<button class="badge btn-mini" onclick="copyStr(${B5(JSON.stringify(o))})">📋 Copy</button>
</div>
2024-12-12 20:46:06 +00:00
${l}
</div>`},window.copyStr=OC;const n=G0(()=>e.value.render(t.source));return()=>Y0("div",{innerHTML:n.value})},{props:["source"]}),H5=Ya({template:document.getElementById("settings-modal-short-input").innerHTML,props:{label:{type:String,required:!1},configKey:String,configDefault:Object,configInfo:Object,modelValue:[Object,String,Number]}}),z5=Ya({components:{VueMarkdown:AC},template:document.getElementById("message-bubble").innerHTML,props:{config:Object,msg:Object,isGenerating:Boolean,editUserMsgAndRegenerate:Function,regenerateMsg:Function},data(){return{editingContent:null}},computed:{timings(){return this.msg.timings?{...this.msg.timings,prompt_per_second:this.msg.timings.prompt_n/(this.msg.timings.prompt_ms/1e3),predicted_per_second:this.msg.timings.predicted_n/(this.msg.timings.predicted_ms/1e3)}:null}},methods:{copyMsg(){OC(this.msg.content)},editMsg(){this.editUserMsgAndRegenerate({...this.msg,content:this.editingContent}),this.editingContent=null}}}),je={getAllConversations(){const t=[];for(const e in localStorage)e.startsWith("conv-")&&t.push(JSON.parse(localStorage.getItem(e)));return t.sort((e,r)=>r.lastModified-e.lastModified),t},getOneConversation(t){return JSON.parse(localStorage.getItem(t)||"null")},appendMsg(t,e){if(e.content===null)return;const r=je.getOneConversation(t)||{id:t,lastModified:Date.now(),messages:[]};r.messages.push(e),r.lastModified=Date.now(),localStorage.setItem(t,JSON.stringify(r))},getNewConvId(){return`conv-${Date.now()}`},remove(t){localStorage.removeItem(t)},filterAndKeepMsgs(t,e){const r=je.getOneConversation(t);r&&(r.messages=r.messages.filter(e),r.lastModified=Date.now(),localStorage.setItem(t,JSON.stringify(r)))},popMsg(t){const e=je.getOneConversation(t);if(!e)return;const r=e.messages.pop();return e.lastModified=Date.now(),e.messages.length===0?je.remove(t):localStorage.setItem(t,JSON.stringify(e)),r},getConfig(){const t=JSON.parse(localStorage.getItem("config")||"{}");return{...So,...t}},setConfig(t){localStorage.setItem("config",JSON.stringify(t))},getTheme(){return localStorage.getItem("theme")||"auto"},setTheme(t){t==="auto"?localStorage.removeItem("theme"):localStorage.setItem("theme",t)}},ys=t=>{const e=document.getElementById("messages-list"),r=e.scrollHeight-e.scrollTop-e.clientHeight;(!t||r<100)&&setTimeout(()=>e.scrollTo({top:e.scrollHeight}),1)};async function*V5(t,e){const n=(await fetch(t,e)).body.pipeThrough(new TextDecoderStream).pipeThrough(new Lx);for await(const a of n)if(a.startsWith("data:")&&!a.endsWith("[DONE]"))yield JSON.parse(a.slice(5));else if(a.startsWith("error:")){const i=JSON.parse(a.slice(6));throw new Error(i.message||"Unknown error")}}const IC=js({components:{VueMarkdown:AC,SettingsModalShortInput:H5,MessageBubble:z5},data(){return{conversations:je.getAllConversations(),messages:[],viewingConvId:je.getNewConvId(),inputMsg:"",isGenerating:!1,pendingMsg:null,stopGeneration:()=>{},selectedTheme:je.getTheme(),config:je.getConfig(),showConfigDialog:!1,themes:q5,configDefault:{...So},configInfo:{...G5}}},computed:{},mounted(){document.getElementById("app").classList.remove("opacity-0");const t=document.getElementById("pending-msg");new ResizeObserver(()=>{this.isGenerating&&ys(!0)}).observe(t)},watch:{viewingConvId:function(t,e){t!=e&&(this.fetchMessages(),ys(),this.hideSidebar())}},methods:{hideSidebar(){document.getElementById("toggle-drawer").checked=!1},setSelectedTheme(t){this.selectedTheme=t,je.setTheme(t)},newConversation(){this.isGenerating||(this.viewingConvId=je.getNewConvId())},setViewingConv(t){this.isGenerating||(this.viewingConvId=t)},deleteConv(t){this.isGenerating||window.confirm("Are you sure to delete this conversation?")&&(je.remove(t),this.viewingConvId===t&&(this.viewingConvId=je.getNewConvId()),this.fetchConversation(),this.fetchMessages())},downloadConv(t){const e=je.getOneConversation(t);if(!e){alert("Conversation not found.");return}const r=JSON.stringify(e,null,2),n=new Blob([r],{type:"application/json"}),a=URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.download=`conversation_${t}.json`,document.body
Failed to start app. Please try clearing localStorage and try again.<br/>
<br/>
<button class="btn" onClick="localStorage.clear(); window.location.reload();">Clear localStorage</button>
</div>`}</script>
2024-12-12 20:46:06 +00:00
<style rel="stylesheet" crossorigin>*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webki
Theme: GitHub Dark
Description: Dark theme as seen on github.com
Author: github.com
Maintainer: @Hirse
Updated: 2021-05-15
Outdated base version: https://github.com/primer/github-syntax-dark
Current colors taken from GitHub's CSS
*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAG2sAA4AAAAA+ZAAAG1TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAhlQIMAmcDBEICoOjbILCdAE2AiQDh3oLhAoABCAFiHAHkiEMgScbF8Yn2LYMqH+3gyd/6PAsswO12yEpWsM7RgaCjQOA0H9txf//n5dUxtAmsKQoiOrc/H9QyJEtsi2GVCpzFfRhZqLYbDKTtn0lSwsTw4QD7NnnQk643jskZDh6Xt7UYM3oxmzbFmaT31X7vZ1Ofhd9hkIf+BQk6AtGG/a+RmtE9xoXbdSFR9FOxB/VXmLkD83DqE4FExWNqd74/RMZBmGaKMQcZltI/65kuqt4ilq1coTJWyVukOiXfAqeKn6l+6QPtVT6rXYGto38SU7e4Uk3/727jLss7jIhrCQkYayEBAhDSEIYIWEkIewlIIiKCAiyxLFBwYljonXt6i7Ouoq1ra1dalvbWmuH/b91/tecWqj/pqac+1YCofNIkRQIBX76ptq8ukczdzwgMCUWWoodMkGQZ3ft6nyKqwI7KeFue1/SHUtaOwqw7TgF5tndJCoYCgA/+62qM3gYoIgYOam9285l9XfxkH/iu38HrbRFKJSoMJjBJjCgES++/OTHN6DBBueVEIYT2GWyRdAHtyHtUsaeIRvdS2u75fbihomUAGb5+yWIaWaO3JdsU7GIyb0Pb3poSrpKiYBzf7AK9SlVxD/8A+daldCmPrcJza8x8r/LpGgixmTJrFgX5G/8hAdL7CvF8O5+/iWvIDC3577J0maohbY0WFRACoy8qQwAew8Jnz+kDUr+8xf1F7W6anTmtgm0NQg6e6tf/qrhuxkLWVNIFCiMTKl8UgjTfNcN7gVSWtZyl4UhlL8cYBua79sSxvP/f68dTriql0Yh2+tr9L60ggEc4ek/vtP37WQoJx1Z1ph7B8h2XBh32wMgafuz3v4knSQuXEi4hGlue4EKF2tbQ/h7aMVcJjZv2b0jkEgFvr0tEdh6F9Id3/nfT1/78gFJ/RH5/llAOTlhNnfzEn7FlJJ28JoSvbym8F5GheQjYKiQfgjuZCkAfDdk1Juq3ISb0T1TwELasbb7P1WtdgDbm1O1FzalorsYu27wByCAGYCABqINDCmZhIJFUPKjYNpLg7aXoCgqbsqJ3KCTLmr3QghNEWMdq/46b9FdWx6EtZzNJndz2JcOq/87oSq6oisQtlqcQhiEgYeeMVcn97chl3h0QokzTZhIacRK0sfKpBUp06NxFAVNXtef5/fLZj+4LfFZimSKiBMyIeh+OG6P4XxkooIDrPkPY8tKb5EfFxapYBItbkYApP10JSqA3NoKgKXGiuGQeYGojtgD/Lr5/7Ig80pXqASMUvLebfJPPzYXK86kRESeAJC4usAODr9E4Lj1TR7/Xb7NRGMFbLC+7PSB13yR611fdKPZu1/bg96lvlAESkFlK9EUOpMjVxksDq+Xt25A6ZyZS7meWzK+TCjzlCll4bJpMiMGR6AyuSItXRMLJwBJYYkVOqPVp6ptZOZ0ZvLJJhOi4CtcFTP7b9O+W882Lndm+0r8f1q+/b7jN+9f60ZTcnr8ATGZUr9W/Yi68p7tJCnTZ86eO5UMf6zuOaBEppXFygy9FTqHUtelb27riSDThFL1p+586nVdWJ9p75b+Wh/ZqsVut3Hr9q15y1PWVPin/xWab5/m0NEa9sudNv6sYfKfeEwe/I+/ec22retH161dsXzx0GB/X/vJ0JfzQafdqpSi/BhfLgrCh4M3L56wwUEBivr929cvOumgveaaaaqJpIGKBTzE/dzDnQwApMR4uBhTDaqDEqP67wC2NRUXGv2x24RUnAmCBD77wM2zZsdO/z9mLUNBRuAMXQPeXALO+RvSLr8Fapfpdx9HyM47Ip6uMMGkYihHznuCPIIE6bQASkLUGUJQUkYzRCBe/AxRoDlBZ+5d04o8IkYtyEylRdFNIvw0BlmJCKvUkHI2bpGuLkaltH7iXaItZ/b65hOcIqItT6cdYEUSZIZja4XadViIIoIGBQwIFiEhox7WoQEv1phY/tb66Si7wy5p28Gv+LsNvgcUdTnXmHnW4eiBR50ZpLs3FHikhn6RYTMVu2QVVdHRxSqMkBdXDcQwo04lBMow5QgU4UeziWWIOFkcEtgDgWVsetVwUfaKex2mS0KGtOIlVcqXdmqSEYZZGsg+CwopajOkAl2Q4qkpi3TWAYtJiWHgvJ80io3RWh0jiqjQO4o60GjLNQK2FTf+KpHa9pYviciSr0MaRdXrpOTDEGuXBhbEvEmgvwwbdeJoR/RSM6SDOKdagHQ2wqrxpAKC6yyJSGdE+OaT3t4FDnCezOHwkiLlRuUW+mLwYke/GgMtPiYJXZ30/Qcx0/3JYoUKYMiwSIpHbSL7VGjanAP3bsEKfjn6dvOJus/qHGgx7L30Ub4qgSkHiAPNWuqEPSLodh28E2+TnupcUJCubVa6SzMksBsIwoWv96O8o6RGwibZGZE1ROKatM1SuKRIRfapSDIil4pB2pAsycWbT6FQ3jv2guxaxo/B04cPw5uP0z7n9zW8E/NRAJefDW6ZIKyUZFjDIsS1uMwkoo5wTkDUL1pa0SWlI/JiO3iJaHuZzlgsR0KIUpDFmNGF/Q2DMmrRZe105IoFgDupQ0iCuF+oOv+OCXCtQLY/BXKToktOUrITYVHEC9eF60LKHVFVGRD/syOsCn8guCSWJ2yGQhQgCDGIuJW8jIS8gjx5FfnyHhTIEgplGUWygmJZRYmMBrWYQEgWupJW3nwKglnC53MGb7OD6iCTMHz0Bydl+PyaBNe4RrJ7wupsmuMuSaRIkGH4YMgxFBhKDF8MPwx/jACs5qEQYLvfotBYpGtBdSSs6lhcYRMUrqvCYcRutOtHRA2gj5yGktbl8t4+jToJUJg6CQunb7vselHdLlSd7YZ5S5VpWmkaxCEtsMJ/IBzXsMB2ZEEYjKZ2hkD4D6pEZ1fWi1ZnE35EIoBt9JPwCRIEb
</head>
<body>
<div id="app" class="opacity-0"> <!-- opacity-0 will be removed on app mounted -->
<div class="flex flex-row drawer lg:drawer-open">
<input id="toggle-drawer" type="checkbox" class="drawer-toggle" checked />
<!-- sidebar -->
<div class="drawer-side h-screen lg:h-screen z-50 lg:max-w-64">
<label for="toggle-drawer" aria-label="close sidebar" class="drawer-overlay"></label>
<div class="flex flex-col bg-base-200 min-h-full max-w-64 py-4 px-4">
<div class="flex flex-row items-center justify-between mb-4 mt-4">
<h2 class="font-bold ml-4">Conversations</h2>
<!-- close sidebar button -->
<label for="toggle-drawer" class="btn btn-ghost lg:hidden">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-bar-left" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5M10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5"/>
</svg>
</label>
</div>
<!-- list of conversations -->
<div :class="{
'btn btn-ghost justify-start': true,
'btn-active': messages.length === 0,
}" @click="newConversation">
+ New conversation
</div>
<div v-for="conv in conversations" :class="{
'btn btn-ghost justify-start font-normal': true,
'btn-active': conv.id === viewingConvId,
}" @click="setViewingConv(conv.id)">
<span class="truncate">{{ conv.messages[0].content }}</span>
</div>
<div class="text-center text-xs opacity-40 mt-auto mx-4">
Conversations are saved to browser's localStorage
</div>
</div>
</div>
<!-- main view -->
<div class="chat-screen drawer-content grow flex flex-col h-screen w-screen mx-auto px-4">
<!-- header -->
<div class="flex flex-row items-center mt-6 mb-6">
<!-- open sidebar button -->
<label for="toggle-drawer" class="btn btn-ghost lg:hidden">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-list" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/>
</svg>
</label>
<div class="grow text-2xl font-bold ml-2">llama.cpp</div>
<!-- action buttons (top right) -->
<div class="flex items-center">
<div v-if="messages.length > 0" class="dropdown dropdown-end">
<!-- "more" button -->
<button tabindex="0" role="button" class="btn m-1" :disabled="isGenerating">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-three-dots-vertical" viewBox="0 0 16 16">
<path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>
</svg>
</button>
<!-- "more" dropdown menu -->
<ul tabindex="0" class="dropdown-content menu bg-base-100 rounded-box z-[1] w-52 p-2 shadow">
<li @click="downloadConv(viewingConvId)"><a>Download</a></li>
<li class="text-error" @click="deleteConv(viewingConvId)"><a>Delete</a></li>
</ul>
</div>
<button class="btn" @click="showConfigDialog = true" :disabled="isGenerating">
<!-- settings button -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-gear" viewBox="0 0 16 16">
<path d="M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492M5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0"/>
<path d="M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115z"/>
</svg>
</button>
<!-- theme controller is copied from https://daisyui.com/components/theme-controller/ -->
<div class="dropdown dropdown-end dropdown-bottom">
<div tabindex="0" role="button" class="btn m-1">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-palette2" viewBox="0 0 16 16">
<path d="M0 .5A.5.5 0 0 1 .5 0h5a.5.5 0 0 1 .5.5v5.277l4.147-4.131a.5.5 0 0 1 .707 0l3.535 3.536a.5.5 0 0 1 0 .708L10.261 10H15.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5H3a3 3 0 0 1-2.121-.879A3 3 0 0 1 0 13.044m6-.21 7.328-7.3-2.829-2.828L6 7.188zM4.5 13a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0M15 15v-4H9.258l-4.015 4zM0 .5v12.495zm0 12.495V13z"/>
</svg>
</div>
<ul tabindex="0" class="dropdown-content bg-base-300 rounded-box z-[1] w-52 p-2 shadow-2xl h-80 overflow-y-auto">
<li>
<button
class="btn btn-sm btn-block btn-ghost justify-start"
:class="{ 'btn-active': selectedTheme === 'auto' }"
@click="setSelectedTheme('auto')">
auto
</button>
</li>
<li v-for="theme in themes">
<input
type="radio"
name="theme-dropdown"
class="theme-controller btn btn-sm btn-block btn-ghost justify-start"
:aria-label="theme"
:value="theme"
:checked="selectedTheme === theme"
@click="setSelectedTheme(theme)" />
</li>
</ul>
</div>
</div>
</div>
<!-- chat messages -->
<div id="messages-list" class="flex flex-col grow overflow-y-auto">
<div class="mt-auto flex justify-center">
<!-- placeholder to shift the message to the bottom -->
{{ messages.length === 0 ? 'Send a message to start' : '' }}
</div>
<div v-for="msg in messages" class="group">
<message-bubble
:config="config"
:msg="msg"
:key="msg.id"
:is-generating="isGenerating"
:edit-user-msg-and-regenerate="editUserMsgAndRegenerate"
:regenerate-msg="regenerateMsg"></message-bubble>
</div>
<!-- pending (ongoing) assistant message -->
<div id="pending-msg" class="group">
<message-bubble
v-if="pendingMsg"
:config="config"
:msg="pendingMsg"
:key="pendingMsg.id"
:is-generating="isGenerating"
:edit-user-msg-and-regenerate="() => {}"
:regenerate-msg="() => {}"></message-bubble>
</div>
</div>
<!-- chat input -->
<div class="flex flex-row items-center mt-8 mb-6">
<textarea
class="textarea textarea-bordered w-full"
placeholder="Type a message (Shift+Enter to add a new line)"
v-model="inputMsg"
@keydown.enter.exact.prevent="sendMessage"
@keydown.enter.shift.exact.prevent="inputMsg += '\n'"
:disabled="isGenerating"
id="msg-input"
></textarea>
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0">Send</button>
<button v-else class="btn btn-neutral ml-2" @click="stopGeneration">Stop</button>
</div>
</div>
</div>
<!-- modal for editing config -->
<dialog class="modal" :class="{'modal-open': showConfigDialog}">
<div class="modal-box">
<h3 class="text-lg font-bold mb-6">Settings</h3>
<div class="h-[calc(90vh-12rem)] overflow-y-auto">
<p class="opacity-40 mb-6">Settings below are saved in browser's localStorage</p>
<settings-modal-short-input :config-key="'apiKey'" :config-default="configDefault" :config-info="configInfo" v-model="config.apiKey"></settings-modal-short-input>
<label class="form-control mb-2">
<div class="label">System Message</div>
<textarea class="textarea textarea-bordered h-24" :placeholder="'Default: ' + configDefault.systemMessage" v-model="config.systemMessage"></textarea>
</label>
<template v-for="configKey in ['temperature', 'top_k', 'top_p', 'min_p', 'max_tokens']">
<settings-modal-short-input :config-key="configKey" :config-default="configDefault" :config-info="configInfo" v-model="config[configKey]"></settings-modal-short-input>
</template>
<!-- TODO: add more sampling-related configs, please regroup them into different "collapse" sections -->
<!-- Section: Other sampler settings -->
<details class="collapse collapse-arrow bg-base-200 mb-2 overflow-visible">
<summary class="collapse-title font-bold">Other sampler settings</summary>
<div class="collapse-content">
<!-- Samplers queue -->
<settings-modal-short-input label="Samplers queue" :config-key="'samplers'" :config-default="configDefault" :config-info="configInfo" v-model="config.samplers"></settings-modal-short-input>
<!-- Samplers -->
<template v-for="configKey in ['dynatemp_range', 'dynatemp_exponent', 'typical_p', 'xtc_probability', 'xtc_threshold']">
<settings-modal-short-input :config-key="configKey" :config-default="configDefault" :config-info="configInfo" v-model="config[configKey]"></settings-modal-short-input>
</template>
</div>
</details>
<!-- Section: Penalties settings -->
<details class="collapse collapse-arrow bg-base-200 mb-2 overflow-visible">
<summary class="collapse-title font-bold">Penalties settings</summary>
<div class="collapse-content">
<template v-for="configKey in ['repeat_last_n', 'repeat_penalty', 'presence_penalty', 'frequency_penalty', 'dry_multiplier', 'dry_base', 'dry_allowed_length', 'dry_penalty_last_n']">
<settings-modal-short-input :config-key="configKey" :config-default="configDefault" :config-info="configInfo" v-model="config[configKey]"></settings-modal-short-input>
</template>
</div>
</details>
<!-- Section: Advanced config -->
<details class="collapse collapse-arrow bg-base-200 mb-2 overflow-visible">
<summary class="collapse-title font-bold">Advanced config</summary>
<div class="collapse-content">
<div class="flex flex-row items-center mb-2">
<input type="checkbox" class="checkbox" v-model="config.showTokensPerSecond" />
<span class="ml-4">Show tokens per second</span>
</div>
<label class="form-control mb-2">
<!-- Custom parameters input -->
<div class="label inline">Custom JSON config (For more info, refer to <a class="underline" href="https://github.com/ggerganov/llama.cpp/blob/master/examples/server/README.md" target="_blank" rel="noopener noreferrer">server documentation</a>)</div>
<textarea class="textarea textarea-bordered h-24" placeholder="Example: { &quot;mirostat&quot;: 1, &quot;min_p&quot;: 0.1 }" v-model="config.custom"></textarea>
</label>
</div>
</details>
</div>
<!-- action buttons -->
<div class="modal-action">
<button class="btn" @click="resetConfigDialog">Reset to default</button>
<button class="btn" @click="closeAndDiscardConfigDialog">Close</button>
<button class="btn btn-primary" @click="closeAndSaveConfigDialog">Save</button>
</div>
</div>
</dialog>
</div>
<!-- Template to be used as message bubble -->
<template id="message-bubble">
<div :class="{
'chat': true,
'chat-start': msg.role !== 'user',
'chat-end': msg.role === 'user',
}">
<div :class="{
'chat-bubble markdown': true,
'chat-bubble-base-300': msg.role !== 'user',
}">
<!-- textarea for editing message -->
<template v-if="editingContent !== null">
<textarea
class="textarea textarea-bordered bg-base-100 text-base-content w-[calc(90vw-8em)] lg:w-96"
v-model="editingContent"></textarea>
<br/>
<button class="btn btn-ghost mt-2 mr-2" @click="editingContent = null">Cancel</button>
<button class="btn mt-2" @click="editMsg()">Submit</button>
</template>
<template v-else>
<!-- show loading dots for pending message -->
<span v-if="msg.content === null" class="loading loading-dots loading-md"></span>
<!-- render message as markdown -->
<vue-markdown v-else :source="msg.content"></vue-markdown>
<!-- render timings if enabled -->
<div class="dropdown dropdown-hover dropdown-top mt-2" v-if="timings && config.showTokensPerSecond">
<div tabindex="0" role="button" class="cursor-pointer font-semibold text-sm opacity-60">Speed: {{ timings.predicted_per_second.toFixed(1) }} t/s</div>
<div class="dropdown-content bg-base-100 z-10 w-64 p-2 shadow mt-4">
<b>Prompt</b><br/>
- Tokens: {{ timings.prompt_n }}<br/>
- Time: {{ timings.prompt_ms }} ms<br/>
- Speed: {{ timings.prompt_per_second.toFixed(1) }} t/s<br/>
<b>Generation</b><br/>
- Tokens: {{ timings.predicted_n }}<br/>
- Time: {{ timings.predicted_ms }} ms<br/>
- Speed: {{ timings.predicted_per_second.toFixed(1) }} t/s<br/>
</div>
</div>
</template>
</div>
</div>
<!-- actions for each message -->
<div :class="{'text-right': msg.role === 'user', 'opacity-0': isGenerating}" class="mx-4 mt-2 mb-2">
<!-- user message -->
<button v-if="msg.role === 'user'" class="badge btn-mini show-on-hover" @click="editingContent = msg.content" :disabled="isGenerating">
✍️ Edit
</button>
<!-- assistant message -->
<button v-if="msg.role === 'assistant'" class="badge btn-mini show-on-hover mr-2" @click="regenerateMsg(msg)" :disabled="isGenerating">
🔄 Regenerate
</button>
<button v-if="msg.role === 'assistant'" class="badge btn-mini show-on-hover mr-2" @click="copyMsg()" :disabled="isGenerating">
📋 Copy
</button>
</div>
</template>
<!-- Template to be used by settings modal -->
<template id="settings-modal-short-input">
<label class="input input-bordered join-item grow flex items-center gap-2 mb-2">
<!-- Show help message on hovering on the input label -->
<div class="dropdown dropdown-hover">
<div tabindex="0" role="button" class="font-bold">{{ label || configKey }}</div>
<div class="dropdown-content menu bg-base-100 rounded-box z-10 w-64 p-2 shadow mt-4">
{{ configInfo[configKey] || '(no help message available)' }}
</div>
</div>
<!-- Here we forward v-model from parent to child component, see: https://stackoverflow.com/questions/47311936/v-model-and-child-components -->
<input type="text" class="grow" :placeholder="'Default: ' + (configDefault[configKey] || 'none')" :value="modelValue" @input="$emit('update:modelValue', $event.target.value)" />
</label>
</template>
</body>
</html>