@lamplitisles/codex-for-love 0.4.3 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,330 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BZwtE-rc.js","../chunks/C2DTc7yw.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,A as t,B as n,C as r,Ct as i,D as a,E as o,Et as s,F as c,G as l,H as u,I as d,J as f,K as p,L as m,M as h,N as g,O as _,Ot as v,P as y,Q as b,R as ee,S as x,St as S,T as C,Tt as w,V as T,W as te,X as E,Y as D,_ as O,_t as ne,at as k,b as re,bt as ie,c as ae,ct as oe,d as se,dt as A,et as j,f as ce,ft as le,g as ue,gt as de,h as M,ht as fe,i as pe,it as me,j as he,k as ge,l as _e,lt as ve,m as ye,mt as be,nt as N,o as xe,ot as Se,p as Ce,pt as we,q as Te,r as Ee,rt as P,s as De,st as F,t as Oe,tt as I,u as ke,ut as Ae,v as je,vt as Me,w as Ne,wt as L,x as Pe,xt as Fe,y as Ie,yt as Le,z as Re}from"../chunks/C2DTc7yw.js";import"../chunks/CyqZh0gB.js";import{t as ze}from"../chunks/uBIymjUX.js";import"../chunks/xihTtKlq.js";function Be(e,t){let n=new Map(e.map(e=>[e.id,e]));for(let e of t){let t=n.get(e.id);(!t||e.revision>t.revision)&&n.set(e.id,e)}return[...n.values()].sort((e,t)=>e.sequence-t.sequence)}function Ve(e,t){let n=new Map(e.map(e=>[e.id,e]));for(let e of t){let t=n.get(e.id);(!t||e.revision>t.revision)&&n.set(e.id,e)}return[...n.values()].sort((e,t)=>e.sequence-t.sequence||e.revision-t.revision)}var He=`image/png,image/jpeg,image/webp,image/gif`,Ue=new Set([`image/png`,`image/jpeg`,`image/webp`,`image/gif`]);function We(e,t,n){if(t.length!==0){if(!n)return{key:`image.unavailable`};if(t.some(e=>!Ue.has(e.type)||!n.mediaTypes.includes(e.type)))return{key:`image.types`};if(e.length+t.length>n.maxImagesPerMessage)return{key:`image.countLimit`,params:{count:n.maxImagesPerMessage}};if(t.some(e=>e.size>n.maxImageBytes))return{key:`image.tooLarge`};if(e.reduce((e,t)=>e+t.file.size,0)+t.reduce((e,t)=>e+t.size,0)>n.maxMessageImageBytes)return{key:`image.totalTooLarge`}}}function Ge(e){return e.map(e=>({id:crypto.randomUUID(),file:e,previewUrl:URL.createObjectURL(e)}))}function Ke(e){for(let t of e)t.previewUrl.startsWith(`blob:`)&&URL.revokeObjectURL(t.previewUrl)}function qe(e){if(!e)return[];let t=[];for(let n=0;n<e.items.length;n+=1){let r=e.items[n];if(r.kind!==`file`||!r.type.startsWith(`image/`))continue;let i=r.getAsFile();i&&t.push(i)}return t.length>0?t:Array.from(e.files).filter(e=>e.type.startsWith(`image/`))}async function Je(e,t=fetch){let n=e.webPath;if(!n)throw Error(`camera-media-missing-url`);try{let r=await t(n);if(!r.ok)throw Error(`camera-media-fetch-failed`);let i=await r.blob(),a=Ze(i.type)??Ze(e.metadata?.format)??Ze(n);if(!a)throw Error(`camera-media-unsupported-type`);let o=a.slice(6);return new File([i],`camera-photo.${o}`,{type:a})}finally{n.startsWith(`blob:`)&&URL.revokeObjectURL(n)}}async function Ye(e){return Promise.all(e.map(async e=>({type:`image`,mediaType:e.file.type,data:await Xe(e.file),...e.file.name?{name:e.file.name}:{}})))}function Xe(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=typeof r.result==`string`?r.result:``,i=e.indexOf(`,`);if(i<0){n(Error(`image-read-failed`));return}t(e.slice(i+1))},r.onerror=()=>n(r.error??Error(`image-read-failed`)),r.readAsDataURL(e)})}function Ze(e){let t=e?.trim().toLowerCase().replace(/^\./u,``);if(t){if(t===`jpg`||t===`jpeg`||t===`image/jpg`||t===`image/jpeg`)return`image/jpeg`;if(t===`png`||t===`image/png`)return`image/png`;if(t===`webp`||t===`image/webp`)return`image/webp`;if(t===`gif`||t===`image/gif`)return`image/gif`}}function Qe(e,t){let n=new Map;for(let r of t){let t=0;if(r.anchorId){let n=e.findIndex(e=>e.id===`${r.anchorId}:user`);if(n<0)continue;if(r.position===`before`)t=n;else if(r.position===`after-user`)t=n+1;else for(t=n+1;e[t]?.side===`incoming`;)t+=1}let i=n.get(t)??[];i.push({id:r.id,side:`incoming`,items:[{id:r.id,messageKey:r.id,kind:`continuity`,side:`incoming`,tone:`success`,compactionId:r.id,text:``,time:r.time,anchorSeq:t}]}),n.set(t,i)}return Array.from({length:e.length+1},(t,r)=>[...n.get(r)??[],...e[r]?[e[r]]:[]]).flat()}S();var $e=16e3,et=10485760,tt=3e5,nt=[`audio/aac`,`audio/amr`,`audio/aiff`,`audio/flac`,`audio/mpeg`,`audio/mp3`,`audio/ogg`,`audio/opus`,`audio/wav`,`audio/x-wav`,`audio/webm`,`audio/x-ms-wma`],rt=[`surprised`,`neutral`,`happy`,`sad`,`disgusted`,`angry`,`fearful`],it=`[a-z0-9!#$&^_.+-]+`,at=RegExp(`^audio\\/[a-z0-9][a-z0-9.+-]*(?:\\s*;\\s*${it}=${it})*$`,`u`);function ot(e){if(typeof e!=`string`||e.length>256)return;let t=e.trim().toLowerCase();if(!/^[\x00-\x7F]*$/u.test(t))return;let n=t.split(`;`,1)[0]?.trim();if(n&&at.test(t))return nt.includes(n)?t:void 0}function st(e){return typeof e==`string`&&rt.includes(e.trim().toLowerCase())}function ct(e){if(st(e))return e.trim().toLowerCase()}function lt(e){let t=ot(e);return t?`data:${t};base64,`:void 0}function ut(e){if(!Number.isSafeInteger(e)||e<0)return;let t=Math.ceil(e/3)*4;return Number.isSafeInteger(t)?t:void 0}function dt(e,t){let n=lt(e),r=ut(t);return n===void 0||r===void 0?void 0:n.length+r}function ft(e,t=et){let n=lt(e);if(n===void 0||!Number.isSafeInteger(t)||t<0)return;let r=t-n.length;return r<4?0:Math.floor(r/4)*3}function pt(e,t,n=et){let r=dt(e,t);return r!==void 0&&r<=n}var mt=class extends Error{code;constructor(e,t){super(t??e),this.name=`VoiceRecordingError`,this.code=e}};function ht(){let e=globalThis;return{mediaDevices:e.navigator?.mediaDevices,mediaRecorder:e.MediaRecorder,...typeof e.isSecureContext==`boolean`?{isSecureContext:e.isSecureContext}:{}}}function gt(e){return e.setTimeout??globalThis.setTimeout.bind(globalThis)}function _t(e,t){t!==void 0&&(e.clearTimeout??globalThis.clearTimeout.bind(globalThis))(t)}function vt(e){try{for(let t of e?.getTracks?.()??[])t.stop?.()}catch{}}function yt(e){return e.isSecureContext!==!1&&typeof e.mediaDevices?.getUserMedia==`function`&&!!e.mediaRecorder}function bt(e=ht()){return yt(e)}function xt(e=ht().mediaRecorder){if(e)for(let t of[`audio/webm;codecs=opus`,`audio/webm`,`audio/ogg;codecs=opus`,`audio/ogg`,`audio/mp4`,`audio/mpeg`])try{if((!e.isTypeSupported||e.isTypeSupported(t))&&ot(t))return t}catch{}}function St(e,t,n){if(!(e instanceof Blob))throw new mt(`empty`,`录音内容无效。`);let r=ot(e.type||t);if(!r)throw new mt(`media-type`,`浏览器生成了不支持的录音格式。`);if(!Number.isSafeInteger(e.size)||e.size<=0)throw new mt(`empty`,`没有录到声音,请再试一次。`);let i=ft(r),a=i===void 0?0:n===void 0?i:Math.min(i,n);if(e.size>a||!pt(r,e.size))throw new mt(`size-limit`,`录音超过语音大小限制。`);return{blob:e,mediaType:r,bytes:e.size,durationMs:0}}function Ct(e){if(Array.isArray(e)){for(let t of e){let e=Ct(t);if(e)return e}return}if(typeof e==`object`&&e){let t=e;return ct(t.expression??t.speechExpression??t.speech_expression??t.emotion)}return ct(e)}function wt(e){if(typeof e!=`object`||!e||Array.isArray(e))throw new mt(`transcript-invalid`,`语音转写结果无效。`);let t=e,n=typeof t.text==`string`?t.text.trim():``;if(!n)throw new mt(`transcript-empty`,`没有听清内容,请再试一次。`);if(Array.from(n).length>2e4)throw new mt(`transcript-invalid`,`语音转写内容过长。`);let r;for(let e of[t.expression,t.speechExpression,t.speech_expression,t.sentences,t.expressions])if(r=Ct(e),r)break;return r?{text:n,expression:r}:{text:n}}function Tt(e){let t=wt(e);return t.expression?`🎙️ ${t.text} [${t.expression}]`:`🎙️ ${t.text}`}var Et=class{options;maxDurationMs;configuredMaxBytes;statusValue=`idle`;operation;generation=0;disposed=!1;constructor(e={}){this.options={...ht(),...e},this.maxDurationMs=Number.isFinite(e.maxDurationMs)&&(e.maxDurationMs??0)>0?e.maxDurationMs:tt,this.configuredMaxBytes=Number.isSafeInteger(e.maxBytes)&&(e.maxBytes??0)>0?e.maxBytes:et}get status(){return this.statusValue}get busy(){return this.statusValue===`recording`||this.statusValue===`stopping`||this.statusValue===`transcribing`}get elapsedMs(){let e=this.operation;return e?Math.max(0,(this.options.now??Date.now)()-e.startedAt):0}setStatus(e){this.statusValue=e;try{this.options.onStatus?.(e)}catch{}}async start(){if(this.disposed||this.busy)return!1;if(!yt(this.options))throw this.setStatus(`unavailable`),new mt(this.options.isSecureContext===!1?`insecure-context`:`unsupported`,`当前环境不支持麦克风录音。`);let e=xt(this.options.mediaRecorder);if(!e)throw this.setStatus(`unavailable`),new mt(`unsupported`,`当前浏览器没有可用的录音格式。`);let t=ot(e),n=t===void 0?void 0:ft(t),r=n===void 0?0:Math.min(this.configuredMaxBytes,n);if(r<=0)throw this.setStatus(`unavailable`),new mt(`unsupported`,`当前浏览器没有可用的录音格式。`);let i=++this.generation,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(()=>void 0);let c={generation:i,mediaType:t,maxBytes:r,chunks:[],bytes:0,startedAt:0,completion:s,resolve:a,reject:o};this.operation=c,this.setStatus(`recording`);try{if(c.stream=await this.options.mediaDevices.getUserMedia({audio:!0}),this.disposed||this.operation!==c||i!==this.generation)throw vt(c.stream),new mt(`cancelled`,`录音已取消。`);let t=this.options.mediaRecorder;return c.recorder=new t(c.stream,{mimeType:e}),c.recorder.ondataavailable=e=>this.onData(c,e.data),c.recorder.onerror=e=>this.fail(c,new mt(`capture-failed`,e.error instanceof Error?e.error.message:`录音失败,请重试。`)),c.recorder.onstop=()=>this.finish(c),c.recorder.start(1e3),c.startedAt=(this.options.now??Date.now)(),c.timer=gt(this.options)(()=>this.requestStop(c,`duration-limit`),this.maxDurationMs),!0}catch(e){let t=e instanceof Error||typeof e==`object`&&e&&`name`in e&&typeof e.name==`string`?e.name:``,n=e instanceof mt?e:t===`NotAllowedError`||t===`PermissionDeniedError`?new mt(`permission-denied`,`麦克风权限被拒绝,请允许后重试。`):new mt(`capture-failed`,`无法开始录音,请重试。`);throw this.fail(c,n),n}}async stop(){return this.stopAndGet()}async stopAndGet(){let e=this.operation;if(e){if(this.statusValue===`stopping`)return e.completion;if(this.statusValue===`recording`&&this.setStatus(`stopping`),e.stopReason??=`user`,!e.recorder)this.fail(e,new mt(`cancelled`,`录音已取消。`));else try{e.recorder.stop()}catch{this.fail(e,new mt(`capture-failed`,`录音失败,请重试。`))}return e.completion}}markTranscribing(){return this.disposed||this.operation||this.statusValue===`recording`||this.statusValue===`stopping`?!1:(this.setStatus(`transcribing`),!0)}finishTranscribing(){this.statusValue===`transcribing`&&this.setStatus(`idle`)}async cancel(){let e=this.operation;if(!e){this.statusValue===`transcribing`&&this.setStatus(`idle`);return}if(e.stopReason=`cancelled`,this.statusValue===`recording`&&this.setStatus(`stopping`),e.recorder)try{e.recorder.stop()}catch{this.fail(e,new mt(`cancelled`,`录音已取消。`))}else this.fail(e,new mt(`cancelled`,`录音已取消。`))}dispose(){this.disposed=!0,this.cancel(),this.setStatus(`idle`)}requestStop(e,t){if(!(this.operation!==e||e.stopReason)){e.stopReason=t,this.statusValue===`recording`&&this.setStatus(`stopping`);try{e.recorder?.stop()}catch{this.fail(e,new mt(`capture-failed`,`录音失败,请重试。`))}}}onData(e,t){if(this.operation!==e||!t||t.size<=0)return;let n=ot(t.type),r=n===void 0?void 0:ft(n);r!==void 0&&(e.maxBytes=Math.min(e.maxBytes,r)),e.bytes+=t.size,e.chunks.push(t),e.bytes>e.maxBytes&&this.requestStop(e,`size-limit`)}finish(e){if(this.operation!==e)return;let t=e.stopReason;if(t===`cancelled`){this.fail(e,new mt(`cancelled`,`录音已取消。`));return}if(t===`duration-limit`){this.fail(e,new mt(`duration-limit`,`录音最长 5 分钟,已停止。`));return}if(t===`size-limit`||e.bytes>e.maxBytes){this.fail(e,new mt(`size-limit`,`录音超过语音大小限制,已停止。`));return}try{let t=e.chunks.find(e=>e.type)?.type||e.recorder?.mimeType||e.mediaType,n=St(new Blob(e.chunks,{type:t??``}),t,e.maxBytes);this.complete(e,{...n,durationMs:Math.max(0,(this.options.now??Date.now)()-e.startedAt)})}catch(t){this.fail(e,t)}}complete(e,t){this.operation===e&&(_t(this.options,e.timer),vt(e.stream),this.operation=void 0,this.setStatus(`idle`),e.resolve(t))}fail(e,t){if(this.operation!==e)return;let n=t instanceof mt?t:new mt(`capture-failed`,`录音失败,请重试。`);_t(this.options,e.timer),vt(e.stream),this.operation=void 0,this.setStatus(`idle`);try{this.options.onError?.(n)}catch{}e.reject(n)}},Dt={},Ot=[`en`,`zh`],kt=`PARAGLIDE_LOCALE`,At=[`globalVariable`,`preferredLanguage`,`baseLocale`],jt=[],Mt=typeof window>`u`;globalThis.__paraglide=globalThis.__paraglide??{},globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var Nt,Pt=!1,R=()=>{let e=At;!Mt&&typeof window<`u`&&window.location?.href&&(e=Xt(window.location.href));let t=Ft(e,typeof window<`u`?window.location?.href:void 0);if(t)return Pt||(Nt=t,Pt=!0,Lt(t,{reload:!1})),t;throw Error(`No locale found. Read the docs https://paraglidejs.com/errors#no-locale-found`)};function Ft(e,t){let n;for(let t of e){if(t===`baseLocale`)n=`en`;else if(t===`globalVariable`&&Nt!==void 0)n=Nt;else if(t===`preferredLanguage`&&!Mt)n=Wt();else if(Qt(t)&&Zt.has(t)){let e=Zt.get(t);if(e){let t=e.getLocale();if(t instanceof Promise)continue;if(t!==void 0)return Bt(t)}}let e=zt(n);if(e)return e}}var It=e=>{e?window.location.href=e:window.location.reload()},Lt=(e,t)=>{let n={reload:!0,...t},r;try{r=R()}catch{}let i=[],a=At;!Mt&&typeof window<`u`&&window.location?.href&&(a=Xt(window.location.href));for(let t of a)if(t===`globalVariable`)Nt=e;else if(t===`baseLocale`)continue;else if(Qt(t)&&Zt.has(t)){let n=Zt.get(t);if(n){let r=n.setLocale(e);r instanceof Promise&&(r=r.catch(e=>{throw Error(`Custom strategy "${t}" setLocale failed.`,{cause:e})}),i.push(r))}}let o=()=>{!Mt&&n.reload&&window.location&&e!==r&&It(void 0)};if(i.length)return Promise.all(i).then(()=>{o()});o()},Rt=()=>typeof window<`u`?window.location.origin:`http://fallback.com`;function zt(e){if(typeof e!=`string`)return;let t=e.toLowerCase();for(let e of Ot)if(e.toLowerCase()===t)return e}function Bt(e){let t=zt(e);if(t)return t;throw Error(`Invalid locale: ${e}. Expected one of: ${Ot.join(`, `)}`)}function Vt(e){return e}function Ht(e,t){return e.exec(t.href)}var Ut=kt.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);RegExp(`(?:^|;\\s*)${Ut}=([^;]*)`);function Wt(){if(!navigator?.languages?.length)return;let e=navigator.languages.map(e=>({fullTag:e,baseTag:e.split(`-`)[0]}));for(let t of e){let e=zt(t.fullTag);if(e)return e;let n=zt(t.baseTag);if(n)return n}}function Gt(e){return Kt(e)}function Kt(e){let t=Vt(typeof e==`string`?new URL(e,Rt()):new URL(e)),n=t.pathname.split(`/`).filter(Boolean);return n.length>0&&zt(n[0])&&(t.pathname=`/`+n.slice(1).join(`/`)),Vt(t)}var qt,Jt;function Yt(e){if(jt.length===0)return;let t=typeof e==`string`?e:e.href;if(qt===t)return Jt;let n=Vt(new URL(t,`http://example.com`)),r=Gt(n),i=r.href===n.href?[n]:[n,r],a;for(let e of i){for(let t of jt)if(Ht(new Dt(t.match,e.href),e)){a=t;break}if(a)break}return qt=t,Jt=a,a}function Xt(e){let t=Yt(e);return t&&t.exclude!==!0&&Array.isArray(t.strategy)?t.strategy:At}var Zt=new Map;function Qt(e){return typeof e==`string`&&/^custom-[A-Za-z0-9_-]+$/.test(e)}var $t=()=>`Adjust closeness`,en=()=>`校正亲近度`,tn=((e={},t={})=>(t.locale??R())===`zh`?en(e):$t(e)),nn=()=>`Close`,rn=()=>`亲近`,an=((e={},t={})=>(t.locale??R())===`zh`?rn(e):nn(e)),on=()=>`Deep bond`,sn=()=>`深厚`,cn=((e={},t={})=>(t.locale??R())===`zh`?sn(e):on(e)),ln=()=>`Distant`,un=()=>`疏离`,dn=((e={},t={})=>(t.locale??R())===`zh`?un(e):ln(e)),fn=()=>`Familiar`,pn=()=>`熟悉`,mn=((e={},t={})=>(t.locale??R())===`zh`?pn(e):fn(e)),hn=()=>`Enter a whole number from 0 to 100.`,gn=()=>`输入 0 到 100 的整数。`,_n=((e={},t={})=>(t.locale??R())===`zh`?gn(e):hn(e)),vn=()=>`Closeness`,yn=()=>`亲近度`,bn=((e={},t={})=>(t.locale??R())===`zh`?yn(e):vn(e)),xn=()=>`Reset closeness`,Sn=()=>`重置亲近度`,Cn=((e={},t={})=>(t.locale??R())===`zh`?Sn(e):xn(e)),wn=()=>`Getting acquainted`,Tn=()=>`生疏`,En=((e={},t={})=>(t.locale??R())===`zh`?Tn(e):wn(e)),Dn=()=>`Apply`,On=()=>`应用`,kn=((e={},t={})=>(t.locale??R())===`zh`?On(e):Dn(e)),An=()=>`Choose image`,jn=()=>`选择图片`,Mn=((e={},t={})=>(t.locale??R())===`zh`?jn(e):An(e)),Nn=()=>`Companion avatar`,Pn=()=>`Companion 头像`,Fn=((e={},t={})=>(t.locale??R())===`zh`?Pn(e):Nn(e)),In=()=>`Companion avatar preview`,Ln=()=>`Companion 头像预览`,Rn=((e={},t={})=>(t.locale??R())===`zh`?Ln(e):In(e)),zn=()=>`Couldn’t decode the avatar image.`,Bn=()=>`头像解码失败。`,Vn=((e={},t={})=>(t.locale??R())===`zh`?Bn(e):zn(e)),Hn=()=>`Avatar dimensions must be between 1 and 4096 pixels.`,Un=()=>`头像尺寸需要在 1 到 4096 像素之间。`,Wn=((e={},t={})=>(t.locale??R())===`zh`?Un(e):Hn(e)),Gn=()=>`Choose a PNG, JPEG, WebP, or GIF avatar up to 5 MB.`,Kn=()=>`头像必须是 5 MB 以内的 PNG、JPEG、WebP 或 GIF。`,qn=((e={},t={})=>(t.locale??R())===`zh`?Kn(e):Gn(e)),Jn=()=>`Local PNG, JPEG, WebP, or GIF image, up to 5 MB.`,Yn=()=>`本地图片,PNG/JPEG/WebP/GIF,5 MB 以内。`,Xn=((e={},t={})=>(t.locale??R())===`zh`?Yn(e):Jn(e)),Zn=()=>`Invalid avatar.`,Qn=()=>`头像无效。`,$n=((e={},t={})=>(t.locale??R())===`zh`?Qn(e):Zn(e)),er=()=>`No image selected`,tr=()=>`未选择图片`,nr=((e={},t={})=>(t.locale??R())===`zh`?tr(e):er(e)),rr=()=>`Couldn’t read the avatar image.`,ir=()=>`头像读取失败。`,ar=((e={},t={})=>(t.locale??R())===`zh`?ir(e):rr(e)),or=()=>`Avatar ready. Save to apply it.`,sr=()=>`头像已准备,点击保存后生效`,cr=((e={},t={})=>(t.locale??R())===`zh`?sr(e):or(e)),lr=()=>`Image selected`,ur=()=>`已选择图片`,dr=((e={},t={})=>(t.locale??R())===`zh`?ur(e):lr(e)),fr=()=>`Your avatar`,pr=()=>`你的头像`,mr=((e={},t={})=>(t.locale??R())===`zh`?pr(e):fr(e)),hr=()=>`Your avatar preview`,gr=()=>`用户头像预览`,_r=((e={},t={})=>(t.locale??R())===`zh`?gr(e):hr(e)),vr=()=>`Couldn’t take a photo. Please try again.`,yr=()=>`拍照失败,请重试。`,br=((e={},t={})=>(t.locale??R())===`zh`?yr(e):vr(e)),xr=()=>`Companion private chat`,Sr=()=>`Companion 私聊`,Cr=((e={},t={})=>(t.locale??R())===`zh`?Sr(e):xr(e)),wr=()=>`Close`,Tr=()=>`关闭`,Er=((e={},t={})=>(t.locale??R())===`zh`?Tr(e):wr(e)),Dr=()=>`Command suggestions`,Or=()=>`命令补全`,kr=((e={},t={})=>(t.locale??R())===`zh`?Or(e):Dr(e)),Ar=()=>`Conversation memory could not be organized right now.`,jr=()=>`暂时无法整理对话`,Mr=((e={},t={})=>(t.locale??R())===`zh`?jr(e):Ar(e)),Nr=()=>`Organize conversation memory`,Pr=()=>`整理当前对话`,Fr=((e={},t={})=>(t.locale??R())===`zh`?Pr(e):Nr(e)),Ir=()=>`Organize memory to keep the conversation flowing`,Lr=()=>`整理记忆,让下一段对话自然接续`,Rr=((e={},t={})=>(t.locale??R())===`zh`?Lr(e):Ir(e)),zr=()=>`Memory organized`,Br=()=>`整理记忆已完成`,Vr=((e={},t={})=>(t.locale??R())===`zh`?Br(e):zr(e)),Hr=()=>`Memory wasn’t organized. You can keep chatting.`,Ur=()=>`本次整理未完成,仍可继续对话`,Wr=((e={},t={})=>(t.locale??R())===`zh`?Ur(e):Hr(e)),Gr=()=>`Conversation memory organized`,Kr=()=>`已整理对话`,qr=((e={},t={})=>(t.locale??R())===`zh`?Kr(e):Gr(e)),Jr=()=>`Organizing memory…`,Yr=()=>`正在整理记忆…`,Xr=((e={},t={})=>(t.locale??R())===`zh`?Yr(e):Jr(e)),Zr=()=>`Open Companion`,Qr=()=>`打开 Companion`,$r=((e={},t={})=>(t.locale??R())===`zh`?Qr(e):Zr(e)),ei=()=>`Write a message`,ti=()=>`写消息`,ni=((e={},t={})=>(t.locale??R())===`zh`?ti(e):ei(e)),ri=e=>`Message ${e?.name}…`,ii=e=>`写给 ${e?.name}…`,ai=((e,t={})=>(t.locale??R())===`zh`?ii(e):ri(e)),oi=()=>`Enter to send · Shift+Enter for a new line`,si=()=>`Enter 发送 · Shift+Enter 换行`,ci=((e={},t={})=>(t.locale??R())===`zh`?si(e):oi(e)),li=()=>`Connection interrupted.`,ui=()=>`连接暂时中断`,di=((e={},t={})=>(t.locale??R())===`zh`?ui(e):li(e)),fi=()=>`Conversation capacity`,pi=()=>`对话容量`,mi=((e={},t={})=>(t.locale??R())===`zh`?pi(e):fi(e)),hi=e=>`Conversation capacity: ${e?.percentage}%`,gi=e=>`对话容量:${e?.percentage}%`,_i=((e,t={})=>(t.locale??R())===`zh`?gi(e):hi(e)),vi=()=>`Queued`,yi=()=>`排队中`,bi=((e={},t={})=>(t.locale??R())===`zh`?yi(e):vi(e)),xi=()=>`Sending…`,Si=()=>`正在发送…`,Ci=((e={},t={})=>(t.locale??R())===`zh`?Si(e):xi(e)),wi=()=>`Delivery not yet confirmed…`,Ti=()=>`尚未确认送达…`,Ei=((e={},t={})=>(t.locale??R())===`zh`?Ti(e):wi(e)),Di=()=>`Back to diary`,Oi=()=>`返回日记`,ki=((e={},t={})=>(t.locale??R())===`zh`?Oi(e):Di(e)),Ai=()=>`No diary entries yet.`,ji=()=>`还没有日记。`,Mi=((e={},t={})=>(t.locale??R())===`zh`?ji(e):Ai(e)),Ni=()=>`The diary is unavailable right now.`,Pi=()=>`日记暂时无法读取。`,Fi=((e={},t={})=>(t.locale??R())===`zh`?Pi(e):Ni(e)),Ii=()=>`This diary entry is too large to display.`,Li=()=>`这篇日记太长,暂时无法显示。`,Ri=((e={},t={})=>(t.locale??R())===`zh`?Li(e):Ii(e)),zi=()=>`Discard`,Bi=()=>`撤销`,Vi=((e={},t={})=>(t.locale??R())===`zh`?Bi(e):zi(e)),Hi=()=>`Diary`,Ui=()=>`日记`,Wi=((e={},t={})=>(t.locale??R())===`zh`?Ui(e):Hi(e)),Gi=()=>`Relationship`,Ki=()=>`关系历史`,qi=((e={},t={})=>(t.locale??R())===`zh`?Ki(e):Gi(e)),Ji=()=>`Chat images`,Yi=Ji,Xi=((e={},t={})=>(t.locale??R())===`zh`?Yi(e):Ji(e)),Zi=()=>`More features`,Qi=()=>`更多功能`,$i=((e={},t={})=>(t.locale??R())===`zh`?Qi(e):Zi(e)),ea=()=>`Open full DSH`,ta=()=>`打开完整 DSH`,na=((e={},t={})=>(t.locale??R())===`zh`?ta(e):ea(e)),ra=()=>`Audio is unavailable. You can still read the text.`,ia=()=>`语音暂时无法播放,文字内容仍可查看。`,aa=((e={},t={})=>(t.locale??R())===`zh`?ia(e):ra(e)),oa=()=>`Remove the images before organizing memory.`,sa=()=>`整理时请先移除图片。`,ca=((e={},t={})=>(t.locale??R())===`zh`?sa(e):oa(e)),la=()=>`This image can’t be displayed right now.`,ua=()=>`图片暂时无法显示。`,da=((e={},t={})=>(t.locale??R())===`zh`?ua(e):la(e)),fa=()=>`Your message wasn’t sent. It’s back in the message box.`,pa=()=>`没有发出去,内容已放回输入框。`,ma=((e={},t={})=>(t.locale??R())===`zh`?pa(e):fa(e)),ha=()=>`This message wasn’t sent. Please try again.`,ga=()=>`这条消息没发出去,可以再试一次。`,_a=((e={},t={})=>(t.locale??R())===`zh`?ga(e):ha(e)),va=()=>`Couldn’t stop the reply. Please try again.`,ya=()=>`暂时停不下来,请再试一次。`,ba=((e={},t={})=>(t.locale??R())===`zh`?ya(e):va(e)),xa=()=>`Messages could not be saved right now.`,Sa=()=>`暂时无法保存消息。`,Ca=((e={},t={})=>(t.locale??R())===`zh`?Sa(e):xa(e)),wa=()=>`Load earlier images`,Ta=wa,Ea=((e={},t={})=>(t.locale??R())===`zh`?Ta(e):wa(e)),Da=()=>`No conversation images yet.`,Oa=Da,ka=((e={},t={})=>(t.locale??R())===`zh`?Oa(e):Da(e)),Aa=()=>`The image library is unavailable right now.`,ja=Aa,Ma=((e={},t={})=>(t.locale??R())===`zh`?ja(e):Aa(e)),Na=()=>`Day`,Pa=()=>`按日`,Fa=((e={},t={})=>(t.locale??R())===`zh`?Pa(e):Na(e)),Ia=()=>`Week`,La=()=>`按周`,Ra=((e={},t={})=>(t.locale??R())===`zh`?La(e):Ia(e)),za=()=>`Group images`,Ba=()=>`分组方式`,Va=((e={},t={})=>(t.locale??R())===`zh`?Ba(e):za(e)),Ha=()=>`Closeness`,Ua=()=>`亲近度`,Wa=((e={},t={})=>(t.locale??R())===`zh`?Ua(e):Ha(e)),Ga=()=>`After`,Ka=()=>`变化后`,qa=((e={},t={})=>(t.locale??R())===`zh`?Ka(e):Ga(e)),Ja=()=>`Before`,Ya=()=>`变化前`,Xa=((e={},t={})=>(t.locale??R())===`zh`?Ya(e):Ja(e)),Za=()=>`Current relationship`,Qa=()=>`当前关系`,$a=((e={},t={})=>(t.locale??R())===`zh`?Qa(e):Za(e)),eo=()=>`Load earlier changes`,to=()=>`加载更早的变化`,no=((e={},t={})=>(t.locale??R())===`zh`?to(e):eo(e)),ro=()=>`No relationship changes have been recorded yet.`,io=()=>`还没有记录过关系变化。`,ao=((e={},t={})=>(t.locale??R())===`zh`?io(e):ro(e)),oo=()=>`Relationship history is unavailable.`,so=()=>`关系记录暂时无法读取。`,co=((e={},t={})=>(t.locale??R())===`zh`?so(e):oo(e)),lo=()=>`Initial state`,uo=()=>`初始状态`,fo=((e={},t={})=>(t.locale??R())===`zh`?uo(e):lo(e)),po=()=>`Changes`,mo=()=>`变化记录`,ho=((e={},t={})=>(t.locale??R())===`zh`?mo(e):po(e)),go=()=>`Earlier messages could not be loaded. Please try again.`,_o=()=>`暂时无法加载更早消息,请重试。`,vo=((e={},t={})=>(t.locale??R())===`zh`?_o(e):go(e)),yo=()=>`Loading relationship history…`,bo=()=>`正在加载关系记录…`,xo=((e={},t={})=>(t.locale??R())===`zh`?bo(e):yo(e)),So=()=>`Loading earlier changes…`,Co=()=>`正在加载更早的变化…`,wo=((e={},t={})=>(t.locale??R())===`zh`?Co(e):So(e)),To=()=>`Mood`,Eo=()=>`状态`,Do=((e={},t={})=>(t.locale??R())===`zh`?Eo(e):To(e)),Oo=()=>`View earlier messages`,ko=()=>`查看更早的消息`,Ao=((e={},t={})=>(t.locale??R())===`zh`?ko(e):Oo(e)),jo=()=>`Reason`,Mo=()=>`原因`,No=((e={},t={})=>(t.locale??R())===`zh`?Mo(e):jo(e)),Po=()=>`Try again`,Fo=()=>`重试`,Io=((e={},t={})=>(t.locale??R())===`zh`?Fo(e):Po(e)),Lo=()=>`Signature`,Ro=()=>`签名`,zo=((e={},t={})=>(t.locale??R())===`zh`?Ro(e):Lo(e)),Bo=()=>`Relationship history`,Vo=()=>`关系变化记录`,Ho=((e={},t={})=>(t.locale??R())===`zh`?Vo(e):Bo(e)),Uo=()=>`Choose a photo; hold to take one`,Wo=()=>`选择照片;长按拍照`,Go=((e={},t={})=>(t.locale??R())===`zh`?Wo(e):Uo(e)),Ko=()=>`Close full-size image`,qo=()=>`关闭大图`,Jo=((e={},t={})=>(t.locale??R())===`zh`?qo(e):Ko(e)),Yo=()=>`Close image preview backdrop`,Xo=()=>`关闭图片预览背景`,Zo=((e={},t={})=>(t.locale??R())===`zh`?Xo(e):Yo(e)),Qo=e=>`Up to ${e?.count} images per message.`,$o=e=>`一次最多 ${e?.count} 张图片。`,es=((e,t={})=>(t.locale??R())===`zh`?$o(e):Qo(e)),ts=()=>`Image generation didn’t finish.`,ns=()=>`图片生成没有完成。`,rs=((e={},t={})=>(t.locale??R())===`zh`?ns(e):ts(e)),is=()=>`Creating an image…`,as=()=>`正在画一张图…`,os=((e={},t={})=>(t.locale??R())===`zh`?as(e):is(e)),ss=()=>`Pending image`,cs=()=>`待发送图片`,ls=((e={},t={})=>(t.locale??R())===`zh`?cs(e):ss(e)),us=()=>`Image preview`,ds=()=>`图片预览`,fs=((e={},t={})=>(t.locale??R())===`zh`?ds(e):us(e)),ps=()=>`Image preview`,ms=()=>`预览图片`,hs=((e={},t={})=>(t.locale??R())===`zh`?ms(e):ps(e)),gs=()=>`Remove image`,_s=()=>`移除图片`,vs=((e={},t={})=>(t.locale??R())===`zh`?_s(e):gs(e)),ys=()=>`This image is too large.`,bs=()=>`图片太大了。`,xs=((e={},t={})=>(t.locale??R())===`zh`?bs(e):ys(e)),Ss=()=>`The images exceed the total size limit.`,Cs=()=>`图片总大小超出限制。`,ws=((e={},t={})=>(t.locale??R())===`zh`?Cs(e):Ss(e)),Ts=()=>`Only PNG, JPEG, WebP, and GIF are supported.`,Es=()=>`只支持 PNG、JPEG、WebP 或 GIF。`,Ds=((e={},t={})=>(t.locale??R())===`zh`?Es(e):Ts(e)),Os=()=>`Images can’t be sent right now.`,ks=()=>`当前无法发送图片。`,As=((e={},t={})=>(t.locale??R())===`zh`?ks(e):Os(e)),js=e=>`View full-size image: ${e?.name}`,Ms=e=>`查看大图:${e?.name}`,Ns=((e,t={})=>(t.locale??R())===`zh`?Ms(e):js(e)),Ps=e=>`Keet could not recover messages ${e?.ranges}; affected group context was cleared.`,Fs=e=>`Keet 未能恢复消息 ${e?.ranges};受影响的群组上下文已清除。`,Is=((e,t={})=>(t.locale??R())===`zh`?Fs(e):Ps(e)),Ls=()=>`Loading…`,Rs=()=>`加载中…`,zs=((e={},t={})=>(t.locale??R())===`zh`?Rs(e):Ls(e)),Bs=()=>`Loading`,Vs=()=>`正在加载`,Hs=((e={},t={})=>(t.locale??R())===`zh`?Vs(e):Bs(e)),Us=()=>`Loading…`,Ws=()=>`正在加载…`,Gs=((e={},t={})=>(t.locale??R())===`zh`?Ws(e):Us(e)),Ks=()=>`This message is invalid. Check its text and images, then try again.`,qs=()=>`消息内容无效,请检查文字长度和图片后重新发送。`,Js=((e={},t={})=>(t.locale??R())===`zh`?qs(e):Ks(e)),Ys=()=>`Send message`,Xs=()=>`发送消息`,Zs=((e={},t={})=>(t.locale??R())===`zh`?Xs(e):Ys(e)),Qs=e=>`Message too long (${e?.count}/${e?.limit}). Shorten it before sending; your draft is kept.`,$s=e=>`消息过长(${e?.count}/${e?.limit}),请缩短后发送;草稿已保留。`,ec=((e,t={})=>(t.locale??R())===`zh`?$s(e):Qs(e)),tc=()=>`Delivery has not been confirmed. Please try again.`,nc=()=>`尚未确认送达,请重试。`,rc=((e={},t={})=>(t.locale??R())===`zh`?nc(e):tc(e)),ic=()=>`Delivery has not been confirmed. Check the pending draft in the conversation.`,ac=()=>`尚未确认送达,请检查对话中的待确认草稿。`,oc=((e={},t={})=>(t.locale??R())===`zh`?ac(e):ic(e)),sc=()=>`New messages ↓`,cc=()=>`有新消息 ↓`,lc=((e={},t={})=>(t.locale??R())===`zh`?cc(e):sc(e)),uc=()=>`Cheerful`,dc=()=>`愉快`,fc=((e={},t={})=>(t.locale??R())===`zh`?dc(e):uc(e)),pc=()=>`Current mood`,mc=()=>`此刻状态`,hc=((e={},t={})=>(t.locale??R())===`zh`?mc(e):pc(e)),gc=()=>`Low`,_c=()=>`低落`,vc=((e={},t={})=>(t.locale??R())===`zh`?_c(e):gc(e)),yc=()=>`As usual`,bc=()=>`如常`,xc=((e={},t={})=>(t.locale??R())===`zh`?bc(e):yc(e)),Sc=()=>`Mood note`,Cc=()=>`状态短句`,wc=((e={},t={})=>(t.locale??R())===`zh`?Cc(e):Sc(e)),Tc=()=>`Thoughtful`,Ec=()=>`若有所思`,Dc=((e={},t={})=>(t.locale??R())===`zh`?Ec(e):Tc(e)),Oc=()=>`Playful`,kc=()=>`俏皮`,Ac=((e={},t={})=>(t.locale??R())===`zh`?kc(e):Oc(e)),jc=()=>`Calm`,Mc=()=>`平静`,Nc=((e={},t={})=>(t.locale??R())===`zh`?Mc(e):jc(e)),Pc=()=>`Tender`,Fc=()=>`柔和`,Ic=((e={},t={})=>(t.locale??R())===`zh`?Fc(e):Pc(e)),Lc=()=>`Tired`,Rc=()=>`疲惫`,zc=((e={},t={})=>(t.locale??R())===`zh`?Rc(e):Lc(e)),Bc=()=>`Companion pet`,Vc=()=>`陪伴桌宠`,Hc=((e={},t={})=>(t.locale??R())===`zh`?Vc(e):Bc(e)),Uc=()=>`Dark`,Wc=()=>`深色`,Gc=((e={},t={})=>(t.locale??R())===`zh`?Wc(e):Uc(e)),Kc=()=>`Language`,qc=()=>`语言`,Jc=((e={},t={})=>(t.locale??R())===`zh`?qc(e):Kc(e)),Yc=()=>`Light`,Xc=()=>`浅色`,Zc=((e={},t={})=>(t.locale??R())===`zh`?Xc(e):Yc(e)),Qc=()=>`Appearance and language`,$c=()=>`外观与语言`,el=((e={},t={})=>(t.locale??R())===`zh`?$c(e):Qc(e)),tl=()=>`System`,nl=()=>`跟随系统`,rl=((e={},t={})=>(t.locale??R())===`zh`?nl(e):tl(e)),il=()=>`Appearance`,al=()=>`外观`,ol=((e={},t={})=>(t.locale??R())===`zh`?al(e):il(e)),sl=()=>`Reconnect`,cl=()=>`重新连接`,ll=((e={},t={})=>(t.locale??R())===`zh`?cl(e):sl(e)),ul=()=>`Close relationship details`,dl=()=>`关闭关系资料`,fl=((e={},t={})=>(t.locale??R())===`zh`?dl(e):ul(e)),pl=()=>`Current relationship`,ml=()=>`当前关系`,hl=((e={},t={})=>(t.locale??R())===`zh`?ml(e):pl(e)),gl=()=>`Relationship details unavailable`,_l=()=>`关系资料暂时打不开`,vl=((e={},t={})=>(t.locale??R())===`zh`?_l(e):gl(e)),yl=e=>`${e?.name}’s relationship details`,bl=e=>`${e?.name}的关系资料`,xl=((e,t={})=>(t.locale??R())===`zh`?bl(e):yl(e)),Sl=()=>`Your workspace is still here. Continue when the connection returns.`,Cl=()=>`聊天空间还在,连接恢复后可以继续。`,wl=((e={},t={})=>(t.locale??R())===`zh`?Cl(e):Sl(e)),Tl=()=>`Couldn’t update the relationship.`,El=()=>`关系更新失败。`,Dl=((e={},t={})=>(t.locale??R())===`zh`?El(e):Tl(e)),Ol=()=>`View Companion relationship`,kl=()=>`查看 Companion 关系资料`,Al=((e={},t={})=>(t.locale??R())===`zh`?kl(e):Ol(e)),jl=()=>`This reply did not finish.`,Ml=()=>`这次未能回应。`,Nl=((e={},t={})=>(t.locale??R())===`zh`?Ml(e):jl(e)),Pl=()=>`Replying`,Fl=()=>`正在回复`,Il=((e={},t={})=>(t.locale??R())===`zh`?Fl(e):Pl(e)),Ll=()=>`Stop current reply`,Rl=()=>`停止当前回复`,zl=((e={},t={})=>(t.locale??R())===`zh`?Rl(e):Ll(e)),Bl=()=>`This reply was stopped.`,Vl=()=>`这次回应已停止。`,Hl=((e={},t={})=>(t.locale??R())===`zh`?Vl(e):Bl(e)),Ul=()=>`Couldn’t reset closeness.`,Wl=()=>`重置失败。`,Gl=((e={},t={})=>(t.locale??R())===`zh`?Wl(e):Ul(e)),Kl=()=>`Retry`,ql=()=>`重试`,Jl=((e={},t={})=>(t.locale??R())===`zh`?ql(e):Kl(e)),Yl=()=>`Save`,Xl=()=>`保存`,Zl=((e={},t={})=>(t.locale??R())===`zh`?Xl(e):Yl(e)),Ql=()=>`Conversation unavailable`,$l=()=>`这段对话暂时打不开`,eu=((e={},t={})=>(t.locale??R())===`zh`?$l(e):Ql(e)),tu=()=>`New conversation`,nu=()=>`新对话`,ru=((e={},t={})=>(t.locale??R())===`zh`?nu(e):tu(e)),iu=()=>`No conversations to continue yet`,au=()=>`还没有可以继续的对话`,ou=((e={},t={})=>(t.locale??R())===`zh`?au(e):iu(e)),su=()=>`Your messages are kept. Continue when the connection returns, or check the status in DSH.`,cu=()=>`你的消息不会被悄悄丢掉。连接恢复后可以继续,或回到 DSH 检查状态。`,lu=((e={},t={})=>(t.locale??R())===`zh`?cu(e):su(e)),uu=e=>`Switch to conversation: ${e?.title}`,du=e=>`切换到对话:${e?.title}`,fu=((e,t={})=>(t.locale??R())===`zh`?du(e):uu(e)),pu=()=>`Untitled conversation`,mu=()=>`未命名对话`,hu=((e={},t={})=>(t.locale??R())===`zh`?mu(e):pu(e)),gu=()=>`How Companion addresses you`,_u=()=>`Companion 对你的称呼`,vu=((e={},t={})=>(t.locale??R())===`zh`?_u(e):gu(e)),yu=()=>`For example, “Alex”. Used when Companion greets or addresses you.`,bu=()=>`例如“小岛”;用于 Companion 对你的问候和称呼。`,xu=((e={},t={})=>(t.locale??R())===`zh`?bu(e):yu(e)),Su=()=>`Couldn’t update closeness.`,Cu=()=>`亲近度更新失败。`,wu=((e={},t={})=>(t.locale??R())===`zh`?Cu(e):Su(e)),Tu=()=>`Closeness must be a whole number from 0 to 100.`,Eu=()=>`亲近度必须是 0 到 100 的整数。`,Du=((e={},t={})=>(t.locale??R())===`zh`?Eu(e):Tu(e)),Ou=()=>`Closeness updated`,ku=()=>`亲近度已更新`,Au=((e={},t={})=>(t.locale??R())===`zh`?ku(e):Ou(e)),ju=()=>`Collapse Companion chat settings`,Mu=()=>`收起:Companion 日常聊天`,Nu=((e={},t={})=>(t.locale??R())===`zh`?Mu(e):ju(e)),Pu=()=>`Companion name`,Fu=()=>`Companion 名称`,Iu=((e={},t={})=>(t.locale??R())===`zh`?Fu(e):Pu(e)),Lu=()=>`Default closeness for new relationships (0–100)`,Ru=()=>`新关系的默认亲近度(0–100)`,zu=((e={},t={})=>(t.locale??R())===`zh`?Ru(e):Lu(e)),Bu=()=>`Used when a relationship is first created or explicitly reset.`,Vu=()=>`只在首次创建或显式重置时使用。`,Hu=((e={},t={})=>(t.locale??R())===`zh`?Vu(e):Bu(e)),Uu=()=>`One workspace, two identities, and an ongoing relationship`,Wu=()=>`一个 Workspace、两个身份和一段持续的关系`,Gu=((e={},t={})=>(t.locale??R())===`zh`?Wu(e):Uu(e)),Ku=()=>`Unsaved changes discarded`,qu=()=>`已撤销未保存的更改`,Ju=((e={},t={})=>(t.locale??R())===`zh`?qu(e):Ku(e)),Yu=()=>`Expand Companion chat settings`,Xu=()=>`展开:Companion 日常聊天`,Zu=((e={},t={})=>(t.locale??R())===`zh`?Xu(e):Yu(e)),Qu=()=>`Couldn’t save. Check the settings and try again.`,$u=()=>`保存失败,请检查设置后重试。`,ed=((e={},t={})=>(t.locale??R())===`zh`?$u(e):Qu(e)),td=()=>`Up to 80 characters.`,nd=()=>`最多 80 个字符。`,rd=((e={},t={})=>(t.locale??R())===`zh`?nd(e):td(e)),id=()=>`Open settings`,ad=()=>`去设置`,od=((e={},t={})=>(t.locale??R())===`zh`?ad(e):id(e)),sd=()=>`Settings are read-only`,cd=()=>`当前设置为只读`,ld=((e={},t={})=>(t.locale??R())===`zh`?cd(e):sd(e)),ud=()=>`These settings are read-only. Changes cannot be saved.`,dd=()=>`当前设置为只读,暂时不能保存更改。`,fd=((e={},t={})=>(t.locale??R())===`zh`?dd(e):ud(e)),pd=()=>`The host rejected these changes. Your draft is kept; check it and try again.`,md=()=>`保存未被 Host 接受;你的更改仍保留在此处,可以检查后重试。`,hd=((e={},t={})=>(t.locale??R())===`zh`?md(e):pd(e)),gd=()=>`Saved`,_d=()=>`已保存`,vd=((e={},t={})=>(t.locale??R())===`zh`?_d(e):gd(e)),yd=()=>`Saving…`,bd=()=>`正在保存…`,xd=((e={},t={})=>(t.locale??R())===`zh`?bd(e):yd(e)),Sd=()=>`Companion chat`,Cd=()=>`Companion 日常聊天`,wd=((e={},t={})=>(t.locale??R())===`zh`?Cd(e):Sd(e)),Td=()=>`Unsaved`,Ed=()=>`未保存`,Dd=((e={},t={})=>(t.locale??R())===`zh`?Ed(e):Td(e)),Od=()=>`Your display name`,kd=()=>`你的显示名称`,Ad=((e={},t={})=>(t.locale??R())===`zh`?kd(e):Od(e)),jd=()=>`Close conversations`,Md=()=>`关闭对话列表`,Nd=((e={},t={})=>(t.locale??R())===`zh`?Md(e):jd(e)),Pd=()=>`Close sidebar`,Fd=()=>`关闭侧栏`,Id=((e={},t={})=>(t.locale??R())===`zh`?Fd(e):Pd(e)),Ld=()=>`Collapse conversations`,Rd=()=>`收起对话列表`,zd=((e={},t={})=>(t.locale??R())===`zh`?Rd(e):Ld(e)),Bd=()=>`Expand conversations`,Vd=()=>`展开对话列表`,Hd=((e={},t={})=>(t.locale??R())===`zh`?Vd(e):Bd(e)),Ud=()=>`Conversations`,Wd=()=>`对话列表`,Gd=((e={},t={})=>(t.locale??R())===`zh`?Wd(e):Ud(e)),Kd=()=>`Show conversations`,qd=()=>`显示对话列表`,Jd=((e={},t={})=>(t.locale??R())===`zh`?qd(e):Kd(e)),Yd=()=>`Our conversations`,Xd=()=>`我们的对话`,Zd=((e={},t={})=>(t.locale??R())===`zh`?Xd(e):Yd(e)),Qd=()=>`Clear signature`,$d=()=>`清除签名`,ef=((e={},t={})=>(t.locale??R())===`zh`?$d(e):Qd(e)),tf=()=>`Signature cleared`,nf=()=>`签名已清除`,rf=((e={},t={})=>(t.locale??R())===`zh`?nf(e):tf(e)),af=()=>`No signature yet`,of=()=>`还没有签名`,sf=((e={},t={})=>(t.locale??R())===`zh`?of(e):af(e)),cf=()=>`Couldn’t clear the signature.`,lf=()=>`签名清除失败。`,uf=((e={},t={})=>(t.locale??R())===`zh`?lf(e):cf(e)),df=()=>`Connecting…`,ff=()=>`连接中…`,pf=((e={},t={})=>(t.locale??R())===`zh`?ff(e):df(e)),mf=e=>`${e?.name} is typing`,hf=e=>`${e?.name}正在输入`,gf=((e,t={})=>(t.locale??R())===`zh`?hf(e):mf(e)),_f=()=>`Offline`,vf=()=>`离线`,yf=((e={},t={})=>(t.locale??R())===`zh`?vf(e):_f(e)),bf=()=>`Online`,xf=()=>`在线`,Sf=((e={},t={})=>(t.locale??R())===`zh`?xf(e):bf(e)),Cf=()=>`Typing…`,wf=()=>`正在输入…`,Tf=((e={},t={})=>(t.locale??R())===`zh`?wf(e):Cf(e)),Ef=()=>`Recording stopped at the 5-minute limit. Try a shorter message.`,Df=()=>`录音最长 5 分钟,已停止;请说短一点再试。`,Of=((e={},t={})=>(t.locale??R())===`zh`?Df(e):Ef(e)),kf=()=>`No audio was recorded. Please try again.`,Af=()=>`没有录到声音,请再试一次。`,jf=((e={},t={})=>(t.locale??R())===`zh`?Af(e):kf(e)),Mf=()=>`Voice is unavailable right now. Please try again.`,Nf=()=>`语音暂时无法使用,请再试一次。`,Pf=((e={},t={})=>(t.locale??R())===`zh`?Nf(e):Mf(e)),Ff=()=>`To use voice, install and configure a speech service.`,If=()=>`语音功能不可用,请安装并配置 语音服务。`,Lf=((e={},t={})=>(t.locale??R())===`zh`?If(e):Ff(e)),Rf=()=>`Microphone recording unavailable`,zf=()=>`麦克风录音不可用`,Bf=((e={},t={})=>(t.locale??R())===`zh`?zf(e):Rf(e)),Vf=()=>`Pause audio`,Hf=()=>`暂停语音`,Uf=((e={},t={})=>(t.locale??R())===`zh`?Hf(e):Vf(e)),Wf=()=>`Microphone access was denied. Allow access and try again.`,Gf=()=>`麦克风权限被拒绝,请允许后重试。`,Kf=((e={},t={})=>(t.locale??R())===`zh`?Gf(e):Wf(e)),qf=()=>`Play audio`,Jf=()=>`播放语音`,Yf=((e={},t={})=>(t.locale??R())===`zh`?Jf(e):qf(e)),Xf=()=>`Playback failed`,Zf=()=>`播放失败`,Qf=((e={},t={})=>(t.locale??R())===`zh`?Zf(e):Xf(e)),$f=()=>`Audio player`,ep=()=>`语音播放器`,tp=((e={},t={})=>(t.locale??R())===`zh`?ep(e):$f(e)),np=()=>`Preparing audio`,rp=()=>`正在准备语音`,ip=((e={},t={})=>(t.locale??R())===`zh`?rp(e):np(e)),ap=()=>`Audio progress`,op=()=>`语音进度`,sp=((e={},t={})=>(t.locale??R())===`zh`?op(e):ap(e)),cp=e=>`Recording · ${e?.elapsed} / 05:00`,lp=e=>`正在录音 · ${e?.elapsed} / 05:00`,up=((e,t={})=>(t.locale??R())===`zh`?lp(e):cp(e)),dp=()=>`Retry audio`,fp=()=>`重试语音`,pp=((e={},t={})=>(t.locale??R())===`zh`?fp(e):dp(e)),mp=()=>`Use a secure connection to access the microphone.`,hp=()=>`请在安全连接中使用麦克风。`,gp=((e={},t={})=>(t.locale??R())===`zh`?hp(e):mp(e)),_p=()=>`Voice message sent.`,vp=()=>`语音消息已发送。`,yp=((e={},t={})=>(t.locale??R())===`zh`?vp(e):_p(e)),bp=()=>`The recording is too large. Try a shorter message.`,xp=()=>`录音超过语音大小限制,请说短一点再试。`,Sp=((e={},t={})=>(t.locale??R())===`zh`?xp(e):bp(e)),Cp=()=>`Start recording`,wp=()=>`开始录音`,Tp=((e={},t={})=>(t.locale??R())===`zh`?wp(e):Cp(e)),Ep=()=>`Stop recording`,Dp=()=>`结束录音`,Op=((e={},t={})=>(t.locale??R())===`zh`?Dp(e):Ep(e)),kp=()=>`Stopping recording…`,Ap=()=>`正在结束录音…`,jp=((e={},t={})=>(t.locale??R())===`zh`?Ap(e):kp(e)),Mp=()=>`Transcribing audio`,Np=()=>`正在转写语音`,Pp=((e={},t={})=>(t.locale??R())===`zh`?Np(e):Mp(e)),Fp=()=>`Transcribing audio…`,Ip=()=>`正在转写语音…`,Lp=((e={},t={})=>(t.locale??R())===`zh`?Ip(e):Fp(e)),Rp=()=>`Transcript`,zp=()=>`转文字`,Bp=((e={},t={})=>(t.locale??R())===`zh`?zp(e):Rp(e)),Vp=()=>`Transcription is unavailable. Please try again.`,Hp=()=>`语音转写暂时不可用,请再试一次。`,Up=((e={},t={})=>(t.locale??R())===`zh`?Hp(e):Vp(e)),Wp=()=>`Microphone recording is unavailable in this environment.`,Gp=()=>`当前环境不支持麦克风录音。`,Kp=((e={},t={})=>(t.locale??R())===`zh`?Gp(e):Wp(e)),qp=()=>`No speech was recognized. Please try again.`,Jp=()=>`没有听清内容,请再试一次。`,Yp=((e={},t={})=>(t.locale??R())===`zh`?Jp(e):qp(e)),Xp=()=>`This browser doesn’t support recording.`,Zp=()=>`当前浏览器不支持录音。`,Qp=((e={},t={})=>(t.locale??R())===`zh`?Zp(e):Xp(e)),$p=()=>`Voice is getting ready. Please wait.`,em=()=>`语音功能正在准备,请稍候。`,tm=((e={},t={})=>(t.locale??R())===`zh`?em(e):$p(e)),nm=()=>`I’m giving this some thought. Thank you for waiting.`,rm=()=>`这次想认真一点,不让你久等`,im=((e={},t={})=>(t.locale??R())===`zh`?rm(e):nm(e)),am=()=>`I’m here, thinking about how best to say it.`,om=()=>`我在这里,只是还在想怎么说更好`,sm=((e={},t={})=>(t.locale??R())===`zh`?om(e):am(e)),cm=()=>`Just a little longer. I’ll be back soon.`,lm=()=>`再给我一点点时间,很快就回来`,um=((e={},t={})=>(t.locale??R())===`zh`?lm(e):cm(e)),dm=()=>`I’m still thinking. Stay with me a little longer.`,fm=()=>`我还在认真想,陪我再等一小会儿呀`,pm=((e={},t={})=>(t.locale??R())===`zh`?fm(e):dm(e)),mm=()=>`Finding the right words…`,hm=()=>`正在把想说的话轻轻理好……`,gm=((e={},t={})=>(t.locale??R())===`zh`?hm(e):mm(e)),_m=e=>`Hi, ${e?.name}`,vm=e=>`嗨,${e?.name}`,ym=((e,t={})=>(t.locale??R())===`zh`?vm(e):_m(e)),bm=()=>`What would you like to talk about today?`,xm=()=>`今天想聊点什么?`,Sm=((e={},t={})=>(t.locale??R())===`zh`?xm(e):bm(e)),Cm=()=>`Choose a workspace in DSH settings to start chatting.`,wm=()=>`请在 DSH 设置中选择一个 Workspace。我们不会替你自动切换。`,Tm=((e={},t={})=>(t.locale??R())===`zh`?wm(e):Cm(e)),Em=()=>`No workspace selected`,Dm=()=>`还没有设置聊天空间`,Om=((e={},t={})=>(t.locale??R())===`zh`?Dm(e):Em(e)),km=()=>`Workspace unavailable`,Am=()=>`聊天空间暂时打不开`,jm=((e={},t={})=>(t.locale??R())===`zh`?Am(e):km(e)),Mm=()=>`Companion uses the workspace selected here.`,Nm=()=>`Companion 只会使用这里选择的 Workspace。`,Pm=((e={},t={})=>(t.locale??R())===`zh`?Nm(e):Mm(e)),Fm=()=>`Loading workspaces…`,Im=()=>`正在加载 Workspace…`,Lm=((e={},t={})=>(t.locale??R())===`zh`?Im(e):Fm(e)),Rm=()=>`The selected workspace no longer exists. Choose another one.`,zm=()=>`之前选择的 Workspace 已不存在,请重新选择。`,Bm=((e={},t={})=>(t.locale??R())===`zh`?zm(e):Rm(e)),Vm=()=>`No workspaces available`,Hm=()=>`还没有可用的 Workspace`,Um=((e={},t={})=>(t.locale??R())===`zh`?Hm(e):Vm(e)),Wm=()=>`Check the connection in DSH settings, then try again.`,Gm=()=>`请回到 DSH 设置检查连接,然后再试一次。`,Km=((e={},t={})=>(t.locale??R())===`zh`?Gm(e):Wm(e)),qm=()=>`Select a Companion workspace first.`,Jm=()=>`请先配置 Companion Workspace。`,Ym=((e={},t={})=>(t.locale??R())===`zh`?Jm(e):qm(e)),Xm=()=>`Select a workspace`,Zm=()=>`请选择 Workspace`,Qm=((e={},t={})=>(t.locale??R())===`zh`?Zm(e):Xm(e)),$m=()=>`Choose a workspace in DSH settings`,eh=()=>`去 DSH 设置选择聊天空间`,th=((e={},t={})=>(t.locale??R())===`zh`?eh(e):$m(e)),nh=()=>`You`,rh=()=>`你`,ih=((e={},t={})=>(t.locale??R())===`zh`?rh(e):nh(e)),ah=v({"affinity.adjust":()=>tn,"affinity.close":()=>an,"affinity.deep":()=>cn,"affinity.distant":()=>dn,"affinity.familiar":()=>mn,"affinity.hint":()=>_n,"affinity.label":()=>bn,"affinity.reset":()=>Cn,"affinity.unfamiliar":()=>En,apply:()=>kn,"avatar.choose":()=>Mn,"avatar.companion":()=>Fn,"avatar.companionPreview":()=>Rn,"avatar.decodeFailed":()=>Vn,"avatar.dimensions":()=>Wn,"avatar.format":()=>qn,"avatar.hint":()=>Xn,"avatar.invalid":()=>$n,"avatar.none":()=>nr,"avatar.readFailed":()=>ar,"avatar.ready":()=>cr,"avatar.selected":()=>dr,"avatar.user":()=>mr,"avatar.userPreview":()=>_r,"camera.failed":()=>br,"chat.label":()=>Cr,close:()=>Er,"command.label":()=>kr,"compact.admissionFailed":()=>Mr,"compact.command":()=>Fr,"compact.description":()=>Rr,"compact.done":()=>Vr,"compact.failed":()=>Wr,"compact.record":()=>qr,"compact.running":()=>Xr,"companion.open":()=>$r,"composer.label":()=>ni,"composer.placeholder":()=>ai,"composer.shortcut":()=>ci,"connection.interrupted":()=>di,"context.label":()=>mi,"context.percentage":()=>_i,"delivery.queued":()=>bi,"delivery.sending":()=>Ci,"delivery.unresolved":()=>Ei,"diary.back":()=>ki,"diary.empty":()=>Mi,"diary.failed":()=>Fi,"diary.tooLarge":()=>Ri,discard:()=>Vi,"drawer.diary":()=>Wi,"drawer.history":()=>qi,"drawer.images":()=>Xi,"dsh.more":()=>$i,"dsh.open":()=>na,"error.audio":()=>aa,"error.compactImages":()=>ca,"error.image":()=>da,"error.restored":()=>ma,"error.send":()=>_a,"error.stop":()=>ba,"error.storage":()=>Ca,"gallery.earlier":()=>Ea,"gallery.empty":()=>ka,"gallery.failed":()=>Ma,"gallery.group.day":()=>Fa,"gallery.group.week":()=>Ra,"gallery.grouping":()=>Va,"history.affinity":()=>Wa,"history.after":()=>qa,"history.before":()=>Xa,"history.current":()=>$a,"history.earlier":()=>no,"history.empty":()=>ao,"history.failed":()=>co,"history.initial":()=>fo,"history.list":()=>ho,"history.loadFailed":()=>vo,"history.loading":()=>xo,"history.loadingEarlier":()=>wo,"history.mood":()=>Do,"history.older":()=>Ao,"history.reason":()=>No,"history.retry":()=>Io,"history.signature":()=>zo,"history.title":()=>Ho,"image.choose":()=>Go,"image.close":()=>Jo,"image.closeBackdrop":()=>Zo,"image.countLimit":()=>es,"image.failed":()=>rs,"image.generating":()=>os,"image.pending":()=>ls,"image.preview":()=>fs,"image.previewAlt":()=>hs,"image.remove":()=>vs,"image.tooLarge":()=>xs,"image.totalTooLarge":()=>ws,"image.types":()=>Ds,"image.unavailable":()=>As,"image.view":()=>Ns,"keet.recoveryLoss":()=>Is,loading:()=>zs,"loading.label":()=>Hs,"loading.progress":()=>Gs,"message.invalid":()=>Js,"message.send":()=>Zs,"message.tooLong":()=>ec,"message.unconfirmed":()=>rc,"message.unconfirmedDraft":()=>oc,"messages.new":()=>lc,"mood.bright":()=>fc,"mood.label":()=>hc,"mood.low":()=>vc,"mood.neutral":()=>xc,"mood.note":()=>wc,"mood.pensive":()=>Dc,"mood.playful":()=>Ac,"mood.serene":()=>Nc,"mood.tender":()=>Ic,"mood.tired":()=>zc,"pet.dockLabel":()=>Hc,"preferences.dark":()=>Gc,"preferences.language":()=>Jc,"preferences.light":()=>Zc,"preferences.open":()=>el,"preferences.system":()=>rl,"preferences.theme":()=>ol,reconnect:()=>ll,"relationship.close":()=>fl,"relationship.current":()=>hl,"relationship.failed":()=>vl,"relationship.named":()=>xl,"relationship.reconnectHint":()=>wl,"relationship.updateFailed":()=>Dl,"relationship.view":()=>Al,"reply.failed":()=>Nl,"reply.running":()=>Il,"reply.stop":()=>zl,"reply.stopped":()=>Hl,"reset.failed":()=>Gl,retry:()=>Jl,save:()=>Zl,"session.failed":()=>eu,"session.new":()=>ru,"session.none":()=>ou,"session.reconnectHint":()=>lu,"session.switch":()=>fu,"session.untitled":()=>hu,"settings.address":()=>vu,"settings.addressHint":()=>xu,"settings.affinityFailed":()=>wu,"settings.affinityInvalid":()=>Du,"settings.affinityUpdated":()=>Au,"settings.collapse":()=>Nu,"settings.companionName":()=>Iu,"settings.defaultAffinity":()=>zu,"settings.defaultAffinityHint":()=>Hu,"settings.description":()=>Gu,"settings.discarded":()=>Ju,"settings.expand":()=>Zu,"settings.failed":()=>ed,"settings.nameLimit":()=>rd,"settings.open":()=>od,"settings.readOnly":()=>ld,"settings.readOnlyHint":()=>fd,"settings.rejected":()=>hd,"settings.saved":()=>vd,"settings.saving":()=>xd,"settings.title":()=>wd,"settings.unsaved":()=>Dd,"settings.userName":()=>Ad,"sidebar.close":()=>Nd,"sidebar.closePanel":()=>Id,"sidebar.collapse":()=>zd,"sidebar.expand":()=>Hd,"sidebar.label":()=>Gd,"sidebar.show":()=>Jd,"sidebar.title":()=>Zd,"signature.clear":()=>ef,"signature.cleared":()=>rf,"signature.empty":()=>sf,"signature.failed":()=>uf,"status.connecting":()=>pf,"status.namedTyping":()=>gf,"status.offline":()=>yf,"status.online":()=>Sf,"status.typing":()=>Tf,"voice.duration":()=>Of,"voice.empty":()=>jf,"voice.failed":()=>Pf,"voice.install":()=>Lf,"voice.micUnavailable":()=>Bf,"voice.pause":()=>Uf,"voice.permission":()=>Kf,"voice.play":()=>Yf,"voice.playFailed":()=>Qf,"voice.player":()=>tp,"voice.preparing":()=>ip,"voice.progress":()=>sp,"voice.recording":()=>up,"voice.retry":()=>pp,"voice.secure":()=>gp,"voice.sent":()=>yp,"voice.size":()=>Sp,"voice.start":()=>Tp,"voice.stop":()=>Op,"voice.stopping":()=>jp,"voice.transcribing":()=>Pp,"voice.transcribingProgress":()=>Lp,"voice.transcript":()=>Bp,"voice.transcriptionFailed":()=>Up,"voice.unavailable":()=>Kp,"voice.unclear":()=>Yp,"voice.unsupported":()=>Qp,"voice.wait":()=>tm,"wait.care":()=>im,"wait.here":()=>sm,"wait.soon":()=>um,"wait.thinking":()=>pm,"wait.words":()=>gm,"welcome.greeting":()=>ym,"welcome.prompt":()=>Sm,"workspace.chooseHint":()=>Tm,"workspace.empty":()=>Om,"workspace.failed":()=>jm,"workspace.hint":()=>Pm,"workspace.loading":()=>Lm,"workspace.missing":()=>Bm,"workspace.none":()=>Um,"workspace.reconnectHint":()=>Km,"workspace.required":()=>Ym,"workspace.select":()=>Qm,"workspace.settingsLabel":()=>th,you:()=>ih}),oh=v({"affinity.adjust":()=>tn,"affinity.close":()=>an,"affinity.deep":()=>cn,"affinity.distant":()=>dn,"affinity.familiar":()=>mn,"affinity.hint":()=>_n,"affinity.label":()=>bn,"affinity.reset":()=>Cn,"affinity.unfamiliar":()=>En,apply:()=>kn,"avatar.choose":()=>Mn,"avatar.companion":()=>Fn,"avatar.companionPreview":()=>Rn,"avatar.decodeFailed":()=>Vn,"avatar.dimensions":()=>Wn,"avatar.format":()=>qn,"avatar.hint":()=>Xn,"avatar.invalid":()=>$n,"avatar.none":()=>nr,"avatar.readFailed":()=>ar,"avatar.ready":()=>cr,"avatar.selected":()=>dr,"avatar.user":()=>mr,"avatar.userPreview":()=>_r,"camera.failed":()=>br,"chat.label":()=>Cr,close:()=>Er,"command.label":()=>kr,"compact.admissionFailed":()=>Mr,"compact.command":()=>Fr,"compact.description":()=>Rr,"compact.done":()=>Vr,"compact.failed":()=>Wr,"compact.record":()=>qr,"compact.running":()=>Xr,"companion.open":()=>$r,"composer.label":()=>ni,"composer.placeholder":()=>ai,"composer.shortcut":()=>ci,"connection.interrupted":()=>di,"context.label":()=>mi,"context.percentage":()=>_i,"delivery.queued":()=>bi,"delivery.sending":()=>Ci,"delivery.unresolved":()=>Ei,"diary.back":()=>ki,"diary.empty":()=>Mi,"diary.failed":()=>Fi,"diary.tooLarge":()=>Ri,discard:()=>Vi,"drawer.diary":()=>Wi,"drawer.history":()=>qi,"drawer.images":()=>Xi,"dsh.more":()=>$i,"dsh.open":()=>na,"error.audio":()=>aa,"error.compactImages":()=>ca,"error.image":()=>da,"error.restored":()=>ma,"error.send":()=>_a,"error.stop":()=>ba,"error.storage":()=>Ca,"gallery.earlier":()=>Ea,"gallery.empty":()=>ka,"gallery.failed":()=>Ma,"gallery.group.day":()=>Fa,"gallery.group.week":()=>Ra,"gallery.grouping":()=>Va,"history.affinity":()=>Wa,"history.after":()=>qa,"history.before":()=>Xa,"history.current":()=>$a,"history.earlier":()=>no,"history.empty":()=>ao,"history.failed":()=>co,"history.initial":()=>fo,"history.list":()=>ho,"history.loadFailed":()=>vo,"history.loading":()=>xo,"history.loadingEarlier":()=>wo,"history.mood":()=>Do,"history.older":()=>Ao,"history.reason":()=>No,"history.retry":()=>Io,"history.signature":()=>zo,"history.title":()=>Ho,"image.choose":()=>Go,"image.close":()=>Jo,"image.closeBackdrop":()=>Zo,"image.countLimit":()=>es,"image.failed":()=>rs,"image.generating":()=>os,"image.pending":()=>ls,"image.preview":()=>fs,"image.previewAlt":()=>hs,"image.remove":()=>vs,"image.tooLarge":()=>xs,"image.totalTooLarge":()=>ws,"image.types":()=>Ds,"image.unavailable":()=>As,"image.view":()=>Ns,"keet.recoveryLoss":()=>Is,loading:()=>zs,"loading.label":()=>Hs,"loading.progress":()=>Gs,m:()=>ah,"message.invalid":()=>Js,"message.send":()=>Zs,"message.tooLong":()=>ec,"message.unconfirmed":()=>rc,"message.unconfirmedDraft":()=>oc,"messages.new":()=>lc,"mood.bright":()=>fc,"mood.label":()=>hc,"mood.low":()=>vc,"mood.neutral":()=>xc,"mood.note":()=>wc,"mood.pensive":()=>Dc,"mood.playful":()=>Ac,"mood.serene":()=>Nc,"mood.tender":()=>Ic,"mood.tired":()=>zc,"pet.dockLabel":()=>Hc,"preferences.dark":()=>Gc,"preferences.language":()=>Jc,"preferences.light":()=>Zc,"preferences.open":()=>el,"preferences.system":()=>rl,"preferences.theme":()=>ol,reconnect:()=>ll,"relationship.close":()=>fl,"relationship.current":()=>hl,"relationship.failed":()=>vl,"relationship.named":()=>xl,"relationship.reconnectHint":()=>wl,"relationship.updateFailed":()=>Dl,"relationship.view":()=>Al,"reply.failed":()=>Nl,"reply.running":()=>Il,"reply.stop":()=>zl,"reply.stopped":()=>Hl,"reset.failed":()=>Gl,retry:()=>Jl,save:()=>Zl,"session.failed":()=>eu,"session.new":()=>ru,"session.none":()=>ou,"session.reconnectHint":()=>lu,"session.switch":()=>fu,"session.untitled":()=>hu,"settings.address":()=>vu,"settings.addressHint":()=>xu,"settings.affinityFailed":()=>wu,"settings.affinityInvalid":()=>Du,"settings.affinityUpdated":()=>Au,"settings.collapse":()=>Nu,"settings.companionName":()=>Iu,"settings.defaultAffinity":()=>zu,"settings.defaultAffinityHint":()=>Hu,"settings.description":()=>Gu,"settings.discarded":()=>Ju,"settings.expand":()=>Zu,"settings.failed":()=>ed,"settings.nameLimit":()=>rd,"settings.open":()=>od,"settings.readOnly":()=>ld,"settings.readOnlyHint":()=>fd,"settings.rejected":()=>hd,"settings.saved":()=>vd,"settings.saving":()=>xd,"settings.title":()=>wd,"settings.unsaved":()=>Dd,"settings.userName":()=>Ad,"sidebar.close":()=>Nd,"sidebar.closePanel":()=>Id,"sidebar.collapse":()=>zd,"sidebar.expand":()=>Hd,"sidebar.label":()=>Gd,"sidebar.show":()=>Jd,"sidebar.title":()=>Zd,"signature.clear":()=>ef,"signature.cleared":()=>rf,"signature.empty":()=>sf,"signature.failed":()=>uf,"status.connecting":()=>pf,"status.namedTyping":()=>gf,"status.offline":()=>yf,"status.online":()=>Sf,"status.typing":()=>Tf,"voice.duration":()=>Of,"voice.empty":()=>jf,"voice.failed":()=>Pf,"voice.install":()=>Lf,"voice.micUnavailable":()=>Bf,"voice.pause":()=>Uf,"voice.permission":()=>Kf,"voice.play":()=>Yf,"voice.playFailed":()=>Qf,"voice.player":()=>tp,"voice.preparing":()=>ip,"voice.progress":()=>sp,"voice.recording":()=>up,"voice.retry":()=>pp,"voice.secure":()=>gp,"voice.sent":()=>yp,"voice.size":()=>Sp,"voice.start":()=>Tp,"voice.stop":()=>Op,"voice.stopping":()=>jp,"voice.transcribing":()=>Pp,"voice.transcribingProgress":()=>Lp,"voice.transcript":()=>Bp,"voice.transcriptionFailed":()=>Up,"voice.unavailable":()=>Kp,"voice.unclear":()=>Yp,"voice.unsupported":()=>Qp,"voice.wait":()=>tm,"wait.care":()=>im,"wait.here":()=>sm,"wait.soon":()=>um,"wait.thinking":()=>pm,"wait.words":()=>gm,"welcome.greeting":()=>ym,"welcome.prompt":()=>Sm,"workspace.chooseHint":()=>Tm,"workspace.empty":()=>Om,"workspace.failed":()=>jm,"workspace.hint":()=>Pm,"workspace.loading":()=>Lm,"workspace.missing":()=>Bm,"workspace.none":()=>Um,"workspace.reconnectHint":()=>Km,"workspace.required":()=>Ym,"workspace.select":()=>Qm,"workspace.settingsLabel":()=>th,you:()=>ih});function sh(e){return(t,n)=>{let r=oh[t];return r?.(n,{locale:e})??t}}var ch=sh(`en`),lh;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(lh||={});var uh=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},dh=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,fh=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?dh(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new uh(`"${e}" plugin is not implemented on ${c}`,lh.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}throw new uh(`"${e}.${t}()" is not implemented on ${c}`,lh.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,"name",{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),_=(e,t)=>{let n=h({eventName:e},t),r=async()=>{let r=await n;g({eventName:e,callbackId:r},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},v=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?_:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=v,l.set(e,{name:e,proxy:v,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),v},n.Exception=uh,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},ph=(e=>e.Capacitor=fh(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),mh=ph.registerPlugin,hh=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new ph.Exception(e,lh.Unimplemented)}unavailable(e=`not available`){return new ph.Exception(e,lh.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);r!==-1&&this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},gh=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),_h=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),vh=class extends hh{async getCookies(){let e=document.cookie,t={};return e.split(`;`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=_h(n).trim(),r=_h(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=gh(e.key),n=gh(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}};mh(`CapacitorCookies`,{web:()=>new vh});var yh=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),bh=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},xh=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,Sh=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=bh(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else(r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},Ch=class extends hh{async request(e){let t=Sh(e,e.webFetchExtra),n=xh(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await yh(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}};mh(`CapacitorHttp`,{web:()=>new Ch});var wh;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(wh||={});var Th;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(Th||={});var Eh=class extends hh{async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}};mh(`SystemBars`,{web:()=>new Eh});var Dh;(function(e){e.Prompt=`PROMPT`,e.Camera=`CAMERA`,e.Photos=`PHOTOS`})(Dh||={});var Oh;(function(e){e.Rear=`REAR`,e.Front=`FRONT`})(Oh||={});var kh;(function(e){e.Uri=`uri`,e.Base64=`base64`,e.DataUrl=`dataUrl`})(kh||={});var Ah;(function(e){e[e.Photo=0]=`Photo`,e[e.Video=1]=`Video`})(Ah||={});var jh;(function(e){e[e.Photo=0]=`Photo`,e[e.Video=1]=`Video`,e[e.All=2]=`All`})(jh||={});var Mh;(function(e){e[e.JPEG=0]=`JPEG`,e[e.PNG=1]=`PNG`})(Mh||={});var Nh;(function(e){e.CameraPermissionDenied=`OS-PLUG-CAMR-0003`,e.GalleryPermissionDenied=`OS-PLUG-CAMR-0005`,e.NoCameraAvailable=`OS-PLUG-CAMR-0007`,e.TakePhotoCancelled=`OS-PLUG-CAMR-0006`,e.TakePhotoFailed=`OS-PLUG-CAMR-0010`,e.TakePhotoInvalidArguments=`OS-PLUG-CAMR-0014`,e.InvalidImageData=`OS-PLUG-CAMR-0008`,e.EditPhotoFailed=`OS-PLUG-CAMR-0009`,e.EditPhotoCancelled=`OS-PLUG-CAMR-0013`,e.EditPhotoEmptyUri=`OS-PLUG-CAMR-0024`,e.ImageNotFound=`OS-PLUG-CAMR-0011`,e.ProcessImageFailed=`OS-PLUG-CAMR-0012`,e.ChooseMediaFailed=`OS-PLUG-CAMR-0018`,e.ChooseMediaCancelled=`OS-PLUG-CAMR-0020`,e.MediaPathError=`OS-PLUG-CAMR-0021`,e.FetchImageFromUriFailed=`OS-PLUG-CAMR-0028`,e.RecordVideoFailed=`OS-PLUG-CAMR-0016`,e.RecordVideoCancelled=`OS-PLUG-CAMR-0017`,e.VideoNotFound=`OS-PLUG-CAMR-0025`,e.PlayVideoFailed=`OS-PLUG-CAMR-0023`,e.EncodeResultFailed=`OS-PLUG-CAMR-0019`,e.FileNotFound=`OS-PLUG-CAMR-0027`,e.InvalidArgument=`OS-PLUG-CAMR-0031`,e.GeneralError=`OS-PLUG-CAMR-0026`})(Nh||={});var Ph=class extends hh{async takePhoto(e){return new Promise(async(t,n)=>{e.webUseInput?this.takePhotoCameraInputExperience(e,t,n):this.takePhotoCameraExperience(e,t,n)})}async recordVideo(e){throw this.unimplemented(`recordVideo is not implemented on Web.`)}async playVideo(e){throw this.unimplemented(`playVideo is not implemented on Web.`)}async chooseFromGallery(e){return new Promise(async(t,n)=>{this.galleryInputExperience(e,t,n)})}async editPhoto(e){throw this.unimplemented(`editPhoto is not implemented on Web.`)}async editURIPhoto(e){throw this.unimplemented(`editURIPhoto is not implemented on Web.`)}async getPhoto(e){return new Promise(async(t,n)=>{if(e.webUseInput||e.source===Dh.Photos)this.fileInputExperience(e,t,n);else if(e.source===Dh.Prompt){let r=document.querySelector(`pwa-action-sheet`);r||(r=document.createElement(`pwa-action-sheet`),document.body.appendChild(r)),r.header=e.promptLabelHeader||`Photo`,r.cancelable=!1,r.options=[{title:e.promptLabelPhoto||`From Photos`},{title:e.promptLabelPicture||`Take Picture`}],r.addEventListener(`onSelection`,async r=>{r.detail===0?this.fileInputExperience(e,t,n):this.cameraExperience(e,t,n)})}else this.cameraExperience(e,t,n)})}async pickImages(e){return new Promise(async(e,t)=>{this.multipleFileInputExperience(e,t)})}async cameraExperience(e,t,n){await this._setupPWACameraModal(e.direction,t=>this._getCameraPhoto(t,e),()=>this.fileInputExperience(e,t,n),t,n)}fileInputExperience(e,t,n){let r=document.querySelector(`#_capacitor-camera-input`),i=()=>{var e;(e=r.parentNode)==null||e.removeChild(r)};r||(r=document.createElement(`input`),r.id=`_capacitor-camera-input`,r.type=`file`,r.hidden=!0,document.body.appendChild(r),r.addEventListener(`change`,n=>{let a=r.files[0],o=`jpeg`;if(a.type===`image/png`?o=`png`:a.type===`image/gif`&&(o=`gif`),e.resultType===`dataUrl`||e.resultType===`base64`){let n=new FileReader;n.addEventListener(`load`,()=>{if(e.resultType===`dataUrl`)t({dataUrl:n.result,format:o});else if(e.resultType===`base64`){let e=n.result.split(`,`)[1];t({base64String:e,format:o})}i()}),n.readAsDataURL(a)}else t({webPath:URL.createObjectURL(a),format:o}),i()}),r.addEventListener(`cancel`,e=>{n(new uh(`User cancelled photos app`)),i()})),r.accept=`image/*`,r.capture=!0,e.source===Dh.Photos||e.source===Dh.Prompt?r.removeAttribute(`capture`):e.direction===Oh.Front?r.capture=`user`:e.direction===Oh.Rear&&(r.capture=`environment`),r.click()}multipleFileInputExperience(e,t){let n=document.querySelector(`#_capacitor-camera-input-multiple`),r=()=>{var e;(e=n.parentNode)==null||e.removeChild(n)};n||(n=document.createElement(`input`),n.id=`_capacitor-camera-input-multiple`,n.type=`file`,n.hidden=!0,n.multiple=!0,document.body.appendChild(n),n.addEventListener(`change`,t=>{let i=[];for(let e=0;e<n.files.length;e++){let t=n.files[e],r=`jpeg`;t.type===`image/png`?r=`png`:t.type===`image/gif`&&(r=`gif`),i.push({webPath:URL.createObjectURL(t),format:r})}e({photos:i}),r()}),n.addEventListener(`cancel`,e=>{t(new uh(`User cancelled photos app`)),r()})),n.accept=`image/*`,n.click()}_getCameraPhoto(e,t){return new Promise((n,r)=>{let i=new FileReader,a=this._getFileFormat(e);t.resultType===`uri`?n({webPath:URL.createObjectURL(e),format:a,saved:!1}):(i.readAsDataURL(e),i.onloadend=()=>{let e=i.result;t.resultType===`dataUrl`?n({dataUrl:e,format:a,saved:!1}):n({base64String:e.split(`,`)[1],format:a,saved:!1})},i.onerror=e=>{r(e)})})}async takePhotoCameraExperience(e,t,n){await this._setupPWACameraModal(e.cameraDirection,t=>this._buildPhotoMediaResult(t,e.includeMetadata??!1),()=>this.takePhotoCameraInputExperience(e,t,n),t,n)}takePhotoCameraInputExperience(e,t,n){let r=this._createFileInput(`_capacitor-camera-input-takephoto`),i=()=>{var e;(e=r.parentNode)==null||e.removeChild(r)};r.onchange=async a=>{if(!this._validateFileInput(r,n,i))return;let o=r.files[0];t(await this._buildPhotoMediaResult(o,e.includeMetadata??!1)),i()},r.oncancel=()=>{n(new uh(`User cancelled photos app`)),i()},r.accept=`image/*`,r.capture=e.cameraDirection===Oh.Front?`user`:`environment`,r.click()}galleryInputExperience(e,t,n){let r=this._createFileInput(`_capacitor-camera-input-gallery`);r.multiple=e.allowMultipleSelection??!1;let i=()=>{var e;(e=r.parentNode)==null||e.removeChild(r)};r.onchange=async a=>{if(!this._validateFileInput(r,n,i))return;let o=[];for(let t=0;t<r.files.length;t++){let n=r.files[t];if(n.type.startsWith(`image/`))o.push(await this._buildPhotoMediaResult(n,e.includeMetadata??!1));else if(n.type.startsWith(`video/`)){let t=this._getFileFormat(n),r,i,a;try{let t=await this._getVideoMetadata(n);r=t.thumbnail,e.includeMetadata&&(i=t.resolution,a=t.duration)}catch(e){console.warn(`Failed to get video metadata:`,e)}let s={type:Ah.Video,thumbnail:r,webPath:URL.createObjectURL(n),saved:!1};e.includeMetadata&&(s.metadata={format:t,resolution:i,size:n.size,creationDate:new Date(n.lastModified).toISOString(),duration:a}),o.push(s)}}t({results:o}),i()},r.oncancel=()=>{n(new uh(`User cancelled photos app`)),i()};let a=e.mediaType??jh.Photo;r.accept=a===jh.Photo?`image/*`:a===jh.Video?`video/*`:`image/*,video/*`,r.click()}_getFileFormat(e){return e.type===`image/png`?`png`:e.type===`image/gif`?`gif`:e.type.startsWith(`video/`)?e.type.split(`/`)[1]:e.type.startsWith(`image/`)?`jpeg`:e.type.split(`/`)[1]||`jpeg`}async _buildPhotoMediaResult(e,t){let n=this._getFileFormat(e),r=await this._getBase64FromFile(e),i={type:Ah.Photo,thumbnail:r,webPath:URL.createObjectURL(e),saved:!1};return t&&(i.metadata={format:n,resolution:await this._getImageResolution(e),size:e.size,creationDate:`lastModified`in e?new Date(e.lastModified).toISOString():new Date().toISOString()}),i}_validateFileInput(e,t,n){return!e.files||e.files.length===0?(t(new uh(e.multiple?`No files selected`:`No file selected`)),n(),!1):!0}async _setupPWACameraModal(e,t,n,r,i){if(customElements.get(`pwa-camera-modal`)){let a=document.createElement(`pwa-camera-modal`);a.facingMode=e===Oh.Front?`user`:`environment`,document.body.appendChild(a);try{await a.componentOnReady(),a.addEventListener(`onPhoto`,async e=>{let n=e.detail;n===null?i(new uh(`User cancelled photos app`)):n instanceof Error?i(n):r(await t(n)),a.dismiss(),document.body.removeChild(a)}),a.present()}catch{n()}}else console.error(`Unable to load PWA Element 'pwa-camera-modal'. See the docs: https://capacitorjs.com/docs/web/pwa-elements.`),n()}_createFileInput(e){let t=document.querySelector(`#${e}`);return t||(t=document.createElement(`input`),t.id=e,t.type=`file`,t.hidden=!0,document.body.appendChild(t)),t}async _getImageResolution(e){try{let t=await createImageBitmap(e),n=`${t.width}x${t.height}`;return t.close(),n}catch(e){console.warn(`Failed to get image resolution:`,e);return}}_getBase64FromFile(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{let e=r.result.split(`,`)[1];t(e)},r.onerror=e=>{n(e)},r.readAsDataURL(e)})}_getVideoMetadata(e){return new Promise(t=>{let n=document.createElement(`video`);n.preload=`metadata`,n.muted=!0,n.onloadedmetadata=()=>{let e=Math.min(1,n.duration*.1);n.currentTime=e},n.onseeked=()=>{let e={resolution:`${n.videoWidth}x${n.videoHeight}`,duration:n.duration};try{let t=document.createElement(`canvas`);t.width=n.videoWidth,t.height=n.videoHeight;let r=t.getContext(`2d`);r&&(r.drawImage(n,0,0,t.width,t.height),e.thumbnail=t.toDataURL(`image/jpeg`,.8).split(`,`)[1])}catch(e){console.warn(`Failed to generate video thumbnail:`,e)}URL.revokeObjectURL(n.src),t(e)},n.onerror=()=>{URL.revokeObjectURL(n.src),t({})},n.src=URL.createObjectURL(e)})}async checkPermissions(){if(typeof navigator>`u`||!navigator.permissions)throw this.unavailable(`Permissions API not available in this browser`);try{return{camera:(await window.navigator.permissions.query({name:`camera`})).state,photos:`granted`}}catch{throw this.unavailable(`Camera permissions are not available in this browser`)}}async requestPermissions(){throw this.unimplemented(`Not implemented on web.`)}async pickLimitedLibraryPhotos(){throw this.unavailable(`Not implemented on web.`)}async getLimitedLibraryPhotos(){throw this.unavailable(`Not implemented on web.`)}};new Ph;var Fh=mh(`Camera`,{web:()=>new Ph}),Ih={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Lh=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Rh=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),zh=m(`<svg><!><!></svg>`);function Bh(e,n){let r=xe(n,[`children`,`$$slots`,`$$events`,`$$legacy`]),i=xe(r,[`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`]);ie(n,!1);let a=De(n,`name`,8,void 0),o=De(n,`color`,8,`currentColor`),d=De(n,`size`,8,24),f=De(n,`strokeWidth`,8,2),p=De(n,`absoluteStrokeWidth`,8,!1),m=De(n,`iconNode`,24,()=>[]);se();var h=zh();M(h,(e,t,n)=>({...Ih,...e,...i,width:d(),height:d(),stroke:o(),"stroke-width":t,class:n}),[()=>Lh(i)?void 0:{"aria-hidden":`true`},()=>(T(p()),T(f()),T(d()),l(()=>p()?Number(f())*24/Number(d()):f())),()=>(T(Rh),T(a()),T(r),l(()=>Rh(`lucide-icon`,`lucide`,a()?`lucide-${a()}`:``,r.class)))]);var g=j(h);t(g,1,m,he,(e,t)=>{var n=A(()=>s(u(t),2));let r=()=>u(n)[0],i=()=>u(n)[1];var a=c(),o=I(a);C(o,r,!0,(e,t)=>{M(e,()=>({...i()}))}),y(e,a)});var v=P(g);_(v,n,`default`,{},null),L(h),y(e,h),Le()}function Vh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M16 5h6`}],[`path`,{d:`M19 2v6`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}]];Bh(e,_e({name:`image-plus`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function Hh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M4 5h16`}],[`path`,{d:`M4 12h16`}],[`path`,{d:`M4 19h16`}]];Bh(e,_e({name:`menu`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function Uh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]];Bh(e,_e({name:`settings`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function Wh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];Bh(e,_e({name:`pause`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function Gh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`}]];Bh(e,_e({name:`play`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function Kh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}]];Bh(e,_e({name:`square`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function qh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M12 19v3`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`}]];Bh(e,_e({name:`mic`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function Jh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]];Bh(e,_e({name:`x`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function Yh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`}]];Bh(e,_e({name:`images`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function Xh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`}]];Bh(e,_e({name:`heart`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function Zh(e,t){let n=xe(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M12 7v14`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`}]];Bh(e,_e({name:`book-open`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=c(),i=I(r);_(i,t,`default`,{},null),y(e,r)},$$slots:{default:!0}}))}function Qh(e,t,n){let r=n.initialDeps??[],i;function a(){var a;let o;n.key&&n.debug?.call(n)&&(o=Date.now());let s=e();if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
3
+ font-size: .6rem;
4
+ font-weight: bold;
5
+ color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return(a=n?.onChange)==null||a.call(n,i),i}return a.updateDeps=e=>{r=e},a}function $h(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var eg=(e,t)=>Math.abs(e-t)<1.01,tg=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},ng=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},rg=e=>e,ig=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},ag=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(ng(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(ng(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},og={passive:!0},sg=typeof window>`u`||`onscrollend`in window,cg=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,a=e.options.useScrollendEvent&&sg?()=>void 0:tg(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=r=>()=>{let{horizontal:o,isRtl:s}=e.options;i=o?n.scrollLeft*(s&&-1||1):n.scrollTop,a(),t(i,r)},s=o(!0),c=o(!1);c(),n.addEventListener(`scroll`,s,og);let l=e.options.useScrollendEvent&&sg;return l&&n.addEventListener(`scrollend`,c,og),()=>{n.removeEventListener(`scroll`,s),l&&n.removeEventListener(`scrollend`,c)}},lg=(e,t,n)=>{if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},ug=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;let o=e+t;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:o,behavior:n})},dg=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{n===void 0&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:rg,rangeExtractor:ig,onChange:()=>{},measureElement:lg,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=Qh(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let a=r.get(t.lane);if(a==null||t.end>a.end?r.set(t.lane,t):t.end<a.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=Qh(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i}),{key:!1}),this.getMeasurements=Qh(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let o=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let s=this.measurementsCache.slice(0,o);for(let i=o;i<e;i++){let e=r(i),o=this.options.lanes===1?s[i-1]:this.getFurthestMeasurement(s,i),c=o?o.end+this.options.gap:t+n,l=a.get(e),u=typeof l==`number`?l:this.options.estimateSize(i),d=c+u,f=o?o.lane:i%this.options.lanes;s[i]={index:i,start:c,size:u,end:d,key:e,lane:f}}return this.measurementsCache=s,s},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Qh(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?pg({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Qh(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;let i=r.key,a=this.elementsCache.get(i);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);r!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange===void 0?n.start<this.getScrollOffset()+this.scrollAdjustments:this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=Qh(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return $h(t[fg(0,t.length-1,e=>$h(t[e]).start,e)])},this.getOffsetForAlignment=(e,t,n=0)=>{let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getTotalSize()+this.options.scrollMargin-r;return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let r=this.getSize(),i=this.getScrollOffset();if(t===`auto`){if(n.end>=i+r-this.options.scrollPaddingEnd)t=`end`;else if(n.start<=i+this.options.scrollPaddingStart)t=`start`;else return[i,t]}let a=t===`end`?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t=`start`,behavior:n}={})=>{n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t=`auto`,behavior:n}={})=>{n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let r=0,i=t=>{if(!this.targetWindow)return;let r=this.getOffsetForIndex(e,t);if(!r){console.warn(`Failed to get offset for index:`,e);return}let[i,o]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,o);if(!n){console.warn(`Failed to get offset for index:`,e);return}eg(n[0],t)||a(o)})},a=t=>{this.targetWindow&&(r++,r<10?this.targetWindow.requestAnimationFrame(()=>i(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};i(t)},this.scrollBy=(e,{behavior:t}={})=>{t===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1)t=e[e.length-1]?.end??0;else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}},fg=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function pg({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){let i=e.length-1,a=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=fg(0,i,a,n),s=o;if(r===1)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){let a=Array(r).fill(0);for(;s<i&&a.some(e=>e<n+t);){let t=e[s];a[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}function mg(e){let t=new dg(e),n=t.setOptions,r,i=e=>{let i={...t.options,...e,onChange:e.onChange};n({...i,onChange:(e,t)=>{r.set(e),i.onChange?.(e,t)}}),t._willUpdate()};return r=de(t,()=>(i(e),t._didMount())),fe(r,e=>Object.assign(e,{setOptions:i}))}function hg(e){return mg({observeElementRect:ag,observeElementOffset:cg,scrollToFn:ug,...e})}function gg(e,t=`en`,n=`week`){let r=Intl.Locale.prototype.getWeekInfo?.call(new Intl.Locale(t)),i=(r?.firstDay??1)%7,a=r?.minimalDays??4,o=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t.setDate(t.getDate()-(t.getDay()-i+7)%7),t},s=e=>{let t=new Date(e,0,1),n=o(t.getTime()),r=7-(t.getDay()-i+7)%7;return new Date(n.getTime()+(r<a?7:0)*24*60*60*1e3)},c=e=>{let t=new Date(e),n=o(e),r=t.getFullYear();n<s(r)?--r:n>=s(r+1)&&(r+=1);let i=Math.floor((n.getTime()-s(r).getTime())/6048e5)+1;return`${r} · W${i}`},l=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},u=new Intl.DateTimeFormat(t,{year:`numeric`,month:`short`,day:`numeric`}),d=n===`day`?l:o,f=n===`day`?e=>u.format(new Date(e)):c,p=new Map;for(let t of[...e].sort((e,t)=>t.created-e.created||t.id.localeCompare(e.id))){let e=d(t.created),n=String(e.getTime()),r=p.get(n)??{start:e,images:[]};r.images.push(t),p.set(n,r)}return[...p.entries()].sort(([,e],[,t])=>t.start.getTime()-e.start.getTime()).flatMap(([e,t])=>[{kind:`group`,key:e,label:f(t.images[0].created)},...Array.from({length:Math.ceil(t.images.length/3)},(n,r)=>({kind:`images`,key:`${e}:${r}`,images:t.images.slice(r*3,r*3+3)}))])}var _g=8e3;function vg(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function yg(e){return typeof e==`number`&&Number.isFinite(e)&&e>0}function bg(e){let t=vg(e);if(!t||!yg(t.contextWindow))return;let n=Object.hasOwn(t,`projectedTokens`)&&t.projectedTokens!==void 0?t.projectedTokens:t.pressureTokens;if(!(typeof n!=`number`||!Number.isFinite(n)||n<0))return{usedTokens:n,contextWindow:t.contextWindow,percentage:Math.min(100,Math.max(0,Math.round(n/t.contextWindow*100)))}}function xg(e){if(typeof e!=`number`||!Number.isFinite(e)||e<0)return;let t=e>=1e3?1e3:100;return Math.round(e/t)*t}function Sg(e){let t=xg(e);if(t!==void 0)return t>=1e3?`${Math.round(t/1e3)}k`:String(t)}var Cg=class extends Error{constructor(e){super(e),this.name=`CompanionPreControllerError`}};function wg(e,t=43,n=150){let r=Number.isFinite(t)&&t>0?t:43,i=Number.isFinite(n)&&n>=r?n:150,a=Number.isFinite(e)&&e>0?e:r;return{height:Math.min(i,Math.max(r,a)),scrollable:a>i}}function Tg(e){return[{command:`/compact`,label:e(`compact.command`),description:e(`compact.description`)}]}function Eg(e=``){return{draft:e,composing:!1}}function Dg(e,t){switch(t.type){case`input`:return{...e,draft:t.value};case`compositionstart`:return{...e,composing:!0};case`compositionend`:return{...e,composing:!1,draft:t.value};case`submit`:return e.composing||!e.draft.trim()?e:{draft:``,composing:!1,lastSubmitted:e.draft}}}function Og(e,t){return e.key===`Enter`&&!e.shiftKey&&!e.isComposing&&!t}function kg(e,t=ch){if(e.startsWith(`/`)&&!/\s/u.test(e))return Tg(t).find(t=>t.command.startsWith(e))}function Ag(e,t){if(e.length)return t(`keet.recoveryLoss`,{ranges:e.map(({first:e,last:t})=>e===t?`${e}`:`${e}\u2013${t}`).join(`, `)})}function jg(e,t){if(e.changes.seed)return[];let n=[];return e.changes.mood&&n.push({dimension:`mood`,after:{value:e.state.mood,...e.state.note===void 0?{}:{note:e.state.note}},...e.changes.mood.reason===void 0?{}:{reason:e.changes.mood.reason}}),e.changes.affinity&&n.push({dimension:`affinity`,after:{value:e.state.affinity},...t&&e.state.affinity>t.state.affinity?{delta:e.state.affinity-t.state.affinity}:{},...e.changes.affinity.reason===void 0?{}:{reason:e.changes.affinity.reason}}),e.changes.signature&&n.push({dimension:`signature`,after:{value:e.state.signature},...e.changes.signature.reason===void 0?{}:{reason:e.changes.signature.reason}}),n}var Mg=d(`<a><!></a>`);function Ng(e,t){var n=Mg();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Pg=d(`<abbr><!></abbr>`);function Fg(e,t){var n=Pg();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Ig=d(`<address><!></address>`);function Lg(e,t){var n=Ig();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Rg=d(`<article><!></article>`);function zg(e,t){var n=Rg();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Bg=d(`<aside><!></aside>`);function Vg(e,t){var n=Bg();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Hg=d(`<audio><!></audio>`);function Ug(e,t){var n=Hg();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Wg=d(`<b><!></b>`);function Gg(e,t){var n=Wg();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Kg=d(`<bdi><!></bdi>`);function qg(e,t){var n=Kg();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Jg=d(`<bdo><!></bdo>`);function Yg(e,t){var n=Jg();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Xg=d(`<blockquote><!></blockquote>`);function Zg(e,t){var n=Xg();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Qg=d(`<br/>`);function $g(e,t){let n=De(t,`attributes`,19,()=>({}));var r=Qg();M(r,()=>({...n()})),y(e,r)}var e_=d(`<button><!></button>`);function t_(e,t){var n=e_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var n_=d(`<canvas><!></canvas>`);function r_(e,t){var n=n_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var i_=d(`<cite><!></cite>`);function a_(e,t){var n=i_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var o_=d(`<code><!></code>`);function s_(e,t){var n=o_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var c_=d(`<datalist><!></datalist>`);function l_(e,t){var n=c_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var u_=d(`<dd><!></dd>`);function d_(e,t){var n=u_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var f_=d(`<del><!></del>`);function p_(e,t){var n=f_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var m_=d(`<details><!></details>`);function h_(e,t){var n=m_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var g_=d(`<dfn><!></dfn>`);function __(e,t){var n=g_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var v_=d(`<dialog><!></dialog>`);function y_(e,t){var n=v_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var b_=d(`<div><!></div>`);function x_(e,t){var n=b_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var S_=d(`<dl><!></dl>`);function C_(e,t){var n=S_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var w_=d(`<dt><!></dt>`);function T_(e,t){var n=w_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var E_=d(`<em><!></em>`);function D_(e,t){var n=E_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var O_=d(`<embed/>`);function k_(e,t){var r=O_();M(r,()=>({...t.attributes})),n(r),y(e,r)}var A_=d(`<fieldset><!></fieldset>`);function j_(e,t){var n=A_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var M_=d(`<footer><!></footer>`);function N_(e,t){var n=M_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var P_=d(`<form><!></form>`);function F_(e,t){var n=P_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var I_=d(`<h1><!></h1>`);function L_(e,t){var n=I_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var R_=d(`<h2><!></h2>`);function z_(e,t){var n=R_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var B_=d(`<h3><!></h3>`);function V_(e,t){var n=B_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var H_=d(`<h4><!></h4>`);function U_(e,t){var n=H_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var W_=d(`<h5><!></h5>`);function G_(e,t){var n=W_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var K_=d(`<h6><!></h6>`);function q_(e,t){var n=K_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var J_=d(`<header><!></header>`);function Y_(e,t){var n=J_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var X_=d(`<hgroup><!></hgroup>`);function Z_(e,t){var n=X_();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Q_=d(`<hr/>`);function $_(e,t){var n=Q_();M(n,()=>({...t.attributes})),y(e,n)}var ev=d(`<i><!></i>`);function tv(e,t){var n=ev();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var nv=d(`<iframe><!></iframe>`);function rv(e,t){var r=nv();M(r,()=>({...t.attributes}));var i=j(r);a(i,()=>t.children??w),L(r),n(r),y(e,r)}var iv=d(`<img/>`);function av(e,t){var r=iv();M(r,()=>({...t.attributes})),n(r),y(e,r)}var ov=d(`<input/>`);function sv(e,t){var n=ov();M(n,()=>({...t.attributes}),void 0,void 0,void 0,void 0,!0),y(e,n)}var cv=d(`<kbd><!></kbd>`);function lv(e,t){var n=cv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var uv=d(`<label><!></label>`);function dv(e,t){var n=uv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var fv=d(`<legend><!></legend>`);function pv(e,t){var n=fv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var mv=d(`<li><!></li>`);function hv(e,t){var n=mv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var gv=d(`<main><!></main>`);function _v(e,t){var n=gv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var vv=d(`<mark><!></mark>`);function yv(e,t){var n=vv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var bv=d(`<menu><!></menu>`);function xv(e,t){var n=bv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Sv=d(`<meter><!></meter>`);function Cv(e,t){var n=Sv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var wv=d(`<nav><!></nav>`);function Tv(e,t){var n=wv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Ev=d(`<ol><!></ol>`);function Dv(e,t){var n=Ev();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Ov=d(`<optgroup><!></optgroup>`);function kv(e,t){var n=Ov();M(n,()=>({...t.attributes})),ye(n,()=>{var e=j(n),r=c(),i=I(r);a(i,()=>t.children??w),y(e,r)}),y(e,n)}var Av=d(`<option><!></option>`);function jv(e,t){var n=Av();M(n,()=>({...t.attributes})),ye(n,()=>{var e=j(n),r=c(),i=I(r);a(i,()=>t.children??w),y(e,r)}),y(e,n)}var Mv=d(`<output><!></output>`);function Nv(e,t){var n=Mv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Pv=d(`<p><!></p>`);function Fv(e,t){var n=Pv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Iv=d(`<param/>`);function Lv(e,t){var n=Iv();M(n,()=>({...t.attributes})),y(e,n)}var Rv=d(`<picture><!></picture>`);function zv(e,t){var n=Rv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Bv=d(`<pre><!></pre>`);function Vv(e,t){var n=Bv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Hv=d(`<progress><!></progress>`);function Uv(e,t){var n=Hv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Wv=d(`<s><!></s>`);function Gv(e,t){var n=Wv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Kv=d(`<samp><!></samp>`);function qv(e,t){var n=Kv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Jv=d(`<section><!></section>`);function Yv(e,t){var n=Jv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Xv=d(`<select><!></select>`);function Zv(e,t){var n=Xv();M(n,()=>({...t.attributes})),ye(n,()=>{var e=j(n),r=c(),i=I(r);a(i,()=>t.children??w),y(e,r)}),y(e,n)}var Qv=d(`<small><!></small>`);function $v(e,t){var n=Qv();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var ey=d(`<source/>`);function ty(e,t){var n=ey();M(n,()=>({...t.attributes})),y(e,n)}var ny=d(`<span><!></span>`);function ry(e,t){var n=ny();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var iy=d(`<strong><!></strong>`);function ay(e,t){var n=iy();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var oy=d(`<sub><!></sub>`);function sy(e,t){var n=oy();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var cy=d(`<summary><!></summary>`);function ly(e,t){var n=cy();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var uy=d(`<sup><!></sup>`);function dy(e,t){var n=uy();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var fy=d(`<table><!></table>`);function py(e,t){var n=fy();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var my=d(`<tbody><!></tbody>`);function hy(e,t){var n=my();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var gy=d(`<td><!></td>`);function _y(e,t){var n=gy();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var vy=d(`<textarea></textarea>`);function yy(e,t){var n=vy();le(n),M(n,()=>({...t.attributes})),y(e,n)}var by=d(`<tfoot><!></tfoot>`);function xy(e,t){var n=by();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Sy=d(`<th><!></th>`);function Cy(e,t){var n=Sy();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var wy=d(`<thead><!></thead>`);function Ty(e,t){var n=wy();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Ey=d(`<tr><!></tr>`);function Dy(e,t){var n=Ey();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Oy=d(`<track/>`);function ky(e,t){var r=Oy();M(r,()=>({...t.attributes})),n(r),y(e,r)}var Ay=d(`<u><!></u>`);function jy(e,t){var n=Ay();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var My=d(`<ul><!></ul>`);function Ny(e,t){var n=My();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Py=d(`<var><!></var>`);function Fy(e,t){var n=Py();M(n,()=>({...t.attributes}));var r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var Iy=d(` <!> `,1);function Ly(e,t){ie(t,!0);let n=Object.entries(t.attributes||{}).map(([e,t])=>`${e}="${t}"`).join(` `)||``;i();var r=Iy(),o=I(r),s=P(o);a(s,()=>t.children??w);var c=P(s);D(()=>{g(o,`<${t.tag??``}${n?` ${n}`:``}>`),g(c,`</${t.tag??``}>`)}),y(e,r),Le()}var Ry={a:Ng,abbr:Fg,address:Lg,article:zg,aside:Vg,audio:Ug,b:Gg,bdi:qg,bdo:Yg,blockquote:Zg,br:$g,button:t_,canvas:r_,cite:a_,code:s_,datalist:l_,dd:d_,del:p_,details:h_,dfn:__,dialog:y_,div:x_,dl:C_,dt:T_,em:D_,embed:k_,fieldset:j_,footer:N_,form:F_,h1:L_,h2:z_,h3:V_,h4:U_,h5:G_,h6:q_,header:Y_,hgroup:Z_,hr:$_,i:tv,iframe:rv,img:av,input:sv,kbd:lv,label:dv,legend:pv,li:hv,main:_v,mark:yv,menu:xv,meter:Cv,nav:Tv,ol:Dv,optgroup:kv,option:jv,output:Nv,p:Fv,param:Lv,picture:zv,pre:Vv,progress:Uv,s:Gv,samp:qv,section:Yv,select:Zv,small:$v,source:ty,span:ry,strong:ay,sub:sy,summary:ly,sup:dy,table:py,tbody:hy,td:_y,textarea:yy,tfoot:xy,th:Cy,thead:Ty,tr:Dy,track:ky,u:jy,ul:Ny,var:Fy},zy=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,By=Object.hasOwnProperty,Vy=class{constructor(){this.occurrences,this.reset()}slug(e,t){let n=this,r=Hy(e,t===!0),i=r;for(;By.call(n.occurrences,r);)n.occurrences[i]++,r=i+`-`+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};function Hy(e,t){return typeof e==`string`?(t||(e=e.toLowerCase()),e.replace(zy,``).replace(/ /g,`-`)):``}function Uy(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Wy=Uy();function Gy(e){Wy=e}var Ky={exec:()=>null};function qy(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function Jy(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Xy.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Yy=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),Xy={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:qy(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:qy(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:qy(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:qy(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:qy(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:qy(e=>RegExp(`^ {0,${e}}>`))},Zy=/^(?:[ \t]*(?:\n|$))+/,Qy=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$y=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,eb=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tb=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,nb=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,rb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ib=Jy(rb).replace(/bull/g,nb).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),ab=Jy(rb).replace(/bull/g,nb).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ob=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,sb=/^[^\n]+/,cb=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lb=Jy(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,cb).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ub=Jy(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,nb).getRegex(),db=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,fb=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,pb=Jy(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,fb).replace(`tag`,db).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mb=e=>Jy(ob).replace(`hr`,eb).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,db).getRegex(),hb=mb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),gb=mb(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),_b={blockquote:Jy(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,gb).getRegex(),code:Qy,def:lb,fences:$y,heading:tb,hr:eb,html:pb,lheading:ib,list:ub,newline:Zy,paragraph:hb,table:Ky,text:sb},vb=Jy(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,eb).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,db).getRegex(),yb={..._b,lheading:ab,table:vb,paragraph:Jy(ob).replace(`hr`,eb).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,vb).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,db).getRegex()},bb={..._b,html:Jy(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,fb).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ky,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Jy(ob).replace(`hr`,eb).replace(`heading`,` *#{1,6} *[^
6
+ ]`).replace(`lheading`,ib).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},xb=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Sb=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cb=/^( {2,}|\\)\n(?!\s*$)/,wb=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Tb=/[\p{P}\p{S}]/u,Eb=/[\s\p{P}\p{S}]/u,Db=/[^\s\p{P}\p{S}]/u,Ob=Jy(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Eb).getRegex(),kb=/[\p{Pi}\p{Ps}"']/u,Ab=/(?!~)[\p{P}\p{S}]/u,jb=/(?!~)[\s\p{P}\p{S}]/u,Mb=/(?:[^\s\p{P}\p{S}]|~)/u,Nb=Jy(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Yy?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Pb=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Fb=Jy(Pb,`u`).replace(/punct/g,Tb).getRegex(),Ib=Jy(Pb,`u`).replace(/punct/g,Ab).getRegex(),Lb=Jy(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,kb).replace(/punct/g,Tb).getRegex(),Rb=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,zb=Jy(Rb,`gu`).replace(/notPunctSpace/g,Db).replace(/punctSpace/g,Eb).replace(/punct/g,Tb).getRegex(),Bb=Jy(Rb,`gu`).replace(/notPunctSpace/g,Mb).replace(/punctSpace/g,jb).replace(/punct/g,Ab).getRegex(),Vb=Jy(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Db).replace(/punctSpace/g,Eb).replace(/punct/g,Tb).getRegex(),Hb=Jy(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Db).replace(/punctSpace/g,Eb).replace(/punct/g,Tb).getRegex(),Ub=Jy(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Db).replace(/punctSpace/g,Eb).replace(/punct/g,Tb).getRegex(),Wb=Jy(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Tb).getRegex(),Gb=Jy(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Db).replace(/punctSpace/g,Eb).replace(/punct/g,Tb).getRegex(),Kb=Jy(/\\(punct)/,`gu`).replace(/punct/g,Tb).getRegex(),qb=Jy(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Jb=Jy(fb).replace(`(?:-->|$)`,`-->`).getRegex(),Yb=Jy(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Jb).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Xb=Jy(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,/\[(?:\\[\s\S]|[^\[\]\\])*\]/).getRegex(),Zb=Jy(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,Xb).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Qb=Jy(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Xb).replace(`ref`,cb).getRegex(),$b=Jy(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,cb).getRegex(),ex=Jy(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Qb).replace(`nolink`,$b).getRegex(),tx=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,nx={_backpedal:Ky,anyPunctuation:Kb,autolink:qb,blockSkip:Nb,br:Cb,code:Sb,del:Ky,delLDelim:Ky,delRDelim:Ky,emStrongLDelim:Fb,emStrongRDelimAst:zb,emStrongRDelimUnd:Hb,escape:xb,link:Zb,nolink:$b,punctuation:Ob,reflink:Qb,reflinkSearch:ex,tag:Yb,text:wb,url:Ky},rx={...nx,emStrongLDelim:Lb,emStrongRDelimAst:Vb,emStrongRDelimUnd:Ub,link:Jy(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Xb).getRegex(),reflink:Jy(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Xb).getRegex()},ix={...nx,emStrongRDelimAst:Bb,emStrongLDelim:Ib,delLDelim:Wb,delRDelim:Gb,url:Jy(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,tx).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Jy(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,tx).getRegex()},ax={...ix,br:Jy(Cb).replace(`{2,}`,`*`).getRegex(),text:Jy(ix.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},ox={normal:_b,gfm:yb,pedantic:bb},sx={normal:nx,gfm:ix,breaks:ax,pedantic:rx},cx={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},lx=e=>cx[e];function ux(e,t){if(t){if(Xy.escapeTest.test(e))return e.replace(Xy.escapeReplace,lx)}else if(Xy.escapeTestNoEncode.test(e))return e.replace(Xy.escapeReplaceNoEncode,lx);return e}function dx(e){try{e=encodeURI(e).replace(Xy.percentDecode,`%`)}catch{return null}return e}function fx(e,t){let n=e.replace(Xy.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Xy.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(Xy.slashPipe,`|`);return n}function px(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function mx(e){let t=e.split(`
7
+ `),n=t.length-1;for(;n>=0&&Xy.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
8
+ `)}function hx(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function gx(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function _x(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`;r.state.inLink=!0;let l=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(s),f=r.state.linkEmitted;if(r.state.linkEmitted=l,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:d}}function vx(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
9
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
10
+ `)}var yx=class{options;rules;lexer;constructor(e){this.options=e||Wy}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:mx(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=vx(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=px(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:px(t[0],`
11
+ `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:px(t[0],`
12
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=px(t[0],`
13
+ `).split(`
14
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
15
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
16
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
17
+ ${s}`:s,r=r?`${r}
18
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
19
+ `),o=t.raw+`
20
+ `+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s,n=`${n}
21
+ ${a}`,r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
22
+ `+e.join(`
23
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
24
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=gx(t[2].split(`
25
+ `,1)[0],t[1].length),l=e.split(`
26
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
27
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
28
+ `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
29
+ `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
30
+ `+l}u=!l.trim(),r+=p+`
31
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=mx(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:px(t[0],`
32
+ `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=fx(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
33
+ `):[],a={type:`table`,raw:px(t[0],`
34
+ `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(fx(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:px(t[0],`
35
+ `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
36
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=px(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=hx(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),_x(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return _x(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},bx=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Wy,this.options.tokenizer=this.options.tokenizer||new yx,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let t={other:Xy,block:ox.normal,inline:sx.normal};this.options.pedantic?(t.block=ox.pedantic,t.inline=sx.pedantic):this.options.gfm&&(t.block=ox.gfm,t.inline=this.options.breaks?sx.breaks:sx.gfm),this.tokenizer.rules=t}static get rules(){return{block:ox,inline:sx}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Xy.carriageReturn,`
37
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Xy.tabCharGlobal,` `).replace(Xy.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
38
+ `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
39
+ `)?``:`
40
+ `)+i.raw,n.text+=`
41
+ `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
42
+ `)?``:`
43
+ `)+i.raw,n.text+=`
44
+ `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
45
+ `)?``:`
46
+ `)+i.raw,r.text+=`
47
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
48
+ `)?``:`
49
+ `)+i.raw,n.text+=`
50
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,e.slice(n+1,-1))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,n.slice(r+1,-1)))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>`+`.repeat(e.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},xx=class{options;parser;constructor(e){this.options=e||Wy}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Xy.notSpaceStart)?.[0],i=e?e.replace(Xy.endingNewline,``)+`
51
+ `:``;return r?`<pre><code class="language-`+ux(r)+`">`+(n?i:ux(i,!0))+`</code></pre>
52
+ `:`<pre><code>`+(n?i:ux(i,!0))+`</code></pre>
53
+ `}blockquote({tokens:e}){return`<blockquote>
54
+ ${this.parser.parse(e)}</blockquote>
55
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
56
+ `}hr(e){return`<hr>
57
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
58
+ `+r+`</`+i+`>
59
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
60
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
61
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
62
+ <thead>
63
+ `+t+`</thead>
64
+ `+r+`</table>
65
+ `}tablerow({text:e}){return`<tr>
66
+ ${e}</tr>
67
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
68
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ux(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?ux(n,!0):this.parser.parseInline(r),o=dx(e);if(o===null)return a;e=ux(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+ux(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=dx(e);if(i===null)return ux(n);e=i;let a=`<img src="${ux(e)}" alt="${ux(n)}"`;return t&&(a+=` title="${ux(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:ux(e.text)}},Sx=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Cx=class e{options;renderer;textRenderer;constructor(e){this.options=e||Wy,this.options.renderer=this.options.renderer||new xx,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Sx}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},wx=class{options;block;constructor(e){this.options=e||Wy}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?bx.lex:bx.lexInline}provideParser(e=this.block){return e?Cx.parse:Cx.parseInline}},Tx=class{defaults=Uy();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Cx;Renderer=xx;TextRenderer=Sx;Lexer=bx;Tokenizer=yx;Hooks=wx;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new xx(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new yx(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new wx;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=wx.passThroughHooks.has(n)?e=>{if(this.defaults.async&&wx.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return bx.lex(e,t??this.defaults)}parser(e,t){return Cx.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?bx.lex:bx.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Cx.parse:Cx.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?bx.lex:bx.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Cx.parse:Cx.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
69
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+ux(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Ex=new Tx;function Dx(e,t){return Ex.parse(e,t)}Dx.options=Dx.setOptions=function(e){return Ex.setOptions(e),Dx.defaults=Ex.defaults,Gy(Dx.defaults),Dx},Dx.getDefaults=Uy,Dx.defaults=Wy;function Ox(...e){return Ex.use(...e),Dx.defaults=Ex.defaults,Gy(Dx.defaults),Dx}Dx.use=Ox,Dx.walkTokens=function(e,t){return Ex.walkTokens(e,t)},Dx.parseInline=Ex.parseInline,Dx.Parser=Cx,Dx.parser=Cx.parse,Dx.Renderer=xx,Dx.TextRenderer=Sx,Dx.Lexer=bx,Dx.lexer=bx.lex,Dx.Tokenizer=yx,Dx.Hooks=wx,Dx.parse=Dx,Dx.options,Dx.setOptions,Dx.walkTokens,Dx.parseInline,Cx.parse,bx.lex;var kx=d(`<blockquote><!></blockquote>`);function Ax(e,t){var n=kx(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var jx=d(`<br/>`);function Mx(e){var t=jx();y(e,t)}var Nx=d(`<pre><code> </code></pre>`);function Px(e,t){var n=Nx(),r=j(n),i=N(r,!0);L(n),D(()=>{Pe(n,1,x(t.lang)),g(i,t.text)}),y(e,n)}var Fx=d(`<code> </code>`);function Ix(e,t){ie(t,!0);var n=Fx(),r=N(n,!0);D(e=>g(r,e),[()=>t.raw.replace(/`/g,``)]),y(e,n),Le()}var Lx=d(`<del><!></del>`);function Rx(e,t){var n=Lx(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var zx=d(`<em><!></em>`);function Bx(e,t){var n=zx(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}function Vx(e,t){i();var n=ee();D(()=>g(n,t.text)),y(e,n)}var Hx=d(`<h1><!></h1>`),Ux=d(`<h2><!></h2>`),Wx=d(`<h3><!></h3>`),Gx=d(`<h4><!></h4>`),Kx=d(`<h5><!></h5>`),qx=d(`<h6><!></h6>`);function Jx(e,t){ie(t,!0);let n=De(t,`id`,3,void 0),r=A(()=>t.options.headerIds?n()??`${t.options.headerPrefix}${t.slug(t.text)}`:void 0);var i=c(),o=I(i),s=e=>{var n=Hx(),i=j(n);a(i,()=>t.children??w),L(n),D(()=>O(n,`id`,u(r))),y(e,n)},l=e=>{var n=Ux(),i=j(n);a(i,()=>t.children??w),L(n),D(()=>O(n,`id`,u(r))),y(e,n)},d=e=>{var n=Wx(),i=j(n);a(i,()=>t.children??w),L(n),D(()=>O(n,`id`,u(r))),y(e,n)},f=e=>{var n=Gx(),i=j(n);a(i,()=>t.children??w),L(n),D(()=>O(n,`id`,u(r))),y(e,n)},p=e=>{var n=Kx(),i=j(n);a(i,()=>t.children??w),L(n),D(()=>O(n,`id`,u(r))),y(e,n)},m=e=>{var n=qx(),i=j(n);a(i,()=>t.children??w),L(n),D(()=>O(n,`id`,u(r))),y(e,n)},_=e=>{var n=ee();D(()=>g(n,t.raw)),y(e,n)};h(o,e=>{t.depth===1?e(s):t.depth===2?e(l,1):t.depth===3?e(d,2):t.depth===4?e(f,3):t.depth===5?e(p,4):t.depth===6?e(m,5):e(_,-1)}),y(e,i),Le()}var Yx=d(`<hr/>`);function Xx(e){var t=Yx();y(e,t)}var Zx=d(`<img/>`);function Qx(e,t){ie(t,!0);let r=De(t,`href`,3,void 0),i=De(t,`title`,3,void 0),a=De(t,`text`,3,``),o=De(t,`lazy`,3,!0),s=De(t,`fadeIn`,3,!0),c,l=oe(!1),d=oe(!o()),f=oe(!1);pe(()=>{if(!o())return;if(typeof IntersectionObserver>`u`){F(d,!0);return}let e=new IntersectionObserver(t=>{t[0]?.isIntersecting&&(F(d,!0),e.disconnect())},{rootMargin:`50px`});return c&&e.observe(c),()=>{e?.disconnect()}});let p=()=>{u(f)||F(l,!0)},m=()=>{F(f,!0),F(l,!0)};var h=Zx();let g;Ce(h,e=>c=e,()=>c),D(()=>{O(h,`src`,u(d)?r():void 0),O(h,`data-src`,r()),O(h,`title`,i()),O(h,`alt`,a()),O(h,`loading`,o()?`lazy`:`eager`),g=Pe(h,1,`svelte-1ojo7n2`,null,g,{"fade-in":s()&&u(l)&&!u(f),visible:!s()&&u(l)&&!u(f),error:u(f)})}),Re(`load`,h,p),Re(`error`,h,m),n(h),y(e,h),Le()}var $x=d(`<a><!></a>`);function eS(e,t){let n=De(t,`href`,3,void 0),r=De(t,`title`,3,void 0);var i=$x(),o=j(i);a(o,()=>t.children??w),L(i),D(()=>{O(i,`href`,n()),O(i,`title`,r())}),y(e,i)}var tS=d(`<ol><!></ol>`),nS=d(`<ul><!></ul>`);function rS(e,t){let n=De(t,`ordered`,3,!1),r=De(t,`start`,3,1);var i=c(),o=I(i),s=e=>{var n=tS(),i=j(n);a(i,()=>t.children??w),L(n),D(()=>O(n,`start`,r())),y(e,n)},l=e=>{var n=nS(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)};h(o,e=>{n()?e(s):e(l,-1)}),y(e,i)}var iS=d(`<li><!></li>`);function aS(e,t){De(t,`listItemIndex`,3,void 0);var n=iS(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var oS=d(`<p><!></p>`);function sS(e,t){var n=oS(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}function cS(e,t){i();var n=ee();D(()=>g(n,t.text)),y(e,n)}var lS=d(`<strong><!></strong>`);function uS(e,t){var n=lS(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var dS=d(`<table><!></table>`);function fS(e,t){var n=dS(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var pS=d(`<tbody><!></tbody>`);function mS(e,t){var n=pS(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var hS=d(`<th><!></th>`),gS=d(`<td><!></td>`);function _S(e,t){let n=A(()=>t.align?`text-align: ${t.align}`:void 0);var r=c(),i=I(r),o=e=>{var r=hS(),i=j(r);a(i,()=>t.children??w),L(r),D(()=>re(r,u(n))),y(e,r)},s=e=>{var r=gS(),i=j(r);a(i,()=>t.children??w),L(r),D(()=>re(r,u(n))),y(e,r)};h(i,e=>{t.header?e(o):e(s,-1)}),y(e,r)}var vS=d(`<thead><!></thead>`);function yS(e,t){var n=vS(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}var bS=d(`<tr><!></tr>`);function xS(e,t){var n=bS(),r=j(n);a(r,()=>t.children??w),L(n),y(e,n)}function SS(e,t){var n=c(),r=I(n);a(r,()=>t.children??w),y(e,n)}var CS={heading:Jx,paragraph:sS,text:SS,image:Qx,link:eS,em:Bx,escape:Vx,strong:uS,codespan:Ix,del:Rx,table:fS,tablehead:yS,tablebody:mS,tablerow:xS,tablecell:_S,list:rS,orderedlistitem:null,unorderedlistitem:null,listitem:aS,hr:Xx,html:Ry,blockquote:Ax,code:Px,br:Mx,rawtext:cS},wS={async:!1,breaks:!1,gfm:!0,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null,headerIds:!0,headerPrefix:``},TS=new Set([`http:`,`https:`,`mailto:`,`tel:`]),ES=new Set([`href`,`src`,`action`,`formaction`,`cite`,`data`,`poster`]),DS=/^https?:/i,OS=/^\s+/,kS=/^[#/?.]/,AS=(e,t)=>{if(!e)return``;let n=e.replace(OS,``);if(kS.test(n)||!n.includes(`:`)||DS.test(n))return n;try{let e=new URL(n,`http://localhost`);if(TS.has(e.protocol))return n}catch{}return``},jS=(e,t,n)=>{let r={};for(let[i,a]of Object.entries(e)){let e=i.toLowerCase();if(!(e.startsWith(`on`)||e===`srcdoc`)){if(ES.has(e)){let e=n(a,t);e&&(r[i]=e);continue}r[i]=a}}return r},MS=Symbol(`svelte-markdown.renderMetadata`),NS=e=>Array.isArray(e)?e:void 0,PS=e=>typeof e.raw==`string`?e.raw:typeof e.text==`string`?e.text:``,FS=e=>typeof e.sourceLength==`number`?e.sourceLength:PS(e).length,IS=e=>({...e}),LS=e=>({headerIds:e.headerIds,headerPrefix:e.headerPrefix}),RS=(e,t)=>e!==void 0&&e.headerIds===t.headerIds&&e.headerPrefix===t.headerPrefix,zS=()=>{let e=new WeakMap,t=new WeakMap,n=new WeakMap,r=[],i=[],a,o=[],s=(t,n)=>{e.set(t,n)},c=t=>typeof t==`object`&&t?e.get(t):void 0,l=(e,t)=>{let n=c(e);return n===void 0?typeof e==`object`&&e?e:`${t}:${String(e)}`:n},u=e=>n.get(e),d=(e,t=0,r=0,i=0)=>{if(!e)return;let a=i;for(let i=r;i<e.length;i++){let r=e[i],o=FS(r),c=t+a;n.set(r,c),o===0?s(r,`src:${c}:zero:${i}`):s(r,`src:${c}`),g(r,c),a+=o}},f=(e,t=new Set)=>{if(typeof e!=`object`||!e)return t;if(t.add(e),Array.isArray(e)){for(let n of e)f(n,t);return t}let n=e;return f(n.tokens,t),f(n.items,t),f(n.header,t),f(n.rows,t),t},p=(e,t)=>{let n=0,[r,i]=e.size<=t.size?[e,t]:[t,e];for(let e of r)i.has(e)&&n++;return n},m=(e,t,n)=>{let r=-1,i=0;for(let a=0;a<o.length;a++){if(n.has(a))continue;let s=o[a];if(s.type!==e.type)continue;let c=p(t,s.identities);c>i&&(r=a,i=c)}return r===-1?void 0:{index:r,record:o[r]}},h=e=>{if(!e){o=[];return}let t=[],n=new Set;for(let r of e){let e=f(r),i=c(r),a=i===void 0?m(r,e,n):void 0,o=i??a?.record.key??r;a&&n.add(a.index),i===void 0&&s(r,o),t.push({key:o,identities:e,type:r.type})}o=t},g=(e,t)=>{d(NS(e.tokens),t),d(NS(e.items),t),d(NS(e.header),t);let n=NS(e.rows);if(n)for(let e=0;e<n.length;e++){let r=n[e];s(r,`src:${t}:row:${e}`),d(NS(r),t)}},_=(e,t,n,r,i,a=0)=>{if(e)for(let o=a;o<e.length;o++){let a=e[o];a.type===`heading`&&(v(a,t,n),y(a,n,r,i)),_(NS(a.tokens),t,n,r,i),_(NS(a.items),t,n,r,i),_(NS(a.header),t,n,r,i);let s=NS(a.rows);if(s)for(let e of s)_(NS(e),t,n,r,i)}},v=(e,n,r)=>{t.set(e,n.headerIds&&typeof e.text==`string`?`${n.headerPrefix}${r.slug(e.text)}`:void 0)},y=(e,t,n,r)=>{n.push(e);let i=u(e);r.push(i===void 0?void 0:{offset:i,occurrences:IS(t.occurrences)})},b=e=>{let t=0;for(let n of r){let r=u(n);if(r===void 0)return;if(r>=e)break;let a=i[t];if(!a||a.offset!==r)return;t++}return t},ee=(e,t,n,o,s)=>{let c=LS(t);if(!RS(a,c))return!1;let l=b(n);if(l===void 0)return!1;if(o.push(...r.slice(0,l)),s.push(...i.slice(0,l)),l===0)return!0;let u=i[l-1];return u?(e.occurrences=IS(u.occurrences),!0):!1},x=(e,t,n,i,a)=>{for(let o of r){let r=u(o);r===void 0||r>=n||(v(o,t,e),y(o,e,i,a))}},S=(e,t,n)=>{let o=new Vy,s=[],c=[];n?.source!==void 0&&n.startOffset!==void 0&&(ee(o,t,n.startOffset,s,c)||x(o,t,n.startOffset,s,c)),_(e,t,o,s,c,n?.startIndex??0),r=s,i=c,a=LS(t)};return{prepareTokensForRender:(e,t,n)=>{if(!e)return e;let r=e;return n?.source===void 0?h(r):(o=[],d(r,0,n.startIndex??0,n.startOffset??0)),S(r,t,n),e},getPreparedHeadingId:e=>typeof e==`object`&&e?t.get(e):void 0,getStableNodeKey:l,getStableRowKey:(e,t)=>{let n=c(e);return n===void 0?e&&e.length>0?l(e[0],t):e||t:n}}},BS=new Set([`br`,`hr`,`img`,`input`,`link`,`meta`,`area`,`base`,`col`,`embed`,`keygen`,`param`,`source`,`track`,`wbr`]),VS=Object.freeze({}),HS=new Set([`$$slots`,`$$events`,`$$legacy`,`type`,`tokens`,`header`,`rows`,`ordered`,`renderers`,`snippetOverrides`,`htmlSnippetOverrides`,`sanitizeUrl`,`sanitizeAttributes`]),US=d(`<!> <!>`,1);function WS(e,n){ie(n,!0);let r=(e,i=w,a=w)=>{let o=A(i),s=A(()=>i().type===`html`&&!!u(o).tag&&!!n.renderers.html&&u(o).tag in Ry&&n.renderers.html[u(o).tag]===Ry[u(o).tag]&&!m()[u(o).tag]);var l=c(),d=I(l),f=e=>{},b=e=>{var t=ee();D(()=>g(t,i().text??i().raw)),y(e,t)},x=e=>{let n=A(()=>u(o).attributes?v()(u(o).attributes,{type:`html`,tag:u(o).tag},_()):void 0);var i=c(),s=I(i),l=e=>{var t=c(),r=I(t);C(r,()=>u(o).tag,!1,(e,t)=>{M(e,()=>({...u(n)}))}),y(e,t)},d=A(()=>BS.has(u(o).tag)),f=e=>{var i=c(),s=I(i);C(s,()=>u(o).tag,!1,(e,i)=>{M(e,()=>({...u(n)}));var s=c(),l=I(s),d=e=>{var n=c(),i=I(n);t(i,19,()=>u(o).tokens,(e,t)=>S.getStableNodeKey(e,t),(e,t)=>{r(e,()=>u(t),a)}),y(e,n)};h(l,e=>{u(o).tokens&&u(o).tokens.length&&e(d)}),y(i,s)}),y(e,i)};h(s,e=>{u(d)?e(l):e(f,-1)}),y(e,i)},E=e=>{let t=A(()=>i().type===`heading`?{id:S.getPreparedHeadingId(i())??i().id}:VS);WS(e,_e(a,i,()=>u(t),{get renderers(){return n.renderers},get snippetOverrides(){return p()},get htmlSnippetOverrides(){return m()},get sanitizeUrl(){return _()},get sanitizeAttributes(){return v()}}))};h(d,e=>{i().type===`space`&&u(te)?e(f):i().type===`text`&&u(T)&&!i().tokens?e(b,1):u(s)&&u(o).tag?e(x,2):e(E,-1)}),y(e,l)},i=De(n,`type`,3,void 0),s=De(n,`tokens`,3,void 0),l=De(n,`header`,3,void 0),d=De(n,`rows`,3,void 0),f=De(n,`ordered`,3,!1),p=De(n,`snippetOverrides`,19,()=>({})),m=De(n,`htmlSnippetOverrides`,19,()=>({})),_=De(n,`sanitizeUrl`,3,AS),v=De(n,`sanitizeAttributes`,3,jS),b=ae(n,HS),x=Me(MS),S=x?ne(MS):zS();x||Fe(MS,S);let T=A(()=>n.renderers.text===CS.text&&!p().text&&n.renderers.rawtext===CS.rawtext&&!p().rawtext),te=A(()=>!n.renderers.space&&!p().space),E=A(()=>{if((i()===`link`||i()===`image`)&&typeof n.href==`string`){let e=i()===`link`?`a`:`img`,t=_()(n.href,{type:i(),tag:e});return{...b,href:t||void 0}}if(i()===`html`&&n.attributes){let e=n.tag??``;return{...b,attributes:v()(n.attributes,{type:i(),tag:e},_())}}return b});var O=c(),k=I(O),re=e=>{var n=c(),i=I(n),a=e=>{let n=A(()=>{let{text:e,raw:t,tokens:n,...r}=b;return{_text:e,_raw:t,_tokens:n,parserRest:r}});var i=c(),a=I(i);t(a,19,s,(e,t)=>S.getStableNodeKey(e,t),(e,t)=>{r(e,()=>u(t),()=>u(n).parserRest)}),y(e,i)};h(i,e=>{s()&&e(a)}),y(e,n)},oe=e=>{var g=c(),_=I(g),v=e=>{var s=c(),f=I(s),m=e=>{let s=e=>{var i=US(),s=I(i),f=e=>{let i=e=>{let i=e=>{var i=c(),s=I(i);t(s,19,()=>l()??[],(e,t)=>S.getStableNodeKey(e,t),(e,i,s)=>{let l=e=>{var n=c(),a=I(n);t(a,19,()=>u(i).tokens??[],(e,t)=>S.getStableNodeKey(e,t),(e,t)=>{r(e,()=>u(t),()=>({}))}),y(e,n)},d=A(()=>{let{align:e,...t}=u(E);return{_align:e,cellRest:t}});var f=c(),p=I(f),m=e=>{var t=c(),n=I(t);{let e=A(()=>({header:!0,align:u(E).align?.[u(s)]??null,...u(d).cellRest,children:l}));a(n,()=>u(v),()=>u(e))}y(e,t)},g=e=>{var t=c(),r=I(t);{let e=A(()=>u(E).align?.[u(s)]??null);o(r,()=>n.renderers.tablecell,(t,n)=>{n(t,_e({header:!0,get align(){return u(e)}},()=>u(d).cellRest,{children:(e,t)=>{l(e)},$$slots:{default:!0}}))})}y(e,t)};h(p,e=>{u(v)?e(m):e(g,-1)}),y(e,f)}),y(e,i)};var s=c(),d=I(s),f=e=>{var t=c(),n=I(t);{let e=A(()=>({...u(E),children:i}));a(n,()=>u(_),()=>u(e))}y(e,t)},p=e=>{var t=c(),r=I(t);o(r,()=>n.renderers.tablerow,(e,t)=>{t(e,_e(()=>u(E),{children:(e,t)=>{i(e)},$$slots:{default:!0}}))}),y(e,t)};h(d,e=>{u(_)?e(f):e(p,-1)}),y(e,s)};var s=c(),d=I(s),f=e=>{var t=c(),n=I(t);{let e=A(()=>({...u(E),children:i}));a(n,()=>u(m),()=>u(e))}y(e,t)},p=e=>{var t=c(),r=I(t);o(r,()=>n.renderers.tablehead,(e,t)=>{t(e,_e(()=>u(E),{children:(e,t)=>{i(e)},$$slots:{default:!0}}))}),y(e,t)};h(d,e=>{u(m)?e(f):e(p,-1)}),y(e,s)};h(s,e=>{n.renderers.tablehead&&e(f)});var p=P(s,2),b=e=>{let i=e=>{var i=c(),s=I(i);t(s,19,()=>d()??[],(e,t)=>S.getStableRowKey(e,t),(e,i)=>{let s=e=>{var s=c(),l=I(s);t(l,19,()=>u(i)??[],(e,t)=>S.getStableNodeKey(e,t),(e,i,s)=>{let l=e=>{var n=c(),a=I(n);t(a,19,()=>u(i).tokens??[],(e,t)=>S.getStableNodeKey(e,t),(e,t)=>{r(e,()=>u(t),()=>u(d).cellRest)}),y(e,n)},d=A(()=>{let{align:e,...t}=u(E);return{_align:e,cellRest:t}});var f=c(),p=I(f),m=e=>{var t=c(),n=I(t);{let e=A(()=>({header:!1,align:u(E).align?.[u(s)]??null,...u(d).cellRest,children:l}));a(n,()=>u(v),()=>u(e))}y(e,t)},g=e=>{var t=c(),r=I(t);{let e=A(()=>u(E).align?.[u(s)]??null);o(r,()=>n.renderers.tablecell,(t,n)=>{n(t,_e(()=>u(d).cellRest,{header:!1,get align(){return u(e)},children:(e,t)=>{l(e)},$$slots:{default:!0}}))})}y(e,t)};h(p,e=>{u(v)?e(m):e(g,-1)}),y(e,f)}),y(e,s)};var l=c(),d=I(l),f=e=>{var t=c(),n=I(t);{let e=A(()=>({...u(E),children:s}));a(n,()=>u(_),()=>u(e))}y(e,t)},p=e=>{var t=c(),r=I(t);o(r,()=>n.renderers.tablerow,(e,t)=>{t(e,_e(()=>u(E),{children:(e,t)=>{s(e)},$$slots:{default:!0}}))}),y(e,t)};h(d,e=>{u(_)?e(f):e(p,-1)}),y(e,l)}),y(e,i)};var s=c(),l=I(s),f=e=>{var t=c(),n=I(t);{let e=A(()=>({...u(E),children:i}));a(n,()=>u(g),()=>u(e))}y(e,t)},p=e=>{var t=c(),r=I(t);o(r,()=>n.renderers.tablebody,(e,t)=>{t(e,_e(()=>u(E),{children:(e,t)=>{i(e)},$$slots:{default:!0}}))}),y(e,t)};h(l,e=>{u(g)?e(f):e(p,-1)}),y(e,s)};h(p,e=>{n.renderers.tablebody&&e(b)}),y(e,i)},f=A(()=>p()[i()]),m=A(()=>p().tablehead),g=A(()=>p().tablebody),_=A(()=>p().tablerow),v=A(()=>p().tablecell);var b=c(),ee=I(b),x=e=>{var t=c(),n=I(t);{let e=A(()=>({...u(E),children:s}));a(n,()=>u(f),()=>u(e))}y(e,t)},C=e=>{var t=c(),r=I(t);o(r,()=>n.renderers.table,(e,t)=>{t(e,_e(()=>u(E),{children:(e,t)=>{s(e)},$$slots:{default:!0}}))}),y(e,t)};h(ee,e=>{u(f)?e(x):e(C,-1)}),y(e,b)};h(f,e=>{n.renderers.table&&n.renderers.tablerow&&n.renderers.tablecell&&e(m)}),y(e,s)},b=e=>{let i=A(()=>p().list);var s=c(),l=I(s),d=e=>{let s=e=>{let i=A(()=>{let{items:e,...t}=u(E);return{_items:e,parserRest:t}}),s=A(()=>u(i)._items??[]);var l=c(),d=I(l);t(d,19,()=>u(s),(e,t)=>S.getStableNodeKey(e,t),(e,s)=>{let l=e=>{var n=c(),a=I(n);t(a,19,()=>u(s).tokens??[],(e,t)=>S.getStableNodeKey(e,t),(e,t)=>{r(e,()=>u(t),()=>u(i).parserRest)}),y(e,n)},d=A(()=>n.renderers.orderedlistitem||n.renderers.listitem),f=A(()=>p().orderedlistitem||p().listitem);var m=c(),g=I(m),_=e=>{var t=c(),n=I(t);{let e=A(()=>({...u(s),children:l}));a(n,()=>u(f),()=>u(e))}y(e,t)},v=e=>{var t=c(),n=I(t);o(n,()=>u(d),(e,t)=>{t(e,_e(()=>u(s),{children:(e,t)=>{l(e)},$$slots:{default:!0}}))}),y(e,t)};h(g,e=>{u(f)?e(_):u(d)&&e(v,1)}),y(e,m)}),y(e,l)};var l=c(),d=I(l),m=e=>{var t=c(),n=I(t);{let e=A(()=>({ordered:f(),...u(E),children:s}));a(n,()=>u(i),()=>u(e))}y(e,t)},g=e=>{var t=c(),r=I(t);o(r,()=>n.renderers.list,(e,t)=>{t(e,_e({get ordered(){return f()}},()=>u(E),{children:(e,t)=>{s(e)},$$slots:{default:!0}}))}),y(e,t)};h(d,e=>{u(i)?e(m):e(g,-1)}),y(e,l)},m=e=>{let s=e=>{let i=A(()=>{let{items:e,...t}=u(E);return{_items:e,parserRest:t}}),s=A(()=>u(i)._items??[]);var l=c(),d=I(l);t(d,19,()=>u(s),(e,t)=>S.getStableNodeKey(e,t),(e,s)=>{let l=e=>{var n=c(),a=I(n);t(a,19,()=>u(s).tokens??[],(e,t)=>S.getStableNodeKey(e,t),(e,t)=>{r(e,()=>u(t),()=>u(i).parserRest)}),y(e,n)},d=A(()=>n.renderers.unorderedlistitem||n.renderers.listitem),f=A(()=>p().unorderedlistitem||p().listitem);var m=c(),g=I(m),_=e=>{var t=c(),n=I(t);{let e=A(()=>({...u(s),children:l}));a(n,()=>u(f),()=>u(e))}y(e,t)},v=e=>{var t=c(),n=I(t);o(n,()=>u(d),(e,t)=>{t(e,_e(()=>u(s),{children:(e,t)=>{l(e)},$$slots:{default:!0}}))}),y(e,t)};h(g,e=>{u(f)?e(_):u(d)&&e(v,1)}),y(e,m)}),y(e,l)};var l=c(),d=I(l),m=e=>{var t=c(),n=I(t);{let e=A(()=>({ordered:f(),...u(E),children:s}));a(n,()=>u(i),()=>u(e))}y(e,t)},g=e=>{var t=c(),r=I(t);o(r,()=>n.renderers.list,(e,t)=>{t(e,_e({get ordered(){return f()}},()=>u(E),{children:(e,t)=>{s(e)},$$slots:{default:!0}}))}),y(e,t)};h(d,e=>{u(i)?e(m):e(g,-1)}),y(e,l)};h(l,e=>{f()?e(d):e(m,-1)}),y(e,s)},ee=e=>{let i=A(()=>{let{tag:e,...t}=u(E);return{tag:e,localRest:t}}),l=A(()=>u(E).tag),d=A(()=>m()[u(l)]),f=A(()=>Object.fromEntries(Object.entries(u(i).localRest).filter(([e])=>e!==`attributes`)));var p=c(),g=I(p),_=e=>{let i=e=>{var i=c(),a=I(i),l=e=>{var n=c(),i=I(n);t(i,19,s,(e,t)=>S.getStableNodeKey(e,t),(e,t)=>{r(e,()=>u(t),()=>u(f))}),y(e,n)},d=e=>{var t=c(),r=I(t);o(r,()=>n.renderers.rawtext,(e,t)=>{t(e,_e({get text(){return u(E).raw}},()=>u(E)))}),y(e,t)};h(a,e=>{s()&&s().length?e(l):e(d,-1)}),y(e,i)};var l=c(),p=I(l);a(p,()=>u(d),()=>({attributes:u(E).attributes,children:i})),y(e,l)},v=e=>{let i=A(()=>n.renderers.html[u(l)]);var a=c(),d=I(a),p=e=>{var a=c(),l=I(a);o(l,()=>u(i),(e,i)=>{i(e,_e(()=>u(E),{children:(e,i)=>{var a=c(),l=I(a),d=e=>{var n=c(),i=I(n);t(i,19,s,(e,t)=>S.getStableNodeKey(e,t),(e,t)=>{r(e,()=>u(t),()=>u(f))}),y(e,n)},p=e=>{var t=c(),r=I(t);o(r,()=>n.renderers.rawtext,(e,t)=>{t(e,_e({get text(){return u(E).raw}},()=>u(E)))}),y(e,t)};h(l,e=>{s()&&s().length?e(d):e(p,-1)}),y(e,a)},$$slots:{default:!0}}))}),y(e,a)};h(d,e=>{u(i)&&e(p)}),y(e,a)},b=e=>{let n=A(()=>Object.fromEntries(Object.entries(u(i).localRest).filter(([e])=>e!==`tokens`))),a=A(()=>s()??[]);var o=c(),l=I(o);t(l,19,()=>u(a),(e,t)=>S.getStableNodeKey(e,t),(e,t)=>{r(e,()=>u(t),()=>u(n))}),y(e,o)};h(g,e=>{u(d)?e(_):n.renderers.html&&u(l)in n.renderers.html?e(v,1):e(b,-1)}),y(e,p)},x=e=>{let l=e=>{var i=c(),a=I(i),l=e=>{let n=A(()=>{let{text:e,raw:t,...n}=u(E);return{_text:e,_raw:t,parserRest:n}});var i=c(),a=I(i);t(a,19,s,(e,t)=>S.getStableNodeKey(e,t),(e,t)=>{r(e,()=>u(t),()=>u(n).parserRest)}),y(e,i)},d=e=>{var t=c(),r=I(t);o(r,()=>n.renderers.rawtext,(e,t)=>{t(e,_e({get text(){return u(E).raw}},()=>u(E)))}),y(e,t)};h(a,e=>{s()?e(l):e(d,-1)}),y(e,i)},d=A(()=>n.renderers[i()]),f=A(()=>p()[i()]);var m=c(),g=I(m),_=e=>{var t=c(),n=I(t);{let e=A(()=>({...u(E),children:l}));a(n,()=>u(f),()=>u(e))}y(e,t)},v=e=>{var t=c(),n=I(t);o(n,()=>u(d),(e,t)=>{t(e,_e(()=>u(E),{children:(e,t)=>{l(e)},$$slots:{default:!0}}))}),y(e,t)};h(g,e=>{u(f)?e(_):u(d)&&e(v,1)}),y(e,m)};h(_,e=>{i()===`table`?e(v):i()===`list`&&n.renderers.list?e(b,1):i()===`html`?e(ee,2):e(x,-1)}),y(e,g)};h(k,e=>{i()?(i()in n.renderers||i()in p())&&e(oe,1):e(re)}),y(e,O),Le()}var GS=Object.keys(CS).filter(e=>e!==`html`),KS=Object.keys(Ry),qS=e=>({...CS,...e,html:e.html?{...CS.html,...e.html}:CS.html}),JS=e=>[...GS,...e],YS=(e,t)=>Object.fromEntries(t.filter(t=>t in e&&e[t]!=null).map(t=>[t,e[t]])),XS=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>e.startsWith(`html_`)&&t!=null).map(([e,t])=>[e.slice(5),t])),ZS=(e,t)=>{let n=new Set([...t,...Object.keys(e).filter(e=>e.startsWith(`html_`))]);return Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e)))},QS=0,$S=new WeakMap,eC=e=>{let t=$S.get(e);return t||(t=++QS,$S.set(e,t)),t},tC=e=>typeof e==`function`?eC(e):null,nC=e=>e.flatMap(e=>e.extensions?.map(e=>e.name)??[]),rC=e=>e.length>0?new Tx(...e).defaults:{},iC=e=>e.some(e=>e.async===!0),aC=e=>e.map(e=>({extension:eC(e),async:e.async??!1,extensions:e.extensions?.map(e=>{let t=e;return{token:eC(e),name:e.name,level:t.level??null,childTokens:t.childTokens??null,start:tC(t.start),tokenizer:tC(t.tokenizer),renderer:tC(t.renderer)}})??null,hooks:e.hooks?eC(e.hooks):null,renderer:e.renderer?eC(e.renderer):null,tokenizer:e.tokenizer?eC(e.tokenizer):null,walkTokens:tC(e.walkTokens)})),oC=(e,t)=>{let n=rC(t),r=t.length>0?aC(t):void 0;return{...wS,...n,...e,...r?{_svelteMarkdownExtensionCacheSignature:r}:{}}},sC=class e extends Error{constructor(t){super(t),this.name=`CacheConfigError`,Object.setPrototypeOf(this,e.prototype)}},cC=Symbol(`CACHED_UNDEFINED`),lC=Symbol(`CACHED_NULL`),uC=class{constructor(e={}){this.cache=new Map,this.inFlight=new Map,this.totalWeight=0,this.stats={hits:0,misses:0,evictions:0,expirations:0},this.expirationQueue=[],this.compactionScheduled=!1;let t=e.maxSize??100,n=e.maxWeight??0,r=e.ttl??3e5;if(t<0)throw new sC(`maxSize must be a non-negative number`);if(r<0)throw new sC(`ttl must be a non-negative number`);if(n<0||Number.isNaN(n))throw new sC(`maxWeight must be a non-negative number`);if(n>0&&!e.sizeCalculation)throw new sC(`sizeCalculation is required when maxWeight is greater than 0`);this.maxSize=t,this.maxWeight=n,this.sizeCalculation=e.sizeCalculation,this.ttl=r,this.hooks=e.hooks??{}}callHook(e,t){if(e)try{e(t)}catch{}}unwrapValue(e){if(e!==cC)return e===lC?null:e}removeEntry(e){let t=this.cache.get(e);if(t&&this.cache.delete(e))return this.totalWeight-=t.weight,this.cache.size===0&&(this.totalWeight=0),t}evictEntry(e){let t=this.removeEntry(e);return t?(this.stats.evictions++,this.callHook(this.hooks.onEvict,{key:e,value:this.unwrapValue(t.value)}),!0):!1}exceedsCapacity(e,t){let n=this.cache.size+ +(t===void 0),r=this.totalWeight-(t??0)+e;return this.maxSize>0&&n>this.maxSize||this.maxWeight>0&&r>this.maxWeight}read(e,t,n){let r=this.cache.get(e);if(!r)return n&&(this.stats.misses++,this.callHook(this.hooks.onMiss,{key:e,reason:`not_found`})),{found:!1,reason:`not_found`};if(this.ttl>0&&Date.now()-r.timestamp>this.ttl){let i=this.unwrapValue(r.value);return this.removeEntry(e),this.stats.expirations++,this.callHook(this.hooks.onExpire,{key:e,value:i,source:t}),n&&(this.stats.misses++,this.callHook(this.hooks.onMiss,{key:e,reason:`expired`})),{found:!1,reason:`expired`}}n&&(this.cache.delete(e),this.cache.set(e,r),this.stats.hits++);let i=this.unwrapValue(r.value);return n&&this.callHook(this.hooks.onHit,{key:e,value:i}),{found:!0,value:i}}get(e){let t=this.read(e,`get`,!0);return t.found?t.value:void 0}async getOrSet(e,t){let n=this.inFlight.get(e);if(n)return n;let r=this.read(e,`get`,!0);if(r.found)return r.value;let i=(async()=>{try{let n=await t();return this.set(e,n),n}finally{this.inFlight.delete(e)}})();return this.inFlight.set(e,i),i}has(e){return this.read(e,`has`,!1).found}set(e,t){let n=0;if(this.maxWeight>0&&(n=this.sizeCalculation(t,e),!Number.isFinite(n)||n<0))throw RangeError(`sizeCalculation must return a finite, non-negative number`);let r=this.cache.get(e);if(this.maxWeight>0&&n>this.maxWeight){r&&this.evictEntry(e);return}this.exceedsCapacity(n,r?.weight)&&this.prune();let i=this.cache.get(e);for(;this.exceedsCapacity(n,i?.weight);){let t;for(let n of this.cache.keys())if(n!==e){t=n;break}if(t===void 0||!this.evictEntry(t))break;i=this.cache.get(e)}let a=i!==void 0;a&&this.removeEntry(e);let o;o=t===void 0?cC:t===null?lC:t;let s=Date.now();if(this.cache.set(e,{value:o,timestamp:s,weight:n}),this.totalWeight+=n,this.ttl>0){let t=this.expirationQueue,n=t[t.length-1];n?.key===e?n.timestamp=s:t.push({key:e,timestamp:s})}this.callHook(this.hooks.onSet,{key:e,value:t,isUpdate:a})}delete(e){let t=this.removeEntry(e);if(t){let n=this.unwrapValue(t.value);this.callHook(this.hooks.onDelete,{key:e,value:n,source:`delete`})}return t!==void 0}async deleteAsync(e){let t=this.removeEntry(e);if(t){let n=this.unwrapValue(t.value);this.callHook(this.hooks.onDelete,{key:e,value:n,source:`deleteAsync`})}return Promise.resolve(t!==void 0)}clear(){for(let[e,t]of this.cache.entries()){let n=this.unwrapValue(t.value);this.removeEntry(e),this.callHook(this.hooks.onDelete,{key:e,value:n,source:`clear`})}this.expirationQueue=[],this.compactionScheduled=!1}deleteByPrefix(e){let t=0;for(let[n,r]of this.cache.entries())if(n.startsWith(e)){let e=this.unwrapValue(r.value);this.removeEntry(n),this.callHook(this.hooks.onDelete,{key:n,value:e,source:`deleteByPrefix`}),t++}return t}deleteByMagicString(e){let t=0,n=e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`).replace(/\*/g,`.*`),r=RegExp(`^${n}$`);for(let[e,n]of this.cache.entries())if(r.test(e)){let r=this.unwrapValue(n.value);this.removeEntry(e),this.callHook(this.hooks.onDelete,{key:e,value:r,source:`deleteByMagicString`}),t++}return t}size(){return this.prune(),this.cache.size}keys(){return this.prune(),Array.from(this.cache.keys())}values(){this.prune();let e=[];for(let t of this.cache.values())t.value===cC?e.push(void 0):t.value===lC?e.push(null):e.push(t.value);return e}entries(){this.prune();let e=[];for(let[t,n]of this.cache.entries()){let r;r=n.value===cC?void 0:n.value===lC?null:n.value,e.push([t,r])}return e}getStats(){return this.prune(),{hits:this.stats.hits,misses:this.stats.misses,evictions:this.stats.evictions,expirations:this.stats.expirations,size:this.cache.size,weight:this.totalWeight}}resetStats(){this.stats.hits=0,this.stats.misses=0,this.stats.evictions=0,this.stats.expirations=0}prune(){if(this.ttl<=0)return 0;let e=0,t=Date.now(),n=this.expirationQueue,r=0;for(;r<n.length&&t-n[r].timestamp>this.ttl;){let{key:t,timestamp:i}=n[r];r++;let a=this.cache.get(t);if(a&&a.timestamp===i){let n=this.unwrapValue(a.value);this.removeEntry(t),this.stats.expirations++,this.callHook(this.hooks.onExpire,{key:t,value:n,source:`prune`}),e++}}return r>0&&n.splice(0,r),!this.compactionScheduled&&this.expirationQueue.length>2*this.cache.size&&(this.compactionScheduled=!0,queueMicrotask(()=>{this.compactionScheduled=!1,this.expirationQueue=this.expirationQueue.filter(e=>{let t=this.cache.get(e.key);return t!==void 0&&t.timestamp===e.timestamp})})),e}},dC=e=>{let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return(t>>>0).toString(36)},fC=new WeakMap,pC=(e,t)=>{let n=dC(e),r=fC.get(t);if(!r){let e=new WeakSet;r=dC(JSON.stringify(t,(t,n)=>{if(typeof n==`function`)return n.name||n.toString();if(n&&typeof n==`object`){if(e.has(n))return`[Circular]`;e.add(n)}return n})),fC.set(t,r)}return`${n}:${r}`},mC=new class extends uC{constructor(e){super({maxSize:50,ttl:3e5,...e})}getTokens(e,t){let n=pC(e,t),r=this.get(n);if(r!==void 0&&r.source===e)return r.tokens}setTokens(e,t,n){let r=pC(e,t);this.set(r,{source:e,tokens:n})}hasTokens(e,t){return this.getTokens(e,t)!==void 0}deleteTokens(e,t){let n=pC(e,t);return this.delete(n)}clearAllTokens(){this.clear()}},hC=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function gC(e){return e===0||e>=55296&&e<=57343||e>1114111}function _C(e){return gC(e)?65533:e>=128&&e<=159&&hC[e-128]||e}function vC(e){return gC(e)?65533:e}var yC=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})();function bC(e,t,n,r,i,a){let o=e.length,s=a*90,c=0,l=()=>{let t=yC[e.charCodeAt(c++)];return t<a?t:t*91-s+yC[e.charCodeAt(c++)]},u=n-r,d=n+i,f=new Int32Array(d);f.fill(-1,r,a),f.fill(-1,a+u,d);let p=new Int32Array(d),m=new Int32Array(d);function h(t,n){let r=0,i=n,a=n+t;for(;i<a;){let t=yC[e.charCodeAt(c++)];if(t<89)r+=t,f[i++]=r;else if(t===89){let t=yC[e.charCodeAt(c++)]+2;for(;t--;)f[i++]=++r}else{let t=yC[e.charCodeAt(c++)];r+=89+(t<90?t*91+yC[e.charCodeAt(c++)]:yC[e.charCodeAt(c++)]*8281+yC[e.charCodeAt(c++)]*91+yC[e.charCodeAt(c++)]),f[i++]=r}}}h(r,0),h(u,a);let g=new Int32Array(i*2),_=0,v=0;function y(e,t){for(let n=0;n<e;n++){let e=t+n,r=l(),i=l();g[v*2]=r,g[v*2+1]=i,v+=1,p[e]=_;let a=(f[r]<0?m[r]:1)+(f[i]<0?m[i]:1);m[e]=a,_+=a}}y(i-a+r,a+u),y(a-r,r);let b=new Uint16Array(_),ee=0;for(let e=0;e<v;e++)for(let t=0;t<2;t++){let n=g[e*2+t],r=f[n];if(r<0){let e=p[n],t=e+m[n];for(;e<t;)b[ee++]=b[e++]}else b[ee++]=r}let x=new Uint16Array(t),S=0;for(;c<o;){let t=yC[e.charCodeAt(c++)];t>=a&&(t=t*91-s+yC[e.charCodeAt(c++)]);let n=f[t];if(n<0){let e=p[t],n=e+m[t];for(;e<n;)x[S++]=b[e++]}else x[S++]=n}return x}var xC=bC("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}(,%}%&#+&}#&}I%#%}%)#(},'%#*}4%%#%}(''}#/##(##),%-##%%)#&}(.}&%#&}%%}*&#%},&&}&%}#%*'#%})%}D&}&%}-&}6&#&}-,%}#%})-(~+`~,=?~I9'9%~!,#%})%})%}@%}?%}(~!?~#<~#pP~#BG~#=1#%K+~#?#~%;)~#A~#mF1~#A'~'X%'~#lR~#N~'N~#r~#m#-~#i'?%#'%~#B%##%,%#~#_%#0%~#]732~,w~2+#:&#%&'0%&>%}#>##F+)#%&&#(+_}4&}-%}(&}@&}O7Fdf0@+/v4}&WU##&/0#&'('B#%}.%}'+#%}#%%&#&%#%##+#&#)#6#'#.},%}c%},%#%##%&#&%#&~#>'*-.%##%##%}#%%}%'~#)D1}#%*&~#_%%'(~#S2%'.}#~#=##*'*-%}&'%'##&&~'E%.#&~#M4}%%##&'%#~#O1##%&#'+~#<B%##%%'%+~#;#@%}#&%#&&%#(~#H1}'%'##&&~#?A}&'~#D#%32}'&&&&~#[}'(#%}'~#;C})&}%%#%~#=&%,3}%'(#%%~#^'#&&)#%'~#Y%-~#d-%'~#^%%&#&&&}#~#b~2t*&'~&(~&@~0%~e~3}%*''0})&}+~!9##-}#%-hD*)1fC#%/&/fB#40~!+#)*4~!+~!K'&:~!/*7~!.#~!H~!L':~%x&~!H#~!*~%1~!I#~!+A~#p'~!F~~#-#~,,(~.Z~!V~%;'B'mq-W~!N~%I%#&&#&}#%},%%}'%}+X#%}#&}(%}'%}<%}#%}%%'}'%}:~![)9@~%>~#UA%-%##&~!C%~!-.9:~!1~!-^2/:a~!y,D*J#-5)/4~%23,~#G~!L1~!0X3`~!2+~!!0-~&E~!W~!o,>Y&]~%cZx_&~#O*9#A#'#+I'%#)~!0B*-5A+-((F&*M#)(-7-5+'-3a5Vi~!Y~!?+[)%3),ERHm~!+:D,VG.+)?fB%%*(%)'(#&80%1'8`K8?`+'Z#&O&'H5#*9)A%%5&3))0%39+.*7#()&&*=4@**L)<'_&*+..;(#*+)./&0#3)%')-8(4ixD(&.}%,('aI:,)%,k2231T)I'#/-W7,/'Q#.'Y24+h')37</31&83##&0#),H(?'&?/1##%#&&#%''-%&&&#(&''&#.-'%#%%(,')*'&#&#'##%(%(#%('#&##%%%%('%#%#%%#%#&%##h>w+v<ayvyvcg.uuhKr}g/v|g>u9i[~>g5uI~=RvdwEg;v/g;uk!!TTSx]@RT!U!#!@VBRUU!'UTe-d0c`e&gSdicedFcrdTaqb.kYcAohdYd@a3e+d}dMdtd.aJ#bqcK`dle/e.e'dwdPdodddjbEb}ogd^ofdpduc6j?l%d{drdqc)d7bacOdQ%T#Y)X.sR[yH>6Vyv3[xwLu>vo'!*.[yBacahoj>6Rew3[xqdZa#!a&#^(X-[yG>6Vyu3[xvg3sEr|g.u/Ri9db0T#^(Xa)!-[y;>6Vylg4wKs{JwNZt3@3r=c4Z([xlg;wKt!cpq's@v7A'*a(a+!-a#[y<3Dt?3Dt'>6Vym3[xmg9rxsNJwLZt4~?r?db1T#`-!(Xa,!0[yS>6Vz%NuQs.g4wKtnJwNZtS@3r>c4Z([y%g;wKtrdga8!a(!#&T*Y-Xa#!a0<or[yc3Dtq>6Vz43[y3JwNZtf@3s!Ju}!%Dti:pm3c_%X#tjB5pkd6q!r]u?voC'*-a.a2!0a&a+[yI3DtI3Ds~3DtH>6Vyw3[xx;:s#~<5pKJwNZtE@3r~d`a)!a2T#a.(!+U.X1[yT3Dt`3Dtv>6Vz&3[y&g9rxwzcxstPu.<rAJwLZtT~?r@dZa%!a.&^*Za(/Reu[ya>6Vz23[y1g3sEr}wkg{NuQRg{ci(U#5@b`~,cg#U(2WnH5wugcRh7dX#T(Y,a'Ta!!a,[yZ<]mj>6Vz,3[y+Pv#5ReZKu+=,%!H}7ABwkaS?Rh:BcW(X#<]mrj:ubv/ARekdg%!(!a.*Ta(Y.X1!#sP>Rl*Dt6[y>>6Vyo3Wf*jOvuumvuRgRJuq*!:9<B@bX~3jVv&v@s@5Re[d/rQt{uAvo&a&a*)a2!,0Wf!3Dt0=Bs'>6Re}3[xy~<5s%JwJZt1~Gs)c;&!#2sJkNuXvzq7rxu,Re8dka4!a8(aEZ+a@Y.X1Xa)[yd=Bs(3DtP>6Vz53[y4cX#X&Re:avRe9~<5s&JwJZtQ~Gs*i^rzvdRg+Jv{%!2sbB@bX}kdga,!Za?&^*T1/!a'Dt+[y6>6Vyf3Wf%g/u;s4hGu6?Rh-JvZ,!c%#&RoX54Rivj7uyvf8RgTKvZB%*!2sGh<vu5Rgq<=C::9bb~#dZ#T&Ta6Y.X*Dt>[y93Wf)coZ(T,6VyifluvRgC@95@B@bX~/hFu34cC#T,k/unq8w8Q5RkUklwQuzunq8w8Q5Rk8d/rJu?v8w9)-&!a0a;a&aIWejg3sEr/h1s<DtDJvyZqY5aws3Jvy!&Wei~Hr1:au5@Bag>23E~5c:Z&bX};kKv?w&unuVu5Rjc;>bs)#~@:Rh.=ay<a]C;b`}Vd6s/t{uAvoaxa()!a,a7%-a#a2Dt,[yF2Wo[>6Vyt3[xuNuPRi&NuPwpi#RoWh?vf8Ri%Jv]!%Ri:KvxD!.'2WeAjZu`q9rxu,Re7woeAg-unLq(qA_/*2Wg_g3u5q^9:4E}/jTrxrzv=Wkkd~0UX#^^Xa-a1a5T&a=U1a'*aEa]!a*aPaA-adok[y54Rn>;:p3~Dp5g9rpsFNvZqjg3uJp4~<5p0Pw;5qlJwNZt*@3p1Pw:5p/Ou!5p2JvG'!6Vye=<qnJvh_[xhg3v,Rh3kOwOw-sDuev/Re^dha[a%!%!a+#Ta7)-5TaCaO!aka!a)sf[yb2>Rl!9ARiq5E}Qg=ucRkBE|oJrJ_@Wk~@Wk{JrJ_@Wk|@WkyJrJ_@Wk}@WkzJvO_[y2g-vMRmiKuYC!)&>Ri;>Ri<@3RkNc](X#@9Rk=g5vuRmhKvDB!+'=]meg3u4Rmgd)#Y'Vz3CARmfd`a+!%T'!+#Ta1Ta6TaM-sTDt9[yA9sYd'%Y#s[[xpj:ueunaXRgEjRq,v-vuqdd2'`#6Rev<32@5>:2<E}5xIo9a*X#Y(;5RePJvD_g>vyRgNj8w)v8<wggs:RgXiZt|vjx,hSq3ah!-(~@:Ro/Ou!5RhWj^v(pyw8unRhUdx-UY#^Ua.a3a70!)%UX1TaDa)'omRiRRhE[y:3Dsz=Br,>6Vyj3[xkg6ruwjcqsrPw;5r*Ku]D'Zt-@3r(~?r.i[vwv]dU1a--U#`a4(g/vsRhPOu!5RhLj:rmu9Wo!~@:wdh@g/vsRiTjXuvvNr}:RhBj^v(pyw8unRn]dz1UYa'a+^Y(!aETZalaRY.Ta?a4[yDJw1!#qLsW>6Vyrfzq-pLflpwRe|Js>%!Dt@3Dt&Jvy_[xs~HrnjMuwpsw'RecKu+D#'!t<~Grl~?rjg5u-x,gwp{ah!-(~@:Rg~Ou!5Rh'jXuvvNr}:Rh#cW#X/c;&!#2sLi[v7u7RgpJv)(!iLrxu,Re6j7v@s@5Se[e7d`aW!Za(a`T.a#!a3!&aDa-!9)Dt_=6s+3[x~~DR|h~DS6avhGun5RkZj3w)v-]mkKunB!&*]kb97R|i<ARk<c:Z(6Vy}Juh'!wziMRoS:F|vkLuauJv5vtvQRh1d='T+Y#VyO~DR|jcF#T'7R|g97R|kJv3'!ay<Rj,Jvh&!:ReXcsa6*a+#a#_aIRf9aLRf?c,Z&Rf5Rf7c.Z&Rf;Rf>cQ#%T'p-Rf8Rf=ct#%'(*!,p,Rf4p+Rf6Rf:Rf<d~'Ua%U*^UYa(!a,-!#a4YaTalaEX0a8a<Weo3Dt/3Dsx=Br93Wen~Dr;~<5p<JwNZt2@3p=Pw:5p;Ou!5r3c7&!#:p>3Ds}KvGB)_6Vyk2sM=<r7x'eovA(!hFu1ARf}cV#X&@r5j6rvwQa^Rf3c=Za'wkghJv__g;unRggA53B9=b^}%j6uduo5Jq;!(hIv%2Re`Ou4ARe_e%a#^^^Xa&!a*a2!&a6YaP!*ad!#a:aE/5Rn?[y@>6Vyp;:pE~DrY~<5pBJwNZt8@3pCh=rt3rWPw:5pAJup_[xoNuPpF9c!#'45pD5ARn)d8#X'X*3@rU72s]h>v<<sSjJpqvewOJq/(!hNw'5ReBk0s2u3w/w'5ReE5@Jq.!a+JQ!&WeU23d(#Y&RjG5]jBk!u7w&u0udARjEe#+^^^Ub#!a2/a`Z(agT1!a-a;|@TaG!aS[yV=Re~fow'RguNuPRe?bz#'>RoUWeL>:Cbb|?JwPZtVg6ruRmzJvD'!6Vz(g/vmRh~Jvy_[y(g9voRgyx*cy(#2>Ri2B9b]~9kIw9u7rluJu3Rg]dI#a%UY'@=p%CAx.gQZ&RhwwygtRm{x5g_Z'+ABqR9Woa=Bp&dV#^*Xa'!&@o{g4v]Rk;Jv{!%Rk[wkkiA5RkiwwfUB=x,fUuqC&*!>RfTg8v0RfV~ARfSd;rJsAuAv9wR'ae+/aO!a@aza/a#[yQ@Wg!2Wemg3sEr0JvB_g>uvReWg2v+Re=KupB_+[y!2AbY~-~Hr2AJwD!(h<~El>h<~El?Kun@+_:9b`}Kg-v/Ri3g;vtwyk_9]k_d=&T#*U.6qh@Ab`|K9:H|CJv[!&3Dtex'fDwC%!Rf[9WlMd[(^X,!a%Z06Vz!@WgBg=v~Rgvg,QRe@awd,#Y+jTv|Q~EfWj]uNr|~FRfXdy#Y&^Ua%!aO.!(a)Ua;=!a@aKap!a-,a!Ta]a[rSa]p?[y82sK=Bq~;:p:~<5p8Pw:5p7d'#Y'Wf(;RnRi[u4w&RgJJvG'!6Vyh=<r#ijuuv/sIKuYD'ZtG@3p9~Gr&d2#`(g<vtRgFj`u5w&rqpxRf2CJuY!+:wfnTOu!5Rg}jNs1ucv&RfwJvA!&3@q|BDcC#T,k/unq8w8Q5RkTklwQuzunq8w8Q5Rk9dga#!a'!a=#a0!:+Tb*b@aO.a4!aba8aFJv^}?!VyR~Dr<g;u%Rn.~<5p[x'e`wNZtR@3p]Pw:5pZhNvjBp.woe_g5u-r4JwF!%DtO3:ooc7&!#:p^3DtpLuGw(!+%)Dtk6Vz#2sd=<r8d'#Y([y#<x3gJt`w@!)%}MRiowzikRij=]ilxAf3,U(#B2Rf#g0v-Rm[ck{`U#]giKv3>)!&6Ri154s,KuGB_%@r68r:dJ|t`#X(9<E|u2@H|rx3gJu?w'!+'1Nu7Reg4=H~+9<wxgY95Rm]xLggZ-`(X}U2:Ri4h<uOawRmsJv__5@bb{jbV~3dka#a'a]!,#a+U=a>b6a3b%!/aKa/)!arwve^VyJ;:pR~DpTg3uJpS~<5pOPw;5qmPw:5pNOu!5pQJvG'!6Vyx=<qoJvA!{~Jup!%@qk7Rn/KvyD!}''[xz;>wkh'?Rh,x8gyt`w5D!&),(SgyccRgztJ@3pPB5p#d'(Y#<]mmifubw&RgoJvE&!82s^JvF&!8Rf,ADb]~;x=h'rNu]vK!,%'*0RnORh)4Rh*AqQg-vaRnNg;wHwkh'ba~4cE#Ta*x3gctyw@'!+%RnFRnD<4Rn@hFvK5RnCxWg[#`&a0Ua()`1Rm75Rg[c]%X#qi8Rg^NvdRj>BwzgZauwji7Rm6A4wgg]d1#&(*,.0a#Rm;Rm<Rm=Rm>Rm?Rm@RmARmBe%#^^^Xaea?aC/b+(,!a+a#!a/!>a&Ta<aKbD!2wphBRnk[yPw}hE|.=Br-3Dtm>6Vy~g6urRf.x,hPrNav!%'RnqRo%Ro#Nu;q[Pw;5r+JwNZtM@3r)d'#Y'Weh;xChL#`&RnmRnoKu}>%(!Rne~Bs-;2wjcussJv+'!aYSO}6@B<5?ba~8LrNvj!.%*ROwungw~ng~:9;Ri^>wtnig;wHRnixDh@|(UZ.x1h@|)!#:2<H|*xHn]#-UX'3Ro)z=iT}6ARns=Bwsn_wpnaRncw]aR(#UXa&Ua*a/=]iPd'#Y&Ro'WnXf{QRm2hNvj]nZd`'T~&1`{|`#9b]{}c:'!#Wl{>@=be}]?cl{{U#:5Abb}Jds#^YaF!a*b4a#a3aPa>&Tb!bH!*a_!Eau?/a&RjY<]gj>6Vz*;:pe~DrZg,QRj1JwNZtX@wihspcJvZ&!VyX9WmOJu|!|N2WmHJvh&!]ht~Bpbcn&T(!#RmQ<s7Nu;padH#X'`+WmJ@>RmKCARhnKup=!)&Wf+:RhqNuPpf9c!#'45pd5AwghpARn(Ls@w!%,)!RmP@Wfe<E|IJva!&WmNg8vsRmLd`*.`#Y'Xa!axRn*]hrA8Rhug5s@rXg8u!RmMd8#X'X*3@rV72smdI*#UY&RmICARho~GsgxVgd)Ta'U-Y&Xa!T#RnEWnA@Wffg1uDRi0hFvK5RnBxGnG&#`%owp)@wsf+bX}Ze-*1!a*^^^Ua|!#a.aq&Ya2!a>.a6!a:aO`aJDtL[y`@Wg#>6Vz12@wzoYRoZNuPRi!NuPRhzg=ucRi,@=b`{Yg=ucRi-ACJvB!&Sh[ebSh]ebi`wUuFRm4Jw2_[y0JvB!.<Ju(!&SoG}6Shd}6<Ju(!&SoH}6She}6Kur@._g5vHRieJvx!{L2G{Kx6gd'T#?Rh82Wi5cZ#X(g1w)Rm5dW-Y(Ta#!a)!#aYa=wnfE=su2>>bU{0j9udv:<svj8uQv-7RgHdE%#^'sq9sp=>Bb_{TJv`!&g/r|snj6v(us5d,#Y(56H}[978H}]Jw5!&g1rushJvB!+j;v{u5?zDhd}6}bj;v{u5?zDhe}6}ce*#`(^^^a[aea!=!a6a*aoXb1a.!aAbL!b>,b'aL!aV@Wf|2Wlg3[y/JwNZt^@3piPw:5pgJunZou3@rsJva&!Vy_g<v~Rm#JvG'!6Vz0=<r{Ju{%!:pj@WfsiXuJu3Rm:JvZ&!WfA~Bph@c4Z&Dtwax5rubx(#:awRk1@d,#Y&RfjRfid1#,Y(@Wfp2Wlrg5s@ryKu[@!,'=]ig9wlk?Rk>g5u-rqJvy'!@9RkQcH(T#=>Ri~@<wkj(Wj(KuZB*!&<7rw@9RkRcH(T#=>Ri}@<wkj)Wj)dg(Ta2Xa9X#`-!a*CARhg@@=I}d9x;c~#X%so=<sj>2@@=aybb}XjWv0Q~EfEj3vLv;<d,#Y(56H}`978H}_dgaPaFa'a/!#a3Y0a_a;a|!1(a7-[yE3[xt;:pJNvZrrg3uJrvJwNZt=@3pIh=rt3rxPw:5pGOu!5rpJvG'!6Vys=<rz@c4Z&Dt(ax5rtJvZ!&~BpH@wsfNg-vaRlNci*U#=<wei<F}a5@Jq.!a*JQ!%@qZ23d(#Y&RjH5]jCk!u7w&u0udARjFd/prq=tyvpaEa(a:.!a1aZ(@@=I}:9wpd%=<sX55w_h}@@=I{t=ay<aU@@=I}T=ay<2@@=I})?C9:9au@9Cb]}DP~=x-fAZ(2Wl1=ay<aU@@=I}>5@d##Y+jTv|vV~EfFj]uNpn~FRfGdgaK!Z2&!a8a-Tb({E!acTbM*!a(DtY[yYd'%Y#sl[y*hHvh>Re5x2c{Z}.j4uCvcawRiMd+#X+_x&d!},<5RkX;2Hzw@x,gavfB-!{CcF&T#Roe;RodwWbBg5urRgaKvHC*_6Vz+<4opieuew&Rmq@d]&Y)X,T#X0Rh}<BqP=4qS9:ReMg/ujReNJw0!/<Jui%!bd{kawwnemRelAxUa?a3#*.&UX(Ya+a/RhvRnQ<o}9Wmtd-#Y&RgSRmw9;Rmxay=Rmyg-vaRmuxEhSrNu,v-voC!%(aR.a(a7+1Ro1>Ro5CE{A9b]{@;5x#eO{:g;urRi+KrNA!%(Ro3>Ro79;Ri_Ku@>{;&!x%gX|{KunA_+g5QRj/g3u5Rj#g>uERj%wio/xRhS&!,!#^1U}wba{8>>@=be}qC@:D5ba{7Ku+A&!}x?ba}t>>@=be}se(aA^^^Uat!b0#{pa+awUazbGa#aLb9bgaWac'a5TbS=Br!d1#`%scp_Jvl!#rT>Re0JvX&!VyN=H{Fcm#U&:pY=ReaJv2&!]h0=]nUJvG'!6Vy|=<r%JrM_=]h2@Wlud'#)U'Wf'b]{i=]h/Jvh!&~BpWg=v]RnMx+ny#'Nu;pVwjnu=]nwxJnx,T#`&Reqwjnt=]nvieu9vrRjLLuYwP(#+!th@wih5pX~Gr'g5v/Rh4KunA'!-CARnP@wwiN:Rm_9x'cvw>!|l=<saKvAA!0&3@q}>w^e1bp#&Re2Re3BDx7gH#T|f5H|eKuZ>!%(:qNAH{]Jv6!+3B2B9=b^{X<5<B92:E{ZLvhwA(a;a%!igQuyRmad+#Y}m@3Rh5d8#X'X*:AqUAHzmaxwbh<aXRnVcF}RT#Nw&cj#U(BWnug/vsRntdka)(a3+.Zb7aYYan1!bVa@Xa}[y^@b[{G=H{+hFu73Rj&Pv#5ReQcK%T#sig1v{Rj'Ku+D#'!t]~Grm~?rkKuMB!01d5#`'Vy.ta3Dtu~Hroc8#'{^45s85AwZbP&!#Rn!wghxWn#KvEA!)&2RlA2RlBx:h|#(T,=]j09Wobz>x]z/@awRoTd+#Y(az]hFhCrm4d,#Y+jTv|Q~EfMj]uNr|~FRfOdCa!Xa9_X#@<plJvf!%b`{(9;Rgwc;.!#2x7cw#T|UDb]|T5Ju={(!=@E{&Jv)&!Ab`{'awJvf!~*>>@=be{#KuY>!+&4Ezyi[ugv&RjIdea+T)#UXa&T-T&a!Rh9auRmW=]kLg5vuRn+g3u4Rn-Ow6ARn,hHus5xNk?#UX(U~)/g8v0RkD~AwkkF?Ri.OuNBwkkA?Ri/d|a2`a*^UYa.!aBTZaTa'Xa;!(!2!-a#b2[yC>6Vyq3[xr2Wi?g1rusVh%s?DtF~<5rbJs;%!DtBfswKtCj[uvuSsEu3RgVx3o:u+wN'*Zt;@3rd~Grh~?rfg8w)Lq)qE&-a%!>bI|`jWv0vV~EfCjTv|vV~Ef@j]uNpn~FRfBcK#T']gWNu7x,k7q4ai(0!hHv8<RhmkMu9vrsBuev/RhlCJvB!,g<v{wchh~@:Rhji[vrv{wchi~@:RhkdS&a5UY#Ta!RgPwwiI5BwciI~@:Rh`x'iJvj'!5]iJPu8Bwch]~@:Rhach)U#h3rp]gLh@t|Ax,hTq3ah!-(~@:Ro0Ou!5RhXj^v(pyw8unRhVd|)`,^UYas!a?/a2Z'a^Ta{Tb7Ta(a#!a,Wf&9sZ3DtAadamov=Bqt3[xig8vsRm~>waiL2b`{QJv*_Ouv2qgj<v]v2BqfdR'X*X#Y-@3qr~Gqv~?p6hHv-]glPup5Lq+q?_%*b_{qF{n9b^{rOu4ARhpKvCD!+&~Bqp:5Dbb}nwoiKl&unuTuBv]v+ueunaXRf0=Jvh!0nKufu8v1w&w7q%w&uHrz:Rgnj5w,uxDJq/(!hNw'5ReCk0s2u3w/w'5ReFd>Za&!*UaA=<wkgsRnSJv^!%Refifw3vyRgOKu_B'!,<]gkiiu:w&Rh<=C@a^<B57@2F{[<B5@aW:=3away9A5aW=<B=C@a^<B57@2F{Ie-#`(^^^bCara.b8aza6!/bZ,!adTbnTbOb+aFaS!aAT9@Wf~2Wli3Dtl2@d,#Y&RfnRfmJwJZtN~GqyJva&!VyMg<v~Rm%iXuJu3Rm9Jv[_=]ih9wlkDRkCd1#`(@Wg>2Wls3cH#T(@<Rj*=>Ri|b~'#23s9h<~El.d'#Y&Dtxi^rzvdRl#d*#U%(o|B2s`hJwSaxRmDKv4B&!1:Rmdd5#`'Vx}to~Hq{x'f1v3(!BA5ba|bJv_&!Wfug1v]ReIdO+U/Y#&G}-8wze=Rh{g1v]ReHg/uQRf/by#)ibQwERl/cH#T(@<Rj+=>Ri{cNu+vlax-!(#a0qa9<Rii2;;bU{H;x<i=&X#Rk`<4wwi=C9H~8xAI(Y#<azRi@45wXI<B9;5bb~7dL(X#Xa(+!aL6Vy{g5QqOau:5au2@ay547EzbxOcU(UX-T#Ta#:Cbb|A?wjh/b_|SOw6ARgtihr}u7Rhy<d1#T)X1@@=I|~=ay<2@@=aybb}Sj3vLv;<d,#Y(56H}A978H}@dGpvs@uAu`vcw9*!aFa+ai%(b!aXa8.a?a[ozWey=sU2@G}Nch&U#Rf_WexKu+D#'!t:~Gr`~?r^j]uNr|~FRg*j^psurwJt|RmcKv)@&!)7Rkv~Br[@wxfO:Rl3co#U'6Rezj_q#vIuavjRltwzeyh@vr5JqD0!>aY?C9:9au@9Cb]}9cl#U*5;5<H||jbuus1ucv&Rfvg1v~d/pppzqFr^a--a~!aMat1(hFv;Wiz@@=Izoj5uuv-7Rix~Cw`fk2WlVcZ#X,k)u3vWs@u2]ktg;wEx'fBq(_2Wg/jTv|vV~EfoJv]!15x'hzqG!(P~EfU~CRl_j6v(us5x4i-#T(2WmZ?C2F|d>Kq<aj1!*jTqIsBv=Wl`~Cw`fi2WlWj`v0u*~>RlR=c>Z,k#u3vWs@u2]kr<c1Z+jTqIsBv=Wla~Cw`fm2WlXdmb3!a{(arZa`bkTa%TbQTa-a9+c'!aM!/[yL=Bqug.w'RifhFvyDRj.g>vgwyk^9]k^Jv3_@WfbAARkhJw2_[x|JvB_wkoIRoKwkoJRoLd'(Y#<]gm=<9<H|yd'%_X#skDtb3awwqkgNulRkgdB#^',9:p'hJwSaxRmEBwVb8@4=H|qLu+w50&!)@3qs~?pU>Awwn;;Rn=c:Z'ARn<=<qwKvC@!/&~BqqJv6!&]eVb^z^xRge'/a%+^`#Sge}6<4Rn3=]n0Pw2>Rn8Jw0!&>Rn:>Rn6cY#a7+!a&=<wkaNw~h3z_c5Z{=wjh#=]nLKv^D!&)Vyz=bW|swYb<WetcG#T(2wxa@qVx@gD#Y&b^|V5JwG&!5bb|pg/w&RgD@x=kHs=uAvn!a%%/'+RmSRh694Ro`g-vaRmRhHv-]mlxCcS#`&ba~.5cD#Ta)P~=d,#Y(56H{>978H{Dd_#{2^Y%_+qbbb{6g3sERhsbU{?dfa.,`a(Xa<!aiX#(55RiG54RiHcI#T'WiU3RiVNvdwtfcRlKNvdd,#Y&RlHRlExQgf.1*^T'X#Sgf}6Wn4=]hfPrk>Rn7Jw0!&>Rn5>Rn9Lunw?&a2!,5<oq@@wqfdRlJj5Q~=d,#Y(~ARfcOuN]fdDKw;ay(}i!547E}j?cI#T(@5bV}iCbV}hdv(^^Tb?a40,b##Tbo!a*bR!a<b|a/!aKai!aU[yK=]o^g:v>ReGJwPZtK<7Rh+h<~El,Pv#5ReR@awwxjCg,ulRjDJv6&!]j!z?aQeeg>w=Sh<eeJw;!&axEzOg,Qosc!#*:wkeJ]eJ>x'h-u(!%Ro.w~h.zPdNZ(X,Ya![x{;9ReY;wkgxRiF:x?ap#Y&RmUg<s2Rkod]+UY0TZ'!a&A9sw<=bczLNvuw{gqzNhJwSaxRmCKuLay!#&s_Rf-55b^{uJvZa!!c%#(55Ri654wmiu5RiuawLu,vp!+}^%b_}Y9;wkgxba}o>A9:=b^}zKuh=a''!3awRk3c*'!#aHRk6c+Z&Rk5Rk4Jv)&!awRjSawd9*`#0?C2@EzMj8u<uJ5RmbjQrquJu3x,k>uq@_+=ayb^|W~ARkEOuN]k@7dhzV^X/X&a-#zRzSb`zXcJzTT#2WkVKvDBzW!%FzY9;5bbzWjQrquJu3Jw3%!b`zU=ayb^zQd:#X(T-a!6Vyywxh}=b]{Jg=u1RiAdGp~qHtzv!w(wA+a+a;<!aJaYai'anasb(=azRmV:Cbb{MLq2vb!%')RjuRjrRjtRjqx3jnqCw3!%')Rk(Rk+Rk&Rk)Lq2vb!%')Rj{RjxRjzRjwLq2vb!%')RjsRjpRjfRjex3jcqCw3!%')Rk'Rk*RjkRjl9<CbbzfOu4ARhxLq2vb!%')RjyRjvRjhRjgx=joq*uKvb!%')+-Rk.Rk%Rj~Rk-Rk#Rj}x=jdq*uKvb!%')+-Rk,Rk!Rj|RjmRjjRjidAq&qKs@uAv8Aa.'*-a@a&0!aM@a5[y73Dsy3Ds|3Dt):wxgI2sHJwJZt.~Gqxwsf0ikrzt}Rl0Jvy_[xj~HqzKv_A|D!&WfP8axRoVcf,U#k(v]v+ueunaXRf1Ju}'!g8u#Ri=jQw!sCunLprq>!,')~<5qeGzq9F{W=c##%s5au:5aU3CBE|;d4#X(D!a&6Vygx(b;#(=]ed?C2F{N<capoq2r[a&!aPa9,'Pw;5s:@@=I|,55w_h|@@=IzcP~=x'fCqB_2Wl2>aU@@=I|1OuNBc1Z+jTqIsBv=Wlc~Cw`fl2WlZ~AcTa%!Z+jTqIsBv=Wlb~Cw`fh2WlYk+uNqJsBv=WlSg,u3dca3#UXaMYa)TaB-=cM|7T#<bI}l5@B932:aV2G{BOuNBJq:|M!5Ezt=<B=C@a^<B57@2F{v>cB{/T#=ay<bI{3Jv6!a.6BKq0ah&+!5E}HP~Ef{978BaU@@=Iza<7d#.Y#978BaU@@=IzH~AJq0!(@@=IzG978BaU@@=IzFe,aU*Y&^^^bvJb,b:bFad!a,c2Ta>aL.bo6!a#CbTa'T#Re{2Wlh2@G{yg6t~Ro_NvdRfticuRQRllJv3&!x&c|zs@Jw3!%RflwpfkRlpKuL;%(!Re<@G|C2GzdhIvuBwgjAg-u0RjAKQB%!(GzZ@G|5NuuRl7d='T+Y#Vy[g<v~Rm!==G|>JvA!)@wma=]m1ifuaw&RmnLs@vT'!|/+[y,g:v>ReTJw1!#qX=x!eC{bLu+wT&)ZtZauq_~Graci&U#F|89:r_Lupvq!.)&2RlG8RfaC=x!eF{_h?rpWlmd&'!#X|&]k::xJey#`'T|+<E|&2@H|%dE#(^,g;u.RiEg6vjRiC9xCkA{O|zY#g=ucRmXKs0@!&*@G|m@awRknJuh!,3d(}gY}eJvj!%Rm):Jw3!%Rm+Rm-Ls0w(&!a(a#@b[|6cZ#X'7RkxWgAOu4ARn'dH'U#Y*Vz-Wm'CARm}d]*#a%^a*T'aK!a<9bV{PC=p*Jw4!&SgxcbB5r]idw(wBRmF7xFkt#&`(Rm/Rm8E|!JuY_9:Rl5=wrgr2:bbxd@xXfB(a*#T+!.X0X1Ta/a'T&RlDRfL>RlyARl9b[z[>RfZ:RlL:RfRwlg/ARl;9;RlxKv,A/!%7s69<74=BA5ba{-8Bde#`a<XaKYa1,a'P~=wxfB2bZ}}?C972@@=I}r8@55B9;5bb}G978B2@@=aybb}3j3vLv;<Jw3&!>Rfk=ayb^}4~Ad1#`*@@=aybb{w2@>==<bbz]dx+UY#^UaF!a9!bB'Ya1.!ajXa#%olRhD[y=3Dt#Ov5BrHKuMB%!(Rf^Wep~HrJwkiQjKr|~FRg)Ku+D#'!t5~GrF~?rDdV)UY,Z/_7RkuG{<~BrBg,rlsO:235B@bX}|d?a1!#`(6Vyn5@d##Y+jTv|vV~EfIj]uNpn~FRfH7Lq2vb1!a9-978BaU@@=Iz9978BbU}#~AJq0!(@@=Iz8978BaU@@=Iz7~AJQ|}!978BbU}!JvkaK!AdUa21-U#`a+(g/vsRn~Ou!5RPj:rmu9WhOjXuvvNr}:RhAj^v(pyw8unRn[kPr}p|u7vwv]RiSBd;pppzq@qHQa?(b.!a.a`@.|xa(hFv;Wiyj5uuv-7Riw~Cw`fg2WlU978BbU|wOuNBJqG!(P~EfD~CRlQcZ#X,k)u3vWs@u2]ksg;wEx'f@q1_2Wg.j]uNpn~FRfqJv]!15x'h{qG!(@@=IzK~CRl^j6v(us5x4i,#T(2WmY?C2F{1>Kq<aj1!*jTqIsBv=Wld~Cw`fj2Wl[j`v0u*~>RlT=c>Z,k#u3vWs@u2]kq<c1Z+jTqIsBv=Wle~Cw`fn2Wl]dn1#c(a(b^a2!b/bAT(bj!aDa7bu,a_a{c0!2T0g:v>ReD2@G{42@G{5~DpM~<5rc=Bx6i>{RT#RnI@zCx]y]z:2Jv[!zr5Awyk]9]k]dD(Y+X#6Vz.g=wKtgwhaCwgmTWj2Lu,w%_+/[y-B;b^xeg3u3Rj-2@bX{*KrJ<!+'@Wg(g?QRlC@Jv`!%b[zIwsfII}8JQ_@w|kW|=Jv(%!AqcOuNBJvEzh!bYzjLs@wP#(0!oy@>RkdJwMZtc3Dtd@BcG#T'9bWxg2@2Fznd*#Y+;2x'c}w<zizixNgwa#Z'U+!/!a'!a+w~g~z6wcn{Rn}wcnzRn|5Rh%=]nJg5vuRmvNvdRlvcprJu}w*az*a#!%.a.'Bot9qT]kj@Wg'ay2Gzv@Jv`!%b[zEwsfHI}1;ck#Ux`<Cbbx_Lu+w!a&0*!wko*wwo,So,}6Juqxf!E}PigQuyRm`d3(`#8>Rn%:A5B;bZ~%KvhCa!a2!x>k7#Uxb@b{#xaRk7Jw0!)>wwhlShl}6>wwhmShm}6CJvB!.x'hhvj{!!5Bwkhhbaz}x'hivjz~!5Bwkhibaz|xEhTrNu,v-vpD!a%&/)a3a.,%Ro2t[CE{)@3re9b]{%wjo09:rgc:Z&Ro6=<riifuaw&RmoKrNA!%(Ro4>Ro89;Ri`dSaL'UYzxZb)7Rka3xRhT&!,!#^1U}vbaz{>>@=be}yC@:D5bazzKu+A&!}{?ba}y>>@=be}wxBh[t`u~vJvr!%a!a()a,a0a4RoC=]o;Ju(!%RoGRhdwjh`=]oAg>w#Ro?g5vuRo=NvdRl|Ku]C.!&;RoEJvB!%RoORoMBx'h[v+_?w~h`}~5?w~hd~!xKh]oiptu-utv.vp!#%&a30a@a'a+(a/aOp(o~p!RoDJu(!%RoHRhewjha=]oBNvdRl}g>w#Ro@g5vuRo>c[#X']o<CauRoRAd-#Y':RkpauRoQKu]C.!&;RoFJvB!%RoNRoPBx'h]v+_?w~ha}t5?w~he}ue!/UbhYacXaW^Tc&a;b:a-c/#b&aja1(!cL+!bKbt!bmcRc9aIc?8[yW3Dtt94Rg`Jv}!&SiRMzBhEebShEMNuPRe>x7gL#TzuwjirRipc<Z&>on;>z=h-MSh.Mwqczx'a7vj&!>Re4@=ResJt__NuPRi*NuPRi)j]uNr|~FRfzKrJ>_+@Wfy@Wf]2WocKrJ<!+'@Wg%g/QRl@@Jv`!&awRl<wsfFIzgLu(w*!.*&ShBMwvhIRhI9;RhNx1hK'!#Sn]Mx1hK~0!#:2<H~7cNu+w7D*'1ZtW>Rn1~?rOc:Z&Rn2=<rQ<7wjh&=BSnLMc]#X(6Vz)w[b=a!U#9wzgMc3#&(RgMRitRis<x,gKt`ax!&+SioM=BSilMc3#&(RgKRinRimKurB,!&SiQMzBhDebShDM6BJQ!(P~Efx978B2@@=I}WLrJw!!,a*&@G}O@9wkibRid@@x'fKwC!&SlDMSfLMjUv~Q~EfKKv3@a+!(hFv-]mpx/hYZ(C5RiWz<o/MwkhY?So/M@x,gbvfB*&!SgEM:SoeeehFu3:Rgbda(,^TZa)X/7Sg[eb:2RgI~BrMC@wgkc:wwkcRerx3h(uUvK!&*,SnOM4Sh*MArRg;wHRh(x=h;rJvPwI!a4',a'0@Wg&=BSh/Mg>w=Rh=g3w*wwgGRgGcW(X#;Sg}M2Gzk@Jv`!&awRl=wsfGIz`dKZ*T'Y-:RhR7RhQg5u-p`j6v(us5d,#Y+~Awkia?RicOuNBwkibba}Ld6p~tyu_vbAa'a+!a/'a3aEa8a!>Sh,ebJv{!&Sh@ebSaReb9;SgwebNuPRi(NvdRl)NuPRi'hHu^<Rm^Jvv_@Wl(g;u1Si/ebKu'B&!*Sh?eb@Wl'z@aPeb95Si.ebcpputyvjB)!,&a+0a%ShAMWeK@G}C@WfJ9;RhMwvhH9w{ia}ix,hJvRA1(!zAn[MRhHx1hJ~*!#hFv(BSn[MBJQ!(@@=I~'978B2@@=I}2db.Ua<'X}+T#a0XaG2G}E;wkg|wuh!Rh!x,hZu,@)!&So0MVy)C5RiXACJvB!&5RiY5RiZg8w)cG}*T#2@bU}=KsA>(!a.3wkhZba~(x,h^u(A!&(SoCMRhb5Bz=h[eb?w~hb~6x,h_u(A!&(SoDMRhc5Bz=h]eb?w~hc~6e)aA1T#T,^^^c-bMb&blcPaP(a/!0!bA=b5c@a(!bfbrc#2afwmhARnjwchORnp2Wlf3DtsNvdRl-2@wpa<]m0bx(#:awRk2@Jw3!%RfhwpfgRlnKQB%!(G{V@G|'NuuRl6d='T+Y#VyUg<v~Rl~==G|<Jv+'!aYShC}6@B<5?ba~8@Jw3'!g2QRljhLrpWlOd+#Y'g.w'rIg>w*wgj@g-u0Rj@Lu+wT&)ZtUauq]~GrGci&U#F|39:rELrNvj!.%*RhCwunfw~nf~:9;Ri]>wtnhg;wHRnhx3hDs@v~!/+'@Wfr@9RkSNu&Rlo=@<5GzoKs0@_+@Wl+@awRkmJuh!-3d(}pY#qWJvj!%Rm(:Jw3!%Rm,Rm*de&!1U-U#`)Re;@G|.@9Ri82@wjfvRlq=@<5GzpLvOvr!).&2RlF8Rf`C=x!eE{.Jw3_g2QRlkhLrpWlPde(!#U{s,UXa*Ta'[y'g:v>ReS;x0PZ&RnlRnn~HrKJw1}f!=x!eB|2w]aP(#Xa&a*Ta.Ua2a7=]iOd'#Y&Ro&WnWg;u.RiDg6vjRiBNvdRlzhNvj]nYJuW_2Wm3x)kFze{9d])!a.!,Y01!#&aC!a3RndC=ox~BrC@2b^{pg,rlse7x'ksuq!%Rm.E{xidw(wBRmGx9o+)X#wwo-So-}69:Rl4@xSf@a#XZ'X)X,Ta(/ARl8b[xc>RfY:RlI:RfQwlg.ARl:9;Rlwdn'#^XafaQa1X1TaHTa)@b[{zcZ#X'7RkwWg@Ou4ARn&x)kG#{,g7u/RkGdH'U#Y*Vz'Wm&CARm|bx#(A]gUbUzJj9Q~=d,#Y(56H}l978H{U7d,0#U*2>ABb_xZ978BbU{e~AJQ{g!978BbU{hxMh?ad{oUYZ.x1h?{l!#:2<H{mx3n[t{vl!,&a%3Ro(z=iS}6ARnr=Bwsn^wvn`Rnbd`*T}B0!#^X'BG{c9b]{a>>@=be}F?JvS!&BG{d7BG}(Bde#`a1X,Ya@!a'P~=wxf@2bZ}I56B2@@=aybb}08@55B9;5bb}<j3vLv;<Jw3&!>Rfg=ayb^}&OuNBKuLA!)a!P~=x#fD{f2@>==<bbzl?C972@@=Ix^d6rSu,v7w*C(0a)a6#B+a%!sQ[y?3Dt%3[xn~<5rLOu!5p@Ku+D#'!t7~GrP~?rNKvlaya7'!h+v-5qMg=t|cd,U#5AAaa5Abb{S@52B5@a[@52B5Gx[iXueu;d<#`a(!/549C;ag>23ExY5@Dah89b^~689Jv)!~2b[~1Lv'w(%*!a#bX|aPrmawRe]keu7uhv-q6rxu,q`xTo]/a5aU!bNaDXbi!b-!ao!b<bwA!#5@B932:aV2G|:d-)Y#hJrL>RhG<7@C5<H|_=Cau:5aj5@B932:bJ|ng>vIbs)#?C2F|9jPv0w.vISh-MKvUaz(.!9ABbb|[5;5<H|Eg>unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2<BaY?C2F|GOu!5x,g|p{ah!-(?C2F|c9:4E|OjXuvvNr}:Rh&i[w*t|cd+U#jJvsu)vsSn~Mkfrmu9p}u7vwv]So!McW#Xa!ax5@A5aY:5;5<H|>kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2<BaY?C2F|.5Jvk!a)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P",13494,2713,49,25,61),SC=new Uint16Array([512,26465,29036,7,0,2,4,116,24638,116,24636,8693,29807,24610,621,1,0,0,3,112,24614,111,115,24615]),CC;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`,e[e.VALUE_MASK=8191]=`VALUE_MASK`})(CC||={});var wC;(function(e){e[e.AMP=38]=`AMP`,e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_X=120]=`LOWER_X`})(wC||={});var TC=32;function EC(e){return e-wC.ZERO>>>0<=9}function DC(e){return(e|TC)-wC.LOWER_A>>>0<=5}function OC(e){return(e|TC)-wC.LOWER_A>>>0<=25}function kC(e){return e===wC.EQUALS||OC(e)||EC(e)}var AC;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(AC||={});var jC;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(jC||={});var MC=class{decodeTree;emitCodePoint;errors;state=AC.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=jC.Strict;runConsumed=0;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}startEntity(e){this.decodeMode=e,this.state=AC.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case AC.EntityStart:return e.charCodeAt(t)===wC.NUM?(this.state=AC.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=AC.NamedEntity,this.stateNamedEntity(e,t));case AC.NumericStart:return this.stateNumericStart(e,t);case AC.NumericDecimal:return this.stateNumericDecimal(e,t);case AC.NumericHex:return this.stateNumericHex(e,t);default:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|TC)===wC.LOWER_X?(this.state=AC.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=AC.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t);if(EC(n)||DC(n)){let e=n<=wC.NINE?n-wC.ZERO:(n|TC)-wC.LOWER_A+10;r=r*16+e,i+=1,t+=1}else return this.result=r,this.consumed=i,this.emitNumericEntity(n,3)}return this.result=r,this.consumed=i,-1}stateNumericDecimal(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t)-wC.ZERO;if(n>>>0>9)return this.result=r,this.consumed=i,this.emitNumericEntity(n+wC.ZERO,2);r=r*10+n,i+=1,t+=1}return this.result=r,this.consumed=i,-1}emitNumericEntity(e,t){if(this.consumed<=t)return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===wC.SEMI)this.consumed+=1;else if(this.decodeMode===jC.Strict)return 0;return this.emitCodePoint((this.decodeTree===SC?vC:_C)(this.result),this.consumed),this.errors&&(e!==wC.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}flushAndEmitLegacyOrReject(e,t,n,r){return this.consumed=e,this.excess=t,this.result===0||this.decodeMode===jC.Attribute&&(r===0||t>1||kC(n))?0:this.emitNotTerminatedNamedEntity()}stateNamedEntity(e,t){let{decodeTree:n}=this,r=e.length,i=this.decodeMode===jC.Strict,{treeIndex:a}=this,{excess:o}=this,{consumed:s}=this,c=n[a];for(;t<r;){for(;(c&(CC.VALUE_LENGTH|CC.FLAG13))===0&&(c&CC.JUMP_TABLE)!==0;){let i=e.charCodeAt(t),l=c&CC.JUMP_TABLE,u=(c&CC.BRANCH_LENGTH)>>7;if(u===0){if(i!==l)return this.flushAndEmitLegacyOrReject(s,o,i,0);a+=1}else{let e=i-l;if(e>>>0>=u)return this.flushAndEmitLegacyOrReject(s,o,i,0);let t=n[a+1+e];if(t===0)return this.flushAndEmitLegacyOrReject(s,o,i,0);a=a+u+t&65535}if(c=n[a],t+=1,o+=1,t>=r)break}if(t>=r)break;if((c&(CC.VALUE_LENGTH|CC.FLAG13))===CC.FLAG13){let i=(c&CC.BRANCH_LENGTH)>>7,{runConsumed:l}=this;if(l===0){let n=e.charCodeAt(t);if(n!==(c&CC.JUMP_TABLE))return this.flushAndEmitLegacyOrReject(s,o,n,0);t+=1,o+=1,l=1}for(;l<i;){if(t>=r)return this.treeIndex=a,this.excess=o,this.consumed=s,this.runConsumed=l,-1;let i=l-1,c=n[a+1+(i>>1)]>>((i&1)<<3)&255,u=e.charCodeAt(t);if(u!==c)return this.runConsumed=0,this.flushAndEmitLegacyOrReject(s,o,u,0);t+=1,o+=1,l+=1}this.runConsumed=0,a+=1+(i>>1),c=n[a];continue}let l=c>>>14,u=e.charCodeAt(t);if(l!==0){if(!i&&(c&CC.FLAG13)===0&&(this.result=a,s+=o-1,o=1),u===wC.SEMI)return this.emitNamedEntityData(a,l,s+o);if(l===1)return this.flushAndEmitLegacyOrReject(s,o,u,l)}let d=NC(n,c,a+(l||1),u);if(d<0)return this.flushAndEmitLegacyOrReject(s,o,u,l);a=d,c=n[a],t+=1,o+=1}return!i&&c>>>14&&(c&CC.FLAG13)===0&&(this.result=a,s+=o-1,o=1),this.treeIndex=a,this.excess=o,this.consumed=s,-1}emitNotTerminatedNamedEntity(){let{result:e,decodeTree:t}=this,n=t[e]>>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&CC.VALUE_MASK:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){switch(this.state){case AC.NamedEntity:return this.result!==0&&(this.decodeMode!==jC.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case AC.NumericDecimal:return this.emitNumericEntity(0,2);case AC.NumericHex:return this.emitNumericEntity(0,3);case AC.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;default:return 0}}};function NC(e,t,n,r){let i=(t&CC.BRANCH_LENGTH)>>7,a=t&CC.JUMP_TABLE;if(a){if(i===0)return r===a?n:-1;let t=r-a;if(t>>>0>=i)return-1;let o=e[n+t];return o===0?-1:n+i+o-1&65535}if(i===0)return-1;let o=i+1>>1,s=n+o+i;for(let t=0;t<i;t++){let i=e[n+(t>>1)]>>((t&1)<<3)&255;if(i===r)return s+e[n+o+t]&65535;if(i>r)return-1}return-1}var PC;(function(e){e[e.Tab=9]=`Tab`,e[e.NewLine=10]=`NewLine`,e[e.FormFeed=12]=`FormFeed`,e[e.CarriageReturn=13]=`CarriageReturn`,e[e.Space=32]=`Space`,e[e.ExclamationMark=33]=`ExclamationMark`,e[e.Number=35]=`Number`,e[e.Amp=38]=`Amp`,e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Dash=45]=`Dash`,e[e.Slash=47]=`Slash`,e[e.Zero=48]=`Zero`,e[e.Nine=57]=`Nine`,e[e.Semi=59]=`Semi`,e[e.Lt=60]=`Lt`,e[e.Eq=61]=`Eq`,e[e.Gt=62]=`Gt`,e[e.Questionmark=63]=`Questionmark`,e[e.UpperA=65]=`UpperA`,e[e.LowerA=97]=`LowerA`,e[e.UpperF=70]=`UpperF`,e[e.LowerF=102]=`LowerF`,e[e.UpperZ=90]=`UpperZ`,e[e.LowerZ=122]=`LowerZ`,e[e.LowerX=120]=`LowerX`,e[e.OpeningSquareBracket=91]=`OpeningSquareBracket`})(PC||={});var z;(function(e){e[e.Text=1]=`Text`,e[e.BeforeTagName=2]=`BeforeTagName`,e[e.InTagName=3]=`InTagName`,e[e.InSelfClosingTag=4]=`InSelfClosingTag`,e[e.BeforeClosingTagName=5]=`BeforeClosingTagName`,e[e.InClosingTagName=6]=`InClosingTagName`,e[e.AfterClosingTagName=7]=`AfterClosingTagName`,e[e.BeforeAttributeName=8]=`BeforeAttributeName`,e[e.InAttributeName=9]=`InAttributeName`,e[e.AfterAttributeName=10]=`AfterAttributeName`,e[e.BeforeAttributeValue=11]=`BeforeAttributeValue`,e[e.InAttributeValueDq=12]=`InAttributeValueDq`,e[e.InAttributeValueSq=13]=`InAttributeValueSq`,e[e.InAttributeValueNq=14]=`InAttributeValueNq`,e[e.BeforeDeclaration=15]=`BeforeDeclaration`,e[e.InDeclaration=16]=`InDeclaration`,e[e.InProcessingInstruction=17]=`InProcessingInstruction`,e[e.BeforeComment=18]=`BeforeComment`,e[e.CDATASequence=19]=`CDATASequence`,e[e.DeclarationSequence=20]=`DeclarationSequence`,e[e.InSpecialComment=21]=`InSpecialComment`,e[e.InCommentLike=22]=`InCommentLike`,e[e.SpecialStartSequence=23]=`SpecialStartSequence`,e[e.InSpecialTag=24]=`InSpecialTag`,e[e.InPlainText=25]=`InPlainText`,e[e.InEntity=26]=`InEntity`})(z||={});function FC(e){return e===PC.Space||e===PC.NewLine||e===PC.Tab||e===PC.FormFeed||e===PC.CarriageReturn}function IC(e){return e===PC.Slash||e===PC.Gt||FC(e)}function LC(e){return e>=PC.LowerA&&e<=PC.LowerZ||e>=PC.UpperA&&e<=PC.UpperZ}var RC;(function(e){e[e.NoValue=0]=`NoValue`,e[e.Unquoted=1]=`Unquoted`,e[e.Single=2]=`Single`,e[e.Double=3]=`Double`})(RC||={});var zC={Empty:new Uint8Array,Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,33,62]),Doctype:new Uint8Array([100,111,99,116,121,112,101]),IframeEnd:new Uint8Array([60,47,105,102,114,97,109,101]),NoembedEnd:new Uint8Array([60,47,110,111,101,109,98,101,100]),NoframesEnd:new Uint8Array([60,47,110,111,102,114,97,109,101,115]),Plaintext:new Uint8Array([60,47,112,108,97,105,110,116,101,120,116]),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]),XmpEnd:new Uint8Array([60,47,120,109,112])},BC=new Map([[zC.IframeEnd[2],zC.IframeEnd],[zC.NoembedEnd[2],zC.NoembedEnd],[zC.Plaintext[2],zC.Plaintext],[zC.ScriptEnd[2],zC.ScriptEnd],[zC.TitleEnd[2],zC.TitleEnd],[zC.XmpEnd[2],zC.XmpEnd]]),VC=class{cbs;state=z.Text;buffer=``;sectionStart=0;index=0;entityStart=0;baseState=z.Text;isSpecial=!1;running=!0;offset=0;xmlMode;decodeEntities;recognizeSelfClosing;entityDecoder;constructor({xmlMode:e=!1,decodeEntities:t=!0,recognizeSelfClosing:n=e},r){this.cbs=r,this.xmlMode=e,this.decodeEntities=t,this.recognizeSelfClosing=n,this.entityDecoder=new MC(e?SC:xC,(e,t)=>this.emitCodePoint(e,t))}reset(){this.state=z.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=z.Text,this.isSpecial=!1,this.currentSequence=zC.Empty,this.sequenceIndex=0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===PC.Lt||!this.decodeEntities&&this.fastForwardTo(PC.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=z.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===PC.Amp&&this.startEntity()}currentSequence=zC.Empty;sequenceIndex=0;enterTagBody(){this.currentSequence===zC.Plaintext?(this.currentSequence=zC.Empty,this.state=z.InPlainText):this.isSpecial?(this.state=z.InSpecialTag,this.sequenceIndex=0):this.state=z.Text}stateSpecialStartSequence(e){let t=e|32;if(this.sequenceIndex<this.currentSequence.length){if(t===this.currentSequence[this.sequenceIndex]){this.sequenceIndex++;return}if(this.sequenceIndex===3){if(this.currentSequence===zC.ScriptEnd&&t===zC.StyleEnd[3]){this.currentSequence=zC.StyleEnd,this.sequenceIndex=4;return}if(this.currentSequence===zC.TitleEnd&&t===zC.TextareaEnd[3]){this.currentSequence=zC.TextareaEnd,this.sequenceIndex=4;return}}else if(this.sequenceIndex===4&&this.currentSequence===zC.NoembedEnd&&t===zC.NoframesEnd[4]){this.currentSequence=zC.NoframesEnd,this.sequenceIndex=5;return}}else if(IC(e)){this.sequenceIndex=0,this.state=z.InTagName,this.stateInTagName(e);return}this.isSpecial=!1,this.currentSequence=zC.Empty,this.sequenceIndex=0,this.state=z.InTagName,this.stateInTagName(e)}stateCDATASequence(e){e===zC.Cdata[this.sequenceIndex]?++this.sequenceIndex===zC.Cdata.length&&(this.state=z.InCommentLike,this.currentSequence=zC.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.xmlMode?(this.state=z.InDeclaration,this.stateInDeclaration(e)):(this.state=z.InSpecialComment,this.stateInSpecialComment(e)))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}emitComment(e){this.cbs.oncomment(this.sectionStart,this.index,e),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=z.Text}stateInCommentLike(e){!this.xmlMode&&this.currentSequence===zC.CommentEnd&&this.sequenceIndex<=1&&this.index===this.sectionStart+this.sequenceIndex&&e===PC.Gt?this.emitComment(this.sequenceIndex):this.currentSequence===zC.CommentEnd&&this.sequenceIndex===2&&e===PC.Gt?this.emitComment(2):this.currentSequence===zC.CommentEnd&&this.sequenceIndex===this.currentSequence.length-1&&e!==PC.Gt?this.sequenceIndex=Number(e===PC.Dash):e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===zC.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,3),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=z.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!IC(e):LC(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(IC(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===zC.TitleEnd||this.currentSequence===zC.TextareaEnd?this.decodeEntities&&e===PC.Amp&&this.startEntity():this.fastForwardTo(PC.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===PC.Lt)}stateBeforeTagName(e){if(e===PC.ExclamationMark)this.state=z.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===PC.Questionmark)this.xmlMode?(this.state=z.InProcessingInstruction,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.state=z.InSpecialComment,this.sectionStart=this.index);else if(this.isTagStartChar(e)){this.sectionStart=this.index;let t=this.xmlMode||this.cbs.isInForeignContext?.()?void 0:BC.get(e|32);t===void 0?this.state=z.InTagName:(this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=3,this.state=z.SpecialStartSequence)}else e===PC.Slash?this.state=z.BeforeClosingTagName:(this.state=z.Text,this.stateText(e))}stateInTagName(e){IC(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=z.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){FC(e)?this.xmlMode||(this.state=z.InSpecialComment,this.sectionStart=this.index):e===PC.Gt?(this.state=z.Text,this.xmlMode||(this.sectionStart=this.index+1)):(this.state=this.isTagStartChar(e)?z.InClosingTagName:z.InSpecialComment,this.sectionStart=this.index)}stateInClosingTagName(e){IC(e)&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=z.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===PC.Gt||this.fastForwardTo(PC.Gt))&&(this.state=z.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===PC.Gt?(this.cbs.onopentagend(this.index),this.enterTagBody(),this.sectionStart=this.index+1):e===PC.Slash?this.state=z.InSelfClosingTag:FC(e)||(this.state=z.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){if(e===PC.Gt){if(this.cbs.onselfclosingtag(this.index),this.sectionStart=this.index+1,!this.recognizeSelfClosing){this.enterTagBody();return}this.state=z.Text,this.isSpecial=!1,this.currentSequence=zC.Empty}else FC(e)||(this.state=z.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===PC.Eq||IC(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=z.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===PC.Eq?this.state=z.BeforeAttributeValue:e===PC.Slash||e===PC.Gt?(this.cbs.onattribend(RC.NoValue,this.sectionStart),this.sectionStart=-1,this.state=z.BeforeAttributeName,this.stateBeforeAttributeName(e)):FC(e)||(this.cbs.onattribend(RC.NoValue,this.sectionStart),this.state=z.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===PC.DoubleQuote?(this.state=z.InAttributeValueDq,this.sectionStart=this.index+1):e===PC.SingleQuote?(this.state=z.InAttributeValueSq,this.sectionStart=this.index+1):FC(e)||(this.sectionStart=this.index,this.state=z.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===PC.DoubleQuote?RC.Double:RC.Single,this.index+1),this.state=z.BeforeAttributeName):this.decodeEntities&&e===PC.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,PC.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,PC.SingleQuote)}stateInAttributeValueNoQuotes(e){FC(e)||e===PC.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(RC.Unquoted,this.index),this.state=z.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===PC.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===PC.OpeningSquareBracket?(this.state=z.CDATASequence,this.sequenceIndex=0):this.xmlMode?this.state=e===PC.Dash?z.BeforeComment:z.InDeclaration:(e|32)===zC.Doctype[0]?(this.state=z.DeclarationSequence,this.currentSequence=zC.Doctype,this.sequenceIndex=1):e===PC.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=z.Text,this.sectionStart=this.index+1):this.state=e===PC.Dash?z.BeforeComment:z.InSpecialComment}stateDeclarationSequence(e){this.sequenceIndex===this.currentSequence.length?(this.state=z.InDeclaration,this.stateInDeclaration(e)):(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:e===PC.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=z.Text,this.sectionStart=this.index+1):this.state=z.InSpecialComment}stateInDeclaration(e){(e===PC.Gt||this.fastForwardTo(PC.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=z.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){e===PC.Questionmark?this.sequenceIndex=1:e===PC.Gt&&this.sequenceIndex===1?(this.cbs.onprocessinginstruction(this.sectionStart,this.index-1),this.sequenceIndex=0,this.state=z.Text,this.sectionStart=this.index+1):this.sequenceIndex=Number(this.fastForwardTo(PC.Questionmark))}stateBeforeComment(e){e===PC.Dash?(this.state=z.InCommentLike,this.currentSequence=zC.CommentEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):this.xmlMode?this.state=z.InDeclaration:e===PC.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=z.Text,this.sectionStart=this.index+1):this.state=z.InSpecialComment}stateInSpecialComment(e){(e===PC.Gt||this.fastForwardTo(PC.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=z.Text,this.sectionStart=this.index+1)}startEntity(){this.baseState=this.state,this.state=z.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?jC.Strict:this.baseState===z.Text||this.baseState===z.InSpecialTag?jC.Legacy:jC.Attribute)}stateInEntity(){let e=this.index-this.offset,t=this.entityDecoder.write(this.buffer,e);if(t>=0)this.state=this.baseState,t===0&&--this.index;else{if(e<this.buffer.length&&this.buffer.charCodeAt(e)===PC.Amp){this.state=this.baseState,--this.index;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===z.Text||this.state===z.InPlainText||this.state===z.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===z.InAttributeValueDq||this.state===z.InAttributeValueSq||this.state===z.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case z.Text:this.stateText(e);break;case z.InPlainText:this.index=this.buffer.length+this.offset-1;break;case z.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case z.InSpecialTag:this.stateInSpecialTag(e);break;case z.CDATASequence:this.stateCDATASequence(e);break;case z.DeclarationSequence:this.stateDeclarationSequence(e);break;case z.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case z.InAttributeName:this.stateInAttributeName(e);break;case z.InCommentLike:this.stateInCommentLike(e);break;case z.InSpecialComment:this.stateInSpecialComment(e);break;case z.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case z.InTagName:this.stateInTagName(e);break;case z.InClosingTagName:this.stateInClosingTagName(e);break;case z.BeforeTagName:this.stateBeforeTagName(e);break;case z.AfterAttributeName:this.stateAfterAttributeName(e);break;case z.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case z.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case z.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case z.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case z.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case z.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case z.InDeclaration:this.stateInDeclaration(e);break;case z.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case z.BeforeComment:this.stateBeforeComment(e);break;case z.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case z.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===z.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingCommentLikeData(e){if(this.state!==z.InCommentLike)return!1;if(this.currentSequence===zC.CdataEnd){if(this.xmlMode)this.sectionStart<e&&this.cbs.oncdata(this.sectionStart,e,0);else{let t=this.sectionStart-zC.Cdata.length-1;this.cbs.oncomment(t,e,0)}}else{let t=this.xmlMode?0:Math.min(this.sequenceIndex,zC.CommentEnd.length-1);this.cbs.oncomment(this.sectionStart,e,t)}return!0}handleTrailingMarkupDeclaration(e){if(this.xmlMode)switch(this.state){case z.InSpecialComment:case z.BeforeComment:case z.CDATASequence:case z.DeclarationSequence:case z.InDeclaration:return this.cbs.ontext(this.sectionStart,e),!0;default:return!1}switch(this.state){case z.BeforeDeclaration:case z.InSpecialComment:case z.BeforeComment:case z.CDATASequence:return this.cbs.oncomment(this.sectionStart,e,0),!0;case z.DeclarationSequence:return this.sequenceIndex!==zC.Doctype.length&&this.cbs.oncomment(this.sectionStart,e,0),!0;case z.InDeclaration:return!0;default:return!1}}handleTrailingData(){let e=this.buffer.length+this.offset;if(!(this.handleTrailingCommentLikeData(e)||this.handleTrailingMarkupDeclaration(e))&&!(this.sectionStart>=e))switch(this.state){case z.InTagName:case z.BeforeAttributeName:case z.BeforeAttributeValue:case z.AfterAttributeName:case z.InAttributeName:case z.InAttributeValueSq:case z.InAttributeValueDq:case z.InAttributeValueNq:case z.InClosingTagName:break;default:this.cbs.ontext(this.sectionStart,e)}}emitCodePoint(e,t){this.baseState!==z.Text&&this.baseState!==z.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}},{fromCodePoint:HC}=String,UC=new Set([`input`,`option`,`optgroup`,`select`,`button`,`datalist`,`textarea`]),WC=new Set([`p`]),GC=new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`p`]),KC=new Set([`thead`,`tbody`]),qC=new Set([`dd`,`dt`]),JC=new Set([`rt`,`rp`]),YC=new Map([[`tr`,new Set([`tr`,`th`,`td`])],[`th`,new Set([`th`])],[`td`,new Set([`thead`,`th`,`td`])],[`body`,new Set([`head`,`link`,`script`])],[`a`,new Set([`a`])],[`li`,new Set([`li`])],[`p`,WC],[`h1`,GC],[`h2`,GC],[`h3`,GC],[`h4`,GC],[`h5`,GC],[`h6`,GC],[`select`,UC],[`input`,UC],[`output`,UC],[`button`,UC],[`datalist`,UC],[`textarea`,UC],[`option`,new Set([`option`])],[`optgroup`,new Set([`optgroup`,`option`])],[`dd`,qC],[`dt`,qC],[`address`,WC],[`article`,WC],[`aside`,WC],[`blockquote`,WC],[`details`,WC],[`div`,WC],[`dl`,WC],[`fieldset`,WC],[`figcaption`,WC],[`figure`,WC],[`footer`,WC],[`form`,WC],[`header`,WC],[`hr`,WC],[`main`,WC],[`nav`,WC],[`ol`,WC],[`pre`,WC],[`section`,WC],[`table`,WC],[`ul`,WC],[`rt`,JC],[`rp`,JC],[`tbody`,KC],[`tfoot`,KC]]),XC=`doctype`,ZC=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),QC=new Set([`math`,`svg`]),$C=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignObject`,`desc`,`title`]),ew=new Map([[`altglyph`,`altGlyph`],[`altglyphdef`,`altGlyphDef`],[`altglyphitem`,`altGlyphItem`],[`animatecolor`,`animateColor`],[`animatemotion`,`animateMotion`],[`animatetransform`,`animateTransform`],[`clippath`,`clipPath`],[`feblend`,`feBlend`],[`fecolormatrix`,`feColorMatrix`],[`fecomponenttransfer`,`feComponentTransfer`],[`fecomposite`,`feComposite`],[`feconvolvematrix`,`feConvolveMatrix`],[`fediffuselighting`,`feDiffuseLighting`],[`fedisplacementmap`,`feDisplacementMap`],[`fedistantlight`,`feDistantLight`],[`fedropshadow`,`feDropShadow`],[`feflood`,`feFlood`],[`fefunca`,`feFuncA`],[`fefuncb`,`feFuncB`],[`fefuncg`,`feFuncG`],[`fefuncr`,`feFuncR`],[`fegaussianblur`,`feGaussianBlur`],[`feimage`,`feImage`],[`femerge`,`feMerge`],[`femergenode`,`feMergeNode`],[`femorphology`,`feMorphology`],[`feoffset`,`feOffset`],[`fepointlight`,`fePointLight`],[`fespecularlighting`,`feSpecularLighting`],[`fespotlight`,`feSpotLight`],[`fetile`,`feTile`],[`feturbulence`,`feTurbulence`],[`foreignobject`,`foreignObject`],[`glyphref`,`glyphRef`],[`lineargradient`,`linearGradient`],[`radialgradient`,`radialGradient`],[`textpath`,`textPath`]]),tw;(function(e){e[e.None=0]=`None`,e[e.Svg=1]=`Svg`,e[e.MathML=2]=`MathML`})(tw||={});var nw=/\s|\//,rw=class{options;startIndex=0;endIndex=0;openTagStart=0;tagname=``;attribname=``;attribvalue=``;attribs=null;stack=[];foreignContext;cbs;lowerCaseTagNames;lowerCaseAttributeNames;recognizeSelfClosing;htmlMode;tokenizer;buffers=[];bufferOffset=0;writeIndex=0;ended=!1;constructor(e,t={}){this.options=t,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=t.lowerCaseTags??this.htmlMode,this.lowerCaseAttributeNames=t.lowerCaseAttributeNames??this.htmlMode,this.recognizeSelfClosing=t.recognizeSelfClosing??!this.htmlMode,this.tokenizer=new(t.Tokenizer??VC)(this.options,this),this.foreignContext=[tw.None],this.cbs.onparserinit?.(this)}ontext(e,t){let n=this.getSlice(e,t);this.endIndex=t-1,this.cbs.ontext?.(n),this.startIndex=t}ontextentity(e,t){this.endIndex=t-1,this.cbs.ontext?.(HC(e)),this.startIndex=t}isInForeignContext(){return this.foreignContext[0]!==tw.None}isVoidElement(e){return this.htmlMode&&ZC.has(e)}readTagName(e,t){let n=this.lowerCaseTagNames?this.getSlice(e,t).toLowerCase():this.getSlice(e,t);if(!(this.lowerCaseTagNames&&this.htmlMode))return n;if(this.foreignContext[0]===tw.Svg)return ew.get(n)??n;if(this.foreignContext.length>1){let e=ew.get(n);if(e!==void 0&&this.stack.includes(e))return e}return this.isInForeignContext()?n:n===`image`?`img`:n}onopentagname(e,t){this.endIndex=t,this.emitOpenTag(this.readTagName(e,t))}emitOpenTag(e){if(this.openTagStart=this.startIndex,this.tagname=e,this.htmlMode&&e===`form`&&this.stack.includes(`form`)){this.tagname=``;return}let t=this.htmlMode&&YC.get(e);if(t)for(;this.stack.length>0&&t.has(this.stack[0]);)this.popElement(!0);this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(e===`svg`?this.foreignContext.unshift(tw.Svg):e===`math`?this.foreignContext.unshift(tw.MathML):$C.has(e)&&this.foreignContext.unshift(tw.None))),this.cbs.onopentagname?.(e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){this.startIndex=this.openTagStart,this.attribs&&=(this.cbs.onopentag?.(this.tagname,this.attribs,e),null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=``}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){this.endIndex=t;let n=this.readTagName(e,t);if(this.isVoidElement(n))this.htmlMode&&n===`br`&&(this.cbs.onopentagname?.(`br`),this.cbs.onopentag?.(`br`,{},!0),this.cbs.onclosetag?.(`br`,!1));else{let e=this.stack.indexOf(n);if(e!==-1){for(let t=0;t<e;t++)this.popElement(!0);this.popElement(!1)}else this.htmlMode&&n===`p`&&(this.emitOpenTag(`p`),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.isInForeignContext()?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}popElement(e){let t=this.stack.shift();this.htmlMode&&(QC.has(t)||$C.has(t))&&this.foreignContext.shift(),this.cbs.onclosetag?.(t,e)}closeCurrentTag(e){let t=this.tagname;this.endOpenTag(e),this.stack[0]===t&&this.popElement(!e)}onattribname(e,t){this.startIndex=e;let n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=HC(e)}onattribend(e,t){this.endIndex=t,this.cbs.onattribute?.(this.attribname,this.attribvalue,e===RC.Double?`"`:e===RC.Single?`'`:e===RC.NoValue?void 0:null),this.attribs&&!Object.hasOwn(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=``}getInstructionName(e){let t=e.search(nw),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.htmlMode?this.lowerCaseTagNames?XC:n.slice(0,7):this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){this.endIndex=t,this.cbs.oncomment?.(this.getSlice(e,t-n)),this.cbs.oncommentend?.(),this.startIndex=t+1}oncdata(e,t,n){this.endIndex=t;let r=this.getSlice(e,t-n);!this.htmlMode||this.options.recognizeCDATA?(this.cbs.oncdatastart?.(),this.cbs.ontext?.(r),this.cbs.oncdataend?.()):this.isInForeignContext()?this.cbs.ontext?.(r):(this.cbs.oncomment?.(`[CDATA[${r}]]`),this.cbs.oncommentend?.()),this.startIndex=t+1}onend(){if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}this.cbs.onend?.()}reset(){this.cbs.onreset?.(),this.tokenizer.reset(),this.tagname=``,this.attribname=``,this.attribvalue=``,this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,this.cbs.onparserinit?.(this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(tw.None),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){if(e===t)return``;for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){if(this.ended){this.cbs.onerror?.(Error(`.write() after done!`));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){if(this.ended){this.cbs.onerror?.(Error(`.end() after done!`));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}},iw=/<\/?([a-zA-Z][a-zA-Z0-9-]{0,})(?:\s+[^>]*)?>/,aw=/^(br|hr|img|input|link|meta|area|base|col|embed|keygen|param|source|track|wbr)$/i,ow=e=>{let t=iw.exec(e);return t?{tag:t[1],isOpening:!e.startsWith(`</`)}:null},sw=e=>{let t=e.raw.match(/<\/?([a-zA-Z][a-zA-Z0-9-]*)/i);if(!t)return e;let n=t[1];if(!aw.test(n))return e;let r=e.raw.endsWith(`/>`)?e.raw:e.raw.replace(/\s*>$/,`/>`);return{...e,raw:r,tag:n,attributes:cw(e.raw)}},cw=e=>{let t={},n=/([a-zA-Z][\w-]*)=(?:"([^"]*)(?:"|$)|'([^']*)(?:'|$))/g,r;for(;(r=n.exec(e))!==null;){let e=r[1];t[e]=(r[2]??r[3]??``).trim()}let i=e.replace(/[a-zA-Z][\w-]*=(?:"[^"]*(?:"|$)|'[^']*(?:'|$))/g,` `),a=/(?:^|\s)([a-zA-Z][\w-]*?)(?=[\s>]|$)/g;for(;(r=a.exec(i))!==null;){let[,e]=r;e&&!t[e]&&(t[e]=``)}return t},lw=e=>Object.entries(e).map(([e,t])=>` ${e}="${t.replace(/"/g,`&quot;`)}"`).join(``),uw=e=>{let t=e.indexOf(`>`);return t!==-1&&e.indexOf(`<`,t+1)!==-1},dw=e=>{let t=[],n=[t],r=[],i=``,a=()=>{i.length!==0&&(i.trim()&&n[n.length-1].push({type:`text`,raw:i,text:i}),i=``)},o=new rw({onopentag:(e,t)=>{if(a(),aw.test(e)){n[n.length-1].push({type:`html`,raw:`<${e}${lw(t)}/>`,tag:e,attributes:t});return}let i=[],s={type:`html`,raw:`<${e}${lw(t)}>`,tag:e,attributes:t};n[n.length-1].push(s),n.push(i),r.push({tag:e,opening:s,childTokens:i,startIndex:o.startIndex})},ontext:e=>{i+=e},onclosetag:(e,t)=>{if(a(),r.length===0)return;let i=r[r.length-1];if(i.tag===e){if(r.pop(),n.pop(),t){let e=n[n.length-1];for(let t of i.childTokens)e.push(t)}else{let e=i.opening;e.sourceLength=o.endIndex-i.startIndex+1,e.tokens=i.childTokens}}}},{xmlMode:!1,recognizeSelfClosing:!0});return o.write(e),o.end(),a(),t},fw=e=>uw(e.raw)?dw(e.raw):[sw(e)],pw=e=>{let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.type!==`html`){t.push(i);continue}if(`tokens`in i&&Array.isArray(i.tokens)){t.push(i);continue}let a=ow(i.raw);if(!a){t.push(i);continue}if(i.raw.endsWith(`/>`)){t.push(i);continue}if(a.isOpening)n.push({tag:a.tag,startIndex:t.length}),t.push(i);else{let e=n.pop();if(!e||e.tag!==a.tag){t.push(i);continue}let r=e.startIndex,o=t.splice(r+1,t.length-r-1),s=t.pop(),c=s.raw.length+o.reduce((e,t)=>e+(t.sourceLength??t.raw.length),0)+i.raw.length;t.push({type:`html`,raw:s.raw,tag:a.tag,tokens:o,attributes:cw(s.raw),sourceLength:c})}}return t},mw=(e,t)=>!e||e.length!==t.length?!1:e.every((e,n)=>e===t[n]),hw=(e,t)=>{let n=e.tokens?_w(e.tokens):[],r=e;return r.listItemIndex===t&&mw(e.tokens,n)?r:{...e,listItemIndex:t,tokens:n}},gw=e=>{let t=e.tokens?_w(e.tokens):[];return mw(e.tokens,t)?e:{...e,tokens:t}},_w=e=>{let t=[];for(let n of e)if(n.type!==`html`&&`tokens`in n&&Array.isArray(n.tokens)){let e=n;e.tokens=_w(e.tokens),t.push(n)}else if(n.type===`list`)n.items=n.items.map(hw),t.push(n);else if(n.type===`table`){let e=n;e.header&&=e.header.map(gw),e.rows&&=e.rows.map(e=>e.map(gw)),t.push(n)}else if(n.type===`html`){let e=fw(n);for(let n of e)t.push(n)}else t.push(n);return pw(t)},vw=(e,t,n)=>{let r=new bx(t);return _w(n?r.inlineTokens(e):r.lex(e))},yw=(e,t,n)=>{let r=mC.getTokens(e,t);if(r)return r;let i=vw(e,t,n);if(typeof t.walkTokens==`function`)for(let e of i)t.walkTokens(e);return mC.setTokens(e,t,i),i},bw=async(e,t,n)=>{let r=mC.getTokens(e,t);if(r)return r;let i=vw(e,t,n);if(typeof t.walkTokens==`function`){let e=new Tx;e.defaults={...e.defaults,...t};let n=e.walkTokens(i,t.walkTokens);await Promise.all(n)}return mC.setTokens(e,t,i),i},xw=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Sw=e=>Array.isArray(e)&&e.every(e=>Array.isArray(e)?Sw(e):xw(e)),Cw=(e,t)=>e.length===t.length&&e.every((e,n)=>{let r=t[n];return Array.isArray(e)||Array.isArray(r)?Array.isArray(e)&&Array.isArray(r)&&Cw(e,r):Tw(e,r)}),ww=(e,t)=>{let n=new Set([...Object.keys(e),...Object.keys(t)]),r=e,i=t;for(let e of n){let t=r[e],n=i[e],a=Sw(t),o=Sw(n);if((a||o)&&(!a||!o||!Cw(t,n)))return!1}return!0},Tw=(e,t)=>{if(e.type!==t.type)return!1;if(typeof e.raw==`string`||typeof t.raw==`string`){if(e.raw!==t.raw)return!1}else if(typeof e.text==`string`||typeof t.text==`string`){if(e.text!==t.text)return!1}else return!1;return ww(e,t)},Ew=(e,t)=>{let n=Math.min(e.length,t.length),r;for(let i=0;i<n;i++){let n=e[i],a=t[i],o=a;Array.isArray(n)&&Array.isArray(a)?o=Ew(n,a):xw(n)&&xw(a)&&(o=Dw(n,a)),o!==a&&(r??=t.slice(),r[i]=o)}return r??t},Dw=(e,t)=>{if(Tw(e,t))return e;let n,r=e,i=t;for(let e of Object.keys(t)){let a=r[e],o=i[e];if(!Sw(a)||!Sw(o))continue;let s=Ew(a,o);if(s!==o){n??={...t};let r=n;r[e]=s}}return n??t},Ow=(e,t,n)=>{let r=Math.min(n,e.length,t.length),i;if(r>0){i=Array(t.length);for(let t=0;t<r;t++)i[t]=e[t];for(let e=r;e<t.length;e++)i[e]=t[e]}if(r<e.length&&r<t.length){let n=Dw(e[r],t[r]);n!==t[r]&&(i??=t.slice(),i[r]=n)}return i??t},kw=Symbol.for(`svelte-markdown.tailWindowSafe`),Aw=e=>{e[kw]=!0},jw=e=>{for(let t of e.extensions??[])`tokenizer`in t&&typeof t.tokenizer==`function`&&Aw(t.tokenizer);return e},Mw=e=>typeof e==`function`&&e[kw]===!0,Nw=/^ {0,3}(`{3,}|~{3,}).*\n[\s\S]*\n {0,3}\1[ \t]*\n*$/,Pw=/\[[^\]\n]+\]\[[^\]\n]*\]/,Fw=/\[[^\]\n]+\](?![[(])/,Iw=/^\s{0,3}\[[^\]\n]+\]:/m,Lw=class{prevTokens=[];prevSource=``;options;tailWindowDisabled;prevHasHtmlSpanMismatch=!1;prevTailWindowBoundary={prefixCount:0,reparseOffset:0};prevHasPotentialReferenceUse=!1;prevHasReferenceDefinition=!1;constructor(e){this.options=e;let t=e.extensions,n=[...t?.block??[],...t?.inline??[]];this.tailWindowDisabled=typeof e.walkTokens==`function`||e.tokenizer!=null||n.some(e=>!Mw(e))}getTailWindowBoundary=()=>this.prevTailWindowBoundary;hasHtmlSpanMismatch=e=>{if(e.type!==`html`)return!1;let t=e;return!t.tag||t.raw.endsWith(`/>`)||t.raw.startsWith(`</`)?!1:t.sourceLength==null};getTokenSourceLength=e=>e.sourceLength??e.raw.length;isStableAtSourceEnd=e=>{if(e.type===`space`)return!1;if(e.raw.endsWith(`
70
+
71
+ `))return!0;switch(e.type){case`heading`:case`hr`:return e.raw.endsWith(`
72
+ `);case`code`:return Nw.test(e.raw);default:return!1}};hasPotentialReferenceUse=e=>!e.includes(`[`)||!e.includes(`]`)?!1:Pw.test(e)||Fw.test(e);hasPotentialReferenceUseOutsideDefinitions=e=>{if(!e.includes(`[`)||!e.includes(`]`))return!1;for(let t of e.split(`
73
+ `))if(!Iw.test(t)&&this.hasPotentialReferenceUse(t))return!0;return!1};hasReferenceDefinition=e=>!e.includes(`[`)||!e.includes(`]`)?!1:Iw.test(e);appendIntroducesMatch=(e,t)=>{if(t(e.slice(this.prevSource.length)))return!0;let n=this.prevSource.lastIndexOf(`
74
+ `)+1;return!t(this.prevSource.slice(n))&&t(e.slice(n))};isAppendOnlyUpdate=e=>this.prevSource!==``&&e.startsWith(this.prevSource);hasNewReferenceDefinition=e=>e.startsWith(this.prevSource)?this.appendIntroducesMatch(e,this.hasReferenceDefinition):!1;appendedDefinitionInvalidatesTail=e=>this.prevHasPotentialReferenceUse&&this.hasNewReferenceDefinition(e);canUseTailWindow=(e,t,n=this.isAppendOnlyUpdate(e),r=this.appendedDefinitionInvalidatesTail(e))=>{if(this.tailWindowDisabled||this.prevSource===``||this.prevTokens.length===0||!n||t.reparseOffset<=0||r)return!1;if(this.prevHasReferenceDefinition){let n=e.slice(t.reparseOffset);if(this.hasPotentialReferenceUseOutsideDefinitions(n))return!1}return!0};parseSource=(e,t,n,r)=>{if(!this.canUseTailWindow(e,t,n,r))return{tokens:vw(e,this.options,!1),tailTokens:[],usedTailWindow:!1};let i=vw(e.slice(t.reparseOffset),this.options,!1);return{tokens:[...this.prevTokens.slice(0,t.prefixCount),...i],tailTokens:i,usedTailWindow:!0}};hasAnyHtmlSpanMismatch=e=>e.some(this.hasHtmlSpanMismatch);getNextTailWindowBoundary=(e,t,n)=>{if(e.length===0||n)return{prefixCount:0,reparseOffset:0};let r=e[e.length-1];return this.isStableAtSourceEnd(r)?{prefixCount:e.length,reparseOffset:t}:{prefixCount:e.length-1,reparseOffset:t-this.getTokenSourceLength(r)}};updateCachedState=(e,t,n,r)=>{let i=t.usedTailWindow?this.prevHasHtmlSpanMismatch||this.hasAnyHtmlSpanMismatch(t.tailTokens):this.hasAnyHtmlSpanMismatch(t.tokens);this.prevHasPotentialReferenceUse=n?this.prevHasPotentialReferenceUse||this.appendIntroducesMatch(e,this.hasPotentialReferenceUseOutsideDefinitions):this.hasPotentialReferenceUseOutsideDefinitions(e),this.prevHasReferenceDefinition=n?this.prevHasReferenceDefinition||r:this.hasReferenceDefinition(e),this.prevSource=e,this.prevTokens=t.tokens,this.prevHasHtmlSpanMismatch=i,this.prevTailWindowBoundary=this.getNextTailWindowBoundary(t.tokens,e.length,i)};update=e=>{let t=this.getTailWindowBoundary(),n=this.isAppendOnlyUpdate(e),r=n&&this.appendIntroducesMatch(e,this.hasReferenceDefinition),i=this.prevHasPotentialReferenceUse&&r,a=this.parseSource(e,t,n,i),o=a.tokens;if(typeof this.options.walkTokens==`function`)for(let e of o)this.options.walkTokens(e);let s=n?i:(this.prevHasReferenceDefinition||this.hasReferenceDefinition(e))&&(this.hasPotentialReferenceUse(this.prevSource)||this.hasPotentialReferenceUse(e)),c=n&&!s,l=0,u=a.usedTailWindow?t.reparseOffset:0;if(!s){let e=Math.min(this.prevTokens.length,o.length);for(;l<e;){let e=this.prevTokens[l],n=o[l];if(!Tw(e,n))break;a.usedTailWindow?u!==void 0&&l>=t.prefixCount&&(u+=this.getTokenSourceLength(n)):u!==void 0&&(this.hasHtmlSpanMismatch(n)?u=void 0:u+=this.getTokenSourceLength(n)),l++}}return this.updateCachedState(e,a,n,r),{tokens:o,divergeAt:l,divergeOffset:u,canReuse:c,usedTailWindow:a.usedTailWindow}}},Rw=1e6,zw=e=>typeof e==`object`&&!!e&&`offset`in e,Bw=(e,t,{currentBufferLength:n=0,maxOffsetGap:r=Rw}={})=>typeof e==`string`?t===`offset`?{kind:`drop`,message:`offset mode active, string chunk dropped. Call resetStream() before switching streaming input modes.`}:{kind:`append`,value:e,nextMode:`append`}:!zw(e)||typeof e.value!=`string`?{kind:`drop`,message:`Invalid chunk object passed to writeChunk(); expected { value: string, offset: number }.`}:!Number.isSafeInteger(e.offset)||e.offset<0?{kind:`drop`,message:`Invalid offset chunk passed to writeChunk(); offset must be a non-negative safe integer.`}:t===`append`?{kind:`drop`,message:`append mode active, offset chunk dropped. Call resetStream() before switching streaming input modes.`}:e.offset-n>r?{kind:`drop`,message:`offset chunk skipped: offset ${e.offset} is more than ${r} chars beyond the current buffer length (${n}).`}:{kind:`offset`,chunk:e,nextMode:`offset`},Vw=(e,t)=>e+t,Hw=(e,t)=>t===``?{committed:!1,sourceBuffer:e,pendingBuffer:t}:{committed:!0,sourceBuffer:e+t,pendingBuffer:``},Uw=(e,t=256)=>e.length>=t,Ww=(e,{value:t,offset:n},{maxOffsetGap:r=Rw}={})=>{let i=Math.max(0,n-e.length),a=Math.min(i,Math.max(0,r)),o=n>e.length?e.length+a:n,s=a>0?e+` `.repeat(a):e,c=s.slice(0,o),l=s.slice(o+t.length);return c+t+l},Gw=new Set([`$$slots`,`$$events`,`$$legacy`,`source`,`streaming`,`streamId`,`renderers`,`options`,`isInline`,`parsed`,`extensions`,`sanitizeUrl`,`sanitizeAttributes`]);function Kw(e,t){ie(t,!0);let n=De(t,`source`,19,()=>[]),r=De(t,`streaming`,3,!1),i=De(t,`streamId`,3,void 0),a=De(t,`renderers`,19,()=>({})),o=De(t,`options`,19,()=>({})),s=De(t,`isInline`,3,!1),c=De(t,`parsed`,3,()=>{}),l=De(t,`extensions`,19,()=>[]),d=De(t,`sanitizeUrl`,3,AS),f=De(t,`sanitizeAttributes`,3,jS),p=ae(t,Gw),m=A(()=>nC(l())),h=A(()=>oC(o(),l())),g=new Vy,_=zS();Fe(MS,_);let v=A(()=>iC(l())),y,b,ee,x,S,C=``,w=``,T=null,te=null,D=null,O=oe(me([])),ne=0,k=0,re=e=>{console.warn(`[svelte-markdown] ${e}`)},se=()=>{y=void 0,b=void 0,ee=void 0},j=()=>{te&&=(te.kind===`raf`&&typeof cancelAnimationFrame==`function`?cancelAnimationFrame(te.id):te.kind===`timeout`&&clearTimeout(te.id),null)},ce=()=>!y||b!==o()||ee!==l(),le=(e,t=!1)=>{(t||ce())&&(y=new Lw(u(h)),b=o(),ee=l());let n=y;if(!n)return;let{tokens:r,divergeAt:i,divergeOffset:a,canReuse:s}=n.update(e);F(O,s?Ow(u(O),r,i):r,!0);let c=s&&a!==void 0;ne=c?i:0,k=c?a:0},ue=()=>{let e=Hw(C,w);return e.committed?(C=e.sourceBuffer,w=e.pendingBuffer,!0):!1},de=(e=!1)=>{if(j(),T!==null){let t=T;T=null,w=``,C=t,le(t,e);return}ue()&&le(C,e)},M=()=>{if(!(te||w===``&&T===null)){if(typeof window<`u`&&typeof window.requestAnimationFrame==`function`){te={kind:`raf`,id:window.requestAnimationFrame(()=>{te=null,de()})};return}te={kind:`timeout`,id:setTimeout(()=>{te=null,de()},16)}}},fe=()=>{j(),w=``,T=null,D=null,C=``,ne=0,k=0},pe=(e=``)=>{if(fe(),C=e,e===``){se(),F(O,[],!0);return}le(e,!0)},he=e=>{if(x=e,Array.isArray(e)){fe(),se(),F(O,[...e],!0);return}let t=e,n=y!==void 0&&C!==``&&t!==``&&t.length>C.length&&t.startsWith(C);if(n){w=``,T=t,M();return}if(fe(),t===``){se(),F(O,[],!0);return}C=t,le(t,!n)},ge=()=>{if(Array.isArray(n())){he(n());return}x=n(),pe(n())},ve=e=>r()?u(v)?(re(`${e}() is unavailable when async extensions are used; call dropped.`),!1):!Array.isArray(n())||(re(`${e}() requires a string-backed source; token array sources are not supported.`),!1):(re(`${e}() is only available when streaming={true}; call dropped.`),!1),ye=e=>{if(T!==null&&de(),w=Vw(w,e),Uw(w)){de();return}M()},be=e=>{C=Ww(C,e,{maxOffsetGap:Rw}),le(C)};function N(e){if(!ve(`writeChunk`))return;S!==i()&&(S=i(),ge()),T!==null&&de();let t=Bw(e,D,{currentBufferLength:C.length,maxOffsetGap:Rw});if(t.kind===`drop`){re(t.message);return}if(D=t.nextMode,t.kind===`append`){ye(t.value);return}be(t.chunk)}function xe(e=``){ve(`resetStream`)&&pe(e)}E(()=>()=>{j()}),E(()=>{if(!r()||u(v)){fe(),y&&se(),x=n(),S=i(),r()&&u(v)&&re(`streaming prop is ignored when async extensions are used. Remove async extensions or set streaming={false} to silence this warning.`);return}if(S!==i()){S=i(),ge();return}if(x!==n()){he(n());return}if(!Array.isArray(n())&&ce()){if(T!==null){de(!0);return}if(w!==``){de(!0);return}if(C===``){se(),F(O,[],!0);return}le(C,!0)}});let Se=A(()=>{if(!u(v)&&!r())return Array.isArray(n())?n():n()===``?[]:yw(n(),u(h),s())}),Ce=oe(void 0),we=0;E(()=>{if(!u(v))return;if(Array.isArray(n())){F(Ce,n(),!0);return}if(n()===``){F(Ce,[],!0);return}let e=n(),t=u(h),r=s(),i=++we;bw(e,t,r).then(e=>{i===we&&F(Ce,e,!0)}).catch(e=>{i===we&&(console.error(`[svelte-markdown] async walkTokens failed:`,e),F(Ce,[],!0))})});let Te=A(()=>r()&&!u(v)?u(O):u(v)?u(Ce):u(Se)),Ee=A(()=>{if(!u(Te))return u(Te);let e=Array.isArray(n())?void 0:r()&&!u(v)?C:n(),t=r()&&!u(v)?{startIndex:ne,startOffset:k}:{};return _.prepareTokensForRender(u(Te),u(h),{source:e,...t})});E(()=>{u(Ee)&&c()(u(Ee))});let P=A(()=>qS(a())),Oe=A(()=>JS(u(m))),I=A(()=>YS(p,u(Oe))),ke=A(()=>XS(p)),Ae=A(()=>ZS(p,u(Oe)));var je={writeChunk:N,resetStream:xe};return WS(e,_e({get tokens(){return u(Ee)}},()=>u(Ae),{get options(){return u(h)},slug:e=>g.slug(e),get renderers(){return u(P)},get snippetOverrides(){return u(I)},get htmlSnippetOverrides(){return u(ke)},get sanitizeUrl(){return d()},get sanitizeAttributes(){return f()}})),Le(je)}var qw=((e,t,n)=>{let r=t=>e.includes(t),i=()=>{let r={};for(let i of e)r[i]=n[i]===null?null:t;return r};return{buildUnsupported:i,allowOnly:e=>{let t=i();for(let i of e)if(Array.isArray(i)){let[e,n]=i;r(e)&&(t[e]=n)}else{let e=i;r(e)&&(t[e]=n[e])}return t},excludeOnly:(i,a)=>{let o={};for(let t of e)o[t]=n[t];for(let e of i)r(e)&&(o[e]=t);if(a)for(let[e,t]of a)i.includes(e)||r(e)&&(o[e]=t);return o}}})(KS,Ly,Ry),Jw=qw.buildUnsupported;qw.allowOnly,qw.excludeOnly;var Yw=Kw,B=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},Xw=/([A-Z])/g,Zw=e=>e.replace(Xw,`-$1`).toLowerCase(),Qw={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},$w=/[&><"']/g,eT=e=>String(e).replace($w,e=>Qw[e]),tT=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?tT(e.body[0]):e:e.type===`font`?tT(e.body):e,nT=new Set([`mathord`,`textord`,`atom`]),rT=e=>nT.has(tT(e).type),iT=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},aT={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function oT(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function sT(e){return e.default===void 0?oT(Array.isArray(e.type)?e.type[0]:e.type):e.default}function cT(e,t,n,r){var i=n[t];e[t]=i===void 0?sT(r):r.processor?r.processor(i):i}var lT=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(aT)){var n=aT[t];n&&cT(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new B(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=iT(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},uT=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return yT[bT[this.id]]}sub(){return yT[xT[this.id]]}fracNum(){return yT[ST[this.id]]}fracDen(){return yT[CT[this.id]]}cramp(){return yT[wT[this.id]]}text(){return yT[TT[this.id]]}isTight(){return this.size>=2}},dT=0,fT=1,pT=2,mT=3,hT=4,gT=5,_T=6,vT=7,yT=[new uT(dT,0,!1),new uT(fT,0,!0),new uT(pT,1,!1),new uT(mT,1,!0),new uT(hT,2,!1),new uT(gT,2,!0),new uT(_T,3,!1),new uT(vT,3,!0)],bT=[hT,gT,hT,gT,_T,vT,_T,vT],xT=[gT,gT,gT,gT,vT,vT,vT,vT],ST=[pT,mT,hT,gT,_T,vT,_T,vT],CT=[mT,mT,gT,gT,vT,vT,vT,vT],wT=[fT,fT,mT,mT,gT,gT,vT,vT],TT=[dT,fT,pT,mT,pT,mT,pT,mT],ET={DISPLAY:yT[dT],TEXT:yT[pT],SCRIPT:yT[hT],SCRIPTSCRIPT:yT[_T]},DT=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function OT(e){for(var t=0;t<DT.length;t++)for(var n=DT[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var kT=[];DT.forEach(e=>e.blocks.forEach(e=>kT.push(...e)));function AT(e){for(var t=0;t<kT.length;t+=2)if(e>=kT[t]&&e<=kT[t+1])return!0;return!1}var jT=e=>e+` `+e,MT=80,NT=function(e,t){return`M95,`+(622+e+t)+`
75
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
76
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
77
+ 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
78
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
79
+ c69,-144,104.5,-217.7,106.5,-221
80
+ l`+e/2.075+` -`+e+`
81
+ c5.3,-9.3,12,-14,20,-14
82
+ H400000v`+(40+e)+`H845.2724
83
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
84
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
85
+ M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},PT=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
86
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
87
+ c340,-704.7,510.7,-1060.3,512,-1067
88
+ l`+e/2.084+` -`+e+`
89
+ c4.7,-7.3,11,-11,19,-11
90
+ H40000v`+(40+e)+`H1012.3
91
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
92
+ 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
93
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
94
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
95
+ M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},FT=function(e,t){return`M983 `+(10+e+t)+`
96
+ l`+e/3.13+` -`+e+`
97
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
98
+ 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
99
+ 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
100
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
101
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
102
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
103
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
104
+ M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},IT=function(e,t){return`M424,`+(2398+e+t)+`
105
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
106
+ 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
107
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
108
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
109
+ l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000
110
+ v`+(40+e)+`H1014.6
111
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
112
+ c-2,6,-10,9,-24,9
113
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
114
+ h400000v`+(40+e)+`h-400000z`},LT=function(e,t){return`M473,`+(2713+e+t)+`
115
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
116
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
117
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
118
+ 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
119
+ 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
120
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
121
+ 606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},RT=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},zT=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
122
+ H742v`+r+`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
123
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
124
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
125
+ 219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},BT=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=NT(t,MT);break;case`sqrtSize1`:r=PT(t,MT);break;case`sqrtSize2`:r=FT(t,MT);break;case`sqrtSize3`:r=IT(t,MT);break;case`sqrtSize4`:r=LT(t,MT);break;case`sqrtTall`:r=zT(t,MT,n)}return r},VT=function(e,t){switch(e){case`⎜`:return jT(`M291 0 H417 V`+t+` H291z`);case`∣`:return jT(`M145 0 H188 V`+t+` H145z`);case`∥`:return jT(`M145 0 H188 V`+t+` H145z`)+jT(`M367 0 H410 V`+t+` H367z`);case`⎟`:return jT(`M457 0 H583 V`+t+` H457z`);case`⎢`:return jT(`M319 0 H403 V`+t+` H319z`);case`⎥`:return jT(`M263 0 H347 V`+t+` H263z`);case`⎪`:return jT(`M384 0 H504 V`+t+` H384z`);case`⏐`:return jT(`M312 0 H355 V`+t+` H312z`);case`‖`:return jT(`M257 0 H300 V`+t+` H257z`)+jT(`M478 0 H521 V`+t+` H478z`);default:return``}},HT={doubleleftarrow:`M262 157
126
+ 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
127
+ 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
128
+ 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
129
+ 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
130
+ 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
131
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
132
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
133
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
134
+ -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
135
+ 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
136
+ -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
137
+ -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
138
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
139
+ 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
140
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
141
+ 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
142
+ -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
143
+ 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
144
+ 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
145
+ 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
146
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
147
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
148
+ 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
149
+ 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
150
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
151
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
152
+ 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
153
+ 435 0h399565z`,leftgroupunder:`M400000 262
154
+ 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
155
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
156
+ -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
157
+ -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
158
+ -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
159
+ 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
160
+ -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
161
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
162
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
163
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
164
+ 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
165
+ -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
166
+ 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
167
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
168
+ 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
169
+ -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
170
+ -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
171
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:jT(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:jT(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:jT(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:jT(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
172
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
173
+ 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
174
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:jT(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
175
+ 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
176
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
177
+ 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
178
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
179
+ 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
180
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
181
+ 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
182
+ -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
183
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
184
+ 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
185
+ 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
186
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
187
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
188
+ 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
189
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
190
+ 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
191
+ 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
192
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
193
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
194
+ 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
195
+ -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
196
+ 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
197
+ 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
198
+ -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
199
+ -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
200
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
201
+ -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
202
+ 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
203
+ 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
204
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
205
+ -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
206
+ 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
207
+ 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
208
+ -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
209
+ -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
210
+ 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
211
+ -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
212
+ 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
213
+ 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
214
+ 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
215
+ -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
216
+ -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
217
+ 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
218
+ 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
219
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
220
+ 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
221
+ 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
222
+ -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
223
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:jT(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:jT(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:jT(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
224
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
225
+ -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
226
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
227
+ 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
228
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
229
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
230
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
231
+ 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
232
+ 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
233
+ 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
234
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
235
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
236
+ 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
237
+ -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
238
+ 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
239
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
240
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
241
+ -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
242
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
243
+ 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
244
+ 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
245
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
246
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
247
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
248
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
249
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
250
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
251
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
252
+ -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
253
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
254
+ 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
255
+ -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
256
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
257
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
258
+ 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
259
+ 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
260
+ -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
261
+ -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
262
+ -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,
263
+ -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,
264
+ -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,
265
+ -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,
266
+ -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
267
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
268
+ 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
269
+ 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
270
+ 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
271
+ 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
272
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
273
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
274
+ -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
275
+ 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
276
+ -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
277
+ -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
278
+ -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
279
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
280
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
281
+ 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
282
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
283
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
284
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
285
+ 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,
286
+ -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
287
+ 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
288
+ 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
289
+ 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,
290
+ 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,
291
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
292
+ 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
293
+ 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,
294
+ -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
295
+ 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
296
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},UT=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
297
+ H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
298
+ M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
299
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
300
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
301
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
302
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
303
+ M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
304
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
305
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z
306
+ MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z
307
+ MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z
308
+ M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z
309
+ M347 1759 V0 h-84 V1759 v`+t+` 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
310
+ 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,
311
+ -36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
312
+ 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
313
+ 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,
314
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
315
+ l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
316
+ -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,
317
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
318
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
319
+ 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
320
+ 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
321
+ 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
322
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
323
+ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
324
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function WT(e){return`toText`in e}var GT=class{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 this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(WT(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},KT={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},qT={ex:!0,em:!0,mu:!0},JT=function(e){return typeof e!=`string`&&(e=e.unit),e in KT||e in qT||e===`ex`},YT=function(e,t){var n;if(e.unit in KT)n=KT[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new B(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},V=function(e){return+e.toFixed(4)+`em`},XT=function(e){return e.filter(e=>e).join(` `)},ZT=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=Zw(n)+`:`+r+`;`)}return t},QT=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},$T=function(e){var t=document.createElement(e);t.className=XT(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},eE=/[\s"'>/=\x00-\x1f]/,tE=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+eT(XT(this.classes))+`"`);var n=ZT(this.style);n&&(t+=` style="`+eT(n)+`"`);for(var r of Object.keys(this.attributes)){if(eE.test(r))throw new B(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+eT(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},nE=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,QT.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return $T.call(this,`span`)}toMarkup(){return tE.call(this,`span`)}},rE=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,QT.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return $T.call(this,`a`)}toMarkup(){return tE.call(this,`a`)}},iE=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+eT(this.src)+`"`+(` alt="`+eT(this.alt)+`"`),t=ZT(this.style);return t&&(e+=` style="`+eT(t)+`"`),e+=`'/>`,e}},aE={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},oE=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=OT(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=aE[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=V(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=XT(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=eT(XT(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+V(this.italic)+`;`),n+=ZT(this.style),n&&(e=!0,t+=` style="`+eT(n)+`"`);var r=eT(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},sE=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+eT(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},cE=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,HT[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+eT(this.alternate)+`"/>`:`<path d="`+eT(HT[this.pathName])+`"/>`}},lE=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+eT(this.attributes[t])+`"`;return e+=`/>`,e}};function uE(e){if(e instanceof oE)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function dE(e){if(e instanceof nE)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var fE=e=>e instanceof nE||e instanceof rE||e instanceof GT,pE={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},mE={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},hE={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function gE(e,t){pE[e]=t}function _E(e,t,n){if(!pE[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=pE[t][r];if(!i&&e[0]in hE&&(r=hE[e[0]].charCodeAt(0),i=pE[t][r]),!i&&n===`text`&&AT(r)&&(i=pE[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var vE={};function yE(e){var t=e>=5?0:e>=3?1:2;if(!vE[t]){var n=vE[t]={cssEmPerMu:mE.quad[t]/18};for(var r in mE)mE.hasOwnProperty(r)&&(n[r]=mE[r][t])}return vE[t]}var bE={math:{},text:{}};function H(e,t,n,r,i,a){bE[e][i]={font:t,group:n,replace:r},a&&r&&(bE[e][r]=bE[e][i])}var U=`math`,W=`text`,G=`main`,K=`ams`,xE=`accent-token`,q=`bin`,SE=`close`,CE=`inner`,wE=`mathord`,TE=`op-token`,EE=`open`,DE=`punct`,J=`rel`,OE=`spacing`,Y=`textord`;H(U,G,J,`≡`,`\\equiv`,!0),H(U,G,J,`≺`,`\\prec`,!0),H(U,G,J,`≻`,`\\succ`,!0),H(U,G,J,`∼`,`\\sim`,!0),H(U,G,J,`⊥`,`\\perp`),H(U,G,J,`⪯`,`\\preceq`,!0),H(U,G,J,`⪰`,`\\succeq`,!0),H(U,G,J,`≃`,`\\simeq`,!0),H(U,G,J,`∣`,`\\mid`,!0),H(U,G,J,`≪`,`\\ll`,!0),H(U,G,J,`≫`,`\\gg`,!0),H(U,G,J,`≍`,`\\asymp`,!0),H(U,G,J,`∥`,`\\parallel`),H(U,G,J,`⋈`,`\\bowtie`,!0),H(U,G,J,`⌣`,`\\smile`,!0),H(U,G,J,`⊑`,`\\sqsubseteq`,!0),H(U,G,J,`⊒`,`\\sqsupseteq`,!0),H(U,G,J,`≐`,`\\doteq`,!0),H(U,G,J,`⌢`,`\\frown`,!0),H(U,G,J,`∋`,`\\ni`,!0),H(U,G,J,`∝`,`\\propto`,!0),H(U,G,J,`⊢`,`\\vdash`,!0),H(U,G,J,`⊣`,`\\dashv`,!0),H(U,G,J,`∋`,`\\owns`),H(U,G,DE,`.`,`\\ldotp`),H(U,G,DE,`⋅`,`\\cdotp`),H(U,G,DE,`⋅`,`·`),H(W,G,Y,`⋅`,`·`),H(U,G,Y,`#`,`\\#`),H(W,G,Y,`#`,`\\#`),H(U,G,Y,`&`,`\\&`),H(W,G,Y,`&`,`\\&`),H(U,G,Y,`ℵ`,`\\aleph`,!0),H(U,G,Y,`∀`,`\\forall`,!0),H(U,G,Y,`ℏ`,`\\hbar`,!0),H(U,G,Y,`∃`,`\\exists`,!0),H(U,G,Y,`∇`,`\\nabla`,!0),H(U,G,Y,`♭`,`\\flat`,!0),H(U,G,Y,`ℓ`,`\\ell`,!0),H(U,G,Y,`♮`,`\\natural`,!0),H(U,G,Y,`♣`,`\\clubsuit`,!0),H(U,G,Y,`℘`,`\\wp`,!0),H(U,G,Y,`♯`,`\\sharp`,!0),H(U,G,Y,`♢`,`\\diamondsuit`,!0),H(U,G,Y,`ℜ`,`\\Re`,!0),H(U,G,Y,`♡`,`\\heartsuit`,!0),H(U,G,Y,`ℑ`,`\\Im`,!0),H(U,G,Y,`♠`,`\\spadesuit`,!0),H(U,G,Y,`§`,`\\S`,!0),H(W,G,Y,`§`,`\\S`),H(U,G,Y,`¶`,`\\P`,!0),H(W,G,Y,`¶`,`\\P`),H(U,G,Y,`†`,`\\dag`),H(W,G,Y,`†`,`\\dag`),H(W,G,Y,`†`,`\\textdagger`),H(U,G,Y,`‡`,`\\ddag`),H(W,G,Y,`‡`,`\\ddag`),H(W,G,Y,`‡`,`\\textdaggerdbl`),H(U,G,SE,`⎱`,`\\rmoustache`,!0),H(U,G,EE,`⎰`,`\\lmoustache`,!0),H(U,G,SE,`⟯`,`\\rgroup`,!0),H(U,G,EE,`⟮`,`\\lgroup`,!0),H(U,G,q,`∓`,`\\mp`,!0),H(U,G,q,`⊖`,`\\ominus`,!0),H(U,G,q,`⊎`,`\\uplus`,!0),H(U,G,q,`⊓`,`\\sqcap`,!0),H(U,G,q,`∗`,`\\ast`),H(U,G,q,`⊔`,`\\sqcup`,!0),H(U,G,q,`◯`,`\\bigcirc`,!0),H(U,G,q,`∙`,`\\bullet`,!0),H(U,G,q,`‡`,`\\ddagger`),H(U,G,q,`≀`,`\\wr`,!0),H(U,G,q,`⨿`,`\\amalg`),H(U,G,q,`&`,`\\And`),H(U,G,J,`⟵`,`\\longleftarrow`,!0),H(U,G,J,`⇐`,`\\Leftarrow`,!0),H(U,G,J,`⟸`,`\\Longleftarrow`,!0),H(U,G,J,`⟶`,`\\longrightarrow`,!0),H(U,G,J,`⇒`,`\\Rightarrow`,!0),H(U,G,J,`⟹`,`\\Longrightarrow`,!0),H(U,G,J,`↔`,`\\leftrightarrow`,!0),H(U,G,J,`⟷`,`\\longleftrightarrow`,!0),H(U,G,J,`⇔`,`\\Leftrightarrow`,!0),H(U,G,J,`⟺`,`\\Longleftrightarrow`,!0),H(U,G,J,`↦`,`\\mapsto`,!0),H(U,G,J,`⟼`,`\\longmapsto`,!0),H(U,G,J,`↗`,`\\nearrow`,!0),H(U,G,J,`↩`,`\\hookleftarrow`,!0),H(U,G,J,`↪`,`\\hookrightarrow`,!0),H(U,G,J,`↘`,`\\searrow`,!0),H(U,G,J,`↼`,`\\leftharpoonup`,!0),H(U,G,J,`⇀`,`\\rightharpoonup`,!0),H(U,G,J,`↙`,`\\swarrow`,!0),H(U,G,J,`↽`,`\\leftharpoondown`,!0),H(U,G,J,`⇁`,`\\rightharpoondown`,!0),H(U,G,J,`↖`,`\\nwarrow`,!0),H(U,G,J,`⇌`,`\\rightleftharpoons`,!0),H(U,K,J,`≮`,`\\nless`,!0),H(U,K,J,``,`\\@nleqslant`),H(U,K,J,``,`\\@nleqq`),H(U,K,J,`⪇`,`\\lneq`,!0),H(U,K,J,`≨`,`\\lneqq`,!0),H(U,K,J,``,`\\@lvertneqq`),H(U,K,J,`⋦`,`\\lnsim`,!0),H(U,K,J,`⪉`,`\\lnapprox`,!0),H(U,K,J,`⊀`,`\\nprec`,!0),H(U,K,J,`⋠`,`\\npreceq`,!0),H(U,K,J,`⋨`,`\\precnsim`,!0),H(U,K,J,`⪹`,`\\precnapprox`,!0),H(U,K,J,`≁`,`\\nsim`,!0),H(U,K,J,``,`\\@nshortmid`),H(U,K,J,`∤`,`\\nmid`,!0),H(U,K,J,`⊬`,`\\nvdash`,!0),H(U,K,J,`⊭`,`\\nvDash`,!0),H(U,K,J,`⋪`,`\\ntriangleleft`),H(U,K,J,`⋬`,`\\ntrianglelefteq`,!0),H(U,K,J,`⊊`,`\\subsetneq`,!0),H(U,K,J,``,`\\@varsubsetneq`),H(U,K,J,`⫋`,`\\subsetneqq`,!0),H(U,K,J,``,`\\@varsubsetneqq`),H(U,K,J,`≯`,`\\ngtr`,!0),H(U,K,J,``,`\\@ngeqslant`),H(U,K,J,``,`\\@ngeqq`),H(U,K,J,`⪈`,`\\gneq`,!0),H(U,K,J,`≩`,`\\gneqq`,!0),H(U,K,J,``,`\\@gvertneqq`),H(U,K,J,`⋧`,`\\gnsim`,!0),H(U,K,J,`⪊`,`\\gnapprox`,!0),H(U,K,J,`⊁`,`\\nsucc`,!0),H(U,K,J,`⋡`,`\\nsucceq`,!0),H(U,K,J,`⋩`,`\\succnsim`,!0),H(U,K,J,`⪺`,`\\succnapprox`,!0),H(U,K,J,`≆`,`\\ncong`,!0),H(U,K,J,``,`\\@nshortparallel`),H(U,K,J,`∦`,`\\nparallel`,!0),H(U,K,J,`⊯`,`\\nVDash`,!0),H(U,K,J,`⋫`,`\\ntriangleright`),H(U,K,J,`⋭`,`\\ntrianglerighteq`,!0),H(U,K,J,``,`\\@nsupseteqq`),H(U,K,J,`⊋`,`\\supsetneq`,!0),H(U,K,J,``,`\\@varsupsetneq`),H(U,K,J,`⫌`,`\\supsetneqq`,!0),H(U,K,J,``,`\\@varsupsetneqq`),H(U,K,J,`⊮`,`\\nVdash`,!0),H(U,K,J,`⪵`,`\\precneqq`,!0),H(U,K,J,`⪶`,`\\succneqq`,!0),H(U,K,J,``,`\\@nsubseteqq`),H(U,K,q,`⊴`,`\\unlhd`),H(U,K,q,`⊵`,`\\unrhd`),H(U,K,J,`↚`,`\\nleftarrow`,!0),H(U,K,J,`↛`,`\\nrightarrow`,!0),H(U,K,J,`⇍`,`\\nLeftarrow`,!0),H(U,K,J,`⇏`,`\\nRightarrow`,!0),H(U,K,J,`↮`,`\\nleftrightarrow`,!0),H(U,K,J,`⇎`,`\\nLeftrightarrow`,!0),H(U,K,J,`△`,`\\vartriangle`),H(U,K,Y,`ℏ`,`\\hslash`),H(U,K,Y,`▽`,`\\triangledown`),H(U,K,Y,`◊`,`\\lozenge`),H(U,K,Y,`Ⓢ`,`\\circledS`),H(U,K,Y,`®`,`\\circledR`),H(W,K,Y,`®`,`\\circledR`),H(U,K,Y,`∡`,`\\measuredangle`,!0),H(U,K,Y,`∄`,`\\nexists`),H(U,K,Y,`℧`,`\\mho`),H(U,K,Y,`Ⅎ`,`\\Finv`,!0),H(U,K,Y,`⅁`,`\\Game`,!0),H(U,K,Y,`‵`,`\\backprime`),H(U,K,Y,`▲`,`\\blacktriangle`),H(U,K,Y,`▼`,`\\blacktriangledown`),H(U,K,Y,`■`,`\\blacksquare`),H(U,K,Y,`⧫`,`\\blacklozenge`),H(U,K,Y,`★`,`\\bigstar`),H(U,K,Y,`∢`,`\\sphericalangle`,!0),H(U,K,Y,`∁`,`\\complement`,!0),H(U,K,Y,`ð`,`\\eth`,!0),H(W,G,Y,`ð`,`ð`),H(U,K,Y,`╱`,`\\diagup`),H(U,K,Y,`╲`,`\\diagdown`),H(U,K,Y,`□`,`\\square`),H(U,K,Y,`□`,`\\Box`),H(U,K,Y,`◊`,`\\Diamond`),H(U,K,Y,`¥`,`\\yen`,!0),H(W,K,Y,`¥`,`\\yen`,!0),H(U,K,Y,`✓`,`\\checkmark`,!0),H(W,K,Y,`✓`,`\\checkmark`),H(U,K,Y,`ℶ`,`\\beth`,!0),H(U,K,Y,`ℸ`,`\\daleth`,!0),H(U,K,Y,`ℷ`,`\\gimel`,!0),H(U,K,Y,`ϝ`,`\\digamma`,!0),H(U,K,Y,`ϰ`,`\\varkappa`),H(U,K,EE,`┌`,`\\@ulcorner`,!0),H(U,K,SE,`┐`,`\\@urcorner`,!0),H(U,K,EE,`└`,`\\@llcorner`,!0),H(U,K,SE,`┘`,`\\@lrcorner`,!0),H(U,K,J,`≦`,`\\leqq`,!0),H(U,K,J,`⩽`,`\\leqslant`,!0),H(U,K,J,`⪕`,`\\eqslantless`,!0),H(U,K,J,`≲`,`\\lesssim`,!0),H(U,K,J,`⪅`,`\\lessapprox`,!0),H(U,K,J,`≊`,`\\approxeq`,!0),H(U,K,q,`⋖`,`\\lessdot`),H(U,K,J,`⋘`,`\\lll`,!0),H(U,K,J,`≶`,`\\lessgtr`,!0),H(U,K,J,`⋚`,`\\lesseqgtr`,!0),H(U,K,J,`⪋`,`\\lesseqqgtr`,!0),H(U,K,J,`≑`,`\\doteqdot`),H(U,K,J,`≓`,`\\risingdotseq`,!0),H(U,K,J,`≒`,`\\fallingdotseq`,!0),H(U,K,J,`∽`,`\\backsim`,!0),H(U,K,J,`⋍`,`\\backsimeq`,!0),H(U,K,J,`⫅`,`\\subseteqq`,!0),H(U,K,J,`⋐`,`\\Subset`,!0),H(U,K,J,`⊏`,`\\sqsubset`,!0),H(U,K,J,`≼`,`\\preccurlyeq`,!0),H(U,K,J,`⋞`,`\\curlyeqprec`,!0),H(U,K,J,`≾`,`\\precsim`,!0),H(U,K,J,`⪷`,`\\precapprox`,!0),H(U,K,J,`⊲`,`\\vartriangleleft`),H(U,K,J,`⊴`,`\\trianglelefteq`),H(U,K,J,`⊨`,`\\vDash`,!0),H(U,K,J,`⊪`,`\\Vvdash`,!0),H(U,K,J,`⌣`,`\\smallsmile`),H(U,K,J,`⌢`,`\\smallfrown`),H(U,K,J,`≏`,`\\bumpeq`,!0),H(U,K,J,`≎`,`\\Bumpeq`,!0),H(U,K,J,`≧`,`\\geqq`,!0),H(U,K,J,`⩾`,`\\geqslant`,!0),H(U,K,J,`⪖`,`\\eqslantgtr`,!0),H(U,K,J,`≳`,`\\gtrsim`,!0),H(U,K,J,`⪆`,`\\gtrapprox`,!0),H(U,K,q,`⋗`,`\\gtrdot`),H(U,K,J,`⋙`,`\\ggg`,!0),H(U,K,J,`≷`,`\\gtrless`,!0),H(U,K,J,`⋛`,`\\gtreqless`,!0),H(U,K,J,`⪌`,`\\gtreqqless`,!0),H(U,K,J,`≖`,`\\eqcirc`,!0),H(U,K,J,`≗`,`\\circeq`,!0),H(U,K,J,`≜`,`\\triangleq`,!0),H(U,K,J,`∼`,`\\thicksim`),H(U,K,J,`≈`,`\\thickapprox`),H(U,K,J,`⫆`,`\\supseteqq`,!0),H(U,K,J,`⋑`,`\\Supset`,!0),H(U,K,J,`⊐`,`\\sqsupset`,!0),H(U,K,J,`≽`,`\\succcurlyeq`,!0),H(U,K,J,`⋟`,`\\curlyeqsucc`,!0),H(U,K,J,`≿`,`\\succsim`,!0),H(U,K,J,`⪸`,`\\succapprox`,!0),H(U,K,J,`⊳`,`\\vartriangleright`),H(U,K,J,`⊵`,`\\trianglerighteq`),H(U,K,J,`⊩`,`\\Vdash`,!0),H(U,K,J,`∣`,`\\shortmid`),H(U,K,J,`∥`,`\\shortparallel`),H(U,K,J,`≬`,`\\between`,!0),H(U,K,J,`⋔`,`\\pitchfork`,!0),H(U,K,J,`∝`,`\\varpropto`),H(U,K,J,`◀`,`\\blacktriangleleft`),H(U,K,J,`∴`,`\\therefore`,!0),H(U,K,J,`∍`,`\\backepsilon`),H(U,K,J,`▶`,`\\blacktriangleright`),H(U,K,J,`∵`,`\\because`,!0),H(U,K,J,`⋘`,`\\llless`),H(U,K,J,`⋙`,`\\gggtr`),H(U,K,q,`⊲`,`\\lhd`),H(U,K,q,`⊳`,`\\rhd`),H(U,K,J,`≂`,`\\eqsim`,!0),H(U,G,J,`⋈`,`\\Join`),H(U,K,J,`≑`,`\\Doteq`,!0),H(U,K,q,`∔`,`\\dotplus`,!0),H(U,K,q,`∖`,`\\smallsetminus`),H(U,K,q,`⋒`,`\\Cap`,!0),H(U,K,q,`⋓`,`\\Cup`,!0),H(U,K,q,`⩞`,`\\doublebarwedge`,!0),H(U,K,q,`⊟`,`\\boxminus`,!0),H(U,K,q,`⊞`,`\\boxplus`,!0),H(U,K,q,`⋇`,`\\divideontimes`,!0),H(U,K,q,`⋉`,`\\ltimes`,!0),H(U,K,q,`⋊`,`\\rtimes`,!0),H(U,K,q,`⋋`,`\\leftthreetimes`,!0),H(U,K,q,`⋌`,`\\rightthreetimes`,!0),H(U,K,q,`⋏`,`\\curlywedge`,!0),H(U,K,q,`⋎`,`\\curlyvee`,!0),H(U,K,q,`⊝`,`\\circleddash`,!0),H(U,K,q,`⊛`,`\\circledast`,!0),H(U,K,q,`⋅`,`\\centerdot`),H(U,K,q,`⊺`,`\\intercal`,!0),H(U,K,q,`⋒`,`\\doublecap`),H(U,K,q,`⋓`,`\\doublecup`),H(U,K,q,`⊠`,`\\boxtimes`,!0),H(U,K,J,`⇢`,`\\dashrightarrow`,!0),H(U,K,J,`⇠`,`\\dashleftarrow`,!0),H(U,K,J,`⇇`,`\\leftleftarrows`,!0),H(U,K,J,`⇆`,`\\leftrightarrows`,!0),H(U,K,J,`⇚`,`\\Lleftarrow`,!0),H(U,K,J,`↞`,`\\twoheadleftarrow`,!0),H(U,K,J,`↢`,`\\leftarrowtail`,!0),H(U,K,J,`↫`,`\\looparrowleft`,!0),H(U,K,J,`⇋`,`\\leftrightharpoons`,!0),H(U,K,J,`↶`,`\\curvearrowleft`,!0),H(U,K,J,`↺`,`\\circlearrowleft`,!0),H(U,K,J,`↰`,`\\Lsh`,!0),H(U,K,J,`⇈`,`\\upuparrows`,!0),H(U,K,J,`↿`,`\\upharpoonleft`,!0),H(U,K,J,`⇃`,`\\downharpoonleft`,!0),H(U,G,J,`⊶`,`\\origof`,!0),H(U,G,J,`⊷`,`\\imageof`,!0),H(U,K,J,`⊸`,`\\multimap`,!0),H(U,K,J,`↭`,`\\leftrightsquigarrow`,!0),H(U,K,J,`⇉`,`\\rightrightarrows`,!0),H(U,K,J,`⇄`,`\\rightleftarrows`,!0),H(U,K,J,`↠`,`\\twoheadrightarrow`,!0),H(U,K,J,`↣`,`\\rightarrowtail`,!0),H(U,K,J,`↬`,`\\looparrowright`,!0),H(U,K,J,`↷`,`\\curvearrowright`,!0),H(U,K,J,`↻`,`\\circlearrowright`,!0),H(U,K,J,`↱`,`\\Rsh`,!0),H(U,K,J,`⇊`,`\\downdownarrows`,!0),H(U,K,J,`↾`,`\\upharpoonright`,!0),H(U,K,J,`⇂`,`\\downharpoonright`,!0),H(U,K,J,`⇝`,`\\rightsquigarrow`,!0),H(U,K,J,`⇝`,`\\leadsto`),H(U,K,J,`⇛`,`\\Rrightarrow`,!0),H(U,K,J,`↾`,`\\restriction`),H(U,G,Y,`‘`,"`"),H(U,G,Y,`$`,`\\$`),H(W,G,Y,`$`,`\\$`),H(W,G,Y,`$`,`\\textdollar`),H(U,G,Y,`%`,`\\%`),H(W,G,Y,`%`,`\\%`),H(U,G,Y,`_`,`\\_`),H(W,G,Y,`_`,`\\_`),H(W,G,Y,`_`,`\\textunderscore`),H(U,G,Y,`∠`,`\\angle`,!0),H(U,G,Y,`∞`,`\\infty`,!0),H(U,G,Y,`′`,`\\prime`),H(U,G,Y,`△`,`\\triangle`),H(U,G,Y,`Γ`,`\\Gamma`,!0),H(U,G,Y,`Δ`,`\\Delta`,!0),H(U,G,Y,`Θ`,`\\Theta`,!0),H(U,G,Y,`Λ`,`\\Lambda`,!0),H(U,G,Y,`Ξ`,`\\Xi`,!0),H(U,G,Y,`Π`,`\\Pi`,!0),H(U,G,Y,`Σ`,`\\Sigma`,!0),H(U,G,Y,`Υ`,`\\Upsilon`,!0),H(U,G,Y,`Φ`,`\\Phi`,!0),H(U,G,Y,`Ψ`,`\\Psi`,!0),H(U,G,Y,`Ω`,`\\Omega`,!0),H(U,G,Y,`A`,`Α`),H(U,G,Y,`B`,`Β`),H(U,G,Y,`E`,`Ε`),H(U,G,Y,`Z`,`Ζ`),H(U,G,Y,`H`,`Η`),H(U,G,Y,`I`,`Ι`),H(U,G,Y,`K`,`Κ`),H(U,G,Y,`M`,`Μ`),H(U,G,Y,`N`,`Ν`),H(U,G,Y,`O`,`Ο`),H(U,G,Y,`P`,`Ρ`),H(U,G,Y,`T`,`Τ`),H(U,G,Y,`X`,`Χ`),H(U,G,Y,`¬`,`\\neg`,!0),H(U,G,Y,`¬`,`\\lnot`),H(U,G,Y,`⊤`,`\\top`),H(U,G,Y,`⊥`,`\\bot`),H(U,G,Y,`∅`,`\\emptyset`),H(U,K,Y,`∅`,`\\varnothing`),H(U,G,wE,`α`,`\\alpha`,!0),H(U,G,wE,`β`,`\\beta`,!0),H(U,G,wE,`γ`,`\\gamma`,!0),H(U,G,wE,`δ`,`\\delta`,!0),H(U,G,wE,`ϵ`,`\\epsilon`,!0),H(U,G,wE,`ζ`,`\\zeta`,!0),H(U,G,wE,`η`,`\\eta`,!0),H(U,G,wE,`θ`,`\\theta`,!0),H(U,G,wE,`ι`,`\\iota`,!0),H(U,G,wE,`κ`,`\\kappa`,!0),H(U,G,wE,`λ`,`\\lambda`,!0),H(U,G,wE,`μ`,`\\mu`,!0),H(U,G,wE,`ν`,`\\nu`,!0),H(U,G,wE,`ξ`,`\\xi`,!0),H(U,G,wE,`ο`,`\\omicron`,!0),H(U,G,wE,`π`,`\\pi`,!0),H(U,G,wE,`ρ`,`\\rho`,!0),H(U,G,wE,`σ`,`\\sigma`,!0),H(U,G,wE,`τ`,`\\tau`,!0),H(U,G,wE,`υ`,`\\upsilon`,!0),H(U,G,wE,`ϕ`,`\\phi`,!0),H(U,G,wE,`χ`,`\\chi`,!0),H(U,G,wE,`ψ`,`\\psi`,!0),H(U,G,wE,`ω`,`\\omega`,!0),H(U,G,wE,`ε`,`\\varepsilon`,!0),H(U,G,wE,`ϑ`,`\\vartheta`,!0),H(U,G,wE,`ϖ`,`\\varpi`,!0),H(U,G,wE,`ϱ`,`\\varrho`,!0),H(U,G,wE,`ς`,`\\varsigma`,!0),H(U,G,wE,`φ`,`\\varphi`,!0),H(U,G,q,`∗`,`*`,!0),H(U,G,q,`+`,`+`),H(U,G,q,`−`,`-`,!0),H(U,G,q,`⋅`,`\\cdot`,!0),H(U,G,q,`∘`,`\\circ`,!0),H(U,G,q,`÷`,`\\div`,!0),H(U,G,q,`±`,`\\pm`,!0),H(U,G,q,`×`,`\\times`,!0),H(U,G,q,`∩`,`\\cap`,!0),H(U,G,q,`∪`,`\\cup`,!0),H(U,G,q,`∖`,`\\setminus`,!0),H(U,G,q,`∧`,`\\land`),H(U,G,q,`∨`,`\\lor`),H(U,G,q,`∧`,`\\wedge`,!0),H(U,G,q,`∨`,`\\vee`,!0),H(U,G,Y,`√`,`\\surd`),H(U,G,EE,`⟨`,`\\langle`,!0),H(U,G,EE,`∣`,`\\lvert`),H(U,G,EE,`∥`,`\\lVert`),H(U,G,SE,`?`,`?`),H(U,G,SE,`!`,`!`),H(U,G,SE,`⟩`,`\\rangle`,!0),H(U,G,SE,`∣`,`\\rvert`),H(U,G,SE,`∥`,`\\rVert`),H(U,G,J,`=`,`=`),H(U,G,J,`:`,`:`),H(U,G,J,`≈`,`\\approx`,!0),H(U,G,J,`≅`,`\\cong`,!0),H(U,G,J,`≥`,`\\ge`),H(U,G,J,`≥`,`\\geq`,!0),H(U,G,J,`←`,`\\gets`),H(U,G,J,`>`,`\\gt`,!0),H(U,G,J,`∈`,`\\in`,!0),H(U,G,J,``,`\\@not`),H(U,G,J,`⊂`,`\\subset`,!0),H(U,G,J,`⊃`,`\\supset`,!0),H(U,G,J,`⊆`,`\\subseteq`,!0),H(U,G,J,`⊇`,`\\supseteq`,!0),H(U,K,J,`⊈`,`\\nsubseteq`,!0),H(U,K,J,`⊉`,`\\nsupseteq`,!0),H(U,G,J,`⊨`,`\\models`),H(U,G,J,`←`,`\\leftarrow`,!0),H(U,G,J,`≤`,`\\le`),H(U,G,J,`≤`,`\\leq`,!0),H(U,G,J,`<`,`\\lt`,!0),H(U,G,J,`→`,`\\rightarrow`,!0),H(U,G,J,`→`,`\\to`),H(U,K,J,`≱`,`\\ngeq`,!0),H(U,K,J,`≰`,`\\nleq`,!0),H(U,G,OE,`\xA0`,`\\ `),H(U,G,OE,`\xA0`,`\\space`),H(U,G,OE,`\xA0`,`\\nobreakspace`),H(W,G,OE,`\xA0`,`\\ `),H(W,G,OE,`\xA0`,` `),H(W,G,OE,`\xA0`,`\\space`),H(W,G,OE,`\xA0`,`\\nobreakspace`),H(U,G,OE,``,`\\nobreak`),H(U,G,OE,``,`\\allowbreak`),H(U,G,DE,`,`,`,`),H(U,G,DE,`;`,`;`),H(U,K,q,`⊼`,`\\barwedge`,!0),H(U,K,q,`⊻`,`\\veebar`,!0),H(U,G,q,`⊙`,`\\odot`,!0),H(U,G,q,`⊕`,`\\oplus`,!0),H(U,G,q,`⊗`,`\\otimes`,!0),H(U,G,Y,`∂`,`\\partial`,!0),H(U,G,q,`⊘`,`\\oslash`,!0),H(U,K,q,`⊚`,`\\circledcirc`,!0),H(U,K,q,`⊡`,`\\boxdot`,!0),H(U,G,q,`△`,`\\bigtriangleup`),H(U,G,q,`▽`,`\\bigtriangledown`),H(U,G,q,`†`,`\\dagger`),H(U,G,q,`⋄`,`\\diamond`),H(U,G,q,`⋆`,`\\star`),H(U,G,q,`◃`,`\\triangleleft`),H(U,G,q,`▹`,`\\triangleright`),H(U,G,EE,`{`,`\\{`),H(W,G,Y,`{`,`\\{`),H(W,G,Y,`{`,`\\textbraceleft`),H(U,G,SE,`}`,`\\}`),H(W,G,Y,`}`,`\\}`),H(W,G,Y,`}`,`\\textbraceright`),H(U,G,EE,`{`,`\\lbrace`),H(U,G,SE,`}`,`\\rbrace`),H(U,G,EE,`[`,`\\lbrack`,!0),H(W,G,Y,`[`,`\\lbrack`,!0),H(U,G,SE,`]`,`\\rbrack`,!0),H(W,G,Y,`]`,`\\rbrack`,!0),H(U,G,EE,`(`,`\\lparen`,!0),H(U,G,SE,`)`,`\\rparen`,!0),H(W,G,Y,`<`,`\\textless`,!0),H(W,G,Y,`>`,`\\textgreater`,!0),H(U,G,EE,`⌊`,`\\lfloor`,!0),H(U,G,SE,`⌋`,`\\rfloor`,!0),H(U,G,EE,`⌈`,`\\lceil`,!0),H(U,G,SE,`⌉`,`\\rceil`,!0),H(U,G,Y,`\\`,`\\backslash`),H(U,G,Y,`∣`,`|`),H(U,G,Y,`∣`,`\\vert`),H(W,G,Y,`|`,`\\textbar`,!0),H(U,G,Y,`∥`,`\\|`),H(U,G,Y,`∥`,`\\Vert`),H(W,G,Y,`∥`,`\\textbardbl`),H(W,G,Y,`~`,`\\textasciitilde`),H(W,G,Y,`\\`,`\\textbackslash`),H(W,G,Y,`^`,`\\textasciicircum`),H(U,G,J,`↑`,`\\uparrow`,!0),H(U,G,J,`⇑`,`\\Uparrow`,!0),H(U,G,J,`↓`,`\\downarrow`,!0),H(U,G,J,`⇓`,`\\Downarrow`,!0),H(U,G,J,`↕`,`\\updownarrow`,!0),H(U,G,J,`⇕`,`\\Updownarrow`,!0),H(U,G,TE,`∐`,`\\coprod`),H(U,G,TE,`⋁`,`\\bigvee`),H(U,G,TE,`⋀`,`\\bigwedge`),H(U,G,TE,`⨄`,`\\biguplus`),H(U,G,TE,`⋂`,`\\bigcap`),H(U,G,TE,`⋃`,`\\bigcup`),H(U,G,TE,`∫`,`\\int`),H(U,G,TE,`∫`,`\\intop`),H(U,G,TE,`∬`,`\\iint`),H(U,G,TE,`∭`,`\\iiint`),H(U,G,TE,`∏`,`\\prod`),H(U,G,TE,`∑`,`\\sum`),H(U,G,TE,`⨂`,`\\bigotimes`),H(U,G,TE,`⨁`,`\\bigoplus`),H(U,G,TE,`⨀`,`\\bigodot`),H(U,G,TE,`∮`,`\\oint`),H(U,G,TE,`∯`,`\\oiint`),H(U,G,TE,`∰`,`\\oiiint`),H(U,G,TE,`⨆`,`\\bigsqcup`),H(U,G,TE,`∫`,`\\smallint`),H(W,G,CE,`…`,`\\textellipsis`),H(U,G,CE,`…`,`\\mathellipsis`),H(W,G,CE,`…`,`\\ldots`,!0),H(U,G,CE,`…`,`\\ldots`,!0),H(U,G,CE,`⋯`,`\\@cdots`,!0),H(U,G,CE,`⋱`,`\\ddots`,!0),H(U,G,Y,`⋮`,`\\varvdots`),H(W,G,Y,`⋮`,`\\varvdots`),H(U,G,xE,`ˊ`,`\\acute`),H(U,G,xE,`ˋ`,`\\grave`),H(U,G,xE,`¨`,`\\ddot`),H(U,G,xE,`~`,`\\tilde`),H(U,G,xE,`ˉ`,`\\bar`),H(U,G,xE,`˘`,`\\breve`),H(U,G,xE,`ˇ`,`\\check`),H(U,G,xE,`^`,`\\hat`),H(U,G,xE,`⃗`,`\\vec`),H(U,G,xE,`˙`,`\\dot`),H(U,G,xE,`˚`,`\\mathring`),H(U,G,wE,``,`\\@imath`),H(U,G,wE,``,`\\@jmath`),H(U,G,Y,`ı`,`ı`),H(U,G,Y,`ȷ`,`ȷ`),H(W,G,Y,`ı`,`\\i`,!0),H(W,G,Y,`ȷ`,`\\j`,!0),H(W,G,Y,`ß`,`\\ss`,!0),H(W,G,Y,`æ`,`\\ae`,!0),H(W,G,Y,`œ`,`\\oe`,!0),H(W,G,Y,`ø`,`\\o`,!0),H(W,G,Y,`Æ`,`\\AE`,!0),H(W,G,Y,`Œ`,`\\OE`,!0),H(W,G,Y,`Ø`,`\\O`,!0),H(W,G,xE,`ˊ`,`\\'`),H(W,G,xE,`ˋ`,"\\`"),H(W,G,xE,`ˆ`,`\\^`),H(W,G,xE,`˜`,`\\~`),H(W,G,xE,`ˉ`,`\\=`),H(W,G,xE,`˘`,`\\u`),H(W,G,xE,`˙`,`\\.`),H(W,G,xE,`¸`,`\\c`),H(W,G,xE,`˚`,`\\r`),H(W,G,xE,`ˇ`,`\\v`),H(W,G,xE,`¨`,`\\"`),H(W,G,xE,`˝`,`\\H`),H(W,G,xE,`◯`,`\\textcircled`);var kE={"--":!0,"---":!0,"``":!0,"''":!0};H(W,G,Y,`–`,`--`,!0),H(W,G,Y,`–`,`\\textendash`),H(W,G,Y,`—`,`---`,!0),H(W,G,Y,`—`,`\\textemdash`),H(W,G,Y,`‘`,"`",!0),H(W,G,Y,`‘`,`\\textquoteleft`),H(W,G,Y,`’`,`'`,!0),H(W,G,Y,`’`,`\\textquoteright`),H(W,G,Y,`“`,"``",!0),H(W,G,Y,`“`,`\\textquotedblleft`),H(W,G,Y,`”`,`''`,!0),H(W,G,Y,`”`,`\\textquotedblright`),H(U,G,Y,`°`,`\\degree`,!0),H(W,G,Y,`°`,`\\degree`),H(W,G,Y,`°`,`\\textdegree`,!0),H(U,G,Y,`£`,`\\pounds`),H(U,G,Y,`£`,`\\mathsterling`,!0),H(W,G,Y,`£`,`\\pounds`),H(W,G,Y,`£`,`\\textsterling`,!0),H(U,K,Y,`✠`,`\\maltese`),H(W,K,Y,`✠`,`\\maltese`);for(var AE=`0123456789/@."`,jE=0;jE<AE.length;jE++){var ME=AE.charAt(jE);H(U,G,Y,ME,ME)}for(var NE=`0123456789!@*()-=+";:?/.,`,PE=0;PE<NE.length;PE++){var FE=NE.charAt(PE);H(W,G,Y,FE,FE)}for(var IE=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,LE=0;LE<IE.length;LE++){var RE=IE.charAt(LE);H(U,G,wE,RE,RE),H(W,G,Y,RE,RE)}H(U,K,Y,`C`,`ℂ`),H(W,K,Y,`C`,`ℂ`),H(U,K,Y,`H`,`ℍ`),H(W,K,Y,`H`,`ℍ`),H(U,K,Y,`N`,`ℕ`),H(W,K,Y,`N`,`ℕ`),H(U,K,Y,`P`,`ℙ`),H(W,K,Y,`P`,`ℙ`),H(U,K,Y,`Q`,`ℚ`),H(W,K,Y,`Q`,`ℚ`),H(U,K,Y,`R`,`ℝ`),H(W,K,Y,`R`,`ℝ`),H(U,K,Y,`Z`,`ℤ`),H(W,K,Y,`Z`,`ℤ`),H(U,G,wE,`h`,`ℎ`),H(W,G,wE,`h`,`ℎ`);for(var zE,BE=0;BE<IE.length;BE++){var VE=IE.charAt(BE);zE=String.fromCharCode(55349,56320+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE),zE=String.fromCharCode(55349,56372+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE),zE=String.fromCharCode(55349,56424+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE),zE=String.fromCharCode(55349,56580+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE),zE=String.fromCharCode(55349,56684+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE),zE=String.fromCharCode(55349,56736+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE),zE=String.fromCharCode(55349,56788+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE),zE=String.fromCharCode(55349,56840+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE),zE=String.fromCharCode(55349,56944+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE),BE<26&&(zE=String.fromCharCode(55349,56632+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE),zE=String.fromCharCode(55349,56476+BE),H(U,G,wE,VE,zE),H(W,G,Y,VE,zE))}zE=String.fromCharCode(55349,56668),H(U,G,wE,`k`,zE),H(W,G,Y,`k`,zE);for(var HE=0;HE<10;HE++){var UE=HE.toString();zE=String.fromCharCode(55349,57294+HE),H(U,G,wE,UE,zE),H(W,G,Y,UE,zE),zE=String.fromCharCode(55349,57314+HE),H(U,G,wE,UE,zE),H(W,G,Y,UE,zE),zE=String.fromCharCode(55349,57324+HE),H(U,G,wE,UE,zE),H(W,G,Y,UE,zE),zE=String.fromCharCode(55349,57334+HE),H(U,G,wE,UE,zE),H(W,G,Y,UE,zE)}for(var WE=`ÐÞþ`,GE=0;GE<WE.length;GE++){var KE=WE.charAt(GE);H(U,G,wE,KE,KE),H(W,G,Y,KE,KE)}var qE={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},JE={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},YE={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},XE={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},ZE={mathClass:``,textClass:``,font:``},QE={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},$E={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},eD={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},tD={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},nD={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},rD={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},iD={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},aD=[qE,qE,JE,JE,YE,YE,XE,ZE,ZE,ZE,QE,QE,$E,$E,eD,eD,tD,tD,nD,nD,rD,rD,ZE,ZE,iD,iD],oD=[qE,ZE,tD,nD,iD],sD=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return aD[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return oD[Math.floor((r-120782)/10)];if(r===120485||r===120486)return aD[0];if(120486<r&&r<120782)return ZE;throw new B(`Unsupported character: `+e)},cD=function(e,t,n){if(bE[n][e]){var r=bE[n][e].replace;r&&(e=r)}return{value:e,metrics:_E(e,t,n)}},lD=function(e,t,n,r,i){var a=cD(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new oE(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new oE(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},uD=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&cD(e,`Main-Bold`,t).metrics?lD(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||bE[t][e].font===`main`?lD(e,`Main-Regular`,t,n,r):lD(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},dD=function(e,t,n){return n!==`textord`&&cD(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},fD=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],{font:o,fontFamily:s,fontWeight:c,fontShape:l}=t,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=sD(i);f=m.font,p=m[r+`Class`]}if(f)return lD(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=dD(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=TD[o].fontName,g=[o]):(h=wD(s,c,l),g=[s,c,l]);if(cD(i,h,r).metrics)return lD(i,h,r,t,a.concat(g));if(kE.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(lD(i[y],h,r,t,a.concat(g)));return yD(v)}}if(n===`mathord`)return lD(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=bE[r][i]&&bE[r][i].font;if(b===`ams`)return lD(i,wD(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return lD(i,wD(`textrm`,c,l),r,t,a.concat(c,l));var ee=wD(b,c,l);return lD(i,ee,r,t,a.concat(ee,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},pD=(e,t)=>{if(XT(e.classes)!==XT(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},mD=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof oE&&r instanceof oE&&pD(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},hD=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},X=function(e,t,n,r){var i=new nE(e,t,n,r);return hD(i),i},gD=(e,t,n,r)=>new nE(e,t,n,r),_D=function(e,t,n){var r=X([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=V(r.height),r.maxFontSize=1,r},vD=function(e,t,n,r){var i=new rE(e,t,n,r);return hD(i),i},yD=function(e){var t=new GT(e);return hD(t),t},bD=function(e,t){return e instanceof GT?X([],[e],t):e},xD=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},SD=function(e,t){for(var{children:n,depth:r}=xD(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=X([`pstrut`],[]);c.style.height=V(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=X(g,[c,h],void 0,_);v.style.top=V(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=X([`vlist`],l);y.style.height=V(d);var b;if(u<0){var ee=X([`vlist`],[X([],[])]);ee.style.height=V(-u),b=[X([`vlist-r`],[y,X([`vlist-s`],[new oE(`​`)])]),X([`vlist-r`],[ee])]}else b=[X([`vlist-r`],[y])];var x=X([`vlist-t`],b);return b.length===2&&x.classes.push(`vlist-t2`),x.height=d,x.depth=-u,x},CD=(e,t)=>{var n=X([`mspace`],[],t),r=YT(e,t);return n.style.marginRight=V(r),n},wD=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},TD={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},ED={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},DD=function(e,t){var[n,r,i]=ED[e],a=gD([`overlay`],[new sE([new cE(n)],{width:V(r),height:V(i),style:`width:`+V(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=V(i),a.style.width=V(r),a},OD={number:3,unit:`mu`},kD={number:4,unit:`mu`},AD={number:5,unit:`mu`},jD={mord:{mop:OD,mbin:kD,mrel:AD,minner:OD},mop:{mord:OD,mop:OD,mrel:AD,minner:OD},mbin:{mord:kD,mop:kD,mopen:kD,minner:kD},mrel:{mord:AD,mop:AD,mopen:AD,minner:AD},mopen:{},mclose:{mop:OD,mbin:kD,mrel:AD,minner:OD},mpunct:{mord:OD,mop:OD,mrel:AD,mopen:OD,mclose:OD,mpunct:OD,minner:OD},minner:{mord:OD,mop:OD,mbin:kD,mrel:AD,mopen:OD,mpunct:OD,minner:OD}},MD={mord:{mop:OD},mop:{mord:OD,mop:OD},mbin:{},mrel:{},mopen:{},mclose:{mop:OD},mpunct:{},minner:{mop:OD}},ND={},PD={},FD={};function Z(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)ND[n[c]]=s;t&&(a&&(PD[t]=a),o&&(FD[t]=o))}function ID(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Z({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var LD=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},RD=function(e){return e.type===`ordgroup`?e.body:[e]},zD=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),BD=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),VD={display:ET.DISPLAY,text:ET.TEXT,script:ET.SCRIPT,scriptscript:ET.SCRIPTSCRIPT},HD={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},UD=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=YD(e[a],t);if(o instanceof GT){var s=o.children;i.push(...s)}else i.push(o)}if(mD(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(VD[l.style]))}var u=X([r[0]||`leftmost`],[],t),d=X([r[1]||`rightmost`],[],t),f=n===`root`;return WD(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&BD.has(r)?t.classes[0]=`mord`:r===`mbin`&&zD.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),WD(i,(e,t)=>{var n=qD(t),r=qD(e),i=n&&r?e.hasClass(`mtight`)?MD[n]?.[r]:jD[n]?.[r]:null;if(i)return CD(i,c)},{node:u},d,f),i},WD=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=GD(o);if(s){WD(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=X([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},GD=function(e){return e instanceof GT||e instanceof rE||e instanceof nE&&e.hasClass(`enclosing`)?e:null},KD=function(e,t){var n=GD(e);if(n){var r=n.children;if(r.length){if(t===`right`)return KD(r[r.length-1],`right`);if(t===`left`)return KD(r[0],`left`)}}return e},qD=function(e,t){return e?(t&&(e=KD(e,t)),HD[e.classes[0]]||null):null},JD=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return X(t.concat(n))},YD=function(e,t,n){if(!e)return X();if(PD[e.type]){var r=PD[e.type](e,t);if(n&&t.size!==n.size){r=X(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new B(`Got group of unknown type: '`+e.type+`'`)};function XD(e,t){var n=X([`base`],e,t),r=X([`strut`]);return r.style.height=V(n.height+n.depth),n.depth&&(r.style.verticalAlign=V(-n.depth)),n.children.unshift(r),n}function ZD(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=UD(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(XD(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(XD(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(XD(o,t));var l;n?(l=XD(UD(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=X([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=V(u.height+u.depth),u.depth&&(d.style.verticalAlign=V(-u.depth))}return u}function QD(e){return new GT(e)}var Q=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=XT(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof $D&&this.children[n+1]instanceof $D){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof $D;)r+=this.children[++n].toText();e.appendChild(new $D(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=eT(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+eT(XT(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},$D=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return eT(this.toText())}toText(){return this.text}},eO=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,V(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+V(this.width)+`"/>`}toText(){return this.character?this.character:` `}},tO=new Set([`\\imath`,`\\jmath`]),nO=new Set([`mrow`,`mtable`]),rO=function(e,t,n){return bE[t][e]&&bE[t][e].replace&&e.charCodeAt(0)!==55349&&!(kE.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=bE[t][e].replace),new $D(e)},iO=function(e){return e.length===1?e[0]:new Q(`mrow`,e)},aO={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},oO=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=aO[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(tO.has(a))return null;if(bE[r][a]){var o=bE[r][a].replace;o&&(a=o)}var s=TD[n].fontName;return _E(a,s,r)?TD[n].variant:null};function sO(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof $D&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof $D&&n.text===`,`}return!1}var cO=function(e,t,n){if(e.length===1){var r=uO(e[0],t);return n&&r instanceof Q&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=uO(e[o],t);if(s instanceof Q&&a instanceof Q){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}if(sO(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&sO(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||sO(a))){var c=s.children[0];c instanceof Q&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof $D&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof $D&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},lO=function(e,t,n){return iO(cO(e,t,n))},uO=function(e,t){if(!e)return new Q(`mrow`);if(FD[e.type])return FD[e.type](e,t);throw new B(`Got group of unknown type: '`+e.type+`'`)};function dO(e,t,n,r,i){var a=cO(e,n),o=a.length===1&&a[0]instanceof Q&&nO.has(a[0].type)?a[0]:new Q(`mrow`,a),s=new Q(`annotation`,[new $D(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Q(`math`,[new Q(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),X([i?`katex`:`katex-mathml`],[c])}var fO=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],pO=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],mO=function(e,t){return t.size<2?e:fO[e-1][t.size-1]},hO=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=pO[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:mO(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:pO[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=mO(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=yE(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};hO.BASESIZE=6;var gO=function(e){return new hO({style:e.displayMode?ET.DISPLAY:ET.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},_O=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=X(n,[e])}return e},vO=function(e,t,n){var r=gO(n),i;return n.output===`mathml`?dO(e,t,r,n.displayMode,!0):(i=n.output===`html`?X([`katex`],[ZD(e,r)]):X([`katex`],[dO(e,t,r,n.displayMode,!1),ZD(e,r)]),_O(i,n))},yO=function(e,t,n){return _O(X([`katex`],[ZD(e,gO(n))]),n)},bO={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},xO=function(e){var t=new Q(`mo`,[new $D(bO[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},SO={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},CO=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),wO=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(CO.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:gD([],[new sE([new cE(o)],{width:`100%`,height:V(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=SO[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var[d,f,p]=u,m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
325
+ `+h+` children.`);for(var v=0;v<h;v++){var y=new sE([new cE(d[v])],{width:`400em`,height:V(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=gD([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=V(m),l.push(b)}return{span:X([`stretchy`],l,t),minWidth:f,height:m}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=V(a),i>0&&(r.style.minWidth=V(i)),r},TO=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=X([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new lE({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new lE({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=gD([],[new sE(c,{width:`100%`,height:V(o)})],i)}return a.height=o,a.style.height=V(o),a},EO={bin:1,close:1,inner:1,open:1,punct:1,rel:1},DO={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function OO(e){return e in EO}function kO(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function AO(e){var t=jO(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function jO(e){return e&&(e.type===`atom`||DO.hasOwnProperty(e.type))?e:null}var MO=e=>{if(e instanceof oE)return e;if(fE(e)&&e.children.length===1)return MO(e.children[0])},NO=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=kO(e.base,`accent`),n=r.base,e.base=n,i=dE(YD(e,t)),e.base=r):(r=kO(e,`accent`),n=r.base);var a=YD(n,t.havingCrampedStyle()),o=r.isShifty&&rT(n),s=0;o&&(s=MO(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=wO(r,t),u=SD({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+V(2*s)+`)`,marginLeft:V(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=DD(`vec`,t),f=ED.vec[1]):(d=fD({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=uE(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=X([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=V(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=SD({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=X([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},PO=(e,t)=>{var n=e.isStretchy?xO(e.label):new Q(`mo`,[rO(e.label,e.mode)]),r=new Q(`mover`,[uO(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},FO=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));Z({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=LD(t[0]),r=!FO.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:NO,mathmlBuilder:PO}),Z({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:NO,mathmlBuilder:PO}),Z({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=YD(e.base,t),r=wO(e,t),i=e.label===`\\utilde`?.12:0;return X([`mord`,`accentunder`],[SD({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=xO(e.label),r=new Q(`munder`,[uO(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var IO=e=>{var t=new Q(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};Z({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=bD(YD(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=bD(YD(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=wO(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=SD({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=SD({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return X([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=xO(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=IO(uO(e.body,t));r=e.below?new Q(`munderover`,[n,IO(uO(e.below,t)),i]):new Q(`mover`,[n,i])}else e.below?r=new Q(`munder`,[n,IO(uO(e.below,t))]):(r=IO(),r=new Q(`mover`,[n,r]));return r}});function LO(e,t){var n=UD(e.body,t,!0);return X([e.mclass],n,t)}function RO(e,t){var n,r=cO(e.body,t);return e.mclass===`minner`?n=new Q(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Q(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Q(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}Z({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:RD(i),isCharacterBox:rT(i)}},htmlBuilder:LO,mathmlBuilder:RO});var zO=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};Z({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:zO(t[0]),body:RD(t[1]),isCharacterBox:rT(t[1])}}}),Z({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:zO(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:RD(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:rT(c)}},htmlBuilder:LO,mathmlBuilder:RO}),Z({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:zO(t[0]),body:RD(t[0])}},htmlBuilder(e,t){var n=UD(e.body,t,!0),r=X([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new Q(`mstyle`,cO(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var BO={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},VO=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),HO=e=>e.type===`textord`&&e.text===`@`,UO=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function WO(e,t,n){var r=BO[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function GO(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new B(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=VO(),c=0;c<o.length;c++)if(!HO(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=AO(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l)){if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(UO(o[p],l)){f=!1,c=p;break}if(HO(o[p]))throw new B(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new B(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new B(`Expected one of "<>AV=|." after @`,o[c])}var m={type:`styling`,body:[WO(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=VO()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}Z({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=bD(YD(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=V(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Q(`mrow`,[uO(e.label,t)]);return n=new Q(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Q(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Z({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=bD(YD(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Q(`mrow`,[uO(e.fragment,t)])}}),Z({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=kO(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=kO(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new B(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new B(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var KO=(e,t)=>yD(UD(e.body,t.withColor(e.color),!1)),qO=(e,t)=>{var n=new Q(`mstyle`,cO(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};Z({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=kO(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:RD(i)}},htmlBuilder:KO,mathmlBuilder:qO}),Z({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=kO(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:KO,mathmlBuilder:qO}),Z({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&kO(i,`size`).value}},htmlBuilder(e,t){var n=X([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=V(YT(e.size,t)))),n},mathmlBuilder(e,t){var n=new Q(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,V(YT(e.size,t)))),n}});var JO={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},YO=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new B(`Expected a control sequence`,e);return t},XO=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},ZO=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};Z({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(JO[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=JO[r.text]),kO(t.parseFunction(),`internal`);throw new B(`Invalid token after macro prefix`,r)}}),Z({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new B(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new B(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new B(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new B(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===JO[n]),{type:`internal`,mode:t.mode}}}),Z({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=YO(t.gullet.popToken());return t.gullet.consumeSpaces(),ZO(t,r,XO(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Z({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=YO(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return ZO(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var QO=function(e,t,n){var r=_E(bE.math[e]&&bE.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},$O=function(e,t,n,r){var i=n.havingBaseStyle(t),a=X(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},ek=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=V(i),e.height-=i,e.depth+=i},tk=function(e,t,n,r,i,a){var o=$O(lD(e,`Main-Regular`,i,r),t,r,a);return n&&ek(o,r,t),o},nk=function(e,t,n,r){return lD(e,`Size`+t+`-Regular`,n,r)},rk=function(e,t,n,r,i,a){var o=nk(e,t,i,r),s=$O(X([`delimsizing`,`size`+t],[o],r),ET.TEXT,r,a);return n&&ek(s,r,ET.TEXT),s},ik=function(e,t,n){return{type:`elem`,elem:X([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[X([],[lD(e,t,n)])])}},ak=function(e,t,n){var r=pE[`Size4-Regular`][e.charCodeAt(0)]?pE[`Size4-Regular`][e.charCodeAt(0)][4]:pE[`Size1-Regular`][e.charCodeAt(0)][4],i=gD([],[new sE([new cE(`inner`,VT(e,Math.round(1e3*t)))],{width:V(r),height:V(t),style:`width:`+V(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=V(t),i.style.width=V(r),{type:`elem`,elem:i}},ok=.008,sk={type:`kern`,size:-1*ok},ck=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),lk=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),uk=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):ck.has(e)?(c=`∣`,u=`vert`,d=333):lk.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=QO(o,f,i),m=p.height+p.depth,h=QO(c,f,i),g=h.height+h.depth,_=QO(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var ee=QO(s,f,i);y=ee.height+ee.depth,b=2}var x=m+v+y,S=x+Math.max(0,Math.ceil((t-x)/(b*g)))*b*g,C=r.fontMetrics().axisHeight;n&&(C*=r.sizeMultiplier);var w=S/2-C,T=[];if(u.length>0){var te=S-m-v,E=Math.round(S*1e3),D=UT(u,Math.round(te*1e3)),O=new cE(u,D),ne=V(d/1e3),k=V(E/1e3),re=gD([],[new sE([O],{width:ne,height:k,viewBox:`0 0 `+d+` `+E})],r);re.height=E/1e3,re.style.width=ne,re.style.height=k,T.push({type:`elem`,elem:re})}else{if(T.push(ik(l,f,i)),T.push(sk),s===null){var ie=S-m-v+2*ok;T.push(ak(c,ie,r))}else{var ae=(S-m-v-y)/2+2*ok;T.push(ak(c,ae,r)),T.push(sk),T.push(ik(s,f,i)),T.push(sk),T.push(ak(c,ae,r))}T.push(sk),T.push(ik(o,f,i))}var oe=r.havingBaseStyle(ET.TEXT);return $O(X([`delimsizing`,`mult`],[SD({positionType:`bottom`,positionData:w,children:T})],oe),ET.TEXT,r,a)},dk=80,fk=.08,pk=function(e,t,n,r,i){return gD([`hide-tail`],[new sE([new cE(e,BT(e,r,n))],{width:`400em`,height:V(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},mk=function(e,t){var n=t.havingBaseSizing(),r=wk(`\\surd`,e*n.sizeMultiplier,Sk,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+dk,e<1?i=1:e<1.4&&(i=.7),s=(1+a+fk)/i,c=(1+a)/i,o=pk(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+dk)*vk[r.size],c=(vk[r.size]+a)/i,s=(vk[r.size]+a+fk)/i,o=pk(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+fk,c=e+a,l=Math.floor(1e3*e+a)+dk,o=pk(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=V(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},hk=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),gk=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),_k=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),vk=[0,1.2,1.8,2.4,3],yk=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),hk.has(e)||_k.has(e))return rk(e,t,!1,n,r,i);if(gk.has(e))return uk(e,vk[t],!1,n,r,i);throw new B(`Illegal delimiter: '`+e+`'`)},bk=[{type:`small`,style:ET.SCRIPTSCRIPT},{type:`small`,style:ET.SCRIPT},{type:`small`,style:ET.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],xk=[{type:`small`,style:ET.SCRIPTSCRIPT},{type:`small`,style:ET.SCRIPT},{type:`small`,style:ET.TEXT},{type:`stack`}],Sk=[{type:`small`,style:ET.SCRIPTSCRIPT},{type:`small`,style:ET.SCRIPT},{type:`small`,style:ET.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Ck=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},wk=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=QO(e,Ck(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},Tk=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=_k.has(e)?bk:hk.has(e)?Sk:xk,s=wk(e,t,o,r);return s.type===`small`?tk(e,s.style,n,r,i,a):s.type===`large`?rk(e,s.size,n,r,i,a):uk(e,t,n,r,i,a)},Ek=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return Tk(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},Dk={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},Ok=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function kk(e){return`isMiddle`in e}function Ak(e,t){var n=jO(e);if(n&&Ok.has(n.text))return n;throw n?new B(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new B(`Invalid delimiter type '`+e.type+`'`,e)}Z({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=Ak(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:Dk[e.funcName].size,mclass:Dk[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?X([e.mclass]):yk(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(rO(e.delim,e.mode));var n=new Q(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=V(vk[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function jk(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}Z({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new B(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Ak(t[0],e).text,color:n}}}),Z({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Ak(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=kO(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{jk(e);for(var n=UD(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];kk(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?JD(t,[`mopen`]):Ek(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(kk(u)){var d=u.isMiddle;n[l]=Ek(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=JD(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=Ek(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),X([`minner`],n,t)},mathmlBuilder:(e,t)=>{jk(e);var n=cO(e.body,t);if(e.left!==`.`){var r=new Q(`mo`,[rO(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Q(`mo`,[rO(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return iO(n)}}),Z({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Ak(t[0],e);if(!e.parser.leftrightDepth)throw new B(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=JD(t,[]):(n=yk(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new Q(`mo`,[e.delim===`\\vert`||e.delim===`|`?rO(`|`,`text`):rO(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var Mk=(e,t)=>{var n=bD(YD(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=rT(e.body);if(r===`sout`)a=X([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=YT({number:.6,unit:`pt`},t),l=YT({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=V(d/2+c);var f=Math.floor(1e3*d*i);a=gD([`hide-tail`],[new sE([new cE(`phase`,RT(f))],{width:`400em`,height:V(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=V(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=TO(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=V(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=V(h),a.style.borderRightWidth=V(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=SD({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=SD({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?X([`mord`,`cancel-lap`],[g],t):X([`mord`],[g],t)},Nk=(e,t)=>{var n,r=new Q(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[uO(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+V(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};Z({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=kO(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Mk,mathmlBuilder:Nk}),Z({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=kO(t[0],`color-token`).color,o=kO(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:Mk,mathmlBuilder:Nk}),Z({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),Z({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Mk,mathmlBuilder:Nk}),Z({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Mk,mathmlBuilder:Nk}),Z({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var Pk={};function Fk(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)Pk[n[c]]=s;a&&(PD[t]=a),o&&(FD[t]=o)}var Ik={};function $(e,t){Ik[e]=t}var Lk=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Rk=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Lk.range(this,t))}};function zk(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var Bk=e=>{if(!e.parser.settings.displayMode)throw new B(`{`+e.envName+`} can be used only in display mode.`)},Vk=new Set([`gather`,`gather*`]);function Hk(e){if(!e.includes(`ed`))return!e.includes(`*`)}function Uk(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new B(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new Rk(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(zk(e));;){var ee=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var x={type:`ordgroup`,mode:e.mode,body:ee};n&&(x={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[x]}),m.push(x);var S=e.fetch().text;if(S===`&`){if(d&&m.length===d){if(l||s)throw new B(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(S===`\\end`){b(),m.length===1&&x.type===`styling`&&x.body.length===1&&x.body[0].type===`ordgroup`&&x.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(S===`\\\\`){e.consume();var C=void 0;e.gullet.future().text!==` `&&(C=e.parseSizeGroup(!0)),g.push(C?C.value:null),b(),_.push(zk(e)),m=[],h.push(m),y()}else throw new B(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function Wk(e){return e.slice(0,1)===`d`?`display`:`text`}var Gk=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(ET.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?YT({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,ee=g;o<y.length&&(o=y.length);var x={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var S=YD(y[r],t);ee<S.depth&&(ee=S.depth),b<S.height&&(b=S.height),x.cells[r]=S}var C=e.rowGaps[n],w=0;C&&(w=YT(C,t),w>0&&(w+=g,ee<w&&(ee=w),w=0)),e.addJot&&n<e.body.length-1&&(ee+=p),x.height=b,x.depth=ee,_+=b,x.pos=_,_+=ee+w,s[n]=x,v(a[n+1])}var T=_/2+t.fontMetrics().axisHeight,te=e.cols||[],E=[],D,O,ne=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var k=s[n],re=k.pos-T,ie=e.tags[n],ae=void 0;ae=ie===!0?X([`eqn-num`],[],t):ie===!1?X([],[],t):X([],UD(ie,t,!0),t),ae.depth=k.depth,ae.height=k.height,ne.push({type:`elem`,elem:ae,shift:re})}for(r=0,O=0;r<o||O<te.length;++r,++O){for(var oe=te[O],se=!0;(A=oe)?.type===`separator`;){var A;if(se||(D=X([`arraycolsep`],[]),D.style.width=V(t.fontMetrics().doubleRuleSep),E.push(D)),oe.separator===`|`||oe.separator===`:`){var j=oe.separator===`|`?`solid`:`dashed`,ce=X([`vertical-separator`],[],t);ce.style.height=V(_),ce.style.borderRightWidth=V(l),ce.style.borderRightStyle=j,ce.style.margin=`0 `+V(-l/2);var le=_-T;le&&(ce.style.verticalAlign=V(-le)),E.push(ce)}else throw new B(`Invalid separator type: `+oe.separator);O++,oe=te[O],se=!1}if(!(r>=o)){var ue=void 0;(r>0||e.hskipBeforeAndAfter)&&(ue=oe?.pregap??d,ue!==0&&(D=X([`arraycolsep`],[]),D.style.width=V(ue),E.push(D)));var de=[];for(n=0;n<i;++n){var M=s[n],fe=M.cells[r];if(fe){var pe=M.pos-T;fe.depth=M.depth,fe.height=M.height,de.push({type:`elem`,elem:fe,shift:pe})}}var me=SD({positionType:`individualShift`,children:de}),he=X([`col-align-`+(oe?.align||`c`)],[me]);E.push(he),(r<o-1||e.hskipBeforeAndAfter)&&(ue=oe?.postgap??d,ue!==0&&(D=X([`arraycolsep`],[]),D.style.width=V(ue),E.push(D)))}}var ge=X([`mtable`],E);if(c.length>0){for(var _e=_D(`hline`,t,l),ve=_D(`hdashline`,t,l),ye=[{type:`elem`,elem:ge,shift:0}];c.length>0;){var be=c.pop(),N=be.pos-T;be.isDashed?ye.push({type:`elem`,elem:ve,shift:N}):ye.push({type:`elem`,elem:_e,shift:N})}ge=SD({positionType:`individualShift`,children:ye})}if(ne.length===0)return X([`mord`],[ge],t);var xe=X([`tag`],[SD({positionType:`individualShift`,children:ne})],t);return yD([ge,xe])},Kk={c:`center `,l:`left `,r:`right `},qk=function(e,t){for(var n=[],r=new Q(`mtd`,[],[`mtr-glue`]),i=new Q(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new Q(`mtd`,[uO(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new Q(`mtr`,s))}var l=new Q(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,V(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=Kk[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],ee=``,x=1;x<b.length;x++)ee+=x%2?`0em `:`1em `;l.setAttribute(`columnspacing`,ee.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var S=``,C=e.hLinesBeforeRow;d+=C[0].length>0?`left `:``,d+=C[C.length-1].length>0?`right `:``;for(var w=1;w<C.length-1;w++)S+=C[w].length===0?`none `:C[w][0]?`dashed `:`solid `;return/[sd]/.test(S)&&l.setAttribute(`rowlines`,S.trim()),d!==``&&(l=new Q(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new Q(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},Jk=function(e,t){e.envName.includes(`ed`)||Bk(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=Uk(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:Hk(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=kO(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)kO(kO(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new B(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};Fk({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(jO(t[0])?[t[0]]:kO(t[0],`ordgroup`).body).map(function(e){var t=AO(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new B(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Uk(e.parser,r,Wk(e.envName))},htmlBuilder:Gk,mathmlBuilder:qk}),Fk({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new B(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=Uk(e.parser,r,Wk(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Gk,mathmlBuilder:qk}),Fk({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Uk(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Gk,mathmlBuilder:qk}),Fk({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(jO(t[0])?[t[0]]:kO(t[0],`ordgroup`).body).map(function(e){var t=AO(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new B(`Unknown column alignment: `+t,e)});if(n.length>1)throw new B(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Uk(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new B(`{subarray} can contain only one column`);return i},htmlBuilder:Gk,mathmlBuilder:qk}),Fk({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Uk(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Wk(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Gk,mathmlBuilder:qk}),Fk({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Jk,htmlBuilder:Gk,mathmlBuilder:qk}),Fk({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){Vk.has(e.envName)&&Bk(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Hk(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Uk(e.parser,t,`display`)},htmlBuilder:Gk,mathmlBuilder:qk}),Fk({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Jk,htmlBuilder:Gk,mathmlBuilder:qk}),Fk({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Bk(e);var t={autoTag:Hk(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Uk(e.parser,t,`display`)},htmlBuilder:Gk,mathmlBuilder:qk}),Fk({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Bk(e),GO(e.parser)},htmlBuilder:Gk,mathmlBuilder:qk}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),Z({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new B(e.funcName+` valid only within array environment`)}});var Yk=Pk;Z({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new B(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=kO(i.body[o],`textord`).text;if(r===`\\begin`){if(!Yk.hasOwnProperty(a))throw new B(`No such environment: `+a,i);var s=Yk[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=kO(n.parseFunction(),`environment`);if(p.name!==a)throw new B(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var Xk=(e,t)=>{var n=e.font,r=t.withFont(n);return YD(e.body,r)},Zk=(e,t)=>{var n=e.font,r=t.withFont(n);return uO(e.body,r)},Qk={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};Z({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=LD(t[0]),a=r;return a in Qk&&(a=Qk[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Xk,mathmlBuilder:Zk}),Z({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:zO(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:rT(r)}}}),Z({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:Xk,mathmlBuilder:Zk});var $k=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=YD(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=YD(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=YT(e.barSize,t),u=_D(`frac-line`,t,d)):u=_D(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===ET.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=SD({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=SD({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===ET.DISPLAY.size?t.fontMetrics().delim1:n.size===ET.SCRIPTSCRIPT.size?t.havingStyle(ET.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,ee=e.leftDelim==null?JD(t,[`mopen`]):Tk(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),x=e.continued?X([]):e.rightDelim==null?JD(t,[`mclose`]):Tk(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return X([`mord`].concat(a.sizingClasses(t)),[ee,X([`mfrac`],[g]),x],t)},eA=(e,t)=>{var n=new Q(`mfrac`,[uO(e.numer,t),uO(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=YT(e.barSize,t);n.setAttribute(`linethickness`,V(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Q(`mo`,[new $D(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Q(`mo`,[new $D(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return iO(i)}return n},tA=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;Z({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),tA({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:$k,mathmlBuilder:eA}),Z({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var nA=[`display`,`text`,`script`,`scriptscript`],rA=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};Z({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=LD(t[0]),o=a.type===`atom`&&a.family===`open`?rA(a.text):null,s=LD(t[1]),c=s.type===`atom`&&s.family===`close`?rA(s.text):null,l=kO(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=kO(p.body[0],`textord`);f=nA[Number(m.text)]}}else p=kO(p,`textord`),f=nA[Number(p.text)];return tA({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),Z({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:kO(t[0],`size`).value,token:i}}}),Z({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=kO(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var iA=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?YD(e.sup,t.havingStyle(n.sup()),t):YD(e.sub,t.havingStyle(n.sub()),t),i=kO(e.base,`horizBrace`)):i=kO(e,`horizBrace`);var a=YD(i.base,t.havingBaseStyle(ET.DISPLAY)),o=wO(i,t),s=i.isOver?SD({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):SD({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=X([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?SD({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):SD({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return X([`minner`,i.isOver?`mover`:`munder`],[s],t)};Z({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:iA,mathmlBuilder:(e,t)=>{var n=xO(e.label);return new Q(e.isOver?`mover`:`munder`,[uO(e.base,t),n])}}),Z({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=kO(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:RD(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=UD(e.body,t,!1);return vD(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=lO(e.body,t);return n instanceof Q||(n=new Q(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Z({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=kO(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:RD(s)}}}),Z({type:`hbox`,names:[`\\hbox`],props:{numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:`hbox`,mode:n.mode,body:RD(t[0])}},htmlBuilder(e,t){return yD(UD(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new Q(`mrow`,cO(e.body,t.withFont(``)))}}),Z({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=kO(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new B(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:RD(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=UD(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=X(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>lO(e.body,t)}),Z({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:RD(t[0]),mathml:RD(t[1])}},htmlBuilder:(e,t)=>yD(UD(e.html,t,!1)),mathmlBuilder:(e,t)=>lO(e.mathml,t)});var aA=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new B(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!JT(n))throw new B(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};Z({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=kO(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=aA(d);break;case`height`:a=aA(d);break;case`totalheight`:o=aA(d);break;default:throw new B(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=kO(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=YT(e.height,t),r=0;e.totalheight.number>0&&(r=YT(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=YT(e.width,t));var a={height:V(n+r)};i>0&&(a.width=V(i)),r>0&&(a.verticalAlign=V(-r));var o=new iE(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Q(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=YT(e.height,t),i=0;if(e.totalheight.number>0&&(i=YT(e.totalheight,t)-r,n.setAttribute(`valign`,V(-i))),n.setAttribute(`height`,V(r+i)),e.width.number>0){var a=YT(e.width,t);n.setAttribute(`width`,V(a))}return n.setAttribute(`src`,e.src),n}}),Z({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=kO(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return CD(e.dimension,t)},mathmlBuilder(e,t){return new eO(YT(e.dimension,t))}}),Z({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=X([],[YD(e.body,t)]),n=X([`inner`],[n],t)):n=X([`inner`],[YD(e.body,t)]);var r=X([`fix`],[]),i=X([e.alignment],[n,r],t),a=X([`strut`]);return a.style.height=V(i.height+i.depth),i.depth&&(a.style.verticalAlign=V(-i.depth)),i.children.unshift(a),i=X([`thinbox`],[i],t),X([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[uO(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),Z({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),Z({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new B(`Mismatched `+e.funcName)}});var oA=(e,t)=>{switch(t.style.size){case ET.DISPLAY.size:return e.display;case ET.TEXT.size:return e.text;case ET.SCRIPT.size:return e.script;case ET.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Z({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:RD(t[0]),text:RD(t[1]),script:RD(t[2]),scriptscript:RD(t[3])}},htmlBuilder:(e,t)=>yD(UD(oA(e,t),t,!1)),mathmlBuilder:(e,t)=>lO(oA(e,t),t)});var sA=(e,t,n,r,i,a,o)=>{e=X([],[e]);var s=n&&rT(n),c,l;if(t){var u=YD(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=YD(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=SD({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:V(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:V(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=SD({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:V(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=SD({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:V(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=X([`mspace`],[],r);m.style.marginRight=V(a),p.unshift(m)}return X([`mop`,`op-limits`],p,r)},cA=new Set([`\\smallint`]),lA=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=kO(e.base,`op`),i=!0):a=kO(e,`op`);var o=t.style,s=!1;o.size===ET.DISPLAY.size&&a.symbol&&!cA.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=lD(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=DD(d+`Size`+(s?`2`:`1`),t);c=SD({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=UD(a.body,t,!0);p.length===1&&p[0]instanceof oE?(c=p[0],c.classes[0]=`mop`):c=X([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(uD(a.name[h],a.mode,t));c=X([`mop`],m,t)}var g=0,_=0;return(c instanceof oE||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?sA(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=V(g)),c)},uA=(e,t)=>{var n;if(e.symbol)n=new Q(`mo`,[rO(e.name,e.mode)]),cA.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Q(`mo`,cO(e.body,t));else{n=new Q(`mi`,[new $D(e.name.slice(1))]);var r=new Q(`mo`,[rO(`⁡`,`text`)]);n=e.parentIsSupSub?new Q(`mrow`,[n,r]):QD([n,r])}return n},dA={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};Z({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=dA[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:lA,mathmlBuilder:uA}),Z({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:RD(r)}},htmlBuilder:lA,mathmlBuilder:uA});var fA={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};Z({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:lA,mathmlBuilder:uA}),Z({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:lA,mathmlBuilder:uA}),Z({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=fA[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:lA,mathmlBuilder:uA});var pA=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=kO(e.base,`operatorname`),i=!0):a=kO(e,`operatorname`);var o;if(a.body.length>0){for(var s=UD(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof oE&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=X([`mop`],s,t)}else o=X([`mop`],[],t);return i?sA(o,n,r,t,t.style,0,0):o};Z({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:RD(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:pA,mathmlBuilder:(e,t)=>{for(var n=cO(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof eO)){if(a instanceof Q)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof $D?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new $D(n.map(e=>e.toText()).join(``))]);var s=new Q(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new Q(`mo`,[rO(`⁡`,`text`)]);return e.parentIsSupSub?new Q(`mrow`,[s,c]):QD([s,c])}}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),ID({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?yD(UD(e.body,t,!1)):X([`mord`],UD(e.body,t,!0),t)},mathmlBuilder(e,t){return lO(e.body,t,!0)}}),Z({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=YD(e.body,t.havingCrampedStyle()),r=_D(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return X([`mord`,`overline`],[SD({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Q(`mo`,[new $D(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Q(`mover`,[uO(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Z({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:RD(r)}},htmlBuilder:(e,t)=>yD(UD(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new Q(`mphantom`,cO(e.body,t))}),$(`\\hphantom`,`\\smash{\\phantom{#1}}`),Z({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>X([`mord`,`rlap`],[X([`inner`],[YD(e.body,t.withPhantom())]),X([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[new Q(`mphantom`,cO(RD(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),Z({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=kO(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=YD(e.body,t);return SD({positionType:`shift`,positionData:-YT(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Q(`mpadded`,[uO(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Z({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),Z({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=kO(t[0],`size`),o=kO(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&kO(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=X([`mord`,`rule`],[],t),r=YT(e.width,t),i=YT(e.height,t),a=e.shift?YT(e.shift,t):0;return n.style.borderRightWidth=V(r),n.style.borderTopWidth=V(i),n.style.bottom=V(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=YT(e.width,t),r=YT(e.height,t),i=e.shift?YT(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Q(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,V(n)),o.setAttribute(`height`,V(r));var s=new Q(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,V(i)):(s.setAttribute(`height`,V(i)),s.setAttribute(`depth`,V(-i))),s.setAttribute(`voffset`,V(i)),s}});function mA(e,t,n){for(var r=UD(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return yD(r)}var hA=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];Z({type:`sizing`,names:hA,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:hA.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return mA(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new Q(`mstyle`,cO(e.body,n));return r.setAttribute(`mathsize`,V(n.sizeMultiplier)),r}}),Z({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&kO(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=AO(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=X([],[YD(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return X([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return X([`mord`],[SD({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[uO(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Z({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=YD(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=bD(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<ET.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=mk(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=V(c);var d=SD({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(ET.SCRIPTSCRIPT),p=YD(e.index,f,t);return X([`mord`,`sqrt`],[X([`root`],[SD({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}return X([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Q(`mroot`,[uO(n,t),uO(r,t)]):new Q(`msqrt`,[uO(n,t)])}});var gA={display:ET.DISPLAY,text:ET.TEXT,script:ET.SCRIPT,scriptscript:ET.SCRIPTSCRIPT};function _A(e){return e in gA}Z({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!_A(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=gA[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),mA(e.body,r,t)},mathmlBuilder(e,t){var n=gA[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new Q(`mstyle`,cO(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var vA=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===ET.DISPLAY.size||n.alwaysHandleSupSub)?lA:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===ET.DISPLAY.size||n.limits)?pA:null:n.type===`accent`?rT(n.base)?NO:null:n.type===`horizBrace`&&!e.sub===n.isOver?iA:null:null};ID({type:`supsub`,htmlBuilder(e,t){var n=vA(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=YD(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&rT(r);if(i){var p=t.havingStyle(t.style.sup());s=YD(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=YD(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===ET.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=V(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof oE||y)&&(v=V(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var ee=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<ee){d=ee-(u-s.depth)+c.height;var x=.8*l.xHeight-(u-s.depth);x>0&&(u+=x,d-=x)}b=SD({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=SD({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=SD({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return X([qD(o,`right`)||`mord`],[o,X([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[uO(e.base,t)];e.sub&&a.push(uO(e.sub,t)),e.sup&&a.push(uO(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===ET.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===ET.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===ET.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===ET.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===ET.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===ET.DISPLAY)?`munder`:`msub`}return new Q(o,a)}}),ID({type:`atom`,htmlBuilder(e,t){return uD(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Q(`mo`,[rO(e.text,e.mode)]);if(e.family===`bin`){var r=oO(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var yA={mi:`italic`,mn:`normal`,mtext:`normal`};ID({type:`mathord`,htmlBuilder(e,t){return fD(e,t,`mathord`)},mathmlBuilder(e,t){var n=new Q(`mi`,[rO(e.text,e.mode,t)]),r=oO(e,t)||`italic`;return r!==yA[n.type]&&n.setAttribute(`mathvariant`,r),n}}),ID({type:`textord`,htmlBuilder(e,t){return fD(e,t,`textord`)},mathmlBuilder(e,t){var n=rO(e.text,e.mode,t),r=oO(e,t)||`normal`,i=e.mode===`text`?new Q(`mtext`,[n]):/[0-9]/.test(e.text)?new Q(`mn`,[n]):e.text===`\\prime`?new Q(`mo`,[n]):new Q(`mi`,[n]);return r!==yA[i.type]&&i.setAttribute(`mathvariant`,r),i}});var bA={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},xA={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};ID({type:`spacing`,htmlBuilder(e,t){if(xA.hasOwnProperty(e.text)){var n=xA[e.text].className||``;if(e.mode===`text`){var r=fD(e,t,`textord`);return r.classes.push(n),r}return X([`mspace`,n],[uD(e.text,e.mode,t)],t)}if(bA.hasOwnProperty(e.text))return X([`mspace`,bA[e.text]],[],t);throw new B(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(xA.hasOwnProperty(e.text))n=new Q(`mtext`,[new $D(`\xA0`)]);else if(bA.hasOwnProperty(e.text))return new Q(`mspace`);else throw new B(`Unknown type of space "`+e.text+`"`);return n}});var SA=()=>{var e=new Q(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};ID({type:`tag`,mathmlBuilder(e,t){var n=new Q(`mtable`,[new Q(`mtr`,[SA(),new Q(`mtd`,[lO(e.body,t)]),SA(),new Q(`mtd`,[lO(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var CA={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},wA={"\\textbf":`textbf`,"\\textmd":`textmd`},TA={"\\textit":`textit`,"\\textup":`textup`},EA=(e,t)=>{var n=e.font;return n?CA[n]?t.withTextFontFamily(CA[n]):wA[n]?t.withTextFontWeight(wA[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(TA[n]):t};Z({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:RD(i),font:r}},htmlBuilder(e,t){var n=EA(e,t);return X([`mord`,`text`],UD(e.body,n,!0),n)},mathmlBuilder(e,t){var n=EA(e,t);return lO(e.body,n)}}),Z({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=YD(e.body,t),r=_D(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return X([`mord`,`underline`],[SD({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Q(`mo`,[new $D(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Q(`munder`,[uO(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Z({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=YD(e.body,t),r=t.fontMetrics().axisHeight;return SD({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new Q(`mrow`,[new Q(`mpadded`,[uO(e.body,t)],[`vcenter`])])}}),Z({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new B(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=DA(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(lD(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return X([`mord`,`text`].concat(i.sizingClasses(t)),mD(r),i)},mathmlBuilder(e,t){var n=new Q(`mtext`,[new $D(DA(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var DA=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),OA=ND,kA=`[ \r
326
+ ]`,AA=`\\\\[a-zA-Z@]+`,jA=`\\\\[^\ud800-\udfff]`,MA=`(`+AA+`)`+kA+`*`,NA=`\\\\(
327
+ |[ \r ]+
328
+ ?)[ \r ]*`,PA=`[̀-ͯ]`,FA=RegExp(PA+`+$`),IA=`(`+kA+`+)|`+(NA+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(PA+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(PA+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+MA)+(`|`+jA+`)`),LA=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(IA,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Rk(`EOF`,new Lk(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new B(`Unexpected character: '`+e[t]+`'`,new Rk(e[t],new Lk(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
329
+ `,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 Rk(r,new Lk(this,t,this.tokenRegex.lastIndex))}},RA=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new B(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}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,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},zA=Ik;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var BA={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};$(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new B("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=BA[t.text],r==null||r>=n)throw new B(`Invalid base-`+n+` digit `+t.text);for(var i;(i=BA[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var VA=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new B(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new B(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new B(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new B(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>VA(e,!1,!0,!1)),$(`\\renewcommand`,e=>VA(e,!0,!1,!1)),$(`\\providecommand`,e=>VA(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),OA[n],bE.math[n],bE.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var HA={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},UA=new Set([`bin`,`rel`]);$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in HA?t=HA[n]:(n.slice(0,4)===`\\not`||n in bE.math&&UA.has(bE.math[n].group))&&(t=`\\dotsb`),t});var WA={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in WA?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in WA&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in WA?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new B(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var GA=V(pE[`Main-Regular`][84][1]-.7*pE[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+GA+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+GA+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var KA=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,KA(!1)),$(`\\bra@set`,KA(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var qA={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},JA=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new RA(zA,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new LA(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new Rk(`EOF`,n.loc)),this.pushTokens(r),new Rk(``,Lk.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new B(`Extra }`,i)}else if(i.text===`EOF`)throw new B(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new B(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new B(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new B(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new B(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new B(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new B(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Rk(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new LA(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||OA.hasOwnProperty(e)||bE.math.hasOwnProperty(e)||bE.text.hasOwnProperty(e)||qA.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?OA.hasOwnProperty(e)&&!OA[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},YA=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,XA=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),ZA={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},QA={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},$A=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new JA(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new B(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Rk(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&OA[i.text]&&OA[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new B(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new B(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new B(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new B(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new B(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new B(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(XA[i.text]){var s=YA.test(i.text),c=[];for(c.push(new Rk(XA[i.text])),this.consume();;){var l=this.fetch().text;if(!XA[l]||YA.test(l)!==s)break;c.unshift(new Rk(XA[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=OA[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new B(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new B(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new B(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=OA[e];if(o&&o.handler)return o.handler(a,t,n);throw new B(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new B(`Null argument, please report this as a bug`)}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new B(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new B(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new B(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new B(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new B(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new B(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!JT(i))throw new B(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:Lk.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!qA.hasOwnProperty(r)){if(this.settings.throwOnError)throw new B(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(a&&a.type===`textord`){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:Lk.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:Lk.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:Lk.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new B(`\\verb assertion failed --
330
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}QA.hasOwnProperty(t[0])&&!bE[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=QA[t[0]]+t.slice(1));var i=FA.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(bE[this.mode][t]){this.settings.strict&&this.mode===`math`&&WE.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=bE[this.mode][t].group,s=Lk.range(e);a=OO(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(AT(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:Lk.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!ZA[l])throw new B(`Unknown accent ' `+l+`'`,e);var u=ZA[l][this.mode]||ZA[l].text;if(!u)throw new B(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:Lk.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};$A.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var ej=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new $A(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new B(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new Rk(`\\df@tag`)])}]}return r},tj=function(e,t,n){t.textContent=``;var r=aj(e,n).toNode();t.appendChild(r)};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.`),tj=function(){throw new B(`KaTeX doesn't work in quirks mode.`)});var nj=function(e,t){return aj(e,t).toMarkup()},rj=function(e,t){return ej(e,new lT(t))},ij=function(e,t,n){if(n.throwOnError||!(e instanceof B))throw e;var r=X([`katex-error`],[new oE(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},aj=function(e,t){var n=new lT(t);try{return vO(ej(e,n),e,n)}catch(t){return ij(t,e,n)}},oj={version:`0.16.47`,render:tj,renderToString:nj,ParseError:B,SETTINGS_SCHEMA:aT,__parse:rj,__renderToDomTree:aj,__renderToHTMLTree:function(e,t){var n=new lT(t);try{return yO(ej(e,n),e,n)}catch(t){return ij(t,e,n)}},__setFontMetrics:gE,__defineSymbol:H,__defineFunction:Z,__defineMacro:$,__domTree:{Span:nE,Anchor:rE,SymbolNode:oE,SvgNode:sE,PathNode:cE,LineNode:lE}};function sj(e,t){ie(t,!0);let n=De(t,`displayMode`,3,!1),r=A(()=>oj.renderToString(t.text,{throwOnError:!1,displayMode:n()}));var i=c(),a=I(i);ge(a,()=>u(r)),y(e,i),Le()}var cj=`inlineKatex`,lj=`blockKatex`,uj=[`equation`,`align`,`alignat`,`gather`,`CD`].flatMap(e=>[e,`${e}\\*`]).join(`|`),dj=/^\\\[\s*([\s\S]+?)\s*\\\](?:\n|$)/,fj=/^\$\$\s*([\s\S]+?)\s*\$\$(?:\n|$)/,pj=RegExp(`^\\\\begin\\{(${uj})\\}[\\s\\S]+?\\\\end\\{\\1\\}(?:\\n|$)?`),mj=/^\\\(([\s\S]+?)\\\)/,hj=/^\$(?!\$)((?:\\.|[^\\\n$])+?)\$(?=[\s?!.,:)\]}?!。,:]|$)/,gj=(e,t)=>{let n=-1;for(let r of t){let t=e.indexOf(r);t!==-1&&(n===-1||t<n)&&(n=t)}return n===-1?void 0:n};function _j(e={}){let{singleDollarInline:t=!1}=e;return jw({_humanspeakKatexConfig:JSON.stringify({singleDollarInline:t}),extensions:[{name:lj,level:`block`,start(e){return gj(e,[`\\[`,`$$`,`\\begin{`])},tokenizer(e){let t=e.match(dj);if(t)return{type:lj,raw:t[0],text:t[1].trim(),displayMode:!0};let n=e.match(fj);if(n)return{type:lj,raw:n[0],text:n[1].trim(),displayMode:!0};let r=e.match(pj);if(r)return{type:lj,raw:r[0],text:r[0].replace(/\n$/,``).trim(),displayMode:!0}}},{name:cj,level:`inline`,start(e){let n=[`\\(`];return t&&n.push(`$`),gj(e,n)},tokenizer(e){let n=e.match(mj);if(n)return{type:cj,raw:n[0],text:n[1].trim(),displayMode:!1};if(t){let t=e.match(hj);if(t)return{type:cj,raw:t[0],text:t[1].trim(),displayMode:!1}}}}]})}var vj=d(`<div class="markdown"><!></div>`);function yj(e,t){ie(t,!1);let n=De(t,`text`,8,``),r={...CS,html:Jw(),inlineKatex:sj,blockKatex:sj},i=[_j({singleDollarInline:!0})];se();var a=vj();Yw(j(a),{get source(){return n()},get renderers(){return r},get extensions(){return i}}),L(a),y(e,a),Le()}function bj(e){let t=new Date(e);return`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}`}function xj(e){return new Date(e).toISOString()}function Sj(e,t,n){return e?t?`inline`:n?`bubble-trailing`:`stack-trailing`:`none`}function Cj(e,t){return e===1&&t}function wj(e){return!!e.trim()&&!/[\n\r`*_#[\]()<>]/u.test(e)}function Tj(e,t,n=240){let r=typeof e==`number`&&Number.isFinite(e)&&e>0,i=typeof t==`number`&&Number.isFinite(t)&&t>0,a=Number.isFinite(n)&&n>0?n:240;if(!r||!i)return{width:a,height:Math.round(a*.75),cropped:!1};let o=e,s=t,c=o/s,l=Math.min(1,a/Math.max(o,s)),u=Math.max(1,Math.round(o*l)),d=Math.max(1,Math.round(s*l)),f=!1,p=u/d;return p<.25?(u=Math.max(1,Math.round(d*.25)),f=!0):p>4&&(d=Math.max(1,Math.round(u/4)),f=!0),{width:u,height:d,sourceAspectRatio:c,cropped:f}}var Ej=d(`<img alt=""/>`),Dj=d(`<span aria-hidden="true">✦</span>`),Oj=d(`<label><input class="cmp-radio cmp-radio-primary" type="radio" name="companion-appearance"/><span> </span></label>`),kj=d(`<label><input class="cmp-radio cmp-radio-primary" type="radio" name="companion-language"/><span> </span></label>`),Aj=d(`<section id="companion-preferences-panel" class="companion-preferences-panel"><fieldset><legend> </legend> <!></fieldset> <fieldset><legend> </legend> <!></fieldset></section>`),jj=d(`<section class="companion-loading-shell" role="status"><span class="cmp-loading cmp-loading-spinner cmp-loading-sm" aria-hidden="true"></span><span> </span></section>`),Mj=d(`<section class="companion-recovery" role="alert"><div class="companion-mood-orb cmp-mask cmp-mask-circle" aria-hidden="true"></div> <h1> </h1> <p> </p> <a class="cmp-btn cmp-btn-primary" href="/"> </a></section>`),Nj=d(`<section class="companion-recovery" role="alert"><div class="companion-mood-orb cmp-mask cmp-mask-circle" aria-hidden="true"></div> <h1> </h1> <p> </p> <button class="cmp-btn cmp-btn-primary"> </button></section>`),Pj=d(`<div data-testid="keet-recovery-notice" role="status" class="cmp-alert cmp-alert-warning"><span> </span></div>`),Fj=d(`<button class="cmp-btn cmp-btn-ghost cmp-btn-sm" style="display:block;margin:0 auto 18px"> </button>`),Ij=d(`<div class="companion-recovery"><div class="companion-mood-orb cmp-mask cmp-mask-circle" aria-hidden="true"></div> <h1> </h1> <p> </p></div>`),Lj=d(`<div class="companion-continuity-record" aria-live="off"> </div>`),Rj=d(`<div class="companion-recovery"><p> </p></div>`),zj=d(`<span aria-hidden="true"> </span>`),Bj=d(`<div class="cmp-skeleton companion-media-loading" aria-hidden="true"></div> <div class="companion-media-status" role="status"> </div>`,1),Vj=d(`<button class="companion-media-button"><img/></button>`),Hj=d(`<div class="companion-media-failure" role="alert"><span> </span><button class="cmp-btn cmp-btn-ghost cmp-btn-sm" type="button"> </button></div>`),Uj=d(`<div class="companion-media-failure" role="alert"><span> </span></div>`),Wj=d(`<div class="cmp-loading cmp-loading-spinner companion-media-spinner" role="status"></div>`),Gj=d(`<div><div><!></div></div>`),Kj=d(`<div></div>`),qj=d(`<time class="companion-message-time companion-message-time-inline" data-placement="inline"> </time>`),Jj=d(`<time class="companion-message-time"> </time>`),Yj=d(`<div><!><!></div>`),Xj=d(`<span aria-hidden="true"></span>`),Zj=d(`<span role="timer" aria-live="off"> </span>`),Qj=d(`<span role="status"> </span>`),$j=d(`<span role="alert"> </span>`),eM=d(`<audio class="companion-audio" preload="metadata" aria-hidden="true" tabindex="-1"></audio> <button class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-voice-control"><!></button> <div class="companion-voice-player"><div class="companion-voice-waveform"><!> <input class="companion-voice-seek" type="range" min="0" step="0.1"/></div> <div class="companion-voice-meta"><!><!></div></div>`,1),tM=d(`<div class="cmp-chat-bubble companion-bubble companion-voice" role="region"><!></div>`),nM=d(`<div class="companion-meta" role="status"> </div>`),rM=d(`<article><div class="cmp-chat-image cmp-avatar cmp-avatar-placeholder message-avatar"><div class="companion-avatar-crop cmp-mask cmp-mask-circle"><!></div></div> <div class="companion-message-stack"><!> <!> <!></div></article>`),iM=d(`<span class="companion-waiting-copy"> </span>`),aM=d(`<article class="cmp-chat cmp-chat-start companion-row incoming" data-testid="companion-typing-indicator" role="status"><div class="cmp-chat-image cmp-avatar cmp-avatar-placeholder message-avatar"><div class="companion-avatar-crop cmp-mask cmp-mask-circle"><!></div></div> <div class="cmp-chat-bubble companion-bubble companion-typing-bubble"><span class="cmp-loading cmp-loading-dots cmp-loading-sm" aria-hidden="true"></span><!></div></article>`),oM=d(`<button class="cmp-btn cmp-btn-primary cmp-btn-sm companion-new-message" style="position:sticky;bottom:10px;left:50%;transform:translateX(-50%)"> </button>`),sM=d(`<div id="companion-command-suggestions" class="companion-command-suggestions" role="listbox"><button id="companion-command-compact" class="cmp-btn cmp-btn-ghost companion-command-suggestion" type="button" role="option" aria-selected="true"><span class="companion-command-name"> </span> <span class="companion-command-description"> </span> <span class="companion-command-tab" aria-hidden="true">Tab</span></button></div>`),cM=d(`<div class="companion-continuity-status" data-testid="companion-continuity-status" aria-live="polite"><!></div>`),lM=d(`<div class="companion-image-draft"><button class="companion-image-draft-preview" type="button"><img/></button> <button class="cmp-btn cmp-btn-neutral cmp-btn-circle cmp-btn-xs companion-image-draft-remove" type="button"><!></button></div>`),uM=d(`<div class="companion-image-drafts" role="group"></div>`),dM=d(`<span class="cmp-loading cmp-loading-spinner cmp-loading-sm" aria-hidden="true"></span>`),fM=d(`<div id="companion-context-popover" class="cmp-card companion-context-popover" role="dialog" aria-labelledby="companion-context-popover-title" tabindex="-1"><h2 id="companion-context-popover-title"> </h2> <p class="companion-context-percent"> </p> <p> </p></div>`),pM=d(`<div class="companion-context-meter-wrap"><button type="button" aria-controls="companion-context-popover"><svg viewBox="0 0 28 28" aria-hidden="true"><circle class="companion-context-meter-track" cx="14" cy="14" r="11"></circle><circle class="companion-context-meter-value" cx="14" cy="14" r="11" pathLength="100"></circle></svg></button> <!></div>`),mM=d(`<button class="cmp-btn cmp-btn-primary cmp-btn-circle companion-send"><!></button>`),hM=d(`<button class="cmp-btn cmp-btn-primary cmp-btn-circle companion-send"><span aria-hidden="true">↑</span></button>`),gM=d(`<button class="cmp-btn cmp-btn-neutral cmp-btn-circle companion-stop-inline" data-testid="companion-stop"><!></button>`),_M=d(`<div class="companion-voice-input-status companion-voice-input-error" role="alert"> </div>`),vM=d(`<div class="companion-voice-input-status" data-testid="companion-voice-recording-status" role="status" aria-live="polite"> </div>`),yM=d(`<div class="companion-voice-input-status" data-testid="companion-voice-transcribing-status" role="status" aria-live="polite"> </div>`),bM=d(`<div class="companion-voice-input-status companion-voice-input-unavailable" data-testid="companion-voice-unavailable-status" role="status"> </div>`),xM=d(`<div class="companion-voice-input-status companion-voice-input-error" data-testid="companion-voice-error-status" role="status"> </div>`),SM=d(`<div role="log" aria-live="polite" aria-relevant="additions text"><div class="companion-timeline-content"><!> <!> <!> <!> <!> <!></div></div> <div class="companion-composer"><!> <!> <!> <div class="companion-compose-row"><input id="companion-image-library" class="companion-image-input" type="file" multiple="" tabindex="-1" aria-hidden="true"/> <button class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-attach" type="button"><!></button> <textarea class="companion-textarea" rows="1"></textarea> <button type="button"><!></button> <!> <!> <!></div> <!> <!> <div class="companion-compose-hint"> </div></div>`,1),CM=d(`<div class="companion-history-state" role="alert"><p> </p><button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-sm"> </button></div>`),wM=d(`<p class="companion-history-state" role="status"> </p>`),TM=d(`<p class="companion-history-state"> </p>`),EM=d(`<h3> </h3>`),DM=d(`<button type="button" class="companion-gallery-tile"><img loading="lazy" decoding="async"/></button>`),OM=d(`<div><!></div>`),kM=d(`<div class="companion-gallery-toolbar"><span> </span><div class="companion-gallery-grouping" role="group"><button type="button"> </button><button type="button"> </button></div></div><div class="companion-gallery-viewport"><div class="companion-gallery-virtual"></div></div><!>`,1),AM=d(`<section class="companion-gallery"><!></section>`),jM=d(`<button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-sm companion-diary-back"> </button> <article class="companion-diary-page"><time> </time> <!></article>`,1),MM=d(`<p class="companion-history-state" role="alert"> </p>`),NM=d(`<div class="companion-history-state" role="alert"><p> </p> <button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-sm"> </button></div>`),PM=d(`<button type="button" class="companion-diary-list-entry"><time> </time> <span aria-hidden="true">›</span></button>`),FM=d(`<div class="companion-diary-list"></div>`),IM=d(`<section class="companion-diary"><!></section>`),LM=d(`<div class="companion-history-state" role="status"><span class="cmp-loading cmp-loading-spinner cmp-loading-sm" aria-hidden="true"></span> <span> </span></div>`),RM=d(`<button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-sm companion-history-earlier"> </button>`),zM=d(`<p class="companion-history-initial"> </p>`),BM=d(`<strong class="companion-history-growth"> </strong>`),VM=d(`<p class="companion-history-reason"> </p>`),HM=d(`<li><strong> </strong> <div class="companion-history-values"><span> </span><!></div> <!></li>`),UM=d(`<ul></ul>`),WM=d(`<article class="companion-history-entry"><time> </time> <!></article>`),GM=d(`<!> <div class="companion-history-entries"></div>`,1),KM=d(`<section class="companion-history-current" aria-labelledby="companion-history-current-title"><h3 id="companion-history-current-title"> </h3> <dl class="companion-history-current-list"><dt> </dt> <dd> </dd> <dt> </dt> <dd> </dd> <dt> </dt> <dd> </dd></dl></section> <section class="companion-history-list" aria-labelledby="companion-history-list-title"><h3 id="companion-history-list-title"> </h3> <!></section>`,1),qM=d(`<div class="companion-history-backdrop"><button type="button" tabindex="-1"></button></div> <div id="companion-relationship-drawer" class="companion-history-drawer" role="dialog" aria-modal="true" data-testid="companion-relationship-drawer"><div class="companion-history-controls"><button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-circle cmp-btn-sm"><!></button></div> <div class="companion-diary-tabs" role="tablist"><button type="button" role="tab" id="companion-history-tab" aria-controls="companion-drawer-panel"><!></button> <button type="button" role="tab" id="companion-diary-tab" aria-controls="companion-drawer-panel"><!></button> <button type="button" role="tab" id="companion-images-tab" aria-controls="companion-drawer-panel"><!></button></div> <div id="companion-drawer-panel" class="companion-history-scroll" role="tabpanel"><!></div></div>`,1),JM=d(`<img/>`),YM=d(`<div class="cmp-loading cmp-loading-spinner"></div>`),XM=d(`<dialog id="companion-image-lightbox" class="cmp-modal companion-lightbox"><div class="cmp-modal-box companion-lightbox-dialog"><!></div> <button class="cmp-btn cmp-btn-circle companion-lightbox-close"><!></button> <form method="dialog" class="cmp-modal-backdrop companion-lightbox-backdrop"><button type="submit"> </button></form></dialog>`),ZM=d(`<div id="dsh-companion" class="companion-shell" data-testid="companion-root"><div class="companion-app"><div class="companion-content"><main class="companion-main"><header class="companion-header"><div><button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-history-toggle" aria-controls="companion-relationship-drawer"><!></button></div> <div class="companion-avatar-anchor" aria-hidden="true"><div class="cmp-avatar cmp-avatar-placeholder companion-avatar"><div class="companion-avatar-crop cmp-mask cmp-mask-circle"><!></div></div></div> <div class="companion-header-copy"><div class="companion-name"> </div> <div class="companion-presence" aria-live="polite"><span></span> </div></div> <div class="companion-preferences"><button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-preferences-trigger" aria-controls="companion-preferences-panel"><!></button> <!></div></header> <!></main></div></div> <!> <!></div> <div class="companion-sr-only" aria-live="assertive"> </div>`,1);function QM(n,a){ie(a,!1);let o=()=>be(gt,`$galleryVirtualizer`,s),[s,d]=we(),p=k(),m=k(),_=k(),v=k(),b=k(),x=k(),S=k(),C=De(a,`t`,8,ch),w=De(a,`locale`,8,`en`),E=De(a,`projection`,24,()=>({items:[],messageUnits:[],pendingCount:0,running:!1,status:`ready`,openState:`open`,hasMore:!1,loadingOlder:!1})),ne=De(a,`identity`,24,()=>({companionName:`Companion`,userName:C()(`you`),preferredAddress:C()(`you`),signature:``,moodLabel:C()(`mood.neutral`),mood:`neutral`,affinity:50,affinityStage:C()(`affinity.familiar`)})),ae=De(a,`actions`,24,()=>({send:async()=>void 0})),oe=De(a,`workspaceReadiness`,8,`loading`),de=De(a,`sessionReadiness`,8,`loading`),M=De(a,`relationshipReadiness`,8,`loading`),fe=De(a,`sessionId`,8),me=De(a,`imageLimits`,8),ge=De(a,`voiceCapability`,8,`unavailable`),_e=De(a,`continuity`,24,()=>({})),ye=De(a,`keetLosses`,24,()=>[]),xe=De(a,`recoveredDraft`,8),Me=De(a,`history`,24,()=>({status:`loading`,records:[],hasEarlier:!1})),Ne=De(a,`onHistoryOpenChange`,8),Fe=De(a,`appearance`,8,`system`),ze=De(a,`onAppearanceChange`,8,()=>void 0),Be=De(a,`onLanguageChange`,8,()=>void 0),Ve=Oe(),Ue={current:0,duration:0,playing:!1},Ye=[`wait.thinking`,`wait.words`,`wait.soon`,`wait.care`,`wait.here`],Xe=k(Eg()),Ze=k(),Qe=k(),et=k(),tt=k(!1),nt=k(),rt=k(!1),it=0,at=k(!1),ot=k(!1),st=k(),ct=k(`history`),lt=k([]),ut=k(`week`),dt=k(),ft=k(!1),pt=k(!1),ht=k(),gt=hg({count:0,getScrollElement:()=>u(ht),estimateSize:()=>132,overscan:5});function _t(e,t){let n=t=>{e.dataset.index=String(t),o().measureElement(e)};return n(t),{update:n,destroy:()=>o().measureElement(null)}}let vt=k([]),yt=k(),xt=k(!1),St=k(!1),Ct=k(!1),wt,Dt=k(),Ot=k(``),kt=k({}),At=k({}),jt=k({}),Mt=k({}),Nt=k({}),Pt={},R={},Ft={},It=k(!0),Lt=k(``),Rt,zt,Bt=k(),Vt=k(),Ht=!1,Ut=!1,Wt=k(``),Gt=k(!1),Kt=k(!1),qt=k(``),Jt=``,Yt,Xt,Zt=k(!1),Qt=k(),$t=k(),en,tn=k(),nn=``,rn,an=k([]),on=k(),sn=k(``),cn=k(0),ln=[],un=new Set,dn=k(E()),fn=k(0),pn,mn=!1,hn=0,gn=k(`idle`),_n=bt(),vn=k(0),yn,bn=k(``),xn=new Et({onStatus:e=>{F(gn,e)},onError:e=>{Tr(),F(vn,0),e.code!==`cancelled`&&(F(bn,Cr(e)),F(Lt,{key:u(bn)}))}}),Sn=k(),Cn;async function wn(){let e=++hn;if(await te(),e!==hn||!u(Ze))return;Se(Ze,u(Ze).style.height=`auto`);let t=wg(u(Ze).scrollHeight,43,150);Se(Ze,u(Ze).style.height=`${t.height}px`),Se(Ze,u(Ze).style.overflowY=t.scrollable?`auto`:`hidden`)}async function Tn(e){let t=ve(cn);if(F(sn,e.key),fe()!==u(on))return;let n=u(Xe).draft.trim();F(Xe,{...u(Xe),draft:n?`${e.input}\n${u(Xe).draft}`:e.input,composing:!1});let r=[];for(let t of e.images)try{let e=await fetch(t.url);if(!e.ok)continue;let n=await e.blob();r.push(new File([n],t.name,{type:n.type||`image/png`}))}catch{}t===u(cn)&&fe()===u(on)&&(r.length&&F(an,[...u(an),...Ge(r)]),wn(),F(Lt,{key:`error.restored`}))}function En(e){let t=e.items.filter(e=>e.kind===`text`||e.kind===`image`||e.kind===`voice`);if(e.side===`outgoing`){let e=t.filter(e=>e.kind===`image`),n=t.filter(e=>e.kind!==`image`);return[...e.length?[{kind:`images`,items:e}]:[],...n.map(e=>({kind:`item`,item:e}))]}let n=[];for(let e of t)if(e.kind===`image`){let t=n.at(-1);t?.kind===`images`?t.items.push(e):n.push({kind:`images`,items:[e]})}else n.push({kind:`item`,item:e});return n}function Dn(e){let t=e.attachment?.width,n=e.attachment?.height;return typeof t==`number`&&t>0&&typeof n==`number`&&n>0}function On(e,t){if(t)return`width:64px;height:64px`;let n=Ft[e.id],r=n?.width??e.attachment?.width,i=n?.height??e.attachment?.height;if(!Dn(e)&&!n)return`max-width:100%;max-height:240px;width:auto;height:auto`;let a=Tj(r,i,240);return`width:${a.width}px;height:${a.height}px;object-fit:${a.cropped?`cover`:`contain`}`}function kn(e,t){if(Dn(e))return;let n=t.currentTarget;if(n.naturalWidth<=0||n.naturalHeight<=0)return;let r=Ft[e.id];(r?.width!==n.naturalWidth||r.height!==n.naturalHeight)&&(Ft={...Ft,[e.id]:{width:n.naturalWidth,height:n.naturalHeight}})}function An(e){let t=e.items.find(e=>e.kind===`voice`);return t?`voice-${t.id}`:`message-${e.id}`}function jn(e){return e.time!==void 0&&e.items.length===1&&e.items[0]?.kind===`text`&&wj(e.items[0].text)}function Mn(e){let t=e.at(-1);return t?.kind===`item`&&t.item.kind===`text`}function Nn(e){let t=0,n=()=>{t=0,e.dataset.placement=`inline`;let n=e.previousElementSibling,r=document.createTreeWalker(n??e,NodeFilter.SHOW_TEXT),i;for(let e=r.nextNode();e;e=r.nextNode())e.textContent?.trim()&&(i=e);if(!i)return;let a=document.createRange();a.selectNodeContents(i);let o=a.getClientRects(),s=o.item(o.length-1),c=e.getBoundingClientRect(),l=s?c.bottom>s.top&&c.top<s.bottom:!1;Cj(o.length,l)||(e.dataset.placement=`fallback`)},r=()=>{t||=requestAnimationFrame(n)},i=new ResizeObserver(r);return i.observe(e.parentElement),r(),{destroy:()=>{i.disconnect(),t&&cancelAnimationFrame(t)}}}function Pn(e,t){return t===`stop`?{key:`error.stop`}:t===`send`?{key:`error.send`}:e}function Fn(e,t){return e.id===`prompt-error`?t(E().promptErrorOp===`stop`?`error.stop`:`error.send`):e.text}function In(){let e=ln;if(ln=[],e.length&&Ke(e),un.size){for(let e of un)e.startsWith(`blob:`)&&URL.revokeObjectURL(e);un.clear()}}function Ln(e){let t=u(Ot)&&u(Dt)?.previewUrl===u(Ot)?u(Ot):void 0,n=t?e.filter(e=>e.previewUrl===t):[],r=n.length?e.filter(e=>e.previewUrl!==t):e;if(n.length){let e=new Set(ln.map(e=>e.previewUrl));ln=[...ln,...n.filter(t=>!e.has(t.previewUrl))]}r.length&&te().then(()=>Ke(r))}function Rn(e){for(let t=e.items.length-1;t>=0;--t){let n=e.items[t];if(n.side===`incoming`&&(n.kind!==`image`||n.state===`ready`||n.state===`failed`))return(`projectionKey`in n?n.projectionKey:void 0)??n.id}return`empty`}function zn(e,t,n,r){if(t.reason===`observed`){Ln(e);return}if(fe()===r&&fe()===u(on)){F(Xe,{...u(Xe),draft:u(Xe).draft?`${n}\n${u(Xe).draft}`:n,composing:!1}),F(an,[...u(an),...e]),wn(),F(Lt,{key:`error.restored`});return}Ln(e)}function Bn(){Yt!==void 0&&clearTimeout(Yt),Xt!==void 0&&clearInterval(Xt),Yt=void 0,Xt=void 0}function Vn(e){return[...e?.lifecycles??(e?.latest?[e.latest]:[])].sort((e,t)=>(e.endSeq??e.startSeq)-(t.endSeq??t.startSeq)||e.startSeq-t.startSeq).at(-1)}function Hn(){rn!==void 0&&clearTimeout(rn),rn=void 0}function Un(e){let t=e?`${e.compactionId}:${e.status}:${e.endSeq??``}:${e.endedAt??``}`:``;if(t===nn||(Hn(),nn=t,F(tn,void 0),!e))return;if(e.status===`running`){F(tn,e);return}let n=(typeof e.endedAt==`number`&&Number.isFinite(e.endedAt)?e.endedAt:Date.now())+_g-Date.now();n<=0||(F(tn,e),rn=setTimeout(()=>{F(tn,void 0),nn=t,rn=void 0},n))}function Wn(){u(x)&&(en=document.activeElement,F(Zt,!0),te().then(()=>u($t)?.focus()))}function Gn(e=!0){F(Zt,!1);let t=en;en=void 0,e&&t?.focus()}function Kn(){u(Zt)?Gn():Wn()}function qn(e){let t=e.target;u(Zt)&&(!t||!t.closest?.(`.companion-context-meter-wrap`))&&Gn(!1),u(ot)&&(!t||!t.closest?.(`.companion-preferences`))&&F(ot,!1)}function Jn(){let e=Ye.filter(e=>e!==u(qt));F(qt,e[Math.floor(Math.random()*e.length)]??Ye[0])}function Yn(e,t){let n=e?t:``;n!==Jt&&(Jt=n,Bn(),F(qt,``),e&&(Yt=setTimeout(()=>{Jn(),Xt=setInterval(Jn,9e3)},12e3)))}async function Xn(e){if(await te(),!u(nt))return;if(e.openState!==`open`){it&&cancelAnimationFrame(it),it=0,F(rt,!1);return}let t=u(nt).scrollHeight-u(nt).clientHeight-u(nt).scrollTop,n=u(It)||t<96;n&&!e.loadingOlder&&Se(nt,u(nt).scrollTop=u(nt).scrollHeight),u(rt)||(it&&cancelAnimationFrame(it),it=requestAnimationFrame(()=>{u(nt)&&(Se(nt,u(nt).scrollTop=u(nt).scrollHeight),F(rt,!0),it=0)})),F(It,n),F(Lt,e.promptError?Pn(e.promptError,e.promptErrorOp):e.lastAgentError??``);let r=new Map;for(let t of e.items)t.kind===`image`&&t.state===`ready`&&t.attachment&&r.set(t.id,t);for(let[e,t]of Object.entries(u(Mt))){let n=r.get(e);(!n||Pt[e]!==Zn(n))&&$n(e,t)}for(let e of r.values()){let t=Zn(e);!u(Mt)[e.id]&&R[e.id]!==t&&ae().attachmentUrl&&er(e,t)}for(let t of e.items)t.kind===`voice`&&u(kt)[t.id]!==t.url&&F(kt,{...u(kt),[t.id]:t.url})}function Zn(e){return`${e.attachment?.attachmentId??``}:${e.attachment?.mediaType??``}`}function Qn(e){if(e?.startsWith(`blob:`)){if(e===u(Ot)){un.add(e);return}URL.revokeObjectURL(e)}}function $n(e,t=u(Mt)[e]){Qn(t);let n={...u(Mt)},r={...Pt},i={...u(Nt)};delete n[e],delete r[e],delete i[e],F(Mt,n),Pt=r,F(Nt,i);let a={...Ft};delete a[e],Ft=a}async function er(e,t){if(ae().attachmentUrl&&R[e.id]!==t){R={...R,[e.id]:t};try{let n=await ae().attachmentUrl(e.attachment),r=u(dn).items.find(t=>t.kind===`image`&&t.id===e.id);if(r&&Zn(r)===t){if(u(Mt)[e.id]&&u(Mt)[e.id]!==n&&$n(e.id),F(Mt,{...u(Mt),[e.id]:n}),Pt={...Pt,[e.id]:t},u(Dt)?.id===e.id){let e=u(Ot);F(Ot,n),e&&e!==n&&(un.delete(e),Qn(e))}}else n.startsWith(`blob:`)&&URL.revokeObjectURL(n)}catch{let n=u(dn).items.find(t=>t.kind===`image`&&t.id===e.id);n&&Zn(n)===t&&F(Nt,{...u(Nt),[e.id]:!0})}finally{let t={...R};delete t[e.id],R=t}}}function tr(e){if(!ae().attachmentUrl||!e.attachment)return;let t={...u(Nt)};delete t[e.id],F(Nt,t);let n={...R};delete n[e.id],R=n,er(e,Zn(e))}function nr(e,t){F(jt,{...u(jt),[e]:{...u(jt)[e]??Ue,...t}})}function rr(e){return u(jt)[e]??Ue}function ir(e,t=`floor`){if(!Number.isFinite(e)||e<=0)return`0:00`;let n=t===`ceil`?Math.ceil(e):Math.floor(e);return`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`}function ar(e){return e.duration>0}function or(e){if(!(e.duration<=0))return e.current>0&&e.current<e.duration?ir(e.current):ir(e.duration,`ceil`)}function sr(e){return e.duration>0?Math.min(1,Math.max(0,e.current/e.duration)):0}function cr(e){let t=2166136261;for(let n of e)t=Math.imul(t^n.codePointAt(0),16777619);return Array.from({length:28},(e,n)=>(t=Math.imul(t^n,2246822519),28+Math.abs(t)%69))}function lr(e){return e.closest(`.companion-voice`)?.querySelector(`audio`)??void 0}function ur(e,t){let n=e=>_r(t,e),r=e=>vr(t,e),i=()=>mr(t),a=()=>hr(t),o=e=>gr(t,e),s=()=>dr(t);return e.addEventListener(`loadedmetadata`,n),e.addEventListener(`timeupdate`,r),e.addEventListener(`play`,i),e.addEventListener(`pause`,a),e.addEventListener(`ended`,o),e.addEventListener(`error`,s),{destroy(){e.removeEventListener(`loadedmetadata`,n),e.removeEventListener(`timeupdate`,r),e.removeEventListener(`play`,i),e.removeEventListener(`pause`,a),e.removeEventListener(`ended`,o),e.removeEventListener(`error`,s)}}}function dr(e){let t={...u(kt)};delete t[e],F(kt,t),F(At,{...u(At),[e]:!0})}async function fr(e,t){u(kt)[e.id]||(F(kt,{...u(kt),[e.id]:e.url}),await te());let n=lr(t);if(n){for(let e of document.querySelectorAll(`#dsh-companion .companion-voice audio`))e!==n&&!e.paused&&e.pause();try{n.ended&&(n.currentTime=0),n.paused?await n.play():n.pause()}catch{dr(e.id)}}}function pr(e,t){let n=lr(e.currentTarget),r=Number(e.currentTarget.value);n&&Number.isFinite(r)&&(n.currentTime=r,nr(t,{current:r}))}function mr(e){nr(e,{playing:!0})}function hr(e){nr(e,{playing:!1})}function gr(e,t){let n=t.target,r=Number.isFinite(n.duration)&&n.duration>0?n.duration:rr(e).duration;nr(e,{current:r,duration:r,playing:!1})}function _r(e,t){let n=t.target;if(!Number.isFinite(n.duration)||n.duration<=0){dr(e);return}nr(e,{duration:n.duration,current:n.currentTime})}function vr(e,t){let n=t.target,r=Number.isFinite(n.duration)&&n.duration>0?n.duration:rr(e).duration;nr(e,{current:n.currentTime,duration:r})}function yr(){u(nt)&&F(It,u(nt).scrollHeight-u(nt).clientHeight-u(nt).scrollTop<96)}function br(e){let t=new ResizeObserver(()=>{u(rt)&&u(It)&&u(nt)&&Se(nt,u(nt).scrollTop=u(nt).scrollHeight)});return t.observe(e),{destroy:()=>t.disconnect()}}function xr(){if(E().canSubmit===!1)return;let e=u(Xe).draft,t=e.trim();if(t.length>16e3||!t&&u(an).length===0||u(Xe).composing)return;let n=[...u(an)],r=fe();F(Xe,{...Dg(u(Xe),{type:`submit`}),draft:``,composing:!1}),F(an,[]),wn();let i=ve(fn),a=t=>{zn(n,t,e,r)};Promise.resolve().then(()=>ae().send(t,n,a)).catch(t=>{t instanceof Cg&&i===u(fn)&&fe()===r&&(F(Xe,{...u(Xe),draft:u(Xe).draft?`${e}\n${u(Xe).draft}`:e,composing:!1}),F(an,[...u(an),...n]),wn()),F(Lt,t instanceof Error&&t.message===`compact-with-images`?{key:`error.compactImages`}:{key:`error.restored`})})}function Sr(e){let t=Math.max(0,Math.floor(e/1e3));return`${Math.floor(t/60).toString().padStart(2,`0`)}:${(t%60).toString().padStart(2,`0`)}`}function Cr(e){if(e instanceof mt){if(e.code===`insecure-context`)return`voice.secure`;if(e.code===`unsupported`||e.code===`media-type`)return`voice.unsupported`;if(e.code===`permission-denied`)return`voice.permission`;if(e.code===`duration-limit`)return`voice.duration`;if(e.code===`size-limit`)return`voice.size`;if(e.code===`empty`)return`voice.empty`;if(e.code===`transcript-empty`)return`voice.unclear`}return`voice.failed`}function wr(e){return e(_n?`voice.install`:`voice.unavailable`)}function Tr(){yn!==void 0&&clearInterval(yn),yn=void 0}async function Er(){Tr(),Cn?.abort(),Cn=void 0;try{await xn.cancel()}catch{}F(vn,0),F(bn,``)}async function Dr(){Tr();let e;try{e=await xn.stopAndGet()}catch(e){F(bn,Cr(e)),F(Lt,{key:u(bn)}),F(vn,0);return}if(F(vn,0),F(bn,``),!e||!ae().transcribeVoice||!xn.markTranscribing())return;let t=new AbortController,n=fe();Cn=t;try{let r=await ae().transcribeVoice(e,t.signal);if(t.signal.aborted||fe()!==n)return;let i=Tt(r);await ae().send(i,[]),F(Lt,{key:`voice.sent`})}catch(e){F(bn,Cr(e)),F(Lt,{key:u(bn)})}finally{Cn===t&&(Cn=void 0),xn.finishTranscribing()}}async function Or(){if(E().canSubmit!==!1||u(gn)===`recording`||u(gn)===`stopping`){if(u(gn)===`recording`||u(gn)===`stopping`){u(gn)===`recording`&&await Dr();return}if(u(gn)!==`transcribing`){if(ge()===`loading`){F(Lt,{key:`voice.wait`});return}if(ge()!==`available`||!ae().transcribeVoice||!_n){F(Lt,{key:_n?`voice.install`:`voice.unavailable`});return}F(vn,0),F(bn,``),Tr();try{await xn.start(),yn=setInterval(()=>{F(vn,xn.elapsedMs)},250)}catch(e){Tr(),F(bn,Cr(e)),F(Lt,{key:u(bn)})}}}}async function kr(){if(ae().stop&&!u(tt)){F(tt,!0);try{await ae().stop()}catch{F(Lt,{key:`error.stop`})}finally{F(tt,!1)}}}function Ar(e){if(u(et)&&(e.key===`Tab`||e.key===`Enter`)&&!e.shiftKey&&!e.isComposing&&!u(Xe).composing){e.preventDefault(),Mr();return}Og(e,u(Xe).composing)&&(e.preventDefault(),xr())}function jr(e){F(Xe,Dg(u(Xe),{type:`input`,value:e})),wn()}function Mr(){u(et)&&(jr(u(et).command),te().then(()=>u(Ze)?.focus()))}function Nr(e){jr(e.currentTarget.value)}function Pr(e){F(Xe,Dg(u(Xe),{type:`compositionend`,value:e.currentTarget.value})),wn()}function Fr(){F(Xe,Dg(u(Xe),{type:`compositionstart`}))}function Ir(e){let t=We(u(an),e,me());if(t){F(Lt,t);return}F(an,[...u(an),...Ge(e)])}function Lr(e){let t=e.currentTarget;Ir(Array.from(t.files??[])),t.value=``}function Rr(e){let t=qe(e.clipboardData);t.length!==0&&(e.preventDefault(),Ir(t))}function zr(e){if(!e||typeof e!=`object`)return!1;let t=`code`in e?e.code:void 0;if(t!==void 0)return t===Nh.TakePhotoCancelled;let n=`message`in e?e.message:void 0;return typeof n==`string`&&/(?:user\s+)?cancel(?:led|ed)\s+photos\s+app|取消(?:了)?拍照/iu.test(n)}async function Br(){try{Ir([await Je(await Fh.takePhoto({saveToGallery:!1,includeMetadata:!0}))])}catch(e){zr(e)||F(Lt,{key:`camera.failed`})}}function Vr(e){Ln([e]),F(an,u(an).filter(t=>t!==e))}function Hr(e){e.pointerType===`touch`&&(pn={id:e.pointerId,startedAt:Date.now()})}function Ur(e){if(!pn||pn.id!==e.pointerId)return;let t=Date.now()-pn.startedAt>=450;pn=void 0,t&&(mn=!0,e.preventDefault(),Br())}function Wr(){pn=void 0}function Gr(){if(mn){mn=!1;return}u(Qe)?.click()}function Kr(e,t){let n=new Date(e);return Number.isFinite(n.getTime())?n.toLocaleString(t,{dateStyle:`medium`,timeStyle:`short`}):e}function qr(e){switch(e){case`mood`:return C()(`history.mood`);case`affinity`:return C()(`history.affinity`);case`signature`:return C()(`history.signature`)}}function Jr(e,t){if(e===`mood`){let e=C()(`mood.${t.value}`);return`note`in t&&t.note?`${e} · ${t.note}`:e}return e===`affinity`||t.value?String(t.value):C()(`signature.empty`)}function Yr(e){let t=Me().records[e];return t?jg(t,Me().records[e+1]??(e===Me().records.length-1?Me().predecessor:void 0)):[]}async function Xr(){if(ae().loadEarlierHistory)try{await ae().loadEarlierHistory()}catch{}}function Zr(e){te().then(()=>{let t=e();(t?.querySelector(`button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])`)??t)?.focus()})}function Qr(e,t){if(e.key!==`Tab`)return;let n=[...t.querySelectorAll(`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])`)].filter(e=>!e.hasAttribute(`hidden`));if(!n.length){e.preventDefault(),t.focus();return}let r=n[0],i=n[n.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):!e.shiftKey&&document.activeElement===i&&(e.preventDefault(),r.focus())}function $r(){Ht&&(Ht=!1,globalThis.history.back())}function ei(){Rt=document.activeElement,F(at,!0),Ne()?.(!0),te().then(()=>{Zr(()=>u(Bt))})}function ti(e=!0){F(at,!1),Ne()?.(!1);let t=Rt;Rt=void 0,e&&t?.focus()}function ni(e=!0){wt?.abort(),wt=void 0,ti(e)}function ri(e){zt=document.activeElement,F(Dt,e),F(Ot,e.previewUrl??u(Mt)[e.id]??``),te().then(()=>{u(Vt)&&!u(Vt).open&&u(Vt).showModal(),Zr(()=>u(Vt))})}function ii(e){let t=zt,n=Ht;F(Dt,void 0),F(Ot,``),zt=void 0,In(),t&&t.focus(),!e&&n&&$r()}function ai(e=!1){if(u(Dt)){if(Ut=e,u(Vt)?.open){u(Vt).close();return}ii(e)}}function oi(){let e=Ut;Ut=!1,ii(e)}function si(e){if(e.key===`Escape`){if(u(ot)){e.preventDefault(),F(ot,!1),u(st)?.focus();return}if(u(Zt)){e.preventDefault(),Gn();return}if(u(at)){e.preventDefault(),ni();return}return}if(u(at)&&u(Bt)){Qr(e,u(Bt));return}u(Dt)&&u(Vt)&&Qr(e,u(Vt))}function ci(){Ht=!1,u(Dt)&&ai(!0)}function li(){Ht||=(globalThis.history.pushState({companionOverlay:!0},``),!0)}function ui(){u(at)?ni():ei()}function di(e){li(),ri({id:e.id,alt:e.alt||C()(`image.preview`),previewUrl:e.previewUrl??u(Mt)[e.id]})}function fi(e){li(),ri({id:`draft:${e.id}`,alt:e.file.name||C()(`image.pending`),previewUrl:e.previewUrl})}async function pi(){if(!ae().loadOlder||E().loadingOlder)return;let e=u(nt)?.scrollHeight??0;await ae().loadOlder(),await te(),u(nt)&&Se(nt,u(nt).scrollTop+=u(nt).scrollHeight-e)}function mi(){wt?.abort();let e=new AbortController;return wt=e,F(xt,!0),F(St,!1),F(Ct,!1),e}async function hi(){F(ct,`diary`),F(yt,void 0);let e=mi();try{let t=await fetch(`/api/diary`,{signal:e.signal});if(!t.ok)throw Error();wt===e&&F(vt,(await t.json()).entries)}catch(t){wt===e&&t.name!==`AbortError`&&F(St,!0)}finally{wt===e&&F(xt,!1)}}async function gi(e=!1){if(F(ct,`images`),!(u(ft)||!e&&u(lt).length)){F(ft,!0),F(pt,!1);try{let e=await fetch(`/api/conversation-images?limit=30${u(dt)?`&cursor=${encodeURIComponent(u(dt))}`:``}`);if(!e.ok)throw Error();let t=await e.json();F(lt,[...u(lt),...t.images]),F(dt,t.nextCursor)}catch{F(pt,!0)}finally{F(ft,!1)}}}async function _i(e){let t=mi();try{let n=await fetch(`/api/diary/${encodeURIComponent(e)}`,{signal:t.signal});if(n.status===413){wt===t&&F(Ct,!0);return}if(!n.ok)throw Error();wt===t&&F(yt,await n.json())}catch(e){wt===t&&e.name!==`AbortError`&&F(St,!0)}finally{wt===t&&F(xt,!1)}}pe(()=>{wn()}),Ee(()=>{it&&cancelAnimationFrame(it),In(),Ln(u(an)),Bn(),Hn(),Tr(),Cn?.abort(),wt?.abort(),Cn=void 0,xn.dispose();for(let e of document.querySelectorAll(`#dsh-companion .companion-voice audio`))e.pause();for(let e of Object.values(u(Mt)))Qn(e);In()}),Te(()=>(u(lt),T(w()),u(ut)),()=>{F(p,gg(u(lt),w(),u(ut)))}),Te(()=>(o(),u(p),u(ht)),()=>{o().setOptions({count:u(p).length,getScrollElement:()=>u(ht),estimateSize:e=>u(p)[e]?.kind===`group`?38:132,overscan:5})}),Te(()=>(o(),u(dt),u(ft),u(p)),()=>{let e=o().getVirtualItems().at(-1)?.index;u(dt)&&!u(ft)&&e!==void 0&&e>=u(p).length-3&&gi(!0)}),Te(()=>(T(ye()),T(C())),()=>{F(m,Ag(ye(),C()))}),Te(()=>T(oe()),()=>{F(_,oe())}),Te(()=>T(de()),()=>{F(v,de())}),Te(()=>T(M()),()=>{F(b,M())}),Te(()=>(u(at),u(_),u(b)),()=>{u(at)&&(u(_)!==`ready`||u(b)!==`ready`)&&ti(!1)}),Te(()=>(T(E()),T(C())),()=>{F(Wt,E().status===`offline`?C()(`status.offline`):E().status===`working`?C()(`status.typing`):C()(`status.online`))}),Te(()=>T(E()),()=>{F(Gt,E().items.some(e=>e.kind===`image`&&(e.state===`running`||e.state===`loading`)))}),Te(()=>(T(E()),u(Gt)),()=>{F(Kt,E().running&&!u(Gt))}),Te(()=>(T(fe()),u(on),u(an),u(cn),u(fn)),()=>{fe()!==u(on)&&(Ln(u(an)),F(an,[]),F(on,fe()),F(sn,``),F(cn,u(cn)+1),F(Xe,Eg()),F(fn,u(fn)+1),wn())}),Te(()=>(u(an),u(Xe),T(C())),()=>{F(et,u(an).length?void 0:kg(u(Xe).draft,C()))}),Te(()=>T(_e()),()=>{F(x,bg(_e()?.contextPressure))}),Te(()=>T(_e()),()=>{F(S,Vn(_e()?.lifecycle))}),Te(()=>u(S),()=>{Un(u(S))}),Te(()=>(u(x),u(Zt)),()=>{!u(x)&&u(Zt)&&Gn(!1)}),Te(()=>(u(Kt),T(fe()),T(E())),()=>{Yn(u(Kt),`${fe()??`none`}:${Rn(E())}`)}),Te(()=>T(E()),()=>{F(dn,E())}),Te(()=>u(dn),()=>{u(dn)&&Xn(u(dn))}),Te(()=>(T(fe()),u(Sn)),()=>{fe()!==u(Sn)&&(F(Sn,fe()),Er())}),Te(()=>(T(xe()),u(sn),T(fe()),u(on)),()=>{xe()&&xe().key!==u(sn)&&fe()===u(on)&&Tn(xe())}),f(),se();var vi=ZM();Re(`keydown`,e,si),Re(`pointerdown`,e,qn),Re(`popstate`,e,ci);var yi=I(vi),bi=j(yi),xi=j(bi),Si=j(xi),Ci=j(Si),wi=j(Ci),Ti=j(wi);Hh(j(Ti),{size:18,strokeWidth:1.8,"aria-hidden":`true`}),L(Ti),L(wi);var Ei=P(wi,2),Di=j(Ei),Oi=j(Di),ki=j(Oi),Ai=e=>{var t=Ej();D(()=>O(t,`src`,(T(ne()),l(()=>ne().companionAvatar)))),y(e,t)},ji=e=>{var t=Dj();y(e,t)};h(ki,e=>{T(ne()),l(()=>ne().companionAvatar)?e(Ai):e(ji,-1)}),L(Oi),L(Di),L(Ei);var Mi=P(Ei,2),Ni=j(Mi),Pi=N(Ni,!0),Fi=P(Ni,2),Ii=j(Fi),Li=P(Ii);L(Fi),L(Mi);var Ri=P(Mi,2),zi=j(Ri);Uh(j(zi),{size:18,strokeWidth:1.8,"aria-hidden":`true`}),L(zi),Ce(zi,e=>F(st,e),()=>u(st));var Bi=P(zi,2),Vi=e=>{var n=Aj(),r=j(n),i=j(r),a=N(i,!0),o=P(i,2);t(o,0,()=>[[`light`,`preferences.light`],[`dark`,`preferences.dark`],[`system`,`preferences.system`]],he,(e,t)=>{var n=Oj(),r=j(n);ue(r);var i=P(r),a=N(i,!0);L(n),D(e=>{je(r,(T(Fe()),l(()=>Fe()===t[0]))),g(a,e)},[()=>(T(C()),l(()=>C()(t[1])))]),Re(`change`,r,()=>ze()(t[0])),y(e,n)}),L(r);var s=P(r,2),c=j(s),u=N(c,!0),d=P(c,2);t(d,0,()=>[[`zh`,`中文`],[`en`,`English`]],he,(e,t)=>{var n=kj(),r=j(n);ue(r);var i=P(r),a=N(i,!0);L(n),D(()=>{je(r,(T(w()),l(()=>w()===t[0]))),g(a,l(()=>t[1]))}),Re(`change`,r,()=>Be()(t[0])),y(e,n)}),L(s),L(n),D((e,t,r)=>{O(n,`aria-label`,e),g(a,t),g(u,r)},[()=>(T(C()),l(()=>C()(`preferences.open`))),()=>(T(C()),l(()=>C()(`preferences.theme`))),()=>(T(C()),l(()=>C()(`preferences.language`)))]),y(e,n)};h(Bi,e=>{u(ot)&&e(Vi)}),L(Ri),L(Ci);var Hi=P(Ci,2),Ui=e=>{var t=jj(),n=P(j(t)),r=N(n,!0);L(t),D((e,n)=>{O(t,`aria-label`,e),g(r,n)},[()=>(T(C()),l(()=>C()(`loading.label`))),()=>(T(C()),l(()=>C()(`loading.progress`)))]),y(e,t)},Wi=e=>{var t=Mj(),n=P(j(t),2),r=N(n,!0),i=P(n,2),a=N(i,!0),o=P(i,2),s=N(o,!0);L(t),D((e,t,n,i)=>{g(r,e),g(a,t),O(o,`aria-label`,n),g(s,i)},[()=>(T(C()),l(()=>C()(`workspace.empty`))),()=>(T(C()),l(()=>C()(`workspace.chooseHint`))),()=>(T(C()),l(()=>C()(`workspace.settingsLabel`))),()=>(T(C()),l(()=>C()(`settings.open`)))]),Re(`click`,o,()=>Ve(`recovery`)),y(e,t)},Gi=e=>{var t=Nj(),n=P(j(t),2),r=N(n,!0),i=P(n,2),a=N(i,!0),o=P(i,2),s=N(o,!0);L(t),D((e,t,n)=>{g(r,e),g(a,t),g(s,n)},[()=>(T(C()),l(()=>C()(`workspace.failed`))),()=>(T(C()),l(()=>C()(`workspace.reconnectHint`))),()=>(T(C()),l(()=>C()(`reconnect`)))]),Re(`click`,o,()=>Ve(`recovery`)),y(e,t)},Ki=e=>{var t=jj(),n=P(j(t)),r=N(n,!0);L(t),D((e,n)=>{O(t,`aria-label`,e),g(r,n)},[()=>(T(C()),l(()=>C()(`loading.label`))),()=>(T(C()),l(()=>C()(`loading.progress`)))]),y(e,t)},qi=e=>{var t=Mj(),n=P(j(t),2),r=N(n,!0),i=P(n,2),a=N(i,!0),o=P(i,2),s=N(o,!0);L(t),D((e,t,n,i)=>{g(r,e),g(a,t),O(o,`aria-label`,n),g(s,i)},[()=>(T(C()),l(()=>C()(`workspace.empty`))),()=>(T(C()),l(()=>C()(`workspace.chooseHint`))),()=>(T(C()),l(()=>C()(`workspace.settingsLabel`))),()=>(T(C()),l(()=>C()(`settings.open`)))]),Re(`click`,o,()=>Ve(`recovery`)),y(e,t)},Ji=e=>{var t=Nj(),n=P(j(t),2),r=N(n,!0),i=P(n,2),a=N(i,!0),o=P(i,2),s=N(o,!0);L(t),D((e,t,n)=>{g(r,e),g(a,t),g(s,n)},[()=>(T(C()),l(()=>C()(`relationship.failed`))),()=>(T(C()),l(()=>C()(`relationship.reconnectHint`))),()=>(T(C()),l(()=>C()(`reconnect`)))]),Re(`click`,o,()=>Ve(`recovery`)),y(e,t)},Yi=e=>{var t=jj(),n=P(j(t)),r=N(n,!0);L(t),D((e,n)=>{O(t,`aria-label`,e),g(r,n)},[()=>(T(C()),l(()=>C()(`loading.label`))),()=>(T(C()),l(()=>C()(`loading.progress`)))]),y(e,t)},Xi=e=>{var t=Nj(),n=P(j(t),2),r=N(n,!0),i=P(n,2),a=N(i,!0),o=P(i,2),s=N(o,!0);L(t),D((e,t,n)=>{g(r,e),g(a,t),g(s,n)},[()=>(T(C()),l(()=>C()(`session.failed`))),()=>(T(C()),l(()=>C()(`session.reconnectHint`))),()=>(T(C()),l(()=>C()(`reconnect`)))]),Re(`click`,o,()=>Ve(`recovery`)),y(e,t)},Zi=e=>{var n=SM(),o=I(n);let s;var d=j(o),f=j(d),p=e=>{var t=Pj(),n=j(t),r=N(n,!0);L(t),D(()=>g(r,u(m))),y(e,t)};h(f,e=>{u(m)&&e(p)});var _=P(f,2),v=e=>{var t=Fj(),n=N(t,!0);D(e=>{t.disabled=(u(dn),l(()=>u(dn).loadingOlder)),g(n,e)},[()=>(u(dn),T(C()),l(()=>u(dn).loadingOlder?C()(`loading.progress`):C()(`history.older`)))]),Re(`click`,t,pi),y(e,t)};h(_,e=>{u(dn),l(()=>u(dn).hasMore)&&e(v)});var b=P(_,2),S=e=>{var t=Ij(),n=P(j(t),2),r=N(n,!0),i=P(n,2),a=N(i,!0);L(t),D((e,t)=>{g(r,e),g(a,t)},[()=>(T(C()),T(ne()),l(()=>C()(`welcome.greeting`,{name:ne().preferredAddress}))),()=>(T(C()),l(()=>C()(`welcome.prompt`)))]),y(e,t)};h(b,e=>{u(dn),l(()=>u(dn).items.length===0)&&e(S)});var w=P(b,2);t(w,1,()=>(u(dn),l(()=>u(dn).messageUnits)),e=>e.id,(e,n)=>{let i=Ae(()=>(u(n),l(()=>u(n).items[0])));var a=c(),o=I(a),s=e=>{var t=Lj(),n=N(t,!0);D(e=>{O(t,`data-testid`,(T(u(i)),l(()=>`continuity-record-${u(i).compactionId}`))),g(n,e)},[()=>(T(C()),l(()=>C()(`compact.record`)))]),y(e,t)},d=e=>{var t=Rj(),n=j(t),r=N(n,!0);L(t),D(e=>{O(t,`role`,(T(u(i)),l(()=>u(i).tone===`error`?`alert`:`status`))),g(r,e)},[()=>(T(u(i)),T(C()),l(()=>Fn(u(i),C())))]),y(e,t)},f=e=>{let i=Ae(()=>(u(n),l(()=>En(u(n))))),a=Ae(()=>(T(Sj),u(n),T(u(i)),l(()=>Sj(u(n).time!==void 0,jn(u(n)),Mn(u(i)))))),o=Ae(()=>u(a)===`inline`),s=Ae(()=>u(a)===`bubble-trailing`);var d=rM();let f;var p=j(d),m=j(p),_=j(m),v=e=>{var t=Ej();D(()=>O(t,`src`,(T(ne()),l(()=>ne().companionAvatar)))),y(e,t)},b=e=>{var t=Ej();D(()=>O(t,`src`,(T(ne()),l(()=>ne().userAvatar)))),y(e,t)},ee=e=>{var t=zj(),r=N(t,!0);D(e=>g(r,e),[()=>(u(n),T(C()),l(()=>u(n).side===`incoming`?`✦`:C()(`you`)))]),y(e,t)};h(_,e=>{u(n),T(ne()),l(()=>u(n).side===`incoming`&&ne().companionAvatar)?e(v):(u(n),T(ne()),l(()=>u(n).side===`outgoing`&&ne().userAvatar)?e(b,1):e(ee,-1))}),L(m),L(p);var x=P(p,2),S=j(x);t(S,1,()=>u(i),he,(e,a)=>{var d=c(),f=I(d),p=e=>{var r=Kj();let i;t(r,5,()=>(u(a),l(()=>u(a).items)),e=>e.id,(e,t)=>{var n=Gj();let r;var i=j(n);let o;var s=j(i),c=e=>{var t=Bj(),n=P(I(t),2),r=N(n,!0);D(e=>g(r,e),[()=>(T(C()),l(()=>C()(`image.generating`)))]),y(e,t)},d=e=>{var n=Vj(),r=N(n);D((e,i,a)=>{O(n,`aria-label`,e),O(r,`src`,(u(t),u(Mt),l(()=>u(t).previewUrl??u(Mt)[u(t).id]))),O(r,`alt`,i),re(r,a)},[()=>(T(C()),u(t),l(()=>C()(`image.view`,{name:u(t).alt||C()(`image.preview`)}))),()=>(u(t),T(C()),l(()=>u(t).alt||C()(`image.preview`))),()=>(u(t),u(a),l(()=>On(u(t),u(a).items.length>1)))]),Re(`load`,r,e=>kn(u(t),e)),Re(`click`,n,()=>di(u(t))),y(e,n)},f=e=>{var n=Hj(),r=j(n),i=N(r,!0),o=P(r),s=N(o,!0);L(n),D((e,t,r)=>{re(n,e),g(i,t),g(s,r)},[()=>(u(t),u(a),l(()=>On(u(t),u(a).items.length>1))),()=>(T(C()),l(()=>C()(`error.image`))),()=>(T(C()),l(()=>C()(`retry`)))]),Re(`click`,o,()=>tr(u(t))),y(e,n)},p=e=>{var n=Uj(),r=j(n),i=N(r,!0);L(n),D((e,t)=>{re(n,e),g(i,t)},[()=>(u(t),u(a),l(()=>On(u(t),u(a).items.length>1))),()=>(T(C()),l(()=>C()(`image.failed`)))]),y(e,n)},m=e=>{var t=Wj();D(e=>O(t,`aria-label`,e),[()=>(T(C()),l(()=>C()(`loading.progress`)))]),y(e,t)};h(s,e=>{u(t),l(()=>u(t).state===`running`||u(t).state===`loading`)?e(c):(u(t),u(Mt),l(()=>u(t).previewUrl||u(Mt)[u(t).id])?e(d,1):(u(Nt),u(t),l(()=>u(Nt)[u(t).id])?e(f,2):(u(t),l(()=>u(t).state===`failed`)?e(p,3):e(m,-1))))}),L(i),L(n),D(()=>{r=Pe(n,1,`companion-image-entry`,null,r,{"companion-image-entry-tile":u(a).items.length>1}),O(n,`data-testid`,(u(t),l(()=>`image-${u(t).id}`))),o=Pe(i,1,`companion-media`,null,o,{"companion-media-tile":u(a).items.length>1,"companion-media-single":u(a).items.length===1})}),y(e,n)}),L(r),D(()=>{i=Pe(r,1,`companion-image-group`,null,i,{"companion-image-group-many":u(a).items.length>1}),O(r,`data-testid`,(u(n),l(()=>`image-group-${u(n).id}`)))}),y(e,r)},m=e=>{var t=Yj();let c;var d=j(t);yj(d,{get text(){return u(a),l(()=>u(a).item.text)}});var f=P(d),p=e=>{var t=qj(),i=N(t,!0);r(t,e=>Nn?.(e)),D((e,r)=>{O(t,`datetime`,e),O(t,`data-testid`,(u(n),l(()=>`message-time-${u(n).id}`))),g(i,r)},[()=>(T(xj),u(n),l(()=>xj(u(n).time))),()=>(T(bj),u(n),l(()=>bj(u(n).time)))]),y(e,t)},m=e=>{var t=Jj(),r=N(t,!0);D((e,i)=>{O(t,`datetime`,e),O(t,`data-testid`,(u(n),l(()=>`message-time-${u(n).id}`))),g(r,i)},[()=>(T(xj),u(n),l(()=>xj(u(n).time))),()=>(T(bj),u(n),l(()=>bj(u(n).time)))]),y(e,t)},_=A(()=>(T(u(s)),u(a),T(u(i)),l(()=>u(s)&&u(a)===u(i).at(-1))));h(f,e=>{u(o)?e(p):u(_)&&e(m,1)}),L(t),D(()=>c=Pe(t,1,`cmp-chat-bubble companion-bubble`,null,c,{"cmp-skeleton":u(a).item.pending&&!u(a).item.text,"companion-bubble-inline-time":u(o)})),y(e,t)},_=e=>{let n=Ae(()=>(u(a),l(()=>u(a).item))),i=Ae(()=>(u(jt),T(u(n)),l(()=>u(jt)[u(n).id]??Ue)));var o=tM(),s=j(o),c=e=>{var a=eM(),o=I(a);r(o,(e,t)=>ur?.(e,t),()=>u(n).id);var s=P(o,2),c=j(s),d=e=>{Wh(e,{size:18,fill:`currentColor`,"aria-hidden":`true`})},f=e=>{Gh(e,{size:18,fill:`currentColor`,"aria-hidden":`true`})};h(c,e=>{T(u(i)),l(()=>u(i).playing)?e(d):e(f,-1)}),L(s);var p=P(s,2),m=j(p),_=j(m);t(_,1,()=>(T(u(n)),l(()=>cr(u(n).id))),he,(e,t,n)=>{var r=Xj();let a;D(e=>{re(r,`--voice-bar:${u(t)}%`),a=Pe(r,1,``,null,a,{played:e})},[()=>(n+1)/28<=sr(u(i))]),y(e,r)});var v=P(_,2);ue(v),L(m);var b=P(m,2),ee=j(b),x=e=>{var t=Zj(),n=N(t,!0);D(e=>g(n,e),[()=>(T(u(i)),l(()=>or(u(i))))]),y(e,t)},S=A(()=>(T(u(i)),l(()=>or(u(i))))),w=e=>{var t=Qj(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`loading.progress`)))]),y(e,t)};h(ee,e=>{u(S)?e(x):e(w,-1)});var te=P(ee),E=e=>{var t=$j(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`voice.playFailed`)))]),y(e,t)};h(te,e=>{u(At),T(u(n)),l(()=>u(At)[u(n).id])&&e(E)}),L(b),L(p),D((e,t,r,a)=>{O(o,`src`,(u(kt),T(u(n)),l(()=>u(kt)[u(n).id]))),O(s,`aria-label`,e),O(v,`max`,(T(u(i)),l(()=>u(i).duration||0))),Ie(v,(T(u(i)),l(()=>u(i).current))),v.disabled=t,O(v,`aria-label`,r),O(v,`aria-valuetext`,a)},[()=>(T(u(i)),T(C()),l(()=>u(i).playing?C()(`voice.pause`):C()(`voice.play`))),()=>(T(u(i)),l(()=>!ar(u(i)))),()=>(T(C()),l(()=>C()(`voice.progress`))),()=>(T(u(i)),T(C()),l(()=>ar(u(i))?`${ir(u(i).current)} / ${ir(u(i).duration,`ceil`)}`:C()(`loading.progress`)))]),Re(`click`,s,e=>void fr(u(n),e.currentTarget)),Re(`input`,v,e=>pr(e,u(n).id)),y(e,a)};h(s,e=>{u(kt),T(u(n)),l(()=>u(kt)[u(n).id])&&e(c)}),L(o),D(e=>O(o,`aria-label`,e),[()=>(T(C()),l(()=>C()(`voice.player`)))]),y(e,o)};h(f,e=>{u(a),l(()=>u(a).kind===`images`)?e(p):(u(a),l(()=>u(a).item.kind===`text`)?e(m,1):(u(a),l(()=>u(a).item.kind===`voice`)&&e(_,2)))}),y(e,d)});var w=P(S,2),te=e=>{var t=Jj(),r=N(t,!0);D((e,i)=>{O(t,`datetime`,e),O(t,`data-testid`,(u(n),l(()=>`message-time-${u(n).id}`))),g(r,i)},[()=>(T(xj),u(n),l(()=>xj(u(n).time))),()=>(T(bj),u(n),l(()=>bj(u(n).time)))]),y(e,t)};h(w,e=>{u(a)===`stack-trailing`&&e(te)});var E=P(w,2),k=e=>{var t=nM(),r=N(t,!0);D(()=>g(r,(u(n),l(()=>u(n).pendingLabel)))),y(e,t)};h(E,e=>{u(n),l(()=>u(n).pendingLabel)&&e(k)}),L(x),L(d),D(e=>{f=Pe(d,1,`cmp-chat companion-row`,null,f,{"cmp-chat-start":u(n).side===`incoming`,"cmp-chat-end":u(n).side===`outgoing`,outgoing:u(n).side===`outgoing`,incoming:u(n).side===`incoming`,"companion-row-pending":u(n).pending}),O(d,`data-pending`,(u(n),l(()=>u(n).pending||void 0))),O(d,`data-testid`,e)},[()=>(u(n),l(()=>An(u(n))))]),y(e,d)};h(o,e=>{T(u(i)),l(()=>u(i)?.kind===`continuity`)?e(s):(T(u(i)),l(()=>u(i)?.kind===`notice`)?e(d,1):e(f,-1))}),y(e,a)});var te=P(w,2),k=e=>{var t=aM(),n=j(t),r=j(n),i=j(r),a=e=>{var t=Ej();D(()=>O(t,`src`,(T(ne()),l(()=>ne().companionAvatar)))),y(e,t)},o=e=>{var t=Dj();y(e,t)};h(i,e=>{T(ne()),l(()=>ne().companionAvatar)?e(a):e(o,-1)}),L(r),L(n);var s=P(n,2),c=P(j(s)),d=e=>{var t=iM(),n=N(t,!0);D(e=>g(n,e),[()=>(u(qt),T(C()),l(()=>u(qt)?C()(u(qt)):``))]),y(e,t)};h(c,e=>{u(qt)&&e(d)}),L(s),L(t),D(e=>O(t,`aria-label`,e),[()=>(T(C()),T(ne()),l(()=>C()(`status.namedTyping`,{name:ne().companionName})))]),y(e,t)};h(te,e=>{u(Kt)&&e(k)});var ie=P(te,2),oe=e=>{var t=oM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`messages.new`)))]),Re(`click`,t,()=>Se(nt,u(nt).scrollTop=u(nt).scrollHeight)),y(e,t)};h(ie,e=>{u(It),u(dn),l(()=>!u(It)&&u(dn).items.length>0)&&e(oe)}),L(d),r(d,e=>br?.(e)),L(o),Ce(o,e=>F(nt,e),()=>u(nt));var se=P(o,2),de=j(se),M=e=>{var t=sM(),n=j(t),r=j(n),a=N(r,!0),o=P(r,2),s=N(o,!0);i(2),L(n),L(t),D(e=>{O(t,`aria-label`,e),g(a,(u(et),l(()=>u(et).command))),g(s,(u(et),l(()=>u(et).description)))},[()=>(T(C()),l(()=>C()(`command.label`)))]),Re(`click`,n,Mr),y(e,t)};h(de,e=>{u(et)&&e(M)});var fe=P(de,2),pe=e=>{var t=cM(),n=j(t),r=e=>{var t=ee();D(e=>g(t,e),[()=>(T(C()),l(()=>C()(`compact.running`)))]),y(e,t)},i=e=>{var t=ee();D(e=>g(t,e),[()=>(T(C()),l(()=>C()(`compact.failed`)))]),y(e,t)},a=e=>{var t=ee();D(e=>g(t,e),[()=>(T(C()),l(()=>C()(`compact.done`)))]),y(e,t)};h(n,e=>{u(tn),l(()=>u(tn).status===`running`)?e(r):(u(tn),l(()=>u(tn).status===`failed`)?e(i,1):e(a,-1))}),L(t),D(()=>{O(t,`data-state`,(u(tn),l(()=>u(tn).status))),O(t,`role`,(u(tn),l(()=>u(tn).status===`failed`?`alert`:`status`)))}),y(e,t)};h(fe,e=>{u(tn)&&e(pe)});var _e=P(fe,2),ve=e=>{var n=uM();t(n,5,()=>u(an),e=>e.id,(e,t)=>{var n=lM(),r=j(n),i=N(r),a=P(r,2);Jh(j(a),{size:13,strokeWidth:2.5,"aria-hidden":`true`}),L(a),L(n),D((e,n,o)=>{O(r,`aria-label`,e),O(i,`src`,(u(t),l(()=>u(t).previewUrl))),O(i,`alt`,n),O(a,`aria-label`,o)},[()=>(T(C()),u(t),l(()=>C()(`image.view`,{name:u(t).file.name||C()(`image.pending`)}))),()=>(u(t),T(C()),l(()=>u(t).file.name||C()(`image.pending`))),()=>(T(C()),l(()=>C()(`image.remove`)))]),Re(`click`,r,()=>fi(u(t))),Re(`click`,a,()=>Vr(u(t))),y(e,n)}),L(n),D(e=>O(n,`aria-label`,e),[()=>(T(C()),l(()=>C()(`image.pending`)))]),y(e,n)};h(_e,e=>{u(an),l(()=>u(an).length>0)&&e(ve)});var ye=P(_e,2),be=j(ye);Ce(be,e=>F(Qe,e),()=>u(Qe));var xe=P(be,2);Vh(j(xe),{size:19,strokeWidth:2,"aria-hidden":`true`}),L(xe);var we=P(xe,2);le(we),Ce(we,e=>F(Ze,e),()=>u(Ze));var Te=P(we,2);let Ee;var De=j(Te),Oe=e=>{var t=dM();y(e,t)},je=e=>{{let t=Ae(()=>u(gn)===`recording`?2.6:2);qh(e,{size:19,get strokeWidth(){return u(t)},"aria-hidden":`true`})}};h(De,e=>{u(gn)===`transcribing`||u(gn)===`stopping`?e(Oe):e(je,-1)}),L(Te);var Me=P(Te,2),Ne=e=>{var t=pM(),n=j(t);let r;var i=j(n),a=P(j(i));L(i),L(n),Ce(n,e=>F(Qt,e),()=>u(Qt));var o=P(n,2),s=e=>{var t=fM(),n=j(t),r=N(n,!0),i=P(n,2),a=N(i),o=P(i,2),s=N(o);L(t),Ce(t,e=>F($t,e),()=>u($t)),D((e,t,n)=>{g(r,e),g(a,`${u(x),l(()=>u(x).percentage)??``}%`),g(s,`${t??``} / ${n??``}`)},[()=>(T(C()),l(()=>C()(`context.label`))),()=>(T(Sg),u(x),l(()=>Sg(u(x).usedTokens))),()=>(T(Sg),u(x),l(()=>Sg(u(x).contextWindow)))]),y(e,t)};h(o,e=>{u(Zt)&&e(s)}),L(t),D(e=>{r=Pe(n,1,`cmp-btn cmp-btn-ghost cmp-btn-circle companion-context-meter`,null,r,{"companion-context-meter-open":u(Zt)}),O(n,`data-state`,(u(tn),u(x),l(()=>u(tn)?.status===`running`?`active`:u(tn)?.status===`complete`?`complete`:u(tn)?.status===`failed`?`failed`:u(x).percentage>=80?`warning`:`idle`))),O(n,`aria-label`,e),O(n,`aria-expanded`,u(Zt)),re(a,(u(x),l(()=>`stroke-dashoffset:${100-u(x).percentage}`)))},[()=>(T(C()),u(x),l(()=>C()(`context.percentage`,{percentage:u(x).percentage})))]),Re(`click`,n,Kn),y(e,t)};h(Me,e=>{u(x)&&e(Ne)});var Fe=P(Me,2),Le=e=>{var t=mM();Kh(j(t),{size:15,fill:`currentColor`,"aria-hidden":`true`}),L(t),D(e=>{O(t,`aria-label`,e),t.disabled=(T(ae()),u(tt),l(()=>!ae().stop||u(tt)))},[()=>(T(C()),l(()=>C()(`reply.stop`)))]),Re(`click`,t,()=>void kr()),y(e,t)},ze=A(()=>(T(E()),u(Xe),u(an),l(()=>E().running&&!u(Xe).draft.trim()&&u(an).length===0))),Be=e=>{var t=hM();D((e,n)=>{O(t,`aria-label`,e),t.disabled=n},[()=>(T(C()),l(()=>C()(`message.send`))),()=>(T(E()),u(Xe),T($e),u(an),l(()=>E().canSubmit===!1||u(Xe).draft.trim().length>16e3||!u(Xe).draft.trim()&&u(an).length===0))]),Re(`click`,t,xr),y(e,t)};h(Fe,e=>{u(ze)?e(Le):e(Be,-1)});var Ve=P(Fe,2),We=e=>{var t=gM();Kh(j(t),{size:13,fill:`currentColor`,"aria-hidden":`true`}),L(t),D(e=>{O(t,`aria-label`,e),t.disabled=u(tt)},[()=>(T(C()),l(()=>C()(`reply.stop`)))]),Re(`click`,t,()=>void kr()),y(e,t)},Ge=A(()=>(T(E()),u(Xe),u(an),T(ae()),l(()=>E().running&&(u(Xe).draft.trim()||u(an).length>0)&&ae().stop)));h(Ve,e=>{u(Ge)&&e(We)}),L(ye);var Ke=P(ye,2),qe=e=>{var t=_M(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),T($e),u(Xe),l(()=>C()(`message.tooLong`,{limit:$e,count:u(Xe).draft.trim().length})))]),y(e,t)},Je=A(()=>(u(Xe),T($e),l(()=>u(Xe).draft.trim().length>$e)));h(Ke,e=>{u(Je)&&e(qe)});var Ye=P(Ke,2),it=e=>{var t=vM(),n=N(t,!0);D(e=>g(n,e),[()=>(u(gn),T(C()),u(vn),l(()=>u(gn)===`stopping`?C()(`voice.stopping`):C()(`voice.recording`,{elapsed:Sr(u(vn))})))]),y(e,t)},at=e=>{var t=yM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`voice.transcribingProgress`)))]),y(e,t)},ot=e=>{var t=bM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>wr(C())))]),y(e,t)},st=e=>{var t=xM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),u(bn),l(()=>C()(u(bn)||`voice.failed`)))]),y(e,t)};h(Ye,e=>{u(gn)===`recording`||u(gn)===`stopping`?e(it):u(gn)===`transcribing`?e(at,1):ge()===`unavailable`||!_n?e(ot,2):(u(bn)||u(gn)===`unavailable`)&&e(st,3)});var ct=P(Ye,2),lt=N(ct,!0);L(se),D((e,t,n,r,i,a,c)=>{s=Pe(o,1,`companion-timeline`,null,s,{"timeline-ready":u(rt)}),O(be,`accept`,He),O(xe,`aria-label`,e),O(xe,`title`,t),xe.disabled=!me(),O(we,`aria-label`,n),O(we,`aria-autocomplete`,u(et)?`list`:void 0),O(we,`aria-controls`,u(et)?`companion-command-suggestions`:void 0),O(we,`placeholder`,r),Ie(we,(u(Xe),l(()=>u(Xe).draft))),Ee=Pe(Te,1,`cmp-btn cmp-btn-ghost cmp-btn-circle companion-microphone`,null,Ee,{"companion-microphone-recording":u(gn)===`recording`,"companion-microphone-stopping":u(gn)===`stopping`}),O(Te,`data-state`,u(gn)),O(Te,`aria-label`,i),O(Te,`title`,a),Te.disabled=(u(gn),T(E()),T(ge()),T(ae()),l(()=>u(gn)===`stopping`||u(gn)===`transcribing`||E().canSubmit===!1||ge()!==`available`||!ae().transcribeVoice||!_n)),g(lt,c)},[()=>(T(C()),l(()=>C()(`image.choose`))),()=>(T(C()),l(()=>C()(`image.choose`))),()=>(T(C()),l(()=>C()(`composer.label`))),()=>(T(C()),T(ne()),l(()=>C()(`composer.placeholder`,{name:ne().companionName}))),()=>(u(gn),T(C()),T(ge()),l(()=>u(gn)===`recording`?C()(`voice.stop`):u(gn)===`transcribing`?C()(`voice.transcribing`):ge()===`loading`?C()(`voice.preparing`):ge()===`available`&&_n?C()(`voice.start`):C()(`voice.micUnavailable`))),()=>(u(gn),T(C()),T(ge()),l(()=>u(gn)===`recording`?C()(`voice.stop`):ge()===`available`&&_n?C()(`voice.start`):wr(C()))),()=>(T(C()),l(()=>C()(`composer.shortcut`)))]),Re(`scroll`,o,yr),Re(`change`,be,Lr),Re(`pointerdown`,xe,Hr),Re(`pointerup`,xe,Ur),Re(`pointercancel`,xe,Wr),Re(`contextmenu`,xe,ce(function(e){ke.call(this,a,e)})),Re(`click`,xe,Gr),Re(`input`,we,Nr),Re(`paste`,we,Rr),Re(`compositionstart`,we,Fr),Re(`compositionend`,we,Pr),Re(`keydown`,we,Ar),Re(`click`,Te,()=>void Or()),y(e,n)};h(Hi,e=>{u(_)===`loading`?e(Ui):u(_)===`missing`?e(Wi,1):u(_)===`error`?e(Gi,2):u(b)===`loading`?e(Ki,3):u(b)===`missing`?e(qi,4):u(b)===`error`?e(Ji,5):u(v)===`loading`?e(Yi,6):(u(v),T(E()),l(()=>u(v)===`error`||E().openState===`error`)?e(Xi,7):e(Zi,-1))}),L(Si),L(xi),L(bi);var Qi=P(bi,2),$i=e=>{var n=qM(),a=I(n),s=N(a),d=P(a,2),f=j(d),m=j(f);Jh(j(m),{size:16,strokeWidth:2,"aria-hidden":`true`}),L(m),L(f);var _=P(f,2),v=j(_);let b;Xh(j(v),{size:16,"aria-hidden":`true`}),L(v);var ee=P(v,2);let x;Zh(j(ee),{size:16,"aria-hidden":`true`}),L(ee);var S=P(ee,2);let te;Yh(j(S),{size:16,"aria-hidden":`true`}),L(S),L(_);var E=P(_,2),k=j(E),ie=e=>{var n=AM(),i=j(n),a=e=>{var t=CM(),n=j(t),r=N(n,!0),i=P(n),a=N(i,!0);L(t),D((e,t)=>{g(r,e),g(a,t)},[()=>(T(C()),l(()=>C()(`gallery.failed`))),()=>(T(C()),l(()=>C()(`retry`)))]),Re(`click`,i,()=>void gi(!0)),y(e,t)},s=e=>{var t=wM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`loading`)))]),y(e,t)},d=e=>{var t=TM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`gallery.empty`)))]),y(e,t)},f=e=>{var n=kM(),i=I(n),a=j(i),s=N(a,!0),d=P(a),f=j(d);let m;var _=N(f,!0),v=P(f);let b;var ee=N(v,!0);L(d),L(i);var x=P(i),S=j(x);t(S,5,()=>(o(),l(()=>o().getVirtualItems())),e=>e.key,(e,n)=>{let i=Ae(()=>(u(p),u(n),l(()=>u(p)[u(n).index])));var a=OM();let o;var s=j(a),d=e=>{var t=EM(),n=N(t,!0);D(()=>g(n,(T(u(i)),l(()=>u(i).label)))),y(e,t)},f=e=>{var n=c(),r=I(n);t(r,1,()=>(T(u(i)),l(()=>u(i).images)),he,(e,t)=>{var n=DM(),r=N(n);D(()=>{O(n,`aria-label`,(u(t),l(()=>u(t).filename))),n.disabled=(u(t),l(()=>!u(t).available)),O(r,`src`,(u(t),l(()=>u(t).url))),O(r,`alt`,(u(t),l(()=>u(t).filename)))}),Re(`click`,n,()=>{u(t).available&&(li(),ri({id:u(t).id,alt:u(t).filename,previewUrl:u(t).url}))}),y(e,n)}),y(e,n)};h(s,e=>{T(u(i)),l(()=>u(i)?.kind===`group`)?e(d):(T(u(i)),l(()=>u(i)?.kind===`images`)&&e(f,1))}),L(a),r(a,(e,t)=>_t?.(e,t),()=>u(n).index),D(()=>{re(a,(u(n),l(()=>`position:absolute;top:0;left:0;width:100%;transform:translateY(${u(n).start}px)`))),o=Pe(a,1,``,null,o,{"companion-gallery-group":u(i)?.kind===`group`,"companion-gallery-grid":u(i)?.kind===`images`})}),y(e,a)}),L(S),L(x),Ce(x,e=>F(ht,e),()=>u(ht));var w=P(x),te=e=>{var t=wM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`loading`)))]),y(e,t)};h(w,e=>{u(ft)&&e(te)}),D((e,t,n,r,i)=>{g(s,e),O(d,`aria-label`,t),m=Pe(f,1,`cmp-btn cmp-btn-ghost cmp-btn-xs`,null,m,{"cmp-btn-active":u(ut)===`day`}),O(f,`aria-pressed`,u(ut)===`day`),g(_,n),b=Pe(v,1,`cmp-btn cmp-btn-ghost cmp-btn-xs`,null,b,{"cmp-btn-active":u(ut)===`week`}),O(v,`aria-pressed`,u(ut)===`week`),g(ee,r),re(S,i)},[()=>(T(C()),l(()=>C()(`gallery.grouping`))),()=>(T(C()),l(()=>C()(`gallery.grouping`))),()=>(T(C()),l(()=>C()(`gallery.group.day`))),()=>(T(C()),l(()=>C()(`gallery.group.week`))),()=>(o(),l(()=>`height:${o().getTotalSize()}px`))]),Re(`click`,f,()=>F(ut,`day`)),Re(`click`,v,()=>F(ut,`week`)),y(e,n)};h(i,e=>{u(pt)?e(a):(u(ft),u(lt),l(()=>u(ft)&&!u(lt).length)?e(s,1):(u(lt),l(()=>!u(lt).length)?e(d,2):e(f,-1)))}),L(n),D(e=>O(n,`aria-label`,e),[()=>(T(C()),l(()=>C()(`drawer.images`)))]),y(e,n)},oe=e=>{var n=IM(),r=j(n),a=e=>{var t=jM(),n=I(t),r=N(n),i=P(n,2),a=j(i),o=N(a,!0);yj(P(a,2),{get text(){return u(yt),l(()=>u(yt).text)}}),L(i),D((e,t,n)=>{g(r,`← ${e??``}`),O(a,`datetime`,t),g(o,n)},[()=>(T(C()),l(()=>C()(`diary.back`))),()=>(u(yt),l(()=>u(yt).name.slice(0,-3))),()=>(u(yt),l(()=>u(yt).name.slice(0,-3)))]),Re(`click`,n,()=>F(yt,void 0)),y(e,t)},o=e=>{var t=wM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`loading`)))]),y(e,t)},s=e=>{var t=MM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`diary.tooLarge`)))]),y(e,t)},c=e=>{var t=NM(),n=j(t),r=N(n,!0),i=P(n,2),a=N(i,!0);L(t),D((e,t)=>{g(r,e),g(a,t)},[()=>(T(C()),l(()=>C()(`diary.failed`))),()=>(T(C()),l(()=>C()(`retry`)))]),Re(`click`,i,()=>void hi()),y(e,t)},d=e=>{var t=TM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`diary.empty`)))]),y(e,t)},f=e=>{var n=FM();t(n,5,()=>u(vt),he,(e,t)=>{var n=PM(),r=j(n),a=N(r,!0);i(2),L(n),D((e,t)=>{O(r,`datetime`,e),g(a,t)},[()=>(u(t),l(()=>u(t).slice(0,-3))),()=>(u(t),l(()=>u(t).slice(0,-3)))]),Re(`click`,n,()=>void _i(u(t))),y(e,n)}),L(n),y(e,n)};h(r,e=>{u(yt)?e(a):u(xt)?e(o,1):u(Ct)?e(s,2):u(St)?e(c,3):(u(vt),l(()=>!u(vt).length)?e(d,4):e(f,-1))}),L(n),y(e,n)},se=e=>{var n=KM(),r=I(n),i=j(r),a=N(i,!0),o=P(i,2),s=j(o),c=N(s,!0),d=P(s,2),f=N(d),p=P(d,2),m=N(p,!0),_=P(p,2),v=N(_,!0),b=P(_,2),ee=N(b,!0),x=P(b,2),S=N(x,!0);L(o),L(r);var te=P(r,2),E=j(te),k=N(E,!0),re=P(E,2),ie=e=>{var t=LM(),n=P(j(t),2),r=N(n,!0);L(t),D(e=>g(r,e),[()=>(T(C()),l(()=>C()(`history.loading`)))]),y(e,t)},oe=e=>{var t=NM(),n=j(t),r=N(n,!0),i=P(n,2),a=N(i,!0);L(t),D((e,t)=>{g(r,e),g(a,t)},[()=>(T(C()),l(()=>C()(`history.failed`))),()=>(T(C()),l(()=>C()(`history.retry`)))]),Re(`click`,i,()=>ae().retryHistory?.()),y(e,t)},se=e=>{var t=TM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`history.empty`)))]),y(e,t)},A=e=>{var n=GM(),r=I(n),i=e=>{var t=RM(),n=N(t,!0);D(e=>{t.disabled=(T(Me()),l(()=>Me().loadingEarlier)),g(n,e)},[()=>(T(Me()),T(C()),l(()=>Me().loadingEarlier?C()(`history.loadingEarlier`):C()(`history.earlier`)))]),Re(`click`,t,()=>void Xr()),y(e,t)};h(r,e=>{T(Me()),l(()=>Me().hasEarlier)&&e(i)});var a=P(r,2);t(a,7,()=>(T(Me()),l(()=>Me().records)),(e,t)=>`${e.at}:${t}`,(e,n,r)=>{let i=Ae(()=>(T(u(r)),l(()=>Yr(u(r)))));var a=WM(),o=j(a),s=N(o,!0),c=P(o,2),d=e=>{var t=zM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`history.initial`)))]),y(e,t)},f=e=>{var t=zM(),n=N(t,!0);D(e=>g(n,e),[()=>(T(C()),l(()=>C()(`history.initial`)))]),y(e,t)},p=e=>{var n=UM();t(n,5,()=>u(i),he,(e,t)=>{var n=HM(),r=j(n),i=N(r,!0),a=P(r,2),o=j(a),s=N(o,!0),c=P(o),d=e=>{var n=BM(),r=N(n);D(()=>g(r,`+${u(t),l(()=>u(t).delta)??``}`)),y(e,n)};h(c,e=>{u(t),l(()=>u(t).dimension===`affinity`&&u(t).delta)&&e(d)}),L(a);var f=P(a,2),p=e=>{var n=VM(),r=N(n);D(e=>g(r,`${e??``}: ${u(t),l(()=>u(t).reason)??``}`),[()=>(T(C()),l(()=>C()(`history.reason`)))]),y(e,n)};h(f,e=>{u(t),l(()=>u(t).reason)&&e(p)}),L(n),D((e,t)=>{g(i,e),g(s,t)},[()=>(u(t),l(()=>qr(u(t).dimension))),()=>(u(t),l(()=>Jr(u(t).dimension,u(t).after)))]),y(e,n)}),L(n),y(e,n)};h(c,e=>{u(n),l(()=>u(n).changes.seed)?e(d):(T(u(i)),l(()=>u(i).length===0)?e(f,1):e(p,-1))}),L(a),D(e=>{O(o,`datetime`,(u(n),l(()=>u(n).at))),g(s,e)},[()=>(u(n),T(w()),l(()=>Kr(u(n).at,w())))]),y(e,a)}),L(a),y(e,n)};h(re,e=>{T(Me()),l(()=>Me().status===`loading`)?e(ie):(T(Me()),l(()=>Me().status===`error`)?e(oe,1):(T(Me()),l(()=>Me().records.length===0)?e(se,2):e(A,-1)))}),L(te),D((e,t,n,r,i,o,s)=>{g(a,e),g(c,t),g(f,`${T(ne()),l(()=>ne().moodLabel)??``}${T(ne()),l(()=>ne().moodNote?` · ${ne().moodNote}`:``)??``}`),g(m,n),g(v,r),g(ee,i),g(S,o),g(k,s)},[()=>(T(C()),l(()=>C()(`history.current`))),()=>(T(C()),l(()=>C()(`mood.label`))),()=>(T(C()),l(()=>C()(`affinity.label`))),()=>(T(ne()),T(C()),l(()=>ne().affinity===void 0?C()(`loading`):`${ne().affinity} · ${ne().affinityStage}`)),()=>(T(C()),l(()=>C()(`history.signature`))),()=>(T(ne()),T(C()),l(()=>ne().signature||C()(`signature.empty`))),()=>(T(C()),l(()=>C()(`history.list`)))]),y(e,n)};h(k,e=>{u(ct)===`images`?e(ie):u(ct)===`diary`?e(oe,1):e(se,-1)}),L(E),L(d),Ce(d,e=>F(Bt,e),()=>u(Bt)),D((e,t,n,r,i,a)=>{O(s,`aria-label`,e),O(d,`aria-label`,t),O(m,`aria-label`,n),O(v,`aria-selected`,u(ct)===`history`),b=Pe(v,1,`cmp-btn cmp-btn-ghost cmp-btn-sm cmp-btn-circle`,null,b,{"cmp-btn-active":u(ct)===`history`}),O(v,`aria-label`,r),O(ee,`aria-selected`,u(ct)===`diary`),x=Pe(ee,1,`cmp-btn cmp-btn-ghost cmp-btn-sm cmp-btn-circle`,null,x,{"cmp-btn-active":u(ct)===`diary`}),O(ee,`aria-label`,i),O(S,`aria-selected`,u(ct)===`images`),O(S,`aria-label`,a),te=Pe(S,1,`cmp-btn cmp-btn-ghost cmp-btn-sm cmp-btn-circle`,null,te,{"cmp-btn-active":u(ct)===`images`}),O(E,`aria-labelledby`,u(ct)===`history`?`companion-history-tab`:u(ct)===`diary`?`companion-diary-tab`:`companion-images-tab`)},[()=>(T(C()),l(()=>C()(`relationship.close`))),()=>(T(C()),T(ne()),l(()=>C()(`relationship.named`,{name:ne().companionName}))),()=>(T(C()),l(()=>C()(`relationship.close`))),()=>(T(C()),l(()=>C()(`drawer.history`))),()=>(T(C()),l(()=>C()(`drawer.diary`))),()=>(T(C()),l(()=>C()(`drawer.images`)))]),Re(`click`,s,()=>ni()),Re(`click`,m,()=>ni()),Re(`click`,v,()=>F(ct,`history`)),Re(`click`,ee,()=>void hi()),Re(`click`,S,()=>void gi()),y(e,n)};h(Qi,e=>{u(at)&&e($i)});var ea=P(Qi,2),ta=e=>{var t=XM(),n=j(t),r=j(n),i=e=>{var t=JM();D(e=>{O(t,`src`,u(Ot)),O(t,`alt`,e)},[()=>(T(C()),l(()=>C()(`image.previewAlt`)))]),y(e,t)},a=e=>{var t=YM();y(e,t)};h(r,e=>{u(Ot)?e(i):e(a,-1)}),L(n);var o=P(n,2);Jh(j(o),{size:16,strokeWidth:2,"aria-hidden":`true`}),L(o);var s=P(o,2),c=j(s),d=N(c,!0);L(s),L(t),Ce(t,e=>F(Vt,e),()=>u(Vt)),D((e,n,r,i)=>{O(t,`aria-label`,e),O(o,`aria-label`,n),O(c,`aria-label`,r),g(d,i)},[()=>(T(C()),l(()=>C()(`image.preview`))),()=>(T(C()),l(()=>C()(`image.close`))),()=>(T(C()),l(()=>C()(`image.closeBackdrop`))),()=>(T(C()),l(()=>C()(`close`)))]),Re(`click`,o,()=>ai()),Re(`close`,t,oi),y(e,t)};h(ea,e=>{u(Dt)&&e(ta)}),L(yi);var na=P(yi,2),ra=N(na,!0);D((e,t,n,r)=>{O(Si,`aria-label`,e),O(Ti,`aria-label`,t),O(Ti,`aria-expanded`,u(at)),g(Pi,(T(ne()),l(()=>ne().companionName))),Pe(Ii,1,`cmp-status ${T(E()),l(()=>E().status===`offline`?`cmp-status-error`:E().status===`working`?`cmp-status-warning`:`cmp-status-success`)??``}`),g(Li,`${u(Wt)??``} · ${T(ne()),l(()=>ne().moodLabel)??``}`),O(zi,`aria-label`,n),O(zi,`aria-expanded`,u(ot)),g(ra,r)},[()=>(T(C()),l(()=>C()(`chat.label`))),()=>(T(C()),l(()=>C()(`relationship.view`))),()=>(T(C()),l(()=>C()(`preferences.open`))),()=>(u(Lt),T(C()),l(()=>typeof u(Lt)==`string`?u(Lt):C()(u(Lt).key,u(Lt).params)))]),Re(`click`,Ti,ui),Re(`click`,zi,()=>F(ot,!u(ot))),y(n,vi),Le(),d()}var $M=`her.companion.language`,eN=`her.companion.appearance`;function tN(e){return e===`en`||e===`zh`?e:void 0}function nN(e){return e===`light`||e===`dark`||e===`system`?e:void 0}function rN(e){for(let t of e??[]){let e=t.toLowerCase();if(e.startsWith(`zh`))return`zh`;if(e.startsWith(`en`))return`en`}return`en`}function iN(e,t){return e===`system`?t?`dark`:`light`:e}function aN(e){try{return globalThis.localStorage?.getItem(e)??void 0}catch{return}}function oN(e,t){try{globalThis.localStorage?.setItem(e,t)}catch{}}function sN(){let e=tN(aN(`her.companion.language`))??rN(globalThis.navigator?.languages),t=nN(aN(`her.companion.appearance`))??`system`,n=!1;try{n=globalThis.matchMedia?.(`(prefers-color-scheme: dark)`).matches??!1}catch{}return{language:e,appearance:t,systemDark:n}}var cN=class{stream;abort;retry;watchdog;timeout;generation=0;invalidatedGeneration=0;failures=0;disposed=!1;synced=!1;lastEvent=0;syncing;refreshAgain=!1;off;options;constructor(e){this.options=e,this.off=[`online`,`pageshow`].map(t=>e.window.on(t,()=>this.foreground())),this.off.push(e.window.on(`visibilitychange`,()=>e.window.visible()?this.foreground():this.pause()))}start(){this.replace()}pause(){this.retry&&this.options.window.clearTimeout(this.retry),this.watchdog&&this.options.window.clearTimeout(this.watchdog),this.retry=this.watchdog=void 0}foreground(){!this.disposed&&this.options.window.visible()&&this.replace()}event=()=>{this.lastEvent=this.options.now(),this.watchdog&&this.options.window.clearTimeout(this.watchdog),this.watchdog=void 0,this.synced&&this.watch()};replace(){if(this.disposed||!this.options.window.visible())return;this.pause(),this.timeout&&this.options.window.clearTimeout(this.timeout),this.timeout=void 0,this.generation+=1;let e=this.generation;this.lastEvent=this.options.now(),this.abort?.abort(),this.stream?.close(),this.synced=!1,this.options.changed(!1);let t=this.stream=this.options.open();t.onopen=this.event,t.onmessage=()=>{this.event(),this.catchUp(e)},t.addEventListener(`heartbeat`,this.event),t.onerror=()=>{!this.disposed&&e===this.generation&&(this.watchdog&&this.options.window.clearTimeout(this.watchdog),this.watchdog=void 0,this.invalidatedGeneration=e,this.abort?.abort(),this.options.changed(!1),this.synced=!1,this.schedule())},this.catchUp(e)}catchUp(e){if(this.disposed||e!==this.generation)return Promise.resolve();if(this.refreshAgain=!0,this.syncing){let t=this.syncing;return t.finally(()=>void 0).then(()=>(this.syncing===t&&(this.syncing=void 0),this.catchUp(e)))}return this.syncing=(async()=>{for(;this.refreshAgain&&!this.disposed&&e===this.generation;){this.refreshAgain=!1,this.abort?.abort();let t=this.abort=new AbortController;this.timeout=this.options.window.setTimeout(()=>t.abort(),15e3);try{await this.options.sync(t.signal,e)}finally{this.timeout&&this.options.window.clearTimeout(this.timeout),this.timeout=void 0}}!this.disposed&&e===this.generation&&this.invalidatedGeneration!==e&&(this.failures=0,this.synced=!0,this.options.changed(!0),this.watch())})().catch(()=>{!this.disposed&&e===this.generation&&this.schedule()}).finally(()=>{this.syncing=void 0}),this.syncing}schedule(){if(this.retry||this.disposed||!this.options.window.visible())return;let e=[1e3,2e3,4e3,8e3,15e3][Math.min(this.failures++,4)];this.retry=this.options.window.setTimeout(()=>{this.retry=void 0,this.replace()},e)}watch(){if(this.watchdog||this.disposed||!this.options.window.visible())return;let e=Math.max(0,this.lastEvent+45e3-this.options.now());this.watchdog=this.options.window.setTimeout(()=>{this.watchdog=void 0,this.options.now()-this.lastEvent>=45e3?this.replace():this.watch()},e)}close(){this.disposed=!0,this.abort?.abort(),this.stream?.close(),this.pause(),this.timeout&&this.options.window.clearTimeout(this.timeout),this.off.forEach(e=>e())}};function lN(e){return e===`sending`?{pending:!0,labelKey:`delivery.sending`}:e===`queued`?{pending:!0,labelKey:`delivery.queued`}:e===`unresolved`?{pending:!0,labelKey:`delivery.unresolved`}:{pending:!1,labelKey:void 0}}Object.freeze({neutral:`如常`,serene:`平静`,bright:`愉快`,playful:`俏皮`,tender:`柔和`,pensive:`若有所思`,tired:`疲惫`,low:`低落`}),Object.freeze({mood:`neutral`});function uN(e){return Number.isFinite(e)?Math.max(0,Math.min(100,Math.trunc(e))):0}function dN(e){let t=uN(e);return t<20?`疏离`:t<40?`生疏`:t<60?`熟悉`:t<80?`亲近`:`深厚`}var fN=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='2048'%20height='256'%20viewBox='0%200%202048%20256'%3e%3cdefs%3e%3clinearGradient%20id='g'%20x1='0'%20x2='0'%20y1='0'%20y2='1'%3e%3cstop%20stop-color='%23c7deed'/%3e%3cstop%20offset='1'%20stop-color='%237597ae'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20fill='none'%20stroke='%23527388'%20stroke-width='7'%20stroke-linecap='round'%3e%3cg%20transform='translate(0)'%3e%3ccircle%20cx='128'%20cy='128'%20r='75'%20fill='url(%23g)'/%3e%3cpath%20d='M80%20115q15-12%2030%200M146%20115q15-12%2030%200M100%20157q28%2020%2056%200'/%3e%3ccircle%20cx='83'%20cy='68'%20r='13'%20fill='%23dcebf3'/%3e%3ccircle%20cx='173'%20cy='68'%20r='13'%20fill='%23dcebf3'/%3e%3c/g%3e%3cg%20transform='translate(256)'%3e%3ccircle%20cx='128'%20cy='122'%20r='75'%20fill='url(%23g)'/%3e%3cpath%20d='M80%20109q15-12%2030%200M146%20109q15-12%2030%200M100%20151q28%2020%2056%200'/%3e%3ccircle%20cx='83'%20cy='62'%20r='13'%20fill='%23dcebf3'/%3e%3ccircle%20cx='173'%20cy='62'%20r='13'%20fill='%23dcebf3'/%3e%3c/g%3e%3cg%20transform='translate(512)'%3e%3ccircle%20cx='128'%20cy='128'%20r='75'%20fill='url(%23g)'/%3e%3cpath%20d='M80%20120h30M146%20120h30M100%20157q28%2020%2056%200'/%3e%3ccircle%20cx='83'%20cy='68'%20r='13'%20fill='%23dcebf3'/%3e%3ccircle%20cx='173'%20cy='68'%20r='13'%20fill='%23dcebf3'/%3e%3c/g%3e%3cg%20transform='translate(768)'%3e%3ccircle%20cx='128'%20cy='134'%20r='75'%20fill='url(%23g)'/%3e%3cpath%20d='M80%20121q15-12%2030%200M146%20121q15-12%2030%200M100%20163q28%2020%2056%200'/%3e%3ccircle%20cx='83'%20cy='74'%20r='13'%20fill='%23dcebf3'/%3e%3ccircle%20cx='173'%20cy='74'%20r='13'%20fill='%23dcebf3'/%3e%3c/g%3e%3cg%20transform='translate(1024)'%3e%3ccircle%20cx='128'%20cy='128'%20r='75'%20fill='url(%23g)'/%3e%3cpath%20d='M80%20115q15-12%2030%200M146%20115q15-12%2030%200M100%20157q28%2020%2056%200'/%3e%3ccircle%20cx='83'%20cy='68'%20r='13'%20fill='%23dcebf3'/%3e%3ccircle%20cx='173'%20cy='68'%20r='13'%20fill='%23dcebf3'/%3e%3c/g%3e%3cg%20transform='translate(1280)'%3e%3ccircle%20cx='128'%20cy='122'%20r='75'%20fill='url(%23g)'/%3e%3cpath%20d='M80%20109q15-12%2030%200M146%20109q15-12%2030%200M100%20151q28%2020%2056%200'/%3e%3ccircle%20cx='83'%20cy='62'%20r='13'%20fill='%23dcebf3'/%3e%3ccircle%20cx='173'%20cy='62'%20r='13'%20fill='%23dcebf3'/%3e%3c/g%3e%3cg%20transform='translate(1536)'%3e%3ccircle%20cx='128'%20cy='128'%20r='75'%20fill='url(%23g)'/%3e%3cpath%20d='M80%20120h30M146%20120h30M100%20157q28%2020%2056%200'/%3e%3ccircle%20cx='83'%20cy='68'%20r='13'%20fill='%23dcebf3'/%3e%3ccircle%20cx='173'%20cy='68'%20r='13'%20fill='%23dcebf3'/%3e%3c/g%3e%3cg%20transform='translate(1792)'%3e%3ccircle%20cx='128'%20cy='134'%20r='75'%20fill='url(%23g)'/%3e%3cpath%20d='M80%20121q15-12%2030%200M146%20121q15-12%2030%200M100%20163q28%2020%2056%200'/%3e%3ccircle%20cx='83'%20cy='74'%20r='13'%20fill='%23dcebf3'/%3e%3ccircle%20cx='173'%20cy='74'%20r='13'%20fill='%23dcebf3'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,pN=12;function mN(e){return{edge:`right`,offset:Math.max(pN,e.height-e.size-88)}}function hN(e,t){let n=Math.max(pN,Math.min(e.offset,(e.edge===`left`||e.edge===`right`?t.height:t.width)-t.size-pN));return e.edge===`left`?{x:pN,y:n}:e.edge===`right`?{x:t.width-t.size-pN,y:n}:e.edge===`top`?{x:n,y:pN}:{x:n,y:t.height-t.size-pN}}function gN(e,t){return{x:Math.max(pN,Math.min(e.x,t.width-t.size-pN)),y:Math.max(pN,Math.min(e.y,t.height-t.size-pN))}}function _N(e,t){let n=gN(e,t),r=[[n.x,`left`],[t.width-t.size-n.x,`right`],[n.y,`top`],[t.height-t.size-n.y,`bottom`]].reduce((e,t)=>e[0]<=t[0]?e:t)[1];return{edge:r,offset:r===`left`||r===`right`?n.y:n.x}}function vN(e,t,n){if(t===`Home`)return{edge:`left`,offset:pN};if(t===`End`)return mN(n);let r=hN(e,n);if(t===`ArrowLeft`)r.x-=20;else if(t===`ArrowRight`)r.x+=20;else if(t===`ArrowUp`)r.y-=20;else if(t===`ArrowDown`)r.y+=20;else return;return _N(r,n)}function yN(e,t,n){let r=Math.floor(t*n.fps/1e3);return n.loop?(e+r)%n.frameCount:Math.min(n.frameCount-1,e+r)}function bN(e,t={frameCount:8,fps:8,loop:!0}){let n=Number(e.get(`x-pet-frame-count`)),r=Number(e.get(`x-pet-fps`));return{frameCount:Number.isInteger(n)&&n>0?n:t.frameCount,fps:Number.isFinite(r)&&r>0?r:t.fps,loop:e.get(`x-pet-loop`)!==`false`&&t.loop}}var xN=d(`<div role="button" tabindex="0"></div>`);function SN(e,t){ie(t,!1);let n=De(t,`activity`,8),r=De(t,`label`,8),i=`her.pet-dock.v1`,a=k(),o,s,c=k(!1),d={x:0,y:0},p={x:0,y:0},m=!1,h=k(),g=()=>({width:innerWidth,height:innerHeight,size:Math.min(160,Math.max(96,innerWidth*.12))}),_=()=>s??hN(o??mN(g()),g()),v=()=>{let e=_();return`left:${e.x}px;top:${e.y}px`};function b(){try{localStorage.setItem(i,JSON.stringify(o))}catch{}}function ee(e){let t=_();F(c,!0),m=!1,d={x:e.clientX,y:e.clientY},p={x:e.clientX-t.x,y:e.clientY-t.y},u(a).setPointerCapture(e.pointerId)}function x(e){if(!u(c))return;let t=gN({x:e.clientX-p.x,y:e.clientY-p.y},g());Math.hypot(e.clientX-d.x,e.clientY-d.y)>8&&(m=!0,s=t,e.preventDefault())}function S(e){u(c)&&m&&(o=_N(s??{x:e.clientX,y:e.clientY},g()),b()),s=void 0,F(c,!1)}function C(e){let t=vN(o??mN(g()),e.key,g());t&&(e.preventDefault(),o=t,b())}pe(()=>{let e,t=!1;return(async()=>{try{let e=JSON.parse(localStorage.getItem(i)??``);[`left`,`right`,`top`,`bottom`].includes(e.edge)&&Number.isFinite(e.offset)&&(o=e)}catch{}o??=mN(g());let r=await ze(()=>import(`../chunks/BZwtE-rc.js`),__vite__mapDeps([0,1]),import.meta.url);if(t)return;e=new r.Application({width:256,height:256,backgroundAlpha:0,antialias:!0}),u(a).replaceChildren(e.view);let s=new r.Sprite;s.width=256,s.height=256,e.stage.addChild(s);let c,l={frameCount:8,fps:8,loop:!0},d=0,f=0,p=0,m=matchMedia(`(prefers-reduced-motion: reduce)`).matches;F(h,{async setActivity(e){let n=++p,i=await fetch(`/api/pet-assets/${e}`,{cache:`no-store`}),a=i.ok?i.url:fN,o=await r.Assets.load(a);t||n!==p||(c=o,l=i.ok?bN(i.headers):{frameCount:8,fps:8,loop:!0},d=0,f=0,s.texture.destroy(!1),s.texture=new r.Texture(o.baseTexture,new r.Rectangle(0,0,o.width/l.frameCount,o.height)))}}),await u(h).setActivity(n()),m||e.ticker.add(()=>{if(!c)return;f+=e.ticker.deltaMS;let t=yN(d,f,l);t!==d&&(f=0,d=t,s.texture.destroy(!1),s.texture=new r.Texture(c.baseTexture,new r.Rectangle(d*(c.width/l.frameCount),0,c.width/l.frameCount,c.height)))})})(),()=>{t=!0,F(h,void 0),e?.destroy(!0,{children:!0,texture:!1,baseTexture:!1})}}),Te(()=>(u(h),T(n())),()=>{u(h)&&u(h).setActivity(n())}),f(),se();var w=xN();let te;Ce(w,e=>F(a,e),()=>u(a)),D(e=>{te=Pe(w,1,`pet-dock svelte-1aljnkv`,null,te,{dragging:u(c)}),re(w,e),O(w,`data-activity`,n()),O(w,`aria-label`,r())},[()=>l(v)]),Re(`pointerdown`,w,ee),Re(`pointermove`,w,x),Re(`pointerup`,w,S),Re(`pointercancel`,w,S),Re(`keydown`,w,C),y(e,w),Le()}var CN=d(`<!> <!>`,1);function wN(e,t){ie(t,!0);let n=oe(me({cursor:0,before:null,hasMore:!1,hasChangesMore:!1,pendingCount:0,cancellable:[],name:`Her`,typing:!1,messages:[],storageError:!1,results:[]})),r=oe(null),i=oe(!1),a=oe(!1),o,s=oe(!1),c=oe(!1),l=oe(``),d=!1,f=!1,m=0,g,_=0,v,ee=new AbortController,x=oe(me([])),S=new Map;function C(){let e=new Set(u(n).messages.map(e=>e.id));F(x,u(x).filter(t=>!e.has(t.id)),!0);for(let[t,n]of S)e.has(t)&&(S.delete(t),n())}let w=sN(),T=oe(me(w.language)),te=oe(me(w.appearance)),D=oe(me(w.systemDark)),O=A(()=>sh(u(T))),ne=A(()=>iN(u(te),u(D)));E(()=>{document.documentElement.lang=u(T)===`zh`?`zh-Hans`:`en`,document.documentElement.dataset.theme=u(ne)===`dark`?`night-voyage`:`sticker-messenger`});function k(e){F(T,e,!0),oN($M,e)}function re(e){F(te,e,!0),oN(eN,e)}function ae(e){return u(O)(`mood.${e}`)}function se(e){let t={疏离:`affinity.distant`,生疏:`affinity.unfamiliar`,熟悉:`affinity.familiar`,亲近:`affinity.close`,深厚:`affinity.deep`}[dN(e)];return u(O)(t)}let j=A(()=>{let e=[],t=u(n).results??[],r=new Map(t.flatMap(e=>e.sourceIds.map(t=>[t,e]))),o=new Set(t.map(e=>e.sourceIds.at(-1)).filter(e=>!!e)),d=[...u(n).messages.filter(e=>e.delivery!==`replaced`),...u(x).filter(e=>e.delivery!==`replaced`&&!u(n).messages.some(t=>t.id===e.id))],f=e=>{let t=e.answers.map((t,n)=>{let r=n===0?``:`:${n}`,i=`${e.id}:answer${r}`;return{id:i,side:`incoming`,items:[{id:i,messageKey:i,kind:`text`,side:`incoming`,text:t}],...e.completedAt===void 0?{}:{time:e.completedAt}}});for(let n of e.voices)t.unshift({id:`${e.id}:voice:${n.id}`,side:`incoming`,items:[{id:`${e.id}:voice:${n.id}`,messageKey:`${e.id}:voice:${n.id}`,kind:`voice`,side:`incoming`,url:n.url}],...e.completedAt===void 0?{}:{time:e.completedAt}});let n=[];for(let t of e.images)n.push({id:t.id,messageKey:e.id,kind:`image`,side:`incoming`,state:`ready`,previewUrl:t.url,alt:t.name});let r=e.status===`interrupted`||e.status===`cancelled`;if((e.error||e.status===`failed`||r)&&n.push({id:`${e.id}:error`,messageKey:e.id,kind:`notice`,side:`incoming`,tone:`error`,text:e.error===`cancelled`||r?u(O)(`reply.stopped`):u(O)(`reply.failed`)}),n.length&&t.length){let e=t.at(-1);t[t.length-1]={...e,items:[...e.items,...n]}}else n.length&&t.push({id:`${e.id}:answer`,side:`incoming`,items:n,...e.completedAt===void 0?{}:{time:e.completedAt}});return t};for(let[t,n]of d.entries()){let i=lN(n.delivery),a=n.sequence>0?n.sequence*2:2**53-1-(d.length-t)*2,s={id:`${n.id}:user`,messageKey:`${n.id}:user`,kind:`text`,side:`outgoing`,text:n.input,time:n.created,pending:[`sending`,`pending`,`unresolved`].includes(n.delivery),waitsForCurrentReply:n.delivery===`pending`};e.push({order:a,unit:{id:s.id,side:`outgoing`,items:[...n.input?[s]:[],...(n.inputImages??[]).map(e=>({id:e.id,messageKey:s.messageKey,kind:`image`,side:`outgoing`,state:`ready`,previewUrl:e.url,alt:e.name}))],time:n.created,pending:i.pending,pendingLabel:i.labelKey?u(O)(i.labelKey):void 0}});let c=r.get(n.id),l=[];c&&o.has(n.id)&&(l=f(c)),n.inputError&&(l=[...l,{id:`${n.id}:input-error`,side:`incoming`,items:[{id:`${n.id}:input-error`,messageKey:n.id,kind:`notice`,side:`incoming`,tone:`error`,text:n.inputError}]}]),l.forEach((t,n)=>e.push({order:a+1+n/1e3,unit:t}))}for(let n of t)d.some(e=>e.id===n.sourceIds.at(-1))||f(n).forEach((t,r)=>e.push({order:n.sequence*2+1+r/1e3,unit:t}));e.sort((e,t)=>e.order-t.order);let p=Qe(e.map(({unit:e})=>e),u(n).compactions??[]);return{items:p.flatMap(e=>e.items),messageUnits:p,pendingCount:u(n).pendingCount,canSubmit:u(s)&&u(c),running:u(n).typing,status:!u(s)&&u(c)?`offline`:u(n).typing?`working`:`ready`,openState:u(c)?`open`:`loading`,hasMore:u(i),loadingOlder:u(a),promptError:u(l)||(u(n).storageError?u(O)(`error.storage`):void 0)}});async function ce(e,t=0){if(t&&(m=Math.max(m,t)),g)return t&&t!==_?g.catch(()=>void 0).then(()=>ce(e,t)):(f=!0,g);let a=(async()=>{try{do{f=!1;let a=await fetch(o===void 0?`/api/session`:`/api/session?after=${o}`,{signal:e?AbortSignal.any([ee.signal,e]):ee.signal});if(!a.ok)throw Error(u(O)(`connection.interrupted`));let s=await a.json();d||t&&t!==m||(o===void 0&&(F(r,s.before,!0),F(i,s.hasMore,!0)),F(n,{...s,messages:Be(u(n).messages,s.messages),results:Ve(u(n).results??[],s.results??[])},!0),C(),o=s.cursor,F(c,!0),s.hasChangesMore&&(f=!0))}while(f&&!d)}catch{throw Error(u(O)(`connection.interrupted`))}})();g=a,_=t;try{await a}finally{g===a&&(g=void 0)}}class le extends Error{}async function ue(e,t){let n=await fetch(e,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(t),signal:ee.signal});if(n.status===422)throw new le(u(O)(`message.invalid`));if(!n.ok)throw Error(u(O)(`message.unconfirmed`))}let de={async loadOlder(){if(!u(a)&&u(i)&&u(r)!==null){F(a,!0);try{let e=await fetch(`/api/session?before=${u(r)}`,{signal:ee.signal});if(!e.ok)throw Error(u(O)(`history.loadFailed`));let t=await e.json();F(n,{...u(n),messages:Be(u(n).messages,t.messages),results:Ve(u(n).results??[],t.results??[])},!0),F(r,t.before,!0),F(i,t.hasMore,!0)}catch{d||F(l,u(O)(`history.loadFailed`),!0)}finally{F(a,!1)}}},async transcribeVoice(e,t){let n=await fetch(`/api/voice/transcribe`,{method:`POST`,headers:{"content-type":e.mediaType},body:e.blob,signal:t?AbortSignal.any([t,ee.signal]):ee.signal});if(!n.ok)throw Error(`Transcription failed`);return n.json()},async send(e,t,r){if(!u(s))throw new Cg(u(O)(`connection.interrupted`));if(e===`/compact`&&!t.length){try{await ue(`/api/compact`,{})}catch{throw new Cg(u(O)(`compact.admissionFailed`))}try{await ce()}catch{d||F(l,u(O)(`connection.interrupted`),!0)}return}let i=crypto.randomUUID(),a={id:i,input:e,delivery:`sending`,inputError:null,created:Date.now(),sequence:0,revision:0,inputImages:t.map(e=>({id:e.id,name:e.file.name,url:e.previewUrl}))};F(x,[...u(x),a],!0),F(l,``);let o=!1;try{let a=await Ye(t),s=i;F(x,u(x).map(e=>e.id===s?{...e,id:i}:e),!0),S.set(i,()=>{o=!0,r?.({reason:`observed`})}),C(),await ue(`/api/messages`,{id:i,input:e,images:a,replaces:u(n).draft?.sourceIds??[]}),F(x,u(x).map(e=>e.id===i?{...e,delivery:`pending`}:e),!0),await ce()}catch(e){if(o)return;throw F(x,u(x).filter(e=>e.id!==i),!0),S.delete(i),F(l,e instanceof le?e.message:u(O)(`message.unconfirmedDraft`),!0),r?.({reason:`failed`}),e}},async stop(){for(let e of u(n).cancellable)await ue(`/api/cancel`,{id:e});await ce()}};pe(()=>{let e=matchMedia(`(prefers-color-scheme: dark)`),t=()=>{F(D,e.matches,!0)};return t(),e.addEventListener(`change`,t),v=new cN({open:()=>new EventSource(`/api/events`),sync:(e,t)=>ce(e,t),now:()=>Date.now(),changed:e=>{F(s,e,!0)},window:{visible:()=>document.visibilityState!==`hidden`,on:(e,t)=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),setTimeout:(e,t)=>window.setTimeout(e,t),clearTimeout:e=>window.clearTimeout(e)}}),v.start(),()=>{d=!0,v?.close(),ee.abort(),S.clear(),e.removeEventListener(`change`,t)}});var M=CN();Ne(`1uha8ag`,e=>{p(()=>{b.title=`${u(n).name??``} · Her`})});var fe=I(M);{let e=A(()=>u(n).speech?`available`:`unavailable`),t=A(()=>u(n).keetLosses??[]),r=A(()=>({companionName:u(n).name,userName:`你`,preferredAddress:`你`,companionAvatar:u(n).avatars?.companion,userAvatar:u(n).avatars?.user,signature:u(n).relationship?.signature??``,mood:u(n).relationship?.mood??`neutral`,moodLabel:ae(u(n).relationship?.mood??`neutral`),moodNote:u(n).relationship?.note,affinity:u(n).relationship?.affinity,affinityStage:se(u(n).relationship?.affinity??50)})),i=A(()=>u(c)?`ready`:`loading`),a=A(()=>u(c)?`ready`:`loading`),o=A(()=>u(n).relationship?`ready`:`loading`),s=A(()=>({lifecycle:u(n).lifecycle,contextPressure:u(n).context&&u(n).context.activeTokens!==null&&u(n).context.windowTokens!==null?{contextWindow:u(n).context.windowTokens,projectedTokens:u(n).context.activeTokens}:void 0})),l=A(()=>({status:u(c)?`ready`:`loading`,records:u(n).history??[],hasEarlier:!1}));QM(fe,{get projection(){return u(j)},get actions(){return de},get t(){return u(O)},get locale(){return u(T)},get appearance(){return u(te)},onLanguageChange:k,onAppearanceChange:re,sessionId:`partner`,get voiceCapability(){return u(e)},get imageLimits(){return u(n).imageLimits},onHistoryOpenChange:void 0,get keetLosses(){return u(t)},get identity(){return u(r)},get workspaceReadiness(){return u(i)},get sessionReadiness(){return u(a)},get relationshipReadiness(){return u(o)},get continuity(){return u(s)},get history(){return u(l)},get recoveredDraft(){return u(n).draft}})}var he=P(fe,2),ge=e=>{{let t=A(()=>u(O)(`pet.dockLabel`));SN(e,{get activity(){return u(n).pet.activity},get label(){return u(t)}})}};h(he,e=>{u(n).pet&&e(ge)}),y(e,M),Le()}export{wN as component};