docmedown 0.9.3 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -6
- package/dist/cli.js +155 -129
- package/dist/docmedown.cjs +64 -64
- package/dist/docmedown.iife.js +264 -264
- package/dist/docmedown.mjs +3337 -3337
- package/dist/docmedown.web.js +69 -69
- package/dist/types/runtime/bridges/dynamic-component.d.ts +1 -9
- package/dist/types/runtime/home.d.ts +2 -4
- package/dist/types/runtime/markdown/callouts.d.ts +0 -12
- package/dist/types/runtime/markdown/highlighter.d.ts +0 -23
- package/dist/types/runtime/markdown/inline-text.d.ts +0 -1
- package/dist/types/runtime/markdown/parser.d.ts +0 -1
- package/dist/types/runtime/markdown/tables.d.ts +2 -3
- package/dist/types/runtime/media.d.ts +0 -3
- package/dist/types/runtime/offline-export.d.ts +2 -2
- package/dist/types/runtime/splash.d.ts +0 -2
- package/dist/types/runtime/svelte-compiler-loader.d.ts +0 -1
- package/dist/types/runtime/svelte-runtime.d.ts +0 -18
- package/dist/types/runtime/svelte-tag.d.ts +0 -1
- package/package.json +1 -1
- package/templates/getting-started.md +1 -1
package/dist/docmedown.web.js
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
`)}),_(t,`name`,{value:e}),t)}function rn(){let e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;let t=Error().stack;if(Error.stackTraceLimit=e,!t)return[];let n=t.split(`
|
|
5
5
|
`),r=[];for(let e=0;e<n.length;e++){let t=n[e],i=t.replaceAll(`\\`,`/`);if(t.trim()!==`Error`){if(t.includes(`validate_each_keys`))return[];i.includes(`svelte/src/internal`)||i.includes(`node_modules/.vite`)||r.push(t)}}return r}function an(e,t,n){let r={};return[()=>(n(r)||Ct(),e(r)),e=>t(r,e),()=>n(r)]}function on(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function sn(e,t){return e===null&&St(t),e.c??=new Map(on(e)||void 0)}var cn=null;function ln(e){cn=e}var un=null;function dn(e,t,n,r,i,a){let o=un;un={type:t,file:n[We],line:r,column:i,parent:o,...a};try{return e()}finally{un=o}}var fn=null;function pn(e){fn=e}function mn(){return an(hn,gn,_n)}function hn(e){return sn(cn,`getContext`).get(e)}function gn(e,t){return sn(cn,`setContext`).set(e,t),t}function _n(e){return sn(cn,`hasContext`).has(e)}function vn(){return sn(cn,`getAllContexts`)}function yn(e,t=!1,n){cn={p:cn,i:!1,c:null,e:null,s:e,x:null,r:ya,l:null}}function bn(e){var t=cn,n=t.e;if(n!==null){t.e=null;for(var r of n)Ri(r)}return e!==void 0&&(t.x=e),t.i=!0,cn=t.p,xn(e)}function xn(e={}){return _(e,Ae,{value:!0}),e}function Sn(){return!0}var Cn=[];function wn(){var e=Cn;Cn=[],oe(e)}function Tn(e){if(Cn.length===0&&!Ar){var t=Cn;queueMicrotask(()=>{t===Cn&&wn()})}Cn.push(e)}function En(){for(;Cn.length>0;)wn()}var Dn=~(pe|me|fe);function On(e,t){e.f=e.f&Dn|t}function kn(e){e.f&512||e.deps===null?On(e,fe):On(e,me)}function An(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=Te,An(t.deps))}function jn(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),An(e.deps),On(e,fe)}function Mn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),re;let r=Wa(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}function Nn(e){let t;return Mn(e,e=>t=e)(),t}var Pn=!1,Fn=!1,In=Symbol(`unmounted`);function Ln(e,t,n){let r=n[t]??={store:null,source:ei(void 0),unsubscribe:re};if(r.store!==e&&!(In in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=re;else{var i=!0;r.unsubscribe=Mn(e,e=>{i?r.source.v=e:D(r.source,e)}),i=!1}}return e&&In in n?Nn(e):M(r.source)}function Rn(e,t,n){let r=n[t];return r&&r.store!==e&&(r.unsubscribe(),r.unsubscribe=re),e}function zn(e,t){return Hn(e,t),t}function Bn(e,t){var n=e[t];n.store!==null&&zn(n.store,n.source.v)}function Vn(){let e={};function t(){Ii(()=>{for(var t in e)e[t].unsubscribe();_(e,In,{enumerable:!1,value:!0})})}return[e,t]}function Hn(e,t){Pn=!0;try{e.set(t)}finally{Pn=!1}}function Un(e,t,n){return Hn(e,n),t}function Wn(e,t,n=1){return Hn(e,t+n),t}function Gn(e,t,n=1){let r=t+n;return Hn(e,r),r}function Kn(){Fn=!0}function qn(e){var t=Fn;try{return Fn=!1,[e(),Fn]}finally{Fn=t}}function Jn(e,t){if(t){let t=document.body;e.autofocus=!0,Tn(()=>{document.activeElement===t&&e.focus()})}}function Yn(e){C&&bi(e)!==null&&Ci(e)}var Xn=!1;function Zn(){Xn||(Xn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Re]?.()})},{capture:!0}))}function Qn(e,t,n,r=!0){r&&n();for(var i of t)e.addEventListener(i,n);Ii(()=>{for(var r of t)e.removeEventListener(r,n)})}function $n(e){var t=ga,n=ya;va(null),ba(null);try{return e()}finally{va(t),ba(n)}}function er(e,t,n,r=n){e.addEventListener(t,()=>$n(n));let i=e[Re];e[Re]=i?()=>{i(),r(!0)}:()=>r(!0),Zn()}function tr(e,t,n,r){let i=Sn()?hr:yr;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=ya,c=rr(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){ji(e,s)}lr()}}var d=fr();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>_r(e))).then(u).catch(e=>ji(e,s)).finally(d)}l?l.then(()=>{c(),f(),lr()}):f()}function nr(e,t){tr(e,[],[],t)}function rr(){var e=ya,t=ga,n=cn,r=Er;return function(i=!0){ba(e),va(t),ln(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}var ir=!1;async function ar(e){var t=rr();or();var n=await e;return()=>(t(),ir=!0,n)}function or(e){return ir&&lr(),e}async function sr(e){or();var t=pr;queueMicrotask(()=>{pr===t&&mr(null)});var n=await e;return()=>(mr(t),queueMicrotask(()=>{pr===t&&mr(null)}),n)}async function*cr(e){let t=e[Symbol.asyncIterator]?.()??e[Symbol.iterator]?.();if(t===void 0)throw TypeError(`value is not async iterable`);let n=!0;try{for(;;){let{done:e,value:i}=(await sr(t.next()))();if(e){n=!1;break}var r=pr;try{yield i}catch(e){throw mr(r),t.return!==void 0&&(await sr(t.return()))(),e}mr(r)}}catch(e){throw n=!1,e}finally{if(n&&t.return!==void 0)return(await sr(t.return()))().value}}function lr(e=!0){ir=!1,ba(null),va(null),ln(null),e&&Er?.deactivate()}function ur(e){let t=rr(),n=fr();var r=ya,i=null;let a=e=>{i={error:e},ca(r)||ji(e,r)};var o=Promise.resolve(e[0]()).catch(a),s={promise:o,settled:!1},c=[s];o.finally(()=>{s.settled=!0,lr()});for(let n of e.slice(1)){o=o.then(()=>{t();try{if(i)throw i.error;if(ca(r))throw Be;return n()}finally{lr()}}).catch(a);let e={promise:o,settled:!1};c.push(e),o.finally(()=>{e.settled=!0,lr()})}return o.then(()=>Promise.resolve()).finally(n),c}function dr(e){return Promise.all(e.map(e=>e.promise))}function fr(){var e=ya,t=e.b,n=Er,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}var pr=null;function mr(e){pr=e}function hr(e){var t=2|pe;return ya!==null&&(ya.f|=Se),{ctx:cn,deps:null,effects:null,equals:gt,f:t,fn:e,reactions:null,rv:0,v:Ue,wv:0,parent:ya,ac:null}}var gr=Symbol(`obsolete`);function _r(e,t,n){let r=ya;r===null&&Dt();var i=void 0,a=$r(Ue),o=!ga,s=new Set;return Ki(()=>{var t=ya,n=se();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Be&&n.reject(e)}).finally(lr)}catch(e){n.reject(e),lr()}var c=Er;if(o){if(t.f&32768)var l=fr();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(gr);else for(let e of s.values())e.reject(gr);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==gr&&(c.activate(),t?(a.f|=Oe,ni(a,t)):(a.f&8388608&&(a.f^=Oe),ni(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Ii(()=>{for(let e of s)e.reject(gr)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function vr(e){let t=hr(e);return Sa(t),t}function yr(e){let t=hr(e);return t.equals=vt,t}function br(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ta(t[n])}}function xr(e){var t,n=ya,r=e.parent;if(!ma&&r!==null&&e.v!==Ue&&r.f&24576)return $e(),e.v;ba(r);try{e.f&=~Te,br(e),t=Pa(e)}finally{ba(n)}return t}function Sr(e){var t=xr(e);if(!e.equals(t)&&(e.wv=ja(),(!Er?.is_fork||e.deps===null)&&(Er===null?e.v=t:(Er.capture(e,t,!0),Dr?.capture(e,t,!0)),e.deps===null))){On(e,fe);return}ma||(Or===null?kn(e):(Fi()||Er?.is_fork)&&Or.set(e,t))}function Cr(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&$n(()=>{t.ac.abort(Be),t.ac=null}),t.fn!==null&&(t.teardown=re),La(t,0),$i(t))}function wr(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Ra(t)}var Tr=null,Er=null,Dr=null,Or=null,kr=null,Ar=!1,jr=!1,Mr=null,Nr=null,Pr=0,Fr=1,Ir=class e{id=Fr++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){Tr===null?Tr=this:(Tr.#n=this,this.#t=Tr),Tr=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)On(r,pe),t(r);for(r of n.m)On(r,me),t(r)}this.#p.add(e)}#g(){this.#e=!0,Pr++>1e3&&(this.#x(),Lr());for(let e of this.#u)this.#d.delete(e),On(e,pe),this.schedule(e);for(let e of this.#d)On(e,me),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=Mr=[],r=[],i=Nr=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw qr(e),this.#h()||this.discard(),t}if(Er=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Mr=null,Nr=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Kr(e,t);i.length>0&&Er.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),Dr=this,zr(r),zr(n),Dr=null,this.#s?.resolve();var s=Er;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&(Xr.clear(),s.#g())}#_(e,t,n){e.f^=fe;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=fe:i&4?t.push(r):Ma(r)&&(i&16&&this.#d.add(r),Ra(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),On(i,pe),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),Er=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)jn(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==Ue&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),Or?.set(e,t)),this.is_fork||(e.v=t)}activate(){Er=this}deactivate(){Er=null,Or=null}flush(){try{jr=!0,Er=this,this.#g()}finally{Pr=0,kr=null,Mr=null,Nr=null,jr=!1,Er=null,Or=null,Xr.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(gr);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Tn(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=se()).promise}static ensure(){if(Er===null){let t=Er=new e;!jr&&!Ar&&Tn(()=>{t.#e||t.flush()})}return Er}apply(){Or=null}schedule(e){if(kr=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Mr!==null&&t===ya&&(ga===null||!(ga.f&2))&&!Pn)return;if(n&96){if(!(n&1024))return;t.f^=fe}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?Tr=e:t.#t=e,this.linked=!1}}};function T(e){var t=Ar;Ar=!0;try{var n;for(e&&(Er!==null&&!Er.is_fork&&Er.flush(),n=e());;){if(En(),Er===null)return n;Er.flush()}}finally{Ar=t}}function Lr(){try{Ft()}catch(e){ji(e,kr)}}var Rr=null;function zr(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Ma(r)&&(Rr=new Set,Ra(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&ra(r),Rr?.size>0)){Xr.clear();for(let e of Rr){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Rr.has(n)&&(Rr.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Ra(n)}}Rr.clear()}}Rr=null}}function Br(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?Br(n,t):e&131072&&(On(n,pe),t.add(n))}}function Vr(e){Er.schedule(e)}var Hr=[];function Ur(){T(()=>{let e=Hr;Hr=[];for(let t of e)ii(t)})}var Wr=new Map;function Gr(e){var t=!0,n=void 0;if(ga===null)return e();let r=ga,i=Wr.get(r)??$r(0);return Wr.set(r,i),Ii(()=>{r.f&33554432&&Wr.delete(r)}),M(i),Bi(()=>{if(t){var r=Or;try{Or=null,n=e()}finally{Or=r}return}Hr.length===0&&Tn(Ur),Hr.push(i)}),t=!1,n}function Kr(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),On(e,fe);for(var n=e.first;n!==null;)Kr(n,t),n=n.next}}function qr(e){On(e,fe);for(var t=e.first;t!==null;)qr(t),t=t.next}function Jr(e){yt(`fork`),Er!==null&&Lt();var t=Ir.ensure();t.is_fork=!0,Or=new Map;var n=!1,r=t.settled();return T(e),{commit:async()=>{if(n){await r;return}t.linked||It(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=ja();T(()=>{var e=new Set;for(var n of t.current.keys())Br(n,e);Zr(e),ri()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=ja();!n&&t.linked&&t.discard()}}}var Yr=new Set,Xr=new Map;function Zr(e){Yr=e}var Qr=!1;function $r(e,t){return{f:0,v:e,reactions:null,equals:gt,rv:0,wv:0}}function E(e,t){let n=$r(e,t);return Sa(n),n}function ei(e,t=!1,n=!0){let r=$r(e);return t||(r.equals=vt),r}function ti(e,t){return D(e,Wa(()=>M(e))),t}function D(e,t,n=!1){return ga!==null&&(!_a||ga.f&131072)&&Sn()&&ga.f&4325394&&(xa===null||!xa.has(e))&&Wt(),ni(e,n?ci(t):t,Nr)}function ni(e,t,n=null){if(!e.equals(t)){ma?Xr.set(e,t):Xr.has(e)||Xr.set(e,e.v);var r=Ir.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&xr(t),Or===null&&kn(t)}e.wv=ja(),si(e,pe,n),Sn()&&ya!==null&&ya.f&1024&&!(ya.f&96)&&(Ta===null?Ea([e]):Ta.push(e)),!r.is_fork&&Yr.size>0&&!Qr&&ri()}return t}function ri(){Qr=!1;for(let e of Yr){e.f&1024&&On(e,me);let t;try{t=Ma(e)}catch{t=!0}t&&Ra(e)}Yr.clear()}function ii(e,t=1){var n=M(e),r=t===1?n++:n--;return D(e,n),r}function ai(e,t=1){var n=M(e);return D(e,t===1?++n:--n)}function oi(e){D(e,e.v+1)}function si(e,t,n){var r=e.reactions;if(r!==null)for(var i=Sn(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===ya)){var l=(c&pe)===0;if(l&&On(s,t),c&131072)Yr.add(s);else if(c&2){var u=s;Or?.delete(u),c&65536||(c&512&&(ya===null||!(ya.f&2097152))&&(s.f|=Te),si(u,me,n))}else if(l){var d=s;c&16&&Rr!==null&&Rr.add(d),n===null?Vr(d):n.push(d)}}}}function ci(e){if(typeof e!=`object`||!e||ke in e||Ae in e)return e;let t=S(e);if(t!==b&&t!==x)return e;var n=new Map,r=f(e),i=E(0),a=null,o=ka,s=e=>{if(ka===o)return e();var t=ga,n=ka;va(null),Aa(o);var r=e();return va(t),Aa(n),r};return r&&n.set(`length`,E(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ht();var i=n.get(t);return i===void 0?s(()=>{var e=E(r.value,a);return n.set(t,e),e}):D(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>E(Ue,a));n.set(t,e),oi(i)}}else D(r,Ue),oi(i);return!0},get(t,r,i){if(r===ke)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||v(t,r)?.writable)&&(o=s(()=>E(ci(c?t[r]:Ue),a)),n.set(r,o)),o!==void 0){var l=M(o);return l===Ue?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=M(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==Ue)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===ke)return!0;var r=n.get(t),i=r!==void 0&&r.v!==Ue||Reflect.has(e,t);return(r!==void 0||ya!==null&&(!i||v(e,t)?.writable))&&(r===void 0&&(r=s(()=>E(i?ci(e[t]):Ue,a)),n.set(t,r)),M(r)===Ue)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>E(Ue,a)),n.set(d+``,f)):D(f,Ue)}if(l===void 0)(!u||v(e,t)?.writable)&&(l=s(()=>E(void 0,a)),D(l,ci(o)),n.set(t,l));else{u=l.v!==Ue;var p=s(()=>ci(o));D(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&D(h,g+1)}oi(i)}return!0},ownKeys(e){M(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==Ue});for(var[r,a]of n)a.v!==Ue&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ut()}})}function li(e){try{if(typeof e==`object`&&e&&ke in e)return e[ke]}catch{}return e}function ui(e,t){return Object.is(li(e),li(t))}function di(e,t,n=!0){try{e===t!=(li(e)===li(t))&&ot(n?`===`:`!==`)}catch{}return e===t===n}function fi(e,t,n=!0){return e==t!=(li(e)==li(t))&&ot(n?`==`:`!=`),e==t===n}var pi,mi,hi,gi,_i;function vi(){if(pi===void 0){pi=window,mi=document,hi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;gi=v(t,`firstChild`).get,_i=v(t,`nextSibling`).get,ee(e)&&(e[Fe]=void 0,e[Pe]=null,e[Ie]=void 0,e.__e=void 0),ee(n)&&(n[Le]=void 0)}}function yi(e=``){return document.createTextNode(e)}function bi(e){return gi.call(e)}function xi(e){return _i.call(e)}function O(e,t){if(!C)return bi(e);var n=bi(lt);if(n===null)n=lt.appendChild(yi());else if(t&&n.nodeType!==3){var r=yi();return n?.before(r),ut(r),r}return t&&ki(n),ut(n),n}function Si(e,t=!1){if(!C){var n=bi(e);return n instanceof Comment&&n.data===``?xi(n):n}if(t){if(lt?.nodeType!==3){var r=yi();return lt?.before(r),ut(r),r}ki(lt)}return lt}function k(e,t=!1){if(!C)return bi(e);var n=O(e,t);return w(e),n}function A(e,t=1,n=!1){let r=C?lt:e;for(var i;t--;)i=r,r=xi(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=yi();return r===null?i?.after(a):r.before(a),ut(a),a}ki(r)}return ut(r),r}function Ci(e){e.textContent=``}function wi(){return!1}function Ti(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Ei(){return document.createDocumentFragment()}function Di(e=``){return document.createComment(e)}function Oi(e,t,n=``){if(t.startsWith(`xlink:`)){e.setAttributeNS(`http://www.w3.org/1999/xlink`,t,n);return}return e.setAttribute(t,n)}function ki(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Ai(e){var t=ya;if(t===null)return ga.f|=Oe,e;if(!(t.f&32768)&&!(t.f&4))throw e;ji(e,t)}function ji(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function Mi(e){ya===null&&(ga===null&&Nt(e),Mt()),ma&&jt(e)}function Ni(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Pi(e,t){var n=ya;n!==null&&n.f&8192&&(e|=he);var r={ctx:cn,deps:null,nodes:null,f:e|pe|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Er?.register_created_effect(r);var i=r;if(e&4)Mr===null?Ir.ensure().schedule(r):Mr.push(r);else if(t!==null){try{Ra(r)}catch(e){throw ta(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ye))}if(i!==null&&(i.parent=n,n!==null&&Ni(i,n),ga!==null&&ga.f&2&&!(e&64))){var a=ga;(a.effects??=[]).push(i)}return r}function Fi(){return ga!==null&&!_a}function Ii(e){let t=Pi(8,null);return On(t,fe),t.teardown=e,t}function Li(e){Mi(`$effect`);var t=ya.f;if(!ga&&t&32&&cn!==null&&!cn.i){var n=cn;(n.e??=[]).push(e)}else return Ri(e)}function Ri(e){return Pi(4|Ce,e)}function zi(e){return Mi(`$effect.pre`),Pi(8|Ce,e)}function Bi(e){return Pi(be,e)}function Vi(e){Ir.ensure();let t=Pi(64|Se,e);return()=>{ta(t)}}function Hi(e){Ir.ensure();let t=Pi(64|Se,e);return(e={})=>new Promise(n=>{e.outro?ia(t,()=>{ta(t),n(void 0)}):(ta(t),n(void 0))})}function Ui(e){return Pi(4,e)}function Wi(e,t){var n=cn,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=qi(()=>{if(e(),!r.ran){r.ran=!0;var n=ya;try{ba(n.parent),Wa(t)}finally{ba(n)}}})}function Gi(){var e=cn;qi(()=>{for(var t of e.l.$){t.deps();var n=t.effect;n.f&1024&&n.deps!==null&&On(n,me),Ma(n)&&Ra(n),t.ran=!1}})}function Ki(e){return Pi(De|Se,e)}function qi(e,t=0){return Pi(8|t,e)}function j(e,t=[],n=[],r=[]){tr(r,t,n,t=>{Pi(8,()=>{e(...t.map(M))})})}function Ji(e,t=[],n=[],r=[]){tr(r,t,n,t=>{Pi(4,()=>e(...t.map(M)))})}function Yi(e,t=0){return Pi(16|t,e)}function Xi(e,t=0){return Pi(de|t,e)}function Zi(e){return Pi(32|Se,e)}function Qi(e){var t=e.teardown;if(t!==null){let n=ma,r=ga;ha(!0),va(null);try{t.call(null)}catch(t){ji(t,e.parent)}finally{ha(n),va(r)}}}function $i(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&$n(()=>{e.abort(Be)});var r=n.next;n.f&64?n.parent=null:ta(n,t),n=r}}function ea(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||ta(t),t=n}}function ta(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(na(e.nodes.start,e.nodes.end),n=!0),e.f|=ve,$i(e,t&&!n),La(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Qi(e),e.f^=ve,e.f|=ge;var i=e.parent;i!==null&&i.first!==null&&ra(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function na(e,t){for(;e!==null;){var n=e===t?null:xi(e);e.remove(),e=n}}function ra(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ia(e,t,n=!0){var r=[];e.f|=256,aa(e,r,!0);var i=()=>{n&&ta(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function aa(e,t,n){if(!(e.f&8192)){e.f^=he;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);aa(i,t,o?n:!1)}i=a}}}function oa(e){e.f&=-257,sa(e,!0)}function sa(e,t){if(!(e.f&256)&&e.f&8192){e.f^=he,e.f&1024||(On(e,pe),Ir.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);sa(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function ca(e=ya){return(e.f&ge)!==0}function la(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:xi(n);t.append(n),n=i}}var ua=null;function da(e){var t=ua;try{if(ua=new Set,Wa(e),t!==null)for(var n of ua)t.add(n);return ua}finally{ua=t}}function fa(e){for(var t of da(e))ni(t,t.v)}var pa=!1,ma=!1;function ha(e){ma=e}var ga=null,_a=!1;function va(e){ga=e}var ya=null;function ba(e){ya=e}var xa=null;function Sa(e){ga!==null&&(xa??=new Set).add(e)}var Ca=null,wa=0,Ta=null;function Ea(e){Ta=e}var Da=1,Oa=0,ka=Oa;function Aa(e){ka=e}function ja(){return++Da}function Ma(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~Te),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Ma(a)&&Sr(a),a.wv>e.wv)return!0}t&512&&Or===null&&On(e,fe)}return!1}function Na(e,t,n=!0){var r=e.reactions;if(r!==null&&!(xa!==null&&xa.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Na(a,t,!1):t===a&&(n?On(a,pe):a.f&1024&&On(a,me),Vr(a))}}function Pa(e){var t=Ca,n=wa,r=Ta,i=ga,a=xa,o=cn,s=_a,c=ka,l=e.f;Ca=null,wa=0,Ta=null,ga=l&96?null:e,xa=null,ln(e.ctx),_a=!1,ka=++Oa,e.ac!==null&&($n(()=>{e.ac.abort(Be)}),e.ac=null);try{e.f|=Ee;var u=e.fn,d=u();e.f|=_e;var f=Fa(e);if(Sn()&&Ta!==null&&!_a&&f!==null&&!(e.f&6146))for(var p=0;p<Ta.length;p++)Na(Ta[p],e);if(i!==null&&i!==e){if(Oa++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Oa;if(t!==null)for(let e of t)e.rv=Oa;Ta!==null&&(r===null?r=Ta:r.push(...Ta))}return e.f&8388608&&(e.f^=Oe),d}catch(t){return Fa(e),Ai(t)}finally{e.f^=Ee,Ca=t,wa=n,Ta=r,ga=i,xa=a,ln(o),_a=s,ka=c}}function Fa(e){var t=e.deps,n=Er?.is_fork;if(Ca!==null){var r;if(n||La(e,wa),t!==null&&wa>0)for(t.length=wa+Ca.length,r=0;r<Ca.length;r++)t[wa+r]=Ca[r];else e.deps=t=Ca;if(Fi()&&e.f&512)for(r=wa;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&wa<t.length&&(La(e,wa),t.length=wa);return t}function Ia(e,t){let n=t.reactions;if(n!==null){var r=p.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Ca===null||!m.call(Ca,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~Te),a.v!==Ue&&kn(a),a.ac!==null&&$n(()=>{a.ac.abort(Be),a.ac=null,On(a,pe)}),Cr(a),La(a,0)}}function La(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ia(e,n[r])}function Ra(e){var t=e.f;if(!(t&16384)){On(e,fe);var n=ya,r=pa;ya=e,pa=!(t&96);try{t&16777232?ea(e):$i(e),Qi(e);var i=Pa(e);e.teardown=typeof i==`function`?i:null,e.wv=Da}finally{pa=r,ya=n}}}async function za(){await Promise.resolve(),T()}function Ba(){return Ir.ensure().settled()}function M(e){var t=!!(e.f&2);if(ua?.add(e),ga!==null&&!_a&&!(ya!==null&&ya.f&16384)&&(xa===null||!xa.has(e))){var n=ga.deps;if(ga.f&2097152)e.rv<Oa&&(e.rv=Oa,Ca===null&&n!==null&&n[wa]===e?wa++:Ca===null?Ca=[e]:Ca.push(e));else{ga.deps??=[],m.call(ga.deps,e)||ga.deps.push(e);var r=e.reactions;r===null?e.reactions=[ga]:m.call(r,ga)||r.push(ga)}}if(ma&&Xr.has(e))return Xr.get(e);if(t){var i=e;if(ma){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Ha(i))&&(a=xr(i)),Xr.set(i,a),a}var o=!(i.f&512)&&!_a&&ga!==null&&(pa||!!(ga.f&512)),s=(i.f&_e)===0;Ma(i)&&(o&&(i.f|=512),Sr(i)),o&&!s&&(wr(i),Va(i))}if(Or?.has(e))return Or.get(e);if(e.f&8388608)throw e.v;return e.v}function Va(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(wr(t),Va(t))}function Ha(e){if(e.v===Ue)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Xr.has(t)||t.f&2&&Ha(t))return!0;return!1}function Ua(e){return e&&M(e)}function Wa(e){var t=_a;try{return _a=!0,e()}finally{_a=t}}function Ga(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(ke in e)Ka(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&ke in n&&Ka(n)}}}function Ka(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Ka(e[n],t)}catch{}let n=S(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=y(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function qa(){return Symbol(Ye)}var Ja=[`area`,`base`,`br`,`col`,`command`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`];function Ya(e){return Ja.includes(e)||e.toLowerCase()===`!doctype`}function Xa(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var Za=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function Qa(e){return Za.includes(e)}var $a=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),eo={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function to(e){return e=e.toLowerCase(),eo[e]??e}[...$a];var no=[`touchstart`,`touchmove`];function ro(e){return no.includes(e)}var io=[`textarea`,`script`,`style`,`title`];function ao(e){return io.includes(e)}function oo(e){return e?.replace(/\//g,`/`)}function so(e,t,n,r){return e!==t&&typeof t==`object`&&ke in t&&Xe(n,oo(r)),e}function co(e,t,n,r,i){return so(n===`=`?e[t]=r:n===`&&=`?e[t]&&=r():n===`||=`?e[t]||=r():n===`??=`?e[t]??=r():null,Wa(()=>e[t]),t,i)}async function lo(e,t,n,r,i){return so(n===`=`?e[t]=await r:n===`&&=`?e[t]&&=await r():n===`||=`?e[t]||=await r():n===`??=`?e[t]??=await r():null,Wa(()=>e[t]),t,i)}var uo=new Map;function fo(e){var t=uo.get(e);if(t){for(let e of t)e.remove();uo.delete(e)}}function po(e,t,n){return(...r)=>{let i=e(...r);return ho(C?i:i.nodeType===11?i.firstChild:i,t,n),i}}function mo(e,t,n){e.__svelte_meta={parent:un,loc:{file:t,line:n[0],column:n[1]}},n[2]&&ho(e.firstChild,t,n[2])}function ho(e,t,n){for(var r=0,i=0;e&&r<n.length;){if(C&&e.nodeType===8){var a=e;a.data[0]===`[`?i+=1:a.data[0]===`]`&&--i}i===0&&e.nodeType===1&&mo(e,t,n[r++]),e=e.nextSibling}}var go=Symbol(`events`),_o=new Set,vo=new Set;function yo(e){if(!C)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function bo(e,t,n,r={}){function i(e){if(r.capture||To.call(t,e),!e.cancelBubble)return $n(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Tn(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function xo(e,t,n,r,i){var a={capture:r,passive:i},o=bo(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ii(()=>{t.removeEventListener(e,o,a)})}function N(e,t,n){(t[go]??={})[e]=n}function So(e){for(var t=0;t<e.length;t++)_o.add(e[t]);for(var n of vo)n(e)}var Co=null,wo=!1;function To(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Co=e,wo||(wo=!0,setTimeout(()=>{wo=!1,Co=null}));var o=0,s=Co===e&&e[go];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[go]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){_(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=ga,d=ya;va(null),ba(null);try{for(var f,p=[];a!==null&&a!==t;){try{var m=a[go]?.[r];m!=null&&(!a.disabled||e.target===a)&&m.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[go]=t,delete e.currentTarget,va(u),ba(d)}}}function Eo(e,t,n,r,i,a=!1,o=!1){let s,c;try{s=e()}catch(e){c=e}if(typeof s!=`function`&&(a||s!=null||c)){let e=r?.[We],t=i?` at ${e}:${i[0]}:${i[1]}`:` in ${e}`,a=n[0]?.eventPhase<Event.BUBBLING_PHASE?`capture`:``;if(et(`\`${n[0]?.type+a}\` handler${t}`,o?"remove the trailing `()`":"add a leading `() =>`"),c)throw c}s?.apply(t,n)}var Do=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Oo(e){return Do?.createHTML(e)??e}function ko(e){var t=Ti(`template`);return t.innerHTML=Oo(e.replaceAll(`<!>`,`<!---->`)),t.content}var Ao=Ve?`template`:`TEMPLATE`,jo=Ve?`script`:`SCRIPT`;function Mo(e,t){var n=ya;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function P(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(C)return Mo(lt,null),lt;i===void 0&&(i=ko(a?e:`<!>`+e),n||(i=bi(i)));var t=r||hi?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=bi(t),s=t.lastChild;Mo(o,s)}else Mo(t,t);return t}}function No(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(C)return Mo(lt,null),lt;if(!o){var e=bi(ko(a));if(i)for(o=document.createDocumentFragment();bi(e);)o.appendChild(bi(e));else o=bi(e)}var t=o.cloneNode(!0);if(i){var n=bi(t),r=t.lastChild;Mo(n,r)}else Mo(t,t);return t}}function Po(e,t){return No(e,t,`svg`)}function Fo(e,t){return No(e,t,`math`)}function Io(e,t){var n=Ei();for(var r of e){if(typeof r==`string`){n.append(yi(r));continue}if(r===void 0||r[0][0]===`/`){n.append(Di(r?r[0].slice(3):``));continue}let[e,o,...s]=r,c=e===`svg`?qe:e===`math`?Je:t;var i=Ti(e,c,o?.is);for(var a in o)Oi(i,a,o[a]);s.length>0&&(i.nodeName===Ao?i.content:i).append(Io(s,i.nodeName===`foreignObject`?void 0:c)),n.append(i)}return n}function Lo(e,t){var n=!!(t&1),r=!!(t&2),i;return()=>{if(C)return Mo(lt,null),lt;i===void 0&&(i=Io(e,t&4?qe:t&8?Je:void 0),n||(i=bi(i)));var a=r||hi?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=bi(a),s=a.lastChild;Mo(o,s)}else Mo(a,a);return a}}function Ro(e){return()=>zo(e())}function zo(e){if(C)return e;let t=e.nodeType===11,n=e.nodeName===jo?[e]:e.querySelectorAll(`script`),r=ya;for(let a of n){let n=Ti(`script`);for(var i of a.attributes)n.setAttribute(i.name,i.value);n.textContent=a.textContent,(t?e.firstChild===a:e===a)&&(r.nodes.start=n),(t?e.lastChild===a:e===a)&&(r.nodes.end=n),a.replaceWith(n)}return e}function Bo(e=``){if(!C){var t=yi(e+``);return Mo(t,t),t}var n=lt;return n.nodeType===3?ki(n):(n.before(n=yi()),ut(n)),Mo(n,n),n}function Vo(){if(C)return Mo(lt,null),lt;var e=document.createDocumentFragment(),t=document.createComment(``),n=yi();return e.append(t,n),Mo(t,n),e}function F(e,t){if(C){var n=ya;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=lt),dt();return}e!==null&&e.before(t)}function Ho(){if(C&<&<.nodeType===8&<.textContent?.startsWith(`$`)){let e=lt.textContent.substring(1);return dt(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function Uo(e){let t=0,n=$r(0),r;return()=>{Fi()&&(M(n),qi(()=>(t===0&&(r=Wa(()=>e(()=>oi(n)))),t+=1,()=>{Tn(()=>{--t,t===0&&(r?.(),r=void 0,oi(n))})})))}}var Wo=ye|Se;function Go(e,t,n,r){new Ko(e,t,n,r)}var Ko=class{parent;is_pending=!1;transform_error;#e;#t=C?lt:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Uo(()=>(this.#m=$r(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=ya;t.b=this,t.f|=128,n(e)},this.parent=ya.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Yi(()=>{if(C){let e=this.#t;dt();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},Wo),C&&(this.#e=lt)}#g(){try{this.#a=Zi(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Tn(r),t&&(this.#s=Zi(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){st();return}t=!0,n&&Gt(),this.#s!==null&&ia(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){ji(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Zi(()=>e(this.#e)),Tn(()=>{var e=this.#c=document.createDocumentFragment(),t=yi(),n=!1;if(e.append(t),this.#a=this.#S(()=>{try{return Zi(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){ji(e,this.#i.parent)}return null}}),this.#a===null){this.#c=null,n&&this.#x(Er);return}this.#u===0&&(this.#e.before(e),this.#c=null,ia(this.#o,()=>{this.#o=null}),this.#x(Er))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Zi(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();la(this.#a,e);let t=this.#n.pending;this.#o=Zi(()=>t(this.#e))}else this.#x(Er)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){jn(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=ya,n=ga,r=cn;ba(this.#i),va(this.#i),ln(this.#i.ctx);try{return Ir.ensure(),e()}finally{ba(t),va(n),ln(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&ia(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Tn(()=>{this.#d=!1,this.#m&&ni(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),M(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;Er?.is_fork?(this.#a&&Er.skip_effect(this.#a),this.#o&&Er.skip_effect(this.#o),this.#s&&Er.skip_effect(this.#s),Er.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(ta(this.#a),null),this.#o&&=(ta(this.#o),null),this.#s&&=(ta(this.#s),null),C&&(ut(this.#t),pt(),ut(mt()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return Zi(()=>{var r=ya;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return ji(e,this.#i.parent),null}}))};Tn(()=>{var t;try{t=this.transform_error(e)}catch(e){ji(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>ji(e,this.#i&&this.#i.parent)):n(t)})}};function qo(){ya===null&&Pt();var e=ya.b;return e===null?0:e.get_effect_pending()}var Jo=!0;function Yo(e){Jo=e}function I(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Le]??=e.nodeValue)&&(e[Le]=n,e.nodeValue=`${n}`)}function Xo(e,t){return $o(e,t)}function Zo(e,t){vi(),t.intro=t.intro??!1;let n=t.target,r=C,i=lt;try{for(var a=bi(n);a&&(a.nodeType!==8||a.data!==`[`);)a=xi(a);if(!a)throw He;ct(!0),ut(a);let r=$o(e,{...t,anchor:a});return ct(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
6
6
|
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==He&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&zt(),vi(),Ci(n),ct(!1),Xo(e,t)}finally{ct(r),ut(i)}}var Qo=new Map;function $o(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){vi();var c=void 0,l=Hi(()=>{var l=n??t.appendChild(yi());Go(l,{pending:()=>{}},t=>{yn({});var n=cn;if(a&&(n.c=a),i&&(r.$$events=i),C&&Mo(t,null),Jo=o,c=e(t,r)||xn(),Jo=!0,C&&(ya.nodes.end=lt,lt===null||lt.nodeType!==8||lt.data!==`]`))throw nt(),He;bn()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=ro(r);for(let e of[t,document]){var a=Qo.get(e);a===void 0&&(a=new Map,Qo.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,To,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(h(_o)),vo.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Qo.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,To),r.delete(e),r.size===0&&Qo.delete(n)):r.set(e,i)}vo.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return es.set(c,l),c}var es=new WeakMap;function ts(e,t){let n=es.get(e);return n?(es.delete(e),n(t)):Promise.resolve()}function ns(e){let t=$r(e);function n(e,n){let r={},i={},a,o=!1,s=e;return Yi(()=>{if(r!==(r=M(t))){if(a){for(var e in i)delete i[e];ta(a)}a=Zi(()=>{s=s[ze]??s,o&&Yo(!1);var e=new.target?new r(s,n):r(s,n);e&&Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)),o&&Yo(!0)});var c=a.nodes;if(c){var l=ya;l.nodes?(l.nodes.start=c.start,l.nodes.end=c.end):l.nodes={start:c.start,end:c.end,a:null,t:null}}}},ye),o=!0,C&&(s=lt),i}return n[We]=e[We],n[Ge]={fn:e,current:t,update:e=>{D(n[Ge].current,e[Ge].fn),e[Ge].current=n[Ge].current}},n}function rs(e){let t=cn?.function,n=cn?.p?.function;return{mutation:(r,i,a,o,s)=>{let c=i[0];if(is(e,c)||!n)return a;let l=e;for(let e=0;e<i.length-1;e++)if(l=l[i[e]],!l?.[ke])return a;return it(c,oo(`${t[We]}:${o}:${s}`),r,n[We]),a},binding:(r,i,a)=>{!is(e,r)&&n&&a()?.[ke]&&rt(t[We],r,i[We],n[We])}}}function is(e,t){let n=ke in e||je in e;return!!v(e,t)?.set||n&&t in e||!(t in e)}function as(e){e&&kt(e[We]??`a component`,e.name)}function os(){let e=cn?.function;function t(t){Ot(t,e[We])}return{$destroy:()=>t(`$destroy()`),$on:()=>t(`$on(...)`),$set:()=>t(`$set(...)`)}}function ss(e,t,n=!1){Mi(`$inspect`);let r=!0,i=Ue;Bi(()=>{i=Ue;try{var a=e()}catch(e){i=e;return}var o=Jt(a,!0,!0);Wa(()=>{if(n){if(t(...o),!r){let e=nn(`$inspect(...)`);e&&(console.groupCollapsed(`stack trace`),console.log(e),console.groupEnd())}}else t(r?`init`:`update`,...o)}),r=!1}),qi(()=>{try{e()}catch{}i!==Ue&&(console.error(i),i=Ue)})}function cs(e,t=[],n=[],r){var i=C,a=null;if(i&&(dt(),a=mt(!1),Mo(e,a)),n.length===0&&t.every(e=>e.settled)){r(e),i&&ut(a);return}if(i){var o=lt;ut(a)}tr(t,[],n,t=>{i&&(ct(!0),ut(o));try{for(let e of t)M(e);r(e,...t)}finally{i&&ct(!1)}})}function ls(e,...t){(typeof e!=`object`||!(e instanceof Node))&&xt();for(let e of t)typeof e!=`function`&&xt()}var us=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)oa(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(oa(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(ta(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();la(r,t),t.append(yi()),this.#n.set(e,{effect:r,fragment:t})}else ta(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),ia(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(ta(n.effect),this.#n.delete(e))};ensure(e,t){var n=Er,r=wi();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=yi();i.append(a),this.#n.set(e,{effect:Zi(()=>t(a)),fragment:i})}else this.#t.set(e,Zi(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=lt),this.#a(n)}},ds=0,fs=1,ps=2;function ms(e,t,n,r,i){C&&dt();var a=Sn(),o=Ue,s=a?$r(o):ei(o,!1,!1),c=a?$r(o):ei(o,!1,!1),l=new us(e);Yi(()=>{var a=Er,o=t(),u=!1;let d=C&&ie(o)===(e.data===`[!`);if(d&&(ut(mt()),ct(!1)),ie(o)){var f=rr(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Er===a&&a.deactivate(),Ir.ensure();try{e()}finally{lr(!1),Ar||T()}}};o.then(t=>{e(()=>{ni(s,t),l.ensure(fs,r&&(e=>r(e,s)))})},t=>{e(()=>{if(ni(c,t),l.ensure(ps,i&&(e=>i(e,c))),!i)throw c.v})}),C?l.ensure(ds,n):Tn(()=>{p||e(()=>{l.ensure(ds,n)})})}else ni(s,o),l.ensure(fs,r&&(e=>r(e,s)));return d&&ct(!0),()=>{u=!0}})}function L(e,t,n=!1){var r;C&&(r=lt,dt());var i=new us(e),a=n?ye:0;function o(e,t){if(C){var n=ht(r);if(e!==parseInt(n.substring(1))){var a=mt();ut(a),i.anchor=a,ct(!1),i.ensure(e,t),ct(!0);return}}i.ensure(e,t)}Yi(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var hs=Symbol(`NaN`);function gs(e,t,n){C&&dt();var r=new us(e),i=!Sn();Yi(()=>{var e=t();e!==e&&(e=hs),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function _s(e,t){C&&ut(bi(e)),qi(()=>{var n=t();for(var r in n){var i=n[r];i==null||i===``?e.style.removeProperty(r):e.style.setProperty(r,i)}})}function vs(e,t){return t}function ys(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];ia(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;bs(e,h(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null&&e.pending.size===0;if(c){var l=n,u=l.parentNode;Ci(u),u.append(l),e.items.clear()}bs(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function bs(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=we,la(a,document.createDocumentFragment())):ta(t[i],n)}}var xs;function Ss(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=C?ut(bi(c)):c.appendChild(yi())}C&&dt();var l=null,u=yr(()=>{var e=n();return f(e)?e:e==null?[]:h(e)}),d,p=new Map,m=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=l,ws(v,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=we,Es(l,null,o)):oa(l):ia(l,()=>{l=null})))}function _(e){v.pending.delete(e)}var v={effect:Yi(()=>{d=M(u);var e=d.length;let c=!1;C&&ht(o)===`[!`!=(e===0)&&(o=mt(),ut(o),ct(!1),c=!0);for(var f=new Set,h=Er,v=wi(),y=0;y<e;y+=1){C&<.nodeType===8&<.data===`]`&&(o=lt,c=!0,ct(!1));var b=d[y],x=r(b,y),S=m?null:s.get(x);S?(S.v&&ni(S.v,b),S.i&&ni(S.i,y),v&&h.unskip_effect(S.e)):(S=Ts(s,m?o:xs??=yi(),b,x,y,i,t,n),m||(S.e.f|=we),s.set(x,S)),f.add(x)}if(e===0&&a&&!l&&(m?l=Zi(()=>a(o)):(l=Zi(()=>a(xs??=yi())),l.f|=we)),e>f.size&&At(``,``,``),C&&e>0&&ut(mt()),!m){if(p.set(h,f),v){for(let[e,t]of s)f.has(e)||h.skip_effect(t.e);h.oncommit(g),h.ondiscard(_)}else g(h)}c&&ct(!0),M(u)}),flags:t,items:s,pending:p,outrogroups:null,fallback:l};m=!1,C&&(o=lt)}function Cs(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function ws(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=Cs(e.effect.first),l,u=null,d,f=[],p=[],m,g,_,v;if(a)for(v=0;v<o;v+=1)m=t[v],g=i(m,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(d??=new Set).add(_));for(v=0;v<o;v+=1){if(m=t[v],g=i(m,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(oa(_),a&&(_.nodes?.a?.unfix(),(d??=new Set).delete(_))),_.f&33554432){if(_.f^=we,_===c)Es(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Ds(e,u,_),Ds(e,_,y),Es(_,y,n),u=_,f=[],p=[],c=Cs(u.next);continue}}if(_!==c){if(l!==void 0&&l.has(_)){if(f.length<p.length){var b=p[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)Es(f[x],b,n);for(x=0;x<p.length;x+=1)l.delete(p[x]);Ds(e,S.prev,ee.next),Ds(e,u,S),Ds(e,ee,b),c=b,u=ee,--v,f=[],p=[]}else l.delete(_),Es(_,c,n),Ds(e,_.prev,_.next),Ds(e,_,u===null?e.effect.first:u.next),Ds(e,u,_),u=_;continue}for(f=[],p=[];c!==null&&c!==_;)(l??=new Set).add(c),p.push(c),c=Cs(c.next);if(c===null)continue}_.f&33554432||f.push(_),u=_,c=Cs(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(bs(e,h(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var te=[];if(l!==void 0)for(_ of l)_.f&8192||te.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&te.push(c),c=Cs(c.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}ys(e,te,re)}}a&&Tn(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function Ts(e,t,n,r,i,a,o,s){var c=o&1?o&16?$r(n):ei(n,!1,!1):null,l=o&2?$r(i):null;return{v:c,i:l,e:Zi(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Es(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=xi(r);if(a.before(r),r===i)return;r=o}}function Ds(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Os(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;C&&(o=ut(bi(c)))}j(()=>{var e=ya;if(s===(s=t()??``)){C&&dt();return}if(n&&!C){e.nodes=null,c.innerHTML=s,s!==``&&Mo(bi(c),c.lastChild);return}if(e.nodes!==null&&(na(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(C){for(var a=lt.data,l=dt(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=xi(l);if(l===null)throw nt(),He;Mo(lt,u),o=ut(l);return}var d=Ti(r?`svg`:i?`math`:`template`,r?qe:i?Je:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Mo(bi(f),f.lastChild),r||i)for(;bi(f);)o.before(bi(f));else o.before(f)}})}function ks(e,t,n,r,i){if(C&&dt(),t.$$host?.$$shadowRoot){let t=Ti(`slot`);if(n!=="default"&&(t.name=n),F(e,t),i!==null){let e=yi();t.append(e),i(e)}return}var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n==="default"?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function As(e){let t={};e.children&&(t.default=!0);for(let n in e.$$slots)t[n]=!0;return t}function js(e){let t=e();t&&Ya(t)&&Kt(t)}function Ms(e){let t=e();t&&typeof t!=`string`&&Et()}function Ns(e,t){e!=null&&typeof e.subscribe!=`function`&&Tt(t)}function Ps(e){return e.toString=()=>(wt(),``),e}function Fs(e,t,...n){var r=new us(e);Yi(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ye)}function Is(e,t){let n=(n,...r)=>{var i=fn;pn(e);try{return t(n,...r)}finally{pn(i)}};return Ps(n),n}function Ls(e){return(t,...n)=>{var r=e(...n),i;C?(i=lt,dt()):(i=bi(ko(r.render().trim())),t.before(i));let a=r.setup?.(i);Mo(i,i),typeof a==`function`&&Ii(a)}}function Rs(e,t,n){var r;C&&(r=lt,dt());var i=new us(e);Yi(()=>{var e=t()??null;if(C&&ht(r)===`[`!=(e!==null)){var a=mt();ut(a),i.anchor=a,ct(!1),i.ensure(e,e&&(t=>n(t,e))),ct(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ye)}var zs=()=>performance.now(),Bs={tick:e=>requestAnimationFrame(e),now:()=>zs(),tasks:new Set};function Vs(){let e=Bs.now();Bs.tasks.forEach(t=>{t.c(e)||(Bs.tasks.delete(t),t.f())}),Bs.tasks.size!==0&&Bs.tick(Vs)}function Hs(e){let t;return Bs.tasks.size===0&&Bs.tick(Vs),{promise:new Promise(n=>{Bs.tasks.add(t={c:e,f:n})}),abort(){Bs.tasks.delete(t)}}}function Us(e,t){$n(()=>{e.dispatchEvent(new CustomEvent(t))})}function Ws(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function Gs(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Ws(n.trim());t[i]=r.trim()}return t}var Ks=e=>e,qs=null;function Js(e){qs=e}function Ys(e,t,n){var r=(qs??ya).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Zs(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Xs(e,t,n,r){var i=!!(e&1),a=!!(e&2),o=i&&a,s=!!(e&4),c=o?`both`:i?`in`:`out`,l,u=t.inert,d=t.style.overflow,f,p;function m(){return $n(()=>l??=n()(t,r?.()??{},{direction:c}))}var h={is_global:s,in(){if(t.inert=u,!i){p?.abort(),p?.reset?.();return}a||f?.abort(),f=Zs(t,m(),p,1,()=>{Us(t,`introstart`)},()=>{Us(t,`introend`),f?.abort(),f=l=void 0,t.style.overflow=d})},out(e){if(!a){e?.(),l=void 0;return}t.inert=!0,p=Zs(t,m(),f,0,()=>{Us(t,`outrostart`)},()=>{Us(t,`outroend`),e?.()})},stop:()=>{f?.abort(),p?.abort()}},g=ya;if((g.nodes.t??=[]).push(h),i&&Jo){var _=s;if(!_){for(var v=g.parent;v&&v.f&65536;)for(;(v=v.parent)&&!(v.f&16););_=!v||!!(v.f&32768)}_&&Ui(()=>{Wa(()=>h.in())})}}function Zs(e,t,n,r,i,a){var o=r===1,s=!1;if(ne(t)){var c;return Tn(()=>{s||(c=Zs(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{s=!0,c?.abort()},deactivate:()=>c.deactivate(),reset:()=>c.reset(),t:()=>c.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:re,deactivate:re,reset:re,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=Ks}=t;var p,m=()=>1-r;return Tn(()=>{if(!s){var c=[];if(o&&n===void 0&&(d&&d(0,1),u)){var h=Gs(u(0,1));c.push(h,h)}p=e.animate(c,{duration:l,fill:`forwards`}),p.onfinish=()=>{p.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var h=!1;if(u)for(var g=Math.ceil(c/(1e3/60)),_=0;_<=g;_+=1){var v=o+s*f(_/g),y=Gs(u(v,1-v));l.push(y),h||=y.overflow===`hidden`}h&&(e.style.overflow=`hidden`),m=()=>{var e=p.currentTime;return o+s*f(e/c)},d&&Hs(()=>{if(p.playState!==`running`)return!1;var e=m();return d(e,1-e),!0})}p=e.animate(l,{duration:c,fill:`forwards`}),p.onfinish=()=>{m=()=>r,d?.(r,1-r),a()}}}}),{abort:()=>{s=!0,p&&(p.cancel(),p.effect=null,p.onfinish=re)},deactivate:()=>{a=re},reset:()=>{r===0&&d?.(1,0)},t:()=>m()}}function Qs(e,t,n,r,i,a){let o=C;C&&dt();var s=null;C&<.nodeType===1&&(s=lt,dt());var c=C?lt:e,l=ya,u=new us(c,!1);Yi(()=>{let e=t()||null;var a=i?i():n||e===`svg`?qe:void 0;if(e===null){u.ensure(null,null),Yo(!0);return}return u.ensure(e,t=>{if(e){if(s=C?s:Ti(e,a),Mo(s,s),r){var n=null;C&&ao(e)&&s.append(n=document.createComment(``));var i=C?bi(s):s.appendChild(yi());C&&(i===null?ct(!1):ut(i)),Js(l),r(s,i),n?.remove(),Js(null)}ya.nodes.end=s,t.before(s)}C&&ut(t)}),Yo(!0),()=>{e&&Yo(!1)}},ye),Ii(()=>{Yo(!0)}),o&&(ct(!0),ut(c))}function $s(e,t){let n=null,r=C;var i;if(C){n=lt;for(var a=bi(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=xi(a);if(a===null)ct(!1);else{var o=xi(a);a.remove(),ut(o)}}C||(i=document.head.appendChild(yi()));try{Yi(()=>{var e=Zi(()=>t(i));e.f|=xe,C||(e.nodes===null?e.nodes={start:i,end:i,a:null,t:null}:e.nodes.end=i)})}finally{r&&(ct(!0),ut(n))}}function ec(e,t){Ui(()=>{e=ya?.parent?.nodes?.start??e;var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Ti(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function tc(e,t,n){Ui(()=>{var r=Wa(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};qi(()=>{var e=n();Ga(e),i&&_t(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function nc(e,t){var n=void 0,r;Xi(()=>{n!==(n=t())&&(r&&=(ta(r),null),n&&(r=Zi(()=>{Ui(()=>n(e))})))})}var rc=/[&"<]/g,ic=/[&<]/g;function ac(e,t){let n=String(e??``),r=t?rc:ic;r.lastIndex=0;let i=``,a=0;for(;r.test(n);){let e=r.lastIndex-1,t=n[e];i+=n.substring(a,e)+(t===`&`?`&`:t===`"`?`"`:`<`),a=e+1}return i+n.substring(a)}function oc(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=oc(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function sc(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=oc(e))&&(r&&(r+=` `),r+=t);return r}var cc={translate:new Map([[!0,`yes`],[!1,`no`]])};function lc(e,t,n=!1){if(e===`hidden`&&t!==`until-found`&&(n=!0),t==null||n&&!t&&t!==``)return``;let r=te.call(cc,e)&&cc[e].get(t)||t;return` ${e}${n?`=""`:`="${ac(r,!0)}"`}`}function uc(e){return typeof e==`object`?sc(e):e??``}var dc=[...`
|
|
7
|
-
\r\f\xA0\v`];function fc(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||dc.includes(r[o-1]))&&(s===r.length||dc.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function pc(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function mc(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function hc(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(mc)),i&&c.push(...Object.keys(i).map(mc));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=mc(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=pc(r)),i&&(n+=pc(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function gc(e,t,n,r,i,a){var o=e[Fe];if(C||o!==n||o===void 0){var s=fc(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Fe]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function _c(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function vc(e,t,n,r){var i=e[Ie];if(C||i!==t){var a=hc(t,r);(!C||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Ie]=t}else r&&(Array.isArray(r)?(_c(e,n?.[0],r[0]),_c(e,n?.[1],r[1],`important`)):_c(e,n,r));return r}function yc(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function bc(e,t){var n=!(`__defaultValue`in e);!n&&e.__defaultValue===t||(e.__defaultValue=t,xc(e,!n||`__value`in e))}function xc(e,t){var n=e.__defaultValue,r=e.multiple,i=r?n??[]:null;if(!(r&&!f(i))){var a=e.selectedIndex,o=t&&r?new Set(e.selectedOptions):null;for(var s of e.options){var c=Tc(s);yc(s,r?i.includes(c):ui(c,n))}if(t){if(o!==null)for(s of e.options){var l=o.has(s);s.selected!==l&&(s.selected=l)}else e.selectedIndex!==a&&(e.selectedIndex=a)}}}function Sc(e,t,n=!1){if(e.multiple){if(t==null)return;if(!f(t))return at();for(var r of e.options)r.selected=t.includes(Tc(r));return}for(r of e.options)if(ui(Tc(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Cc(e){var t=new MutationObserver(t=>{t.every(Ec)||(`__defaultValue`in e&&xc(e,!1),`__value`in e&&Sc(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Ii(()=>{t.disconnect()})}function wc(e,t,n=t){var r=new WeakSet,i=!0;er(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),Tc);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Tc(o)}n(a),e.__value=a,Er!==null&&r.add(Er)}),Ui(()=>{var a=t();if(e===document.activeElement){var o=Er;if(r.has(o))return}if(Sc(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Tc(s),n(a))}e.__value=a,i=!1})}function Tc(e){return`__value`in e?e.__value:e.value}function Ec(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var Dc=Symbol(`class`),Oc=Symbol(`style`),kc=Symbol(`is custom element`),Ac=Symbol(`is html`),jc=Ve?`link`:`LINK`,Mc=Ve?`input`:`INPUT`,Nc=Ve?`option`:`OPTION`,Pc=Ve?`select`:`SELECT`,Fc=Ve?`progress`:`PROGRESS`;function Ic(e){if(C){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;R(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;R(e,`checked`,null),e.checked=r}}};e[Re]=n,Tn(n),Zn()}}function Lc(e,t){var n=Gc(e);n.value!==(n.value=t??void 0)&&(e.value!==t||t===0&&e.nodeName===Fc)&&(e.value=t??``)}function Rc(e,t){var n=Gc(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function zc(e,t){let n=e.checked;e.defaultChecked=t,e.checked=n}function Bc(e,t){let n=e.value;e.defaultValue=t,e.value=n}function R(e,t,n,r){var i=Gc(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===jc)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&qc(e).has(t)?e[t]=n:e.setAttribute(t,n))}function Vc(e,t,n){e.setAttributeNS(`http://www.w3.org/1999/xlink`,t,n)}function Hc(e,t,n){var r=ga,i=ya;let a=C;C&&ct(!1),va(null),ba(null);try{t!==`style`&&(Kc.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?qc(e).has(t):n&&typeof n==`object`)?e[t]=n:R(e,t,n==null?n:String(n))}finally{va(r),ba(i),a&&ct(!0)}}function Uc(e,t,n,r,i=!1,a=!1){C&&i&&e.nodeName===Mc&&(`defaultValue`in n||`defaultChecked`in n||Ic(e));var o=Gc(e),s=o[kc],c=!o[Ac];let l=C&&s;l&&ct(!1);var u=t||{},d=e.nodeName===Nc,f=e.nodeName===Pc;for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=uc(n.class):(r||n[Dc])&&(n.class=null),n[Oc]&&(n.style??=null);var m=qc(e);if(e.nodeName===Mc&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==u.type||h===void 0&&e.hasAttribute(`type`))&&(u.type=h,R(e,`type`,h,a))}for(let i in n){let l=n[i];if(d&&i===`value`&&l==null){e.value=e.__value=``,u[i]=l;continue}if(i===`class`){gc(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,l,r,t?.[Dc],n[Dc]),u[i]=l,u[Dc]=n[Dc];continue}if(i===`style`){vc(e,l,t?.[Oc],n[Oc]),u[i]=l,u[Oc]=n[Oc];continue}var g=u[i];if(!(l===g&&!(l===void 0&&e.hasAttribute(i)))){u[i]=l;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=Qa(r);if(Xa(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(l!=null)continue;e.removeEventListener(r,u[n],t),u[n]=null}if(v)N(r,e,l),So([r]);else if(l!=null){function y(e){u[i].call(this,e)}u[n]=bo(r,e,y,t)}}else if(i===`style`)R(e,i,l);else if(i===`autofocus`)Jn(e,!!l);else if(!s&&(i===`__value`||i===`value`&&l!=null))e.value=e.__value=l;else if(i===`selected`&&d)yc(e,l);else{var b=i;c||(b=to(b));var x=b===`defaultValue`||b===`defaultChecked`;if(f&&b===`defaultValue`)continue;if(l==null&&!s&&!x){if(o[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else x||(s||typeof l!=`string`)&&m.has(b)?(e[b]=l,b in o&&(o[b]=Ue)):typeof l!=`function`&&R(e,b,l,a)}}}}return l&&ct(!0),u}function Wc(e,t,n=[],r=[],i=[],a,o=!1,s=!1){tr(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Pc,l=!1;if(Xi(()=>{var u=t(...n.map(M)),d=Uc(e,r,u,a,o,s);if(l&&c){var f=e;`defaultValue`in u&&bc(f,u.defaultValue),`value`in u&&Sc(f,u.value)}for(let e of Object.getOwnPropertySymbols(i))u[e]||ta(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];t.description===`@attach`&&(!r||p!==r[t])&&(i[t]&&ta(i[t]),i[t]=Zi(()=>nc(e,()=>p))),d[t]=p}r=d}),c){var u=e;Ui(()=>{var e=r;`defaultValue`in e&&bc(u,e.defaultValue),Sc(u,e.value,!0),Cc(u)})}l=!0})}function Gc(e){return e[Pe]??={[kc]:e.nodeName.includes(`-`),[Ac]:e.namespaceURI===Ke}}var Kc=new Map;function qc(e){var t=e.getAttribute(`is`)||e.nodeName,n=Kc.get(t);if(n)return n;Kc.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=y(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=S(i)}return n}var Jc=null;function Yc(){if(Jc===null){var e=Ti(`select`);e.innerHTML=Oo(`<option><span>t</span></option>`),Jc=e.firstChild?.firstChild?.nodeType===1}return Jc}function Xc(e,t){Yc()&&nc(e,()=>()=>{let n=e.closest(`select`);if(!n)return;let r=new MutationObserver(n=>{var r=!1;for(let t of n){if(t.target===e)return;r||=!!t.target.parentElement?.closest(`option`)?.selected}r&&(e.replaceWith(e=e.cloneNode(!0)),t(e))});return r.observe(n,{childList:!0,characterData:!0,subtree:!0}),()=>{r.disconnect()}})}function Zc(e,t){var n=C;Yc()||(ct(!1),e.textContent=``,e.append(Di(``)));try{t()}finally{n&&(C?w(e):(ct(!0),ut(e)))}}function Qc(e){Qn(document,[`focusin`,`focusout`],t=>{t&&t.type===`focusout`&&t.relatedTarget||e(document.activeElement)})}function $c(e,t,n=t){var r=new WeakSet;er(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=il(e)?al(a):a,n(a),Er!==null&&r.add(Er),await za(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(C&&e.defaultValue!==e.value||Wa(t)==null&&e.value)&&(n(il(e)?al(e.value):e.value),Er!==null&&r.add(Er)),qi(()=>{var n=t();if(e===document.activeElement){var i=Er;if(r.has(i))return}il(e)&&n===al(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}var el=new Set;function tl(e,t,n,r,i=r){var a=n.getAttribute(`type`)===`checkbox`,o=e;let s=!1;if(t!==null)for(var c of t)o=o[c]??=[];o.push(n),er(n,`change`,()=>{var e=n.__value;a&&(e=rl(o,e,n.checked)),i(e)},()=>i(a?[]:null)),qi(()=>{var e=r();if(C&&n.defaultChecked!==n.checked){s=!0;return}a?(e||=[],n.checked=e.includes(n.__value)):n.checked=ui(n.__value,e)}),Ii(()=>{var e=o.indexOf(n);e!==-1&&o.splice(e,1)}),el.has(o)||(el.add(o),Tn(()=>{o.sort((e,t)=>e.compareDocumentPosition(t)===4?-1:1),el.delete(o)})),Tn(()=>{if(s){var e=a?rl(o,e,n.checked):o.find(e=>e.checked)?.__value;i(e)}})}function nl(e,t,n=t){er(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(C&&e.defaultChecked!==e.checked||Wa(t)==null)&&n(e.checked),qi(()=>{e.checked=!!t()})}function rl(e,t,n){for(var r=new Set,i=0;i<e.length;i+=1)e[i].checked&&r.add(e[i].__value);return n||r.delete(t),Array.from(r)}function il(e){var t=e.type;return t===`number`||t===`range`}function al(e){return e===``?null:+e}function ol(e,t,n=t){er(e,`change`,()=>{n(e.files)}),C&&e.files&&n(e.files),qi(()=>{e.files=t()})}function sl(e){for(var t=[],n=0;n<e.length;n+=1)t.push({start:e.start(n),end:e.end(n)});return t}function cl(e,t,n=t){var r,i,a=()=>{cancelAnimationFrame(r),e.paused||(r=requestAnimationFrame(a));var t=e.currentTime;i!==t&&n(i=t)};r=requestAnimationFrame(a),e.addEventListener(`timeupdate`,a),qi(()=>{var n=Number(t());i!==n&&!isNaN(n)&&(e.currentTime=i=n)}),Ii(()=>{cancelAnimationFrame(r),e.removeEventListener(`timeupdate`,a)})}function ll(e,t){var n;Qn(e,[`loadedmetadata`,`progress`,`timeupdate`,`seeking`],()=>{var r=e.buffered;(!n||n.length!==r.length||n.some((e,t)=>r.start(t)!==e.start||r.end(t)!==e.end))&&(n=sl(r),t(n))})}function ul(e,t){Qn(e,[`loadedmetadata`],()=>t(sl(e.seekable)))}function dl(e,t){Qn(e,[`timeupdate`],()=>t(sl(e.played)))}function fl(e,t){Qn(e,[`seeking`,`seeked`],()=>t(e.seeking))}function pl(e,t){Qn(e,[`timeupdate`,`ended`],()=>t(e.ended))}function ml(e,t){Qn(e,[`loadedmetadata`,`loadeddata`,`canplay`,`canplaythrough`,`playing`,`waiting`,`emptied`],()=>t(e.readyState))}function hl(e,t,n=t){Ui(()=>{var n=Number(t());n!==e.playbackRate&&!isNaN(n)&&(e.playbackRate=n)}),Ui(()=>{Qn(e,[`ratechange`],()=>{n(e.playbackRate)})})}function gl(e,t,n=t){var r=t();Qn(e,[`play`,`pause`,`canplay`],()=>{r!==e.paused&&n(r=e.paused)},r==null),Ui(()=>{(r=!!t())!==e.paused&&(r?e.pause():e.play().catch(e=>{throw n(r=!0),e}))})}function _l(e,t,n=t){var r=()=>{n(e.volume)};t()??r(),Qn(e,[`volumechange`],r,!1),qi(()=>{var n=Number(t());n!==e.volume&&!isNaN(n)&&(e.volume=n)})}function vl(e,t,n=t){var r=()=>{n(e.muted)};t()??r(),Qn(e,[`volumechange`],r,!1),qi(()=>{var n=!!t();e.muted!==n&&(e.muted=n)})}function yl(e){Qn(window,[`online`,`offline`],()=>{e(navigator.onLine)})}function bl(e,t,n){var r=v(e,t);r&&r.set&&(e[t]=n,Ii(()=>{e[t]=null}))}var xl=class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}},Sl=new xl({box:`content-box`}),Cl=new xl({box:`border-box`}),wl=new xl({box:`device-pixel-content-box`});function Tl(e,t,n){Ii((t===`contentRect`||t===`contentBoxSize`?Sl:t===`borderBoxSize`?Cl:wl).observe(e,e=>n(e[t])))}function El(e,t,n){var r=Cl.observe(e,()=>n(e[t]));Ui(()=>(Wa(()=>n(e[t])),r))}function Dl(e,t){return e===t||e?.[ke]===t}function Ol(e=xn(),t,n,r){var i=cn.r,a=ya;return Ui(()=>{var o,s;return qi(()=>{o=s,s=r?.()||[],Wa(()=>{Dl(n(...s),e)||(t(e,...s),o&&Dl(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Dl(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function kl(e,t,n,r=n){t.addEventListener(`input`,()=>{r(t[e])}),qi(()=>{var i=n();if(t[e]!==i){if(i==null){var a=t[e];r(a)}else t[e]=i+``}})}function Al(e,t,n,r,i){var a=()=>{r(n[e])};n.addEventListener(t,a),i?qi(()=>{n[e]=i()}):a(),(n===document.body||n===window||n===document)&&Ii(()=>{n.removeEventListener(t,a)})}function jl(e,t){Qn(e,[`focus`,`blur`],()=>{t(e===document.activeElement)})}function Ml(e,t,n=t){var r=e===`x`,i=()=>$n(()=>{a=!0,clearTimeout(o),o=setTimeout(s,100),n(window[r?`scrollX`:`scrollY`])});addEventListener(`scroll`,i,{passive:!0});var a=!1,o,s=()=>{a=!1},c=!0;qi(()=>{var e=t();c?c=!1:!a&&e!=null&&(a=!0,clearTimeout(o),r?scrollTo(e,window.scrollY):scrollTo(window.scrollX,e),o=setTimeout(s,100))}),Ui(i),Ii(()=>{removeEventListener(`scroll`,i)})}function Nl(e,t){Qn(window,[`resize`],()=>$n(()=>t(window[e])))}function Pl(e){return function(...t){t[0].isTrusted&&e?.apply(this,t)}}function Fl(e){return function(...t){t[0].target===this&&e?.apply(this,t)}}function Il(e){return function(...t){return t[0].stopPropagation(),e?.apply(this,t)}}function Ll(e){var t=!1;return function(...n){if(!t)return t=!0,e?.apply(this,n)}}function Rl(e){return function(...t){return t[0].stopImmediatePropagation(),e?.apply(this,t)}}function zl(e){return function(...t){return t[0].preventDefault(),e?.apply(this,t)}}function Bl(e=!1){let t=cn,n=t.l.u;if(!n)return;let r=()=>Ga(t.s);if(e){let e=0,n={},i=hr(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>M(i)}n.b.length&&zi(()=>{Vl(t,r),oe(n.b)}),Li(()=>{let e=Wa(()=>n.m.map(ae));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&Li(()=>{Vl(t,r),oe(n.a)})}function Vl(e,t){if(e.l.s)for(let t of e.l.s)M(t);t()}function Hl(e){var t=$r(0);return function(){return arguments.length===1?(D(t,M(t)+1),arguments[0]):(M(t),e())}}function Ul(e,t){var n=e.$$events?.[t.type];for(var r of f(n)?n.slice():n==null?[]:[n])r.call(this,t)}function Wl(e,t,n){e.$$events||={},e.$$events[t]||=[],e.$$events[t].push(n)}function Gl(e){for(var t in e)t in this&&(this[t]=e[t])}function Kl(e,t=1){let n=e();return e(n+t),n}function ql(e,t=1){let n=e()+t;return e(n),n}var Jl={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function Yl(e,t,n){return new Proxy({props:e,exclude:t},Jl)}var Xl={get(e,t){if(!e.exclude.includes(t))return M(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,n){if(!(t in e.special)){var r=ya;try{ba(e.parent_effect),e.special[t]=z({get[t](){return e.props[t]}},t,4)}finally{ba(r)}}return e.special[t](n),ii(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)?!0:(e.exclude.push(t),ii(e.version),!0)},has(e,t){return!e.exclude.includes(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Zl(e,t){return new Proxy({props:e,exclude:t,special:{},version:$r(0),parent_effect:ya},Xl)}var Ql={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ne(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];ne(i)&&(i=i());let a=v(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ne(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=v(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===ke||t===je)return!1;for(let n of e.props)if(ne(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(ne(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function $l(...e){return new Proxy({props:e},Ql)}function z(e,t,n,r){var i=!0,a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=hr(r),M(l)):(c&&(c=!1,s=o?Wa(r):r),s);let d;if(a){var f=ke in e||je in e;d=v(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=qn(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Vt(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,y=(n&1?hr:yr)(()=>(_=!1,h()));a&&M(y);var b=ya;return(function(e,t){if(arguments.length>0){let n=t?M(y):i&&a?ci(e):e;return D(y,n),_=!0,s!==void 0&&(s=n),e}return ma&&_||b.f&16384?y.v:M(y)})}function eu(e,t,n,r,i,a){nr(t,()=>{var t=!1,o=fn?.[We];qi(()=>{if(!t){var[s,c]=qn(n);if(!c){var l=r(),u=!1,d=qi(()=>{u||s[l]});u=!0,d.deps===null&&(Ze(e,`${o}:${i}:${a}`),t=!0)}}})})}function tu(e){return new nu(e)}var nu=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=ei(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return M(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===je||(M(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return D(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Zo:Xo)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&T(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&_(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{ts(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},ru;typeof HTMLElement==`function`&&(ru=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Ti(`slot`);e!=="default"&&(n.name=e),F(t,n)}}let t={},n=au(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=iu(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=tu({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Vi(()=>{qi(()=>{this.$$r=!0;for(let e of g(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=iu(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=iu(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return g(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function iu(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function au(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function ou(e,t,n,r,i,a){let o=class extends ru{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return g(t).map(e=>(t[e].attribute||e).toLowerCase())}};return g(t).forEach(e=>{_(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=iu(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(v(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{_(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function su(e,...t){return Wa(()=>{try{let n=!1,r=[];for(let e of t)e&&typeof e==`object`&&ke in e?(r.push(Jt(e,!0)),n=!0):r.push(e);n&&(Qe(e),console.log(`%c[snapshot]`,`color: grey`,...r))}catch{}}),t}var cu=l({CLASS:()=>Dc,FILENAME:()=>We,HMR:()=>Ge,NAMESPACE_SVG:()=>qe,STYLE:()=>Oc,aborted:()=>ca,action:()=>tc,active_effect:()=>ya,add_legacy_event_listener:()=>Wl,add_locations:()=>po,add_svelte_meta:()=>dn,animation:()=>Ys,append:()=>F,append_styles:()=>ec,apply:()=>Eo,assign:()=>co,assign_async:()=>lo,async:()=>cs,async_derived:()=>_r,attach:()=>nc,attachment:()=>qa,attr:()=>lc,attribute_effect:()=>Wc,autofocus:()=>Jn,await:()=>ms,bind_active_element:()=>Qc,bind_buffered:()=>ll,bind_checked:()=>nl,bind_content_editable:()=>kl,bind_current_time:()=>cl,bind_element_size:()=>El,bind_ended:()=>pl,bind_files:()=>ol,bind_focused:()=>jl,bind_group:()=>tl,bind_muted:()=>vl,bind_online:()=>yl,bind_paused:()=>gl,bind_playback_rate:()=>hl,bind_played:()=>dl,bind_prop:()=>bl,bind_property:()=>Al,bind_ready_state:()=>ml,bind_resize_observer:()=>Tl,bind_seekable:()=>ul,bind_seeking:()=>fl,bind_select_value:()=>wc,bind_this:()=>Ol,bind_value:()=>$c,bind_volume:()=>_l,bind_window_scroll:()=>Ml,bind_window_size:()=>Nl,boundary:()=>Go,bubble_event:()=>Ul,check_target:()=>as,child:()=>O,cleanup_styles:()=>fo,clsx:()=>uc,comment:()=>Vo,component:()=>Rs,create_custom_element:()=>ou,create_ownership_validator:()=>rs,css_props:()=>_s,customizable_select:()=>Zc,deep_read:()=>Ka,deep_read_state:()=>Ga,deferred_template_effect:()=>Ji,delegate:()=>So,delegated:()=>N,derived:()=>vr,derived_safe_equal:()=>yr,document:()=>mi,each:()=>Ss,eager:()=>Gr,effect:()=>Ui,effect_root:()=>Vi,effect_tracking:()=>Fi,element:()=>Qs,equals:()=>fi,event:()=>xo,exclude_from_object:()=>ue,fallback:()=>ce,first_child:()=>Si,flush:()=>T,for_await_track_reactivity_loss:()=>cr,from_html:()=>P,from_mathml:()=>Fo,from_svg:()=>Po,from_tree:()=>Lo,get:()=>M,head:()=>$s,hmr:()=>ns,html:()=>Os,hydrate_template:()=>ft,if:()=>L,index:()=>vs,init:()=>Bl,init_select:()=>Cc,inspect:()=>ss,invalid_default_snippet:()=>bt,invalidate_inner_signals:()=>fa,invalidate_store:()=>Bn,key:()=>gs,legacy_api:()=>os,legacy_pre_effect:()=>Wi,legacy_pre_effect_reset:()=>Gi,legacy_rest_props:()=>Zl,log_if_contains_state:()=>su,mark_store_binding:()=>Kn,mutable_source:()=>ei,mutate:()=>ti,next:()=>pt,noop:()=>re,once:()=>Ll,only_child:()=>k,pending:()=>qo,pop:()=>bn,preventDefault:()=>zl,prevent_snippet_stringification:()=>Ps,prop:()=>z,props_id:()=>Ho,proxy:()=>ci,push:()=>yn,raf:()=>Bs,reactive_import:()=>Hl,remove_input_defaults:()=>Ic,remove_textarea_child:()=>Yn,render_effect:()=>qi,replay_events:()=>yo,reset:()=>w,rest_props:()=>Yl,run:()=>ur,run_after_blockers:()=>nr,safe_get:()=>Ua,sanitize_slots:()=>As,save:()=>ar,select_option:()=>Sc,selectedcontent:()=>Xc,self:()=>Fl,set:()=>D,set_attribute:()=>R,set_checked:()=>Rc,set_class:()=>gc,set_custom_element_data:()=>Hc,set_default_checked:()=>zc,set_default_select_value:()=>bc,set_default_value:()=>Bc,set_selected:()=>yc,set_style:()=>vc,set_text:()=>I,set_value:()=>Lc,set_xlink_attribute:()=>Vc,setup_stores:()=>Vn,sibling:()=>A,slot:()=>ks,snapshot:()=>Jt,snippet:()=>Fs,spread_props:()=>$l,state:()=>E,stopImmediatePropagation:()=>Rl,stopPropagation:()=>Il,store_get:()=>Ln,store_mutate:()=>Un,store_set:()=>zn,store_unsub:()=>Rn,strict_equals:()=>di,tag:()=>en,tag_proxy:()=>tn,template_effect:()=>j,text:()=>Bo,tick:()=>za,to_array:()=>le,trace:()=>$t,track_reactivity_loss:()=>sr,transition:()=>Xs,trusted:()=>Pl,unsave:()=>or,untrack:()=>Wa,update:()=>ii,update_legacy_props:()=>Gl,update_pre:()=>ai,update_pre_prop:()=>ql,update_pre_store:()=>Gn,update_prop:()=>Kl,update_store:()=>Wn,user_effect:()=>Li,user_pre_effect:()=>zi,validate_binding:()=>eu,validate_dynamic_element_tag:()=>Ms,validate_snippet_args:()=>ls,validate_store:()=>Ns,validate_void_dynamic_element:()=>js,wait:()=>dr,window:()=>pi,with_script:()=>Ro,wrap_snippet:()=>Is});function lu(e,t){if(yt(`hydratable`),C){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);tt(e)}return t()}var uu=l({afterUpdate:()=>_u,beforeUpdate:()=>gu,createContext:()=>mn,createEventDispatcher:()=>hu,createRawSnippet:()=>Ls,flushSync:()=>T,fork:()=>Jr,getAbortSignal:()=>du,getAllContexts:()=>vn,getContext:()=>hn,hasContext:()=>_n,hydratable:()=>lu,hydrate:()=>Zo,mount:()=>Xo,onDestroy:()=>pu,onMount:()=>fu,setContext:()=>gn,settled:()=>Ba,tick:()=>za,unmount:()=>ts,untrack:()=>Wa});function du(){return ga===null&&Rt(),(ga.ac??=new AbortController).signal}function fu(e){cn===null&&St(`onMount`),Li(()=>{let t=Wa(e);if(typeof t==`function`)return t})}function pu(e){cn===null&&St(`onDestroy`),fu(()=>()=>Wa(e))}function mu(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function hu(){let e=cn;return e===null&&St(`createEventDispatcher`),(t,n,r)=>{let i=e.s.$$events?.[t];if(i){let a=f(i)?i.slice():[i],o=mu(t,n,r);for(let t of a)t.call(e.x,o);return!o.defaultPrevented}return!0}}function gu(e){cn===null&&St(`beforeUpdate`),cn.l===null&&Bt(`beforeUpdate`),vu(cn).b.push(e)}function _u(e){cn===null&&St(`afterUpdate`),cn.l===null&&Bt(`afterUpdate`),vu(cn).a.push(e)}function vu(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var yu=[`README.md`,`PROJECT.md`,`ABOUT.md`,`INDEX.md`];function bu(e){return e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``).replace(/\/+$/,``)}function xu(e){return e.slug??bu(e.path??``)}function Su(e){let t=xu(e);return t?{kind:`route`,slug:t}:null}function Cu(e){return/^[a-z][a-z0-9+.-]*:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`)||e.includes(`#`)||/\.html?$/i.test(e)}function wu(e,t){let n=(Array.isArray(e)?e:[]).filter(e=>e&&(e.slug||e.path));if(n.length===0)return null;let r=t?.home?.trim();if(r){let e=bu(r),t=n.find(t=>{let n=t.slug??bu(t.path??``),r=bu(t.path??t.slug??``);return n===e||r===e});if(t)return Su(t);if(Cu(r))return{kind:`href`,href:r}}let i=n.filter(e=>!(e.path??e.slug??``).includes(`/`));for(let e of yu){let t=i.find(t=>(t.path??``)===e);if(t)return Su(t)}for(let e of yu){let t=e.toLowerCase(),n=i.find(e=>(e.path??``).toLowerCase()===t);if(n)return Su(n)}let a=[...n].sort((e,t)=>{let n=(e.path??e.slug??``).toLowerCase(),r=(t.path??t.slug??``).toLowerCase();if(n!==r)return n<r?-1:1;let i=e.path??e.slug??``,a=t.path??t.slug??``;return i<a?-1:+(i>a)})[0];return a?Su(a):null}async function Tu(e,t={}){let n=Math.max(1,t.levels??3);for(let t=1;t<=n;t+=1){let n=`../`.repeat(t);try{let t=await e(`${n}_manifest.json`);if(!t.ok)continue;let r=await t.json();if(!r||!Array.isArray(r.docs)||r.docs.length===0)continue;let i=wu(r.docs,r.config??{});if(i?.kind===`route`&&i.slug)return{kind:`href`,href:`${n}index.html#/${i.slug}`,via:`ancestor`}}catch{}}return null}function Eu(e){let t=e.replace(/\.(md|mdx|html)$/i,``);return t=t.replace(/^\d+[-_.]/,``),t.toLowerCase()===`readme`||t.toLowerCase()===`index`?`Overview`:t.split(/[-_]+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function Du(e,t={},n){if(n&&n.length>0)return ku(n);let r=[],i=new Map;for(let n of e){let e=n.replace(/^\.?\//,``),a=e.split(`/`),o=t[e]||{};if(!o.hidden){if(a.length===1){let t=a[0],n=t.replace(/\.(md|mdx)$/i,``),i=n.toLowerCase()===`readme`||n.toLowerCase()===`index`;r.push({id:n,title:o.title||o.sidebar_label||(i?`Overview`:Eu(t)),slug:i?`README`:n,path:e,icon:o.icon,badge:o.badge,badgeType:o.badge_type,order:o.order??o.sidebar_position??(i?-999:0),isCategory:!1})}else{let t=``,n=r;for(let e=0;e<a.length-1;e++){let r=a[e];t=t?`${t}/${r}`:r;let o=i.get(t);o||(o={id:t,title:Eu(r),order:10,isCategory:!0,collapsed:!1,children:[]},i.set(t,o),n.push(o)),n=o.children}let s=a[a.length-1],c=e.replace(/\.(md|mdx)$/i,``),l=s.replace(/\.(md|mdx)$/i,``).toLowerCase()===`readme`||s.replace(/\.(md|mdx)$/i,``).toLowerCase()===`index`;n.push({id:c,title:o.title||o.sidebar_label||(l?`Overview`:Eu(s)),slug:c,path:e,icon:o.icon,badge:o.badge,badgeType:o.badge_type,order:o.order??o.sidebar_position??(l?-100:0),isCategory:!1})}}}return Ou(r),r}function Ou(e){e.sort((e,t)=>e.order===t.order?e.slug===`README`?-1:t.slug===`README`?1:e.title.localeCompare(t.title):e.order-t.order);for(let t of e)t.children&&t.children.length>0&&Ou(t.children)}function ku(e){return e.map((e,t)=>{let n=!!(e.children&&e.children.length>0),r=e.slug||(e.path?e.path.replace(/\.(md|mdx)$/i,``):`item-${t}`);return{id:r,title:e.title||Eu(r),slug:n?void 0:r,path:e.path,icon:e.icon,badge:e.badge,badgeType:e.badgeType,order:t,isCategory:n,collapsed:e.collapsed??!1,children:e.children?ku(e.children):void 0}})}var Au=class{embeddedManifest=null;cache=new Map;constructor(){this.checkEmbeddedData()}checkEmbeddedData(){if(typeof window>`u`)return;let e=window.__DOCMEDOWN_DATA__;if(e&&typeof e==`object`&&(e.manifest&&(this.embeddedManifest=e.manifest),e.docs&&typeof e.docs==`object`))for(let[t,n]of Object.entries(e.docs))this.cache.set(t,n),this.cache.set(this.normalizeKey(t),n);try{if(typeof window<`u`&&typeof localStorage<`u`&&(window.location.protocol===`file:`||window.__DOCMEDOWN_OFFLINE__))for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);if(n?.startsWith(`dmd-offline-doc-`)){let t=n.slice(16),r=localStorage.getItem(n);r&&(this.cache.set(t,r),this.cache.set(this.normalizeKey(t),r),e?.docs&&typeof e.docs==`object`&&(e.docs[t]=r))}}}catch{}if(window.__DOCMEDOWN_MANIFEST__&&(this.embeddedManifest=window.__DOCMEDOWN_MANIFEST__),window.__DOCMEDOWN_DOCS__)for(let[e,t]of Object.entries(window.__DOCMEDOWN_DOCS__))this.cache.set(e,t),this.cache.set(this.normalizeKey(e),t);let t=document.getElementById(`dmd-manifest`);if(t?.textContent)try{this.embeddedManifest=JSON.parse(t.textContent)}catch(e){console.warn(`[DocMeDown] Failed to parse embedded manifest:`,e)}let n=document.getElementById(`dmd-docs`);if(n?.textContent)try{let e=JSON.parse(n.textContent);for(let[t,n]of Object.entries(e))this.cache.set(t,n),this.cache.set(this.normalizeKey(t),n)}catch(e){console.warn(`[DocMeDown] Failed to parse embedded docs:`,e)}}getEmbeddedManifest(){return this.embeddedManifest}async fetchManifest(e=``){if(this.embeddedManifest)return this.embeddedManifest;if(typeof window<`u`&&window.location.protocol===`file:`)return null;try{let t=e?`${e.replace(/\/$/,``)}/_manifest.json`:`_manifest.json`,n=await fetch(t);if(n.ok){let e=await n.json();return this.embeddedManifest=e,e}}catch{}return null}peekDocContent(e){if(this.cache.has(e))return this.cache.get(e);let t=this.normalizeKey(e),n=this.cache.get(t);if(n!==void 0)return n;let r=this.embeddedManifest?.docs?.find(e=>this.normalizeKey(e.slug)===t||this.normalizeKey(e.path)===t);if(r?.content)return this.cache.set(t,r.content),r.content}embeddedDocSources(){let e={};for(let[t,n]of this.cache){let r=this.normalizeKey(t);e[r]===void 0&&(e[r]=n)}for(let t of this.embeddedManifest?.docs??[]){let n=this.normalizeKey(t.slug);t.content&&e[n]===void 0&&(e[n]=t.content)}return Object.keys(e).length>0?e:null}async fetchDocContent(e,t=``){if(this.cache.has(e))return this.cache.get(e);let n=this.normalizeKey(e);if(this.cache.has(n))return this.cache.get(n);if(this.embeddedManifest?.docs){let e=this.embeddedManifest.docs.find(e=>this.normalizeKey(e.slug)===n||this.normalizeKey(e.path)===n);if(e?.content)return this.cache.set(n,e.content),e.content}if(typeof window<`u`&&window.location.protocol===`file:`)return null;let r=[`${n}.md`,`${n}.mdx`,`${n}/README.md`,`${n}/index.md`,n===`README`?`README.md`:null,n===`README`?`index.md`:null].filter(Boolean);for(let e of r)try{let r=t?`${t.replace(/\/$/,``)}/${e}`:e,i=await fetch(r);if(i.ok){let e=await i.text();return this.cache.set(n,e),e}}catch{}return null}setDocContent(e,t){this.cache.set(e,t);let n=this.normalizeKey(e);this.cache.set(n,t)}normalizeKey(e){return e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``)}},ju=class{config;cache=new Map;treeCache=null;constructor(e){this.config=e}getHeaders(){let e={Accept:`application/vnd.github.v3+json, text/plain`};return this.config.token&&(e.Authorization=`token ${this.config.token}`),e}async discoverFiles(){if(!this.config.repo)return[];if(this.treeCache&&Date.now()-this.treeCache.timestamp<3e5)return this.treeCache.files;let e=this.config.branch||`main`,t=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``);try{let n=`https://api.github.com/repos/${this.config.repo}/git/trees/${e}?recursive=1`,r=await fetch(n,{headers:this.getHeaders()});if(r.ok){let e=await r.json();if(Array.isArray(e.tree)){let n=[];for(let r of e.tree)if(r.type===`blob`&&/\.(md|mdx)$/i.test(r.path)&&(!t||r.path.startsWith(`${t}/`))){let e=t?r.path.substring(t.length+1):r.path;n.push(e)}return this.treeCache={files:n,timestamp:Date.now()},n}}}catch(e){console.warn(`[DocMeDown] Failed to fetch GitHub tree API, using fallback files:`,e)}return[`README.md`,`index.md`,`getting-started.md`]}async fetchDocContent(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);if(this.cache.has(t))return this.cache.get(t);let n=this.config.branch||`main`,r=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),i=[`${t}.md`,`${t}.mdx`,`${t}/README.md`,`${t}/index.md`,t===`README`?`README.md`:null].filter(Boolean);for(let e of i){let i=r?`${r}/${e}`:e,a=`https://raw.githubusercontent.com/${this.config.repo}/${n}/${i}`;try{let e=await fetch(a,{headers:this.getHeaders()});if(e.ok){let n=await e.text();return this.cache.set(t,n),n}}catch{}}return null}},Mu=class{config;cache=new Map;constructor(e){this.config=e}getHeaders(){let e={};return this.config.token&&(e[`PRIVATE-TOKEN`]=this.config.token),e}async discoverFiles(){if(!this.config.repo)return[];let e=this.config.branch||`main`,t=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),n=encodeURIComponent(this.config.repo);try{let r=`https://gitlab.com/api/v4/projects/${n}/repository/tree?ref=${e}&recursive=true&per_page=100`,i=await fetch(r,{headers:this.getHeaders()});if(i.ok){let e=await i.json();if(Array.isArray(e)){let n=[];for(let r of e)if(r.type===`blob`&&/\.(md|mdx)$/i.test(r.path)&&(!t||r.path.startsWith(`${t}/`))){let e=t?r.path.substring(t.length+1):r.path;n.push(e)}return n}}}catch(e){console.warn(`[DocMeDown] Failed to fetch GitLab repository tree:`,e)}return[`README.md`,`index.md`]}async fetchDocContent(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);if(this.cache.has(t))return this.cache.get(t);let n=this.config.branch||`main`,r=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),i=encodeURIComponent(this.config.repo||``),a=[`${t}.md`,`${t}.mdx`,`${t}/README.md`,`${t}/index.md`,t===`README`?`README.md`:null].filter(Boolean);for(let e of a){let a=r?`${r}/${e}`:e,o=`https://gitlab.com/api/v4/projects/${i}/repository/files/${encodeURIComponent(a)}/raw?ref=${n}`;try{let e=await fetch(o,{headers:this.getHeaders()});if(e.ok){let n=await e.text();return this.cache.set(t,n),n}}catch{}}return null}};function Nu(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Pu=Nu();function Fu(e){Pu=e}var Iu=/[&<>"']/,Lu=new RegExp(Iu.source,`g`),Ru=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,zu=new RegExp(Ru.source,`g`),Bu={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Vu=e=>Bu[e];function Hu(e,t){if(t){if(Iu.test(e))return e.replace(Lu,Vu)}else if(Ru.test(e))return e.replace(zu,Vu);return e}var Uu=/(^|[^\[])\^/g;function Wu(e,t){let n=typeof e==`string`?e:e.source;t||=``;let r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Uu,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function Gu(e){try{e=encodeURI(e).replace(/%25/g,`%`)}catch{return null}return e}var Ku={exec:()=>null};function qu(e,t){let n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-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(/\\\|/g,`|`);return n}function Ju(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 Yu(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-1}function Xu(e,t,n,r){let i=t.href,a=t.title?Hu(t.title):null,o=e[1].replace(/\\([\[\]])/g,`$1`);if(e[0].charAt(0)!==`!`){r.state.inLink=!0;let e={type:`link`,raw:n,href:i,title:a,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:`image`,raw:n,href:i,title:a,text:Hu(o)}}function Zu(e,t){let n=e.match(/^(\s+)(?:```)/);if(n===null)return t;let r=n[1];return t.split(`
|
|
7
|
+
\r\f\xA0\v`];function fc(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||dc.includes(r[o-1]))&&(s===r.length||dc.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function pc(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function mc(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function hc(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(mc)),i&&c.push(...Object.keys(i).map(mc));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=mc(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=pc(r)),i&&(n+=pc(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function gc(e,t,n,r,i,a){var o=e[Fe];if(C||o!==n||o===void 0){var s=fc(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Fe]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function _c(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function vc(e,t,n,r){var i=e[Ie];if(C||i!==t){var a=hc(t,r);(!C||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Ie]=t}else r&&(Array.isArray(r)?(_c(e,n?.[0],r[0]),_c(e,n?.[1],r[1],`important`)):_c(e,n,r));return r}function yc(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function bc(e,t){var n=!(`__defaultValue`in e);!n&&e.__defaultValue===t||(e.__defaultValue=t,xc(e,!n||`__value`in e))}function xc(e,t){var n=e.__defaultValue,r=e.multiple,i=r?n??[]:null;if(!(r&&!f(i))){var a=e.selectedIndex,o=t&&r?new Set(e.selectedOptions):null;for(var s of e.options){var c=Tc(s);yc(s,r?i.includes(c):ui(c,n))}if(t){if(o!==null)for(s of e.options){var l=o.has(s);s.selected!==l&&(s.selected=l)}else e.selectedIndex!==a&&(e.selectedIndex=a)}}}function Sc(e,t,n=!1){if(e.multiple){if(t==null)return;if(!f(t))return at();for(var r of e.options)r.selected=t.includes(Tc(r));return}for(r of e.options)if(ui(Tc(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Cc(e){var t=new MutationObserver(t=>{t.every(Ec)||(`__defaultValue`in e&&xc(e,!1),`__value`in e&&Sc(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Ii(()=>{t.disconnect()})}function wc(e,t,n=t){var r=new WeakSet,i=!0;er(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),Tc);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Tc(o)}n(a),e.__value=a,Er!==null&&r.add(Er)}),Ui(()=>{var a=t();if(e===document.activeElement){var o=Er;if(r.has(o))return}if(Sc(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Tc(s),n(a))}e.__value=a,i=!1})}function Tc(e){return`__value`in e?e.__value:e.value}function Ec(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var Dc=Symbol(`class`),Oc=Symbol(`style`),kc=Symbol(`is custom element`),Ac=Symbol(`is html`),jc=Ve?`link`:`LINK`,Mc=Ve?`input`:`INPUT`,Nc=Ve?`option`:`OPTION`,Pc=Ve?`select`:`SELECT`,Fc=Ve?`progress`:`PROGRESS`;function Ic(e){if(C){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;R(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;R(e,`checked`,null),e.checked=r}}};e[Re]=n,Tn(n),Zn()}}function Lc(e,t){var n=Gc(e);n.value!==(n.value=t??void 0)&&(e.value!==t||t===0&&e.nodeName===Fc)&&(e.value=t??``)}function Rc(e,t){var n=Gc(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function zc(e,t){let n=e.checked;e.defaultChecked=t,e.checked=n}function Bc(e,t){let n=e.value;e.defaultValue=t,e.value=n}function R(e,t,n,r){var i=Gc(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===jc)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&qc(e).has(t)?e[t]=n:e.setAttribute(t,n))}function Vc(e,t,n){e.setAttributeNS(`http://www.w3.org/1999/xlink`,t,n)}function Hc(e,t,n){var r=ga,i=ya;let a=C;C&&ct(!1),va(null),ba(null);try{t!==`style`&&(Kc.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?qc(e).has(t):n&&typeof n==`object`)?e[t]=n:R(e,t,n==null?n:String(n))}finally{va(r),ba(i),a&&ct(!0)}}function Uc(e,t,n,r,i=!1,a=!1){C&&i&&e.nodeName===Mc&&(`defaultValue`in n||`defaultChecked`in n||Ic(e));var o=Gc(e),s=o[kc],c=!o[Ac];let l=C&&s;l&&ct(!1);var u=t||{},d=e.nodeName===Nc,f=e.nodeName===Pc;for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=uc(n.class):(r||n[Dc])&&(n.class=null),n[Oc]&&(n.style??=null);var m=qc(e);if(e.nodeName===Mc&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==u.type||h===void 0&&e.hasAttribute(`type`))&&(u.type=h,R(e,`type`,h,a))}for(let i in n){let l=n[i];if(d&&i===`value`&&l==null){e.value=e.__value=``,u[i]=l;continue}if(i===`class`){gc(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,l,r,t?.[Dc],n[Dc]),u[i]=l,u[Dc]=n[Dc];continue}if(i===`style`){vc(e,l,t?.[Oc],n[Oc]),u[i]=l,u[Oc]=n[Oc];continue}var g=u[i];if(!(l===g&&!(l===void 0&&e.hasAttribute(i)))){u[i]=l;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=Qa(r);if(Xa(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(l!=null)continue;e.removeEventListener(r,u[n],t),u[n]=null}if(v)N(r,e,l),So([r]);else if(l!=null){function y(e){u[i].call(this,e)}u[n]=bo(r,e,y,t)}}else if(i===`style`)R(e,i,l);else if(i===`autofocus`)Jn(e,!!l);else if(!s&&(i===`__value`||i===`value`&&l!=null))e.value=e.__value=l;else if(i===`selected`&&d)yc(e,l);else{var b=i;c||(b=to(b));var x=b===`defaultValue`||b===`defaultChecked`;if(f&&b===`defaultValue`)continue;if(l==null&&!s&&!x){if(o[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else x||(s||typeof l!=`string`)&&m.has(b)?(e[b]=l,b in o&&(o[b]=Ue)):typeof l!=`function`&&R(e,b,l,a)}}}}return l&&ct(!0),u}function Wc(e,t,n=[],r=[],i=[],a,o=!1,s=!1){tr(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Pc,l=!1;if(Xi(()=>{var u=t(...n.map(M)),d=Uc(e,r,u,a,o,s);if(l&&c){var f=e;`defaultValue`in u&&bc(f,u.defaultValue),`value`in u&&Sc(f,u.value)}for(let e of Object.getOwnPropertySymbols(i))u[e]||ta(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];t.description===`@attach`&&(!r||p!==r[t])&&(i[t]&&ta(i[t]),i[t]=Zi(()=>nc(e,()=>p))),d[t]=p}r=d}),c){var u=e;Ui(()=>{var e=r;`defaultValue`in e&&bc(u,e.defaultValue),Sc(u,e.value,!0),Cc(u)})}l=!0})}function Gc(e){return e[Pe]??={[kc]:e.nodeName.includes(`-`),[Ac]:e.namespaceURI===Ke}}var Kc=new Map;function qc(e){var t=e.getAttribute(`is`)||e.nodeName,n=Kc.get(t);if(n)return n;Kc.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=y(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=S(i)}return n}var Jc=null;function Yc(){if(Jc===null){var e=Ti(`select`);e.innerHTML=Oo(`<option><span>t</span></option>`),Jc=e.firstChild?.firstChild?.nodeType===1}return Jc}function Xc(e,t){Yc()&&nc(e,()=>()=>{let n=e.closest(`select`);if(!n)return;let r=new MutationObserver(n=>{var r=!1;for(let t of n){if(t.target===e)return;r||=!!t.target.parentElement?.closest(`option`)?.selected}r&&(e.replaceWith(e=e.cloneNode(!0)),t(e))});return r.observe(n,{childList:!0,characterData:!0,subtree:!0}),()=>{r.disconnect()}})}function Zc(e,t){var n=C;Yc()||(ct(!1),e.textContent=``,e.append(Di(``)));try{t()}finally{n&&(C?w(e):(ct(!0),ut(e)))}}function Qc(e){Qn(document,[`focusin`,`focusout`],t=>{t&&t.type===`focusout`&&t.relatedTarget||e(document.activeElement)})}function $c(e,t,n=t){var r=new WeakSet;er(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=il(e)?al(a):a,n(a),Er!==null&&r.add(Er),await za(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(C&&e.defaultValue!==e.value||Wa(t)==null&&e.value)&&(n(il(e)?al(e.value):e.value),Er!==null&&r.add(Er)),qi(()=>{var n=t();if(e===document.activeElement){var i=Er;if(r.has(i))return}il(e)&&n===al(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}var el=new Set;function tl(e,t,n,r,i=r){var a=n.getAttribute(`type`)===`checkbox`,o=e;let s=!1;if(t!==null)for(var c of t)o=o[c]??=[];o.push(n),er(n,`change`,()=>{var e=n.__value;a&&(e=rl(o,e,n.checked)),i(e)},()=>i(a?[]:null)),qi(()=>{var e=r();if(C&&n.defaultChecked!==n.checked){s=!0;return}a?(e||=[],n.checked=e.includes(n.__value)):n.checked=ui(n.__value,e)}),Ii(()=>{var e=o.indexOf(n);e!==-1&&o.splice(e,1)}),el.has(o)||(el.add(o),Tn(()=>{o.sort((e,t)=>e.compareDocumentPosition(t)===4?-1:1),el.delete(o)})),Tn(()=>{if(s){var e=a?rl(o,e,n.checked):o.find(e=>e.checked)?.__value;i(e)}})}function nl(e,t,n=t){er(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(C&&e.defaultChecked!==e.checked||Wa(t)==null)&&n(e.checked),qi(()=>{e.checked=!!t()})}function rl(e,t,n){for(var r=new Set,i=0;i<e.length;i+=1)e[i].checked&&r.add(e[i].__value);return n||r.delete(t),Array.from(r)}function il(e){var t=e.type;return t===`number`||t===`range`}function al(e){return e===``?null:+e}function ol(e,t,n=t){er(e,`change`,()=>{n(e.files)}),C&&e.files&&n(e.files),qi(()=>{e.files=t()})}function sl(e){for(var t=[],n=0;n<e.length;n+=1)t.push({start:e.start(n),end:e.end(n)});return t}function cl(e,t,n=t){var r,i,a=()=>{cancelAnimationFrame(r),e.paused||(r=requestAnimationFrame(a));var t=e.currentTime;i!==t&&n(i=t)};r=requestAnimationFrame(a),e.addEventListener(`timeupdate`,a),qi(()=>{var n=Number(t());i!==n&&!isNaN(n)&&(e.currentTime=i=n)}),Ii(()=>{cancelAnimationFrame(r),e.removeEventListener(`timeupdate`,a)})}function ll(e,t){var n;Qn(e,[`loadedmetadata`,`progress`,`timeupdate`,`seeking`],()=>{var r=e.buffered;(!n||n.length!==r.length||n.some((e,t)=>r.start(t)!==e.start||r.end(t)!==e.end))&&(n=sl(r),t(n))})}function ul(e,t){Qn(e,[`loadedmetadata`],()=>t(sl(e.seekable)))}function dl(e,t){Qn(e,[`timeupdate`],()=>t(sl(e.played)))}function fl(e,t){Qn(e,[`seeking`,`seeked`],()=>t(e.seeking))}function pl(e,t){Qn(e,[`timeupdate`,`ended`],()=>t(e.ended))}function ml(e,t){Qn(e,[`loadedmetadata`,`loadeddata`,`canplay`,`canplaythrough`,`playing`,`waiting`,`emptied`],()=>t(e.readyState))}function hl(e,t,n=t){Ui(()=>{var n=Number(t());n!==e.playbackRate&&!isNaN(n)&&(e.playbackRate=n)}),Ui(()=>{Qn(e,[`ratechange`],()=>{n(e.playbackRate)})})}function gl(e,t,n=t){var r=t();Qn(e,[`play`,`pause`,`canplay`],()=>{r!==e.paused&&n(r=e.paused)},r==null),Ui(()=>{(r=!!t())!==e.paused&&(r?e.pause():e.play().catch(e=>{throw n(r=!0),e}))})}function _l(e,t,n=t){var r=()=>{n(e.volume)};t()??r(),Qn(e,[`volumechange`],r,!1),qi(()=>{var n=Number(t());n!==e.volume&&!isNaN(n)&&(e.volume=n)})}function vl(e,t,n=t){var r=()=>{n(e.muted)};t()??r(),Qn(e,[`volumechange`],r,!1),qi(()=>{var n=!!t();e.muted!==n&&(e.muted=n)})}function yl(e){Qn(window,[`online`,`offline`],()=>{e(navigator.onLine)})}function bl(e,t,n){var r=v(e,t);r&&r.set&&(e[t]=n,Ii(()=>{e[t]=null}))}var xl=class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}},Sl=new xl({box:`content-box`}),Cl=new xl({box:`border-box`}),wl=new xl({box:`device-pixel-content-box`});function Tl(e,t,n){Ii((t===`contentRect`||t===`contentBoxSize`?Sl:t===`borderBoxSize`?Cl:wl).observe(e,e=>n(e[t])))}function El(e,t,n){var r=Cl.observe(e,()=>n(e[t]));Ui(()=>(Wa(()=>n(e[t])),r))}function Dl(e,t){return e===t||e?.[ke]===t}function Ol(e=xn(),t,n,r){var i=cn.r,a=ya;return Ui(()=>{var o,s;return qi(()=>{o=s,s=r?.()||[],Wa(()=>{Dl(n(...s),e)||(t(e,...s),o&&Dl(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Dl(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function kl(e,t,n,r=n){t.addEventListener(`input`,()=>{r(t[e])}),qi(()=>{var i=n();if(t[e]!==i){if(i==null){var a=t[e];r(a)}else t[e]=i+``}})}function Al(e,t,n,r,i){var a=()=>{r(n[e])};n.addEventListener(t,a),i?qi(()=>{n[e]=i()}):a(),(n===document.body||n===window||n===document)&&Ii(()=>{n.removeEventListener(t,a)})}function jl(e,t){Qn(e,[`focus`,`blur`],()=>{t(e===document.activeElement)})}function Ml(e,t,n=t){var r=e===`x`,i=()=>$n(()=>{a=!0,clearTimeout(o),o=setTimeout(s,100),n(window[r?`scrollX`:`scrollY`])});addEventListener(`scroll`,i,{passive:!0});var a=!1,o,s=()=>{a=!1},c=!0;qi(()=>{var e=t();c?c=!1:!a&&e!=null&&(a=!0,clearTimeout(o),r?scrollTo(e,window.scrollY):scrollTo(window.scrollX,e),o=setTimeout(s,100))}),Ui(i),Ii(()=>{removeEventListener(`scroll`,i)})}function Nl(e,t){Qn(window,[`resize`],()=>$n(()=>t(window[e])))}function Pl(e){return function(...t){t[0].isTrusted&&e?.apply(this,t)}}function Fl(e){return function(...t){t[0].target===this&&e?.apply(this,t)}}function Il(e){return function(...t){return t[0].stopPropagation(),e?.apply(this,t)}}function Ll(e){var t=!1;return function(...n){if(!t)return t=!0,e?.apply(this,n)}}function Rl(e){return function(...t){return t[0].stopImmediatePropagation(),e?.apply(this,t)}}function zl(e){return function(...t){return t[0].preventDefault(),e?.apply(this,t)}}function Bl(e=!1){let t=cn,n=t.l.u;if(!n)return;let r=()=>Ga(t.s);if(e){let e=0,n={},i=hr(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>M(i)}n.b.length&&zi(()=>{Vl(t,r),oe(n.b)}),Li(()=>{let e=Wa(()=>n.m.map(ae));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&Li(()=>{Vl(t,r),oe(n.a)})}function Vl(e,t){if(e.l.s)for(let t of e.l.s)M(t);t()}function Hl(e){var t=$r(0);return function(){return arguments.length===1?(D(t,M(t)+1),arguments[0]):(M(t),e())}}function Ul(e,t){var n=e.$$events?.[t.type];for(var r of f(n)?n.slice():n==null?[]:[n])r.call(this,t)}function Wl(e,t,n){e.$$events||={},e.$$events[t]||=[],e.$$events[t].push(n)}function Gl(e){for(var t in e)t in this&&(this[t]=e[t])}function Kl(e,t=1){let n=e();return e(n+t),n}function ql(e,t=1){let n=e()+t;return e(n),n}var Jl={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function Yl(e,t,n){return new Proxy({props:e,exclude:t},Jl)}var Xl={get(e,t){if(!e.exclude.includes(t))return M(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,n){if(!(t in e.special)){var r=ya;try{ba(e.parent_effect),e.special[t]=z({get[t](){return e.props[t]}},t,4)}finally{ba(r)}}return e.special[t](n),ii(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)?!0:(e.exclude.push(t),ii(e.version),!0)},has(e,t){return!e.exclude.includes(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Zl(e,t){return new Proxy({props:e,exclude:t,special:{},version:$r(0),parent_effect:ya},Xl)}var Ql={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ne(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];ne(i)&&(i=i());let a=v(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ne(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=v(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===ke||t===je)return!1;for(let n of e.props)if(ne(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(ne(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function $l(...e){return new Proxy({props:e},Ql)}function z(e,t,n,r){var i=!0,a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=hr(r),M(l)):(c&&(c=!1,s=o?Wa(r):r),s);let d;if(a){var f=ke in e||je in e;d=v(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=qn(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Vt(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,y=(n&1?hr:yr)(()=>(_=!1,h()));a&&M(y);var b=ya;return(function(e,t){if(arguments.length>0){let n=t?M(y):i&&a?ci(e):e;return D(y,n),_=!0,s!==void 0&&(s=n),e}return ma&&_||b.f&16384?y.v:M(y)})}function eu(e,t,n,r,i,a){nr(t,()=>{var t=!1,o=fn?.[We];qi(()=>{if(!t){var[s,c]=qn(n);if(!c){var l=r(),u=!1,d=qi(()=>{u||s[l]});u=!0,d.deps===null&&(Ze(e,`${o}:${i}:${a}`),t=!0)}}})})}function tu(e){return new nu(e)}var nu=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=ei(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return M(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===je||(M(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return D(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Zo:Xo)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&T(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&_(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{ts(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},ru;typeof HTMLElement==`function`&&(ru=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Ti(`slot`);e!=="default"&&(n.name=e),F(t,n)}}let t={},n=au(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=iu(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=tu({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Vi(()=>{qi(()=>{this.$$r=!0;for(let e of g(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=iu(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=iu(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return g(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function iu(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function au(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function ou(e,t,n,r,i,a){let o=class extends ru{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return g(t).map(e=>(t[e].attribute||e).toLowerCase())}};return g(t).forEach(e=>{_(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=iu(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(v(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{_(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function su(e,...t){return Wa(()=>{try{let n=!1,r=[];for(let e of t)e&&typeof e==`object`&&ke in e?(r.push(Jt(e,!0)),n=!0):r.push(e);n&&(Qe(e),console.log(`%c[snapshot]`,`color: grey`,...r))}catch{}}),t}var cu=l({CLASS:()=>Dc,FILENAME:()=>We,HMR:()=>Ge,NAMESPACE_SVG:()=>qe,STYLE:()=>Oc,aborted:()=>ca,action:()=>tc,active_effect:()=>ya,add_legacy_event_listener:()=>Wl,add_locations:()=>po,add_svelte_meta:()=>dn,animation:()=>Ys,append:()=>F,append_styles:()=>ec,apply:()=>Eo,assign:()=>co,assign_async:()=>lo,async:()=>cs,async_derived:()=>_r,attach:()=>nc,attachment:()=>qa,attr:()=>lc,attribute_effect:()=>Wc,autofocus:()=>Jn,await:()=>ms,bind_active_element:()=>Qc,bind_buffered:()=>ll,bind_checked:()=>nl,bind_content_editable:()=>kl,bind_current_time:()=>cl,bind_element_size:()=>El,bind_ended:()=>pl,bind_files:()=>ol,bind_focused:()=>jl,bind_group:()=>tl,bind_muted:()=>vl,bind_online:()=>yl,bind_paused:()=>gl,bind_playback_rate:()=>hl,bind_played:()=>dl,bind_prop:()=>bl,bind_property:()=>Al,bind_ready_state:()=>ml,bind_resize_observer:()=>Tl,bind_seekable:()=>ul,bind_seeking:()=>fl,bind_select_value:()=>wc,bind_this:()=>Ol,bind_value:()=>$c,bind_volume:()=>_l,bind_window_scroll:()=>Ml,bind_window_size:()=>Nl,boundary:()=>Go,bubble_event:()=>Ul,check_target:()=>as,child:()=>O,cleanup_styles:()=>fo,clsx:()=>uc,comment:()=>Vo,component:()=>Rs,create_custom_element:()=>ou,create_ownership_validator:()=>rs,css_props:()=>_s,customizable_select:()=>Zc,deep_read:()=>Ka,deep_read_state:()=>Ga,deferred_template_effect:()=>Ji,delegate:()=>So,delegated:()=>N,derived:()=>vr,derived_safe_equal:()=>yr,document:()=>mi,each:()=>Ss,eager:()=>Gr,effect:()=>Ui,effect_root:()=>Vi,effect_tracking:()=>Fi,element:()=>Qs,equals:()=>fi,event:()=>xo,exclude_from_object:()=>ue,fallback:()=>ce,first_child:()=>Si,flush:()=>T,for_await_track_reactivity_loss:()=>cr,from_html:()=>P,from_mathml:()=>Fo,from_svg:()=>Po,from_tree:()=>Lo,get:()=>M,head:()=>$s,hmr:()=>ns,html:()=>Os,hydrate_template:()=>ft,if:()=>L,index:()=>vs,init:()=>Bl,init_select:()=>Cc,inspect:()=>ss,invalid_default_snippet:()=>bt,invalidate_inner_signals:()=>fa,invalidate_store:()=>Bn,key:()=>gs,legacy_api:()=>os,legacy_pre_effect:()=>Wi,legacy_pre_effect_reset:()=>Gi,legacy_rest_props:()=>Zl,log_if_contains_state:()=>su,mark_store_binding:()=>Kn,mutable_source:()=>ei,mutate:()=>ti,next:()=>pt,noop:()=>re,once:()=>Ll,only_child:()=>k,pending:()=>qo,pop:()=>bn,preventDefault:()=>zl,prevent_snippet_stringification:()=>Ps,prop:()=>z,props_id:()=>Ho,proxy:()=>ci,push:()=>yn,raf:()=>Bs,reactive_import:()=>Hl,remove_input_defaults:()=>Ic,remove_textarea_child:()=>Yn,render_effect:()=>qi,replay_events:()=>yo,reset:()=>w,rest_props:()=>Yl,run:()=>ur,run_after_blockers:()=>nr,safe_get:()=>Ua,sanitize_slots:()=>As,save:()=>ar,select_option:()=>Sc,selectedcontent:()=>Xc,self:()=>Fl,set:()=>D,set_attribute:()=>R,set_checked:()=>Rc,set_class:()=>gc,set_custom_element_data:()=>Hc,set_default_checked:()=>zc,set_default_select_value:()=>bc,set_default_value:()=>Bc,set_selected:()=>yc,set_style:()=>vc,set_text:()=>I,set_value:()=>Lc,set_xlink_attribute:()=>Vc,setup_stores:()=>Vn,sibling:()=>A,slot:()=>ks,snapshot:()=>Jt,snippet:()=>Fs,spread_props:()=>$l,state:()=>E,stopImmediatePropagation:()=>Rl,stopPropagation:()=>Il,store_get:()=>Ln,store_mutate:()=>Un,store_set:()=>zn,store_unsub:()=>Rn,strict_equals:()=>di,tag:()=>en,tag_proxy:()=>tn,template_effect:()=>j,text:()=>Bo,tick:()=>za,to_array:()=>le,trace:()=>$t,track_reactivity_loss:()=>sr,transition:()=>Xs,trusted:()=>Pl,unsave:()=>or,untrack:()=>Wa,update:()=>ii,update_legacy_props:()=>Gl,update_pre:()=>ai,update_pre_prop:()=>ql,update_pre_store:()=>Gn,update_prop:()=>Kl,update_store:()=>Wn,user_effect:()=>Li,user_pre_effect:()=>zi,validate_binding:()=>eu,validate_dynamic_element_tag:()=>Ms,validate_snippet_args:()=>ls,validate_store:()=>Ns,validate_void_dynamic_element:()=>js,wait:()=>dr,window:()=>pi,with_script:()=>Ro,wrap_snippet:()=>Is});function lu(e,t){if(yt(`hydratable`),C){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);tt(e)}return t()}var uu=l({afterUpdate:()=>_u,beforeUpdate:()=>gu,createContext:()=>mn,createEventDispatcher:()=>hu,createRawSnippet:()=>Ls,flushSync:()=>T,fork:()=>Jr,getAbortSignal:()=>du,getAllContexts:()=>vn,getContext:()=>hn,hasContext:()=>_n,hydratable:()=>lu,hydrate:()=>Zo,mount:()=>Xo,onDestroy:()=>pu,onMount:()=>fu,setContext:()=>gn,settled:()=>Ba,tick:()=>za,unmount:()=>ts,untrack:()=>Wa});function du(){return ga===null&&Rt(),(ga.ac??=new AbortController).signal}function fu(e){cn===null&&St(`onMount`),Li(()=>{let t=Wa(e);if(typeof t==`function`)return t})}function pu(e){cn===null&&St(`onDestroy`),fu(()=>()=>Wa(e))}function mu(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function hu(){let e=cn;return e===null&&St(`createEventDispatcher`),(t,n,r)=>{let i=e.s.$$events?.[t];if(i){let a=f(i)?i.slice():[i],o=mu(t,n,r);for(let t of a)t.call(e.x,o);return!o.defaultPrevented}return!0}}function gu(e){cn===null&&St(`beforeUpdate`),cn.l===null&&Bt(`beforeUpdate`),vu(cn).b.push(e)}function _u(e){cn===null&&St(`afterUpdate`),cn.l===null&&Bt(`afterUpdate`),vu(cn).a.push(e)}function vu(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var yu=[`README.md`,`PROJECT.md`,`ABOUT.md`,`INDEX.md`],bu=3;function xu(e){return e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``).replace(/\/+$/,``)}function Su(e){return e.slug??xu(e.path??``)}function Cu(e){let t=Su(e);return t?{kind:`route`,slug:t}:null}function wu(e){return/^[a-z][a-z0-9+.-]*:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`)||e.includes(`#`)||/\.html?$/i.test(e)}function Tu(e,t){let n=(Array.isArray(e)?e:[]).filter(e=>e&&(e.slug||e.path));if(n.length===0)return null;let r=t?.home?.trim();if(r){let e=xu(r),t=n.find(t=>{let n=t.slug??xu(t.path??``),r=xu(t.path??t.slug??``);return n===e||r===e});if(t)return Cu(t);if(wu(r))return{kind:`href`,href:r}}let i=n.filter(e=>!(e.path??e.slug??``).includes(`/`));for(let e of yu){let t=i.find(t=>(t.path??``)===e);if(t)return Cu(t)}for(let e of yu){let t=e.toLowerCase(),n=i.find(e=>(e.path??``).toLowerCase()===t);if(n)return Cu(n)}let a=[...n].sort((e,t)=>{let n=(e.path??e.slug??``).toLowerCase(),r=(t.path??t.slug??``).toLowerCase();if(n!==r)return n<r?-1:1;let i=e.path??e.slug??``,a=t.path??t.slug??``;return i<a?-1:+(i>a)})[0];return a?Cu(a):null}async function Eu(e,t={}){let n=Math.max(1,t.levels??bu);for(let t=1;t<=n;t+=1){let n=`../`.repeat(t);try{let t=await e(`${n}_manifest.json`);if(!t.ok)continue;let r=await t.json();if(!r||!Array.isArray(r.docs)||r.docs.length===0)continue;let i=Tu(r.docs,r.config??{});if(i?.kind===`route`&&i.slug)return{kind:`href`,href:`${n}index.html#/${i.slug}`,via:`ancestor`}}catch{}}return null}function Du(e){let t=e.replace(/\.(md|mdx|html)$/i,``);return t=t.replace(/^\d+[-_.]/,``),t.toLowerCase()===`readme`||t.toLowerCase()===`index`?`Overview`:t.split(/[-_]+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function Ou(e,t={},n){if(n&&n.length>0)return Au(n);let r=[],i=new Map;for(let n of e){let e=n.replace(/^\.?\//,``),a=e.split(`/`),o=t[e]||{};if(!o.hidden){if(a.length===1){let t=a[0],n=t.replace(/\.(md|mdx)$/i,``),i=n.toLowerCase()===`readme`||n.toLowerCase()===`index`;r.push({id:n,title:o.title||o.sidebar_label||(i?`Overview`:Du(t)),slug:i?`README`:n,path:e,icon:o.icon,badge:o.badge,badgeType:o.badge_type,order:o.order??o.sidebar_position??(i?-999:0),isCategory:!1})}else{let t=``,n=r;for(let e=0;e<a.length-1;e++){let r=a[e];t=t?`${t}/${r}`:r;let o=i.get(t);o||(o={id:t,title:Du(r),order:10,isCategory:!0,collapsed:!1,children:[]},i.set(t,o),n.push(o)),n=o.children}let s=a[a.length-1],c=e.replace(/\.(md|mdx)$/i,``),l=s.replace(/\.(md|mdx)$/i,``).toLowerCase()===`readme`||s.replace(/\.(md|mdx)$/i,``).toLowerCase()===`index`;n.push({id:c,title:o.title||o.sidebar_label||(l?`Overview`:Du(s)),slug:c,path:e,icon:o.icon,badge:o.badge,badgeType:o.badge_type,order:o.order??o.sidebar_position??(l?-100:0),isCategory:!1})}}}return ku(r),r}function ku(e){e.sort((e,t)=>e.order===t.order?e.slug===`README`?-1:t.slug===`README`?1:e.title.localeCompare(t.title):e.order-t.order);for(let t of e)t.children&&t.children.length>0&&ku(t.children)}function Au(e){return e.map((e,t)=>{let n=!!(e.children&&e.children.length>0),r=e.slug||(e.path?e.path.replace(/\.(md|mdx)$/i,``):`item-${t}`);return{id:r,title:e.title||Du(r),slug:n?void 0:r,path:e.path,icon:e.icon,badge:e.badge,badgeType:e.badgeType,order:t,isCategory:n,collapsed:e.collapsed??!1,children:e.children?Au(e.children):void 0}})}var ju=class{embeddedManifest=null;cache=new Map;constructor(){this.checkEmbeddedData()}checkEmbeddedData(){if(typeof window>`u`)return;let e=window.__DOCMEDOWN_DATA__;if(e&&typeof e==`object`&&(e.manifest&&(this.embeddedManifest=e.manifest),e.docs&&typeof e.docs==`object`))for(let[t,n]of Object.entries(e.docs))this.cache.set(t,n),this.cache.set(this.normalizeKey(t),n);try{if(typeof window<`u`&&typeof localStorage<`u`&&(window.location.protocol===`file:`||window.__DOCMEDOWN_OFFLINE__))for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);if(n?.startsWith(`dmd-offline-doc-`)){let t=n.slice(16),r=localStorage.getItem(n);r&&(this.cache.set(t,r),this.cache.set(this.normalizeKey(t),r),e?.docs&&typeof e.docs==`object`&&(e.docs[t]=r))}}}catch{}if(window.__DOCMEDOWN_MANIFEST__&&(this.embeddedManifest=window.__DOCMEDOWN_MANIFEST__),window.__DOCMEDOWN_DOCS__)for(let[e,t]of Object.entries(window.__DOCMEDOWN_DOCS__))this.cache.set(e,t),this.cache.set(this.normalizeKey(e),t);let t=document.getElementById(`dmd-manifest`);if(t?.textContent)try{this.embeddedManifest=JSON.parse(t.textContent)}catch(e){console.warn(`[DocMeDown] Failed to parse embedded manifest:`,e)}let n=document.getElementById(`dmd-docs`);if(n?.textContent)try{let e=JSON.parse(n.textContent);for(let[t,n]of Object.entries(e))this.cache.set(t,n),this.cache.set(this.normalizeKey(t),n)}catch(e){console.warn(`[DocMeDown] Failed to parse embedded docs:`,e)}}getEmbeddedManifest(){return this.embeddedManifest}async fetchManifest(e=``){if(this.embeddedManifest)return this.embeddedManifest;if(typeof window<`u`&&window.location.protocol===`file:`)return null;try{let t=e?`${e.replace(/\/$/,``)}/_manifest.json`:`_manifest.json`,n=await fetch(t);if(n.ok){let e=await n.json();return this.embeddedManifest=e,e}}catch{}return null}peekDocContent(e){if(this.cache.has(e))return this.cache.get(e);let t=this.normalizeKey(e),n=this.cache.get(t);if(n!==void 0)return n;let r=this.embeddedManifest?.docs?.find(e=>this.normalizeKey(e.slug)===t||this.normalizeKey(e.path)===t);if(r?.content)return this.cache.set(t,r.content),r.content}embeddedDocSources(){let e={};for(let[t,n]of this.cache){let r=this.normalizeKey(t);e[r]===void 0&&(e[r]=n)}for(let t of this.embeddedManifest?.docs??[]){let n=this.normalizeKey(t.slug);t.content&&e[n]===void 0&&(e[n]=t.content)}return Object.keys(e).length>0?e:null}async fetchDocContent(e,t=``){if(this.cache.has(e))return this.cache.get(e);let n=this.normalizeKey(e);if(this.cache.has(n))return this.cache.get(n);if(this.embeddedManifest?.docs){let e=this.embeddedManifest.docs.find(e=>this.normalizeKey(e.slug)===n||this.normalizeKey(e.path)===n);if(e?.content)return this.cache.set(n,e.content),e.content}if(typeof window<`u`&&window.location.protocol===`file:`)return null;let r=[`${n}.md`,`${n}.mdx`,`${n}/README.md`,`${n}/index.md`,n===`README`?`README.md`:null,n===`README`?`index.md`:null].filter(Boolean);for(let e of r)try{let r=t?`${t.replace(/\/$/,``)}/${e}`:e,i=await fetch(r);if(i.ok){let e=await i.text();return this.cache.set(n,e),e}}catch{}return null}setDocContent(e,t){this.cache.set(e,t);let n=this.normalizeKey(e);this.cache.set(n,t)}normalizeKey(e){return e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``)}},Mu=class{config;cache=new Map;treeCache=null;constructor(e){this.config=e}getHeaders(){let e={Accept:`application/vnd.github.v3+json, text/plain`};return this.config.token&&(e.Authorization=`token ${this.config.token}`),e}async discoverFiles(){if(!this.config.repo)return[];if(this.treeCache&&Date.now()-this.treeCache.timestamp<3e5)return this.treeCache.files;let e=this.config.branch||`main`,t=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``);try{let n=`https://api.github.com/repos/${this.config.repo}/git/trees/${e}?recursive=1`,r=await fetch(n,{headers:this.getHeaders()});if(r.ok){let e=await r.json();if(Array.isArray(e.tree)){let n=[];for(let r of e.tree)if(r.type===`blob`&&/\.(md|mdx)$/i.test(r.path)&&(!t||r.path.startsWith(`${t}/`))){let e=t?r.path.substring(t.length+1):r.path;n.push(e)}return this.treeCache={files:n,timestamp:Date.now()},n}}}catch(e){console.warn(`[DocMeDown] Failed to fetch GitHub tree API, using fallback files:`,e)}return[`README.md`,`index.md`,`getting-started.md`]}async fetchDocContent(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);if(this.cache.has(t))return this.cache.get(t);let n=this.config.branch||`main`,r=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),i=[`${t}.md`,`${t}.mdx`,`${t}/README.md`,`${t}/index.md`,t===`README`?`README.md`:null].filter(Boolean);for(let e of i){let i=r?`${r}/${e}`:e,a=`https://raw.githubusercontent.com/${this.config.repo}/${n}/${i}`;try{let e=await fetch(a,{headers:this.getHeaders()});if(e.ok){let n=await e.text();return this.cache.set(t,n),n}}catch{}}return null}},Nu=class{config;cache=new Map;constructor(e){this.config=e}getHeaders(){let e={};return this.config.token&&(e[`PRIVATE-TOKEN`]=this.config.token),e}async discoverFiles(){if(!this.config.repo)return[];let e=this.config.branch||`main`,t=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),n=encodeURIComponent(this.config.repo);try{let r=`https://gitlab.com/api/v4/projects/${n}/repository/tree?ref=${e}&recursive=true&per_page=100`,i=await fetch(r,{headers:this.getHeaders()});if(i.ok){let e=await i.json();if(Array.isArray(e)){let n=[];for(let r of e)if(r.type===`blob`&&/\.(md|mdx)$/i.test(r.path)&&(!t||r.path.startsWith(`${t}/`))){let e=t?r.path.substring(t.length+1):r.path;n.push(e)}return n}}}catch(e){console.warn(`[DocMeDown] Failed to fetch GitLab repository tree:`,e)}return[`README.md`,`index.md`]}async fetchDocContent(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);if(this.cache.has(t))return this.cache.get(t);let n=this.config.branch||`main`,r=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),i=encodeURIComponent(this.config.repo||``),a=[`${t}.md`,`${t}.mdx`,`${t}/README.md`,`${t}/index.md`,t===`README`?`README.md`:null].filter(Boolean);for(let e of a){let a=r?`${r}/${e}`:e,o=`https://gitlab.com/api/v4/projects/${i}/repository/files/${encodeURIComponent(a)}/raw?ref=${n}`;try{let e=await fetch(o,{headers:this.getHeaders()});if(e.ok){let n=await e.text();return this.cache.set(t,n),n}}catch{}}return null}};function Pu(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Fu=Pu();function Iu(e){Fu=e}var Lu=/[&<>"']/,Ru=new RegExp(Lu.source,`g`),zu=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Bu=new RegExp(zu.source,`g`),Vu={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Hu=e=>Vu[e];function Uu(e,t){if(t){if(Lu.test(e))return e.replace(Ru,Hu)}else if(zu.test(e))return e.replace(Bu,Hu);return e}var Wu=/(^|[^\[])\^/g;function Gu(e,t){let n=typeof e==`string`?e:e.source;t||=``;let r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Wu,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function Ku(e){try{e=encodeURI(e).replace(/%25/g,`%`)}catch{return null}return e}var qu={exec:()=>null};function Ju(e,t){let n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-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(/\\\|/g,`|`);return n}function Yu(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 Xu(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-1}function Zu(e,t,n,r){let i=t.href,a=t.title?Uu(t.title):null,o=e[1].replace(/\\([\[\]])/g,`$1`);if(e[0].charAt(0)!==`!`){r.state.inLink=!0;let e={type:`link`,raw:n,href:i,title:a,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:`image`,raw:n,href:i,title:a,text:Uu(o)}}function Qu(e,t){let n=e.match(/^(\s+)(?:```)/);if(n===null)return t;let r=n[1];return t.split(`
|
|
8
8
|
`).map(e=>{let t=e.match(/^\s+/);if(t===null)return e;let[n]=t;return n.length>=r.length?e.slice(r.length):e}).join(`
|
|
9
|
-
`)}var
|
|
10
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=
|
|
11
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=
|
|
9
|
+
`)}var $u=class{options;rules;lexer;constructor(e){this.options=e||Fu}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=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:Yu(e,`
|
|
10
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Qu(e,t[3]||``);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(/#$/.test(e)){let t=Yu(e,`#`);(this.options.pedantic||!t||/ $/.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],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:Yu(t[0],`
|
|
11
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Yu(t[0],`
|
|
12
12
|
`).split(`
|
|
13
13
|
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(/^ {0,3}>/.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(`
|
|
14
14
|
`),c=s.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
`,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g,` `),p=l):p=l.replace(/\t/g,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(/[^ ]/)>=d||!l.trim())s+=`
|
|
25
25
|
`+p.slice(d);else{if(u||c.replace(/\t/g,` `).search(/[^ ]/)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
|
|
26
26
|
`+l}!u&&!l.trim()&&(u=!0),r+=f+`
|
|
27
|
-
`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=/^\[[ xX]\] /.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(/^\[[ xX]\] +/,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(/\s+/g,` `),n=t[2]?t[2].replace(/^<(.*)>$/,`$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:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let n=
|
|
28
|
-
`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)/^ *-+: *$/.test(e)?a.align.push(`right`):/^ *:-+: *$/.test(e)?a.align.push(`center`):/^ *:-+ *$/.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(
|
|
29
|
-
`?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:
|
|
30
|
-
]`).replace(`lheading`,
|
|
27
|
+
`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=/^\[[ xX]\] /.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(/^\[[ xX]\] +/,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(/\s+/g,` `),n=t[2]?t[2].replace(/^<(.*)>$/,`$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:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let n=Ju(t[1]),r=t[2].replace(/^\||\| *$/g,``).split(`|`),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,``).split(`
|
|
28
|
+
`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)/^ *-+: *$/.test(e)?a.align.push(`right`):/^ *:-+: *$/.test(e)?a.align.push(`center`):/^ *:-+ *$/.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(Ju(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)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
29
|
+
`?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:Uu(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.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&&/^</.test(e)){if(!/>$/.test(e))return;let t=Yu(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Xu(t[2],`()`);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=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Zu(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer)}}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(/\s+/g,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Zu(n,e,n[0],this.lexer)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&!(r[3]&&n.match(/[\p{L}\p{N}]/u))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g,` `),n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Uu(e,!0),{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){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=Uu(t[1]),n=`mailto:`+e):(e=Uu(t[1]),n=e),{type:`link`,raw:t[0],text:e,href:n,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=Uu(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=Uu(t[0]),n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:Uu(t[0]),{type:`text`,raw:t[0],text:e}}}},ed=/^(?:[ \t]*(?:\n|$))+/,td=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,nd=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,rd=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,id=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ad=/(?:[*+-]|\d{1,9}[.)])/,od=Gu(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ad).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}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),sd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,cd=/^[^\n]+/,ld=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ud=Gu(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,ld).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dd=Gu(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ad).getRegex(),fd=`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`,pd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,md=Gu(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,pd).replace(`tag`,fd).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),hd=Gu(sd).replace(`hr`,rd).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,fd).getRegex(),gd={blockquote:Gu(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,hd).getRegex(),code:td,def:ud,fences:nd,heading:id,hr:rd,html:md,lheading:od,list:dd,newline:ed,paragraph:hd,table:qu,text:cd},_d=Gu(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,rd).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,fd).getRegex(),vd={...gd,table:_d,paragraph:Gu(sd).replace(`hr`,rd).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,_d).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,fd).getRegex()},yd={...gd,html:Gu(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,pd).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:qu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Gu(sd).replace(`hr`,rd).replace(`heading`,` *#{1,6} *[^
|
|
30
|
+
]`).replace(`lheading`,od).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},bd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xd=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Sd=/^( {2,}|\\)\n(?!\s*$)/,Cd=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,wd=`\\p{P}\\p{S}`,Td=Gu(/^((?![*_])[\spunctuation])/,`u`).replace(/punctuation/g,wd).getRegex(),Ed=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Dd=Gu(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,`u`).replace(/punct/g,wd).getRegex(),Od=Gu(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])`,`gu`).replace(/punct/g,wd).getRegex(),kd=Gu(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])`,`gu`).replace(/punct/g,wd).getRegex(),Ad=Gu(/\\([punct])/,`gu`).replace(/punct/g,wd).getRegex(),jd=Gu(/^<(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(),Md=Gu(pd).replace(`(?:-->|$)`,`-->`).getRegex(),Nd=Gu(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Md).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Pd=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Fd=Gu(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace(`label`,Pd).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Id=Gu(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Pd).replace(`ref`,ld).getRegex(),Ld=Gu(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,ld).getRegex(),Rd={_backpedal:qu,anyPunctuation:Ad,autolink:jd,blockSkip:Ed,br:Sd,code:xd,del:qu,emStrongLDelim:Dd,emStrongRDelimAst:Od,emStrongRDelimUnd:kd,escape:bd,link:Fd,nolink:Ld,punctuation:Td,reflink:Id,reflinkSearch:Gu(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Id).replace(`nolink`,Ld).getRegex(),tag:Nd,text:Cd,url:qu},zd={...Rd,link:Gu(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Pd).getRegex(),reflink:Gu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Pd).getRegex()},Bd={...Rd,escape:Gu(bd).replace(`])`,`~|])`).getRegex(),url:Gu(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Vd={...Bd,br:Gu(Sd).replace(`{2,}`,`*`).getRegex(),text:Gu(Bd.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Hd={normal:gd,gfm:vd,pedantic:yd},Ud={normal:Rd,gfm:Bd,breaks:Vd,pedantic:zd},Wd=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Fu,this.options.tokenizer=this.options.tokenizer||new $u,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:Hd.normal,inline:Ud.normal};this.options.pedantic?(t.block=Hd.pedantic,t.inline=Ud.pedantic):this.options.gfm&&(t.block=Hd.gfm,t.inline=this.options.breaks?Ud.breaks:Ud.gfm),this.tokenizer.rules=t}static get rules(){return{block:Hd,inline:Ud}}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(/\r\n|\r/g,`
|
|
31
31
|
`),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.options.pedantic&&(e=e.replace(/\t/g,` `).replace(/^ +$/gm,``));let r,i,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=`
|
|
32
32
|
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&(i.type===`paragraph`||i.type===`text`)?(i.raw+=`
|
|
33
33
|
`+r.raw,i.text+=`
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
`+r.raw,i.text+=`
|
|
38
38
|
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r),n=a.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&i.type===`text`?(i.raw+=`
|
|
39
39
|
`+r.raw,i.text+=`
|
|
40
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,a=e,o,s,c;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)e.includes(o[0].slice(o[0].lastIndexOf(`[`)+1,-1))&&(a=a.slice(0,o.index)+`[`+`a`.repeat(o[0].length-2)+`]`+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+`[`+`a`.repeat(o[0].length-2)+`]`+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,o.index)+`++`+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(s||(c=``),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>(n=r.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type===`text`&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type===`text`&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,c)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&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&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),n.raw.slice(-1)!==`_`&&(c=n.raw.slice(-1)),s=!0,r=t[t.length-1],r&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},
|
|
41
|
-
`;return r?`<pre><code class="language-`+
|
|
42
|
-
`:`<pre><code>`+(n?i:
|
|
40
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,a=e,o,s,c;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)e.includes(o[0].slice(o[0].lastIndexOf(`[`)+1,-1))&&(a=a.slice(0,o.index)+`[`+`a`.repeat(o[0].length-2)+`]`+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+`[`+`a`.repeat(o[0].length-2)+`]`+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,o.index)+`++`+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(s||(c=``),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>(n=r.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type===`text`&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type===`text`&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,c)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&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&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),n.raw.slice(-1)!==`_`&&(c=n.raw.slice(-1)),s=!0,r=t[t.length-1],r&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},Gd=class{options;parser;constructor(e){this.options=e||Fu}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(/^\S*/)?.[0],i=e.replace(/\n$/,``)+`
|
|
41
|
+
`;return r?`<pre><code class="language-`+Uu(r)+`">`+(n?i:Uu(i,!0))+`</code></pre>
|
|
42
|
+
`:`<pre><code>`+(n?i:Uu(i,!0))+`</code></pre>
|
|
43
43
|
`}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return`<hr>
|
|
44
44
|
`}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+`>
|
|
45
45
|
`+r+`</`+i+`>
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
<thead>
|
|
48
48
|
`+t+`</thead>
|
|
49
49
|
`+r+`</table>
|
|
50
|
-
`}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}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>${e}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=
|
|
51
|
-
`+this.renderer.text(i);n+=t?this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o}]}):o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t){t||=this.renderer;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&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`,`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`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}},
|
|
52
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+
|
|
53
|
-
`),n=[],r=[],i=null,a=()=>{r.length&&n.push(
|
|
50
|
+
`}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}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>${e}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Ku(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+t+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n}){let r=Ku(e);if(r===null)return n;e=r;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${t}"`),i+=`>`,i}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}},Kd=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``}},qd=class e{options;renderer;textRenderer;constructor(e){this.options=e||Fu,this.options.renderer=this.options.renderer||new Gd,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Kd}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
|
|
51
|
+
`+this.renderer.text(i);n+=t?this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o}]}):o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t){t||=this.renderer;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&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`,`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`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}},Jd=class{options;block;constructor(e){this.options=e||Fu}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Wd.lex:Wd.lexInline}provideParser(){return this.block?qd.parse:qd.parseInline}},Yd=new class{defaults=Pu();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=qd;Renderer=Gd;TextRenderer=Kd;Lexer=Wd;Tokenizer=$u;Hooks=Jd;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 Gd(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 $u(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 Jd;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]=Jd.passThroughHooks.has(n)?e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let n=i.call(t,e);return a.call(t,n)}:(...e)=>{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 Wd.lex(e,t??this.defaults)}parser(e,t){return qd.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(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`));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?Wd.lex:Wd.lexInline,s=i.hooks?i.hooks.provideParser():e?qd.parse:qd.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
52
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Uu(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Xd(e,t){return Yd.parse(e,t)}Xd.options=Xd.setOptions=function(e){return Yd.setOptions(e),Xd.defaults=Yd.defaults,Iu(Xd.defaults),Xd},Xd.getDefaults=Pu,Xd.defaults=Fu,Xd.use=function(...e){return Yd.use(...e),Xd.defaults=Yd.defaults,Iu(Xd.defaults),Xd},Xd.walkTokens=function(e,t){return Yd.walkTokens(e,t)},Xd.parseInline=Yd.parseInline,Xd.Parser=qd,Xd.parser=qd.parse,Xd.Renderer=Gd,Xd.TextRenderer=Kd,Xd.Lexer=Wd,Xd.lexer=Wd.lex,Xd.Tokenizer=$u,Xd.Hooks=Jd,Xd.parse=Xd,Xd.options,Xd.setOptions,Xd.use,Xd.walkTokens,Xd.parseInline,qd.parse,Wd.lex;var Zd={note:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,tip:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg>`,important:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>`,warning:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>`,caution:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>`};function Qd(e){let t=e.split(`
|
|
53
|
+
`),n=[],r=[],i=null,a=()=>{r.length&&n.push($d(r.join(`
|
|
54
54
|
`))),r=[]};for(let e of t){let t=/^ {0,3}(`{3,}|~{3,})/.exec(e);i?(n.push(e),t&&t[1][0]===i.char&&t[1].length>=i.len&&/^ {0,3}[`~]+\s*$/.test(e)&&(i=null)):t?(a(),i={char:t[1][0],len:t[1].length},n.push(e)):r.push(e)}return a(),n.join(`
|
|
55
|
-
`)}function
|
|
55
|
+
`)}function $d(e){return e.replace(/^((?:>[^\n]*\n?)+)/gm,e=>{let t=e.split(`
|
|
56
56
|
`),n=t[0],r=/^>\s*\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?:\s+(.*))?$/i.exec(n.trim());if(!r)return e;let i=r[1].toLowerCase(),a=r[2]?.trim()||i.toUpperCase(),o=t.slice(1).map(e=>e.replace(/^>\s?/,``)).join(`
|
|
57
57
|
`).trim();return`\n<div class="dmd-callout dmd-callout-${i}">
|
|
58
58
|
<div class="dmd-callout-header">
|
|
59
|
-
<span class="dmd-callout-icon">${
|
|
59
|
+
<span class="dmd-callout-icon">${Zd[i]}</span>
|
|
60
60
|
<span class="dmd-callout-title">${a}</span>
|
|
61
61
|
</div>
|
|
62
62
|
<div class="dmd-callout-body">
|
|
@@ -64,21 +64,21 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
64
64
|
${o}
|
|
65
65
|
|
|
66
66
|
</div>
|
|
67
|
-
</div>\n`})}var $d=d(c(((e,t)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/</g,`<`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){n||={};var r,a;switch(i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return`none`},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,`gi`),``),e.classList.add(`language-`+n)},currentScript:function(){if(typeof document>`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,ee=c;S!==t.tail&&!(d&&ee>=d.reach);ee+=S.value.length,S=S.next){var te=S.value;if(t.length>e.length)return;if(!(te instanceof a)){var ne=1,re;if(v){if(re=o(x,ee,e,_),!re||re.index>=e.length)break;var ie=re.index,ae=re.index+re[0].length,oe=ee;for(oe+=S.value.length;ie>=oe;)S=S.next,oe+=S.value.length;if(oe-=S.value.length,ee=oe,S.value instanceof a)continue;for(var se=S;se!==t.tail&&(oe<ae||typeof se.value==`string`);se=se.next)ne++,oe+=se.value.length;ne--,te=e.slice(ee,oe),re.index-=ee}else if(re=o(x,0,te,_),!re)continue;var ie=re.index,ce=re[0],le=te.slice(0,ie),ue=te.slice(ie+ce.length),de=ee+te.length;d&&de>d.reach&&(d.reach=de);var fe=S.prev;le&&(fe=l(t,fe,le),ee+=le.length),u(t,fe,ne);var pe=new a(f,g?i.tokenize(ce,g):ce,y,ce);if(S=l(t,fe,pe),ue&&l(t,S,ue),ne>1){var me={cause:f+`,`+m,reach:de};s(e,t,n,S.prev,ee,me),d&&me.reach>d.reach&&(d.reach=me.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function d(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}if(!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()},!1)),i;var f=i.util.currentScript();f&&(i.filename=f.src,f.hasAttribute(`data-manual`)&&(i.manual=!0));function p(){i.manual||i.highlightAll()}if(!i.manual){var m=document.readyState;m===`loading`||m===`interactive`&&f&&f.defer?document.addEventListener(`DOMContentLoaded`,p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});t!==void 0&&t.exports&&(t.exports=n),typeof global<`u`&&(global.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(`
|
|
68
|
-
`),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()}))());Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend(`clike`,{"class-name":[Prism.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),Prism.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(`script`,`javascript`),Prism.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),Prism.languages.js=Prism.languages.javascript,(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),(function(e){var t=e.util.clone(e.languages.javascript),n=`(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)`,r=`(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})`,i=`(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})`;function a(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend(`markup`,t),e.languages.jsx.tag.pattern=a(`<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:"(?:\\\\[\\s\\S]|[^\\\\"])*"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>`),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside[`attr-value`].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside[`class-name`]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore(`inside`,`attr-name`,{spread:{pattern:a(`<SPREAD>`),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore(`inside`,`special-attr`,{script:{pattern:a(`=<BRACES>`),alias:`language-javascript`,inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:`punctuation`},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?typeof e==`string`?e:typeof e.content==`string`?e.content:e.content.map(o).join(``):``},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=!1;if(typeof i!=`string`&&(i.type===`tag`&&i.content[0]&&i.content[0].type===`tag`?i.content[0].content[0].content===`</`?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():i.content[i.content.length-1].content===`/>`||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&i.type===`punctuation`&&i.content===`{`?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&i.type===`punctuation`&&i.content===`}`?n[n.length-1].openedBraces--:a=!0),(a||typeof i==`string`)&&n.length>0&&n[n.length-1].openedBraces===0){var c=o(i);r<t.length-1&&(typeof t[r+1]==`string`||t[r+1].type===`plain-text`)&&(c+=o(t[r+1]),t.splice(r+1,1)),r>0&&(typeof t[r-1]==`string`||t[r-1].type===`plain-text`)&&(c=o(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token(`plain-text`,c,null,c)}i.content&&typeof i.content!=`string`&&s(i.content)}};e.hooks.add(`after-tokenize`,function(e){(e.language===`jsx`||e.language===`tsx`)&&s(e.tokens)})})(Prism),(function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend(`jsx`,t),delete e.languages.tsx.parameter,delete e.languages.tsx[`literal-property`];var n=e.languages.tsx.tag;n.pattern=RegExp(`(^|[^\\w$]|(?=<\\/))(?:`+n.pattern.source+`)`,n.pattern.flags),n.lookbehind=!0})(Prism),(function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`parameter`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=e.languages.bash[i[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism),Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:`keyword`}},Prism.languages.webmanifest=Prism.languages.json,(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r=`(?:`+n.source+`(?:[ ]+`+t.source+`)?|`+t.source+`(?:[ ]+`+n.source+`)?)`,i=`(?:[^\\s\\x00-\\x08\\x0e-\\x1f!"#%&'*,\\-:>?@[\\]\`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \\t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*`.replace(/<PLAIN>/g,function(){return`[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]`}),a=`"(?:[^"\\\\\\r\\n]|\\\\.)*"|'(?:[^'\\\\\\r\\n]|\\\\.)*'`;function o(e,t){t=(t||``).replace(/m/g,``)+`m`;var n=`([:\\-,[{]\\s*(?:\\s<<prop>>[ \\t]+)?)(?:<<value>>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))`.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(`([\\-:]\\s*(?:\\s<<prop>>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)`.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:`string`},comment:/#.*/,key:{pattern:RegExp(`((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<<prop>>[ \\t]+)?)<<key>>(?=\\s*:\\s)`.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return`(?:`+i+`|`+a+`)`})),lookbehind:!0,greedy:!0,alias:`atrule`},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:`important`},datetime:{pattern:o(`\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?`),lookbehind:!0,alias:`number`},boolean:{pattern:o(`false|true`,`i`),lookbehind:!0,alias:`important`},null:{pattern:o(`null|~`,`i`),lookbehind:!0,alias:`important`},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(`[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)`,`i`),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(Prism),(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism),(function(e){function t(e){return e=e.replace(/<inner>/g,function(){return`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var n="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",r=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return n}),i=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+r+i+`(?:`+r+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+r+i+`)(?:`+r+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+r+`)`+i+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+r+`$`),inside:{"table-header":{pattern:RegExp(n),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:t(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:t(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function t(e){if(!(!e||typeof e==`string`))for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i.type!==`code`){t(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`);s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase();var c=`language-`+s;o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}}t(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(c(t.content),s,n);else if(n&&n!==`none`&&e.plugins.autoloader){var l=`md-`+new Date().valueOf()+`-`+Math.floor(Math.random()*0x2386f26fc10000);t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,`gi`),o={amp:`&`,lt:`<`,gt:`>`,quot:`"`},s=String.fromCodePoint||String.fromCharCode;function c(e){var t=e.replace(a,``);return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){return t=t.toLowerCase(),t[0]===`#`?s(t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1))):o[t]||e}),t}e.languages.md=e.languages.markdown})(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python;function ef(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}var tf=`__DOCMEDOWN_MERMAID__`,nf=`docmedown-mermaid.js`,rf=``,af=null;function of(e=``){rf=e?`${e.replace(/\/+$/,``)}/`:``}function sf(){return globalThis[tf]}function cf(){return new Promise((e,t)=>{if(typeof document>`u`){t(Error(`DocMeDown: the Mermaid engine can only be loaded in a browser.`));return}let n=`${rf}${nf}`,r=document.querySelector(`script[data-dmd-engine="mermaid"]`);if(r){r.addEventListener(`load`,()=>{let r=sf();r?e(r):t(Error(`DocMeDown: ${n} did not expose ${tf}.`))}),r.addEventListener(`error`,()=>t(Error(`DocMeDown: could not load ${n}`)));return}let i=document.createElement(`script`);i.src=n,i.async=!0,i.dataset.dmdEngine=`mermaid`,i.addEventListener(`load`,()=>{let r=sf();r?e(r):t(Error(`DocMeDown: ${n} did not expose ${tf}.`))}),i.addEventListener(`error`,()=>t(Error(`DocMeDown: could not load ${n}`))),document.head.appendChild(i)})}function lf(){return af||(af=(async()=>sf()||cf())(),af.catch(()=>{af=null}),af)}function uf(e){let t=e.match(/\bviewBox=["']\s*[-+\d.eE]+[\s,]+[-+\d.eE]+[\s,]+([-+\d.eE]+)[\s,]+([-+\d.eE]+)\s*["']/i),n=Number(t?t[1]:e.match(/\bwidth=["']([\d.]+)(?:px)?["']/i)?.[1]),r=Number(t?t[2]:e.match(/\bheight=["']([\d.]+)(?:px)?["']/i)?.[1]);return!Number.isFinite(n)||!Number.isFinite(r)||n<=0||r<=0?null:{width:n,height:r}}function df(e,t,n=!1){if(e.width<=0||e.height<=0||t.width<=0||t.height<=0)return 1;let r=Math.min(t.width/e.width,t.height/e.height);return Math.max(.05,n?r:Math.min(1,r))}function ff(e,t){return{x:Math.max(0,(e.width-t.width)/2),y:Math.max(0,(e.height-t.height)/2)}}function pf(e,t,n){let r={x:e.x+t.x,y:e.y+t.y},i={x:Math.min(n.x,Math.max(-n.x,r.x)),y:Math.min(n.y,Math.max(-n.y,r.y))};return{camera:i,remainder:{x:r.x-i.x,y:r.y-i.y}}}function mf(e){return`\`\`\`mermaid\n${e.trim()}\n\`\`\``}function hf(e,t){let n=e.trim(),r=n.match(/^([^\s[]+)\s*\[([\s\S]*)\]\s*$/);if(r){let e=r[2].trim().replace(/^(["'])([\s\S]*)\1$/,`$2`).trim();return{id:r[1],label:e||r[1]}}let i=n.match(/^["']([\s\S]+)["']$/);return i?{id:`subgraph-${t}`,label:i[1].trim()}:{id:n.split(/\s+/)[0]||`subgraph-${t}`,label:n||`Subgraph ${t+1}`}}function gf(e){let t=e.replace(/\r\n?/g,`
|
|
67
|
+
</div>\n`})}var ef=d(c(((e,t)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/</g,`<`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){n||={};var r,a;switch(i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return`none`},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,`gi`),``),e.classList.add(`language-`+n)},currentScript:function(){if(typeof document>`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,ee=c;S!==t.tail&&!(d&&ee>=d.reach);ee+=S.value.length,S=S.next){var te=S.value;if(t.length>e.length)return;if(!(te instanceof a)){var ne=1,re;if(v){if(re=o(x,ee,e,_),!re||re.index>=e.length)break;var ie=re.index,ae=re.index+re[0].length,oe=ee;for(oe+=S.value.length;ie>=oe;)S=S.next,oe+=S.value.length;if(oe-=S.value.length,ee=oe,S.value instanceof a)continue;for(var se=S;se!==t.tail&&(oe<ae||typeof se.value==`string`);se=se.next)ne++,oe+=se.value.length;ne--,te=e.slice(ee,oe),re.index-=ee}else if(re=o(x,0,te,_),!re)continue;var ie=re.index,ce=re[0],le=te.slice(0,ie),ue=te.slice(ie+ce.length),de=ee+te.length;d&&de>d.reach&&(d.reach=de);var fe=S.prev;le&&(fe=l(t,fe,le),ee+=le.length),u(t,fe,ne);var pe=new a(f,g?i.tokenize(ce,g):ce,y,ce);if(S=l(t,fe,pe),ue&&l(t,S,ue),ne>1){var me={cause:f+`,`+m,reach:de};s(e,t,n,S.prev,ee,me),d&&me.reach>d.reach&&(d.reach=me.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function d(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}if(!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()},!1)),i;var f=i.util.currentScript();f&&(i.filename=f.src,f.hasAttribute(`data-manual`)&&(i.manual=!0));function p(){i.manual||i.highlightAll()}if(!i.manual){var m=document.readyState;m===`loading`||m===`interactive`&&f&&f.defer?document.addEventListener(`DOMContentLoaded`,p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});t!==void 0&&t.exports&&(t.exports=n),typeof global<`u`&&(global.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(`
|
|
68
|
+
`),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()}))());Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend(`clike`,{"class-name":[Prism.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),Prism.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(`script`,`javascript`),Prism.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),Prism.languages.js=Prism.languages.javascript,(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),(function(e){var t=e.util.clone(e.languages.javascript),n=`(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)`,r=`(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})`,i=`(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})`;function a(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend(`markup`,t),e.languages.jsx.tag.pattern=a(`<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:"(?:\\\\[\\s\\S]|[^\\\\"])*"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>`),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside[`attr-value`].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside[`class-name`]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore(`inside`,`attr-name`,{spread:{pattern:a(`<SPREAD>`),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore(`inside`,`special-attr`,{script:{pattern:a(`=<BRACES>`),alias:`language-javascript`,inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:`punctuation`},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?typeof e==`string`?e:typeof e.content==`string`?e.content:e.content.map(o).join(``):``},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=!1;if(typeof i!=`string`&&(i.type===`tag`&&i.content[0]&&i.content[0].type===`tag`?i.content[0].content[0].content===`</`?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():i.content[i.content.length-1].content===`/>`||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&i.type===`punctuation`&&i.content===`{`?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&i.type===`punctuation`&&i.content===`}`?n[n.length-1].openedBraces--:a=!0),(a||typeof i==`string`)&&n.length>0&&n[n.length-1].openedBraces===0){var c=o(i);r<t.length-1&&(typeof t[r+1]==`string`||t[r+1].type===`plain-text`)&&(c+=o(t[r+1]),t.splice(r+1,1)),r>0&&(typeof t[r-1]==`string`||t[r-1].type===`plain-text`)&&(c=o(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token(`plain-text`,c,null,c)}i.content&&typeof i.content!=`string`&&s(i.content)}};e.hooks.add(`after-tokenize`,function(e){(e.language===`jsx`||e.language===`tsx`)&&s(e.tokens)})})(Prism),(function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend(`jsx`,t),delete e.languages.tsx.parameter,delete e.languages.tsx[`literal-property`];var n=e.languages.tsx.tag;n.pattern=RegExp(`(^|[^\\w$]|(?=<\\/))(?:`+n.pattern.source+`)`,n.pattern.flags),n.lookbehind=!0})(Prism),(function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`parameter`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=e.languages.bash[i[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism),Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:`keyword`}},Prism.languages.webmanifest=Prism.languages.json,(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r=`(?:`+n.source+`(?:[ ]+`+t.source+`)?|`+t.source+`(?:[ ]+`+n.source+`)?)`,i=`(?:[^\\s\\x00-\\x08\\x0e-\\x1f!"#%&'*,\\-:>?@[\\]\`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \\t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*`.replace(/<PLAIN>/g,function(){return`[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]`}),a=`"(?:[^"\\\\\\r\\n]|\\\\.)*"|'(?:[^'\\\\\\r\\n]|\\\\.)*'`;function o(e,t){t=(t||``).replace(/m/g,``)+`m`;var n=`([:\\-,[{]\\s*(?:\\s<<prop>>[ \\t]+)?)(?:<<value>>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))`.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(`([\\-:]\\s*(?:\\s<<prop>>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)`.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:`string`},comment:/#.*/,key:{pattern:RegExp(`((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<<prop>>[ \\t]+)?)<<key>>(?=\\s*:\\s)`.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return`(?:`+i+`|`+a+`)`})),lookbehind:!0,greedy:!0,alias:`atrule`},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:`important`},datetime:{pattern:o(`\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?`),lookbehind:!0,alias:`number`},boolean:{pattern:o(`false|true`,`i`),lookbehind:!0,alias:`important`},null:{pattern:o(`null|~`,`i`),lookbehind:!0,alias:`important`},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(`[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)`,`i`),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(Prism),(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism),(function(e){function t(e){return e=e.replace(/<inner>/g,function(){return`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var n="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",r=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return n}),i=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+r+i+`(?:`+r+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+r+i+`)(?:`+r+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+r+`)`+i+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+r+`$`),inside:{"table-header":{pattern:RegExp(n),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:t(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:t(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function t(e){if(!(!e||typeof e==`string`))for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i.type!==`code`){t(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`);s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase();var c=`language-`+s;o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}}t(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(c(t.content),s,n);else if(n&&n!==`none`&&e.plugins.autoloader){var l=`md-`+new Date().valueOf()+`-`+Math.floor(Math.random()*0x2386f26fc10000);t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,`gi`),o={amp:`&`,lt:`<`,gt:`>`,quot:`"`},s=String.fromCodePoint||String.fromCharCode;function c(e){var t=e.replace(a,``);return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){return t=t.toLowerCase(),t[0]===`#`?s(t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1))):o[t]||e}),t}e.languages.md=e.languages.markdown})(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python;function tf(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}var nf=`__DOCMEDOWN_MERMAID__`,rf=`docmedown-mermaid.js`,af=``,of=null;function sf(e=``){af=e?`${e.replace(/\/+$/,``)}/`:``}function cf(){return globalThis[nf]}function lf(){return new Promise((e,t)=>{if(typeof document>`u`){t(Error(`DocMeDown: the Mermaid engine can only be loaded in a browser.`));return}let n=`${af}${rf}`,r=document.querySelector(`script[data-dmd-engine="mermaid"]`);if(r){r.addEventListener(`load`,()=>{let r=cf();r?e(r):t(Error(`DocMeDown: ${n} did not expose ${nf}.`))}),r.addEventListener(`error`,()=>t(Error(`DocMeDown: could not load ${n}`)));return}let i=document.createElement(`script`);i.src=n,i.async=!0,i.dataset.dmdEngine=`mermaid`,i.addEventListener(`load`,()=>{let r=cf();r?e(r):t(Error(`DocMeDown: ${n} did not expose ${nf}.`))}),i.addEventListener(`error`,()=>t(Error(`DocMeDown: could not load ${n}`))),document.head.appendChild(i)})}function uf(){return of||(of=(async()=>cf()||lf())(),of.catch(()=>{of=null}),of)}function df(e){let t=e.match(/\bviewBox=["']\s*[-+\d.eE]+[\s,]+[-+\d.eE]+[\s,]+([-+\d.eE]+)[\s,]+([-+\d.eE]+)\s*["']/i),n=Number(t?t[1]:e.match(/\bwidth=["']([\d.]+)(?:px)?["']/i)?.[1]),r=Number(t?t[2]:e.match(/\bheight=["']([\d.]+)(?:px)?["']/i)?.[1]);return!Number.isFinite(n)||!Number.isFinite(r)||n<=0||r<=0?null:{width:n,height:r}}function ff(e,t,n=!1){if(e.width<=0||e.height<=0||t.width<=0||t.height<=0)return 1;let r=Math.min(t.width/e.width,t.height/e.height);return Math.max(.05,n?r:Math.min(1,r))}function pf(e,t){return{x:Math.max(0,(e.width-t.width)/2),y:Math.max(0,(e.height-t.height)/2)}}function mf(e,t,n){let r={x:e.x+t.x,y:e.y+t.y},i={x:Math.min(n.x,Math.max(-n.x,r.x)),y:Math.min(n.y,Math.max(-n.y,r.y))};return{camera:i,remainder:{x:r.x-i.x,y:r.y-i.y}}}function hf(e){return`\`\`\`mermaid\n${e.trim()}\n\`\`\``}function gf(e,t){let n=e.trim(),r=n.match(/^([^\s[]+)\s*\[([\s\S]*)\]\s*$/);if(r){let e=r[2].trim().replace(/^(["'])([\s\S]*)\1$/,`$2`).trim();return{id:r[1],label:e||r[1]}}let i=n.match(/^["']([\s\S]+)["']$/);return i?{id:`subgraph-${t}`,label:i[1].trim()}:{id:n.split(/\s+/)[0]||`subgraph-${t}`,label:n||`Subgraph ${t+1}`}}function _f(e){let t=e.replace(/\r\n?/g,`
|
|
69
69
|
`).split(`
|
|
70
|
-
`),n=[],r=[];return t.forEach((e,i)=>{let a=e.match(/^\s*subgraph\s+(.+?)\s*$/i);if(a){n.push({startLine:i,...
|
|
71
|
-
`),startLine:e.startLine})}}),r.sort((e,t)=>e.startLine-t.startLine)}function
|
|
70
|
+
`),n=[],r=[];return t.forEach((e,i)=>{let a=e.match(/^\s*subgraph\s+(.+?)\s*$/i);if(a){n.push({startLine:i,...gf(a[1],i)});return}if(/^\s*end\s*;?\s*$/i.test(e)){let e=n.pop();if(!e)return;r.push({id:e.id,label:e.label,source:t.slice(e.startLine,i+1).join(`
|
|
71
|
+
`),startLine:e.startLine})}}),r.sort((e,t)=>e.startLine-t.startLine)}function vf(e,t){let n=e.replace(/\r\n?/g,`
|
|
72
72
|
`).split(`
|
|
73
73
|
`).find(e=>/^\s*(?:graph|flowchart)\s+\S+/i.test(e)),r=t.replace(/\r\n?/g,`
|
|
74
74
|
`).split(`
|
|
75
75
|
`),i=Math.min(...r.filter(e=>e.trim()).map(e=>e.match(/^\s*/)?.[0].length??0)),a=r.map(e=>e.slice(i)).join(`
|
|
76
|
-
`);return
|
|
76
|
+
`);return hf(`${n?.trim()||`flowchart TD`}\n${a.trim()}`)}var yf=`ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif`,bf=`ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace`,xf={atlas:{light:{canvas:`#f7f7f5`,surface:`#ffffff`,surfaceRaised:`#f0f0ec`,ink:`#1a2332`,inkSecondary:`#4d5a6e`,rule:`#e0e1db`,accent:`#315cf5`,codeSurface:`#0f172a`,codeInk:`#e2e8f0`,fontFamily:yf},dark:{canvas:`#0f1620`,surface:`#16202e`,surfaceRaised:`#1c2836`,ink:`#edf1f6`,inkSecondary:`#a7b4c5`,rule:`#2a3949`,accent:`#6b93ff`,codeSurface:`#0a101a`,codeInk:`#dbe4ee`,fontFamily:yf}},blueprint:{light:{canvas:`#f2f5f7`,surface:`#fafcfd`,surfaceRaised:`#e8edf0`,ink:`#14212b`,inkSecondary:`#45606f`,rule:`#c6d3da`,accent:`#ef5340`,codeSurface:`#101b23`,codeInk:`#ccdae2`,fontFamily:yf},dark:{canvas:`#0f171e`,surface:`#121c24`,surfaceRaised:`#182731`,ink:`#dbe6ec`,inkSecondary:`#92aab8`,rule:`#24363f`,accent:`#ff6a55`,codeSurface:`#0a1116`,codeInk:`#cadbe4`,fontFamily:yf}},terminal:{light:{canvas:`#f3f4f1`,surface:`#fbfcfa`,surfaceRaised:`#e9ebe6`,ink:`#161c17`,inkSecondary:`#4a564d`,rule:`#c9cdc3`,accent:`#0c7c40`,codeSurface:`#0a0e0b`,codeInk:`#cfe8d4`,fontFamily:bf},dark:{canvas:`#0a0e0c`,surface:`#0e130f`,surfaceRaised:`#151d17`,ink:`#d8e6d8`,inkSecondary:`#93a794`,rule:`#26382a`,accent:`#39e87f`,codeSurface:`#060907`,codeInk:`#cde9d3`,fontFamily:bf}},editorial:{light:{canvas:`#faf6ee`,surface:`#fffdf7`,surfaceRaised:`#f2ecdf`,ink:`#22201a`,inkSecondary:`#665e4c`,rule:`#ded2ba`,accent:`#a34a33`,codeSurface:`#211d15`,codeInk:`#e8e0ce`,fontFamily:`Iowan Old Style, Palatino Linotype, Palatino, Georgia, serif`},dark:{canvas:`#171512`,surface:`#1c1915`,surfaceRaised:`#26221b`,ink:`#ece7db`,inkSecondary:`#b0a78f`,rule:`#363023`,accent:`#dd805f`,codeSurface:`#100e0a`,codeInk:`#e3dbc9`,fontFamily:`Iowan Old Style, Palatino Linotype, Palatino, Georgia, serif`}}};function Sf(e,t,n){let r=n??xf[e][t],i={darkMode:t===`dark`,background:r.canvas,fontFamily:r.fontFamily,fontSize:`15px`,primaryColor:r.surface,primaryTextColor:r.ink,primaryBorderColor:e===`terminal`?r.accent:r.rule,secondaryColor:r.surfaceRaised,secondaryTextColor:r.ink,secondaryBorderColor:r.rule,tertiaryColor:r.surfaceRaised,tertiaryTextColor:r.inkSecondary,tertiaryBorderColor:r.rule,lineColor:r.accent,textColor:r.ink,edgeLabelBackground:r.canvas,clusterBkg:r.surfaceRaised,clusterBorder:r.rule,titleColor:r.ink,actorBkg:r.surface,actorTextColor:r.ink,actorBorder:r.rule,actorLineColor:r.rule,signalColor:r.inkSecondary,signalTextColor:r.ink,labelBoxBkgColor:r.surfaceRaised,labelBoxBorderColor:r.rule,labelTextColor:r.ink,loopTextColor:r.inkSecondary,noteBkgColor:r.surfaceRaised,noteTextColor:r.ink,noteBorderColor:r.rule,activationBkgColor:r.surfaceRaised,activationBorderColor:r.accent,sequenceNumberColor:r.codeInk,mainBkg:r.surface,nodeBorder:r.rule,git0:r.accent,git1:r.inkSecondary,git2:r.accent,pie1:r.accent,pie2:r.inkSecondary,pie3:r.rule,pieSectionTextColor:r.ink,pieStrokeColor:r.rule};return{startOnLoad:!1,securityLevel:`strict`,suppressErrorRendering:!0,htmlLabels:!1,theme:`base`,fontFamily:r.fontFamily,themeVariables:i,flowchart:{useMaxWidth:!0,htmlLabels:!1,curve:`basis`,nodeSpacing:55,rankSpacing:65,padding:14,diagramPadding:10},sequence:{useMaxWidth:!0,diagramMarginX:24,diagramMarginY:16,boxMargin:10,mirrorActors:!1}}}function Cf(e){let t=new TextEncoder().encode(e),n=``;return t.forEach(e=>{n+=String.fromCharCode(e)}),btoa(n)}function wf(e){let t=atob(e),n=Uint8Array.from(t,e=>e.charCodeAt(0));return new TextDecoder().decode(n)}var Tf=[`atlas`,`blueprint`,`terminal`,`editorial`];function Ef(){let e=`atlas`;if(typeof document>`u`)return{family:e,mode:`light`,tokens:xf[e].light};let t=document.documentElement,n=t.getAttribute(`data-dmd-theme`),r=n&&Tf.includes(n)?n:e,i=t.getAttribute(`data-theme`)===`dark`?`dark`:`light`,a=xf[r][i],o=a;if(typeof getComputedStyle==`function`){let e=getComputedStyle(t),n=t=>e.getPropertyValue(t).trim();o={...a,...n(`--dmd-accent`)?{accent:n(`--dmd-accent`)}:{},...n(`--dmd-code-bg`)?{codeSurface:n(`--dmd-code-bg`)}:{},...n(`--dmd-code-text`)?{codeInk:n(`--dmd-code-text`)}:{}}}return{family:r,mode:i,tokens:o}}var Df=0,Of=Promise.resolve();async function kf(e,t,n,r){let i=await uf(),a=Of.then(async()=>{i.initialize(Sf(t,n,r)),await i.parse(e);let a=`dmd-diagram-svg-${Date.now().toString(36)}-${Df++}`,{svg:o}=await i.render(a,e);return o});return Of=a.then(()=>void 0,()=>void 0),a}var Af=`<svg class="dmd-table-caption-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><path d="M3 9h18"/><path d="M3 15h18"/><path d="M9 3v18"/><path d="M15 3v18"/></svg>`,jf=`<svg class="copy-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,Mf=`<svg class="check-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>`,Nf=`<svg class="dmd-table-copy-chevron" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>`,Pf=[{id:`markdown`,label:`Markdown`,badge:`MD`,description:`For documents`},{id:`html`,label:`HTML`,badge:`<>`,description:`For web pages`},{id:`csv`,label:`CSV`,badge:`CSV`,description:`For spreadsheets`}];function Ff(e){return e?` data-align="${e}"`:``}function If(e){let{header:t,rows:n,caption:r}=e,i=t?.length?`<thead><tr>${t.map(e=>`<th${Ff(e.align)}>${e.html}</th>`).join(``)}</tr></thead>`:``,a=`<tbody>${n.map(e=>`<tr>${e.map(e=>`<td${Ff(e.align)}>${e.html}</td>`).join(``)}</tr>`).join(``)}</tbody>`,o=Pf.map(e=>`<button type="button" class="dmd-table-copy-item" role="menuitem" tabindex="-1" data-dmd-table-copy="${e.id}" title="Copy as ${e.label} (${e.description.toLowerCase()})"><span class="dmd-table-copy-format">${e.badge}</span><span class="dmd-table-copy-text"><span class="dmd-table-copy-name">${e.label}</span><span class="dmd-table-copy-description">${e.description}</span></span></button>`).join(``),s=Math.max(t?.length??0,...n.map(e=>e.length),0),c=`${n.length} ${n.length===1?`row`:`rows`} · ${s} ${s===1?`column`:`columns`}`;return`
|
|
77
77
|
<div class="dmd-table-block" data-dmd-table>
|
|
78
78
|
<div class="dmd-table-toolbar">
|
|
79
|
-
<span class="dmd-table-caption">${
|
|
79
|
+
<span class="dmd-table-caption">${Af}${r?`<span class="dmd-table-caption-text">${tf(r)}</span>`:``}<span class="dmd-table-dimensions">${c}</span></span>
|
|
80
80
|
<div class="dmd-table-copy">
|
|
81
|
-
<button type="button" class="dmd-table-copy-btn" data-dmd-table-toggle aria-haspopup="menu" aria-expanded="false" title="Copy table (Markdown, HTML, CSV)">${
|
|
81
|
+
<button type="button" class="dmd-table-copy-btn" data-dmd-table-toggle aria-haspopup="menu" aria-expanded="false" title="Copy table (Markdown, HTML, CSV)">${jf}${Mf}<span class="dmd-table-copy-btn-text">Copy</span><span class="dmd-table-copy-label dmd-sr-only">Copy table</span>${Nf}</button>
|
|
82
82
|
<div class="dmd-table-copy-menu" role="menu" aria-label="Copy table as" hidden>${o}</div>
|
|
83
83
|
<span class="dmd-sr-only" data-dmd-table-status role="status" aria-live="polite"></span>
|
|
84
84
|
</div>
|
|
@@ -90,28 +90,28 @@ ${o}
|
|
|
90
90
|
</table>
|
|
91
91
|
</div>
|
|
92
92
|
</div>
|
|
93
|
-
`}var
|
|
93
|
+
`}var Lf={comma:`,`,semicolon:`;`,tab:` `,pipe:`|`};function Rf(e,t){return e?Lf[e.toLowerCase()]||(e===`\\t`?` `:e.length===1?e:t):t}function zf(e){let t=e.split(/\r?\n/).find(e=>e.trim()!==``)??``,n=`,`,r=0;for(let e of[`,`,`;`,` `,`|`]){let i=t.split(e).length-1;i>r&&(n=e,r=i)}return n}function Bf(e,t=`,`){let n=[],r=[],i=``,a=!1,o=!1,s=()=>{r.push(i),i=``},c=()=>{s(),(r.some(e=>e.trim()!==``)||r.length>1)&&n.push(r),r=[],o=!1};for(let n=0;n<e.length;n++){let r=e[n];if(a){r===`"`?e[n+1]===`"`?(i+=`"`,n++):a=!1:i+=r;continue}r===`"`&&i===``?(a=!0,o=!0):r===t?(s(),o=!0):r===`
|
|
94
94
|
`||r===`\r`?(r===`\r`&&e[n+1]===`
|
|
95
|
-
`&&n++,c()):(i+=r,o=!0)}return(o||i!==``||r.length>0)&&c(),n}function
|
|
96
|
-
`)}function
|
|
97
|
-
`)}function
|
|
95
|
+
`&&n++,c()):(i+=r,o=!0)}return(o||i!==``||r.length>0)&&c(),n}function Vf(e,t){let n=RegExp(`\\b${t}=(?:"([^"]*)"|'([^']*)')`).exec(e);return n?n[1]??n[2]:RegExp(`\\b${t}=([^\\s"']+)`).exec(e)?.[1]}var Hf=/^[-+]?(?:\d{1,3}(?:[,_]\d{3})+|\d+)?(?:\.\d+)?%?$/;function Uf(e){let t=e.map(e=>e.trim()).filter(e=>e!==``);return t.length>0&&t.every(e=>Hf.test(e)&&/\d/.test(e))}function Wf(e,t,n,r){let i=Vf(t,`delimiter`),a=Bf(e,n===`tsv`?Rf(i,` `):i?Rf(i,`,`):zf(e)),o=Vf(t,`header`)?.toLowerCase()!==`false`,s=Vf(t,`markdown`)?.toLowerCase()===`true`,c=Vf(t,`title`);if(a.length===0)return If({header:null,rows:[],caption:c});let l=Math.max(...a.map(e=>e.length)),u=a.map(e=>[...e,...Array(l-e.length).fill(``)]),d=o?u[0]??null:null,f=o?u.slice(1):u,p=Array.from({length:l},(e,t)=>Uf(f.map(e=>e[t]))?`right`:null),m=e=>s?r(e):tf(e);return If({header:d?d.map((e,t)=>({html:m(e),align:p[t]})):null,rows:f.map(e=>e.map((e,t)=>({html:m(e),align:p[t]}))),caption:c})}function Gf(e){return Math.max(e.headers.length,...e.rows.map(e=>e.length),0)}function Kf(e,t){return Array.from({length:t},(t,n)=>e[n]??``)}function qf(e){let t=e=>/[",\r\n]/.test(e)?`"${e.replace(/"/g,`""`)}"`:e,n=Gf(e),r=[];e.headers.length&&r.push(Kf(e.headers,n));for(let t of e.rows)r.push(Kf(t,n));return r.map(e=>e.map(t).join(`,`)).join(`
|
|
96
|
+
`)}function Jf(e){let t=Gf(e),n=e=>e.replace(/\|/g,`\\|`).replace(/\r?\n/g,`<br>`).trim(),r=e=>`| ${Kf(e,t).map(n).join(` | `)} |`,i=Array.from({length:t},(t,n)=>{let r=e.aligns[n];return r===`center`?`:---:`:r===`right`?`---:`:r===`left`?`:---`:`---`});return[r(e.headers),`| ${i.join(` | `)} |`,...e.rows.map(r)].join(`
|
|
97
|
+
`)}function Yf(e){let t=Gf(e),n=t=>e.aligns[t]?` style="text-align: ${e.aligns[t]}"`:``,r=(e,r)=>` <tr>\n${Kf(r,t).map((t,r)=>` <${e}${n(r)}>${tf(t)}</${e}>`).join(`
|
|
98
98
|
`)}\n </tr>`;return`<table>\n${e.headers.length?` <thead>\n${r(`th`,e.headers)}\n </thead>\n`:``}${` <tbody>\n${e.rows.map(e=>r(`td`,e)).join(`
|
|
99
|
-
`)}\n </tbody>`}\n</table>`}function
|
|
99
|
+
`)}\n </tbody>`}\n</table>`}function Xf(e,t){return t===`csv`?qf(e):t===`html`?Yf(e):Jf(e)}function Zf(e){let t=e=>(e.textContent??``).replace(/\s+/g,` `).trim(),n=e=>{let t=e.getAttribute(`data-align`);return t===`left`||t===`center`||t===`right`?t:null},r=e.querySelector(`thead tr`),i=r?Array.from(r.children).map(t):[],a=r?Array.from(r.children).map(n):Array.from(e.querySelector(`tbody tr`)?.children??[]).map(n);return{headers:i,rows:Array.from(e.querySelectorAll(`tbody tr`)).map(e=>Array.from(e.children).map(t)),aligns:a}}ef.default.languages.svelte={script:{pattern:/(<script\b[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,greedy:!0,inside:ef.default.languages.javascript},style:{pattern:/(<style\b[^>]*>)[\s\S]*?(?=<\/style>)/i,lookbehind:!0,greedy:!0,inside:ef.default.languages.css},comment:/<!--[\s\S]*?-->/,"svelte-directive":{pattern:/<\/?svelte:[\w-]+(?:\s+(?:[^>"']|"[^"]*"|'[^']*')*)?\/?>(?=\s|$)/i,greedy:!0,inside:ef.default.languages.markup},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s+(?:[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?))*\s*\/?>/,greedy:!0,inside:ef.default.languages.markup},interpolation:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,greedy:!0,inside:ef.default.languages.javascript}};function Qf(e){return`<div class="dmd-diagram-host" data-dmd-diagram="${Cf(e)}"></div>`}var $f={js:`javascript`,ts:`typescript`,py:`python`,sh:`bash`,shell:`bash`,zsh:`bash`,yml:`yaml`,md:`markdown`,rs:`rust`,golang:`go`,kt:`kotlin`,rb:`ruby`,cs:`csharp`,"c++":`cpp`,"c#":`csharp`,gql:`graphql`},ep={ts:`#3178c6`,tsx:`#3178c6`,js:`#f7df1e`,jsx:`#f7df1e`,mjs:`#f7df1e`,cjs:`#f7df1e`,css:`#a855f7`,scss:`#a855f7`,less:`#a855f7`,html:`#f97316`,htm:`#f97316`,json:`#eab308`,jsonc:`#eab308`,yaml:`#ef4444`,yml:`#ef4444`,md:`#94a3b8`,markdown:`#94a3b8`,py:`#3b82f6`,sh:`#22c55e`,bash:`#22c55e`,zsh:`#22c55e`,rs:`#f97316`,go:`#38bdf8`,svelte:`#ff3e00`,vue:`#42b883`,svg:`#a855f7`,xml:`#f97316`,sql:`#a78bfa`,graphql:`#a855f7`,gql:`#a855f7`,dockerfile:`#38bdf8`,txt:`#64748b`,toml:`#94a3b8`,ini:`#94a3b8`},tp={typescript:ep.ts,javascript:ep.js,jsx:ep.jsx,tsx:ep.tsx,python:ep.py,bash:ep.sh,css:ep.css,scss:ep.scss,json:ep.json,jsonc:ep.json,yaml:ep.yaml,markdown:ep.md,html:ep.html,sql:ep.sql,svelte:ep.svelte,go:ep.go,rust:ep.rs,graphql:ep.graphql,xml:ep.xml,toml:ep.toml};function np(e){let t=e.trim().toLowerCase();return $f[t]||t}function rp(e,t,n){let r=np(e);ef.default.languages[r]=t,n&&(tp[r]=n,ep[r]=n)}function ip(e,t=``){let n=np(t);if(n===`mermaid`)return Qf(e);if(!n||n===`text`||n===`plain`||n===`txt`)return tf(e);let r=ef.default.languages[n];return r?ef.default.highlight(e,r,n):tf(e)}var ap=`<svg class="dmd-code-file-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`;function op(e){let t=e.replace(/\\/g,`/`),n=t.lastIndexOf(`/`);if(n===-1)return`<span class="dmd-code-filename" style="color:${ep[t.includes(`.`)?t.split(`.`).pop().toLowerCase():``]||`#94a3b8`}">${ap}${tf(t)}</span>`;let r=t.slice(0,n+1),i=t.slice(n+1),a=ep[i.includes(`.`)?i.split(`.`).pop().toLowerCase():``]||`#94a3b8`;return`<span class="dmd-code-path">${tf(r)}</span><span class="dmd-code-filename" style="color:${a}">${ap}${tf(i)}</span>`}var sp=`<svg class="copy-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,cp=`<svg class="copy-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/><line x1="12" y1="12" x2="18" y2="12" stroke-width="2"/><line x1="12" y1="16" x2="16" y2="16" stroke-width="2"/></svg>`,lp=`<svg class="check-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>`;function up(e,t=``){let n=np(t.trim().split(/\s+/)[0]||`text`)||`text`,r=``,i=t.match(/title=["']([^"']+)["']/);if(i&&(r=i[1]),n.toLowerCase()===`mermaid`)return Qf(e);if(n===`csv`||n===`tsv`)return Wf(e,t,n,e=>Xd.parseInline(e));function a(e,t,n){let r=5381,i=`${t}:${n}:${e}`;for(let e=0;e<i.length;e++)r=(r<<5)+r^i.charCodeAt(e);return`code-${(r>>>0).toString(36)}`}let o=ip(e,n),s=a(e,n,t),c=dp(t),l=c.size>0,u=tp[n];return`
|
|
100
100
|
<div class="dmd-code-block-wrapper" data-lang="${n}">
|
|
101
101
|
<div class="dmd-code-header">
|
|
102
|
-
<div class="dmd-code-header-left">${r?`<span class="dmd-code-title">${
|
|
102
|
+
<div class="dmd-code-header-left">${r?`<span class="dmd-code-title">${op(r)}</span>`:`<span class="dmd-code-lang"${u?` style="--dmd-lang-color:${u}"`:``}>${n.toUpperCase()}</span>`}</div>
|
|
103
103
|
<div class="dmd-code-header-right">
|
|
104
|
-
${l?`<button type="button" class="dmd-copy-btn dmd-copy-selected-btn" data-dmd-copy-selected aria-label="Copy highlighted lines" title="Copy highlighted lines">${
|
|
105
|
-
<button type="button" class="dmd-copy-btn" data-dmd-copy aria-label="Copy code" title="Copy code">${
|
|
104
|
+
${l?`<button type="button" class="dmd-copy-btn dmd-copy-selected-btn" data-dmd-copy-selected aria-label="Copy highlighted lines" title="Copy highlighted lines">${cp}${lp}</button>`:``}
|
|
105
|
+
<button type="button" class="dmd-copy-btn" data-dmd-copy aria-label="Copy code" title="Copy code">${sp}${lp}</button>
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
108
|
-
<pre class="language-${n}" tabindex="0"><code id="${s}" class="language-${n}">${
|
|
108
|
+
<pre class="language-${n}" tabindex="0"><code id="${s}" class="language-${n}">${fp(o,c)}</code></pre>
|
|
109
109
|
</div>
|
|
110
|
-
`}function
|
|
111
|
-
`);d=t;for(let e=0;e<n.length;e++)e>0&&(u(),l()),n[e]!==``&&(r+=n[e],i=!0)}return i||c.length>0?u():n.length=o,n.join(``)}function
|
|
110
|
+
`}function dp(e){let t=new Set,n=/\{([\d\s,-]+)\}/.exec(e);if(!n)return t;for(let e of n[1].split(`,`)){let[n,r]=e.split(`-`).map(e=>Number.parseInt(e.trim(),10));if(Number.isNaN(n))continue;let i=r===void 0||Number.isNaN(r)?n:r;for(let e=Math.max(1,n);e<=i;e++)t.add(e)}return t}function fp(e,t=new Set){let n=[],r=``,i=!1,a=1,o=0,s=!1,c=[],l=()=>{o=n.length,i=!1,r=``,s=c.length>0,n.push(`<span class="dmd-code-line${t.has(a)?` dmd-code-line-active`:``}">`);for(let e of c)n.push(e)},u=()=>{s||(r=pp(r));for(let e=0;e<c.length;e++)r+=`</span>`;n.push(r,`</span>`),a++};l();let d=0;for(;d<e.length;)if(e[d]===`<`){let t=e.indexOf(`>`,d);if(t===-1){r+=e.slice(d),i=!0;break}let n=e.slice(d,t+1);d=t+1,r+=n,n.startsWith(`</`)?c.pop():c.push(n)}else{let t=e.indexOf(`<`,d);t===-1&&(t=e.length);let n=e.slice(d,t).split(`
|
|
111
|
+
`);d=t;for(let e=0;e<n.length;e++)e>0&&(u(),l()),n[e]!==``&&(r+=n[e],i=!0)}return i||c.length>0?u():n.length=o,n.join(``)}function pp(e){let t=0,n=``;for(;t<e.length;)if(e[t]===` `)n+=`<span class="dmd-ws-space"> </span>`,t++;else if(e[t]===` `)n+=`<span class="dmd-ws-tab"> </span>`,t++;else break;return t>0?n+e.slice(t):e}var mp=new Set([`badge`,`button`,`kbd`]),hp=mp,gp=/<([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)(\/?)>/g,_p=/<(\/?)([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)(\/?)>/g,vp=/<\/([A-Z][A-Za-z0-9]*)\s*>/g;function yp(e,t){let n=t.flags.includes(`g`)?t.flags:`${t.flags}g`,r=new RegExp(t.source,n),i=[],a=r.exec(e);for(;a!==null;)i.push([a.index,a.index+a[0].length]),a=r.exec(e);return i}function bp(e,t){for(let n=0;n<t.length;n++)if(e>=t[n][0]&&e<t[n][1])return!0;return!1}function xp(e){return[...yp(e,/(`{3,})[\s\S]*?\1/g),...yp(e,/(~{3,})[\s\S]*?\1/g),...yp(e,/(`+)[\s\S]*?\1/g)]}function Sp(e,t,n){gp.lastIndex=t;let r;for(;;){if(r=gp.exec(e),r===null)return null;if(!bp(r.index,n)&&!mp.has(r[1].toLowerCase()))return{tag:r[1],full:r[0],start:r.index,end:r.index+r[0].length,selfClosing:r[3]===`/`}}}function Cp(e,t,n){let r=1;_p.lastIndex=t.end;let i;for(;i=_p.exec(e),i!==null;)if(!bp(i.index,n)&&i[2]===t.tag&&i[4]!==`/`){if(i[1]===`/`){if(--r,r===0)return{full:i[0],start:i.index,end:i.index+i[0].length}}else r+=1}for(vp.lastIndex=t.end;;){if(i=vp.exec(e),i===null)return null;if(!bp(i.index,n)&&i[1].toLowerCase()===t.tag.toLowerCase())return{full:i[0],start:i.index,end:i.index+i[0].length}}}function wp(e){let t=e.split(`
|
|
112
112
|
`),n=null;for(let e of t){if(e.trim()===``)continue;let t=/^( +)/.exec(e);if(!t){n=0;break}let r=t[1].length;n=n===null?r:Math.min(n,r)}if(!n)return e;let r=` `.repeat(n);return t.map(e=>e.startsWith(r)?e.slice(n):e).join(`
|
|
113
|
-
`)}function
|
|
114
|
-
`).replace(/\n+$/,``),s=/(`{3,})[^\n]*\n[\s\S]*?\1|(~{3,})[^\n]*\n[\s\S]*?\2/g;if(!s.test(i))return o(i);let c=e=>{let t=/^(`{3,}|~{3,})([^\n]*)\n([\s\S]*?)\1\s*$/.exec(e);return t?
|
|
113
|
+
`)}function Tp(e,t,n,r){if(!e?.trim())return e;let i=wp(e).trim(),a=hp.has(t.toLowerCase()),o=e=>(a?Xd.parseInline(e,{renderer:n,gfm:!0,breaks:!1}):Xd.parse(e,{renderer:n,gfm:!0,breaks:!1})).replace(/\n{2,}/g,`
|
|
114
|
+
`).replace(/\n+$/,``),s=/(`{3,})[^\n]*\n[\s\S]*?\1|(~{3,})[^\n]*\n[\s\S]*?\2/g;if(!s.test(i))return o(i);let c=e=>{let t=/^(`{3,}|~{3,})([^\n]*)\n([\s\S]*?)\1\s*$/.exec(e);return t?up(t[3].replace(/\n$/,``),t[2].trim()):e},l=``,u=0;s.lastIndex=0;let d=s.exec(i);for(;d!==null;)l+=o(i.slice(u,d.index)),l+=`\n@@DMD-FENCE-${r.length}@@\n`,r.push(c(d[0])),u=d.index+d[0].length,d=s.exec(i);return l+=o(i.slice(u)),l}var Ep=/(?:<p>)?\s*@@DMD-FENCE-(\d+)@@\s*(?:<\/p>)?/g;function Dp(e,t){return t.length===0||!e?.includes(`@@DMD-FENCE-`)?e:e.replace(Ep,(e,n)=>t[Number(n)]??``)}function Op(e,t,n,r){let i=xp(e),a=``,o=0;for(;;){let s=Sp(e,o,i);if(s===null){let i=e.slice(o);a+=t===null?i:Tp(i,t,n,r);break}let c=e.slice(o,s.start);if(a+=t===null?c:Tp(c,t,n,r),s.selfClosing){a+=s.full,o=s.end;continue}let l=Cp(e,s,i);if(l===null){a+=s.full,o=s.end;continue}let u=Op(e.slice(s.end,l.start),s.tag,n,r);a+=s.full+u+l.full,o=l.end}return a}function kp(e){if(!e?.includes(`<`)||!/<[A-Z][A-Za-z0-9]*\b/.test(e))return{html:e,fences:[]};let t=new Xd.Renderer,n=[];return{html:Op(e,null,t,n),fences:n}}function Ap(e){return e?.includes(`/>`)?e.replace(/<([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)\/>/g,(e,t,n)=>`<${t}${n}></${t}>`):e}var jp=/<p>\s*<([A-Z][A-Za-z0-9]*)\b/g,Mp=/<p\b|<\/p>/g;function Np(e,t){Mp.lastIndex=t;let n=1,r=Mp.exec(e);for(;r;){if(n+=r[0]===`</p>`?-1:1,n===0)return r.index;r=Mp.exec(e)}return-1}function Pp(e){let t=``,n=0;jp.lastIndex=0;let r=jp.exec(e);for(;r;){if(mp.has(r[1].toLowerCase())){r=jp.exec(e);continue}let i=r.index+r[0].length,a=Np(e,i),o=a;for(;o>i&&/\s/.test(e[o-1]);)o--;if(t+=e.slice(n,r.index)+r[0].slice(r[0].length-r[1].length-1),a===-1)return t+=e.slice(i),t;t+=e.slice(i,o),n=a+4,r=jp.exec(e)}return t+e.slice(n)}function Fp(e){if(!e?.includes(`<`))return e;let t=Pp(e);return t=t.replace(/(<\/([A-Z][A-Za-z0-9]*)\s*>)\s*<\/p>/g,(e,t,n)=>mp.has(n.toLowerCase())?e:t),t}var Ip={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`,nbsp:` `,copy:`©`,reg:`®`,trade:`™`,middot:`·`,hellip:`…`,mdash:`—`,ndash:`–`,bull:`•`,deg:`°`,times:`×`,plusmn:`±`,laquo:`«`,raquo:`»`,sect:`§`,para:`¶`};function Lp(e){return Number.isInteger(e)&&e>0&&e<=1114111?String.fromCodePoint(e):``}function Rp(e){return e.replace(/&#x([0-9a-f]+);/gi,(e,t)=>Lp(parseInt(t,16))).replace(/&#([0-9]+);/g,(e,t)=>Lp(Number(t))).replace(/&([a-z][a-z0-9]*);/gi,(e,t)=>Ip[t.toLowerCase()]??e)}var zp=/!\[([^\]]*)\]\([^)]*\)/g,Bp=/\[([^\]]+)\]\([^)]*\)/g,Vp=/`([^`]+)`/g,Hp=/\*\*([^*\n]+)\*\*/g,Up=/__([^_\n]+)__/g,Wp=/\*([^*\n]+)\*/g,Gp=/~~([^~\n]+)~~/g;function Kp(e){return Rp(e.replace(zp,`$1`).replace(Bp,`$1`).replace(Vp,`$1`).replace(Hp,`$1`).replace(Up,`$1`).replace(Wp,`$1`).replace(Gp,`$1`)).replace(/\s+/g,` `).trim()}var 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}},qp=/([A-Z])/g,Jp=e=>e.replace(qp,`-$1`).toLowerCase(),Yp={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Xp=/[&><"']/g,Zp=e=>String(e).replace(Xp,e=>Yp[e]),Qp=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Qp(e.body[0]):e:e.type===`font`?Qp(e.body):e,$p=new Set([`mathord`,`textord`,`atom`]),em=e=>$p.has(Qp(e).type),tm=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},nm={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 rm(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 im(e){return e.default===void 0?rm(Array.isArray(e.type)?e.type[0]:e.type):e.default}function am(e,t,n,r){var i=n[t];e[t]=i===void 0?im(r):r.processor?r.processor(i):i}var om=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(nm)){var n=nm[t];n&&am(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=tm(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},sm=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 gm[_m[this.id]]}sub(){return gm[vm[this.id]]}fracNum(){return gm[ym[this.id]]}fracDen(){return gm[bm[this.id]]}cramp(){return gm[xm[this.id]]}text(){return gm[Sm[this.id]]}isTight(){return this.size>=2}},cm=0,lm=1,um=2,dm=3,fm=4,pm=5,mm=6,hm=7,gm=[new sm(cm,0,!1),new sm(lm,0,!0),new sm(um,1,!1),new sm(dm,1,!0),new sm(fm,2,!1),new sm(pm,2,!0),new sm(mm,3,!1),new sm(hm,3,!0)],_m=[fm,pm,fm,pm,mm,hm,mm,hm],vm=[pm,pm,pm,pm,hm,hm,hm,hm],ym=[um,dm,fm,pm,mm,hm,mm,hm],bm=[dm,dm,pm,pm,hm,hm,hm,hm],xm=[lm,lm,dm,dm,pm,pm,hm,hm],Sm=[cm,lm,um,dm,um,dm,um,dm],Cm={DISPLAY:gm[cm],TEXT:gm[um],SCRIPT:gm[fm],SCRIPTSCRIPT:gm[mm]},wm=[{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 Tm(e){for(var t=0;t<wm.length;t++)for(var n=wm[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 Em=[];wm.forEach(e=>e.blocks.forEach(e=>Em.push(...e)));function Dm(e){for(var t=0;t<Em.length;t+=2)if(e>=Em[t]&&e<=Em[t+1])return!0;return!1}var Om=e=>e+` `+e,km=80,Am=function(e,t){return`M95,`+(622+e+t)+`
|
|
115
115
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
116
116
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
117
117
|
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
|
|
@@ -122,7 +122,7 @@ c5.3,-9.3,12,-14,20,-14
|
|
|
122
122
|
H400000v`+(40+e)+`H845.2724
|
|
123
123
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
124
124
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
125
|
-
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
125
|
+
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},jm=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
|
|
126
126
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
127
127
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
128
128
|
l`+e/2.084+` -`+e+`
|
|
@@ -132,7 +132,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
|
|
|
132
132
|
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
|
|
133
133
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
134
134
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
135
|
-
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
135
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Mm=function(e,t){return`M983 `+(10+e+t)+`
|
|
136
136
|
l`+e/3.13+` -`+e+`
|
|
137
137
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
138
138
|
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
|
|
@@ -141,7 +141,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
141
141
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
142
142
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
143
143
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
144
|
-
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
144
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Nm=function(e,t){return`M424,`+(2398+e+t)+`
|
|
145
145
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
146
146
|
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
|
|
147
147
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
@@ -151,18 +151,18 @@ v`+(40+e)+`H1014.6
|
|
|
151
151
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
152
152
|
c-2,6,-10,9,-24,9
|
|
153
153
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
|
|
154
|
-
h400000v`+(40+e)+`h-400000z`},
|
|
154
|
+
h400000v`+(40+e)+`h-400000z`},Pm=function(e,t){return`M473,`+(2713+e+t)+`
|
|
155
155
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
|
|
156
156
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
157
157
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
158
158
|
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
|
|
159
159
|
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
|
|
160
160
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
161
|
-
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},
|
|
161
|
+
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},Fm=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},Im=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
|
|
162
162
|
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
|
|
163
163
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
164
164
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
165
|
-
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},
|
|
165
|
+
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},Lm=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=Am(t,km);break;case`sqrtSize1`:r=jm(t,km);break;case`sqrtSize2`:r=Mm(t,km);break;case`sqrtSize3`:r=Nm(t,km);break;case`sqrtSize4`:r=Pm(t,km);break;case`sqrtTall`:r=Im(t,km,n)}return r},Rm=function(e,t){switch(e){case`⎜`:return Om(`M291 0 H417 V`+t+` H291z`);case`∣`:return Om(`M145 0 H188 V`+t+` H145z`);case`∥`:return Om(`M145 0 H188 V`+t+` H145z`)+Om(`M367 0 H410 V`+t+` H367z`);case`⎟`:return Om(`M457 0 H583 V`+t+` H457z`);case`⎢`:return Om(`M319 0 H403 V`+t+` H319z`);case`⎥`:return Om(`M263 0 H347 V`+t+` H263z`);case`⎪`:return Om(`M384 0 H504 V`+t+` H384z`);case`⏐`:return Om(`M312 0 H355 V`+t+` H312z`);case`‖`:return Om(`M257 0 H300 V`+t+` H257z`)+Om(`M478 0 H521 V`+t+` H478z`);default:return``}},zm={doubleleftarrow:`M262 157
|
|
166
166
|
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
|
|
167
167
|
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
|
|
168
168
|
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
|
|
@@ -208,10 +208,10 @@ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9
|
|
|
208
208
|
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
|
|
209
209
|
-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
|
|
210
210
|
-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
|
|
211
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:
|
|
211
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Om(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:Om(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:Om(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:Om(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
212
212
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
213
213
|
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
|
|
214
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:
|
|
214
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Om(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
|
|
215
215
|
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
|
|
216
216
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
217
217
|
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
|
|
@@ -260,7 +260,7 @@ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown
|
|
|
260
260
|
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
|
|
261
261
|
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
|
|
262
262
|
-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
|
|
263
|
-
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:
|
|
263
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Om(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:Om(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:Om(`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
|
|
264
264
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
265
265
|
-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
|
|
266
266
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
@@ -333,7 +333,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
|
|
|
333
333
|
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,
|
|
334
334
|
-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
|
|
335
335
|
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
|
|
336
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
|
|
336
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Bm=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
|
|
337
337
|
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
|
|
338
338
|
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
|
|
339
339
|
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
@@ -361,19 +361,19 @@ 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
|
|
|
361
361
|
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
|
|
362
362
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
363
363
|
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
364
|
-
-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 Bm(e){return`toText`in e}var Vm=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(Bm(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},Hm={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},Um={ex:!0,em:!0,mu:!0},Wm=function(e){return typeof e!=`string`&&(e=e.unit),e in Hm||e in Um||e===`ex`},Gm=function(e,t){var n;if(e.unit in Hm)n=Hm[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`},Km=function(e){return e.filter(e=>e).join(` `)},qm=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=qp(n)+`:`+r+`;`)}return t},Jm=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)}},Ym=function(e){var t=document.createElement(e);t.className=Km(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},Xm=/[\s"'>/=\x00-\x1f]/,Zm=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+Xp(Km(this.classes))+`"`);var n=qm(this.style);n&&(t+=` style="`+Xp(n)+`"`);for(var r of Object.keys(this.attributes)){if(Xm.test(r))throw new B(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+Xp(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},Qm=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,Jm.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ym.call(this,`span`)}toMarkup(){return Zm.call(this,`span`)}},$m=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,Jm.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 Ym.call(this,`a`)}toMarkup(){return Zm.call(this,`a`)}},eh=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="`+Xp(this.src)+`"`+(` alt="`+Xp(this.alt)+`"`),t=qm(this.style);return t&&(e+=` style="`+Xp(t)+`"`),e+=`'/>`,e}},th={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},nh=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=wm(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=th[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=Km(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+=Xp(Km(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+V(this.italic)+`;`),n+=qm(this.style),n&&(e=!0,t+=` style="`+Xp(n)+`"`);var r=Xp(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},rh=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+`="`+Xp(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},ih=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`,Rm[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+Xp(this.alternate)+`"/>`:`<path d="`+Xp(Rm[this.pathName])+`"/>`}},ah=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+`="`+Xp(this.attributes[t])+`"`;return e+=`/>`,e}};function oh(e){if(e instanceof nh)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function sh(e){if(e instanceof Qm)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var ch=e=>e instanceof Qm||e instanceof $m||e instanceof Vm,lh={"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]}},uh={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]},dh={Å:`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 fh(e,t){lh[e]=t}function ph(e,t,n){if(!lh[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=lh[t][r];if(!i&&e[0]in dh&&(r=dh[e[0]].charCodeAt(0),i=lh[t][r]),!i&&n===`text`&&Em(r)&&(i=lh[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var mh={};function hh(e){var t=e>=5?0:e>=3?1:2;if(!mh[t]){var n=mh[t]={cssEmPerMu:uh.quad[t]/18};for(var r in uh)uh.hasOwnProperty(r)&&(n[r]=uh[r][t])}return mh[t]}var gh={math:{},text:{}};function H(e,t,n,r,i,a){gh[e][i]={font:t,group:n,replace:r},a&&r&&(gh[e][r]=gh[e][i])}var U=`math`,W=`text`,G=`main`,K=`ams`,_h=`accent-token`,vh=`bin`,yh=`close`,bh=`inner`,xh=`mathord`,Sh=`op-token`,Ch=`open`,wh=`punct`,q=`rel`,Th=`spacing`,J=`textord`;H(U,G,q,`≡`,`\\equiv`,!0),H(U,G,q,`≺`,`\\prec`,!0),H(U,G,q,`≻`,`\\succ`,!0),H(U,G,q,`∼`,`\\sim`,!0),H(U,G,q,`⊥`,`\\perp`),H(U,G,q,`⪯`,`\\preceq`,!0),H(U,G,q,`⪰`,`\\succeq`,!0),H(U,G,q,`≃`,`\\simeq`,!0),H(U,G,q,`∣`,`\\mid`,!0),H(U,G,q,`≪`,`\\ll`,!0),H(U,G,q,`≫`,`\\gg`,!0),H(U,G,q,`≍`,`\\asymp`,!0),H(U,G,q,`∥`,`\\parallel`),H(U,G,q,`⋈`,`\\bowtie`,!0),H(U,G,q,`⌣`,`\\smile`,!0),H(U,G,q,`⊑`,`\\sqsubseteq`,!0),H(U,G,q,`⊒`,`\\sqsupseteq`,!0),H(U,G,q,`≐`,`\\doteq`,!0),H(U,G,q,`⌢`,`\\frown`,!0),H(U,G,q,`∋`,`\\ni`,!0),H(U,G,q,`∝`,`\\propto`,!0),H(U,G,q,`⊢`,`\\vdash`,!0),H(U,G,q,`⊣`,`\\dashv`,!0),H(U,G,q,`∋`,`\\owns`),H(U,G,wh,`.`,`\\ldotp`),H(U,G,wh,`⋅`,`\\cdotp`),H(U,G,wh,`⋅`,`·`),H(W,G,J,`⋅`,`·`),H(U,G,J,`#`,`\\#`),H(W,G,J,`#`,`\\#`),H(U,G,J,`&`,`\\&`),H(W,G,J,`&`,`\\&`),H(U,G,J,`ℵ`,`\\aleph`,!0),H(U,G,J,`∀`,`\\forall`,!0),H(U,G,J,`ℏ`,`\\hbar`,!0),H(U,G,J,`∃`,`\\exists`,!0),H(U,G,J,`∇`,`\\nabla`,!0),H(U,G,J,`♭`,`\\flat`,!0),H(U,G,J,`ℓ`,`\\ell`,!0),H(U,G,J,`♮`,`\\natural`,!0),H(U,G,J,`♣`,`\\clubsuit`,!0),H(U,G,J,`℘`,`\\wp`,!0),H(U,G,J,`♯`,`\\sharp`,!0),H(U,G,J,`♢`,`\\diamondsuit`,!0),H(U,G,J,`ℜ`,`\\Re`,!0),H(U,G,J,`♡`,`\\heartsuit`,!0),H(U,G,J,`ℑ`,`\\Im`,!0),H(U,G,J,`♠`,`\\spadesuit`,!0),H(U,G,J,`§`,`\\S`,!0),H(W,G,J,`§`,`\\S`),H(U,G,J,`¶`,`\\P`,!0),H(W,G,J,`¶`,`\\P`),H(U,G,J,`†`,`\\dag`),H(W,G,J,`†`,`\\dag`),H(W,G,J,`†`,`\\textdagger`),H(U,G,J,`‡`,`\\ddag`),H(W,G,J,`‡`,`\\ddag`),H(W,G,J,`‡`,`\\textdaggerdbl`),H(U,G,yh,`⎱`,`\\rmoustache`,!0),H(U,G,Ch,`⎰`,`\\lmoustache`,!0),H(U,G,yh,`⟯`,`\\rgroup`,!0),H(U,G,Ch,`⟮`,`\\lgroup`,!0),H(U,G,vh,`∓`,`\\mp`,!0),H(U,G,vh,`⊖`,`\\ominus`,!0),H(U,G,vh,`⊎`,`\\uplus`,!0),H(U,G,vh,`⊓`,`\\sqcap`,!0),H(U,G,vh,`∗`,`\\ast`),H(U,G,vh,`⊔`,`\\sqcup`,!0),H(U,G,vh,`◯`,`\\bigcirc`,!0),H(U,G,vh,`∙`,`\\bullet`,!0),H(U,G,vh,`‡`,`\\ddagger`),H(U,G,vh,`≀`,`\\wr`,!0),H(U,G,vh,`⨿`,`\\amalg`),H(U,G,vh,`&`,`\\And`),H(U,G,q,`⟵`,`\\longleftarrow`,!0),H(U,G,q,`⇐`,`\\Leftarrow`,!0),H(U,G,q,`⟸`,`\\Longleftarrow`,!0),H(U,G,q,`⟶`,`\\longrightarrow`,!0),H(U,G,q,`⇒`,`\\Rightarrow`,!0),H(U,G,q,`⟹`,`\\Longrightarrow`,!0),H(U,G,q,`↔`,`\\leftrightarrow`,!0),H(U,G,q,`⟷`,`\\longleftrightarrow`,!0),H(U,G,q,`⇔`,`\\Leftrightarrow`,!0),H(U,G,q,`⟺`,`\\Longleftrightarrow`,!0),H(U,G,q,`↦`,`\\mapsto`,!0),H(U,G,q,`⟼`,`\\longmapsto`,!0),H(U,G,q,`↗`,`\\nearrow`,!0),H(U,G,q,`↩`,`\\hookleftarrow`,!0),H(U,G,q,`↪`,`\\hookrightarrow`,!0),H(U,G,q,`↘`,`\\searrow`,!0),H(U,G,q,`↼`,`\\leftharpoonup`,!0),H(U,G,q,`⇀`,`\\rightharpoonup`,!0),H(U,G,q,`↙`,`\\swarrow`,!0),H(U,G,q,`↽`,`\\leftharpoondown`,!0),H(U,G,q,`⇁`,`\\rightharpoondown`,!0),H(U,G,q,`↖`,`\\nwarrow`,!0),H(U,G,q,`⇌`,`\\rightleftharpoons`,!0),H(U,K,q,`≮`,`\\nless`,!0),H(U,K,q,``,`\\@nleqslant`),H(U,K,q,``,`\\@nleqq`),H(U,K,q,`⪇`,`\\lneq`,!0),H(U,K,q,`≨`,`\\lneqq`,!0),H(U,K,q,``,`\\@lvertneqq`),H(U,K,q,`⋦`,`\\lnsim`,!0),H(U,K,q,`⪉`,`\\lnapprox`,!0),H(U,K,q,`⊀`,`\\nprec`,!0),H(U,K,q,`⋠`,`\\npreceq`,!0),H(U,K,q,`⋨`,`\\precnsim`,!0),H(U,K,q,`⪹`,`\\precnapprox`,!0),H(U,K,q,`≁`,`\\nsim`,!0),H(U,K,q,``,`\\@nshortmid`),H(U,K,q,`∤`,`\\nmid`,!0),H(U,K,q,`⊬`,`\\nvdash`,!0),H(U,K,q,`⊭`,`\\nvDash`,!0),H(U,K,q,`⋪`,`\\ntriangleleft`),H(U,K,q,`⋬`,`\\ntrianglelefteq`,!0),H(U,K,q,`⊊`,`\\subsetneq`,!0),H(U,K,q,``,`\\@varsubsetneq`),H(U,K,q,`⫋`,`\\subsetneqq`,!0),H(U,K,q,``,`\\@varsubsetneqq`),H(U,K,q,`≯`,`\\ngtr`,!0),H(U,K,q,``,`\\@ngeqslant`),H(U,K,q,``,`\\@ngeqq`),H(U,K,q,`⪈`,`\\gneq`,!0),H(U,K,q,`≩`,`\\gneqq`,!0),H(U,K,q,``,`\\@gvertneqq`),H(U,K,q,`⋧`,`\\gnsim`,!0),H(U,K,q,`⪊`,`\\gnapprox`,!0),H(U,K,q,`⊁`,`\\nsucc`,!0),H(U,K,q,`⋡`,`\\nsucceq`,!0),H(U,K,q,`⋩`,`\\succnsim`,!0),H(U,K,q,`⪺`,`\\succnapprox`,!0),H(U,K,q,`≆`,`\\ncong`,!0),H(U,K,q,``,`\\@nshortparallel`),H(U,K,q,`∦`,`\\nparallel`,!0),H(U,K,q,`⊯`,`\\nVDash`,!0),H(U,K,q,`⋫`,`\\ntriangleright`),H(U,K,q,`⋭`,`\\ntrianglerighteq`,!0),H(U,K,q,``,`\\@nsupseteqq`),H(U,K,q,`⊋`,`\\supsetneq`,!0),H(U,K,q,``,`\\@varsupsetneq`),H(U,K,q,`⫌`,`\\supsetneqq`,!0),H(U,K,q,``,`\\@varsupsetneqq`),H(U,K,q,`⊮`,`\\nVdash`,!0),H(U,K,q,`⪵`,`\\precneqq`,!0),H(U,K,q,`⪶`,`\\succneqq`,!0),H(U,K,q,``,`\\@nsubseteqq`),H(U,K,vh,`⊴`,`\\unlhd`),H(U,K,vh,`⊵`,`\\unrhd`),H(U,K,q,`↚`,`\\nleftarrow`,!0),H(U,K,q,`↛`,`\\nrightarrow`,!0),H(U,K,q,`⇍`,`\\nLeftarrow`,!0),H(U,K,q,`⇏`,`\\nRightarrow`,!0),H(U,K,q,`↮`,`\\nleftrightarrow`,!0),H(U,K,q,`⇎`,`\\nLeftrightarrow`,!0),H(U,K,q,`△`,`\\vartriangle`),H(U,K,J,`ℏ`,`\\hslash`),H(U,K,J,`▽`,`\\triangledown`),H(U,K,J,`◊`,`\\lozenge`),H(U,K,J,`Ⓢ`,`\\circledS`),H(U,K,J,`®`,`\\circledR`),H(W,K,J,`®`,`\\circledR`),H(U,K,J,`∡`,`\\measuredangle`,!0),H(U,K,J,`∄`,`\\nexists`),H(U,K,J,`℧`,`\\mho`),H(U,K,J,`Ⅎ`,`\\Finv`,!0),H(U,K,J,`⅁`,`\\Game`,!0),H(U,K,J,`‵`,`\\backprime`),H(U,K,J,`▲`,`\\blacktriangle`),H(U,K,J,`▼`,`\\blacktriangledown`),H(U,K,J,`■`,`\\blacksquare`),H(U,K,J,`⧫`,`\\blacklozenge`),H(U,K,J,`★`,`\\bigstar`),H(U,K,J,`∢`,`\\sphericalangle`,!0),H(U,K,J,`∁`,`\\complement`,!0),H(U,K,J,`ð`,`\\eth`,!0),H(W,G,J,`ð`,`ð`),H(U,K,J,`╱`,`\\diagup`),H(U,K,J,`╲`,`\\diagdown`),H(U,K,J,`□`,`\\square`),H(U,K,J,`□`,`\\Box`),H(U,K,J,`◊`,`\\Diamond`),H(U,K,J,`¥`,`\\yen`,!0),H(W,K,J,`¥`,`\\yen`,!0),H(U,K,J,`✓`,`\\checkmark`,!0),H(W,K,J,`✓`,`\\checkmark`),H(U,K,J,`ℶ`,`\\beth`,!0),H(U,K,J,`ℸ`,`\\daleth`,!0),H(U,K,J,`ℷ`,`\\gimel`,!0),H(U,K,J,`ϝ`,`\\digamma`,!0),H(U,K,J,`ϰ`,`\\varkappa`),H(U,K,Ch,`┌`,`\\@ulcorner`,!0),H(U,K,yh,`┐`,`\\@urcorner`,!0),H(U,K,Ch,`└`,`\\@llcorner`,!0),H(U,K,yh,`┘`,`\\@lrcorner`,!0),H(U,K,q,`≦`,`\\leqq`,!0),H(U,K,q,`⩽`,`\\leqslant`,!0),H(U,K,q,`⪕`,`\\eqslantless`,!0),H(U,K,q,`≲`,`\\lesssim`,!0),H(U,K,q,`⪅`,`\\lessapprox`,!0),H(U,K,q,`≊`,`\\approxeq`,!0),H(U,K,vh,`⋖`,`\\lessdot`),H(U,K,q,`⋘`,`\\lll`,!0),H(U,K,q,`≶`,`\\lessgtr`,!0),H(U,K,q,`⋚`,`\\lesseqgtr`,!0),H(U,K,q,`⪋`,`\\lesseqqgtr`,!0),H(U,K,q,`≑`,`\\doteqdot`),H(U,K,q,`≓`,`\\risingdotseq`,!0),H(U,K,q,`≒`,`\\fallingdotseq`,!0),H(U,K,q,`∽`,`\\backsim`,!0),H(U,K,q,`⋍`,`\\backsimeq`,!0),H(U,K,q,`⫅`,`\\subseteqq`,!0),H(U,K,q,`⋐`,`\\Subset`,!0),H(U,K,q,`⊏`,`\\sqsubset`,!0),H(U,K,q,`≼`,`\\preccurlyeq`,!0),H(U,K,q,`⋞`,`\\curlyeqprec`,!0),H(U,K,q,`≾`,`\\precsim`,!0),H(U,K,q,`⪷`,`\\precapprox`,!0),H(U,K,q,`⊲`,`\\vartriangleleft`),H(U,K,q,`⊴`,`\\trianglelefteq`),H(U,K,q,`⊨`,`\\vDash`,!0),H(U,K,q,`⊪`,`\\Vvdash`,!0),H(U,K,q,`⌣`,`\\smallsmile`),H(U,K,q,`⌢`,`\\smallfrown`),H(U,K,q,`≏`,`\\bumpeq`,!0),H(U,K,q,`≎`,`\\Bumpeq`,!0),H(U,K,q,`≧`,`\\geqq`,!0),H(U,K,q,`⩾`,`\\geqslant`,!0),H(U,K,q,`⪖`,`\\eqslantgtr`,!0),H(U,K,q,`≳`,`\\gtrsim`,!0),H(U,K,q,`⪆`,`\\gtrapprox`,!0),H(U,K,vh,`⋗`,`\\gtrdot`),H(U,K,q,`⋙`,`\\ggg`,!0),H(U,K,q,`≷`,`\\gtrless`,!0),H(U,K,q,`⋛`,`\\gtreqless`,!0),H(U,K,q,`⪌`,`\\gtreqqless`,!0),H(U,K,q,`≖`,`\\eqcirc`,!0),H(U,K,q,`≗`,`\\circeq`,!0),H(U,K,q,`≜`,`\\triangleq`,!0),H(U,K,q,`∼`,`\\thicksim`),H(U,K,q,`≈`,`\\thickapprox`),H(U,K,q,`⫆`,`\\supseteqq`,!0),H(U,K,q,`⋑`,`\\Supset`,!0),H(U,K,q,`⊐`,`\\sqsupset`,!0),H(U,K,q,`≽`,`\\succcurlyeq`,!0),H(U,K,q,`⋟`,`\\curlyeqsucc`,!0),H(U,K,q,`≿`,`\\succsim`,!0),H(U,K,q,`⪸`,`\\succapprox`,!0),H(U,K,q,`⊳`,`\\vartriangleright`),H(U,K,q,`⊵`,`\\trianglerighteq`),H(U,K,q,`⊩`,`\\Vdash`,!0),H(U,K,q,`∣`,`\\shortmid`),H(U,K,q,`∥`,`\\shortparallel`),H(U,K,q,`≬`,`\\between`,!0),H(U,K,q,`⋔`,`\\pitchfork`,!0),H(U,K,q,`∝`,`\\varpropto`),H(U,K,q,`◀`,`\\blacktriangleleft`),H(U,K,q,`∴`,`\\therefore`,!0),H(U,K,q,`∍`,`\\backepsilon`),H(U,K,q,`▶`,`\\blacktriangleright`),H(U,K,q,`∵`,`\\because`,!0),H(U,K,q,`⋘`,`\\llless`),H(U,K,q,`⋙`,`\\gggtr`),H(U,K,vh,`⊲`,`\\lhd`),H(U,K,vh,`⊳`,`\\rhd`),H(U,K,q,`≂`,`\\eqsim`,!0),H(U,G,q,`⋈`,`\\Join`),H(U,K,q,`≑`,`\\Doteq`,!0),H(U,K,vh,`∔`,`\\dotplus`,!0),H(U,K,vh,`∖`,`\\smallsetminus`),H(U,K,vh,`⋒`,`\\Cap`,!0),H(U,K,vh,`⋓`,`\\Cup`,!0),H(U,K,vh,`⩞`,`\\doublebarwedge`,!0),H(U,K,vh,`⊟`,`\\boxminus`,!0),H(U,K,vh,`⊞`,`\\boxplus`,!0),H(U,K,vh,`⋇`,`\\divideontimes`,!0),H(U,K,vh,`⋉`,`\\ltimes`,!0),H(U,K,vh,`⋊`,`\\rtimes`,!0),H(U,K,vh,`⋋`,`\\leftthreetimes`,!0),H(U,K,vh,`⋌`,`\\rightthreetimes`,!0),H(U,K,vh,`⋏`,`\\curlywedge`,!0),H(U,K,vh,`⋎`,`\\curlyvee`,!0),H(U,K,vh,`⊝`,`\\circleddash`,!0),H(U,K,vh,`⊛`,`\\circledast`,!0),H(U,K,vh,`⋅`,`\\centerdot`),H(U,K,vh,`⊺`,`\\intercal`,!0),H(U,K,vh,`⋒`,`\\doublecap`),H(U,K,vh,`⋓`,`\\doublecup`),H(U,K,vh,`⊠`,`\\boxtimes`,!0),H(U,K,q,`⇢`,`\\dashrightarrow`,!0),H(U,K,q,`⇠`,`\\dashleftarrow`,!0),H(U,K,q,`⇇`,`\\leftleftarrows`,!0),H(U,K,q,`⇆`,`\\leftrightarrows`,!0),H(U,K,q,`⇚`,`\\Lleftarrow`,!0),H(U,K,q,`↞`,`\\twoheadleftarrow`,!0),H(U,K,q,`↢`,`\\leftarrowtail`,!0),H(U,K,q,`↫`,`\\looparrowleft`,!0),H(U,K,q,`⇋`,`\\leftrightharpoons`,!0),H(U,K,q,`↶`,`\\curvearrowleft`,!0),H(U,K,q,`↺`,`\\circlearrowleft`,!0),H(U,K,q,`↰`,`\\Lsh`,!0),H(U,K,q,`⇈`,`\\upuparrows`,!0),H(U,K,q,`↿`,`\\upharpoonleft`,!0),H(U,K,q,`⇃`,`\\downharpoonleft`,!0),H(U,G,q,`⊶`,`\\origof`,!0),H(U,G,q,`⊷`,`\\imageof`,!0),H(U,K,q,`⊸`,`\\multimap`,!0),H(U,K,q,`↭`,`\\leftrightsquigarrow`,!0),H(U,K,q,`⇉`,`\\rightrightarrows`,!0),H(U,K,q,`⇄`,`\\rightleftarrows`,!0),H(U,K,q,`↠`,`\\twoheadrightarrow`,!0),H(U,K,q,`↣`,`\\rightarrowtail`,!0),H(U,K,q,`↬`,`\\looparrowright`,!0),H(U,K,q,`↷`,`\\curvearrowright`,!0),H(U,K,q,`↻`,`\\circlearrowright`,!0),H(U,K,q,`↱`,`\\Rsh`,!0),H(U,K,q,`⇊`,`\\downdownarrows`,!0),H(U,K,q,`↾`,`\\upharpoonright`,!0),H(U,K,q,`⇂`,`\\downharpoonright`,!0),H(U,K,q,`⇝`,`\\rightsquigarrow`,!0),H(U,K,q,`⇝`,`\\leadsto`),H(U,K,q,`⇛`,`\\Rrightarrow`,!0),H(U,K,q,`↾`,`\\restriction`),H(U,G,J,`‘`,"`"),H(U,G,J,`$`,`\\$`),H(W,G,J,`$`,`\\$`),H(W,G,J,`$`,`\\textdollar`),H(U,G,J,`%`,`\\%`),H(W,G,J,`%`,`\\%`),H(U,G,J,`_`,`\\_`),H(W,G,J,`_`,`\\_`),H(W,G,J,`_`,`\\textunderscore`),H(U,G,J,`∠`,`\\angle`,!0),H(U,G,J,`∞`,`\\infty`,!0),H(U,G,J,`′`,`\\prime`),H(U,G,J,`△`,`\\triangle`),H(U,G,J,`Γ`,`\\Gamma`,!0),H(U,G,J,`Δ`,`\\Delta`,!0),H(U,G,J,`Θ`,`\\Theta`,!0),H(U,G,J,`Λ`,`\\Lambda`,!0),H(U,G,J,`Ξ`,`\\Xi`,!0),H(U,G,J,`Π`,`\\Pi`,!0),H(U,G,J,`Σ`,`\\Sigma`,!0),H(U,G,J,`Υ`,`\\Upsilon`,!0),H(U,G,J,`Φ`,`\\Phi`,!0),H(U,G,J,`Ψ`,`\\Psi`,!0),H(U,G,J,`Ω`,`\\Omega`,!0),H(U,G,J,`A`,`Α`),H(U,G,J,`B`,`Β`),H(U,G,J,`E`,`Ε`),H(U,G,J,`Z`,`Ζ`),H(U,G,J,`H`,`Η`),H(U,G,J,`I`,`Ι`),H(U,G,J,`K`,`Κ`),H(U,G,J,`M`,`Μ`),H(U,G,J,`N`,`Ν`),H(U,G,J,`O`,`Ο`),H(U,G,J,`P`,`Ρ`),H(U,G,J,`T`,`Τ`),H(U,G,J,`X`,`Χ`),H(U,G,J,`¬`,`\\neg`,!0),H(U,G,J,`¬`,`\\lnot`),H(U,G,J,`⊤`,`\\top`),H(U,G,J,`⊥`,`\\bot`),H(U,G,J,`∅`,`\\emptyset`),H(U,K,J,`∅`,`\\varnothing`),H(U,G,xh,`α`,`\\alpha`,!0),H(U,G,xh,`β`,`\\beta`,!0),H(U,G,xh,`γ`,`\\gamma`,!0),H(U,G,xh,`δ`,`\\delta`,!0),H(U,G,xh,`ϵ`,`\\epsilon`,!0),H(U,G,xh,`ζ`,`\\zeta`,!0),H(U,G,xh,`η`,`\\eta`,!0),H(U,G,xh,`θ`,`\\theta`,!0),H(U,G,xh,`ι`,`\\iota`,!0),H(U,G,xh,`κ`,`\\kappa`,!0),H(U,G,xh,`λ`,`\\lambda`,!0),H(U,G,xh,`μ`,`\\mu`,!0),H(U,G,xh,`ν`,`\\nu`,!0),H(U,G,xh,`ξ`,`\\xi`,!0),H(U,G,xh,`ο`,`\\omicron`,!0),H(U,G,xh,`π`,`\\pi`,!0),H(U,G,xh,`ρ`,`\\rho`,!0),H(U,G,xh,`σ`,`\\sigma`,!0),H(U,G,xh,`τ`,`\\tau`,!0),H(U,G,xh,`υ`,`\\upsilon`,!0),H(U,G,xh,`ϕ`,`\\phi`,!0),H(U,G,xh,`χ`,`\\chi`,!0),H(U,G,xh,`ψ`,`\\psi`,!0),H(U,G,xh,`ω`,`\\omega`,!0),H(U,G,xh,`ε`,`\\varepsilon`,!0),H(U,G,xh,`ϑ`,`\\vartheta`,!0),H(U,G,xh,`ϖ`,`\\varpi`,!0),H(U,G,xh,`ϱ`,`\\varrho`,!0),H(U,G,xh,`ς`,`\\varsigma`,!0),H(U,G,xh,`φ`,`\\varphi`,!0),H(U,G,vh,`∗`,`*`,!0),H(U,G,vh,`+`,`+`),H(U,G,vh,`−`,`-`,!0),H(U,G,vh,`⋅`,`\\cdot`,!0),H(U,G,vh,`∘`,`\\circ`,!0),H(U,G,vh,`÷`,`\\div`,!0),H(U,G,vh,`±`,`\\pm`,!0),H(U,G,vh,`×`,`\\times`,!0),H(U,G,vh,`∩`,`\\cap`,!0),H(U,G,vh,`∪`,`\\cup`,!0),H(U,G,vh,`∖`,`\\setminus`,!0),H(U,G,vh,`∧`,`\\land`),H(U,G,vh,`∨`,`\\lor`),H(U,G,vh,`∧`,`\\wedge`,!0),H(U,G,vh,`∨`,`\\vee`,!0),H(U,G,J,`√`,`\\surd`),H(U,G,Ch,`⟨`,`\\langle`,!0),H(U,G,Ch,`∣`,`\\lvert`),H(U,G,Ch,`∥`,`\\lVert`),H(U,G,yh,`?`,`?`),H(U,G,yh,`!`,`!`),H(U,G,yh,`⟩`,`\\rangle`,!0),H(U,G,yh,`∣`,`\\rvert`),H(U,G,yh,`∥`,`\\rVert`),H(U,G,q,`=`,`=`),H(U,G,q,`:`,`:`),H(U,G,q,`≈`,`\\approx`,!0),H(U,G,q,`≅`,`\\cong`,!0),H(U,G,q,`≥`,`\\ge`),H(U,G,q,`≥`,`\\geq`,!0),H(U,G,q,`←`,`\\gets`),H(U,G,q,`>`,`\\gt`,!0),H(U,G,q,`∈`,`\\in`,!0),H(U,G,q,``,`\\@not`),H(U,G,q,`⊂`,`\\subset`,!0),H(U,G,q,`⊃`,`\\supset`,!0),H(U,G,q,`⊆`,`\\subseteq`,!0),H(U,G,q,`⊇`,`\\supseteq`,!0),H(U,K,q,`⊈`,`\\nsubseteq`,!0),H(U,K,q,`⊉`,`\\nsupseteq`,!0),H(U,G,q,`⊨`,`\\models`),H(U,G,q,`←`,`\\leftarrow`,!0),H(U,G,q,`≤`,`\\le`),H(U,G,q,`≤`,`\\leq`,!0),H(U,G,q,`<`,`\\lt`,!0),H(U,G,q,`→`,`\\rightarrow`,!0),H(U,G,q,`→`,`\\to`),H(U,K,q,`≱`,`\\ngeq`,!0),H(U,K,q,`≰`,`\\nleq`,!0),H(U,G,Th,`\xA0`,`\\ `),H(U,G,Th,`\xA0`,`\\space`),H(U,G,Th,`\xA0`,`\\nobreakspace`),H(W,G,Th,`\xA0`,`\\ `),H(W,G,Th,`\xA0`,` `),H(W,G,Th,`\xA0`,`\\space`),H(W,G,Th,`\xA0`,`\\nobreakspace`),H(U,G,Th,``,`\\nobreak`),H(U,G,Th,``,`\\allowbreak`),H(U,G,wh,`,`,`,`),H(U,G,wh,`;`,`;`),H(U,K,vh,`⊼`,`\\barwedge`,!0),H(U,K,vh,`⊻`,`\\veebar`,!0),H(U,G,vh,`⊙`,`\\odot`,!0),H(U,G,vh,`⊕`,`\\oplus`,!0),H(U,G,vh,`⊗`,`\\otimes`,!0),H(U,G,J,`∂`,`\\partial`,!0),H(U,G,vh,`⊘`,`\\oslash`,!0),H(U,K,vh,`⊚`,`\\circledcirc`,!0),H(U,K,vh,`⊡`,`\\boxdot`,!0),H(U,G,vh,`△`,`\\bigtriangleup`),H(U,G,vh,`▽`,`\\bigtriangledown`),H(U,G,vh,`†`,`\\dagger`),H(U,G,vh,`⋄`,`\\diamond`),H(U,G,vh,`⋆`,`\\star`),H(U,G,vh,`◃`,`\\triangleleft`),H(U,G,vh,`▹`,`\\triangleright`),H(U,G,Ch,`{`,`\\{`),H(W,G,J,`{`,`\\{`),H(W,G,J,`{`,`\\textbraceleft`),H(U,G,yh,`}`,`\\}`),H(W,G,J,`}`,`\\}`),H(W,G,J,`}`,`\\textbraceright`),H(U,G,Ch,`{`,`\\lbrace`),H(U,G,yh,`}`,`\\rbrace`),H(U,G,Ch,`[`,`\\lbrack`,!0),H(W,G,J,`[`,`\\lbrack`,!0),H(U,G,yh,`]`,`\\rbrack`,!0),H(W,G,J,`]`,`\\rbrack`,!0),H(U,G,Ch,`(`,`\\lparen`,!0),H(U,G,yh,`)`,`\\rparen`,!0),H(W,G,J,`<`,`\\textless`,!0),H(W,G,J,`>`,`\\textgreater`,!0),H(U,G,Ch,`⌊`,`\\lfloor`,!0),H(U,G,yh,`⌋`,`\\rfloor`,!0),H(U,G,Ch,`⌈`,`\\lceil`,!0),H(U,G,yh,`⌉`,`\\rceil`,!0),H(U,G,J,`\\`,`\\backslash`),H(U,G,J,`∣`,`|`),H(U,G,J,`∣`,`\\vert`),H(W,G,J,`|`,`\\textbar`,!0),H(U,G,J,`∥`,`\\|`),H(U,G,J,`∥`,`\\Vert`),H(W,G,J,`∥`,`\\textbardbl`),H(W,G,J,`~`,`\\textasciitilde`),H(W,G,J,`\\`,`\\textbackslash`),H(W,G,J,`^`,`\\textasciicircum`),H(U,G,q,`↑`,`\\uparrow`,!0),H(U,G,q,`⇑`,`\\Uparrow`,!0),H(U,G,q,`↓`,`\\downarrow`,!0),H(U,G,q,`⇓`,`\\Downarrow`,!0),H(U,G,q,`↕`,`\\updownarrow`,!0),H(U,G,q,`⇕`,`\\Updownarrow`,!0),H(U,G,Sh,`∐`,`\\coprod`),H(U,G,Sh,`⋁`,`\\bigvee`),H(U,G,Sh,`⋀`,`\\bigwedge`),H(U,G,Sh,`⨄`,`\\biguplus`),H(U,G,Sh,`⋂`,`\\bigcap`),H(U,G,Sh,`⋃`,`\\bigcup`),H(U,G,Sh,`∫`,`\\int`),H(U,G,Sh,`∫`,`\\intop`),H(U,G,Sh,`∬`,`\\iint`),H(U,G,Sh,`∭`,`\\iiint`),H(U,G,Sh,`∏`,`\\prod`),H(U,G,Sh,`∑`,`\\sum`),H(U,G,Sh,`⨂`,`\\bigotimes`),H(U,G,Sh,`⨁`,`\\bigoplus`),H(U,G,Sh,`⨀`,`\\bigodot`),H(U,G,Sh,`∮`,`\\oint`),H(U,G,Sh,`∯`,`\\oiint`),H(U,G,Sh,`∰`,`\\oiiint`),H(U,G,Sh,`⨆`,`\\bigsqcup`),H(U,G,Sh,`∫`,`\\smallint`),H(W,G,bh,`…`,`\\textellipsis`),H(U,G,bh,`…`,`\\mathellipsis`),H(W,G,bh,`…`,`\\ldots`,!0),H(U,G,bh,`…`,`\\ldots`,!0),H(U,G,bh,`⋯`,`\\@cdots`,!0),H(U,G,bh,`⋱`,`\\ddots`,!0),H(U,G,J,`⋮`,`\\varvdots`),H(W,G,J,`⋮`,`\\varvdots`),H(U,G,_h,`ˊ`,`\\acute`),H(U,G,_h,`ˋ`,`\\grave`),H(U,G,_h,`¨`,`\\ddot`),H(U,G,_h,`~`,`\\tilde`),H(U,G,_h,`ˉ`,`\\bar`),H(U,G,_h,`˘`,`\\breve`),H(U,G,_h,`ˇ`,`\\check`),H(U,G,_h,`^`,`\\hat`),H(U,G,_h,`⃗`,`\\vec`),H(U,G,_h,`˙`,`\\dot`),H(U,G,_h,`˚`,`\\mathring`),H(U,G,xh,``,`\\@imath`),H(U,G,xh,``,`\\@jmath`),H(U,G,J,`ı`,`ı`),H(U,G,J,`ȷ`,`ȷ`),H(W,G,J,`ı`,`\\i`,!0),H(W,G,J,`ȷ`,`\\j`,!0),H(W,G,J,`ß`,`\\ss`,!0),H(W,G,J,`æ`,`\\ae`,!0),H(W,G,J,`œ`,`\\oe`,!0),H(W,G,J,`ø`,`\\o`,!0),H(W,G,J,`Æ`,`\\AE`,!0),H(W,G,J,`Œ`,`\\OE`,!0),H(W,G,J,`Ø`,`\\O`,!0),H(W,G,_h,`ˊ`,`\\'`),H(W,G,_h,`ˋ`,"\\`"),H(W,G,_h,`ˆ`,`\\^`),H(W,G,_h,`˜`,`\\~`),H(W,G,_h,`ˉ`,`\\=`),H(W,G,_h,`˘`,`\\u`),H(W,G,_h,`˙`,`\\.`),H(W,G,_h,`¸`,`\\c`),H(W,G,_h,`˚`,`\\r`),H(W,G,_h,`ˇ`,`\\v`),H(W,G,_h,`¨`,`\\"`),H(W,G,_h,`˝`,`\\H`),H(W,G,_h,`◯`,`\\textcircled`);var Eh={"--":!0,"---":!0,"``":!0,"''":!0};H(W,G,J,`–`,`--`,!0),H(W,G,J,`–`,`\\textendash`),H(W,G,J,`—`,`---`,!0),H(W,G,J,`—`,`\\textemdash`),H(W,G,J,`‘`,"`",!0),H(W,G,J,`‘`,`\\textquoteleft`),H(W,G,J,`’`,`'`,!0),H(W,G,J,`’`,`\\textquoteright`),H(W,G,J,`“`,"``",!0),H(W,G,J,`“`,`\\textquotedblleft`),H(W,G,J,`”`,`''`,!0),H(W,G,J,`”`,`\\textquotedblright`),H(U,G,J,`°`,`\\degree`,!0),H(W,G,J,`°`,`\\degree`),H(W,G,J,`°`,`\\textdegree`,!0),H(U,G,J,`£`,`\\pounds`),H(U,G,J,`£`,`\\mathsterling`,!0),H(W,G,J,`£`,`\\pounds`),H(W,G,J,`£`,`\\textsterling`,!0),H(U,K,J,`✠`,`\\maltese`),H(W,K,J,`✠`,`\\maltese`);for(var Dh=`0123456789/@."`,Oh=0;Oh<Dh.length;Oh++){var kh=Dh.charAt(Oh);H(U,G,J,kh,kh)}for(var Ah=`0123456789!@*()-=+";:?/.,`,jh=0;jh<Ah.length;jh++){var Mh=Ah.charAt(jh);H(W,G,J,Mh,Mh)}for(var Nh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,Ph=0;Ph<Nh.length;Ph++){var Fh=Nh.charAt(Ph);H(U,G,xh,Fh,Fh),H(W,G,J,Fh,Fh)}H(U,K,J,`C`,`ℂ`),H(W,K,J,`C`,`ℂ`),H(U,K,J,`H`,`ℍ`),H(W,K,J,`H`,`ℍ`),H(U,K,J,`N`,`ℕ`),H(W,K,J,`N`,`ℕ`),H(U,K,J,`P`,`ℙ`),H(W,K,J,`P`,`ℙ`),H(U,K,J,`Q`,`ℚ`),H(W,K,J,`Q`,`ℚ`),H(U,K,J,`R`,`ℝ`),H(W,K,J,`R`,`ℝ`),H(U,K,J,`Z`,`ℤ`),H(W,K,J,`Z`,`ℤ`),H(U,G,xh,`h`,`ℎ`),H(W,G,xh,`h`,`ℎ`);for(var Ih,Lh=0;Lh<Nh.length;Lh++){var Rh=Nh.charAt(Lh);Ih=String.fromCharCode(55349,56320+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih),Ih=String.fromCharCode(55349,56372+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih),Ih=String.fromCharCode(55349,56424+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih),Ih=String.fromCharCode(55349,56580+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih),Ih=String.fromCharCode(55349,56684+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih),Ih=String.fromCharCode(55349,56736+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih),Ih=String.fromCharCode(55349,56788+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih),Ih=String.fromCharCode(55349,56840+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih),Ih=String.fromCharCode(55349,56944+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih),Lh<26&&(Ih=String.fromCharCode(55349,56632+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih),Ih=String.fromCharCode(55349,56476+Lh),H(U,G,xh,Rh,Ih),H(W,G,J,Rh,Ih))}Ih=String.fromCharCode(55349,56668),H(U,G,xh,`k`,Ih),H(W,G,J,`k`,Ih);for(var zh=0;zh<10;zh++){var Bh=zh.toString();Ih=String.fromCharCode(55349,57294+zh),H(U,G,xh,Bh,Ih),H(W,G,J,Bh,Ih),Ih=String.fromCharCode(55349,57314+zh),H(U,G,xh,Bh,Ih),H(W,G,J,Bh,Ih),Ih=String.fromCharCode(55349,57324+zh),H(U,G,xh,Bh,Ih),H(W,G,J,Bh,Ih),Ih=String.fromCharCode(55349,57334+zh),H(U,G,xh,Bh,Ih),H(W,G,J,Bh,Ih)}for(var Vh=`ÐÞþ`,Hh=0;Hh<Vh.length;Hh++){var Uh=Vh.charAt(Hh);H(U,G,xh,Uh,Uh),H(W,G,J,Uh,Uh)}var Wh={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},Gh={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},Kh={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},qh={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},Jh={mathClass:``,textClass:``,font:``},Yh={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},Xh={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},Zh={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},Qh={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},$h={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},eg={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},tg={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},ng=[Wh,Wh,Gh,Gh,Kh,Kh,qh,Jh,Jh,Jh,Yh,Yh,Xh,Xh,Zh,Zh,Qh,Qh,$h,$h,eg,eg,Jh,Jh,tg,tg],rg=[Wh,Jh,Qh,$h,tg],ig=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return ng[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return rg[Math.floor((r-120782)/10)];if(r===120485||r===120486)return ng[0];if(120486<r&&r<120782)return Jh;throw new B(`Unsupported character: `+e)},ag=function(e,t,n){if(gh[n][e]){var r=gh[n][e].replace;r&&(e=r)}return{value:e,metrics:ph(e,t,n)}},og=function(e,t,n,r,i){var a=ag(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 nh(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 nh(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},sg=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&ag(e,`Main-Bold`,t).metrics?og(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||gh[t][e].font===`main`?og(e,`Main-Regular`,t,n,r):og(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},cg=function(e,t,n){return n!==`textord`&&ag(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},lg=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=ig(i);f=m.font,p=m[r+`Class`]}if(f)return og(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=cg(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=Sg[o].fontName,g=[o]):(h=xg(s,c,l),g=[s,c,l]);if(ag(i,h,r).metrics)return og(i,h,r,t,a.concat(g));if(Eh.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(og(i[y],h,r,t,a.concat(g)));return gg(v)}}if(n===`mathord`)return og(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=gh[r][i]&&gh[r][i].font;if(b===`ams`)return og(i,xg(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return og(i,xg(`textrm`,c,l),r,t,a.concat(c,l));var x=xg(b,c,l);return og(i,x,r,t,a.concat(x,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},ug=(e,t)=>{if(Km(e.classes)!==Km(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},dg=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof nh&&r instanceof nh&&ug(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},fg=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},Y=function(e,t,n,r){var i=new Qm(e,t,n,r);return fg(i),i},pg=(e,t,n,r)=>new Qm(e,t,n,r),mg=function(e,t,n){var r=Y([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=V(r.height),r.maxFontSize=1,r},hg=function(e,t,n,r){var i=new $m(e,t,n,r);return fg(i),i},gg=function(e){var t=new Vm(e);return fg(t),t},_g=function(e,t){return e instanceof Vm?Y([],[e],t):e},vg=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}},yg=function(e,t){for(var{children:n,depth:r}=vg(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=Y([`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=Y(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=Y([`vlist`],l);y.style.height=V(d);var b;if(u<0){var x=Y([`vlist`],[Y([],[])]);x.style.height=V(-u),b=[Y([`vlist-r`],[y,Y([`vlist-s`],[new nh(``)])]),Y([`vlist-r`],[x])]}else b=[Y([`vlist-r`],[y])];var S=Y([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},bg=(e,t)=>{var n=Y([`mspace`],[],t),r=Gm(e,t);return n.style.marginRight=V(r),n},xg=(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},Sg={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`}},Cg={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},wg=function(e,t){var[n,r,i]=Cg[e],a=pg([`overlay`],[new rh([new ih(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},Tg={number:3,unit:`mu`},Eg={number:4,unit:`mu`},Dg={number:5,unit:`mu`},Og={mord:{mop:Tg,mbin:Eg,mrel:Dg,minner:Tg},mop:{mord:Tg,mop:Tg,mrel:Dg,minner:Tg},mbin:{mord:Eg,mop:Eg,mopen:Eg,minner:Eg},mrel:{mord:Dg,mop:Dg,mopen:Dg,minner:Dg},mopen:{},mclose:{mop:Tg,mbin:Eg,mrel:Dg,minner:Tg},mpunct:{mord:Tg,mop:Tg,mrel:Dg,mopen:Tg,mclose:Tg,mpunct:Tg,minner:Tg},minner:{mord:Tg,mop:Tg,mbin:Eg,mrel:Dg,mopen:Tg,mpunct:Tg,minner:Tg}},kg={mord:{mop:Tg},mop:{mord:Tg,mop:Tg},mbin:{},mrel:{},mopen:{},mclose:{mop:Tg},mpunct:{},minner:{mop:Tg}},Ag={},jg={},Mg={};function Ng(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)Ag[n[c]]=s;t&&(a&&(jg[t]=a),o&&(Mg[t]=o))}function Pg(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Ng({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var Fg=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Ig=function(e){return e.type===`ordgroup`?e.body:[e]},Lg=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Rg=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),zg={display:Sm.DISPLAY,text:Sm.TEXT,script:Sm.SCRIPT,scriptscript:Sm.SCRIPTSCRIPT},Bg={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},Vg=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=qg(e[a],t);if(o instanceof Vm){var s=o.children;i.push(...s)}else i.push(o)}if(dg(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(zg[l.style]))}var u=Y([r[0]||`leftmost`],[],t),d=Y([r[1]||`rightmost`],[],t),f=n===`root`;return Hg(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Rg.has(r)?t.classes[0]=`mord`:r===`mbin`&&Lg.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),Hg(i,(e,t)=>{var n=Gg(t),r=Gg(e),i=n&&r?e.hasClass(`mtight`)?kg[n]?.[r]:Og[n]?.[r]:null;if(i)return bg(i,c)},{node:u},d,f),i},Hg=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=Ug(o);if(s){Hg(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=Y([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Ug=function(e){return e instanceof Vm||e instanceof $m||e instanceof Qm&&e.hasClass(`enclosing`)?e:null},Wg=function(e,t){var n=Ug(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Wg(r[r.length-1],`right`);if(t===`left`)return Wg(r[0],`left`)}}return e},Gg=function(e,t){return e?(t&&(e=Wg(e,t)),Bg[e.classes[0]]||null):null},Kg=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return Y(t.concat(n))},qg=function(e,t,n){if(!e)return Y();if(jg[e.type]){var r=jg[e.type](e,t);if(n&&t.size!==n.size){r=Y(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 Jg(e,t){var n=Y([`base`],e,t),r=Y([`strut`]);return r.style.height=V(n.height+n.depth),n.depth&&(r.style.verticalAlign=V(-n.depth)),n.children.unshift(r),n}function Yg(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=Vg(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(Jg(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(Jg(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Jg(o,t));var l;n?(l=Jg(Vg(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=Y([`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 Xg(e){return new Vm(e)}var X=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=Km(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Zg&&this.children[n+1]instanceof Zg){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Zg;)r+=this.children[++n].toText();e.appendChild(new Zg(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+=Xp(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+Xp(Km(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(``)}},Zg=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Xp(this.toText())}toText(){return this.text}},Qg=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:` `}},$g=new Set([`\\imath`,`\\jmath`]),e_=new Set([`mrow`,`mtable`]),t_=function(e,t,n){return gh[t][e]&&gh[t][e].replace&&e.charCodeAt(0)!==55349&&!(Eh.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=gh[t][e].replace),new Zg(e)},n_=function(e){return e.length===1?e[0]:new X(`mrow`,e)},r_={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`},i_=(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=r_[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if($g.has(a))return null;if(gh[r][a]){var o=gh[r][a].replace;o&&(a=o)}var s=Sg[n].fontName;return ph(a,s,r)?Sg[n].variant:null};function a_(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Zg&&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 Zg&&n.text===`,`}return!1}var o_=function(e,t,n){if(e.length===1){var r=c_(e[0],t);return n&&r instanceof X&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=c_(e[o],t);if(s instanceof X&&a instanceof X){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(a_(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&a_(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||a_(a))){var c=s.children[0];c instanceof X&&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 Zg&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof Zg&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},s_=function(e,t,n){return n_(o_(e,t,n))},c_=function(e,t){if(!e)return new X(`mrow`);if(Mg[e.type])return Mg[e.type](e,t);throw new B(`Got group of unknown type: '`+e.type+`'`)};function l_(e,t,n,r,i){var a=o_(e,n),o=a.length===1&&a[0]instanceof X&&e_.has(a[0].type)?a[0]:new X(`mrow`,a),s=new X(`annotation`,[new Zg(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new X(`math`,[new X(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),Y([i?`katex`:`katex-mathml`],[c])}var u_=[[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]],d_=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],f_=function(e,t){return t.size<2?e:u_[e-1][t.size-1]},p_=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=d_[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:f_(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:d_[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=f_(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||=hh(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};p_.BASESIZE=6;var m_=function(e){return new p_({style:e.displayMode?Sm.DISPLAY:Sm.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},h_=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=Y(n,[e])}return e},g_=function(e,t,n){var r=m_(n),i;return n.output===`mathml`?l_(e,t,r,n.displayMode,!0):(i=n.output===`html`?Y([`katex`],[Yg(e,r)]):Y([`katex`],[l_(e,t,r,n.displayMode,!1),Yg(e,r)]),h_(i,n))},__=function(e,t,n){return h_(Y([`katex`],[Yg(e,m_(n))]),n)},v_={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":`=`},y_=function(e){var t=new X(`mo`,[new Zg(v_[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},b_={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]},x_=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),S_=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(x_.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:pg([],[new rh([new ih(o)],{width:`100%`,height:V(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=b_[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
|
|
365
|
-
`+h+` children.`);for(var v=0;v<h;v++){var y=new rh([new ih(d[v])],{width:`400em`,height:V(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=pg([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=V(m),l.push(b)}return{span:Y([`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},C_=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=Y([`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 ah({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new ah({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=pg([],[new rh(c,{width:`100%`,height:V(o)})],i)}return a.height=o,a.style.height=V(o),a},w_={bin:1,close:1,inner:1,open:1,punct:1,rel:1},T_={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function E_(e){return e in w_}function D_(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 O_(e){var t=k_(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function k_(e){return e&&(e.type===`atom`||T_.hasOwnProperty(e.type))?e:null}var A_=e=>{if(e instanceof nh)return e;if(ch(e)&&e.children.length===1)return A_(e.children[0])},j_=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=D_(e.base,`accent`),n=r.base,e.base=n,i=sh(qg(e,t)),e.base=r):(r=D_(e,`accent`),n=r.base);var a=qg(n,t.havingCrampedStyle()),o=r.isShifty&&$p(n),s=0;o&&(s=A_(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=S_(r,t),u=yg({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=wg(`vec`,t),f=Cg.vec[1]):(d=lg({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=oh(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=Y([`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=yg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=Y([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},M_=(e,t)=>{var n=e.isStretchy?y_(e.label):new X(`mo`,[t_(e.label,e.mode)]),r=new X(`mover`,[c_(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},N_=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));Ng({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=Fg(t[0]),r=!N_.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:j_,mathmlBuilder:M_}),Ng({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:j_,mathmlBuilder:M_}),Ng({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=qg(e.base,t),r=S_(e,t),i=e.label===`\\utilde`?.12:0;return Y([`mord`,`accentunder`],[yg({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=y_(e.label),r=new X(`munder`,[c_(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var P_=e=>{var t=new X(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};Ng({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=_g(qg(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=_g(qg(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=S_(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=yg({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=yg({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return Y([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=y_(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=P_(c_(e.body,t));r=e.below?new X(`munderover`,[n,P_(c_(e.below,t)),i]):new X(`mover`,[n,i])}else e.below?r=new X(`munder`,[n,P_(c_(e.below,t))]):(r=P_(),r=new X(`mover`,[n,r]));return r}});function F_(e,t){var n=Vg(e.body,t,!0);return Y([e.mclass],n,t)}function I_(e,t){var n,r=o_(e.body,t);return e.mclass===`minner`?n=new X(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new X(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new X(`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}Ng({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:Ig(i),isCharacterBox:$p(i)}},htmlBuilder:F_,mathmlBuilder:I_});var L_=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`};Ng({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:L_(t[0]),body:Ig(t[1]),isCharacterBox:$p(t[1])}}}),Ng({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`:L_(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Ig(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:$p(c)}},htmlBuilder:F_,mathmlBuilder:I_}),Ng({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:L_(t[0]),body:Ig(t[0])}},htmlBuilder(e,t){var n=Vg(e.body,t,!0),r=Y([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new X(`mstyle`,o_(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var R_={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},z_=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),B_=e=>e.type===`textord`&&e.text===`@`,V_=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function H_(e,t,n){var r=R_[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 U_(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=z_(),c=0;c<o.length;c++)if(!B_(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=O_(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(V_(o[p],l)){f=!1,c=p;break}if(B_(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:[H_(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=z_()}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([])}}Ng({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=_g(qg(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 X(`mrow`,[c_(e.label,t)]);return n=new X(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new X(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Ng({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=_g(qg(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new X(`mrow`,[c_(e.fragment,t)])}}),Ng({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=D_(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=D_(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 W_=(e,t)=>gg(Vg(e.body,t.withColor(e.color),!1)),G_=(e,t)=>{var n=new X(`mstyle`,o_(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};Ng({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=D_(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Ig(i)}},htmlBuilder:W_,mathmlBuilder:G_}),Ng({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=D_(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:W_,mathmlBuilder:G_}),Ng({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&&D_(i,`size`).value}},htmlBuilder(e,t){var n=Y([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=V(Gm(e.size,t)))),n},mathmlBuilder(e,t){var n=new X(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,V(Gm(e.size,t)))),n}});var K_={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},q_=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new B(`Expected a control sequence`,e);return t},J_=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Y_=(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)};Ng({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(K_[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=K_[r.text]),D_(t.parseFunction(),`internal`);throw new B(`Invalid token after macro prefix`,r)}}),Ng({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===K_[n]),{type:`internal`,mode:t.mode}}}),Ng({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=q_(t.gullet.popToken());return t.gullet.consumeSpaces(),Y_(t,r,J_(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Ng({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=q_(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Y_(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var X_=function(e,t,n){var r=ph(gh.math[e]&&gh.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Z_=function(e,t,n,r){var i=n.havingBaseStyle(t),a=Y(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Q_=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},$_=function(e,t,n,r,i,a){var o=Z_(og(e,`Main-Regular`,i,r),t,r,a);return n&&Q_(o,r,t),o},ev=function(e,t,n,r){return og(e,`Size`+t+`-Regular`,n,r)},tv=function(e,t,n,r,i,a){var o=ev(e,t,i,r),s=Z_(Y([`delimsizing`,`size`+t],[o],r),Sm.TEXT,r,a);return n&&Q_(s,r,Sm.TEXT),s},nv=function(e,t,n){return{type:`elem`,elem:Y([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[Y([],[og(e,t,n)])])}},rv=function(e,t,n){var r=lh[`Size4-Regular`][e.charCodeAt(0)]?lh[`Size4-Regular`][e.charCodeAt(0)][4]:lh[`Size1-Regular`][e.charCodeAt(0)][4],i=pg([],[new rh([new ih(`inner`,Lm(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}},iv=.008,av={type:`kern`,size:-1*iv},ov=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),sv=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),cv=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`):ov.has(e)?(c=`∣`,u=`vert`,d=333):sv.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=X_(o,f,i),m=p.height+p.depth,h=X_(c,f,i),g=h.height+h.depth,_=X_(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=X_(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,ee=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,te=r.fontMetrics().axisHeight;n&&(te*=r.sizeMultiplier);var ne=ee/2-te,re=[];if(u.length>0){var ie=ee-m-v,ae=Math.round(ee*1e3),oe=zm(u,Math.round(ie*1e3)),se=new ih(u,oe),ce=V(d/1e3),le=V(ae/1e3),ue=pg([],[new rh([se],{width:ce,height:le,viewBox:`0 0 `+d+` `+ae})],r);ue.height=ae/1e3,ue.style.width=ce,ue.style.height=le,re.push({type:`elem`,elem:ue})}else{if(re.push(nv(l,f,i)),re.push(av),s===null){var de=ee-m-v+2*iv;re.push(rv(c,de,r))}else{var fe=(ee-m-v-y)/2+2*iv;re.push(rv(c,fe,r)),re.push(av),re.push(nv(s,f,i)),re.push(av),re.push(rv(c,fe,r))}re.push(av),re.push(nv(o,f,i))}var pe=r.havingBaseStyle(Sm.TEXT);return Z_(Y([`delimsizing`,`mult`],[yg({positionType:`bottom`,positionData:ne,children:re})],pe),Sm.TEXT,r,a)},lv=80,uv=.08,dv=function(e,t,n,r,i){return pg([`hide-tail`],[new rh([new ih(e,Im(e,r,n))],{width:`400em`,height:V(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},fv=function(e,t){var n=t.havingBaseSizing(),r=Sv(`\\surd`,e*n.sizeMultiplier,bv,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+lv,e<1?i=1:e<1.4&&(i=.7),s=(1+a+uv)/i,c=(1+a)/i,o=dv(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+lv)*gv[r.size],c=(gv[r.size]+a)/i,s=(gv[r.size]+a+uv)/i,o=dv(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+uv,c=e+a,l=Math.floor(1e3*e+a)+lv,o=dv(`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}},pv=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),mv=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),hv=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),gv=[0,1.2,1.8,2.4,3],_v=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),pv.has(e)||hv.has(e))return tv(e,t,!1,n,r,i);if(mv.has(e))return cv(e,gv[t],!1,n,r,i);throw new B(`Illegal delimiter: '`+e+`'`)},vv=[{type:`small`,style:Sm.SCRIPTSCRIPT},{type:`small`,style:Sm.SCRIPT},{type:`small`,style:Sm.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],yv=[{type:`small`,style:Sm.SCRIPTSCRIPT},{type:`small`,style:Sm.SCRIPT},{type:`small`,style:Sm.TEXT},{type:`stack`}],bv=[{type:`small`,style:Sm.SCRIPTSCRIPT},{type:`small`,style:Sm.SCRIPT},{type:`small`,style:Sm.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],xv=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.`)},Sv=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=X_(e,xv(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]},Cv=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=hv.has(e)?vv:pv.has(e)?bv:yv,s=Sv(e,t,o,r);return s.type===`small`?$_(e,s.style,n,r,i,a):s.type===`large`?tv(e,s.size,n,r,i,a):cv(e,t,n,r,i,a)},wv=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 Cv(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},Tv={"\\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}},Ev=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 Dv(e){return`isMiddle`in e}function Ov(e,t){var n=k_(e);if(n&&Ev.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)}Ng({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=Ov(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:Tv[e.funcName].size,mclass:Tv[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?Y([e.mclass]):_v(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(t_(e.delim,e.mode));var n=new X(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=V(gv[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function kv(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}Ng({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:Ov(t[0],e).text,color:n}}}),Ng({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Ov(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=D_(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{kv(e);for(var n=Vg(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];Dv(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===`.`?Kg(t,[`mopen`]):wv(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(Dv(u)){var d=u.isMiddle;n[l]=wv(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=Kg(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=wv(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),Y([`minner`],n,t)},mathmlBuilder:(e,t)=>{kv(e);var n=o_(e.body,t);if(e.left!==`.`){var r=new X(`mo`,[t_(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new X(`mo`,[t_(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return n_(n)}}),Ng({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Ov(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=Kg(t,[]):(n=_v(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new X(`mo`,[e.delim===`\\vert`||e.delim===`|`?t_(`|`,`text`):t_(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var Av=(e,t)=>{var n=_g(qg(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=$p(e.body);if(r===`sout`)a=Y([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Gm({number:.6,unit:`pt`},t),l=Gm({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=pg([`hide-tail`],[new rh([new ih(`phase`,Pm(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=C_(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=yg({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=yg({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?Y([`mord`,`cancel-lap`],[g],t):Y([`mord`],[g],t)},jv=(e,t)=>{var n,r=new X(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[c_(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};Ng({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=D_(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Av,mathmlBuilder:jv}),Ng({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=D_(t[0],`color-token`).color,o=D_(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:Av,mathmlBuilder:jv}),Ng({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]}}}),Ng({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:Av,mathmlBuilder:jv}),Ng({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:Av,mathmlBuilder:jv}),Ng({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 Mv={};function Nv(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)Mv[n[c]]=s;a&&(jg[t]=a),o&&(Mg[t]=o)}var Pv={};function Z(e,t){Pv[e]=t}var Fv=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}},Iv=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,Fv.range(this,t))}};function Lv(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 Rv=e=>{if(!e.parser.settings.displayMode)throw new B(`{`+e.envName+`} can be used only in display mode.`)},zv=new Set([`gather`,`gather*`]);function Bv(e){if(!e.includes(`ed`))return!e.includes(`*`)}function Vv(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 Iv(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(Lv(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var ee=e.fetch().text;if(ee===`&`){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(ee===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(ee===`\\\\`){e.consume();var te=void 0;e.gullet.future().text!==` `&&(te=e.parseSizeGroup(!0)),g.push(te?te.value:null),b(),_.push(Lv(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 Hv(e){return e.slice(0,1)===`d`?`display`:`text`}var Uv=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(Sm.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Gm({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,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var ee=qg(y[r],t);x<ee.depth&&(x=ee.depth),b<ee.height&&(b=ee.height),S.cells[r]=ee}var te=e.rowGaps[n],ne=0;te&&(ne=Gm(te,t),ne>0&&(ne+=g,x<ne&&(x=ne),ne=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+ne,s[n]=S,v(a[n+1])}var re=_/2+t.fontMetrics().axisHeight,ie=e.cols||[],ae=[],oe,se,ce=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var le=s[n],ue=le.pos-re,de=e.tags[n],fe=void 0;fe=de===!0?Y([`eqn-num`],[],t):de===!1?Y([],[],t):Y([],Vg(de,t,!0),t),fe.depth=le.depth,fe.height=le.height,ce.push({type:`elem`,elem:fe,shift:ue})}for(r=0,se=0;r<o||se<ie.length;++r,++se){for(var pe=ie[se],me=!0;(he=pe)?.type===`separator`;){var he;if(me||(oe=Y([`arraycolsep`],[]),oe.style.width=V(t.fontMetrics().doubleRuleSep),ae.push(oe)),pe.separator===`|`||pe.separator===`:`){var ge=pe.separator===`|`?`solid`:`dashed`,_e=Y([`vertical-separator`],[],t);_e.style.height=V(_),_e.style.borderRightWidth=V(l),_e.style.borderRightStyle=ge,_e.style.margin=`0 `+V(-l/2);var ve=_-re;ve&&(_e.style.verticalAlign=V(-ve)),ae.push(_e)}else throw new B(`Invalid separator type: `+pe.separator);se++,pe=ie[se],me=!1}if(!(r>=o)){var ye=void 0;(r>0||e.hskipBeforeAndAfter)&&(ye=pe?.pregap??d,ye!==0&&(oe=Y([`arraycolsep`],[]),oe.style.width=V(ye),ae.push(oe)));var be=[];for(n=0;n<i;++n){var xe=s[n],Se=xe.cells[r];if(Se){var Ce=xe.pos-re;Se.depth=xe.depth,Se.height=xe.height,be.push({type:`elem`,elem:Se,shift:Ce})}}var we=yg({positionType:`individualShift`,children:be}),Te=Y([`col-align-`+(pe?.align||`c`)],[we]);ae.push(Te),(r<o-1||e.hskipBeforeAndAfter)&&(ye=pe?.postgap??d,ye!==0&&(oe=Y([`arraycolsep`],[]),oe.style.width=V(ye),ae.push(oe)))}}var Ee=Y([`mtable`],ae);if(c.length>0){for(var De=mg(`hline`,t,l),Oe=mg(`hdashline`,t,l),ke=[{type:`elem`,elem:Ee,shift:0}];c.length>0;){var Ae=c.pop(),je=Ae.pos-re;Ae.isDashed?ke.push({type:`elem`,elem:Oe,shift:je}):ke.push({type:`elem`,elem:De,shift:je})}Ee=yg({positionType:`individualShift`,children:ke})}if(ce.length===0)return Y([`mord`],[Ee],t);var Me=Y([`tag`],[yg({positionType:`individualShift`,children:ce})],t);return gg([Ee,Me])},Wv={c:`center `,l:`left `,r:`right `},Gv=function(e,t){for(var n=[],r=new X(`mtd`,[],[`mtr-glue`]),i=new X(`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 X(`mtd`,[c_(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 X(`mtr`,s))}var l=new X(`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+=Wv[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||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.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 ee=``,te=e.hLinesBeforeRow;d+=te[0].length>0?`left `:``,d+=te[te.length-1].length>0?`right `:``;for(var ne=1;ne<te.length-1;ne++)ee+=te[ne].length===0?`none `:te[ne][0]?`dashed `:`solid `;return/[sd]/.test(ee)&&l.setAttribute(`rowlines`,ee.trim()),d!==``&&(l=new X(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new X(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},Kv=function(e,t){e.envName.includes(`ed`)||Rv(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=Vv(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:Bv(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=D_(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)D_(D_(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};Nv({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(k_(t[0])?[t[0]]:D_(t[0],`ordgroup`).body).map(function(e){var t=O_(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 Vv(e.parser,r,Hv(e.envName))},htmlBuilder:Uv,mathmlBuilder:Gv}),Nv({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=Vv(e.parser,r,Hv(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:Uv,mathmlBuilder:Gv}),Nv({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Vv(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Uv,mathmlBuilder:Gv}),Nv({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(k_(t[0])?[t[0]]:D_(t[0],`ordgroup`).body).map(function(e){var t=O_(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=Vv(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:Uv,mathmlBuilder:Gv}),Nv({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Vv(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Hv(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Uv,mathmlBuilder:Gv}),Nv({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Kv,htmlBuilder:Uv,mathmlBuilder:Gv}),Nv({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){zv.has(e.envName)&&Rv(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Bv(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Vv(e.parser,t,`display`)},htmlBuilder:Uv,mathmlBuilder:Gv}),Nv({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Kv,htmlBuilder:Uv,mathmlBuilder:Gv}),Nv({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Rv(e);var t={autoTag:Bv(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Vv(e.parser,t,`display`)},htmlBuilder:Uv,mathmlBuilder:Gv}),Nv({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Rv(e),U_(e.parser)},htmlBuilder:Uv,mathmlBuilder:Gv}),Z(`\\nonumber`,`\\gdef\\@eqnsw{0}`),Z(`\\notag`,`\\nonumber`),Ng({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 qv=Mv;Ng({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+=D_(i.body[o],`textord`).text;if(r===`\\begin`){if(!qv.hasOwnProperty(a))throw new B(`No such environment: `+a,i);var s=qv[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=D_(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 Jv=(e,t)=>{var n=e.font,r=t.withFont(n);return qg(e.body,r)},Yv=(e,t)=>{var n=e.font,r=t.withFont(n);return c_(e.body,r)},Xv={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};Ng({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=Fg(t[0]),a=r;return a in Xv&&(a=Xv[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Jv,mathmlBuilder:Yv}),Ng({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:L_(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:$p(r)}}}),Ng({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:Jv,mathmlBuilder:Yv});var Zv=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=qg(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=qg(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Gm(e.barSize,t),u=mg(`frac-line`,t,d)):u=mg(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===Sm.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=yg({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=yg({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===Sm.DISPLAY.size?t.fontMetrics().delim1:n.size===Sm.SCRIPTSCRIPT.size?t.havingStyle(Sm.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?Kg(t,[`mopen`]):Cv(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?Y([]):e.rightDelim==null?Kg(t,[`mclose`]):Cv(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return Y([`mord`].concat(a.sizingClasses(t)),[x,Y([`mfrac`],[g]),S],t)},Qv=(e,t)=>{var n=new X(`mfrac`,[c_(e.numer,t),c_(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Gm(e.barSize,t);n.setAttribute(`linethickness`,V(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new X(`mo`,[new Zg(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new X(`mo`,[new Zg(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return n_(i)}return n},$v=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;Ng({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`),$v({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Zv,mathmlBuilder:Qv}),Ng({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 ey=[`display`,`text`,`script`,`scriptscript`],ty=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};Ng({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=Fg(t[0]),o=a.type===`atom`&&a.family===`open`?ty(a.text):null,s=Fg(t[1]),c=s.type===`atom`&&s.family===`close`?ty(s.text):null,l=D_(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=D_(p.body[0],`textord`);f=ey[Number(m.text)]}}else p=D_(p,`textord`),f=ey[Number(p.text)];return $v({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),Ng({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:D_(t[0],`size`).value,token:i}}}),Ng({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=D_(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 ny=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?qg(e.sup,t.havingStyle(n.sup()),t):qg(e.sub,t.havingStyle(n.sub()),t),i=D_(e.base,`horizBrace`)):i=D_(e,`horizBrace`);var a=qg(i.base,t.havingBaseStyle(Sm.DISPLAY)),o=S_(i,t),s=i.isOver?yg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):yg({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=Y([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?yg({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):yg({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return Y([`minner`,i.isOver?`mover`:`munder`],[s],t)};Ng({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:ny,mathmlBuilder:(e,t)=>{var n=y_(e.label);return new X(e.isOver?`mover`:`munder`,[c_(e.base,t),n])}}),Ng({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=D_(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Ig(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Vg(e.body,t,!1);return hg(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=s_(e.body,t);return n instanceof X||(n=new X(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Ng({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=D_(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:Ig(s)}}}),Ng({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:Ig(t[0])}},htmlBuilder(e,t){return gg(Vg(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new X(`mrow`,o_(e.body,t.withFont(``)))}}),Ng({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=D_(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:Ig(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Vg(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Y(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)=>s_(e.body,t)}),Ng({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:Ig(t[0]),mathml:Ig(t[1])}},htmlBuilder:(e,t)=>gg(Vg(e.html,t,!1)),mathmlBuilder:(e,t)=>s_(e.mathml,t)});var ry=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(!Wm(n))throw new B(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};Ng({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=D_(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=ry(d);break;case`height`:a=ry(d);break;case`totalheight`:o=ry(d);break;default:throw new B(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=D_(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=Gm(e.height,t),r=0;e.totalheight.number>0&&(r=Gm(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Gm(e.width,t));var a={height:V(n+r)};i>0&&(a.width=V(i)),r>0&&(a.verticalAlign=V(-r));var o=new eh(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new X(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Gm(e.height,t),i=0;if(e.totalheight.number>0&&(i=Gm(e.totalheight,t)-r,n.setAttribute(`valign`,V(-i))),n.setAttribute(`height`,V(r+i)),e.width.number>0){var a=Gm(e.width,t);n.setAttribute(`width`,V(a))}return n.setAttribute(`src`,e.src),n}}),Ng({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=D_(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 bg(e.dimension,t)},mathmlBuilder(e,t){return new Qg(Gm(e.dimension,t))}}),Ng({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=Y([],[qg(e.body,t)]),n=Y([`inner`],[n],t)):n=Y([`inner`],[qg(e.body,t)]);var r=Y([`fix`],[]),i=Y([e.alignment],[n,r],t),a=Y([`strut`]);return a.style.height=V(i.height+i.depth),i.depth&&(a.style.verticalAlign=V(-i.depth)),i.children.unshift(a),i=Y([`thinbox`],[i],t),Y([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[c_(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}}),Ng({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}}}),Ng({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new B(`Mismatched `+e.funcName)}});var iy=(e,t)=>{switch(t.style.size){case Sm.DISPLAY.size:return e.display;case Sm.TEXT.size:return e.text;case Sm.SCRIPT.size:return e.script;case Sm.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ng({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:Ig(t[0]),text:Ig(t[1]),script:Ig(t[2]),scriptscript:Ig(t[3])}},htmlBuilder:(e,t)=>gg(Vg(iy(e,t),t,!1)),mathmlBuilder:(e,t)=>s_(iy(e,t),t)});var ay=(e,t,n,r,i,a,o)=>{e=Y([],[e]);var s=n&&$p(n),c,l;if(t){var u=qg(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=qg(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=yg({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=yg({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=yg({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=Y([`mspace`],[],r);m.style.marginRight=V(a),p.unshift(m)}return Y([`mop`,`op-limits`],p,r)},oy=new Set([`\\smallint`]),sy=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=D_(e.base,`op`),i=!0):a=D_(e,`op`);var o=t.style,s=!1;o.size===Sm.DISPLAY.size&&a.symbol&&!oy.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=og(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=wg(d+`Size`+(s?`2`:`1`),t);c=yg({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=Vg(a.body,t,!0);p.length===1&&p[0]instanceof nh?(c=p[0],c.classes[0]=`mop`):c=Y([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(sg(a.name[h],a.mode,t));c=Y([`mop`],m,t)}var g=0,_=0;return(c instanceof nh||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?ay(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=V(g)),c)},cy=(e,t)=>{var n;if(e.symbol)n=new X(`mo`,[t_(e.name,e.mode)]),oy.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new X(`mo`,o_(e.body,t));else{n=new X(`mi`,[new Zg(e.name.slice(1))]);var r=new X(`mo`,[t_(``,`text`)]);n=e.parentIsSupSub?new X(`mrow`,[n,r]):Xg([n,r])}return n},ly={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};Ng({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=ly[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:sy,mathmlBuilder:cy}),Ng({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:Ig(r)}},htmlBuilder:sy,mathmlBuilder:cy});var uy={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};Ng({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:sy,mathmlBuilder:cy}),Ng({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:sy,mathmlBuilder:cy}),Ng({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=uy[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:sy,mathmlBuilder:cy});var dy=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=D_(e.base,`operatorname`),i=!0):a=D_(e,`operatorname`);var o;if(a.body.length>0){for(var s=Vg(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 nh&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=Y([`mop`],s,t)}else o=Y([`mop`],[],t);return i?ay(o,n,r,t,t.style,0,0):o};Ng({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:Ig(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:dy,mathmlBuilder:(e,t)=>{for(var n=o_(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Qg)){if(a instanceof X)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 Zg?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new Zg(n.map(e=>e.toText()).join(``))]);var s=new X(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new X(`mo`,[t_(``,`text`)]);return e.parentIsSupSub?new X(`mrow`,[s,c]):Xg([s,c])}}),Z(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Pg({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?gg(Vg(e.body,t,!1)):Y([`mord`],Vg(e.body,t,!0),t)},mathmlBuilder(e,t){return s_(e.body,t,!0)}}),Ng({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=qg(e.body,t.havingCrampedStyle()),r=mg(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return Y([`mord`,`overline`],[yg({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 X(`mo`,[new Zg(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`mover`,[c_(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Ng({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:Ig(r)}},htmlBuilder:(e,t)=>gg(Vg(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new X(`mphantom`,o_(e.body,t))}),Z(`\\hphantom`,`\\smash{\\phantom{#1}}`),Ng({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)=>Y([`mord`,`rlap`],[Y([`inner`],[qg(e.body,t.withPhantom())]),Y([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[new X(`mphantom`,o_(Ig(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),Ng({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=D_(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=qg(e.body,t);return yg({positionType:`shift`,positionData:-Gm(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new X(`mpadded`,[c_(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Ng({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),Ng({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=D_(t[0],`size`),o=D_(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&D_(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=Y([`mord`,`rule`],[],t),r=Gm(e.width,t),i=Gm(e.height,t),a=e.shift?Gm(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=Gm(e.width,t),r=Gm(e.height,t),i=e.shift?Gm(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new X(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,V(n)),o.setAttribute(`height`,V(r));var s=new X(`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 fy(e,t,n){for(var r=Vg(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 gg(r)}var py=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];Ng({type:`sizing`,names:py,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:py.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return fy(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new X(`mstyle`,o_(e.body,n));return r.setAttribute(`mathsize`,V(n.sizeMultiplier)),r}}),Ng({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]&&D_(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=O_(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=Y([],[qg(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 Y([`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 Y([`mord`],[yg({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[c_(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Ng({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=qg(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=_g(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<Sm.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=fv(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=yg({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(Sm.SCRIPTSCRIPT),p=qg(e.index,f,t);return Y([`mord`,`sqrt`],[Y([`root`],[yg({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}return Y([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new X(`mroot`,[c_(n,t),c_(r,t)]):new X(`msqrt`,[c_(n,t)])}});var my={display:Sm.DISPLAY,text:Sm.TEXT,script:Sm.SCRIPT,scriptscript:Sm.SCRIPTSCRIPT};function hy(e){return e in my}Ng({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(!hy(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=my[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),fy(e.body,r,t)},mathmlBuilder(e,t){var n=my[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new X(`mstyle`,o_(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 gy=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===Sm.DISPLAY.size||n.alwaysHandleSupSub)?sy:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===Sm.DISPLAY.size||n.limits)?dy:null:n.type===`accent`?$p(n.base)?j_:null:n.type===`horizBrace`&&!e.sub===n.isOver?ny:null:null};Pg({type:`supsub`,htmlBuilder(e,t){var n=gy(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=qg(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&$p(r);if(i){var p=t.havingStyle(t.style.sup());s=qg(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=qg(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===Sm.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 nh||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 x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=yg({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=yg({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=yg({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return Y([Gg(o,`right`)||`mord`],[o,Y([`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=[c_(e.base,t)];e.sub&&a.push(c_(e.sub,t)),e.sup&&a.push(c_(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===Sm.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===Sm.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===Sm.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===Sm.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===Sm.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===Sm.DISPLAY)?`munder`:`msub`}return new X(o,a)}}),Pg({type:`atom`,htmlBuilder(e,t){return sg(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new X(`mo`,[t_(e.text,e.mode)]);if(e.family===`bin`){var r=i_(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 _y={mi:`italic`,mn:`normal`,mtext:`normal`};Pg({type:`mathord`,htmlBuilder(e,t){return lg(e,t,`mathord`)},mathmlBuilder(e,t){var n=new X(`mi`,[t_(e.text,e.mode,t)]),r=i_(e,t)||`italic`;return r!==_y[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Pg({type:`textord`,htmlBuilder(e,t){return lg(e,t,`textord`)},mathmlBuilder(e,t){var n=t_(e.text,e.mode,t),r=i_(e,t)||`normal`,i=e.mode===`text`?new X(`mtext`,[n]):/[0-9]/.test(e.text)?new X(`mn`,[n]):e.text===`\\prime`?new X(`mo`,[n]):new X(`mi`,[n]);return r!==_y[i.type]&&i.setAttribute(`mathvariant`,r),i}});var vy={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},yy={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};Pg({type:`spacing`,htmlBuilder(e,t){if(yy.hasOwnProperty(e.text)){var n=yy[e.text].className||``;if(e.mode===`text`){var r=lg(e,t,`textord`);return r.classes.push(n),r}return Y([`mspace`,n],[sg(e.text,e.mode,t)],t)}if(vy.hasOwnProperty(e.text))return Y([`mspace`,vy[e.text]],[],t);throw new B(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(yy.hasOwnProperty(e.text))n=new X(`mtext`,[new Zg(`\xA0`)]);else if(vy.hasOwnProperty(e.text))return new X(`mspace`);else throw new B(`Unknown type of space "`+e.text+`"`);return n}});var by=()=>{var e=new X(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Pg({type:`tag`,mathmlBuilder(e,t){var n=new X(`mtable`,[new X(`mtr`,[by(),new X(`mtd`,[s_(e.body,t)]),by(),new X(`mtd`,[s_(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var xy={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Sy={"\\textbf":`textbf`,"\\textmd":`textmd`},Cy={"\\textit":`textit`,"\\textup":`textup`},wy=(e,t)=>{var n=e.font;return n?xy[n]?t.withTextFontFamily(xy[n]):Sy[n]?t.withTextFontWeight(Sy[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Cy[n]):t};Ng({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:Ig(i),font:r}},htmlBuilder(e,t){var n=wy(e,t);return Y([`mord`,`text`],Vg(e.body,n,!0),n)},mathmlBuilder(e,t){var n=wy(e,t);return s_(e.body,n)}}),Ng({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=qg(e.body,t),r=mg(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return Y([`mord`,`underline`],[yg({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 X(`mo`,[new Zg(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`munder`,[c_(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Ng({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=qg(e.body,t),r=t.fontMetrics().axisHeight;return yg({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new X(`mrow`,[new X(`mpadded`,[c_(e.body,t)],[`vcenter`])])}}),Ng({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=Ty(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(og(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return Y([`mord`,`text`].concat(i.sizingClasses(t)),dg(r),i)},mathmlBuilder(e,t){var n=new X(`mtext`,[new Zg(Ty(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var Ty=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),Ey=Ag,Dy=`[ \r
|
|
366
|
-
]`,
|
|
364
|
+
-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 Vm(e){return`toText`in e}var Hm=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(Vm(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},Um={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},Wm={ex:!0,em:!0,mu:!0},Gm=function(e){return typeof e!=`string`&&(e=e.unit),e in Um||e in Wm||e===`ex`},Km=function(e,t){var n;if(e.unit in Um)n=Um[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`},qm=function(e){return e.filter(e=>e).join(` `)},Jm=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=Jp(n)+`:`+r+`;`)}return t},Ym=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)}},Xm=function(e){var t=document.createElement(e);t.className=qm(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},Zm=/[\s"'>/=\x00-\x1f]/,Qm=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+Zp(qm(this.classes))+`"`);var n=Jm(this.style);n&&(t+=` style="`+Zp(n)+`"`);for(var r of Object.keys(this.attributes)){if(Zm.test(r))throw new B(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+Zp(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},$m=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,Ym.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Xm.call(this,`span`)}toMarkup(){return Qm.call(this,`span`)}},eh=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,Ym.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 Xm.call(this,`a`)}toMarkup(){return Qm.call(this,`a`)}},th=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="`+Zp(this.src)+`"`+(` alt="`+Zp(this.alt)+`"`),t=Jm(this.style);return t&&(e+=` style="`+Zp(t)+`"`),e+=`'/>`,e}},nh={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},rh=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=Tm(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=nh[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=qm(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+=Zp(qm(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+V(this.italic)+`;`),n+=Jm(this.style),n&&(e=!0,t+=` style="`+Zp(n)+`"`);var r=Zp(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},ih=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+`="`+Zp(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},ah=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`,zm[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+Zp(this.alternate)+`"/>`:`<path d="`+Zp(zm[this.pathName])+`"/>`}},oh=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+`="`+Zp(this.attributes[t])+`"`;return e+=`/>`,e}};function sh(e){if(e instanceof rh)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function ch(e){if(e instanceof $m)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var lh=e=>e instanceof $m||e instanceof eh||e instanceof Hm,uh={"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]}},dh={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]},fh={Å:`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 ph(e,t){uh[e]=t}function mh(e,t,n){if(!uh[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=uh[t][r];if(!i&&e[0]in fh&&(r=fh[e[0]].charCodeAt(0),i=uh[t][r]),!i&&n===`text`&&Dm(r)&&(i=uh[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var hh={};function gh(e){var t=e>=5?0:e>=3?1:2;if(!hh[t]){var n=hh[t]={cssEmPerMu:dh.quad[t]/18};for(var r in dh)dh.hasOwnProperty(r)&&(n[r]=dh[r][t])}return hh[t]}var _h={math:{},text:{}};function H(e,t,n,r,i,a){_h[e][i]={font:t,group:n,replace:r},a&&r&&(_h[e][r]=_h[e][i])}var U=`math`,W=`text`,G=`main`,K=`ams`,vh=`accent-token`,yh=`bin`,bh=`close`,xh=`inner`,Sh=`mathord`,Ch=`op-token`,wh=`open`,Th=`punct`,q=`rel`,Eh=`spacing`,J=`textord`;H(U,G,q,`≡`,`\\equiv`,!0),H(U,G,q,`≺`,`\\prec`,!0),H(U,G,q,`≻`,`\\succ`,!0),H(U,G,q,`∼`,`\\sim`,!0),H(U,G,q,`⊥`,`\\perp`),H(U,G,q,`⪯`,`\\preceq`,!0),H(U,G,q,`⪰`,`\\succeq`,!0),H(U,G,q,`≃`,`\\simeq`,!0),H(U,G,q,`∣`,`\\mid`,!0),H(U,G,q,`≪`,`\\ll`,!0),H(U,G,q,`≫`,`\\gg`,!0),H(U,G,q,`≍`,`\\asymp`,!0),H(U,G,q,`∥`,`\\parallel`),H(U,G,q,`⋈`,`\\bowtie`,!0),H(U,G,q,`⌣`,`\\smile`,!0),H(U,G,q,`⊑`,`\\sqsubseteq`,!0),H(U,G,q,`⊒`,`\\sqsupseteq`,!0),H(U,G,q,`≐`,`\\doteq`,!0),H(U,G,q,`⌢`,`\\frown`,!0),H(U,G,q,`∋`,`\\ni`,!0),H(U,G,q,`∝`,`\\propto`,!0),H(U,G,q,`⊢`,`\\vdash`,!0),H(U,G,q,`⊣`,`\\dashv`,!0),H(U,G,q,`∋`,`\\owns`),H(U,G,Th,`.`,`\\ldotp`),H(U,G,Th,`⋅`,`\\cdotp`),H(U,G,Th,`⋅`,`·`),H(W,G,J,`⋅`,`·`),H(U,G,J,`#`,`\\#`),H(W,G,J,`#`,`\\#`),H(U,G,J,`&`,`\\&`),H(W,G,J,`&`,`\\&`),H(U,G,J,`ℵ`,`\\aleph`,!0),H(U,G,J,`∀`,`\\forall`,!0),H(U,G,J,`ℏ`,`\\hbar`,!0),H(U,G,J,`∃`,`\\exists`,!0),H(U,G,J,`∇`,`\\nabla`,!0),H(U,G,J,`♭`,`\\flat`,!0),H(U,G,J,`ℓ`,`\\ell`,!0),H(U,G,J,`♮`,`\\natural`,!0),H(U,G,J,`♣`,`\\clubsuit`,!0),H(U,G,J,`℘`,`\\wp`,!0),H(U,G,J,`♯`,`\\sharp`,!0),H(U,G,J,`♢`,`\\diamondsuit`,!0),H(U,G,J,`ℜ`,`\\Re`,!0),H(U,G,J,`♡`,`\\heartsuit`,!0),H(U,G,J,`ℑ`,`\\Im`,!0),H(U,G,J,`♠`,`\\spadesuit`,!0),H(U,G,J,`§`,`\\S`,!0),H(W,G,J,`§`,`\\S`),H(U,G,J,`¶`,`\\P`,!0),H(W,G,J,`¶`,`\\P`),H(U,G,J,`†`,`\\dag`),H(W,G,J,`†`,`\\dag`),H(W,G,J,`†`,`\\textdagger`),H(U,G,J,`‡`,`\\ddag`),H(W,G,J,`‡`,`\\ddag`),H(W,G,J,`‡`,`\\textdaggerdbl`),H(U,G,bh,`⎱`,`\\rmoustache`,!0),H(U,G,wh,`⎰`,`\\lmoustache`,!0),H(U,G,bh,`⟯`,`\\rgroup`,!0),H(U,G,wh,`⟮`,`\\lgroup`,!0),H(U,G,yh,`∓`,`\\mp`,!0),H(U,G,yh,`⊖`,`\\ominus`,!0),H(U,G,yh,`⊎`,`\\uplus`,!0),H(U,G,yh,`⊓`,`\\sqcap`,!0),H(U,G,yh,`∗`,`\\ast`),H(U,G,yh,`⊔`,`\\sqcup`,!0),H(U,G,yh,`◯`,`\\bigcirc`,!0),H(U,G,yh,`∙`,`\\bullet`,!0),H(U,G,yh,`‡`,`\\ddagger`),H(U,G,yh,`≀`,`\\wr`,!0),H(U,G,yh,`⨿`,`\\amalg`),H(U,G,yh,`&`,`\\And`),H(U,G,q,`⟵`,`\\longleftarrow`,!0),H(U,G,q,`⇐`,`\\Leftarrow`,!0),H(U,G,q,`⟸`,`\\Longleftarrow`,!0),H(U,G,q,`⟶`,`\\longrightarrow`,!0),H(U,G,q,`⇒`,`\\Rightarrow`,!0),H(U,G,q,`⟹`,`\\Longrightarrow`,!0),H(U,G,q,`↔`,`\\leftrightarrow`,!0),H(U,G,q,`⟷`,`\\longleftrightarrow`,!0),H(U,G,q,`⇔`,`\\Leftrightarrow`,!0),H(U,G,q,`⟺`,`\\Longleftrightarrow`,!0),H(U,G,q,`↦`,`\\mapsto`,!0),H(U,G,q,`⟼`,`\\longmapsto`,!0),H(U,G,q,`↗`,`\\nearrow`,!0),H(U,G,q,`↩`,`\\hookleftarrow`,!0),H(U,G,q,`↪`,`\\hookrightarrow`,!0),H(U,G,q,`↘`,`\\searrow`,!0),H(U,G,q,`↼`,`\\leftharpoonup`,!0),H(U,G,q,`⇀`,`\\rightharpoonup`,!0),H(U,G,q,`↙`,`\\swarrow`,!0),H(U,G,q,`↽`,`\\leftharpoondown`,!0),H(U,G,q,`⇁`,`\\rightharpoondown`,!0),H(U,G,q,`↖`,`\\nwarrow`,!0),H(U,G,q,`⇌`,`\\rightleftharpoons`,!0),H(U,K,q,`≮`,`\\nless`,!0),H(U,K,q,``,`\\@nleqslant`),H(U,K,q,``,`\\@nleqq`),H(U,K,q,`⪇`,`\\lneq`,!0),H(U,K,q,`≨`,`\\lneqq`,!0),H(U,K,q,``,`\\@lvertneqq`),H(U,K,q,`⋦`,`\\lnsim`,!0),H(U,K,q,`⪉`,`\\lnapprox`,!0),H(U,K,q,`⊀`,`\\nprec`,!0),H(U,K,q,`⋠`,`\\npreceq`,!0),H(U,K,q,`⋨`,`\\precnsim`,!0),H(U,K,q,`⪹`,`\\precnapprox`,!0),H(U,K,q,`≁`,`\\nsim`,!0),H(U,K,q,``,`\\@nshortmid`),H(U,K,q,`∤`,`\\nmid`,!0),H(U,K,q,`⊬`,`\\nvdash`,!0),H(U,K,q,`⊭`,`\\nvDash`,!0),H(U,K,q,`⋪`,`\\ntriangleleft`),H(U,K,q,`⋬`,`\\ntrianglelefteq`,!0),H(U,K,q,`⊊`,`\\subsetneq`,!0),H(U,K,q,``,`\\@varsubsetneq`),H(U,K,q,`⫋`,`\\subsetneqq`,!0),H(U,K,q,``,`\\@varsubsetneqq`),H(U,K,q,`≯`,`\\ngtr`,!0),H(U,K,q,``,`\\@ngeqslant`),H(U,K,q,``,`\\@ngeqq`),H(U,K,q,`⪈`,`\\gneq`,!0),H(U,K,q,`≩`,`\\gneqq`,!0),H(U,K,q,``,`\\@gvertneqq`),H(U,K,q,`⋧`,`\\gnsim`,!0),H(U,K,q,`⪊`,`\\gnapprox`,!0),H(U,K,q,`⊁`,`\\nsucc`,!0),H(U,K,q,`⋡`,`\\nsucceq`,!0),H(U,K,q,`⋩`,`\\succnsim`,!0),H(U,K,q,`⪺`,`\\succnapprox`,!0),H(U,K,q,`≆`,`\\ncong`,!0),H(U,K,q,``,`\\@nshortparallel`),H(U,K,q,`∦`,`\\nparallel`,!0),H(U,K,q,`⊯`,`\\nVDash`,!0),H(U,K,q,`⋫`,`\\ntriangleright`),H(U,K,q,`⋭`,`\\ntrianglerighteq`,!0),H(U,K,q,``,`\\@nsupseteqq`),H(U,K,q,`⊋`,`\\supsetneq`,!0),H(U,K,q,``,`\\@varsupsetneq`),H(U,K,q,`⫌`,`\\supsetneqq`,!0),H(U,K,q,``,`\\@varsupsetneqq`),H(U,K,q,`⊮`,`\\nVdash`,!0),H(U,K,q,`⪵`,`\\precneqq`,!0),H(U,K,q,`⪶`,`\\succneqq`,!0),H(U,K,q,``,`\\@nsubseteqq`),H(U,K,yh,`⊴`,`\\unlhd`),H(U,K,yh,`⊵`,`\\unrhd`),H(U,K,q,`↚`,`\\nleftarrow`,!0),H(U,K,q,`↛`,`\\nrightarrow`,!0),H(U,K,q,`⇍`,`\\nLeftarrow`,!0),H(U,K,q,`⇏`,`\\nRightarrow`,!0),H(U,K,q,`↮`,`\\nleftrightarrow`,!0),H(U,K,q,`⇎`,`\\nLeftrightarrow`,!0),H(U,K,q,`△`,`\\vartriangle`),H(U,K,J,`ℏ`,`\\hslash`),H(U,K,J,`▽`,`\\triangledown`),H(U,K,J,`◊`,`\\lozenge`),H(U,K,J,`Ⓢ`,`\\circledS`),H(U,K,J,`®`,`\\circledR`),H(W,K,J,`®`,`\\circledR`),H(U,K,J,`∡`,`\\measuredangle`,!0),H(U,K,J,`∄`,`\\nexists`),H(U,K,J,`℧`,`\\mho`),H(U,K,J,`Ⅎ`,`\\Finv`,!0),H(U,K,J,`⅁`,`\\Game`,!0),H(U,K,J,`‵`,`\\backprime`),H(U,K,J,`▲`,`\\blacktriangle`),H(U,K,J,`▼`,`\\blacktriangledown`),H(U,K,J,`■`,`\\blacksquare`),H(U,K,J,`⧫`,`\\blacklozenge`),H(U,K,J,`★`,`\\bigstar`),H(U,K,J,`∢`,`\\sphericalangle`,!0),H(U,K,J,`∁`,`\\complement`,!0),H(U,K,J,`ð`,`\\eth`,!0),H(W,G,J,`ð`,`ð`),H(U,K,J,`╱`,`\\diagup`),H(U,K,J,`╲`,`\\diagdown`),H(U,K,J,`□`,`\\square`),H(U,K,J,`□`,`\\Box`),H(U,K,J,`◊`,`\\Diamond`),H(U,K,J,`¥`,`\\yen`,!0),H(W,K,J,`¥`,`\\yen`,!0),H(U,K,J,`✓`,`\\checkmark`,!0),H(W,K,J,`✓`,`\\checkmark`),H(U,K,J,`ℶ`,`\\beth`,!0),H(U,K,J,`ℸ`,`\\daleth`,!0),H(U,K,J,`ℷ`,`\\gimel`,!0),H(U,K,J,`ϝ`,`\\digamma`,!0),H(U,K,J,`ϰ`,`\\varkappa`),H(U,K,wh,`┌`,`\\@ulcorner`,!0),H(U,K,bh,`┐`,`\\@urcorner`,!0),H(U,K,wh,`└`,`\\@llcorner`,!0),H(U,K,bh,`┘`,`\\@lrcorner`,!0),H(U,K,q,`≦`,`\\leqq`,!0),H(U,K,q,`⩽`,`\\leqslant`,!0),H(U,K,q,`⪕`,`\\eqslantless`,!0),H(U,K,q,`≲`,`\\lesssim`,!0),H(U,K,q,`⪅`,`\\lessapprox`,!0),H(U,K,q,`≊`,`\\approxeq`,!0),H(U,K,yh,`⋖`,`\\lessdot`),H(U,K,q,`⋘`,`\\lll`,!0),H(U,K,q,`≶`,`\\lessgtr`,!0),H(U,K,q,`⋚`,`\\lesseqgtr`,!0),H(U,K,q,`⪋`,`\\lesseqqgtr`,!0),H(U,K,q,`≑`,`\\doteqdot`),H(U,K,q,`≓`,`\\risingdotseq`,!0),H(U,K,q,`≒`,`\\fallingdotseq`,!0),H(U,K,q,`∽`,`\\backsim`,!0),H(U,K,q,`⋍`,`\\backsimeq`,!0),H(U,K,q,`⫅`,`\\subseteqq`,!0),H(U,K,q,`⋐`,`\\Subset`,!0),H(U,K,q,`⊏`,`\\sqsubset`,!0),H(U,K,q,`≼`,`\\preccurlyeq`,!0),H(U,K,q,`⋞`,`\\curlyeqprec`,!0),H(U,K,q,`≾`,`\\precsim`,!0),H(U,K,q,`⪷`,`\\precapprox`,!0),H(U,K,q,`⊲`,`\\vartriangleleft`),H(U,K,q,`⊴`,`\\trianglelefteq`),H(U,K,q,`⊨`,`\\vDash`,!0),H(U,K,q,`⊪`,`\\Vvdash`,!0),H(U,K,q,`⌣`,`\\smallsmile`),H(U,K,q,`⌢`,`\\smallfrown`),H(U,K,q,`≏`,`\\bumpeq`,!0),H(U,K,q,`≎`,`\\Bumpeq`,!0),H(U,K,q,`≧`,`\\geqq`,!0),H(U,K,q,`⩾`,`\\geqslant`,!0),H(U,K,q,`⪖`,`\\eqslantgtr`,!0),H(U,K,q,`≳`,`\\gtrsim`,!0),H(U,K,q,`⪆`,`\\gtrapprox`,!0),H(U,K,yh,`⋗`,`\\gtrdot`),H(U,K,q,`⋙`,`\\ggg`,!0),H(U,K,q,`≷`,`\\gtrless`,!0),H(U,K,q,`⋛`,`\\gtreqless`,!0),H(U,K,q,`⪌`,`\\gtreqqless`,!0),H(U,K,q,`≖`,`\\eqcirc`,!0),H(U,K,q,`≗`,`\\circeq`,!0),H(U,K,q,`≜`,`\\triangleq`,!0),H(U,K,q,`∼`,`\\thicksim`),H(U,K,q,`≈`,`\\thickapprox`),H(U,K,q,`⫆`,`\\supseteqq`,!0),H(U,K,q,`⋑`,`\\Supset`,!0),H(U,K,q,`⊐`,`\\sqsupset`,!0),H(U,K,q,`≽`,`\\succcurlyeq`,!0),H(U,K,q,`⋟`,`\\curlyeqsucc`,!0),H(U,K,q,`≿`,`\\succsim`,!0),H(U,K,q,`⪸`,`\\succapprox`,!0),H(U,K,q,`⊳`,`\\vartriangleright`),H(U,K,q,`⊵`,`\\trianglerighteq`),H(U,K,q,`⊩`,`\\Vdash`,!0),H(U,K,q,`∣`,`\\shortmid`),H(U,K,q,`∥`,`\\shortparallel`),H(U,K,q,`≬`,`\\between`,!0),H(U,K,q,`⋔`,`\\pitchfork`,!0),H(U,K,q,`∝`,`\\varpropto`),H(U,K,q,`◀`,`\\blacktriangleleft`),H(U,K,q,`∴`,`\\therefore`,!0),H(U,K,q,`∍`,`\\backepsilon`),H(U,K,q,`▶`,`\\blacktriangleright`),H(U,K,q,`∵`,`\\because`,!0),H(U,K,q,`⋘`,`\\llless`),H(U,K,q,`⋙`,`\\gggtr`),H(U,K,yh,`⊲`,`\\lhd`),H(U,K,yh,`⊳`,`\\rhd`),H(U,K,q,`≂`,`\\eqsim`,!0),H(U,G,q,`⋈`,`\\Join`),H(U,K,q,`≑`,`\\Doteq`,!0),H(U,K,yh,`∔`,`\\dotplus`,!0),H(U,K,yh,`∖`,`\\smallsetminus`),H(U,K,yh,`⋒`,`\\Cap`,!0),H(U,K,yh,`⋓`,`\\Cup`,!0),H(U,K,yh,`⩞`,`\\doublebarwedge`,!0),H(U,K,yh,`⊟`,`\\boxminus`,!0),H(U,K,yh,`⊞`,`\\boxplus`,!0),H(U,K,yh,`⋇`,`\\divideontimes`,!0),H(U,K,yh,`⋉`,`\\ltimes`,!0),H(U,K,yh,`⋊`,`\\rtimes`,!0),H(U,K,yh,`⋋`,`\\leftthreetimes`,!0),H(U,K,yh,`⋌`,`\\rightthreetimes`,!0),H(U,K,yh,`⋏`,`\\curlywedge`,!0),H(U,K,yh,`⋎`,`\\curlyvee`,!0),H(U,K,yh,`⊝`,`\\circleddash`,!0),H(U,K,yh,`⊛`,`\\circledast`,!0),H(U,K,yh,`⋅`,`\\centerdot`),H(U,K,yh,`⊺`,`\\intercal`,!0),H(U,K,yh,`⋒`,`\\doublecap`),H(U,K,yh,`⋓`,`\\doublecup`),H(U,K,yh,`⊠`,`\\boxtimes`,!0),H(U,K,q,`⇢`,`\\dashrightarrow`,!0),H(U,K,q,`⇠`,`\\dashleftarrow`,!0),H(U,K,q,`⇇`,`\\leftleftarrows`,!0),H(U,K,q,`⇆`,`\\leftrightarrows`,!0),H(U,K,q,`⇚`,`\\Lleftarrow`,!0),H(U,K,q,`↞`,`\\twoheadleftarrow`,!0),H(U,K,q,`↢`,`\\leftarrowtail`,!0),H(U,K,q,`↫`,`\\looparrowleft`,!0),H(U,K,q,`⇋`,`\\leftrightharpoons`,!0),H(U,K,q,`↶`,`\\curvearrowleft`,!0),H(U,K,q,`↺`,`\\circlearrowleft`,!0),H(U,K,q,`↰`,`\\Lsh`,!0),H(U,K,q,`⇈`,`\\upuparrows`,!0),H(U,K,q,`↿`,`\\upharpoonleft`,!0),H(U,K,q,`⇃`,`\\downharpoonleft`,!0),H(U,G,q,`⊶`,`\\origof`,!0),H(U,G,q,`⊷`,`\\imageof`,!0),H(U,K,q,`⊸`,`\\multimap`,!0),H(U,K,q,`↭`,`\\leftrightsquigarrow`,!0),H(U,K,q,`⇉`,`\\rightrightarrows`,!0),H(U,K,q,`⇄`,`\\rightleftarrows`,!0),H(U,K,q,`↠`,`\\twoheadrightarrow`,!0),H(U,K,q,`↣`,`\\rightarrowtail`,!0),H(U,K,q,`↬`,`\\looparrowright`,!0),H(U,K,q,`↷`,`\\curvearrowright`,!0),H(U,K,q,`↻`,`\\circlearrowright`,!0),H(U,K,q,`↱`,`\\Rsh`,!0),H(U,K,q,`⇊`,`\\downdownarrows`,!0),H(U,K,q,`↾`,`\\upharpoonright`,!0),H(U,K,q,`⇂`,`\\downharpoonright`,!0),H(U,K,q,`⇝`,`\\rightsquigarrow`,!0),H(U,K,q,`⇝`,`\\leadsto`),H(U,K,q,`⇛`,`\\Rrightarrow`,!0),H(U,K,q,`↾`,`\\restriction`),H(U,G,J,`‘`,"`"),H(U,G,J,`$`,`\\$`),H(W,G,J,`$`,`\\$`),H(W,G,J,`$`,`\\textdollar`),H(U,G,J,`%`,`\\%`),H(W,G,J,`%`,`\\%`),H(U,G,J,`_`,`\\_`),H(W,G,J,`_`,`\\_`),H(W,G,J,`_`,`\\textunderscore`),H(U,G,J,`∠`,`\\angle`,!0),H(U,G,J,`∞`,`\\infty`,!0),H(U,G,J,`′`,`\\prime`),H(U,G,J,`△`,`\\triangle`),H(U,G,J,`Γ`,`\\Gamma`,!0),H(U,G,J,`Δ`,`\\Delta`,!0),H(U,G,J,`Θ`,`\\Theta`,!0),H(U,G,J,`Λ`,`\\Lambda`,!0),H(U,G,J,`Ξ`,`\\Xi`,!0),H(U,G,J,`Π`,`\\Pi`,!0),H(U,G,J,`Σ`,`\\Sigma`,!0),H(U,G,J,`Υ`,`\\Upsilon`,!0),H(U,G,J,`Φ`,`\\Phi`,!0),H(U,G,J,`Ψ`,`\\Psi`,!0),H(U,G,J,`Ω`,`\\Omega`,!0),H(U,G,J,`A`,`Α`),H(U,G,J,`B`,`Β`),H(U,G,J,`E`,`Ε`),H(U,G,J,`Z`,`Ζ`),H(U,G,J,`H`,`Η`),H(U,G,J,`I`,`Ι`),H(U,G,J,`K`,`Κ`),H(U,G,J,`M`,`Μ`),H(U,G,J,`N`,`Ν`),H(U,G,J,`O`,`Ο`),H(U,G,J,`P`,`Ρ`),H(U,G,J,`T`,`Τ`),H(U,G,J,`X`,`Χ`),H(U,G,J,`¬`,`\\neg`,!0),H(U,G,J,`¬`,`\\lnot`),H(U,G,J,`⊤`,`\\top`),H(U,G,J,`⊥`,`\\bot`),H(U,G,J,`∅`,`\\emptyset`),H(U,K,J,`∅`,`\\varnothing`),H(U,G,Sh,`α`,`\\alpha`,!0),H(U,G,Sh,`β`,`\\beta`,!0),H(U,G,Sh,`γ`,`\\gamma`,!0),H(U,G,Sh,`δ`,`\\delta`,!0),H(U,G,Sh,`ϵ`,`\\epsilon`,!0),H(U,G,Sh,`ζ`,`\\zeta`,!0),H(U,G,Sh,`η`,`\\eta`,!0),H(U,G,Sh,`θ`,`\\theta`,!0),H(U,G,Sh,`ι`,`\\iota`,!0),H(U,G,Sh,`κ`,`\\kappa`,!0),H(U,G,Sh,`λ`,`\\lambda`,!0),H(U,G,Sh,`μ`,`\\mu`,!0),H(U,G,Sh,`ν`,`\\nu`,!0),H(U,G,Sh,`ξ`,`\\xi`,!0),H(U,G,Sh,`ο`,`\\omicron`,!0),H(U,G,Sh,`π`,`\\pi`,!0),H(U,G,Sh,`ρ`,`\\rho`,!0),H(U,G,Sh,`σ`,`\\sigma`,!0),H(U,G,Sh,`τ`,`\\tau`,!0),H(U,G,Sh,`υ`,`\\upsilon`,!0),H(U,G,Sh,`ϕ`,`\\phi`,!0),H(U,G,Sh,`χ`,`\\chi`,!0),H(U,G,Sh,`ψ`,`\\psi`,!0),H(U,G,Sh,`ω`,`\\omega`,!0),H(U,G,Sh,`ε`,`\\varepsilon`,!0),H(U,G,Sh,`ϑ`,`\\vartheta`,!0),H(U,G,Sh,`ϖ`,`\\varpi`,!0),H(U,G,Sh,`ϱ`,`\\varrho`,!0),H(U,G,Sh,`ς`,`\\varsigma`,!0),H(U,G,Sh,`φ`,`\\varphi`,!0),H(U,G,yh,`∗`,`*`,!0),H(U,G,yh,`+`,`+`),H(U,G,yh,`−`,`-`,!0),H(U,G,yh,`⋅`,`\\cdot`,!0),H(U,G,yh,`∘`,`\\circ`,!0),H(U,G,yh,`÷`,`\\div`,!0),H(U,G,yh,`±`,`\\pm`,!0),H(U,G,yh,`×`,`\\times`,!0),H(U,G,yh,`∩`,`\\cap`,!0),H(U,G,yh,`∪`,`\\cup`,!0),H(U,G,yh,`∖`,`\\setminus`,!0),H(U,G,yh,`∧`,`\\land`),H(U,G,yh,`∨`,`\\lor`),H(U,G,yh,`∧`,`\\wedge`,!0),H(U,G,yh,`∨`,`\\vee`,!0),H(U,G,J,`√`,`\\surd`),H(U,G,wh,`⟨`,`\\langle`,!0),H(U,G,wh,`∣`,`\\lvert`),H(U,G,wh,`∥`,`\\lVert`),H(U,G,bh,`?`,`?`),H(U,G,bh,`!`,`!`),H(U,G,bh,`⟩`,`\\rangle`,!0),H(U,G,bh,`∣`,`\\rvert`),H(U,G,bh,`∥`,`\\rVert`),H(U,G,q,`=`,`=`),H(U,G,q,`:`,`:`),H(U,G,q,`≈`,`\\approx`,!0),H(U,G,q,`≅`,`\\cong`,!0),H(U,G,q,`≥`,`\\ge`),H(U,G,q,`≥`,`\\geq`,!0),H(U,G,q,`←`,`\\gets`),H(U,G,q,`>`,`\\gt`,!0),H(U,G,q,`∈`,`\\in`,!0),H(U,G,q,``,`\\@not`),H(U,G,q,`⊂`,`\\subset`,!0),H(U,G,q,`⊃`,`\\supset`,!0),H(U,G,q,`⊆`,`\\subseteq`,!0),H(U,G,q,`⊇`,`\\supseteq`,!0),H(U,K,q,`⊈`,`\\nsubseteq`,!0),H(U,K,q,`⊉`,`\\nsupseteq`,!0),H(U,G,q,`⊨`,`\\models`),H(U,G,q,`←`,`\\leftarrow`,!0),H(U,G,q,`≤`,`\\le`),H(U,G,q,`≤`,`\\leq`,!0),H(U,G,q,`<`,`\\lt`,!0),H(U,G,q,`→`,`\\rightarrow`,!0),H(U,G,q,`→`,`\\to`),H(U,K,q,`≱`,`\\ngeq`,!0),H(U,K,q,`≰`,`\\nleq`,!0),H(U,G,Eh,`\xA0`,`\\ `),H(U,G,Eh,`\xA0`,`\\space`),H(U,G,Eh,`\xA0`,`\\nobreakspace`),H(W,G,Eh,`\xA0`,`\\ `),H(W,G,Eh,`\xA0`,` `),H(W,G,Eh,`\xA0`,`\\space`),H(W,G,Eh,`\xA0`,`\\nobreakspace`),H(U,G,Eh,``,`\\nobreak`),H(U,G,Eh,``,`\\allowbreak`),H(U,G,Th,`,`,`,`),H(U,G,Th,`;`,`;`),H(U,K,yh,`⊼`,`\\barwedge`,!0),H(U,K,yh,`⊻`,`\\veebar`,!0),H(U,G,yh,`⊙`,`\\odot`,!0),H(U,G,yh,`⊕`,`\\oplus`,!0),H(U,G,yh,`⊗`,`\\otimes`,!0),H(U,G,J,`∂`,`\\partial`,!0),H(U,G,yh,`⊘`,`\\oslash`,!0),H(U,K,yh,`⊚`,`\\circledcirc`,!0),H(U,K,yh,`⊡`,`\\boxdot`,!0),H(U,G,yh,`△`,`\\bigtriangleup`),H(U,G,yh,`▽`,`\\bigtriangledown`),H(U,G,yh,`†`,`\\dagger`),H(U,G,yh,`⋄`,`\\diamond`),H(U,G,yh,`⋆`,`\\star`),H(U,G,yh,`◃`,`\\triangleleft`),H(U,G,yh,`▹`,`\\triangleright`),H(U,G,wh,`{`,`\\{`),H(W,G,J,`{`,`\\{`),H(W,G,J,`{`,`\\textbraceleft`),H(U,G,bh,`}`,`\\}`),H(W,G,J,`}`,`\\}`),H(W,G,J,`}`,`\\textbraceright`),H(U,G,wh,`{`,`\\lbrace`),H(U,G,bh,`}`,`\\rbrace`),H(U,G,wh,`[`,`\\lbrack`,!0),H(W,G,J,`[`,`\\lbrack`,!0),H(U,G,bh,`]`,`\\rbrack`,!0),H(W,G,J,`]`,`\\rbrack`,!0),H(U,G,wh,`(`,`\\lparen`,!0),H(U,G,bh,`)`,`\\rparen`,!0),H(W,G,J,`<`,`\\textless`,!0),H(W,G,J,`>`,`\\textgreater`,!0),H(U,G,wh,`⌊`,`\\lfloor`,!0),H(U,G,bh,`⌋`,`\\rfloor`,!0),H(U,G,wh,`⌈`,`\\lceil`,!0),H(U,G,bh,`⌉`,`\\rceil`,!0),H(U,G,J,`\\`,`\\backslash`),H(U,G,J,`∣`,`|`),H(U,G,J,`∣`,`\\vert`),H(W,G,J,`|`,`\\textbar`,!0),H(U,G,J,`∥`,`\\|`),H(U,G,J,`∥`,`\\Vert`),H(W,G,J,`∥`,`\\textbardbl`),H(W,G,J,`~`,`\\textasciitilde`),H(W,G,J,`\\`,`\\textbackslash`),H(W,G,J,`^`,`\\textasciicircum`),H(U,G,q,`↑`,`\\uparrow`,!0),H(U,G,q,`⇑`,`\\Uparrow`,!0),H(U,G,q,`↓`,`\\downarrow`,!0),H(U,G,q,`⇓`,`\\Downarrow`,!0),H(U,G,q,`↕`,`\\updownarrow`,!0),H(U,G,q,`⇕`,`\\Updownarrow`,!0),H(U,G,Ch,`∐`,`\\coprod`),H(U,G,Ch,`⋁`,`\\bigvee`),H(U,G,Ch,`⋀`,`\\bigwedge`),H(U,G,Ch,`⨄`,`\\biguplus`),H(U,G,Ch,`⋂`,`\\bigcap`),H(U,G,Ch,`⋃`,`\\bigcup`),H(U,G,Ch,`∫`,`\\int`),H(U,G,Ch,`∫`,`\\intop`),H(U,G,Ch,`∬`,`\\iint`),H(U,G,Ch,`∭`,`\\iiint`),H(U,G,Ch,`∏`,`\\prod`),H(U,G,Ch,`∑`,`\\sum`),H(U,G,Ch,`⨂`,`\\bigotimes`),H(U,G,Ch,`⨁`,`\\bigoplus`),H(U,G,Ch,`⨀`,`\\bigodot`),H(U,G,Ch,`∮`,`\\oint`),H(U,G,Ch,`∯`,`\\oiint`),H(U,G,Ch,`∰`,`\\oiiint`),H(U,G,Ch,`⨆`,`\\bigsqcup`),H(U,G,Ch,`∫`,`\\smallint`),H(W,G,xh,`…`,`\\textellipsis`),H(U,G,xh,`…`,`\\mathellipsis`),H(W,G,xh,`…`,`\\ldots`,!0),H(U,G,xh,`…`,`\\ldots`,!0),H(U,G,xh,`⋯`,`\\@cdots`,!0),H(U,G,xh,`⋱`,`\\ddots`,!0),H(U,G,J,`⋮`,`\\varvdots`),H(W,G,J,`⋮`,`\\varvdots`),H(U,G,vh,`ˊ`,`\\acute`),H(U,G,vh,`ˋ`,`\\grave`),H(U,G,vh,`¨`,`\\ddot`),H(U,G,vh,`~`,`\\tilde`),H(U,G,vh,`ˉ`,`\\bar`),H(U,G,vh,`˘`,`\\breve`),H(U,G,vh,`ˇ`,`\\check`),H(U,G,vh,`^`,`\\hat`),H(U,G,vh,`⃗`,`\\vec`),H(U,G,vh,`˙`,`\\dot`),H(U,G,vh,`˚`,`\\mathring`),H(U,G,Sh,``,`\\@imath`),H(U,G,Sh,``,`\\@jmath`),H(U,G,J,`ı`,`ı`),H(U,G,J,`ȷ`,`ȷ`),H(W,G,J,`ı`,`\\i`,!0),H(W,G,J,`ȷ`,`\\j`,!0),H(W,G,J,`ß`,`\\ss`,!0),H(W,G,J,`æ`,`\\ae`,!0),H(W,G,J,`œ`,`\\oe`,!0),H(W,G,J,`ø`,`\\o`,!0),H(W,G,J,`Æ`,`\\AE`,!0),H(W,G,J,`Œ`,`\\OE`,!0),H(W,G,J,`Ø`,`\\O`,!0),H(W,G,vh,`ˊ`,`\\'`),H(W,G,vh,`ˋ`,"\\`"),H(W,G,vh,`ˆ`,`\\^`),H(W,G,vh,`˜`,`\\~`),H(W,G,vh,`ˉ`,`\\=`),H(W,G,vh,`˘`,`\\u`),H(W,G,vh,`˙`,`\\.`),H(W,G,vh,`¸`,`\\c`),H(W,G,vh,`˚`,`\\r`),H(W,G,vh,`ˇ`,`\\v`),H(W,G,vh,`¨`,`\\"`),H(W,G,vh,`˝`,`\\H`),H(W,G,vh,`◯`,`\\textcircled`);var Dh={"--":!0,"---":!0,"``":!0,"''":!0};H(W,G,J,`–`,`--`,!0),H(W,G,J,`–`,`\\textendash`),H(W,G,J,`—`,`---`,!0),H(W,G,J,`—`,`\\textemdash`),H(W,G,J,`‘`,"`",!0),H(W,G,J,`‘`,`\\textquoteleft`),H(W,G,J,`’`,`'`,!0),H(W,G,J,`’`,`\\textquoteright`),H(W,G,J,`“`,"``",!0),H(W,G,J,`“`,`\\textquotedblleft`),H(W,G,J,`”`,`''`,!0),H(W,G,J,`”`,`\\textquotedblright`),H(U,G,J,`°`,`\\degree`,!0),H(W,G,J,`°`,`\\degree`),H(W,G,J,`°`,`\\textdegree`,!0),H(U,G,J,`£`,`\\pounds`),H(U,G,J,`£`,`\\mathsterling`,!0),H(W,G,J,`£`,`\\pounds`),H(W,G,J,`£`,`\\textsterling`,!0),H(U,K,J,`✠`,`\\maltese`),H(W,K,J,`✠`,`\\maltese`);for(var Oh=`0123456789/@."`,kh=0;kh<Oh.length;kh++){var Ah=Oh.charAt(kh);H(U,G,J,Ah,Ah)}for(var jh=`0123456789!@*()-=+";:?/.,`,Mh=0;Mh<jh.length;Mh++){var Nh=jh.charAt(Mh);H(W,G,J,Nh,Nh)}for(var Ph=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,Fh=0;Fh<Ph.length;Fh++){var Ih=Ph.charAt(Fh);H(U,G,Sh,Ih,Ih),H(W,G,J,Ih,Ih)}H(U,K,J,`C`,`ℂ`),H(W,K,J,`C`,`ℂ`),H(U,K,J,`H`,`ℍ`),H(W,K,J,`H`,`ℍ`),H(U,K,J,`N`,`ℕ`),H(W,K,J,`N`,`ℕ`),H(U,K,J,`P`,`ℙ`),H(W,K,J,`P`,`ℙ`),H(U,K,J,`Q`,`ℚ`),H(W,K,J,`Q`,`ℚ`),H(U,K,J,`R`,`ℝ`),H(W,K,J,`R`,`ℝ`),H(U,K,J,`Z`,`ℤ`),H(W,K,J,`Z`,`ℤ`),H(U,G,Sh,`h`,`ℎ`),H(W,G,Sh,`h`,`ℎ`);for(var Lh,Rh=0;Rh<Ph.length;Rh++){var zh=Ph.charAt(Rh);Lh=String.fromCharCode(55349,56320+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh),Lh=String.fromCharCode(55349,56372+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh),Lh=String.fromCharCode(55349,56424+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh),Lh=String.fromCharCode(55349,56580+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh),Lh=String.fromCharCode(55349,56684+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh),Lh=String.fromCharCode(55349,56736+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh),Lh=String.fromCharCode(55349,56788+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh),Lh=String.fromCharCode(55349,56840+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh),Lh=String.fromCharCode(55349,56944+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh),Rh<26&&(Lh=String.fromCharCode(55349,56632+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh),Lh=String.fromCharCode(55349,56476+Rh),H(U,G,Sh,zh,Lh),H(W,G,J,zh,Lh))}Lh=String.fromCharCode(55349,56668),H(U,G,Sh,`k`,Lh),H(W,G,J,`k`,Lh);for(var Bh=0;Bh<10;Bh++){var Vh=Bh.toString();Lh=String.fromCharCode(55349,57294+Bh),H(U,G,Sh,Vh,Lh),H(W,G,J,Vh,Lh),Lh=String.fromCharCode(55349,57314+Bh),H(U,G,Sh,Vh,Lh),H(W,G,J,Vh,Lh),Lh=String.fromCharCode(55349,57324+Bh),H(U,G,Sh,Vh,Lh),H(W,G,J,Vh,Lh),Lh=String.fromCharCode(55349,57334+Bh),H(U,G,Sh,Vh,Lh),H(W,G,J,Vh,Lh)}for(var Hh=`ÐÞþ`,Uh=0;Uh<Hh.length;Uh++){var Wh=Hh.charAt(Uh);H(U,G,Sh,Wh,Wh),H(W,G,J,Wh,Wh)}var Gh={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},Kh={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},qh={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},Jh={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},Yh={mathClass:``,textClass:``,font:``},Xh={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},Zh={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},Qh={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},$h={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},eg={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},tg={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},ng={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},rg=[Gh,Gh,Kh,Kh,qh,qh,Jh,Yh,Yh,Yh,Xh,Xh,Zh,Zh,Qh,Qh,$h,$h,eg,eg,tg,tg,Yh,Yh,ng,ng],ig=[Gh,Yh,$h,eg,ng],ag=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return rg[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return ig[Math.floor((r-120782)/10)];if(r===120485||r===120486)return rg[0];if(120486<r&&r<120782)return Yh;throw new B(`Unsupported character: `+e)},og=function(e,t,n){if(_h[n][e]){var r=_h[n][e].replace;r&&(e=r)}return{value:e,metrics:mh(e,t,n)}},sg=function(e,t,n,r,i){var a=og(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 rh(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 rh(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},cg=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&og(e,`Main-Bold`,t).metrics?sg(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||_h[t][e].font===`main`?sg(e,`Main-Regular`,t,n,r):sg(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},lg=function(e,t,n){return n!==`textord`&&og(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},ug=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=ag(i);f=m.font,p=m[r+`Class`]}if(f)return sg(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=lg(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=Cg[o].fontName,g=[o]):(h=Sg(s,c,l),g=[s,c,l]);if(og(i,h,r).metrics)return sg(i,h,r,t,a.concat(g));if(Dh.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(sg(i[y],h,r,t,a.concat(g)));return _g(v)}}if(n===`mathord`)return sg(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=_h[r][i]&&_h[r][i].font;if(b===`ams`)return sg(i,Sg(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return sg(i,Sg(`textrm`,c,l),r,t,a.concat(c,l));var x=Sg(b,c,l);return sg(i,x,r,t,a.concat(x,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},dg=(e,t)=>{if(qm(e.classes)!==qm(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},fg=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof rh&&r instanceof rh&&dg(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},pg=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},Y=function(e,t,n,r){var i=new $m(e,t,n,r);return pg(i),i},mg=(e,t,n,r)=>new $m(e,t,n,r),hg=function(e,t,n){var r=Y([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=V(r.height),r.maxFontSize=1,r},gg=function(e,t,n,r){var i=new eh(e,t,n,r);return pg(i),i},_g=function(e){var t=new Hm(e);return pg(t),t},vg=function(e,t){return e instanceof Hm?Y([],[e],t):e},yg=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}},bg=function(e,t){for(var{children:n,depth:r}=yg(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=Y([`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=Y(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=Y([`vlist`],l);y.style.height=V(d);var b;if(u<0){var x=Y([`vlist`],[Y([],[])]);x.style.height=V(-u),b=[Y([`vlist-r`],[y,Y([`vlist-s`],[new rh(``)])]),Y([`vlist-r`],[x])]}else b=[Y([`vlist-r`],[y])];var S=Y([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},xg=(e,t)=>{var n=Y([`mspace`],[],t),r=Km(e,t);return n.style.marginRight=V(r),n},Sg=(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},Cg={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`}},wg={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},Tg=function(e,t){var[n,r,i]=wg[e],a=mg([`overlay`],[new ih([new ah(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},Eg={number:3,unit:`mu`},Dg={number:4,unit:`mu`},Og={number:5,unit:`mu`},kg={mord:{mop:Eg,mbin:Dg,mrel:Og,minner:Eg},mop:{mord:Eg,mop:Eg,mrel:Og,minner:Eg},mbin:{mord:Dg,mop:Dg,mopen:Dg,minner:Dg},mrel:{mord:Og,mop:Og,mopen:Og,minner:Og},mopen:{},mclose:{mop:Eg,mbin:Dg,mrel:Og,minner:Eg},mpunct:{mord:Eg,mop:Eg,mrel:Og,mopen:Eg,mclose:Eg,mpunct:Eg,minner:Eg},minner:{mord:Eg,mop:Eg,mbin:Dg,mrel:Og,mopen:Eg,mpunct:Eg,minner:Eg}},Ag={mord:{mop:Eg},mop:{mord:Eg,mop:Eg},mbin:{},mrel:{},mopen:{},mclose:{mop:Eg},mpunct:{},minner:{mop:Eg}},jg={},Mg={},Ng={};function Pg(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)jg[n[c]]=s;t&&(a&&(Mg[t]=a),o&&(Ng[t]=o))}function Fg(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Pg({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var Ig=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Lg=function(e){return e.type===`ordgroup`?e.body:[e]},Rg=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),zg=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Bg={display:Cm.DISPLAY,text:Cm.TEXT,script:Cm.SCRIPT,scriptscript:Cm.SCRIPTSCRIPT},Vg={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},Hg=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Jg(e[a],t);if(o instanceof Hm){var s=o.children;i.push(...s)}else i.push(o)}if(fg(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(Bg[l.style]))}var u=Y([r[0]||`leftmost`],[],t),d=Y([r[1]||`rightmost`],[],t),f=n===`root`;return Ug(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&zg.has(r)?t.classes[0]=`mord`:r===`mbin`&&Rg.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),Ug(i,(e,t)=>{var n=Kg(t),r=Kg(e),i=n&&r?e.hasClass(`mtight`)?Ag[n]?.[r]:kg[n]?.[r]:null;if(i)return xg(i,c)},{node:u},d,f),i},Ug=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=Wg(o);if(s){Ug(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=Y([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Wg=function(e){return e instanceof Hm||e instanceof eh||e instanceof $m&&e.hasClass(`enclosing`)?e:null},Gg=function(e,t){var n=Wg(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Gg(r[r.length-1],`right`);if(t===`left`)return Gg(r[0],`left`)}}return e},Kg=function(e,t){return e?(t&&(e=Gg(e,t)),Vg[e.classes[0]]||null):null},qg=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return Y(t.concat(n))},Jg=function(e,t,n){if(!e)return Y();if(Mg[e.type]){var r=Mg[e.type](e,t);if(n&&t.size!==n.size){r=Y(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 Yg(e,t){var n=Y([`base`],e,t),r=Y([`strut`]);return r.style.height=V(n.height+n.depth),n.depth&&(r.style.verticalAlign=V(-n.depth)),n.children.unshift(r),n}function Xg(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=Hg(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(Yg(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(Yg(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Yg(o,t));var l;n?(l=Yg(Hg(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=Y([`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 Zg(e){return new Hm(e)}var X=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=qm(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Qg&&this.children[n+1]instanceof Qg){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Qg;)r+=this.children[++n].toText();e.appendChild(new Qg(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+=Zp(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+Zp(qm(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(``)}},Qg=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Zp(this.toText())}toText(){return this.text}},$g=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:` `}},e_=new Set([`\\imath`,`\\jmath`]),t_=new Set([`mrow`,`mtable`]),n_=function(e,t,n){return _h[t][e]&&_h[t][e].replace&&e.charCodeAt(0)!==55349&&!(Dh.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=_h[t][e].replace),new Qg(e)},r_=function(e){return e.length===1?e[0]:new X(`mrow`,e)},i_={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`},a_=(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=i_[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(e_.has(a))return null;if(_h[r][a]){var o=_h[r][a].replace;o&&(a=o)}var s=Cg[n].fontName;return mh(a,s,r)?Cg[n].variant:null};function o_(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Qg&&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 Qg&&n.text===`,`}return!1}var s_=function(e,t,n){if(e.length===1){var r=l_(e[0],t);return n&&r instanceof X&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=l_(e[o],t);if(s instanceof X&&a instanceof X){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(o_(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&o_(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||o_(a))){var c=s.children[0];c instanceof X&&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 Qg&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof Qg&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},c_=function(e,t,n){return r_(s_(e,t,n))},l_=function(e,t){if(!e)return new X(`mrow`);if(Ng[e.type])return Ng[e.type](e,t);throw new B(`Got group of unknown type: '`+e.type+`'`)};function u_(e,t,n,r,i){var a=s_(e,n),o=a.length===1&&a[0]instanceof X&&t_.has(a[0].type)?a[0]:new X(`mrow`,a),s=new X(`annotation`,[new Qg(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new X(`math`,[new X(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),Y([i?`katex`:`katex-mathml`],[c])}var d_=[[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]],f_=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],p_=function(e,t){return t.size<2?e:d_[e-1][t.size-1]},m_=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=f_[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:p_(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:f_[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=p_(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||=gh(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};m_.BASESIZE=6;var h_=function(e){return new m_({style:e.displayMode?Cm.DISPLAY:Cm.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},g_=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=Y(n,[e])}return e},__=function(e,t,n){var r=h_(n),i;return n.output===`mathml`?u_(e,t,r,n.displayMode,!0):(i=n.output===`html`?Y([`katex`],[Xg(e,r)]):Y([`katex`],[u_(e,t,r,n.displayMode,!1),Xg(e,r)]),g_(i,n))},v_=function(e,t,n){return g_(Y([`katex`],[Xg(e,h_(n))]),n)},y_={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":`=`},b_=function(e){var t=new X(`mo`,[new Qg(y_[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},x_={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]},S_=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),C_=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(S_.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:mg([],[new ih([new ah(o)],{width:`100%`,height:V(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=x_[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
|
|
365
|
+
`+h+` children.`);for(var v=0;v<h;v++){var y=new ih([new ah(d[v])],{width:`400em`,height:V(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=mg([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=V(m),l.push(b)}return{span:Y([`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},w_=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=Y([`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 oh({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new oh({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=mg([],[new ih(c,{width:`100%`,height:V(o)})],i)}return a.height=o,a.style.height=V(o),a},T_={bin:1,close:1,inner:1,open:1,punct:1,rel:1},E_={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function D_(e){return e in T_}function O_(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 k_(e){var t=A_(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function A_(e){return e&&(e.type===`atom`||E_.hasOwnProperty(e.type))?e:null}var j_=e=>{if(e instanceof rh)return e;if(lh(e)&&e.children.length===1)return j_(e.children[0])},M_=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=O_(e.base,`accent`),n=r.base,e.base=n,i=ch(Jg(e,t)),e.base=r):(r=O_(e,`accent`),n=r.base);var a=Jg(n,t.havingCrampedStyle()),o=r.isShifty&&em(n),s=0;o&&(s=j_(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=C_(r,t),u=bg({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=Tg(`vec`,t),f=wg.vec[1]):(d=ug({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=sh(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=Y([`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=bg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=Y([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},N_=(e,t)=>{var n=e.isStretchy?b_(e.label):new X(`mo`,[n_(e.label,e.mode)]),r=new X(`mover`,[l_(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},P_=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));Pg({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=Ig(t[0]),r=!P_.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:M_,mathmlBuilder:N_}),Pg({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:M_,mathmlBuilder:N_}),Pg({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=Jg(e.base,t),r=C_(e,t),i=e.label===`\\utilde`?.12:0;return Y([`mord`,`accentunder`],[bg({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=b_(e.label),r=new X(`munder`,[l_(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var F_=e=>{var t=new X(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};Pg({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=vg(Jg(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=vg(Jg(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=C_(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=bg({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=bg({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return Y([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=b_(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=F_(l_(e.body,t));r=e.below?new X(`munderover`,[n,F_(l_(e.below,t)),i]):new X(`mover`,[n,i])}else e.below?r=new X(`munder`,[n,F_(l_(e.below,t))]):(r=F_(),r=new X(`mover`,[n,r]));return r}});function I_(e,t){var n=Hg(e.body,t,!0);return Y([e.mclass],n,t)}function L_(e,t){var n,r=s_(e.body,t);return e.mclass===`minner`?n=new X(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new X(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new X(`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}Pg({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:Lg(i),isCharacterBox:em(i)}},htmlBuilder:I_,mathmlBuilder:L_});var R_=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`};Pg({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:R_(t[0]),body:Lg(t[1]),isCharacterBox:em(t[1])}}}),Pg({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`:R_(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Lg(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:em(c)}},htmlBuilder:I_,mathmlBuilder:L_}),Pg({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:R_(t[0]),body:Lg(t[0])}},htmlBuilder(e,t){var n=Hg(e.body,t,!0),r=Y([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new X(`mstyle`,s_(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var z_={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},B_=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),V_=e=>e.type===`textord`&&e.text===`@`,H_=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function U_(e,t,n){var r=z_[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 W_(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=B_(),c=0;c<o.length;c++)if(!V_(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=k_(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(H_(o[p],l)){f=!1,c=p;break}if(V_(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:[U_(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=B_()}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([])}}Pg({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=vg(Jg(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 X(`mrow`,[l_(e.label,t)]);return n=new X(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new X(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Pg({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=vg(Jg(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new X(`mrow`,[l_(e.fragment,t)])}}),Pg({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=O_(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=O_(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 G_=(e,t)=>_g(Hg(e.body,t.withColor(e.color),!1)),K_=(e,t)=>{var n=new X(`mstyle`,s_(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};Pg({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=O_(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Lg(i)}},htmlBuilder:G_,mathmlBuilder:K_}),Pg({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=O_(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:G_,mathmlBuilder:K_}),Pg({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&&O_(i,`size`).value}},htmlBuilder(e,t){var n=Y([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=V(Km(e.size,t)))),n},mathmlBuilder(e,t){var n=new X(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,V(Km(e.size,t)))),n}});var q_={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},J_=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new B(`Expected a control sequence`,e);return t},Y_=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},X_=(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)};Pg({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(q_[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=q_[r.text]),O_(t.parseFunction(),`internal`);throw new B(`Invalid token after macro prefix`,r)}}),Pg({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===q_[n]),{type:`internal`,mode:t.mode}}}),Pg({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=J_(t.gullet.popToken());return t.gullet.consumeSpaces(),X_(t,r,Y_(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Pg({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=J_(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return X_(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var Z_=function(e,t,n){var r=mh(_h.math[e]&&_h.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Q_=function(e,t,n,r){var i=n.havingBaseStyle(t),a=Y(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},$_=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},ev=function(e,t,n,r,i,a){var o=Q_(sg(e,`Main-Regular`,i,r),t,r,a);return n&&$_(o,r,t),o},tv=function(e,t,n,r){return sg(e,`Size`+t+`-Regular`,n,r)},nv=function(e,t,n,r,i,a){var o=tv(e,t,i,r),s=Q_(Y([`delimsizing`,`size`+t],[o],r),Cm.TEXT,r,a);return n&&$_(s,r,Cm.TEXT),s},rv=function(e,t,n){return{type:`elem`,elem:Y([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[Y([],[sg(e,t,n)])])}},iv=function(e,t,n){var r=uh[`Size4-Regular`][e.charCodeAt(0)]?uh[`Size4-Regular`][e.charCodeAt(0)][4]:uh[`Size1-Regular`][e.charCodeAt(0)][4],i=mg([],[new ih([new ah(`inner`,Rm(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}},av=.008,ov={type:`kern`,size:-1*av},sv=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),cv=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),lv=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`):sv.has(e)?(c=`∣`,u=`vert`,d=333):cv.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=Z_(o,f,i),m=p.height+p.depth,h=Z_(c,f,i),g=h.height+h.depth,_=Z_(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=Z_(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,ee=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,te=r.fontMetrics().axisHeight;n&&(te*=r.sizeMultiplier);var ne=ee/2-te,re=[];if(u.length>0){var ie=ee-m-v,ae=Math.round(ee*1e3),oe=Bm(u,Math.round(ie*1e3)),se=new ah(u,oe),ce=V(d/1e3),le=V(ae/1e3),ue=mg([],[new ih([se],{width:ce,height:le,viewBox:`0 0 `+d+` `+ae})],r);ue.height=ae/1e3,ue.style.width=ce,ue.style.height=le,re.push({type:`elem`,elem:ue})}else{if(re.push(rv(l,f,i)),re.push(ov),s===null){var de=ee-m-v+2*av;re.push(iv(c,de,r))}else{var fe=(ee-m-v-y)/2+2*av;re.push(iv(c,fe,r)),re.push(ov),re.push(rv(s,f,i)),re.push(ov),re.push(iv(c,fe,r))}re.push(ov),re.push(rv(o,f,i))}var pe=r.havingBaseStyle(Cm.TEXT);return Q_(Y([`delimsizing`,`mult`],[bg({positionType:`bottom`,positionData:ne,children:re})],pe),Cm.TEXT,r,a)},uv=80,dv=.08,fv=function(e,t,n,r,i){return mg([`hide-tail`],[new ih([new ah(e,Lm(e,r,n))],{width:`400em`,height:V(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},pv=function(e,t){var n=t.havingBaseSizing(),r=Cv(`\\surd`,e*n.sizeMultiplier,xv,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+uv,e<1?i=1:e<1.4&&(i=.7),s=(1+a+dv)/i,c=(1+a)/i,o=fv(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+uv)*_v[r.size],c=(_v[r.size]+a)/i,s=(_v[r.size]+a+dv)/i,o=fv(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+dv,c=e+a,l=Math.floor(1e3*e+a)+uv,o=fv(`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}},mv=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),hv=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),gv=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),_v=[0,1.2,1.8,2.4,3],vv=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),mv.has(e)||gv.has(e))return nv(e,t,!1,n,r,i);if(hv.has(e))return lv(e,_v[t],!1,n,r,i);throw new B(`Illegal delimiter: '`+e+`'`)},yv=[{type:`small`,style:Cm.SCRIPTSCRIPT},{type:`small`,style:Cm.SCRIPT},{type:`small`,style:Cm.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],bv=[{type:`small`,style:Cm.SCRIPTSCRIPT},{type:`small`,style:Cm.SCRIPT},{type:`small`,style:Cm.TEXT},{type:`stack`}],xv=[{type:`small`,style:Cm.SCRIPTSCRIPT},{type:`small`,style:Cm.SCRIPT},{type:`small`,style:Cm.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Sv=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.`)},Cv=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=Z_(e,Sv(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]},wv=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=gv.has(e)?yv:mv.has(e)?xv:bv,s=Cv(e,t,o,r);return s.type===`small`?ev(e,s.style,n,r,i,a):s.type===`large`?nv(e,s.size,n,r,i,a):lv(e,t,n,r,i,a)},Tv=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 wv(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},Ev={"\\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}},Dv=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 Ov(e){return`isMiddle`in e}function kv(e,t){var n=A_(e);if(n&&Dv.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)}Pg({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=kv(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:Ev[e.funcName].size,mclass:Ev[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?Y([e.mclass]):vv(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(n_(e.delim,e.mode));var n=new X(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=V(_v[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function Av(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}Pg({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:kv(t[0],e).text,color:n}}}),Pg({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=kv(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=O_(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Av(e);for(var n=Hg(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];Ov(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===`.`?qg(t,[`mopen`]):Tv(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(Ov(u)){var d=u.isMiddle;n[l]=Tv(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=qg(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=Tv(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),Y([`minner`],n,t)},mathmlBuilder:(e,t)=>{Av(e);var n=s_(e.body,t);if(e.left!==`.`){var r=new X(`mo`,[n_(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new X(`mo`,[n_(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return r_(n)}}),Pg({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=kv(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=qg(t,[]):(n=vv(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new X(`mo`,[e.delim===`\\vert`||e.delim===`|`?n_(`|`,`text`):n_(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var jv=(e,t)=>{var n=vg(Jg(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=em(e.body);if(r===`sout`)a=Y([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Km({number:.6,unit:`pt`},t),l=Km({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=mg([`hide-tail`],[new ih([new ah(`phase`,Fm(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=w_(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=bg({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=bg({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?Y([`mord`,`cancel-lap`],[g],t):Y([`mord`],[g],t)},Mv=(e,t)=>{var n,r=new X(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[l_(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};Pg({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=O_(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:jv,mathmlBuilder:Mv}),Pg({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=O_(t[0],`color-token`).color,o=O_(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:jv,mathmlBuilder:Mv}),Pg({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]}}}),Pg({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:jv,mathmlBuilder:Mv}),Pg({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:jv,mathmlBuilder:Mv}),Pg({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 Nv={};function Pv(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)Nv[n[c]]=s;a&&(Mg[t]=a),o&&(Ng[t]=o)}var Fv={};function Z(e,t){Fv[e]=t}var Iv=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}},Lv=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,Iv.range(this,t))}};function Rv(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 zv=e=>{if(!e.parser.settings.displayMode)throw new B(`{`+e.envName+`} can be used only in display mode.`)},Bv=new Set([`gather`,`gather*`]);function Vv(e){if(!e.includes(`ed`))return!e.includes(`*`)}function Hv(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 Lv(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(Rv(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var ee=e.fetch().text;if(ee===`&`){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(ee===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(ee===`\\\\`){e.consume();var te=void 0;e.gullet.future().text!==` `&&(te=e.parseSizeGroup(!0)),g.push(te?te.value:null),b(),_.push(Rv(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 Uv(e){return e.slice(0,1)===`d`?`display`:`text`}var Wv=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(Cm.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Km({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,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var ee=Jg(y[r],t);x<ee.depth&&(x=ee.depth),b<ee.height&&(b=ee.height),S.cells[r]=ee}var te=e.rowGaps[n],ne=0;te&&(ne=Km(te,t),ne>0&&(ne+=g,x<ne&&(x=ne),ne=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+ne,s[n]=S,v(a[n+1])}var re=_/2+t.fontMetrics().axisHeight,ie=e.cols||[],ae=[],oe,se,ce=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var le=s[n],ue=le.pos-re,de=e.tags[n],fe=void 0;fe=de===!0?Y([`eqn-num`],[],t):de===!1?Y([],[],t):Y([],Hg(de,t,!0),t),fe.depth=le.depth,fe.height=le.height,ce.push({type:`elem`,elem:fe,shift:ue})}for(r=0,se=0;r<o||se<ie.length;++r,++se){for(var pe=ie[se],me=!0;(he=pe)?.type===`separator`;){var he;if(me||(oe=Y([`arraycolsep`],[]),oe.style.width=V(t.fontMetrics().doubleRuleSep),ae.push(oe)),pe.separator===`|`||pe.separator===`:`){var ge=pe.separator===`|`?`solid`:`dashed`,_e=Y([`vertical-separator`],[],t);_e.style.height=V(_),_e.style.borderRightWidth=V(l),_e.style.borderRightStyle=ge,_e.style.margin=`0 `+V(-l/2);var ve=_-re;ve&&(_e.style.verticalAlign=V(-ve)),ae.push(_e)}else throw new B(`Invalid separator type: `+pe.separator);se++,pe=ie[se],me=!1}if(!(r>=o)){var ye=void 0;(r>0||e.hskipBeforeAndAfter)&&(ye=pe?.pregap??d,ye!==0&&(oe=Y([`arraycolsep`],[]),oe.style.width=V(ye),ae.push(oe)));var be=[];for(n=0;n<i;++n){var xe=s[n],Se=xe.cells[r];if(Se){var Ce=xe.pos-re;Se.depth=xe.depth,Se.height=xe.height,be.push({type:`elem`,elem:Se,shift:Ce})}}var we=bg({positionType:`individualShift`,children:be}),Te=Y([`col-align-`+(pe?.align||`c`)],[we]);ae.push(Te),(r<o-1||e.hskipBeforeAndAfter)&&(ye=pe?.postgap??d,ye!==0&&(oe=Y([`arraycolsep`],[]),oe.style.width=V(ye),ae.push(oe)))}}var Ee=Y([`mtable`],ae);if(c.length>0){for(var De=hg(`hline`,t,l),Oe=hg(`hdashline`,t,l),ke=[{type:`elem`,elem:Ee,shift:0}];c.length>0;){var Ae=c.pop(),je=Ae.pos-re;Ae.isDashed?ke.push({type:`elem`,elem:Oe,shift:je}):ke.push({type:`elem`,elem:De,shift:je})}Ee=bg({positionType:`individualShift`,children:ke})}if(ce.length===0)return Y([`mord`],[Ee],t);var Me=Y([`tag`],[bg({positionType:`individualShift`,children:ce})],t);return _g([Ee,Me])},Gv={c:`center `,l:`left `,r:`right `},Kv=function(e,t){for(var n=[],r=new X(`mtd`,[],[`mtr-glue`]),i=new X(`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 X(`mtd`,[l_(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 X(`mtr`,s))}var l=new X(`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+=Gv[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||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.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 ee=``,te=e.hLinesBeforeRow;d+=te[0].length>0?`left `:``,d+=te[te.length-1].length>0?`right `:``;for(var ne=1;ne<te.length-1;ne++)ee+=te[ne].length===0?`none `:te[ne][0]?`dashed `:`solid `;return/[sd]/.test(ee)&&l.setAttribute(`rowlines`,ee.trim()),d!==``&&(l=new X(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new X(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},qv=function(e,t){e.envName.includes(`ed`)||zv(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=Hv(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:Vv(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=O_(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)O_(O_(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};Pv({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(A_(t[0])?[t[0]]:O_(t[0],`ordgroup`).body).map(function(e){var t=k_(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 Hv(e.parser,r,Uv(e.envName))},htmlBuilder:Wv,mathmlBuilder:Kv}),Pv({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=Hv(e.parser,r,Uv(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:Wv,mathmlBuilder:Kv}),Pv({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Hv(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Wv,mathmlBuilder:Kv}),Pv({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(A_(t[0])?[t[0]]:O_(t[0],`ordgroup`).body).map(function(e){var t=k_(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=Hv(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:Wv,mathmlBuilder:Kv}),Pv({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Hv(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Uv(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Wv,mathmlBuilder:Kv}),Pv({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:qv,htmlBuilder:Wv,mathmlBuilder:Kv}),Pv({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){Bv.has(e.envName)&&zv(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Vv(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Hv(e.parser,t,`display`)},htmlBuilder:Wv,mathmlBuilder:Kv}),Pv({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:qv,htmlBuilder:Wv,mathmlBuilder:Kv}),Pv({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){zv(e);var t={autoTag:Vv(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Hv(e.parser,t,`display`)},htmlBuilder:Wv,mathmlBuilder:Kv}),Pv({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return zv(e),W_(e.parser)},htmlBuilder:Wv,mathmlBuilder:Kv}),Z(`\\nonumber`,`\\gdef\\@eqnsw{0}`),Z(`\\notag`,`\\nonumber`),Pg({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 Jv=Nv;Pg({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+=O_(i.body[o],`textord`).text;if(r===`\\begin`){if(!Jv.hasOwnProperty(a))throw new B(`No such environment: `+a,i);var s=Jv[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=O_(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 Yv=(e,t)=>{var n=e.font,r=t.withFont(n);return Jg(e.body,r)},Xv=(e,t)=>{var n=e.font,r=t.withFont(n);return l_(e.body,r)},Zv={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};Pg({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=Ig(t[0]),a=r;return a in Zv&&(a=Zv[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Yv,mathmlBuilder:Xv}),Pg({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:R_(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:em(r)}}}),Pg({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:Yv,mathmlBuilder:Xv});var Qv=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Jg(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=Jg(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Km(e.barSize,t),u=hg(`frac-line`,t,d)):u=hg(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===Cm.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=bg({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=bg({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===Cm.DISPLAY.size?t.fontMetrics().delim1:n.size===Cm.SCRIPTSCRIPT.size?t.havingStyle(Cm.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?qg(t,[`mopen`]):wv(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?Y([]):e.rightDelim==null?qg(t,[`mclose`]):wv(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return Y([`mord`].concat(a.sizingClasses(t)),[x,Y([`mfrac`],[g]),S],t)},$v=(e,t)=>{var n=new X(`mfrac`,[l_(e.numer,t),l_(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Km(e.barSize,t);n.setAttribute(`linethickness`,V(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new X(`mo`,[new Qg(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new X(`mo`,[new Qg(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return r_(i)}return n},ey=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;Pg({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`),ey({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Qv,mathmlBuilder:$v}),Pg({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 ty=[`display`,`text`,`script`,`scriptscript`],ny=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};Pg({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=Ig(t[0]),o=a.type===`atom`&&a.family===`open`?ny(a.text):null,s=Ig(t[1]),c=s.type===`atom`&&s.family===`close`?ny(s.text):null,l=O_(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=O_(p.body[0],`textord`);f=ty[Number(m.text)]}}else p=O_(p,`textord`),f=ty[Number(p.text)];return ey({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),Pg({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:O_(t[0],`size`).value,token:i}}}),Pg({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=O_(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 ry=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Jg(e.sup,t.havingStyle(n.sup()),t):Jg(e.sub,t.havingStyle(n.sub()),t),i=O_(e.base,`horizBrace`)):i=O_(e,`horizBrace`);var a=Jg(i.base,t.havingBaseStyle(Cm.DISPLAY)),o=C_(i,t),s=i.isOver?bg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):bg({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=Y([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?bg({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):bg({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return Y([`minner`,i.isOver?`mover`:`munder`],[s],t)};Pg({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:ry,mathmlBuilder:(e,t)=>{var n=b_(e.label);return new X(e.isOver?`mover`:`munder`,[l_(e.base,t),n])}}),Pg({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=O_(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Lg(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Hg(e.body,t,!1);return gg(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=c_(e.body,t);return n instanceof X||(n=new X(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Pg({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=O_(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:Lg(s)}}}),Pg({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:Lg(t[0])}},htmlBuilder(e,t){return _g(Hg(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new X(`mrow`,s_(e.body,t.withFont(``)))}}),Pg({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=O_(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:Lg(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Hg(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Y(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)=>c_(e.body,t)}),Pg({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:Lg(t[0]),mathml:Lg(t[1])}},htmlBuilder:(e,t)=>_g(Hg(e.html,t,!1)),mathmlBuilder:(e,t)=>c_(e.mathml,t)});var iy=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(!Gm(n))throw new B(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};Pg({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=O_(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=iy(d);break;case`height`:a=iy(d);break;case`totalheight`:o=iy(d);break;default:throw new B(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=O_(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=Km(e.height,t),r=0;e.totalheight.number>0&&(r=Km(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Km(e.width,t));var a={height:V(n+r)};i>0&&(a.width=V(i)),r>0&&(a.verticalAlign=V(-r));var o=new th(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new X(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Km(e.height,t),i=0;if(e.totalheight.number>0&&(i=Km(e.totalheight,t)-r,n.setAttribute(`valign`,V(-i))),n.setAttribute(`height`,V(r+i)),e.width.number>0){var a=Km(e.width,t);n.setAttribute(`width`,V(a))}return n.setAttribute(`src`,e.src),n}}),Pg({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=O_(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 xg(e.dimension,t)},mathmlBuilder(e,t){return new $g(Km(e.dimension,t))}}),Pg({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=Y([],[Jg(e.body,t)]),n=Y([`inner`],[n],t)):n=Y([`inner`],[Jg(e.body,t)]);var r=Y([`fix`],[]),i=Y([e.alignment],[n,r],t),a=Y([`strut`]);return a.style.height=V(i.height+i.depth),i.depth&&(a.style.verticalAlign=V(-i.depth)),i.children.unshift(a),i=Y([`thinbox`],[i],t),Y([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[l_(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}}),Pg({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}}}),Pg({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new B(`Mismatched `+e.funcName)}});var ay=(e,t)=>{switch(t.style.size){case Cm.DISPLAY.size:return e.display;case Cm.TEXT.size:return e.text;case Cm.SCRIPT.size:return e.script;case Cm.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Pg({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:Lg(t[0]),text:Lg(t[1]),script:Lg(t[2]),scriptscript:Lg(t[3])}},htmlBuilder:(e,t)=>_g(Hg(ay(e,t),t,!1)),mathmlBuilder:(e,t)=>c_(ay(e,t),t)});var oy=(e,t,n,r,i,a,o)=>{e=Y([],[e]);var s=n&&em(n),c,l;if(t){var u=Jg(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Jg(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=bg({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=bg({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=bg({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=Y([`mspace`],[],r);m.style.marginRight=V(a),p.unshift(m)}return Y([`mop`,`op-limits`],p,r)},sy=new Set([`\\smallint`]),cy=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=O_(e.base,`op`),i=!0):a=O_(e,`op`);var o=t.style,s=!1;o.size===Cm.DISPLAY.size&&a.symbol&&!sy.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=sg(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=Tg(d+`Size`+(s?`2`:`1`),t);c=bg({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=Hg(a.body,t,!0);p.length===1&&p[0]instanceof rh?(c=p[0],c.classes[0]=`mop`):c=Y([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(cg(a.name[h],a.mode,t));c=Y([`mop`],m,t)}var g=0,_=0;return(c instanceof rh||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?oy(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=V(g)),c)},ly=(e,t)=>{var n;if(e.symbol)n=new X(`mo`,[n_(e.name,e.mode)]),sy.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new X(`mo`,s_(e.body,t));else{n=new X(`mi`,[new Qg(e.name.slice(1))]);var r=new X(`mo`,[n_(``,`text`)]);n=e.parentIsSupSub?new X(`mrow`,[n,r]):Zg([n,r])}return n},uy={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};Pg({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=uy[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:cy,mathmlBuilder:ly}),Pg({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:Lg(r)}},htmlBuilder:cy,mathmlBuilder:ly});var dy={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};Pg({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:cy,mathmlBuilder:ly}),Pg({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:cy,mathmlBuilder:ly}),Pg({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=dy[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:cy,mathmlBuilder:ly});var fy=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=O_(e.base,`operatorname`),i=!0):a=O_(e,`operatorname`);var o;if(a.body.length>0){for(var s=Hg(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 rh&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=Y([`mop`],s,t)}else o=Y([`mop`],[],t);return i?oy(o,n,r,t,t.style,0,0):o};Pg({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:Lg(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:fy,mathmlBuilder:(e,t)=>{for(var n=s_(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof $g)){if(a instanceof X)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 Qg?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new Qg(n.map(e=>e.toText()).join(``))]);var s=new X(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new X(`mo`,[n_(``,`text`)]);return e.parentIsSupSub?new X(`mrow`,[s,c]):Zg([s,c])}}),Z(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Fg({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?_g(Hg(e.body,t,!1)):Y([`mord`],Hg(e.body,t,!0),t)},mathmlBuilder(e,t){return c_(e.body,t,!0)}}),Pg({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=Jg(e.body,t.havingCrampedStyle()),r=hg(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return Y([`mord`,`overline`],[bg({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 X(`mo`,[new Qg(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`mover`,[l_(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Pg({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:Lg(r)}},htmlBuilder:(e,t)=>_g(Hg(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new X(`mphantom`,s_(e.body,t))}),Z(`\\hphantom`,`\\smash{\\phantom{#1}}`),Pg({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)=>Y([`mord`,`rlap`],[Y([`inner`],[Jg(e.body,t.withPhantom())]),Y([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[new X(`mphantom`,s_(Lg(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),Pg({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=O_(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Jg(e.body,t);return bg({positionType:`shift`,positionData:-Km(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new X(`mpadded`,[l_(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Pg({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),Pg({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=O_(t[0],`size`),o=O_(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&O_(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=Y([`mord`,`rule`],[],t),r=Km(e.width,t),i=Km(e.height,t),a=e.shift?Km(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=Km(e.width,t),r=Km(e.height,t),i=e.shift?Km(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new X(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,V(n)),o.setAttribute(`height`,V(r));var s=new X(`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 py(e,t,n){for(var r=Hg(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 _g(r)}var my=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];Pg({type:`sizing`,names:my,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:my.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return py(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new X(`mstyle`,s_(e.body,n));return r.setAttribute(`mathsize`,V(n.sizeMultiplier)),r}}),Pg({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]&&O_(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=k_(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=Y([],[Jg(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 Y([`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 Y([`mord`],[bg({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[l_(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Pg({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=Jg(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=vg(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<Cm.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=pv(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=bg({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(Cm.SCRIPTSCRIPT),p=Jg(e.index,f,t);return Y([`mord`,`sqrt`],[Y([`root`],[bg({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}return Y([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new X(`mroot`,[l_(n,t),l_(r,t)]):new X(`msqrt`,[l_(n,t)])}});var hy={display:Cm.DISPLAY,text:Cm.TEXT,script:Cm.SCRIPT,scriptscript:Cm.SCRIPTSCRIPT};function gy(e){return e in hy}Pg({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(!gy(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=hy[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),py(e.body,r,t)},mathmlBuilder(e,t){var n=hy[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new X(`mstyle`,s_(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 _y=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===Cm.DISPLAY.size||n.alwaysHandleSupSub)?cy:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===Cm.DISPLAY.size||n.limits)?fy:null:n.type===`accent`?em(n.base)?M_:null:n.type===`horizBrace`&&!e.sub===n.isOver?ry:null:null};Fg({type:`supsub`,htmlBuilder(e,t){var n=_y(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=Jg(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&em(r);if(i){var p=t.havingStyle(t.style.sup());s=Jg(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Jg(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===Cm.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 rh||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 x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=bg({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=bg({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=bg({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return Y([Kg(o,`right`)||`mord`],[o,Y([`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=[l_(e.base,t)];e.sub&&a.push(l_(e.sub,t)),e.sup&&a.push(l_(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===Cm.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===Cm.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===Cm.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===Cm.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===Cm.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===Cm.DISPLAY)?`munder`:`msub`}return new X(o,a)}}),Fg({type:`atom`,htmlBuilder(e,t){return cg(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new X(`mo`,[n_(e.text,e.mode)]);if(e.family===`bin`){var r=a_(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 vy={mi:`italic`,mn:`normal`,mtext:`normal`};Fg({type:`mathord`,htmlBuilder(e,t){return ug(e,t,`mathord`)},mathmlBuilder(e,t){var n=new X(`mi`,[n_(e.text,e.mode,t)]),r=a_(e,t)||`italic`;return r!==vy[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Fg({type:`textord`,htmlBuilder(e,t){return ug(e,t,`textord`)},mathmlBuilder(e,t){var n=n_(e.text,e.mode,t),r=a_(e,t)||`normal`,i=e.mode===`text`?new X(`mtext`,[n]):/[0-9]/.test(e.text)?new X(`mn`,[n]):e.text===`\\prime`?new X(`mo`,[n]):new X(`mi`,[n]);return r!==vy[i.type]&&i.setAttribute(`mathvariant`,r),i}});var yy={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},by={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};Fg({type:`spacing`,htmlBuilder(e,t){if(by.hasOwnProperty(e.text)){var n=by[e.text].className||``;if(e.mode===`text`){var r=ug(e,t,`textord`);return r.classes.push(n),r}return Y([`mspace`,n],[cg(e.text,e.mode,t)],t)}if(yy.hasOwnProperty(e.text))return Y([`mspace`,yy[e.text]],[],t);throw new B(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(by.hasOwnProperty(e.text))n=new X(`mtext`,[new Qg(`\xA0`)]);else if(yy.hasOwnProperty(e.text))return new X(`mspace`);else throw new B(`Unknown type of space "`+e.text+`"`);return n}});var xy=()=>{var e=new X(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Fg({type:`tag`,mathmlBuilder(e,t){var n=new X(`mtable`,[new X(`mtr`,[xy(),new X(`mtd`,[c_(e.body,t)]),xy(),new X(`mtd`,[c_(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var Sy={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Cy={"\\textbf":`textbf`,"\\textmd":`textmd`},wy={"\\textit":`textit`,"\\textup":`textup`},Ty=(e,t)=>{var n=e.font;return n?Sy[n]?t.withTextFontFamily(Sy[n]):Cy[n]?t.withTextFontWeight(Cy[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(wy[n]):t};Pg({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:Lg(i),font:r}},htmlBuilder(e,t){var n=Ty(e,t);return Y([`mord`,`text`],Hg(e.body,n,!0),n)},mathmlBuilder(e,t){var n=Ty(e,t);return c_(e.body,n)}}),Pg({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=Jg(e.body,t),r=hg(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return Y([`mord`,`underline`],[bg({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 X(`mo`,[new Qg(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`munder`,[l_(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Pg({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=Jg(e.body,t),r=t.fontMetrics().axisHeight;return bg({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new X(`mrow`,[new X(`mpadded`,[l_(e.body,t)],[`vcenter`])])}}),Pg({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=Ey(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(sg(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return Y([`mord`,`text`].concat(i.sizingClasses(t)),fg(r),i)},mathmlBuilder(e,t){var n=new X(`mtext`,[new Qg(Ey(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var Ey=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),Dy=jg,Oy=`[ \r
|
|
366
|
+
]`,ky=`\\\\[a-zA-Z@]+`,Ay=`\\\\[^\ud800-\udfff]`,jy=`(`+ky+`)`+Oy+`*`,My=`\\\\(
|
|
367
367
|
|[ \r ]+
|
|
368
|
-
?)[ \r ]*`,
|
|
369
|
-
`,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 Iv(r,new Fv(this,t,this.tokenRegex.lastIndex))}},Iy=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}},Ly=Pv;Z(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Z(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Z(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Z(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Z(`\\@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}}),Z(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),Z(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Ry={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};Z(`\\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=Ry[t.text],r==null||r>=n)throw new B(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Ry[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var zy=(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}),``};Z(`\\newcommand`,e=>zy(e,!1,!0,!1)),Z(`\\renewcommand`,e=>zy(e,!0,!1,!1)),Z(`\\providecommand`,e=>zy(e,!0,!0,!0)),Z(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Ey[n],gh.math[n],gh.text[n]),``}),Z(`\\bgroup`,`{`),Z(`\\egroup`,`}`),Z(`~`,`\\nobreakspace`),Z(`\\lq`,"`"),Z(`\\rq`,`'`),Z(`\\aa`,`\\r a`),Z(`\\AA`,`\\r A`),Z(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),Z(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),Z(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Z(`ℬ`,`\\mathscr{B}`),Z(`ℰ`,`\\mathscr{E}`),Z(`ℱ`,`\\mathscr{F}`),Z(`ℋ`,`\\mathscr{H}`),Z(`ℐ`,`\\mathscr{I}`),Z(`ℒ`,`\\mathscr{L}`),Z(`ℳ`,`\\mathscr{M}`),Z(`ℛ`,`\\mathscr{R}`),Z(`ℭ`,`\\mathfrak{C}`),Z(`ℌ`,`\\mathfrak{H}`),Z(`ℨ`,`\\mathfrak{Z}`),Z(`\\Bbbk`,`\\Bbb{k}`),Z(`\\llap`,`\\mathllap{\\textrm{#1}}`),Z(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),Z(`\\clap`,`\\mathclap{\\textrm{#1}}`),Z(`\\mathstrut`,`\\vphantom{(}`),Z(`\\underbar`,`\\underline{\\text{#1}}`),Z(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),Z(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Z(`\\ne`,`\\neq`),Z(`≠`,`\\neq`),Z(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Z(`∉`,`\\notin`),Z(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Z(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Z(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Z(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Z(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Z(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Z(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Z(`⟂`,`\\perp`),Z(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),Z(`∌`,`\\notni`),Z(`⌜`,`\\ulcorner`),Z(`⌝`,`\\urcorner`),Z(`⌞`,`\\llcorner`),Z(`⌟`,`\\lrcorner`),Z(`©`,`\\copyright`),Z(`®`,`\\textregistered`),Z(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),Z(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),Z(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),Z(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),Z(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),Z(`⋮`,`\\vdots`),Z(`\\varGamma`,`\\mathit{\\Gamma}`),Z(`\\varDelta`,`\\mathit{\\Delta}`),Z(`\\varTheta`,`\\mathit{\\Theta}`),Z(`\\varLambda`,`\\mathit{\\Lambda}`),Z(`\\varXi`,`\\mathit{\\Xi}`),Z(`\\varPi`,`\\mathit{\\Pi}`),Z(`\\varSigma`,`\\mathit{\\Sigma}`),Z(`\\varUpsilon`,`\\mathit{\\Upsilon}`),Z(`\\varPhi`,`\\mathit{\\Phi}`),Z(`\\varPsi`,`\\mathit{\\Psi}`),Z(`\\varOmega`,`\\mathit{\\Omega}`),Z(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),Z(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),Z(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),Z(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),Z(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),Z(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),Z(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),Z(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var By={",":`\\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`},Vy=new Set([`bin`,`rel`]);Z(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in By?t=By[n]:(n.slice(0,4)===`\\not`||n in gh.math&&Vy.has(gh.math[n].group))&&(t=`\\dotsb`),t});var Hy={")":!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};Z(`\\dotso`,function(e){return e.future().text in Hy?`\\ldots\\,`:`\\ldots`}),Z(`\\dotsc`,function(e){var t=e.future().text;return t in Hy&&t!==`,`?`\\ldots\\,`:`\\ldots`}),Z(`\\cdots`,function(e){return e.future().text in Hy?`\\@cdots\\,`:`\\@cdots`}),Z(`\\dotsb`,`\\cdots`),Z(`\\dotsm`,`\\cdots`),Z(`\\dotsi`,`\\!\\cdots`),Z(`\\dotsx`,`\\ldots\\,`),Z(`\\DOTSI`,`\\relax`),Z(`\\DOTSB`,`\\relax`),Z(`\\DOTSX`,`\\relax`),Z(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),Z(`\\,`,`\\tmspace+{3mu}{.1667em}`),Z(`\\thinspace`,`\\,`),Z(`\\>`,`\\mskip{4mu}`),Z(`\\:`,`\\tmspace+{4mu}{.2222em}`),Z(`\\medspace`,`\\:`),Z(`\\;`,`\\tmspace+{5mu}{.2777em}`),Z(`\\thickspace`,`\\;`),Z(`\\!`,`\\tmspace-{3mu}{.1667em}`),Z(`\\negthinspace`,`\\!`),Z(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),Z(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),Z(`\\enspace`,`\\kern.5em `),Z(`\\enskip`,`\\hskip.5em\\relax`),Z(`\\quad`,`\\hskip1em\\relax`),Z(`\\qquad`,`\\hskip2em\\relax`),Z(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),Z(`\\tag@paren`,`\\tag@literal{({#1})}`),Z(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new B(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),Z(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),Z(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),Z(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),Z(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),Z(`\\newline`,`\\\\\\relax`),Z(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Uy=V(lh[`Main-Regular`][84][1]-.7*lh[`Main-Regular`][65][1]);Z(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Uy+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),Z(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Uy+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),Z(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),Z(`\\@hspace`,`\\hskip #1\\relax`),Z(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),Z(`\\ordinarycolon`,`:`),Z(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),Z(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),Z(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),Z(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),Z(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),Z(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),Z(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),Z(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),Z(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),Z(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),Z(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),Z(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),Z(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),Z(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),Z(`∷`,`\\dblcolon`),Z(`∹`,`\\eqcolon`),Z(`≔`,`\\coloneqq`),Z(`≕`,`\\eqqcolon`),Z(`⩴`,`\\Coloneqq`),Z(`\\ratio`,`\\vcentcolon`),Z(`\\coloncolon`,`\\dblcolon`),Z(`\\colonequals`,`\\coloneqq`),Z(`\\coloncolonequals`,`\\Coloneqq`),Z(`\\equalscolon`,`\\eqqcolon`),Z(`\\equalscoloncolon`,`\\Eqqcolon`),Z(`\\colonminus`,`\\coloneq`),Z(`\\coloncolonminus`,`\\Coloneq`),Z(`\\minuscolon`,`\\eqcolon`),Z(`\\minuscoloncolon`,`\\Eqcolon`),Z(`\\coloncolonapprox`,`\\Colonapprox`),Z(`\\coloncolonsim`,`\\Colonsim`),Z(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Z(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),Z(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),Z(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),Z(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),Z(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),Z(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),Z(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),Z(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),Z(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),Z(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),Z(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),Z(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),Z(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),Z(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),Z(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),Z(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),Z(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),Z(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),Z(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),Z(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),Z(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),Z(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),Z(`\\imath`,`\\html@mathml{\\@imath}{ı}`),Z(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),Z(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Z(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Z(`⟦`,`\\llbracket`),Z(`⟧`,`\\rrbracket`),Z(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Z(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Z(`⦃`,`\\lBrace`),Z(`⦄`,`\\rBrace`),Z(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Z(`⦵`,`\\minuso`),Z(`\\darr`,`\\downarrow`),Z(`\\dArr`,`\\Downarrow`),Z(`\\Darr`,`\\Downarrow`),Z(`\\lang`,`\\langle`),Z(`\\rang`,`\\rangle`),Z(`\\uarr`,`\\uparrow`),Z(`\\uArr`,`\\Uparrow`),Z(`\\Uarr`,`\\Uparrow`),Z(`\\N`,`\\mathbb{N}`),Z(`\\R`,`\\mathbb{R}`),Z(`\\Z`,`\\mathbb{Z}`),Z(`\\alef`,`\\aleph`),Z(`\\alefsym`,`\\aleph`),Z(`\\Alpha`,`\\mathrm{A}`),Z(`\\Beta`,`\\mathrm{B}`),Z(`\\bull`,`\\bullet`),Z(`\\Chi`,`\\mathrm{X}`),Z(`\\clubs`,`\\clubsuit`),Z(`\\cnums`,`\\mathbb{C}`),Z(`\\Complex`,`\\mathbb{C}`),Z(`\\Dagger`,`\\ddagger`),Z(`\\diamonds`,`\\diamondsuit`),Z(`\\empty`,`\\emptyset`),Z(`\\Epsilon`,`\\mathrm{E}`),Z(`\\Eta`,`\\mathrm{H}`),Z(`\\exist`,`\\exists`),Z(`\\harr`,`\\leftrightarrow`),Z(`\\hArr`,`\\Leftrightarrow`),Z(`\\Harr`,`\\Leftrightarrow`),Z(`\\hearts`,`\\heartsuit`),Z(`\\image`,`\\Im`),Z(`\\infin`,`\\infty`),Z(`\\Iota`,`\\mathrm{I}`),Z(`\\isin`,`\\in`),Z(`\\Kappa`,`\\mathrm{K}`),Z(`\\larr`,`\\leftarrow`),Z(`\\lArr`,`\\Leftarrow`),Z(`\\Larr`,`\\Leftarrow`),Z(`\\lrarr`,`\\leftrightarrow`),Z(`\\lrArr`,`\\Leftrightarrow`),Z(`\\Lrarr`,`\\Leftrightarrow`),Z(`\\Mu`,`\\mathrm{M}`),Z(`\\natnums`,`\\mathbb{N}`),Z(`\\Nu`,`\\mathrm{N}`),Z(`\\Omicron`,`\\mathrm{O}`),Z(`\\plusmn`,`\\pm`),Z(`\\rarr`,`\\rightarrow`),Z(`\\rArr`,`\\Rightarrow`),Z(`\\Rarr`,`\\Rightarrow`),Z(`\\real`,`\\Re`),Z(`\\reals`,`\\mathbb{R}`),Z(`\\Reals`,`\\mathbb{R}`),Z(`\\Rho`,`\\mathrm{P}`),Z(`\\sdot`,`\\cdot`),Z(`\\sect`,`\\S`),Z(`\\spades`,`\\spadesuit`),Z(`\\sub`,`\\subset`),Z(`\\sube`,`\\subseteq`),Z(`\\supe`,`\\supseteq`),Z(`\\Tau`,`\\mathrm{T}`),Z(`\\thetasym`,`\\vartheta`),Z(`\\weierp`,`\\wp`),Z(`\\Zeta`,`\\mathrm{Z}`),Z(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),Z(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),Z(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),Z(`\\bra`,`\\mathinner{\\langle{#1}|}`),Z(`\\ket`,`\\mathinner{|{#1}\\rangle}`),Z(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),Z(`\\Bra`,`\\left\\langle#1\\right|`),Z(`\\Ket`,`\\left|#1\\right\\rangle`);var Wy=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}};Z(`\\bra@ket`,Wy(!1)),Z(`\\bra@set`,Wy(!0)),Z(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),Z(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),Z(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),Z(`\\angln`,`{\\angl n}`),Z(`\\blue`,`\\textcolor{##6495ed}{#1}`),Z(`\\orange`,`\\textcolor{##ffa500}{#1}`),Z(`\\pink`,`\\textcolor{##ff00af}{#1}`),Z(`\\red`,`\\textcolor{##df0030}{#1}`),Z(`\\green`,`\\textcolor{##28ae7b}{#1}`),Z(`\\gray`,`\\textcolor{gray}{#1}`),Z(`\\purple`,`\\textcolor{##9d38bd}{#1}`),Z(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),Z(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),Z(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),Z(`\\blueD`,`\\textcolor{##11accd}{#1}`),Z(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),Z(`\\tealA`,`\\textcolor{##94fff5}{#1}`),Z(`\\tealB`,`\\textcolor{##26edd5}{#1}`),Z(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),Z(`\\tealD`,`\\textcolor{##01a995}{#1}`),Z(`\\tealE`,`\\textcolor{##208170}{#1}`),Z(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),Z(`\\greenB`,`\\textcolor{##8af281}{#1}`),Z(`\\greenC`,`\\textcolor{##74cf70}{#1}`),Z(`\\greenD`,`\\textcolor{##1fab54}{#1}`),Z(`\\greenE`,`\\textcolor{##0d923f}{#1}`),Z(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),Z(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),Z(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),Z(`\\goldD`,`\\textcolor{##e07d10}{#1}`),Z(`\\goldE`,`\\textcolor{##a75a05}{#1}`),Z(`\\redA`,`\\textcolor{##fca9a9}{#1}`),Z(`\\redB`,`\\textcolor{##ff8482}{#1}`),Z(`\\redC`,`\\textcolor{##f9685d}{#1}`),Z(`\\redD`,`\\textcolor{##e84d39}{#1}`),Z(`\\redE`,`\\textcolor{##bc2612}{#1}`),Z(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),Z(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),Z(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),Z(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),Z(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),Z(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),Z(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),Z(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),Z(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),Z(`\\purpleE`,`\\textcolor{##543b78}{#1}`),Z(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),Z(`\\mintB`,`\\textcolor{##edf2df}{#1}`),Z(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),Z(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),Z(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),Z(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),Z(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),Z(`\\grayE`,`\\textcolor{##babec2}{#1}`),Z(`\\grayF`,`\\textcolor{##888d93}{#1}`),Z(`\\grayG`,`\\textcolor{##626569}{#1}`),Z(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),Z(`\\grayI`,`\\textcolor{##21242c}{#1}`),Z(`\\kaBlue`,`\\textcolor{##314453}{#1}`),Z(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Gy={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Ky=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 Iy(Ly,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Fy(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 Iv(`EOF`,n.loc)),this.pushTokens(r),new Iv(``,Fv.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 Iv(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 Fy(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)||Ey.hasOwnProperty(e)||gh.math.hasOwnProperty(e)||gh.text.hasOwnProperty(e)||Gy.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?Ey.hasOwnProperty(e)&&!Ey[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},qy=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Jy=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Yy={"́":{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`}},Xy={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Zy=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 Ky(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 Iv(`}`)),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&&Ey[i.text]&&Ey[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(Jy[i.text]){var s=qy.test(i.text),c=[];for(c.push(new Iv(Jy[i.text])),this.consume();;){var l=this.fetch().text;if(!Jy[l]||qy.test(l)!==s)break;c.unshift(new Iv(Jy[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=Ey[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=Ey[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(!Wm(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:Fv.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Gy.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:Fv.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:Fv.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:Fv.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 --
|
|
370
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}
|
|
371
|
-
`);for(let e of a){let t=e.indexOf(`:`);if(t===-1)continue;let n=e.substring(0,t).trim(),r=e.substring(t+1).trim();r.startsWith(`"`)&&r.endsWith(`"`)||r.startsWith(`'`)&&r.endsWith(`'`)?r=r.substring(1,r.length-1):r===`true`?r=!0:r===`false`?r=!1:!Number.isNaN(Number(r))&&r!==``?r=Number(r):r.startsWith(`[`)&&r.endsWith(`]`)&&(r=r.substring(1,r.length-1).split(`,`).map(e=>e.trim().replace(/^['"]|['"]$/g,``)).filter(Boolean)),i[n]=r}return{frontmatter:i,content:r}}function
|
|
368
|
+
?)[ \r ]*`,Ny=`[̀-ͯ]`,Py=RegExp(Ny+`+$`),Fy=`(`+Oy+`+)|`+(My+`|`)+`([!-\\[\\]-‧-豈-]`+(Ny+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(Ny+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+jy)+(`|`+Ay+`)`),Iy=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(Fy,`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 Lv(`EOF`,new Iv(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new B(`Unexpected character: '`+e[t]+`'`,new Lv(e[t],new Iv(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
369
|
+
`,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 Lv(r,new Iv(this,t,this.tokenRegex.lastIndex))}},Ly=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}},Ry=Fv;Z(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Z(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Z(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Z(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Z(`\\@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}}),Z(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),Z(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var zy={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};Z(`\\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=zy[t.text],r==null||r>=n)throw new B(`Invalid base-`+n+` digit `+t.text);for(var i;(i=zy[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var By=(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}),``};Z(`\\newcommand`,e=>By(e,!1,!0,!1)),Z(`\\renewcommand`,e=>By(e,!0,!1,!1)),Z(`\\providecommand`,e=>By(e,!0,!0,!0)),Z(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Dy[n],_h.math[n],_h.text[n]),``}),Z(`\\bgroup`,`{`),Z(`\\egroup`,`}`),Z(`~`,`\\nobreakspace`),Z(`\\lq`,"`"),Z(`\\rq`,`'`),Z(`\\aa`,`\\r a`),Z(`\\AA`,`\\r A`),Z(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),Z(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),Z(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Z(`ℬ`,`\\mathscr{B}`),Z(`ℰ`,`\\mathscr{E}`),Z(`ℱ`,`\\mathscr{F}`),Z(`ℋ`,`\\mathscr{H}`),Z(`ℐ`,`\\mathscr{I}`),Z(`ℒ`,`\\mathscr{L}`),Z(`ℳ`,`\\mathscr{M}`),Z(`ℛ`,`\\mathscr{R}`),Z(`ℭ`,`\\mathfrak{C}`),Z(`ℌ`,`\\mathfrak{H}`),Z(`ℨ`,`\\mathfrak{Z}`),Z(`\\Bbbk`,`\\Bbb{k}`),Z(`\\llap`,`\\mathllap{\\textrm{#1}}`),Z(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),Z(`\\clap`,`\\mathclap{\\textrm{#1}}`),Z(`\\mathstrut`,`\\vphantom{(}`),Z(`\\underbar`,`\\underline{\\text{#1}}`),Z(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),Z(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Z(`\\ne`,`\\neq`),Z(`≠`,`\\neq`),Z(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Z(`∉`,`\\notin`),Z(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Z(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Z(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Z(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Z(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Z(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Z(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Z(`⟂`,`\\perp`),Z(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),Z(`∌`,`\\notni`),Z(`⌜`,`\\ulcorner`),Z(`⌝`,`\\urcorner`),Z(`⌞`,`\\llcorner`),Z(`⌟`,`\\lrcorner`),Z(`©`,`\\copyright`),Z(`®`,`\\textregistered`),Z(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),Z(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),Z(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),Z(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),Z(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),Z(`⋮`,`\\vdots`),Z(`\\varGamma`,`\\mathit{\\Gamma}`),Z(`\\varDelta`,`\\mathit{\\Delta}`),Z(`\\varTheta`,`\\mathit{\\Theta}`),Z(`\\varLambda`,`\\mathit{\\Lambda}`),Z(`\\varXi`,`\\mathit{\\Xi}`),Z(`\\varPi`,`\\mathit{\\Pi}`),Z(`\\varSigma`,`\\mathit{\\Sigma}`),Z(`\\varUpsilon`,`\\mathit{\\Upsilon}`),Z(`\\varPhi`,`\\mathit{\\Phi}`),Z(`\\varPsi`,`\\mathit{\\Psi}`),Z(`\\varOmega`,`\\mathit{\\Omega}`),Z(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),Z(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),Z(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),Z(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),Z(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),Z(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),Z(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),Z(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var Vy={",":`\\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`},Hy=new Set([`bin`,`rel`]);Z(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Vy?t=Vy[n]:(n.slice(0,4)===`\\not`||n in _h.math&&Hy.has(_h.math[n].group))&&(t=`\\dotsb`),t});var Uy={")":!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};Z(`\\dotso`,function(e){return e.future().text in Uy?`\\ldots\\,`:`\\ldots`}),Z(`\\dotsc`,function(e){var t=e.future().text;return t in Uy&&t!==`,`?`\\ldots\\,`:`\\ldots`}),Z(`\\cdots`,function(e){return e.future().text in Uy?`\\@cdots\\,`:`\\@cdots`}),Z(`\\dotsb`,`\\cdots`),Z(`\\dotsm`,`\\cdots`),Z(`\\dotsi`,`\\!\\cdots`),Z(`\\dotsx`,`\\ldots\\,`),Z(`\\DOTSI`,`\\relax`),Z(`\\DOTSB`,`\\relax`),Z(`\\DOTSX`,`\\relax`),Z(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),Z(`\\,`,`\\tmspace+{3mu}{.1667em}`),Z(`\\thinspace`,`\\,`),Z(`\\>`,`\\mskip{4mu}`),Z(`\\:`,`\\tmspace+{4mu}{.2222em}`),Z(`\\medspace`,`\\:`),Z(`\\;`,`\\tmspace+{5mu}{.2777em}`),Z(`\\thickspace`,`\\;`),Z(`\\!`,`\\tmspace-{3mu}{.1667em}`),Z(`\\negthinspace`,`\\!`),Z(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),Z(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),Z(`\\enspace`,`\\kern.5em `),Z(`\\enskip`,`\\hskip.5em\\relax`),Z(`\\quad`,`\\hskip1em\\relax`),Z(`\\qquad`,`\\hskip2em\\relax`),Z(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),Z(`\\tag@paren`,`\\tag@literal{({#1})}`),Z(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new B(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),Z(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),Z(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),Z(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),Z(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),Z(`\\newline`,`\\\\\\relax`),Z(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Wy=V(uh[`Main-Regular`][84][1]-.7*uh[`Main-Regular`][65][1]);Z(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Wy+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),Z(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Wy+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),Z(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),Z(`\\@hspace`,`\\hskip #1\\relax`),Z(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),Z(`\\ordinarycolon`,`:`),Z(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),Z(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),Z(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),Z(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),Z(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),Z(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),Z(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),Z(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),Z(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),Z(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),Z(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),Z(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),Z(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),Z(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),Z(`∷`,`\\dblcolon`),Z(`∹`,`\\eqcolon`),Z(`≔`,`\\coloneqq`),Z(`≕`,`\\eqqcolon`),Z(`⩴`,`\\Coloneqq`),Z(`\\ratio`,`\\vcentcolon`),Z(`\\coloncolon`,`\\dblcolon`),Z(`\\colonequals`,`\\coloneqq`),Z(`\\coloncolonequals`,`\\Coloneqq`),Z(`\\equalscolon`,`\\eqqcolon`),Z(`\\equalscoloncolon`,`\\Eqqcolon`),Z(`\\colonminus`,`\\coloneq`),Z(`\\coloncolonminus`,`\\Coloneq`),Z(`\\minuscolon`,`\\eqcolon`),Z(`\\minuscoloncolon`,`\\Eqcolon`),Z(`\\coloncolonapprox`,`\\Colonapprox`),Z(`\\coloncolonsim`,`\\Colonsim`),Z(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Z(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),Z(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),Z(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),Z(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),Z(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),Z(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),Z(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),Z(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),Z(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),Z(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),Z(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),Z(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),Z(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),Z(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),Z(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),Z(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),Z(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),Z(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),Z(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),Z(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),Z(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),Z(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),Z(`\\imath`,`\\html@mathml{\\@imath}{ı}`),Z(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),Z(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Z(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Z(`⟦`,`\\llbracket`),Z(`⟧`,`\\rrbracket`),Z(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Z(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Z(`⦃`,`\\lBrace`),Z(`⦄`,`\\rBrace`),Z(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Z(`⦵`,`\\minuso`),Z(`\\darr`,`\\downarrow`),Z(`\\dArr`,`\\Downarrow`),Z(`\\Darr`,`\\Downarrow`),Z(`\\lang`,`\\langle`),Z(`\\rang`,`\\rangle`),Z(`\\uarr`,`\\uparrow`),Z(`\\uArr`,`\\Uparrow`),Z(`\\Uarr`,`\\Uparrow`),Z(`\\N`,`\\mathbb{N}`),Z(`\\R`,`\\mathbb{R}`),Z(`\\Z`,`\\mathbb{Z}`),Z(`\\alef`,`\\aleph`),Z(`\\alefsym`,`\\aleph`),Z(`\\Alpha`,`\\mathrm{A}`),Z(`\\Beta`,`\\mathrm{B}`),Z(`\\bull`,`\\bullet`),Z(`\\Chi`,`\\mathrm{X}`),Z(`\\clubs`,`\\clubsuit`),Z(`\\cnums`,`\\mathbb{C}`),Z(`\\Complex`,`\\mathbb{C}`),Z(`\\Dagger`,`\\ddagger`),Z(`\\diamonds`,`\\diamondsuit`),Z(`\\empty`,`\\emptyset`),Z(`\\Epsilon`,`\\mathrm{E}`),Z(`\\Eta`,`\\mathrm{H}`),Z(`\\exist`,`\\exists`),Z(`\\harr`,`\\leftrightarrow`),Z(`\\hArr`,`\\Leftrightarrow`),Z(`\\Harr`,`\\Leftrightarrow`),Z(`\\hearts`,`\\heartsuit`),Z(`\\image`,`\\Im`),Z(`\\infin`,`\\infty`),Z(`\\Iota`,`\\mathrm{I}`),Z(`\\isin`,`\\in`),Z(`\\Kappa`,`\\mathrm{K}`),Z(`\\larr`,`\\leftarrow`),Z(`\\lArr`,`\\Leftarrow`),Z(`\\Larr`,`\\Leftarrow`),Z(`\\lrarr`,`\\leftrightarrow`),Z(`\\lrArr`,`\\Leftrightarrow`),Z(`\\Lrarr`,`\\Leftrightarrow`),Z(`\\Mu`,`\\mathrm{M}`),Z(`\\natnums`,`\\mathbb{N}`),Z(`\\Nu`,`\\mathrm{N}`),Z(`\\Omicron`,`\\mathrm{O}`),Z(`\\plusmn`,`\\pm`),Z(`\\rarr`,`\\rightarrow`),Z(`\\rArr`,`\\Rightarrow`),Z(`\\Rarr`,`\\Rightarrow`),Z(`\\real`,`\\Re`),Z(`\\reals`,`\\mathbb{R}`),Z(`\\Reals`,`\\mathbb{R}`),Z(`\\Rho`,`\\mathrm{P}`),Z(`\\sdot`,`\\cdot`),Z(`\\sect`,`\\S`),Z(`\\spades`,`\\spadesuit`),Z(`\\sub`,`\\subset`),Z(`\\sube`,`\\subseteq`),Z(`\\supe`,`\\supseteq`),Z(`\\Tau`,`\\mathrm{T}`),Z(`\\thetasym`,`\\vartheta`),Z(`\\weierp`,`\\wp`),Z(`\\Zeta`,`\\mathrm{Z}`),Z(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),Z(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),Z(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),Z(`\\bra`,`\\mathinner{\\langle{#1}|}`),Z(`\\ket`,`\\mathinner{|{#1}\\rangle}`),Z(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),Z(`\\Bra`,`\\left\\langle#1\\right|`),Z(`\\Ket`,`\\left|#1\\right\\rangle`);var Gy=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}};Z(`\\bra@ket`,Gy(!1)),Z(`\\bra@set`,Gy(!0)),Z(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),Z(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),Z(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),Z(`\\angln`,`{\\angl n}`),Z(`\\blue`,`\\textcolor{##6495ed}{#1}`),Z(`\\orange`,`\\textcolor{##ffa500}{#1}`),Z(`\\pink`,`\\textcolor{##ff00af}{#1}`),Z(`\\red`,`\\textcolor{##df0030}{#1}`),Z(`\\green`,`\\textcolor{##28ae7b}{#1}`),Z(`\\gray`,`\\textcolor{gray}{#1}`),Z(`\\purple`,`\\textcolor{##9d38bd}{#1}`),Z(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),Z(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),Z(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),Z(`\\blueD`,`\\textcolor{##11accd}{#1}`),Z(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),Z(`\\tealA`,`\\textcolor{##94fff5}{#1}`),Z(`\\tealB`,`\\textcolor{##26edd5}{#1}`),Z(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),Z(`\\tealD`,`\\textcolor{##01a995}{#1}`),Z(`\\tealE`,`\\textcolor{##208170}{#1}`),Z(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),Z(`\\greenB`,`\\textcolor{##8af281}{#1}`),Z(`\\greenC`,`\\textcolor{##74cf70}{#1}`),Z(`\\greenD`,`\\textcolor{##1fab54}{#1}`),Z(`\\greenE`,`\\textcolor{##0d923f}{#1}`),Z(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),Z(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),Z(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),Z(`\\goldD`,`\\textcolor{##e07d10}{#1}`),Z(`\\goldE`,`\\textcolor{##a75a05}{#1}`),Z(`\\redA`,`\\textcolor{##fca9a9}{#1}`),Z(`\\redB`,`\\textcolor{##ff8482}{#1}`),Z(`\\redC`,`\\textcolor{##f9685d}{#1}`),Z(`\\redD`,`\\textcolor{##e84d39}{#1}`),Z(`\\redE`,`\\textcolor{##bc2612}{#1}`),Z(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),Z(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),Z(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),Z(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),Z(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),Z(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),Z(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),Z(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),Z(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),Z(`\\purpleE`,`\\textcolor{##543b78}{#1}`),Z(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),Z(`\\mintB`,`\\textcolor{##edf2df}{#1}`),Z(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),Z(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),Z(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),Z(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),Z(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),Z(`\\grayE`,`\\textcolor{##babec2}{#1}`),Z(`\\grayF`,`\\textcolor{##888d93}{#1}`),Z(`\\grayG`,`\\textcolor{##626569}{#1}`),Z(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),Z(`\\grayI`,`\\textcolor{##21242c}{#1}`),Z(`\\kaBlue`,`\\textcolor{##314453}{#1}`),Z(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Ky={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},qy=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 Ly(Ry,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Iy(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 Lv(`EOF`,n.loc)),this.pushTokens(r),new Lv(``,Iv.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 Lv(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 Iy(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)||Dy.hasOwnProperty(e)||_h.math.hasOwnProperty(e)||_h.text.hasOwnProperty(e)||Ky.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?Dy.hasOwnProperty(e)&&!Dy[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Jy=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Yy=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Xy={"́":{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`}},Zy={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Qy=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 qy(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 Lv(`}`)),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&&Dy[i.text]&&Dy[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(Yy[i.text]){var s=Jy.test(i.text),c=[];for(c.push(new Lv(Yy[i.text])),this.consume();;){var l=this.fetch().text;if(!Yy[l]||Jy.test(l)!==s)break;c.unshift(new Lv(Yy[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=Dy[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=Dy[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(!Gm(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:Iv.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Ky.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:Iv.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:Iv.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:Iv.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 --
|
|
370
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Zy.hasOwnProperty(t[0])&&!_h[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=Zy[t[0]]+t.slice(1));var i=Py.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(_h[this.mode][t]){this.settings.strict&&this.mode===`math`&&Hh.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=_h[this.mode][t].group,s=Iv.range(e);a=D_(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&&(Dm(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:Iv.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(!Xy[l])throw new B(`Unknown accent ' `+l+`'`,e);var u=Xy[l][this.mode]||Xy[l].text;if(!u)throw new B(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:Iv.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};Qy.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var $y=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new Qy(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 Lv(`\\df@tag`)])}]}return r},eb=function(e,t,n){t.textContent=``;var r=ib(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.`),eb=function(){throw new B(`KaTeX doesn't work in quirks mode.`)});var tb=function(e,t){return ib(e,t).toMarkup()},nb=function(e,t){return $y(e,new om(t))},rb=function(e,t,n){if(n.throwOnError||!(e instanceof B))throw e;var r=Y([`katex-error`],[new rh(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},ib=function(e,t){var n=new om(t);try{return __($y(e,n),e,n)}catch(t){return rb(t,e,n)}},ab={version:`0.16.47`,render:eb,renderToString:tb,ParseError:B,SETTINGS_SCHEMA:nm,__parse:nb,__renderToDomTree:ib,__renderToHTMLTree:function(e,t){var n=new om(t);try{return v_($y(e,n),e,n)}catch(t){return rb(t,e,n)}},__setFontMetrics:ph,__defineSymbol:H,__defineFunction:Pg,__defineMacro:Z,__domTree:{Span:$m,Anchor:eh,SymbolNode:rh,SvgNode:ih,PathNode:ah,LineNode:oh}};function ob(e){let t=[],n=`@@__DMD_KATEX_CODE_`,r=`__@@`,i=e=>{let i=t.length;return t.push(e),`${n}${i}${r}`},a=e.replace(/(`{3,})[\s\S]*?\1/g,e=>i(e));a=a.replace(/(~{3,})[\s\S]*?\1/g,e=>i(e)),a=a.replace(/(`+)[\s\S]*?\1/g,e=>i(e));let o=a.replace(/\$\$([\s\S]+?)\$\$/g,(e,t)=>{try{return ab.renderToString(t.trim(),{displayMode:!0,throwOnError:!1})}catch{return`$$${t}$$`}});return o=o.replace(/(^|[^\\])\$([^$\n]+?)\$/g,(e,t,n)=>{if(!n.trim())return`${t}$${n}$`;try{return`${t}${ab.renderToString(n.trim(),{displayMode:!1,throwOnError:!1})}`}catch{return`${t}$${n}$`}}),t.forEach((e,t)=>{o=o.split(`${n}${t}${r}`).join(e)}),o}function sb(e){let t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/);if(!t)return{frontmatter:{},content:e};let n=t[1],r=e.substring(t[0].length),i={},a=n.split(`
|
|
371
|
+
`);for(let e of a){let t=e.indexOf(`:`);if(t===-1)continue;let n=e.substring(0,t).trim(),r=e.substring(t+1).trim();r.startsWith(`"`)&&r.endsWith(`"`)||r.startsWith(`'`)&&r.endsWith(`'`)?r=r.substring(1,r.length-1):r===`true`?r=!0:r===`false`?r=!1:!Number.isNaN(Number(r))&&r!==``?r=Number(r):r.startsWith(`[`)&&r.endsWith(`]`)&&(r=r.substring(1,r.length-1).split(`,`).map(e=>e.trim().replace(/^['"]|['"]$/g,``)).filter(Boolean)),i[n]=r}return{frontmatter:i,content:r}}function cb(e){return e.toLowerCase().replace(/<[^>]*>/g,``).replace(/[^\w\s-]/g,``).trim().replace(/[\s_-]+/g,`-`)}function lb(e){let t=e.trim().split(/\s+/).length;return Math.max(1,Math.ceil(t/200))}function ub(e,t=``){let{frontmatter:n,content:r}=sb(e),i=lb(r),a=ob(r);a=Qd(a);let o=kp(a);a=o.html;let s=[],c={},l=new Xd.Renderer;return l.heading=({tokens:e,depth:n})=>{let r=Xd.parseInline(e.map(e=>e.raw).join(``)),i=e.map(e=>e.text||e.raw).join(``),a=cb(i);return c[a]?(c[a]++,a=`${a}-${c[a]}`):c[a]=1,n<=3&&s.push({level:n,text:Kp(i),html:r,id:a}),`
|
|
372
372
|
<h${n} id="${a}" class="dmd-heading dmd-h${n}">
|
|
373
373
|
<a href="#/${t}#${a}" class="dmd-heading-anchor" aria-hidden="true">#</a>
|
|
374
374
|
<span>${r}</span>
|
|
375
375
|
</h${n}>
|
|
376
|
-
`},l.code=({text:e,lang:t})=>lp(e,t||``),l.table=e=>Ff({header:e.header.map((t,n)=>({html:Yd.parseInline(t.text||``),align:t.align||e.align?.[n]||null})),rows:e.rows.map(t=>t.map((t,n)=>({html:Yd.parseInline(t.text||``),align:t.align||e.align?.[n]||null})))}),l.link=({href:e,title:n,text:r})=>{let i=e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`mailto:`),a=e;if(!i){if(/\.html(?:#.*)?$/i.test(e))return`<a href="${e}"${n?` title="${n}"`:``} class="dmd-link">${r}</a>`;if(e.startsWith(`#`))a=`#/${t}${e}`;else{let n=e.replace(/\.(md|mdx)$/i,``);if(n.startsWith(`./`)){let e=t.includes(`/`)?t.substring(0,t.lastIndexOf(`/`)):``;n=e?`${e}/${n.replace(/^\.\//,``)}`:n.replace(/^\.\//,``)}else if(!n.startsWith(`/`)){let e=t.includes(`/`)?t.substring(0,t.lastIndexOf(`/`)):``;n=e?`${e}/${n}`:n}a=`#/${n.replace(/^\//,``)}`}}let o=n?` title="${n}"`:``;return`<a href="${a}"${o}${i?` target="_blank" rel="noopener noreferrer"`:``} class="dmd-link">${r}${i?`<svg class="dmd-ext-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>`:``}</a>`},{frontmatter:n,html:Pp(kp(Ep(Yd.parse(a,{renderer:l,gfm:!0,breaks:!1}),o.fences))),headings:s,readingTimeMinutes:i}}var ub={};function db(e){let t;return()=>(t===void 0&&(t=e()),t)}var fb=e=>e,pb=e=>e*1e3,mb=e=>e/1e3,hb=e=>Array.isArray(e)&&typeof e[0]==`number`,gb=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function _b(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var vb=40;function yb(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=gb.reduce((e,t)=>(e[t]=_b(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=ub.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,vb),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:gb.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<gb.length;t++)o[gb[t]].cancel(e)},state:i,steps:o}}var{schedule:bb,cancel:xb,state:Sb,steps:Cb}=yb(typeof requestAnimationFrame<`u`?requestAnimationFrame:fb,!0),wb;function Tb(){wb=void 0}var Eb={now:()=>(wb===void 0&&Eb.set(Sb.isProcessing||ub.useManualTiming?Sb.timestamp:performance.now()),wb),set:e=>{wb=e,queueMicrotask(Tb)}},Db=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Ob=e=>e!==null;function kb(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Ob),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}function Ab(e,t){return{kind:e,animation:t,timestamp:Eb.now(),frameTimestamp:Sb.timestamp,frameIsProcessing:Sb.isProcessing}}function jb(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Ab(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}var Mb=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}};function Nb(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Pb=e=>e.startsWith(`--`);function Fb(e,t,n){Pb(t)?e.style.setProperty(t,n):e.style[t]=n}var Ib={};function Lb(e,t){let n=db(e);return()=>Ib[t]??n()}var Rb=Lb(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),zb=Lb(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Bb=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Vb={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Bb([0,.65,.55,1]),circOut:Bb([.55,0,1,.45]),backIn:Bb([.31,.01,.66,-.59]),backOut:Bb([.33,1.53,.69,.99])};function Hb(e,t){if(e)return typeof e==`function`?zb()?Db(e,t):`ease-out`:hb(e)?Bb(e):Array.isArray(e)?e.map(e=>Hb(e,t)||Vb.easeOut):Vb[e]}function Ub(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Hb(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Wb(e){return typeof e==`function`&&`applyToOptions`in e}function Gb({type:e,...t}){return Wb(e)&&zb()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Kb=class extends Mb{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Gb(e);this.animation=Ub(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=kb(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Fb(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},jb(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return mb(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+mb(e)}get time(){return mb(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=pb(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Rb()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),fb):r(this)}},qb=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Jb(this.animations,`duration`)}get iterationDuration(){return Jb(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Jb(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Yb=class extends qb{then(e,t){return this.finished.finally(e).then(()=>{})}},Xb=new WeakMap,Zb=(e,t=``)=>`${e}:${t}`;function Qb(e){let t=Xb.get(e);return t||(t=new Map,Xb.set(e,t)),t}function $b(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ex(e,t){let n=e?.[t]??e?.default??e;return n===e?n:$b(n,e)}var tx=new Set(`borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY`.split(`.`));function nx(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&tx.has(t)&&(e[n]=e[n]+`px`)}function rx(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function ix(e,t){let n=window.getComputedStyle(e);return Pb(t)?n.getPropertyValue(t):n[t]}function ax(e,t,n,r){if(e==null)return[];let i=rx(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...ex(s,e)};i.duration&&=pb(i.duration),i.delay&&=pb(i.delay);let a=Qb(r),c=Zb(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=ix(r,i)),Nb(t),nx(t,i),!a&&t.length<2&&t.unshift(ix(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new Kb(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var ox=(e=>{function t(t,n,r){return new Yb(ax(t,n,r,e))}return t})(),sx=l({animate:()=>dx,animateRaw:()=>ox,collapse:()=>gx,expand:()=>hx,fade:()=>vx,getMotionOptions:()=>ux,isDOMElement:()=>cx,motion:()=>_x,prefersReducedMotion:()=>lx,scale:()=>bx,slide:()=>yx,smoothScroll:()=>px,stagger:()=>Sx,useMotion:()=>xx});function cx(e){return typeof window>`u`||!e?!1:window.Element!==void 0&&e instanceof window.Element}function lx(){if(typeof window>`u`)return!1;let e=document.documentElement?.getAttribute(`data-dmd-motion`);if(e===`reduced`||e===`off`)return!0;if(e===`full`||e===`on`)return!1;try{let e=window.localStorage.getItem(`dmd-motion`);if(e===`reduced`||e===`off`)return!0;if(e===`full`||e===`on`)return!1}catch{}return window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1}function ux(e){return lx()?{...e,duration:0,delay:0}:e}function dx(e,t,n={}){if(!cx(e)){if(e&&typeof e==`object`&&`style`in e&&e.style)for(let[n,r]of Object.entries(t)){let t=Array.isArray(r)?r[r.length-1]:r;try{e.style[n]=String(t)}catch{}}let n=Promise.resolve();return n.stop=()=>{},n}return lx()&&(n={...n,duration:0,delay:0}),ox(e,t,n)}var fx=new WeakMap;function px(e,t,n={}){fx.get(e)?.stop();let r=n.direction!==`y`,i=r?e.scrollLeft:e.scrollTop,a=t-i;if(Math.abs(a)<1||(n.duration??400)<=0||lx()||typeof requestAnimationFrame>`u`)return r?e.scrollLeft=t:e.scrollTop=t,n.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let o=n.duration??400,s=n.easing??(e=>1-(1-e)**3),c=null,l=0,u=!1,d,f=new Promise(e=>{d=e}),p=e.style.scrollSnapType;e.style.scrollSnapType=`none`;let m=()=>{e.style.scrollSnapType=p,e.removeEventListener(`wheel`,h),e.removeEventListener(`touchstart`,h),e.removeEventListener(`pointerdown`,h),e.removeEventListener(`keydown`,h)},h=()=>{u||(u=!0,l&&cancelAnimationFrame(l),m(),fx.delete(e),d())},g=f=>{if(u)return;c===null&&(c=f);let p=f-c,h=Math.min(1,p/o),_=s(h),v=i+a*_;r?e.scrollLeft=v:e.scrollTop=v,h<1?l=requestAnimationFrame(g):(u=!0,r?e.scrollLeft=t:e.scrollTop=t,m(),fx.delete(e),n.onComplete?.(),d())};return fx.set(e,{stop:h}),e.addEventListener(`wheel`,h,{passive:!0}),e.addEventListener(`touchstart`,h,{passive:!0}),e.addEventListener(`pointerdown`,h,{passive:!0}),e.addEventListener(`keydown`,h),l=requestAnimationFrame(g),{stop:h,finished:f}}var mx=new WeakMap;function hx(e,t={}){if(mx.get(e)?.stop(),!cx(e)||lx())return e?.style&&(e.style.height=`auto`,e.style.opacity=`1`,e.style.overflow=`visible`),t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let n=e.offsetHeight;e.style.display=`block`,e.style.height=`auto`;let r=e.scrollHeight,i=n>0&&n<r?n:0;e.style.height=`${i}px`,e.style.opacity=n>0?String(Math.min(1,n/r)):`0`,e.style.overflow=`hidden`;let a=(t.duration??240)/1e3,o=ox(e,{height:[`${i}px`,`${r}px`],opacity:[Number(e.style.opacity)||0,1]},{duration:a,ease:[.16,1,.3,1]}),s=!1,c=()=>{s||(s=!0,o.stop(),mx.delete(e))};return mx.set(e,{stop:c}),{stop:c,finished:o.then(()=>{s||(e.style.height=`auto`,e.style.opacity=`1`,e.style.overflow=`visible`,t.onComplete?.(),mx.delete(e))})}}function gx(e,t={}){if(mx.get(e)?.stop(),!cx(e)||lx())return e?.style&&(e.style.height=`0px`,e.style.opacity=`0`,e.style.overflow=`hidden`),t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let n=e.offsetHeight;if(e.style.overflow=`hidden`,n<=0)return e.style.height=`0px`,e.style.opacity=`0`,t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let r=(t.duration??200)/1e3,i=ox(e,{height:[`${n}px`,`0px`],opacity:[1,0]},{duration:r,ease:[.16,1,.3,1]}),a=!1,o=()=>{a||(a=!0,i.stop(),mx.delete(e))};return mx.set(e,{stop:o}),{stop:o,finished:i.then(()=>{a||(e.style.height=`0px`,e.style.opacity=`0`,t.onComplete?.(),mx.delete(e))})}}function _x(e,t={}){let n=null,r=null,i=!1;function a(){n?.stop(),n=null}function o(){if(a(),!cx(e)||lx()){t.animate&&e?.style&&Object.assign(e.style,t.animate);return}if(t.initial&&e?.style&&Object.assign(e.style,t.initial),t.animate){let r=t.transition?.duration??.35,i=t.transition?.delay??0,a=t.transition?.ease??[.25,1,.5,1];n=ox(e,t.animate,{duration:r,delay:i,ease:a})}}function s(){r?.disconnect(),r=null,a(),t.inView&&cx(e)&&!lx()&&typeof IntersectionObserver<`u`?(t.initial&&Object.assign(e.style,t.initial),r=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(r?.disconnect(),r=null,o())},{threshold:.1}),r.observe(e)):o()}return s(),{update(e){i||e===t||(t=e,s())},destroy(){i=!0,r?.disconnect(),r=null,a()}}}function vx(e,t={}){let n=e=>({initial:{opacity:`0`},animate:{opacity:`1`},transition:{duration:e.duration??.3,delay:e.delay??0},inView:e.inView}),r=_x(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function yx(e,t={}){let n=e=>{let t=e.direction??`up`,n=e.distance??16;return{initial:{opacity:`0`,transform:`translate3d(${t===`left`?`${n}px`:t===`right`?`-${n}px`:`0px`}, ${t===`up`?`${n}px`:t===`down`?`-${n}px`:`0px`}, 0)`},animate:{opacity:`1`,transform:`translate3d(0, 0, 0)`},transition:{duration:e.duration??.35,delay:e.delay??0},inView:e.inView}},r=_x(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function bx(e,t={}){let n=e=>({initial:{opacity:`0`,transform:`scale(${e.from??.94})`},animate:{opacity:`1`,transform:`scale(1)`},transition:{duration:e.duration??.3,delay:e.delay??0},inView:e.inView}),r=_x(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function xx(e={}){let t=null;return n=>{if(t&&=(t(),null),n){let r=_x(n,e);t=()=>r.destroy()}}}function Sx(e,t,n={}){let r=Array.from(e),i=n.staggerDelay??.05,a=n.delay??0;return r.map((e,r)=>dx(e,t,{duration:n.duration,ease:n.ease,delay:a+r*i}))}function Cx(){if(typeof window>`u`)return null;let e=window;return typeof e.__DOCMEDOWN_STATIC_SLUG__==`string`?{base:typeof e.__DOCMEDOWN_STATIC_BASE__==`string`?e.__DOCMEDOWN_STATIC_BASE__:``,slug:e.__DOCMEDOWN_STATIC_SLUG__}:null}function wx(e){let t=lx();e.scrollIntoView({behavior:t?`auto`:`smooth`,block:`start`}),e.classList.remove(`dmd-heading-targeted`),e.offsetWidth,e.classList.add(`dmd-heading-targeted`),setTimeout(()=>{e.classList.remove(`dmd-heading-targeted`)},1600)}function Tx(){return Cx()!==null}function Ex(e=`README.md`){return Cx()?new jx(e):new Ax(e)}function Dx(e,t){let n=e.replace(/\/+$/,``);return n?`${n}/${t}`:t}function Ox(e){try{return decodeURIComponent(e).replace(/index\.html?$/i,``)}catch{return e.replace(/index\.html?$/i,``)}}function kx(e,t){let n=Ox(e),r=t===`README`?`/`:`/${t}/`;return n.endsWith(r)?n.slice(0,n.length-r.length).replace(/\/+$/,``):n.replace(/[^/]*$/,`/`).replace(/\/+$/,``)}var Ax=class{listeners=new Set;defaultDoc;constructor(e=`README.md`){this.defaultDoc=e,typeof window<`u`&&window.addEventListener(`hashchange`,this.handleHashChange)}destroy(){typeof window<`u`&&window.removeEventListener(`hashchange`,this.handleHashChange),this.listeners.clear()}setDefaultDoc(e){this.defaultDoc=e}getCurrentRoute(){return typeof window>`u`?this.parseHash(``):this.parseHash(window.location.hash)}parseHash(e){let t=e.replace(/^#\/?/,``).trim(),n=``,r=t.indexOf(`#`);r!==-1&&(n=t.substring(r+1),t=t.substring(0,r)),t=t.replace(/^\/+|\/+$/g,``);let i=t;return i=!i||i===`/`||i===`index`||i===`README`?this.normalizeDocSlug(this.defaultDoc):this.normalizeDocSlug(i),{slug:i,anchor:n,fullPath:`#/${i}${n?`#${n}`:``}`}}normalizeDocSlug(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);return!t||t===`index`||t===`README`?`README`:t}navigate(e,t=``){if(typeof window>`u`)return;let n=`#/${this.normalizeDocSlug(e)}${t?`#${t}`:``}`;if(window.location.hash===n){t&&this.scrollToAnchor(t);return}window.location.hash=n}scrollToAnchor(e){if(typeof document>`u`)return;let t=decodeURIComponent(e).toLowerCase().replace(/^[#]/,``),n=document.getElementById(t);n&&wx(n)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}emitRoute(e){this.listeners.forEach(t=>t(e))}handleHashChange=()=>{let e=this.getCurrentRoute();this.emitRoute(e),e.anchor&&setTimeout(()=>{this.scrollToAnchor(e.anchor)},100)};resolveLink(e,t){if(!e)return`#/`;if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`mailto:`))return e;if(e.startsWith(`#`))return`#/${t}${e}`;let n=``,r=e.indexOf(`#`);r!==-1&&(n=e.substring(r),e=e.substring(0,r));let i=[];if(e.startsWith(`/`))i=e.replace(/^\//,``).split(`/`);else{let n=t.includes(`/`)?t.split(`/`).slice(0,-1):[],r=e.split(`/`);for(let e of[...n,...r])!e||e===`.`||(e===`..`?i.pop():i.push(e))}let a=i.join(`/`);return`#/${this.normalizeDocSlug(a)}${n}`}},jx=class extends Ax{urlBase;constructor(e=`README.md`){super(e);let t=Cx();this.urlBase=typeof window>`u`?``:kx(window.location.pathname,t?.slug??this.normalizeDocSlug(e)),typeof window<`u`&&window.addEventListener(`popstate`,this.handlePopState)}destroy(){typeof window<`u`&&window.removeEventListener(`popstate`,this.handlePopState),super.destroy()}getCurrentRoute(){return typeof window>`u`?this.parseStaticPath(`/`,``):this.parseStaticPath(window.location.pathname,window.location.hash)}parseStaticPath(e,t){let n=Ox(e);if(this.urlBase){let e=`${this.urlBase}/`;n===this.urlBase?n=`/`:n.startsWith(e)&&(n=n.slice(e.length-1))}let r=n.replace(/^\/+|\/+$/g,``),i=r?this.normalizeDocSlug(r):this.normalizeDocSlug(this.defaultDoc),a=this.parseStaticAnchor(t);return{slug:i,anchor:a,fullPath:`${this.urlForSlug(i)}${a?`#${a}`:``}`}}urlForSlug(e,t=``){let n=this.normalizeDocSlug(e),r=n===`README`?`/`:`/${n}/`,i=`${this.urlBase}${r}`;return t?`${i}#${t}`:i}navigate(e,t=``){if(typeof window>`u`)return;let n=this.normalizeDocSlug(e),r=this.urlForSlug(n),i=t?`${r}#${t}`:r;if(Ox(window.location.pathname)===r&&window.location.hash===(t?`#${t}`:``)){t&&this.scrollToAnchor(t);return}try{window.history.pushState({},``,i)}catch{}this.emitRoute(this.getCurrentRoute()),t&&setTimeout(()=>this.scrollToAnchor(t),100)}scrollToAnchor(e){if(typeof document>`u`)return;let t=decodeURIComponent(e).toLowerCase().replace(/^[#]/,``),n=document.getElementById(t);n&&wx(n)}resolveLink(e,t){let n=super.resolveLink(e,t);if(!n.startsWith(`#/`))return n;let r=n.slice(2),i=``,a=r.indexOf(`#`);return a!==-1&&(i=r.slice(a+1),r=r.slice(0,a)),this.urlForSlug(this.normalizeDocSlug(r),i)}parseStaticAnchor(e){let t=e.replace(/^#/,``).trim();if(t.startsWith(`/`)){let e=t.slice(1),n=e.indexOf(`#`);t=n>=0?e.slice(n+1):``}return t}handlePopState=()=>{let e=this.getCurrentRoute();this.emitRoute(e),e.anchor&&setTimeout(()=>this.scrollToAnchor(e.anchor),100)}},Mx=`ENTRIES`,Nx=`KEYS`,Px=`VALUES`,Fx=``,Ix=class{constructor(e,t){let n=e._tree,r=Array.from(n.keys());this.set=e,this._type=t,this._path=r.length>0?[{node:n,keys:r}]:[]}next(){let e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:e,keys:t}=Lx(this._path);if(Lx(t)===Fx)return{done:!1,value:this.result()};let n=e.get(Lx(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let e=Lx(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>Lx(e)).filter(e=>e!==Fx).join(``)}value(){return Lx(this._path).node.get(Fx)}result(){switch(this._type){case Px:return this.value();case Nx:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},Lx=e=>e[e.length-1],Rx=(e,t,n)=>{let r=new Map;if(t===void 0)return r;let i=t.length+1,a=i+n,o=new Uint8Array(a*i).fill(n+1);for(let e=0;e<i;++e)o[e]=e;for(let e=1;e<a;++e)o[e*i]=e;return zx(e,t,n,r,o,1,i,``),r},zx=(e,t,n,r,i,a,o,s)=>{let c=a*o;key:for(let l of e.keys())if(l===Fx){let t=i[c-1];t<=n&&r.set(s,[e.get(l),t])}else{let c=a;for(let e=0;e<l.length;++e,++c){let r=l[e],a=o*c,s=a-o,u=i[a],d=Math.max(0,c-n-1),f=Math.min(o-1,c+n);for(let e=d;e<f;++e){let n=r!==t[e],o=i[s+e]+ +n,c=i[s+e+1]+1,l=i[a+e]+1,d=i[a+e+1]=Math.min(o,c,l);d<u&&(u=d)}if(u>n)continue key}zx(e.get(l),t,n,r,i,c,o,s+l)}},Bx=class e{constructor(e=new Map,t=``){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(t){if(!t.startsWith(this._prefix))throw Error(`Mismatched prefix`);let[n,r]=Vx(this._tree,t.slice(this._prefix.length));if(n===void 0){let[n,i]=qx(r);for(let r of n.keys())if(r!==Fx&&r.startsWith(i)){let a=new Map;return a.set(r.slice(i.length),n.get(r)),new e(a,t)}}return new e(n,t)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Wx(this._tree,e)}entries(){return new Ix(this,Mx)}forEach(e){for(let[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return Rx(this._tree,e,t)}get(e){let t=Hx(this._tree,e);return t===void 0?void 0:t.get(Fx)}has(e){let t=Hx(this._tree,e);return t!==void 0&&t.has(Fx)}keys(){return new Ix(this,Nx)}set(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);return this._size=void 0,Ux(this._tree,e).set(Fx,t),this}get size(){if(this._size)return this._size;this._size=0;let e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=Ux(this._tree,e);return n.set(Fx,t(n.get(Fx))),this}fetch(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=Ux(this._tree,e),r=n.get(Fx);return r===void 0&&n.set(Fx,r=t()),r}values(){return new Ix(this,Px)}[Symbol.iterator](){return this.entries()}static from(t){let n=new e;for(let[e,r]of t)n.set(e,r);return n}static fromObject(t){return e.from(Object.entries(t))}},Vx=(e,t,n=[])=>{if(t.length===0||e==null)return[e,n];for(let r of e.keys())if(r!==Fx&&t.startsWith(r))return n.push([e,r]),Vx(e.get(r),t.slice(r.length),n);return n.push([e,t]),Vx(void 0,``,n)},Hx=(e,t)=>{if(t.length===0||e==null)return e;for(let n of e.keys())if(n!==Fx&&t.startsWith(n))return Hx(e.get(n),t.slice(n.length))},Ux=(e,t)=>{let n=t.length;outer:for(let r=0;e&&r<n;){for(let i of e.keys())if(i!==Fx&&t[r]===i[0]){let a=Math.min(n-r,i.length),o=1;for(;o<a&&t[r+o]===i[o];)++o;let s=e.get(i);if(o===i.length)e=s;else{let n=new Map;n.set(i.slice(o),s),e.set(t.slice(r,r+o),n),e.delete(i),e=n}r+=o;continue outer}let i=new Map;return e.set(t.slice(r),i),i}return e},Wx=(e,t)=>{let[n,r]=Vx(e,t);if(n!==void 0){if(n.delete(Fx),n.size===0)Gx(r);else if(n.size===1){let[e,t]=n.entries().next().value;Kx(r,e,t)}}},Gx=e=>{if(e.length===0)return;let[t,n]=qx(e);if(t.delete(n),t.size===0)Gx(e.slice(0,-1));else if(t.size===1){let[n,r]=t.entries().next().value;n!==Fx&&Kx(e.slice(0,-1),n,r)}},Kx=(e,t,n)=>{if(e.length===0)return;let[r,i]=qx(e);r.set(i+t,n),r.delete(i)},qx=e=>e[e.length-1],Jx=`or`,Yx=`and`,Xx=`and_not`,Zx=class e{constructor(e){if(e?.fields==null)throw Error(`MiniSearch: option "fields" must be provided`);let t=e.autoVacuum==null||e.autoVacuum===!0?cS:e.autoVacuum;this._options={...rS,...e,autoVacuum:t,searchOptions:{...iS,...e.searchOptions||{}},autoSuggestOptions:{...aS,...e.autoSuggestOptions||{}}},this._index=new Bx,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=sS,this.addFields(this._options.fields)}add(e){let{extractField:t,stringifyField:n,tokenize:r,processTerm:i,fields:a,idField:o}=this._options,s=t(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(s))throw Error(`MiniSearch: duplicate ID ${s}`);let c=this.addDocumentId(s);this.saveStoredFields(c,e);for(let o of a){let a=t(e,o);if(a==null)continue;let s=r(n(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.addFieldLength(c,l,this._documentCount-1,u);for(let e of s){let t=i(e,o);if(Array.isArray(t))for(let e of t)this.addTerm(l,c,e);else t&&this.addTerm(l,c,t)}}}addAll(e){for(let t of e)this.add(t)}addAllAsync(e,t={}){let{chunkSize:n=10}=t,r={chunk:[],promise:Promise.resolve()},{chunk:i,promise:a}=e.reduce(({chunk:e,promise:t},r,i)=>(e.push(r),(i+1)%n===0?{chunk:[],promise:t.then(()=>new Promise(e=>setTimeout(e,0))).then(()=>this.addAll(e))}:{chunk:e,promise:t}),r);return a.then(()=>this.addAll(i))}remove(e){let{tokenize:t,processTerm:n,extractField:r,stringifyField:i,fields:a,idField:o}=this._options,s=r(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);let c=this._idToShortId.get(s);if(c==null)throw Error(`MiniSearch: cannot remove document with ID ${s}: it is not in the index`);for(let o of a){let a=r(e,o);if(a==null)continue;let s=t(i(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.removeFieldLength(c,l,this._documentCount,u);for(let e of s){let t=n(e,o);if(Array.isArray(t))for(let e of t)this.removeTerm(l,c,e);else t&&this.removeTerm(l,c,t)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(s),this._fieldLength.delete(c),--this._documentCount}removeAll(e){if(e)for(let t of e)this.remove(t);else if(arguments.length>0)throw Error(`Expected documents to be present. Omit the argument to remove all documents.`);else this._index=new Bx,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}discard(e){let t=this._idToShortId.get(e);if(t==null)throw Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((e,n)=>{this.removeFieldLength(t,n,this._documentCount,e)}),this._fieldLength.delete(t),--this._documentCount,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:r}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:r},{minDirtCount:t,minDirtFactor:e})}discardAll(e){let t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let t of e)this.discard(t)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){let{idField:t,extractField:n}=this._options,r=n(e,t);this.discard(r),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum??=this._currentVacuum.then(()=>{let t=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=sS,this.performVacuuming(e,t)}),this._enqueuedVacuum):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){let n=this._dirtCount;if(this.vacuumConditionsMet(t)){let t=e.batchSize||oS.batchSize,r=e.batchWait||oS.batchWait,i=1;for(let[e,n]of this._index){for(let[e,t]of n)for(let[r]of t)this._documentIds.has(r)||(t.size<=1?n.delete(e):t.delete(r));this._index.get(e).size===0&&this._index.delete(e),i%t===0&&await new Promise(e=>setTimeout(e,r)),i+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t||=cS.minDirtCount,n||=cS.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){let t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(t,n={}){let{searchOptions:r}=this._options,i={...r,...n},a=this.executeQuery(t,n),o=[];for(let[e,{score:t,terms:n,match:r}]of a){let a=n.length||1,s={id:this._documentIds.get(e),score:t*a,terms:Object.keys(r),queryTerms:n,match:r};Object.assign(s,this._storedFields.get(e)),(i.filter==null||i.filter(s))&&o.push(s)}return t===e.wildcard&&i.boostDocument==null||o.sort(dS),o}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};let n=new Map;for(let{score:r,terms:i}of this.search(e,t)){let e=i.join(` `),t=n.get(e);t==null?n.set(e,{score:r,terms:i,count:1}):(t.score+=r,t.count+=1)}let r=[];for(let[e,{score:t,terms:i,count:a}]of n)r.push({suggestion:e,terms:i,score:t/a});return r.sort(dS),r}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw Error(`MiniSearch: loadJSON should be given the same options used when serializing the index`);return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw Error(`MiniSearch: loadJSON should be given the same options used when serializing the index`);return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(rS.hasOwnProperty(e))return Qx(rS,e);throw Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=pS(r),s._fieldLength=pS(i),s._storedFields=pS(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),pS(r))}s._index.set(e,n)}return s}static async loadJSAsync(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=await mS(r),s._fieldLength=await mS(i),s._storedFields=await mS(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);let c=0;for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),await mS(r))}++c%1e3==0&&await hS(0),s._index.set(e,n)}return s}static instantiateMiniSearch(t,n){let{documentCount:r,nextId:i,fieldIds:a,averageFieldLength:o,dirtCount:s,serializationVersion:c}=t;if(c!==1&&c!==2)throw Error(`MiniSearch: cannot deserialize an index created with an incompatible version`);let l=new e(n);return l._documentCount=r,l._nextId=i,l._idToShortId=new Map,l._fieldIds=a,l._avgFieldLength=o,l._dirtCount=s||0,l._index=new Bx,l}executeQuery(t,n={}){if(t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!=`string`){let e={...n,...t,queries:void 0},r=t.queries.map(t=>this.executeQuery(t,e));return this.combineResults(r,e.combineWith)}let{tokenize:r,processTerm:i,searchOptions:a}=this._options,o={tokenize:r,processTerm:i,...a,...n},{tokenize:s,processTerm:c}=o,l=s(t).flatMap(e=>c(e)).filter(e=>!!e).map(nS(o)).map(e=>this.executeQuerySpec(e,o));return this.combineResults(l,o.combineWith)}executeQuerySpec(e,t){let n={...this._options.searchOptions,...t},r=(n.fields||this._options.fields).reduce((e,t)=>({...e,[t]:Qx(n.boost,t)||1}),{}),{boostDocument:i,weights:a,maxFuzzy:o,bm25:s}=n,{fuzzy:c,prefix:l}={...iS.weights,...a},u=this._index.get(e.term),d=this.termResults(e.term,e.term,1,e.termBoost,u,r,i,s),f,p;if(e.prefix&&(f=this._index.atPrefix(e.term)),e.fuzzy){let t=e.fuzzy===!0?.2:e.fuzzy,n=t<1?Math.min(o,Math.round(e.term.length*t)):t;n&&(p=this._index.fuzzyGet(e.term,n))}if(f)for(let[t,n]of f){let a=t.length-e.term.length;if(!a)continue;p?.delete(t);let o=l*t.length/(t.length+.3*a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}if(p)for(let t of p.keys()){let[n,a]=p.get(t);if(!a)continue;let o=c*t.length/(t.length+a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}return d}executeWildcardQuery(e){let t=new Map,n={...this._options.searchOptions,...e};for(let[e,r]of this._documentIds){let i=n.boostDocument?n.boostDocument(r,``,this._storedFields.get(e)):1;t.set(e,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Jx){if(e.length===0)return new Map;let n=$x[t.toLowerCase()];if(!n)throw Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){let e=[];for(let[t,n]of this._index){let r={};for(let[e,t]of n)r[e]=Object.fromEntries(t);e.push([t,r])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,r,i,a,o,s,c=new Map){if(i==null)return c;for(let l of Object.keys(a)){let u=a[l],d=this._fieldIds[l],f=i.get(d);if(f==null)continue;let p=f.size,m=this._avgFieldLength[d];for(let i of f.keys()){if(!this._documentIds.has(i)){this.removeTerm(d,i,t),--p;continue}let a=o?o(this._documentIds.get(i),t,this._storedFields.get(i)):1;if(!a)continue;let h=f.get(i),g=this._fieldLength.get(i)[d],_=tS(h,p,this._documentCount,g,m,s),v=n*r*u*a*_,y=c.get(i);if(y){y.score+=v,lS(y.terms,e);let n=Qx(y.match,t);n?n.push(l):y.match[t]=[l]}else c.set(i,{score:v,terms:[e],match:{[t]:[l]}})}}return c}addTerm(e,t,n){let r=this._index.fetch(n,fS),i=r.get(e);if(i==null)i=new Map,i.set(t,1),r.set(e,i);else{let e=i.get(t);i.set(t,(e||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}let r=this._index.fetch(n,fS),i=r.get(e);i==null||i.get(t)==null?this.warnDocumentChanged(t,e,n):i.get(t)<=1?i.size<=1?r.delete(e):i.delete(t):i.set(t,i.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(let r of Object.keys(this._fieldIds))if(this._fieldIds[r]===t){this._options.logger(`warn`,`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${r}". Removing a document after it has changed can corrupt the index!`,`version_conflict`);return}}addDocumentId(e){let t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,r){let i=this._fieldLength.get(e);i??this._fieldLength.set(e,i=[]),i[t]=r;let a=(this._avgFieldLength[t]||0)*n+r;this._avgFieldLength[t]=a/(n+1)}removeFieldLength(e,t,n,r){if(n===1){this._avgFieldLength[t]=0;return}let i=this._avgFieldLength[t]*n-r;this._avgFieldLength[t]=i/(n-1)}saveStoredFields(e,t){let{storeFields:n,extractField:r}=this._options;if(n==null||n.length===0)return;let i=this._storedFields.get(e);i??this._storedFields.set(e,i={});for(let e of n){let n=r(t,e);n!==void 0&&(i[e]=n)}}};Zx.wildcard=Symbol(`*`);var Qx=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,$x={[Jx]:(e,t)=>{for(let n of t.keys()){let r=e.get(n);if(r==null)e.set(n,t.get(n));else{let{score:e,terms:i,match:a}=t.get(n);r.score+=e,r.match=Object.assign(r.match,a),uS(r.terms,i)}}return e},[Yx]:(e,t)=>{let n=new Map;for(let r of t.keys()){let i=e.get(r);if(i==null)continue;let{score:a,terms:o,match:s}=t.get(r);uS(i.terms,o),n.set(r,{score:i.score+a,terms:i.terms,match:Object.assign(i.match,s)})}return n},[Xx]:(e,t)=>{for(let n of t.keys())e.delete(n);return e}},eS={k:1.2,b:.7,d:.5},tS=(e,t,n,r,i,a)=>{let{k:o,b:s,d:c}=a;return Math.log(1+(n-t+.5)/(t+.5))*(c+e*(o+1)/(e+o*(1-s+s*r/i)))},nS=e=>(t,n,r)=>({term:t,fuzzy:typeof e.fuzzy==`function`?e.fuzzy(t,n,r):e.fuzzy||!1,prefix:typeof e.prefix==`function`?e.prefix(t,n,r):e.prefix===!0,termBoost:typeof e.boostTerm==`function`?e.boostTerm(t,n,r):1}),rS={idField:`id`,extractField:(e,t)=>e[t],stringifyField:(e,t)=>e.toString(),tokenize:e=>e.split(gS),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof(console==null?void 0:console[e])==`function`&&console[e](t)},autoVacuum:!0},iS={combineWith:Jx,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:eS},aS={combineWith:Yx,prefix:(e,t,n)=>t===n.length-1},oS={batchSize:1e3,batchWait:10},sS={minDirtFactor:.1,minDirtCount:20},cS={...oS,...sS},lS=(e,t)=>{e.includes(t)||e.push(t)},uS=(e,t)=>{for(let n of t)e.includes(n)||e.push(n)},dS=({score:e},{score:t})=>t-e,fS=()=>new Map,pS=e=>{let t=new Map;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]);return t},mS=async e=>{let t=new Map,n=0;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]),++n%1e3==0&&await hS(0);return t},hS=e=>new Promise(t=>setTimeout(t,e)),gS=/[\n\r\p{Z}\p{P}]+/u,_S=class{miniSearch;indexedDocs=new Map;constructor(){this.miniSearch=new Zx({fields:[`title`,`category`,`headingsText`,`content`],storeFields:[`title`,`slug`,`category`,`headingsText`,`snippet`],searchOptions:{boost:{title:3,headingsText:2,category:1.5,content:1},fuzzy:.2,prefix:!0}})}addDoc(e){if(this.indexedDocs.has(e.slug))return;this.indexedDocs.set(e.slug,e);let t=(e.headings||[]).map(e=>e.text).join(` `),n=(e.content||``).substring(0,160).replace(/[#*`_>]/g,``).trim();try{this.miniSearch.add({id:e.slug,slug:e.slug,title:e.title,category:e.category||``,headingsText:t,content:e.content||``,snippet:n})}catch{}}addDocs(e){for(let t of e)this.addDoc(t)}search(e,t=10){let n=e.trim();if(!n)return[];try{return this.miniSearch.search(n).slice(0,t).map(e=>({id:e.id,slug:e.slug||e.id,title:e.title||`Untitled`,category:e.category,snippet:e.snippet,score:e.score}))}catch(e){return console.warn(`[DocMeDown] Search error:`,e),[]}}};function vS(e){let t=globalThis.requestIdleCallback;typeof t==`function`?t(e,{timeout:2e3}):window.setTimeout(e,1)}var Q=new class{#e=E(null);get config(){return M(this.#e)}set config(e){D(this.#e,e,!0)}#t=E(``);get currentSlug(){return M(this.#t)}set currentSlug(e){D(this.#t,e,!0)}#n=E(null);get currentDoc(){return M(this.#n)}set currentDoc(e){D(this.#n,e,!0)}#r=E(ci([]));get tree(){return M(this.#r)}set tree(e){D(this.#r,e,!0)}#i=E(!0);get isLoading(){return M(this.#i)}set isLoading(e){D(this.#i,e,!0)}#a=E(!1);get isNavigating(){return M(this.#a)}set isNavigating(e){D(this.#a,e,!0)}#o=E(null);get error(){return M(this.#o)}set error(e){D(this.#o,e,!0)}#s=E(!1);get isSearchOpen(){return M(this.#s)}set isSearchOpen(e){D(this.#s,e,!0)}#c=E(!1);get isMobileSidebarOpen(){return M(this.#c)}set isMobileSidebarOpen(e){D(this.#c,e,!0)}#l=E(!1);get isEditorOpen(){return M(this.#l)}set isEditorOpen(e){D(this.#l,e,!0)}#u=E(`production`);get serverMode(){return M(this.#u)}set serverMode(e){D(this.#u,e,!0)}#d=E(!1);get hasPreviewChanges(){return M(this.#d)}set hasPreviewChanges(e){D(this.#d,e,!0)}#f=E(!1);get isScrolled(){return M(this.#f)}set isScrolled(e){D(this.#f,e,!0)}#p=E(null);get activeTagModal(){return M(this.#p)}set activeTagModal(e){D(this.#p,e,!0)}#m=E(ci([]));get allDocs(){return M(this.#m)}set allDocs(e){D(this.#m,e,!0)}openTagModal(e){this.activeTagModal=e.replace(/^#/,``).trim()}closeTagModal(){this.activeTagModal=null}getDocsWithTag(e){let t=e.replace(/^#/,``).toLowerCase().trim();return t?this.allDocs.filter(e=>e.frontmatter?.tags?.some(e=>e.toLowerCase().trim()===t)):[]}getAllTags(){let e=new Map;for(let t of this.allDocs)if(Array.isArray(t.frontmatter?.tags))for(let n of t.frontmatter.tags){let t=n.toLowerCase().trim();t&&e.set(t,(e.get(t)||0)+1)}return Array.from(e.entries()).map(([e,t])=>({tag:e,count:t})).sort((e,t)=>t.count-e.count)}getPossiblePaths(e,t){let n=[],r=new Set,i=(e,t,i,a)=>{r.has(e)||(r.add(e),n.push({slug:e,title:t,category:i,readingTimeMinutes:a}))};if(e===0){for(let e of this.allDocs)i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)i(e.slug,e.title);return n}let a=this.currentSlug.split(`/`).filter(Boolean),o=a.slice(0,e).join(`/`);if(o){for(let e of this.allDocs)(e.slug.startsWith(`${o}/`)||e.slug===o)&&i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)(e.slug.startsWith(`${o}/`)||e.slug===o)&&i(e.slug,e.title)}if(n.length<=1){let t=a.slice(0,Math.max(0,e-1)).join(`/`);if(t){for(let e of this.allDocs)(e.slug.startsWith(`${t}/`)||e.slug===t)&&i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)(e.slug.startsWith(`${t}/`)||e.slug===t)&&i(e.slug,e.title)}else{for(let e of this.allDocs)e.slug.includes(`/`)||i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)e.slug.includes(`/`)||i(e.slug,e.title);if(n.length<=1){for(let e of this.allDocs)i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)i(e.slug,e.title)}}}return n}#h=E(null);get originalHome(){return M(this.#h)}set originalHome(e){D(this.#h,e,!0)}#g=E(ci([]));get docPaths(){return M(this.#g)}set docPaths(e){D(this.#g,e,!0)}basePath=``;router=null;searchIndex=new _S;localLoader=new Au;remoteGithub=null;remoteGitlab=null;unsubscribeRouter=null;homeCancelled=!1;epoch=0;parseCacheLimit=50;parseCache=new Map;remoteCache=new Map;#_=vr(()=>{let e=[],t=n=>{for(let r of n)!r.isCategory&&r.slug&&e.push({slug:r.slug,title:r.title}),r.children&&t(r.children)};return t(this.tree),e});get flatDocs(){return M(this.#_)}set flatDocs(e){D(this.#_,e)}#v=vr(()=>{let e=this.flatDocs.findIndex(e=>e.slug===this.currentSlug);return e<=0?null:this.flatDocs[e-1]});get prevDoc(){return M(this.#v)}set prevDoc(e){D(this.#v,e)}#y=vr(()=>{let e=this.flatDocs.findIndex(e=>e.slug===this.currentSlug);return e===-1||e>=this.flatDocs.length-1?null:this.flatDocs[e+1]});get nextDoc(){return M(this.#y)}set nextDoc(e){D(this.#y,e)}#b=vr(()=>this.originalHome??(this.config?wu(this.docPaths,this.config):null));get home(){return M(this.#b)}set home(e){D(this.#b,e)}navigate(e,t=``){this.router?.navigate(e,t)}destroy(){this.unsubscribeRouter?.(),this.unsubscribeRouter=null,this.router?.destroy(),this.router=null,this.homeCancelled=!0}async init(e,t=``){let n=++this.epoch;this.destroy(),this.config=e,this.basePath=t,this.currentDoc=null,this.tree=[],this.isLoading=!0,this.isNavigating=!1,this.error=null,this.isSearchOpen=!1,this.isMobileSidebarOpen=!1,this.originalHome=null,this.docPaths=[],this.homeCancelled=!1,this.parseCache.clear(),this.parseCacheLimit=50,this.remoteCache.clear(),this.remoteGithub=e.source?.type===`github`?new ju(e.source):null,this.remoteGitlab=e.source?.type===`gitlab`?new Mu(e.source):null,this.router=Ex(e.rootDoc||`README.md`);let r=this.router.getCurrentRoute();this.currentSlug=r.slug,this.unsubscribeRouter=this.router.subscribe(e=>{if(n!==this.epoch)return;let t=e.slug!==this.currentSlug;this.currentSlug=e.slug,this.isMobileSidebarOpen=!1,t||!this.currentDoc?this.renderDocNow(e.slug,n)||this.loadDoc(e.slug,n):e.anchor&&setTimeout(()=>this.router?.scrollToAnchor(e.anchor),100)}),this.renderDocNow(r.slug,n)||await this.loadDoc(r.slug,n),typeof window<`u`&&(window.__DOCMEDOWN_STORE__=this),this.initTree(n),this.initHome(n),this.warmParseCache(n)}async initTree(e){let t=this.config?.sidebar;try{let n=await this.localLoader.fetchManifest(this.basePath);if(e!==this.epoch)return;if(n&&!this.remoteGithub&&!this.remoteGitlab){n.config&&(this.config={...this.config,...n.config}),n.tree&&(this.tree=n.tree),n.docs&&(this.allDocs=n.docs,this.searchIndex.addDocs(n.docs),this.docPaths=n.docs.map(e=>({slug:e.slug,path:e.path})));return}if(this.remoteGithub){let n=await this.remoteGithub.discoverFiles();if(e!==this.epoch)return;this.tree=Du(n,{},t),this.docPaths=n.map(e=>({path:e}));return}if(this.remoteGitlab){let n=await this.remoteGitlab.discoverFiles();if(e!==this.epoch)return;this.tree=Du(n,{},t),this.docPaths=n.map(e=>({path:e}));return}this.tree=Du([`README.md`],{},t),this.docPaths=[{path:`README.md`}]}catch{if(e!==this.epoch)return;this.tree=Du([`README.md`],{},t),this.docPaths=[{path:`README.md`}]}}parseMarkdownCached(e,t){let n=this.parseCache.get(t);if(n&&n.source===e)return this.parseCache.delete(t),this.parseCache.set(t,n),n.parsed;let r=lb(e,t);if(this.parseCache.set(t,{source:e,parsed:r}),this.parseCache.size>this.parseCacheLimit){let e=this.parseCache.keys().next().value;e!==void 0&&this.parseCache.delete(e)}return r}renderDoc(e,t){let n=this.parseMarkdownCached(e,t),r=n.frontmatter.title||n.headings[0]?.text||t;this.currentDoc={...n,slug:t,title:r,rawContent:e},this.error=null,this.isLoading=!1,this.isNavigating=!1,this.searchIndex.addDoc({slug:t,path:`${t}.md`,title:r,frontmatter:n.frontmatter,headings:n.headings,content:e}),this.allDocs.some(e=>e.slug===t)||this.allDocs.push({slug:t,path:`${t}.md`,title:r,frontmatter:n.frontmatter,headings:n.headings,readingTimeMinutes:n.readingTimeMinutes}),this.resetScroll()}toggleEditor(e){this.isEditorOpen=e===void 0?!this.isEditorOpen:e}updateDocContent(e,t=this.currentSlug,n=!1){if(this.localLoader.setDocContent(t,e),this.parseCache.delete(t),this.currentSlug===t){let r=lb(e,t),i=r.frontmatter.title||r.headings[0]?.text||t;this.currentDoc={...r,slug:t,title:i,rawContent:e},this.searchIndex.addDoc({slug:t,path:`${t}.md`,title:i,frontmatter:r.frontmatter,headings:r.headings,content:e}),n&&this.resetScroll()}}applyHmrUpdate(e,t){this.updateDocContent(t,e,!1),typeof console<`u`&&console.log(`[DocMeDown HMR] In-place update applied for ${e}`)}updateConfig(e){this.config&&={...this.config,...e}}resetScroll(){let e=this.router?.getCurrentRoute();e?.anchor?setTimeout(()=>this.router?.scrollToAnchor(e.anchor),100):typeof window<`u`&&window.scrollTo({top:0,behavior:`instant`})}renderDocNow(e,t){if(t!==this.epoch)return!0;let n=this.remoteCache.get(e);if(n!==void 0)return this.renderDoc(n,e),!0;if(this.remoteGithub||this.remoteGitlab)return!1;let r=this.localLoader.peekDocContent(e);return r!==void 0&&(this.renderDoc(r,e),!0)}async loadDoc(e,t){this.currentDoc?this.isNavigating=!0:this.isLoading=!0,this.error=null;try{let n=null;if(n=this.remoteGithub?await this.remoteGithub.fetchDocContent(e):this.remoteGitlab?await this.remoteGitlab.fetchDocContent(e):await this.localLoader.fetchDocContent(e,this.basePath),t!==this.epoch)return;if(n!==null)this.remoteCache.set(e,n),this.renderDoc(n,e);else{let t=this.remoteGithub?`GitHub`:this.remoteGitlab?`GitLab`:`this documentation site`;this.error=`Could not load “${e}” from ${t}.`,this.isLoading=!1,this.isNavigating=!1}}catch{if(t!==this.epoch)return;this.error=`The document source did not respond. Check the connection or try again.`,this.isLoading=!1,this.isNavigating=!1}}warmParseCache(e){if(this.remoteGithub||this.remoteGitlab||typeof window>`u`)return;let t=this.localLoader.embeddedDocSources();if(!t)return;let n=Object.entries(t);if(n.length<2)return;this.parseCacheLimit=Math.min(Math.max(n.length,50),200);let r=0,i=()=>{if(e!==this.epoch)return;let t=performance.now()+6;for(;r<n.length&&performance.now()<t;){let[e,t]=n[r++];this.parseMarkdownCached(t,e)}r<n.length&&vS(i)};vS(i)}initHome(e){this.config?.home||this.remoteGithub||this.remoteGitlab||typeof window>`u`||(window.location.protocol===`http:`||window.location.protocol===`https:`)&&Tu(e=>fetch(e)).then(t=>{e===this.epoch&&!this.homeCancelled&&t&&(this.originalHome=t)}).catch(()=>void 0)}},yS=P(`<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg> <span>Docs</span>`,1),bS=P(`<span> </span>`),xS=P(`<span class="dmd-crumb-arrow" aria-hidden="true">▾</span>`),SS=P(`<span class="dmd-crumb-item-badge">Active</span>`),CS=P(`<span class="dmd-crumb-item-meta"> </span>`),wS=P(`<button type="button" role="menuitem"><span class="dmd-crumb-item-dot" aria-hidden="true"><!></span> <div class="dmd-crumb-item-info"><span class="dmd-crumb-item-title"> </span> <span class="dmd-crumb-item-slug"> </span></div> <!></button>`),TS=P(`<div class="dmd-crumb-popover" role="menu"><div class="dmd-crumb-popover-header"><span class="dmd-crumb-popover-scope"><!></span> <span class="dmd-crumb-popover-count"> </span></div> <div class="dmd-crumb-popover-list"></div></div>`),ES=P(`<div class="dmd-crumb-wrapper" role="none"><button type="button"><!> <!></button> <!></div>`);function DS(e,t){yn(t,!0);let n=z(t,`isHome`,3,!1),r=z(t,`isLast`,3,!1),i=z(t,`isScrolled`,3,!1),a=E(!1),o,s,c=E(null),l=vr(()=>Q.getPossiblePaths(t.index,t.label));function u(){clearTimeout(o),M(l).length>0&&(s=setTimeout(()=>{D(a,!0)},140))}function d(){clearTimeout(s),o=setTimeout(()=>{D(a,!1)},200)}function f(e){let i=e.target;if(i.classList.contains(`dmd-crumb-arrow`)||i.closest(`.dmd-crumb-arrow`)){e.stopPropagation(),e.preventDefault(),M(l).length>0&&D(a,!M(a));return}if(n())Q.home?.kind===`href`&&Q.home.href?window.location.href=Q.home.href:Q.home?.kind===`route`&&Q.home.slug?Q.navigate(Q.home.slug):Q.navigate(`README`),D(a,!1);else if(r())M(l).length>0&&D(a,!M(a));else{let e=Q.currentSlug.split(`/`).filter(Boolean).slice(0,t.index).join(`/`);e&&Q.navigate(e),D(a,!1)}}function p(e){e.key===`Escape`?D(a,!1):e.key===`ArrowDown`&&!M(a)&&M(l).length>0&&(e.preventDefault(),D(a,!0))}Li(()=>{if(!M(a))return;let e=e=>{M(c)&&!M(c).contains(e.target)&&D(a,!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)});var m=ES(),h=O(m);let g;var _=O(h),v=e=>{var t=yS();pt(2),F(e,t)},y=e=>{var n=bS(),r=k(n,!0);j(e=>I(r,e),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)};L(_,e=>{n()?e(v):e(y,-1)});var b=A(_,2),x=e=>{F(e,xS())};L(b,e=>{M(l).length>1&&e(x)}),w(h);var S=A(h,2),ee=e=>{var i=TS(),o=O(i),s=O(o),c=O(s),u=e=>{F(e,Bo(`Docs Overview`))},d=e=>{var n=Bo();j(e=>I(n,`Related in ${e??``}`),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)},f=e=>{var n=Bo();j(e=>I(n,`Section: ${e??``}`),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)};L(c,e=>{n()?e(u):r()?e(d,1):e(f,-1)}),w(s);var p=k(A(s,2));w(o);var m=A(o,2);Ss(m,21,()=>M(l),e=>e.slug,(e,t)=>{var n=wS();let r;var i=O(n),o=O(i),s=e=>{F(e,Bo(`●`))},c=e=>{F(e,Bo(`○`))};L(o,e=>{M(t).slug===Q.currentSlug?e(s):e(c,-1)}),w(i);var l=A(i,2),u=O(l),d=k(u,!0),f=k(A(u,2),!0);w(l);var p=A(l,2),m=e=>{F(e,SS())},h=e=>{var n=CS(),r=k(n);j(()=>I(r,`${M(t).readingTimeMinutes??``}m`)),F(e,n)};L(p,e=>{M(t).slug===Q.currentSlug?e(m):M(t).readingTimeMinutes&&e(h,1)}),w(n),j(()=>{r=gc(n,1,`dmd-crumb-popover-item`,null,r,{selected:M(t).slug===Q.currentSlug}),I(d,M(t).title),I(f,M(t).slug)}),N(`click`,n,()=>{D(a,!1),Q.navigate(M(t).slug)}),F(e,n)}),w(m),w(i),j(()=>{R(i,`aria-label`,`Sections under ${t.label??``}`),I(p,`${M(l).length??``} ${M(l).length===1?`page`:`pages`}`)}),F(e,i)};L(S,e=>{M(a)&&M(l).length>0&&e(ee)}),w(m),Ol(m,e=>D(c,e),()=>M(c)),j(()=>{g=gc(h,1,`dmd-nav-crumb dmd-crumb`,null,g,{current:r(),"has-paths":M(l).length>0,open:M(a)}),R(h,`aria-expanded`,M(a)),R(h,`aria-haspopup`,M(l).length>0?`menu`:void 0),R(h,`tabindex`,i()?0:-1),R(h,`title`,n()?`Documentation home`:t.label)}),xo(`mouseenter`,m,u),xo(`mouseleave`,m,d),N(`keydown`,m,p),N(`click`,h,f),F(e,m),bn()}So([`keydown`,`click`]);var OS=[`default`,`markdown`,`terminal`,`book`,`minimal`],kS={default:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#4f46e5"/><stop offset="100%" stop-color="#7c3aed"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-bg)"/><path d="M9 5h8.5l6.5 6.5V25a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z" fill="#ffffff" fill-opacity="0.16" stroke="#ffffff" stroke-width="1.8" stroke-linejoin="round"/><path d="M17.5 5v5a1.5 1.5 0 0 0 1.5 1.5h5" stroke="#ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" fill="none"/><path d="M16 12.5v9.5m-3.5-3.5 3.5 3.5 3.5-3.5" stroke="#ffffff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,markdown:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-md" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#1e293b"/><stop offset="100%" stop-color="#0f172a"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-md)" stroke="#38bdf8" stroke-width="1.2" stroke-opacity="0.35"/><path d="M6.5 21V11h3l3 4.5 3-4.5h3v10" fill="none" stroke="#f8fafc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22.5 11v10m-3-3 3 3 3-3" fill="none" stroke="#38bdf8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,terminal:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-term" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#0f172a"/><stop offset="100%" stop-color="#020617"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-term)" stroke="#10b981" stroke-width="1.2" stroke-opacity="0.4"/><circle cx="8" cy="8" r="1.5" fill="#ef4444" opacity="0.85"/><circle cx="12.5" cy="8" r="1.5" fill="#f59e0b" opacity="0.85"/><circle cx="17" cy="8" r="1.5" fill="#10b981" opacity="0.85"/><path d="M8.5 15.5l5 4-5 4" fill="none" stroke="#10b981" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/><line x1="16.5" y1="23.5" x2="23.5" y2="23.5" stroke="#38bdf8" stroke-width="2.2" stroke-linecap="round"/></svg>`,book:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-book" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#2563eb"/><stop offset="100%" stop-color="#1d4ed8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-book)"/><path d="M16 11.5c-2.8-1.8-6.5-1.8-9.5 0v11c3-1.4 6.7-1.4 9.5 0m0-11c2.8-1.8 6.5-1.8 9.5 0v11c-3-1.4-6.7-1.4-9.5 0M16 11.5v11" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 7.5v2.5" stroke="#93c5fd" stroke-width="2" stroke-linecap="round"/></svg>`,minimal:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-min-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#18181b"/><stop offset="100%" stop-color="#09090b"/></linearGradient><linearGradient id="dmd-fav-min-accent" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#38bdf8"/><stop offset="100%" stop-color="#818cf8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-min-bg)" stroke="#27272a" stroke-width="1.2"/><polygon points="16,6 25,11.2 25,20.8 16,26 7,20.8 7,11.2" fill="none" stroke="url(#dmd-fav-min-accent)" stroke-width="2" stroke-linejoin="round"/><circle cx="16" cy="16" r="3.5" fill="url(#dmd-fav-min-accent)"/></svg>`};function AS(e){let t=e.replace(/\s+/g,` `).trim();return typeof Buffer<`u`?`data:image/svg+xml;base64,${Buffer.from(t,`utf-8`).toString(`base64`)}`:typeof btoa<`u`?`data:image/svg+xml;base64,${btoa(t)}`:`data:image/svg+xml;utf8,${encodeURIComponent(t)}`}var jS={default:AS(kS.default),markdown:AS(kS.markdown),terminal:AS(kS.terminal),book:AS(kS.book),minimal:AS(kS.minimal)},MS=jS.default;function NS(e){return typeof e==`string`&&OS.includes(e)}function PS(e){if(!e||e===`data:,`)return MS;let t=e.trim();return NS(t)?jS[t]:t}var FS=`dmd-splash`,IS=`dmd-splash-hidden`,LS=`dmd-splash-active`,RS=`__DOCMEDOWN_SPLASH_START__`;function zS(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}var BS=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;function VS(e){let t=e?.trim();return t&&BS.test(t)?t:void 0}function HS(e){let t=e?.trim();if(!t||t.length>512||/[<>"'`]/.test(t))return;let n=t.toLowerCase();if(!(n.startsWith(`javascript:`)||n.startsWith(`data:text/html`)||n.startsWith(`vbscript:`))&&(/^(https?:\/\/|data:image\/|\.\.?\/|#|\/[^/]|[^:/?#]+\/)/i.test(t)||/^[^:/?#\s]+\.[a-z0-9]+/i.test(t)||/^[\w\-.]+$/i.test(t)))return t}function US(e,t){let n=VS(e),r=VS(t),i=[];return n&&i.push(`:root{--dmd-splash-accent:${n}}`),(n||r)&&i.push(`:root[data-theme=dark]{--dmd-splash-accent:${r??n}}`),i.length>0?`<style>${i.join(``)}</style>`:``}var WS=`<style>
|
|
376
|
+
`},l.code=({text:e,lang:t})=>up(e,t||``),l.table=e=>If({header:e.header.map((t,n)=>({html:Xd.parseInline(t.text||``),align:t.align||e.align?.[n]||null})),rows:e.rows.map(t=>t.map((t,n)=>({html:Xd.parseInline(t.text||``),align:t.align||e.align?.[n]||null})))}),l.link=({href:e,title:n,text:r})=>{let i=e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`mailto:`),a=e;if(!i){if(/\.html(?:#.*)?$/i.test(e))return`<a href="${e}"${n?` title="${n}"`:``} class="dmd-link">${r}</a>`;if(e.startsWith(`#`))a=`#/${t}${e}`;else{let n=e.replace(/\.(md|mdx)$/i,``);if(n.startsWith(`./`)){let e=t.includes(`/`)?t.substring(0,t.lastIndexOf(`/`)):``;n=e?`${e}/${n.replace(/^\.\//,``)}`:n.replace(/^\.\//,``)}else if(!n.startsWith(`/`)){let e=t.includes(`/`)?t.substring(0,t.lastIndexOf(`/`)):``;n=e?`${e}/${n}`:n}a=`#/${n.replace(/^\//,``)}`}}let o=n?` title="${n}"`:``;return`<a href="${a}"${o}${i?` target="_blank" rel="noopener noreferrer"`:``} class="dmd-link">${r}${i?`<svg class="dmd-ext-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>`:``}</a>`},{frontmatter:n,html:Fp(Ap(Dp(Xd.parse(a,{renderer:l,gfm:!0,breaks:!1}),o.fences))),headings:s,readingTimeMinutes:i}}var db={};function fb(e){let t;return()=>(t===void 0&&(t=e()),t)}var pb=e=>e,mb=e=>e*1e3,hb=e=>e/1e3,gb=e=>Array.isArray(e)&&typeof e[0]==`number`,_b=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function vb(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var yb=40;function bb(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=_b.reduce((e,t)=>(e[t]=vb(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=db.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,yb),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:_b.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<_b.length;t++)o[_b[t]].cancel(e)},state:i,steps:o}}var{schedule:xb,cancel:Sb,state:Cb,steps:wb}=bb(typeof requestAnimationFrame<`u`?requestAnimationFrame:pb,!0),Tb;function Eb(){Tb=void 0}var Db={now:()=>(Tb===void 0&&Db.set(Cb.isProcessing||db.useManualTiming?Cb.timestamp:performance.now()),Tb),set:e=>{Tb=e,queueMicrotask(Eb)}},Ob=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},kb=e=>e!==null;function Ab(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(kb),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}function jb(e,t){return{kind:e,animation:t,timestamp:Db.now(),frameTimestamp:Cb.timestamp,frameIsProcessing:Cb.isProcessing}}function Mb(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...jb(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}var Nb=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}};function Pb(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Fb=e=>e.startsWith(`--`);function Ib(e,t,n){Fb(t)?e.style.setProperty(t,n):e.style[t]=n}var Lb={};function Rb(e,t){let n=fb(e);return()=>Lb[t]??n()}var zb=Rb(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Bb=Rb(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Vb=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hb={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Vb([0,.65,.55,1]),circOut:Vb([.55,0,1,.45]),backIn:Vb([.31,.01,.66,-.59]),backOut:Vb([.33,1.53,.69,.99])};function Ub(e,t){if(e)return typeof e==`function`?Bb()?Ob(e,t):`ease-out`:gb(e)?Vb(e):Array.isArray(e)?e.map(e=>Ub(e,t)||Hb.easeOut):Hb[e]}function Wb(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Ub(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Gb(e){return typeof e==`function`&&`applyToOptions`in e}function Kb({type:e,...t}){return Gb(e)&&Bb()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var qb=class extends Nb{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Kb(e);this.animation=Wb(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Ab(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Ib(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Mb(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return hb(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+hb(e)}get time(){return hb(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=mb(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&zb()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),pb):r(this)}},Jb=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Yb(this.animations,`duration`)}get iterationDuration(){return Yb(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Yb(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Xb=class extends Jb{then(e,t){return this.finished.finally(e).then(()=>{})}},Zb=new WeakMap,Qb=(e,t=``)=>`${e}:${t}`;function $b(e){let t=Zb.get(e);return t||(t=new Map,Zb.set(e,t)),t}function ex(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function tx(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ex(n,e)}var nx=new Set(`borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY`.split(`.`));function rx(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&nx.has(t)&&(e[n]=e[n]+`px`)}function ix(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function ax(e,t){let n=window.getComputedStyle(e);return Fb(t)?n.getPropertyValue(t):n[t]}function ox(e,t,n,r){if(e==null)return[];let i=ix(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...tx(s,e)};i.duration&&=mb(i.duration),i.delay&&=mb(i.delay);let a=$b(r),c=Qb(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=ax(r,i)),Pb(t),rx(t,i),!a&&t.length<2&&t.unshift(ax(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new qb(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var sx=(e=>{function t(t,n,r){return new Xb(ox(t,n,r,e))}return t})(),cx=l({animate:()=>fx,animateRaw:()=>sx,collapse:()=>_x,expand:()=>gx,fade:()=>yx,getMotionOptions:()=>dx,isDOMElement:()=>lx,motion:()=>vx,prefersReducedMotion:()=>ux,scale:()=>xx,slide:()=>bx,smoothScroll:()=>mx,stagger:()=>Cx,useMotion:()=>Sx});function lx(e){return typeof window>`u`||!e?!1:window.Element!==void 0&&e instanceof window.Element}function ux(){if(typeof window>`u`)return!1;let e=document.documentElement?.getAttribute(`data-dmd-motion`);if(e===`reduced`||e===`off`)return!0;if(e===`full`||e===`on`)return!1;try{let e=window.localStorage.getItem(`dmd-motion`);if(e===`reduced`||e===`off`)return!0;if(e===`full`||e===`on`)return!1}catch{}return window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1}function dx(e){return ux()?{...e,duration:0,delay:0}:e}function fx(e,t,n={}){if(!lx(e)){if(e&&typeof e==`object`&&`style`in e&&e.style)for(let[n,r]of Object.entries(t)){let t=Array.isArray(r)?r[r.length-1]:r;try{e.style[n]=String(t)}catch{}}let n=Promise.resolve();return n.stop=()=>{},n}return ux()&&(n={...n,duration:0,delay:0}),sx(e,t,n)}var px=new WeakMap;function mx(e,t,n={}){px.get(e)?.stop();let r=n.direction!==`y`,i=r?e.scrollLeft:e.scrollTop,a=t-i;if(Math.abs(a)<1||(n.duration??400)<=0||ux()||typeof requestAnimationFrame>`u`)return r?e.scrollLeft=t:e.scrollTop=t,n.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let o=n.duration??400,s=n.easing??(e=>1-(1-e)**3),c=null,l=0,u=!1,d,f=new Promise(e=>{d=e}),p=e.style.scrollSnapType;e.style.scrollSnapType=`none`;let m=()=>{e.style.scrollSnapType=p,e.removeEventListener(`wheel`,h),e.removeEventListener(`touchstart`,h),e.removeEventListener(`pointerdown`,h),e.removeEventListener(`keydown`,h)},h=()=>{u||(u=!0,l&&cancelAnimationFrame(l),m(),px.delete(e),d())},g=f=>{if(u)return;c===null&&(c=f);let p=f-c,h=Math.min(1,p/o),_=s(h),v=i+a*_;r?e.scrollLeft=v:e.scrollTop=v,h<1?l=requestAnimationFrame(g):(u=!0,r?e.scrollLeft=t:e.scrollTop=t,m(),px.delete(e),n.onComplete?.(),d())};return px.set(e,{stop:h}),e.addEventListener(`wheel`,h,{passive:!0}),e.addEventListener(`touchstart`,h,{passive:!0}),e.addEventListener(`pointerdown`,h,{passive:!0}),e.addEventListener(`keydown`,h),l=requestAnimationFrame(g),{stop:h,finished:f}}var hx=new WeakMap;function gx(e,t={}){if(hx.get(e)?.stop(),!lx(e)||ux())return e?.style&&(e.style.height=`auto`,e.style.opacity=`1`,e.style.overflow=`visible`),t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let n=e.offsetHeight;e.style.display=`block`,e.style.height=`auto`;let r=e.scrollHeight,i=n>0&&n<r?n:0;e.style.height=`${i}px`,e.style.opacity=n>0?String(Math.min(1,n/r)):`0`,e.style.overflow=`hidden`;let a=(t.duration??240)/1e3,o=sx(e,{height:[`${i}px`,`${r}px`],opacity:[Number(e.style.opacity)||0,1]},{duration:a,ease:[.16,1,.3,1]}),s=!1,c=()=>{s||(s=!0,o.stop(),hx.delete(e))};return hx.set(e,{stop:c}),{stop:c,finished:o.then(()=>{s||(e.style.height=`auto`,e.style.opacity=`1`,e.style.overflow=`visible`,t.onComplete?.(),hx.delete(e))})}}function _x(e,t={}){if(hx.get(e)?.stop(),!lx(e)||ux())return e?.style&&(e.style.height=`0px`,e.style.opacity=`0`,e.style.overflow=`hidden`),t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let n=e.offsetHeight;if(e.style.overflow=`hidden`,n<=0)return e.style.height=`0px`,e.style.opacity=`0`,t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let r=(t.duration??200)/1e3,i=sx(e,{height:[`${n}px`,`0px`],opacity:[1,0]},{duration:r,ease:[.16,1,.3,1]}),a=!1,o=()=>{a||(a=!0,i.stop(),hx.delete(e))};return hx.set(e,{stop:o}),{stop:o,finished:i.then(()=>{a||(e.style.height=`0px`,e.style.opacity=`0`,t.onComplete?.(),hx.delete(e))})}}function vx(e,t={}){let n=null,r=null,i=!1;function a(){n?.stop(),n=null}function o(){if(a(),!lx(e)||ux()){t.animate&&e?.style&&Object.assign(e.style,t.animate);return}if(t.initial&&e?.style&&Object.assign(e.style,t.initial),t.animate){let r=t.transition?.duration??.35,i=t.transition?.delay??0,a=t.transition?.ease??[.25,1,.5,1];n=sx(e,t.animate,{duration:r,delay:i,ease:a})}}function s(){r?.disconnect(),r=null,a(),t.inView&&lx(e)&&!ux()&&typeof IntersectionObserver<`u`?(t.initial&&Object.assign(e.style,t.initial),r=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(r?.disconnect(),r=null,o())},{threshold:.1}),r.observe(e)):o()}return s(),{update(e){i||e===t||(t=e,s())},destroy(){i=!0,r?.disconnect(),r=null,a()}}}function yx(e,t={}){let n=e=>({initial:{opacity:`0`},animate:{opacity:`1`},transition:{duration:e.duration??.3,delay:e.delay??0},inView:e.inView}),r=vx(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function bx(e,t={}){let n=e=>{let t=e.direction??`up`,n=e.distance??16;return{initial:{opacity:`0`,transform:`translate3d(${t===`left`?`${n}px`:t===`right`?`-${n}px`:`0px`}, ${t===`up`?`${n}px`:t===`down`?`-${n}px`:`0px`}, 0)`},animate:{opacity:`1`,transform:`translate3d(0, 0, 0)`},transition:{duration:e.duration??.35,delay:e.delay??0},inView:e.inView}},r=vx(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function xx(e,t={}){let n=e=>({initial:{opacity:`0`,transform:`scale(${e.from??.94})`},animate:{opacity:`1`,transform:`scale(1)`},transition:{duration:e.duration??.3,delay:e.delay??0},inView:e.inView}),r=vx(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function Sx(e={}){let t=null;return n=>{if(t&&=(t(),null),n){let r=vx(n,e);t=()=>r.destroy()}}}function Cx(e,t,n={}){let r=Array.from(e),i=n.staggerDelay??.05,a=n.delay??0;return r.map((e,r)=>fx(e,t,{duration:n.duration,ease:n.ease,delay:a+r*i}))}function wx(){if(typeof window>`u`)return null;let e=window;return typeof e.__DOCMEDOWN_STATIC_SLUG__==`string`?{base:typeof e.__DOCMEDOWN_STATIC_BASE__==`string`?e.__DOCMEDOWN_STATIC_BASE__:``,slug:e.__DOCMEDOWN_STATIC_SLUG__}:null}function Tx(e){let t=ux();e.scrollIntoView({behavior:t?`auto`:`smooth`,block:`start`}),e.classList.remove(`dmd-heading-targeted`),e.offsetWidth,e.classList.add(`dmd-heading-targeted`),setTimeout(()=>{e.classList.remove(`dmd-heading-targeted`)},1600)}function Ex(){return wx()!==null}function Dx(e=`README.md`){return wx()?new Mx(e):new jx(e)}function Ox(e,t){let n=e.replace(/\/+$/,``);return n?`${n}/${t}`:t}function kx(e){try{return decodeURIComponent(e).replace(/index\.html?$/i,``)}catch{return e.replace(/index\.html?$/i,``)}}function Ax(e,t){let n=kx(e),r=t===`README`?`/`:`/${t}/`;return n.endsWith(r)?n.slice(0,n.length-r.length).replace(/\/+$/,``):n.replace(/[^/]*$/,`/`).replace(/\/+$/,``)}var jx=class{listeners=new Set;defaultDoc;constructor(e=`README.md`){this.defaultDoc=e,typeof window<`u`&&window.addEventListener(`hashchange`,this.handleHashChange)}destroy(){typeof window<`u`&&window.removeEventListener(`hashchange`,this.handleHashChange),this.listeners.clear()}setDefaultDoc(e){this.defaultDoc=e}getCurrentRoute(){return typeof window>`u`?this.parseHash(``):this.parseHash(window.location.hash)}parseHash(e){let t=e.replace(/^#\/?/,``).trim(),n=``,r=t.indexOf(`#`);r!==-1&&(n=t.substring(r+1),t=t.substring(0,r)),t=t.replace(/^\/+|\/+$/g,``);let i=t;return i=!i||i===`/`||i===`index`||i===`README`?this.normalizeDocSlug(this.defaultDoc):this.normalizeDocSlug(i),{slug:i,anchor:n,fullPath:`#/${i}${n?`#${n}`:``}`}}normalizeDocSlug(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);return!t||t===`index`||t===`README`?`README`:t}navigate(e,t=``){if(typeof window>`u`)return;let n=`#/${this.normalizeDocSlug(e)}${t?`#${t}`:``}`;if(window.location.hash===n){t&&this.scrollToAnchor(t);return}window.location.hash=n}scrollToAnchor(e){if(typeof document>`u`)return;let t=decodeURIComponent(e).toLowerCase().replace(/^[#]/,``),n=document.getElementById(t);n&&Tx(n)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}emitRoute(e){this.listeners.forEach(t=>t(e))}handleHashChange=()=>{let e=this.getCurrentRoute();this.emitRoute(e),e.anchor&&setTimeout(()=>{this.scrollToAnchor(e.anchor)},100)};resolveLink(e,t){if(!e)return`#/`;if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`mailto:`))return e;if(e.startsWith(`#`))return`#/${t}${e}`;let n=``,r=e.indexOf(`#`);r!==-1&&(n=e.substring(r),e=e.substring(0,r));let i=[];if(e.startsWith(`/`))i=e.replace(/^\//,``).split(`/`);else{let n=t.includes(`/`)?t.split(`/`).slice(0,-1):[],r=e.split(`/`);for(let e of[...n,...r])!e||e===`.`||(e===`..`?i.pop():i.push(e))}let a=i.join(`/`);return`#/${this.normalizeDocSlug(a)}${n}`}},Mx=class extends jx{urlBase;constructor(e=`README.md`){super(e);let t=wx();this.urlBase=typeof window>`u`?``:Ax(window.location.pathname,t?.slug??this.normalizeDocSlug(e)),typeof window<`u`&&window.addEventListener(`popstate`,this.handlePopState)}destroy(){typeof window<`u`&&window.removeEventListener(`popstate`,this.handlePopState),super.destroy()}getCurrentRoute(){return typeof window>`u`?this.parseStaticPath(`/`,``):this.parseStaticPath(window.location.pathname,window.location.hash)}parseStaticPath(e,t){let n=kx(e);if(this.urlBase){let e=`${this.urlBase}/`;n===this.urlBase?n=`/`:n.startsWith(e)&&(n=n.slice(e.length-1))}let r=n.replace(/^\/+|\/+$/g,``),i=r?this.normalizeDocSlug(r):this.normalizeDocSlug(this.defaultDoc),a=this.parseStaticAnchor(t);return{slug:i,anchor:a,fullPath:`${this.urlForSlug(i)}${a?`#${a}`:``}`}}urlForSlug(e,t=``){let n=this.normalizeDocSlug(e),r=n===`README`?`/`:`/${n}/`,i=`${this.urlBase}${r}`;return t?`${i}#${t}`:i}navigate(e,t=``){if(typeof window>`u`)return;let n=this.normalizeDocSlug(e),r=this.urlForSlug(n),i=t?`${r}#${t}`:r;if(kx(window.location.pathname)===r&&window.location.hash===(t?`#${t}`:``)){t&&this.scrollToAnchor(t);return}try{window.history.pushState({},``,i)}catch{}this.emitRoute(this.getCurrentRoute()),t&&setTimeout(()=>this.scrollToAnchor(t),100)}scrollToAnchor(e){if(typeof document>`u`)return;let t=decodeURIComponent(e).toLowerCase().replace(/^[#]/,``),n=document.getElementById(t);n&&Tx(n)}resolveLink(e,t){let n=super.resolveLink(e,t);if(!n.startsWith(`#/`))return n;let r=n.slice(2),i=``,a=r.indexOf(`#`);return a!==-1&&(i=r.slice(a+1),r=r.slice(0,a)),this.urlForSlug(this.normalizeDocSlug(r),i)}parseStaticAnchor(e){let t=e.replace(/^#/,``).trim();if(t.startsWith(`/`)){let e=t.slice(1),n=e.indexOf(`#`);t=n>=0?e.slice(n+1):``}return t}handlePopState=()=>{let e=this.getCurrentRoute();this.emitRoute(e),e.anchor&&setTimeout(()=>this.scrollToAnchor(e.anchor),100)}},Nx=`ENTRIES`,Px=`KEYS`,Fx=`VALUES`,Ix=``,Lx=class{constructor(e,t){let n=e._tree,r=Array.from(n.keys());this.set=e,this._type=t,this._path=r.length>0?[{node:n,keys:r}]:[]}next(){let e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:e,keys:t}=Rx(this._path);if(Rx(t)===Ix)return{done:!1,value:this.result()};let n=e.get(Rx(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let e=Rx(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>Rx(e)).filter(e=>e!==Ix).join(``)}value(){return Rx(this._path).node.get(Ix)}result(){switch(this._type){case Fx:return this.value();case Px:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},Rx=e=>e[e.length-1],zx=(e,t,n)=>{let r=new Map;if(t===void 0)return r;let i=t.length+1,a=i+n,o=new Uint8Array(a*i).fill(n+1);for(let e=0;e<i;++e)o[e]=e;for(let e=1;e<a;++e)o[e*i]=e;return Bx(e,t,n,r,o,1,i,``),r},Bx=(e,t,n,r,i,a,o,s)=>{let c=a*o;key:for(let l of e.keys())if(l===Ix){let t=i[c-1];t<=n&&r.set(s,[e.get(l),t])}else{let c=a;for(let e=0;e<l.length;++e,++c){let r=l[e],a=o*c,s=a-o,u=i[a],d=Math.max(0,c-n-1),f=Math.min(o-1,c+n);for(let e=d;e<f;++e){let n=r!==t[e],o=i[s+e]+ +n,c=i[s+e+1]+1,l=i[a+e]+1,d=i[a+e+1]=Math.min(o,c,l);d<u&&(u=d)}if(u>n)continue key}Bx(e.get(l),t,n,r,i,c,o,s+l)}},Vx=class e{constructor(e=new Map,t=``){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(t){if(!t.startsWith(this._prefix))throw Error(`Mismatched prefix`);let[n,r]=Hx(this._tree,t.slice(this._prefix.length));if(n===void 0){let[n,i]=Jx(r);for(let r of n.keys())if(r!==Ix&&r.startsWith(i)){let a=new Map;return a.set(r.slice(i.length),n.get(r)),new e(a,t)}}return new e(n,t)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Gx(this._tree,e)}entries(){return new Lx(this,Nx)}forEach(e){for(let[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return zx(this._tree,e,t)}get(e){let t=Ux(this._tree,e);return t===void 0?void 0:t.get(Ix)}has(e){let t=Ux(this._tree,e);return t!==void 0&&t.has(Ix)}keys(){return new Lx(this,Px)}set(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);return this._size=void 0,Wx(this._tree,e).set(Ix,t),this}get size(){if(this._size)return this._size;this._size=0;let e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=Wx(this._tree,e);return n.set(Ix,t(n.get(Ix))),this}fetch(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=Wx(this._tree,e),r=n.get(Ix);return r===void 0&&n.set(Ix,r=t()),r}values(){return new Lx(this,Fx)}[Symbol.iterator](){return this.entries()}static from(t){let n=new e;for(let[e,r]of t)n.set(e,r);return n}static fromObject(t){return e.from(Object.entries(t))}},Hx=(e,t,n=[])=>{if(t.length===0||e==null)return[e,n];for(let r of e.keys())if(r!==Ix&&t.startsWith(r))return n.push([e,r]),Hx(e.get(r),t.slice(r.length),n);return n.push([e,t]),Hx(void 0,``,n)},Ux=(e,t)=>{if(t.length===0||e==null)return e;for(let n of e.keys())if(n!==Ix&&t.startsWith(n))return Ux(e.get(n),t.slice(n.length))},Wx=(e,t)=>{let n=t.length;outer:for(let r=0;e&&r<n;){for(let i of e.keys())if(i!==Ix&&t[r]===i[0]){let a=Math.min(n-r,i.length),o=1;for(;o<a&&t[r+o]===i[o];)++o;let s=e.get(i);if(o===i.length)e=s;else{let n=new Map;n.set(i.slice(o),s),e.set(t.slice(r,r+o),n),e.delete(i),e=n}r+=o;continue outer}let i=new Map;return e.set(t.slice(r),i),i}return e},Gx=(e,t)=>{let[n,r]=Hx(e,t);if(n!==void 0){if(n.delete(Ix),n.size===0)Kx(r);else if(n.size===1){let[e,t]=n.entries().next().value;qx(r,e,t)}}},Kx=e=>{if(e.length===0)return;let[t,n]=Jx(e);if(t.delete(n),t.size===0)Kx(e.slice(0,-1));else if(t.size===1){let[n,r]=t.entries().next().value;n!==Ix&&qx(e.slice(0,-1),n,r)}},qx=(e,t,n)=>{if(e.length===0)return;let[r,i]=Jx(e);r.set(i+t,n),r.delete(i)},Jx=e=>e[e.length-1],Yx=`or`,Xx=`and`,Zx=`and_not`,Qx=class e{constructor(e){if(e?.fields==null)throw Error(`MiniSearch: option "fields" must be provided`);let t=e.autoVacuum==null||e.autoVacuum===!0?lS:e.autoVacuum;this._options={...iS,...e,autoVacuum:t,searchOptions:{...aS,...e.searchOptions||{}},autoSuggestOptions:{...oS,...e.autoSuggestOptions||{}}},this._index=new Vx,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=cS,this.addFields(this._options.fields)}add(e){let{extractField:t,stringifyField:n,tokenize:r,processTerm:i,fields:a,idField:o}=this._options,s=t(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(s))throw Error(`MiniSearch: duplicate ID ${s}`);let c=this.addDocumentId(s);this.saveStoredFields(c,e);for(let o of a){let a=t(e,o);if(a==null)continue;let s=r(n(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.addFieldLength(c,l,this._documentCount-1,u);for(let e of s){let t=i(e,o);if(Array.isArray(t))for(let e of t)this.addTerm(l,c,e);else t&&this.addTerm(l,c,t)}}}addAll(e){for(let t of e)this.add(t)}addAllAsync(e,t={}){let{chunkSize:n=10}=t,r={chunk:[],promise:Promise.resolve()},{chunk:i,promise:a}=e.reduce(({chunk:e,promise:t},r,i)=>(e.push(r),(i+1)%n===0?{chunk:[],promise:t.then(()=>new Promise(e=>setTimeout(e,0))).then(()=>this.addAll(e))}:{chunk:e,promise:t}),r);return a.then(()=>this.addAll(i))}remove(e){let{tokenize:t,processTerm:n,extractField:r,stringifyField:i,fields:a,idField:o}=this._options,s=r(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);let c=this._idToShortId.get(s);if(c==null)throw Error(`MiniSearch: cannot remove document with ID ${s}: it is not in the index`);for(let o of a){let a=r(e,o);if(a==null)continue;let s=t(i(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.removeFieldLength(c,l,this._documentCount,u);for(let e of s){let t=n(e,o);if(Array.isArray(t))for(let e of t)this.removeTerm(l,c,e);else t&&this.removeTerm(l,c,t)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(s),this._fieldLength.delete(c),--this._documentCount}removeAll(e){if(e)for(let t of e)this.remove(t);else if(arguments.length>0)throw Error(`Expected documents to be present. Omit the argument to remove all documents.`);else this._index=new Vx,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}discard(e){let t=this._idToShortId.get(e);if(t==null)throw Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((e,n)=>{this.removeFieldLength(t,n,this._documentCount,e)}),this._fieldLength.delete(t),--this._documentCount,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:r}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:r},{minDirtCount:t,minDirtFactor:e})}discardAll(e){let t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let t of e)this.discard(t)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){let{idField:t,extractField:n}=this._options,r=n(e,t);this.discard(r),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum??=this._currentVacuum.then(()=>{let t=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=cS,this.performVacuuming(e,t)}),this._enqueuedVacuum):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){let n=this._dirtCount;if(this.vacuumConditionsMet(t)){let t=e.batchSize||sS.batchSize,r=e.batchWait||sS.batchWait,i=1;for(let[e,n]of this._index){for(let[e,t]of n)for(let[r]of t)this._documentIds.has(r)||(t.size<=1?n.delete(e):t.delete(r));this._index.get(e).size===0&&this._index.delete(e),i%t===0&&await new Promise(e=>setTimeout(e,r)),i+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t||=lS.minDirtCount,n||=lS.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){let t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(t,n={}){let{searchOptions:r}=this._options,i={...r,...n},a=this.executeQuery(t,n),o=[];for(let[e,{score:t,terms:n,match:r}]of a){let a=n.length||1,s={id:this._documentIds.get(e),score:t*a,terms:Object.keys(r),queryTerms:n,match:r};Object.assign(s,this._storedFields.get(e)),(i.filter==null||i.filter(s))&&o.push(s)}return t===e.wildcard&&i.boostDocument==null||o.sort(fS),o}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};let n=new Map;for(let{score:r,terms:i}of this.search(e,t)){let e=i.join(` `),t=n.get(e);t==null?n.set(e,{score:r,terms:i,count:1}):(t.score+=r,t.count+=1)}let r=[];for(let[e,{score:t,terms:i,count:a}]of n)r.push({suggestion:e,terms:i,score:t/a});return r.sort(fS),r}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw Error(`MiniSearch: loadJSON should be given the same options used when serializing the index`);return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw Error(`MiniSearch: loadJSON should be given the same options used when serializing the index`);return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(iS.hasOwnProperty(e))return $x(iS,e);throw Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=mS(r),s._fieldLength=mS(i),s._storedFields=mS(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),mS(r))}s._index.set(e,n)}return s}static async loadJSAsync(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=await hS(r),s._fieldLength=await hS(i),s._storedFields=await hS(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);let c=0;for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),await hS(r))}++c%1e3==0&&await gS(0),s._index.set(e,n)}return s}static instantiateMiniSearch(t,n){let{documentCount:r,nextId:i,fieldIds:a,averageFieldLength:o,dirtCount:s,serializationVersion:c}=t;if(c!==1&&c!==2)throw Error(`MiniSearch: cannot deserialize an index created with an incompatible version`);let l=new e(n);return l._documentCount=r,l._nextId=i,l._idToShortId=new Map,l._fieldIds=a,l._avgFieldLength=o,l._dirtCount=s||0,l._index=new Vx,l}executeQuery(t,n={}){if(t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!=`string`){let e={...n,...t,queries:void 0},r=t.queries.map(t=>this.executeQuery(t,e));return this.combineResults(r,e.combineWith)}let{tokenize:r,processTerm:i,searchOptions:a}=this._options,o={tokenize:r,processTerm:i,...a,...n},{tokenize:s,processTerm:c}=o,l=s(t).flatMap(e=>c(e)).filter(e=>!!e).map(rS(o)).map(e=>this.executeQuerySpec(e,o));return this.combineResults(l,o.combineWith)}executeQuerySpec(e,t){let n={...this._options.searchOptions,...t},r=(n.fields||this._options.fields).reduce((e,t)=>({...e,[t]:$x(n.boost,t)||1}),{}),{boostDocument:i,weights:a,maxFuzzy:o,bm25:s}=n,{fuzzy:c,prefix:l}={...aS.weights,...a},u=this._index.get(e.term),d=this.termResults(e.term,e.term,1,e.termBoost,u,r,i,s),f,p;if(e.prefix&&(f=this._index.atPrefix(e.term)),e.fuzzy){let t=e.fuzzy===!0?.2:e.fuzzy,n=t<1?Math.min(o,Math.round(e.term.length*t)):t;n&&(p=this._index.fuzzyGet(e.term,n))}if(f)for(let[t,n]of f){let a=t.length-e.term.length;if(!a)continue;p?.delete(t);let o=l*t.length/(t.length+.3*a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}if(p)for(let t of p.keys()){let[n,a]=p.get(t);if(!a)continue;let o=c*t.length/(t.length+a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}return d}executeWildcardQuery(e){let t=new Map,n={...this._options.searchOptions,...e};for(let[e,r]of this._documentIds){let i=n.boostDocument?n.boostDocument(r,``,this._storedFields.get(e)):1;t.set(e,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Yx){if(e.length===0)return new Map;let n=eS[t.toLowerCase()];if(!n)throw Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){let e=[];for(let[t,n]of this._index){let r={};for(let[e,t]of n)r[e]=Object.fromEntries(t);e.push([t,r])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,r,i,a,o,s,c=new Map){if(i==null)return c;for(let l of Object.keys(a)){let u=a[l],d=this._fieldIds[l],f=i.get(d);if(f==null)continue;let p=f.size,m=this._avgFieldLength[d];for(let i of f.keys()){if(!this._documentIds.has(i)){this.removeTerm(d,i,t),--p;continue}let a=o?o(this._documentIds.get(i),t,this._storedFields.get(i)):1;if(!a)continue;let h=f.get(i),g=this._fieldLength.get(i)[d],_=nS(h,p,this._documentCount,g,m,s),v=n*r*u*a*_,y=c.get(i);if(y){y.score+=v,uS(y.terms,e);let n=$x(y.match,t);n?n.push(l):y.match[t]=[l]}else c.set(i,{score:v,terms:[e],match:{[t]:[l]}})}}return c}addTerm(e,t,n){let r=this._index.fetch(n,pS),i=r.get(e);if(i==null)i=new Map,i.set(t,1),r.set(e,i);else{let e=i.get(t);i.set(t,(e||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}let r=this._index.fetch(n,pS),i=r.get(e);i==null||i.get(t)==null?this.warnDocumentChanged(t,e,n):i.get(t)<=1?i.size<=1?r.delete(e):i.delete(t):i.set(t,i.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(let r of Object.keys(this._fieldIds))if(this._fieldIds[r]===t){this._options.logger(`warn`,`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${r}". Removing a document after it has changed can corrupt the index!`,`version_conflict`);return}}addDocumentId(e){let t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,r){let i=this._fieldLength.get(e);i??this._fieldLength.set(e,i=[]),i[t]=r;let a=(this._avgFieldLength[t]||0)*n+r;this._avgFieldLength[t]=a/(n+1)}removeFieldLength(e,t,n,r){if(n===1){this._avgFieldLength[t]=0;return}let i=this._avgFieldLength[t]*n-r;this._avgFieldLength[t]=i/(n-1)}saveStoredFields(e,t){let{storeFields:n,extractField:r}=this._options;if(n==null||n.length===0)return;let i=this._storedFields.get(e);i??this._storedFields.set(e,i={});for(let e of n){let n=r(t,e);n!==void 0&&(i[e]=n)}}};Qx.wildcard=Symbol(`*`);var $x=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,eS={[Yx]:(e,t)=>{for(let n of t.keys()){let r=e.get(n);if(r==null)e.set(n,t.get(n));else{let{score:e,terms:i,match:a}=t.get(n);r.score+=e,r.match=Object.assign(r.match,a),dS(r.terms,i)}}return e},[Xx]:(e,t)=>{let n=new Map;for(let r of t.keys()){let i=e.get(r);if(i==null)continue;let{score:a,terms:o,match:s}=t.get(r);dS(i.terms,o),n.set(r,{score:i.score+a,terms:i.terms,match:Object.assign(i.match,s)})}return n},[Zx]:(e,t)=>{for(let n of t.keys())e.delete(n);return e}},tS={k:1.2,b:.7,d:.5},nS=(e,t,n,r,i,a)=>{let{k:o,b:s,d:c}=a;return Math.log(1+(n-t+.5)/(t+.5))*(c+e*(o+1)/(e+o*(1-s+s*r/i)))},rS=e=>(t,n,r)=>({term:t,fuzzy:typeof e.fuzzy==`function`?e.fuzzy(t,n,r):e.fuzzy||!1,prefix:typeof e.prefix==`function`?e.prefix(t,n,r):e.prefix===!0,termBoost:typeof e.boostTerm==`function`?e.boostTerm(t,n,r):1}),iS={idField:`id`,extractField:(e,t)=>e[t],stringifyField:(e,t)=>e.toString(),tokenize:e=>e.split(_S),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof(console==null?void 0:console[e])==`function`&&console[e](t)},autoVacuum:!0},aS={combineWith:Yx,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:tS},oS={combineWith:Xx,prefix:(e,t,n)=>t===n.length-1},sS={batchSize:1e3,batchWait:10},cS={minDirtFactor:.1,minDirtCount:20},lS={...sS,...cS},uS=(e,t)=>{e.includes(t)||e.push(t)},dS=(e,t)=>{for(let n of t)e.includes(n)||e.push(n)},fS=({score:e},{score:t})=>t-e,pS=()=>new Map,mS=e=>{let t=new Map;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]);return t},hS=async e=>{let t=new Map,n=0;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]),++n%1e3==0&&await gS(0);return t},gS=e=>new Promise(t=>setTimeout(t,e)),_S=/[\n\r\p{Z}\p{P}]+/u,vS=class{miniSearch;indexedDocs=new Map;constructor(){this.miniSearch=new Qx({fields:[`title`,`category`,`headingsText`,`content`],storeFields:[`title`,`slug`,`category`,`headingsText`,`snippet`],searchOptions:{boost:{title:3,headingsText:2,category:1.5,content:1},fuzzy:.2,prefix:!0}})}addDoc(e){if(this.indexedDocs.has(e.slug))return;this.indexedDocs.set(e.slug,e);let t=(e.headings||[]).map(e=>e.text).join(` `),n=(e.content||``).substring(0,160).replace(/[#*`_>]/g,``).trim();try{this.miniSearch.add({id:e.slug,slug:e.slug,title:e.title,category:e.category||``,headingsText:t,content:e.content||``,snippet:n})}catch{}}addDocs(e){for(let t of e)this.addDoc(t)}search(e,t=10){let n=e.trim();if(!n)return[];try{return this.miniSearch.search(n).slice(0,t).map(e=>({id:e.id,slug:e.slug||e.id,title:e.title||`Untitled`,category:e.category,snippet:e.snippet,score:e.score}))}catch(e){return console.warn(`[DocMeDown] Search error:`,e),[]}}};function yS(e){let t=globalThis.requestIdleCallback;typeof t==`function`?t(e,{timeout:2e3}):window.setTimeout(e,1)}var Q=new class{#e=E(null);get config(){return M(this.#e)}set config(e){D(this.#e,e,!0)}#t=E(``);get currentSlug(){return M(this.#t)}set currentSlug(e){D(this.#t,e,!0)}#n=E(null);get currentDoc(){return M(this.#n)}set currentDoc(e){D(this.#n,e,!0)}#r=E(ci([]));get tree(){return M(this.#r)}set tree(e){D(this.#r,e,!0)}#i=E(!0);get isLoading(){return M(this.#i)}set isLoading(e){D(this.#i,e,!0)}#a=E(!1);get isNavigating(){return M(this.#a)}set isNavigating(e){D(this.#a,e,!0)}#o=E(null);get error(){return M(this.#o)}set error(e){D(this.#o,e,!0)}#s=E(!1);get isSearchOpen(){return M(this.#s)}set isSearchOpen(e){D(this.#s,e,!0)}#c=E(!1);get isMobileSidebarOpen(){return M(this.#c)}set isMobileSidebarOpen(e){D(this.#c,e,!0)}#l=E(!1);get isEditorOpen(){return M(this.#l)}set isEditorOpen(e){D(this.#l,e,!0)}#u=E(`production`);get serverMode(){return M(this.#u)}set serverMode(e){D(this.#u,e,!0)}#d=E(!1);get hasPreviewChanges(){return M(this.#d)}set hasPreviewChanges(e){D(this.#d,e,!0)}#f=E(!1);get isScrolled(){return M(this.#f)}set isScrolled(e){D(this.#f,e,!0)}#p=E(null);get activeTagModal(){return M(this.#p)}set activeTagModal(e){D(this.#p,e,!0)}#m=E(ci([]));get allDocs(){return M(this.#m)}set allDocs(e){D(this.#m,e,!0)}openTagModal(e){this.activeTagModal=e.replace(/^#/,``).trim()}closeTagModal(){this.activeTagModal=null}getDocsWithTag(e){let t=e.replace(/^#/,``).toLowerCase().trim();return t?this.allDocs.filter(e=>e.frontmatter?.tags?.some(e=>e.toLowerCase().trim()===t)):[]}getAllTags(){let e=new Map;for(let t of this.allDocs)if(Array.isArray(t.frontmatter?.tags))for(let n of t.frontmatter.tags){let t=n.toLowerCase().trim();t&&e.set(t,(e.get(t)||0)+1)}return Array.from(e.entries()).map(([e,t])=>({tag:e,count:t})).sort((e,t)=>t.count-e.count)}getPossiblePaths(e,t){let n=[],r=new Set,i=(e,t,i,a)=>{r.has(e)||(r.add(e),n.push({slug:e,title:t,category:i,readingTimeMinutes:a}))};if(e===0){for(let e of this.allDocs)i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)i(e.slug,e.title);return n}let a=this.currentSlug.split(`/`).filter(Boolean),o=a.slice(0,e).join(`/`);if(o){for(let e of this.allDocs)(e.slug.startsWith(`${o}/`)||e.slug===o)&&i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)(e.slug.startsWith(`${o}/`)||e.slug===o)&&i(e.slug,e.title)}if(n.length<=1){let t=a.slice(0,Math.max(0,e-1)).join(`/`);if(t){for(let e of this.allDocs)(e.slug.startsWith(`${t}/`)||e.slug===t)&&i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)(e.slug.startsWith(`${t}/`)||e.slug===t)&&i(e.slug,e.title)}else{for(let e of this.allDocs)e.slug.includes(`/`)||i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)e.slug.includes(`/`)||i(e.slug,e.title);if(n.length<=1){for(let e of this.allDocs)i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)i(e.slug,e.title)}}}return n}#h=E(null);get originalHome(){return M(this.#h)}set originalHome(e){D(this.#h,e,!0)}#g=E(ci([]));get docPaths(){return M(this.#g)}set docPaths(e){D(this.#g,e,!0)}basePath=``;router=null;searchIndex=new vS;localLoader=new ju;remoteGithub=null;remoteGitlab=null;unsubscribeRouter=null;homeCancelled=!1;epoch=0;parseCacheLimit=50;parseCache=new Map;remoteCache=new Map;#_=vr(()=>{let e=[],t=n=>{for(let r of n)!r.isCategory&&r.slug&&e.push({slug:r.slug,title:r.title}),r.children&&t(r.children)};return t(this.tree),e});get flatDocs(){return M(this.#_)}set flatDocs(e){D(this.#_,e)}#v=vr(()=>{let e=this.flatDocs.findIndex(e=>e.slug===this.currentSlug);return e<=0?null:this.flatDocs[e-1]});get prevDoc(){return M(this.#v)}set prevDoc(e){D(this.#v,e)}#y=vr(()=>{let e=this.flatDocs.findIndex(e=>e.slug===this.currentSlug);return e===-1||e>=this.flatDocs.length-1?null:this.flatDocs[e+1]});get nextDoc(){return M(this.#y)}set nextDoc(e){D(this.#y,e)}#b=vr(()=>this.originalHome??(this.config?Tu(this.docPaths,this.config):null));get home(){return M(this.#b)}set home(e){D(this.#b,e)}navigate(e,t=``){this.router?.navigate(e,t)}destroy(){this.unsubscribeRouter?.(),this.unsubscribeRouter=null,this.router?.destroy(),this.router=null,this.homeCancelled=!0}async init(e,t=``){let n=++this.epoch;this.destroy(),this.config=e,this.basePath=t,this.currentDoc=null,this.tree=[],this.isLoading=!0,this.isNavigating=!1,this.error=null,this.isSearchOpen=!1,this.isMobileSidebarOpen=!1,this.originalHome=null,this.docPaths=[],this.homeCancelled=!1,this.parseCache.clear(),this.parseCacheLimit=50,this.remoteCache.clear(),this.remoteGithub=e.source?.type===`github`?new Mu(e.source):null,this.remoteGitlab=e.source?.type===`gitlab`?new Nu(e.source):null,this.router=Dx(e.rootDoc||`README.md`);let r=this.router.getCurrentRoute();this.currentSlug=r.slug,this.unsubscribeRouter=this.router.subscribe(e=>{if(n!==this.epoch)return;let t=e.slug!==this.currentSlug;this.currentSlug=e.slug,this.isMobileSidebarOpen=!1,t||!this.currentDoc?this.renderDocNow(e.slug,n)||this.loadDoc(e.slug,n):e.anchor&&setTimeout(()=>this.router?.scrollToAnchor(e.anchor),100)}),this.renderDocNow(r.slug,n)||await this.loadDoc(r.slug,n),typeof window<`u`&&(window.__DOCMEDOWN_STORE__=this),this.initTree(n),this.initHome(n),this.warmParseCache(n)}async initTree(e){let t=this.config?.sidebar;try{let n=await this.localLoader.fetchManifest(this.basePath);if(e!==this.epoch)return;if(n&&!this.remoteGithub&&!this.remoteGitlab){n.config&&(this.config={...this.config,...n.config}),n.tree&&(this.tree=n.tree),n.docs&&(this.allDocs=n.docs,this.searchIndex.addDocs(n.docs),this.docPaths=n.docs.map(e=>({slug:e.slug,path:e.path})));return}if(this.remoteGithub){let n=await this.remoteGithub.discoverFiles();if(e!==this.epoch)return;this.tree=Ou(n,{},t),this.docPaths=n.map(e=>({path:e}));return}if(this.remoteGitlab){let n=await this.remoteGitlab.discoverFiles();if(e!==this.epoch)return;this.tree=Ou(n,{},t),this.docPaths=n.map(e=>({path:e}));return}this.tree=Ou([`README.md`],{},t),this.docPaths=[{path:`README.md`}]}catch{if(e!==this.epoch)return;this.tree=Ou([`README.md`],{},t),this.docPaths=[{path:`README.md`}]}}parseMarkdownCached(e,t){let n=this.parseCache.get(t);if(n&&n.source===e)return this.parseCache.delete(t),this.parseCache.set(t,n),n.parsed;let r=ub(e,t);if(this.parseCache.set(t,{source:e,parsed:r}),this.parseCache.size>this.parseCacheLimit){let e=this.parseCache.keys().next().value;e!==void 0&&this.parseCache.delete(e)}return r}renderDoc(e,t){let n=this.parseMarkdownCached(e,t),r=n.frontmatter.title||n.headings[0]?.text||t;this.currentDoc={...n,slug:t,title:r,rawContent:e},this.error=null,this.isLoading=!1,this.isNavigating=!1,this.searchIndex.addDoc({slug:t,path:`${t}.md`,title:r,frontmatter:n.frontmatter,headings:n.headings,content:e}),this.allDocs.some(e=>e.slug===t)||this.allDocs.push({slug:t,path:`${t}.md`,title:r,frontmatter:n.frontmatter,headings:n.headings,readingTimeMinutes:n.readingTimeMinutes}),this.resetScroll()}toggleEditor(e){this.isEditorOpen=e===void 0?!this.isEditorOpen:e}updateDocContent(e,t=this.currentSlug,n=!1){if(this.localLoader.setDocContent(t,e),this.parseCache.delete(t),this.currentSlug===t){let r=ub(e,t),i=r.frontmatter.title||r.headings[0]?.text||t;this.currentDoc={...r,slug:t,title:i,rawContent:e},this.searchIndex.addDoc({slug:t,path:`${t}.md`,title:i,frontmatter:r.frontmatter,headings:r.headings,content:e}),n&&this.resetScroll()}}applyHmrUpdate(e,t){this.updateDocContent(t,e,!1),typeof console<`u`&&console.log(`[DocMeDown HMR] In-place update applied for ${e}`)}updateConfig(e){this.config&&={...this.config,...e}}resetScroll(){let e=this.router?.getCurrentRoute();e?.anchor?setTimeout(()=>this.router?.scrollToAnchor(e.anchor),100):typeof window<`u`&&window.scrollTo({top:0,behavior:`instant`})}renderDocNow(e,t){if(t!==this.epoch)return!0;let n=this.remoteCache.get(e);if(n!==void 0)return this.renderDoc(n,e),!0;if(this.remoteGithub||this.remoteGitlab)return!1;let r=this.localLoader.peekDocContent(e);return r!==void 0&&(this.renderDoc(r,e),!0)}async loadDoc(e,t){this.currentDoc?this.isNavigating=!0:this.isLoading=!0,this.error=null;try{let n=null;if(n=this.remoteGithub?await this.remoteGithub.fetchDocContent(e):this.remoteGitlab?await this.remoteGitlab.fetchDocContent(e):await this.localLoader.fetchDocContent(e,this.basePath),t!==this.epoch)return;if(n!==null)this.remoteCache.set(e,n),this.renderDoc(n,e);else{let t=this.remoteGithub?`GitHub`:this.remoteGitlab?`GitLab`:`this documentation site`;this.error=`Could not load “${e}” from ${t}.`,this.isLoading=!1,this.isNavigating=!1}}catch{if(t!==this.epoch)return;this.error=`The document source did not respond. Check the connection or try again.`,this.isLoading=!1,this.isNavigating=!1}}warmParseCache(e){if(this.remoteGithub||this.remoteGitlab||typeof window>`u`)return;let t=this.localLoader.embeddedDocSources();if(!t)return;let n=Object.entries(t);if(n.length<2)return;this.parseCacheLimit=Math.min(Math.max(n.length,50),200);let r=0,i=()=>{if(e!==this.epoch)return;let t=performance.now()+6;for(;r<n.length&&performance.now()<t;){let[e,t]=n[r++];this.parseMarkdownCached(t,e)}r<n.length&&yS(i)};yS(i)}initHome(e){this.config?.home||this.remoteGithub||this.remoteGitlab||typeof window>`u`||(window.location.protocol===`http:`||window.location.protocol===`https:`)&&Eu(e=>fetch(e)).then(t=>{e===this.epoch&&!this.homeCancelled&&t&&(this.originalHome=t)}).catch(()=>void 0)}},bS=P(`<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg> <span>Docs</span>`,1),xS=P(`<span> </span>`),SS=P(`<span class="dmd-crumb-arrow" aria-hidden="true">▾</span>`),CS=P(`<span class="dmd-crumb-item-badge">Active</span>`),wS=P(`<span class="dmd-crumb-item-meta"> </span>`),TS=P(`<button type="button" role="menuitem"><span class="dmd-crumb-item-dot" aria-hidden="true"><!></span> <div class="dmd-crumb-item-info"><span class="dmd-crumb-item-title"> </span> <span class="dmd-crumb-item-slug"> </span></div> <!></button>`),ES=P(`<div class="dmd-crumb-popover" role="menu"><div class="dmd-crumb-popover-header"><span class="dmd-crumb-popover-scope"><!></span> <span class="dmd-crumb-popover-count"> </span></div> <div class="dmd-crumb-popover-list"></div></div>`),DS=P(`<div class="dmd-crumb-wrapper" role="none"><button type="button"><!> <!></button> <!></div>`);function OS(e,t){yn(t,!0);let n=z(t,`isHome`,3,!1),r=z(t,`isLast`,3,!1),i=z(t,`isScrolled`,3,!1),a=E(!1),o,s,c=E(null),l=vr(()=>Q.getPossiblePaths(t.index,t.label));function u(){clearTimeout(o),M(l).length>0&&(s=setTimeout(()=>{D(a,!0)},140))}function d(){clearTimeout(s),o=setTimeout(()=>{D(a,!1)},200)}function f(e){let i=e.target;if(i.classList.contains(`dmd-crumb-arrow`)||i.closest(`.dmd-crumb-arrow`)){e.stopPropagation(),e.preventDefault(),M(l).length>0&&D(a,!M(a));return}if(n())Q.home?.kind===`href`&&Q.home.href?window.location.href=Q.home.href:Q.home?.kind===`route`&&Q.home.slug?Q.navigate(Q.home.slug):Q.navigate(`README`),D(a,!1);else if(r())M(l).length>0&&D(a,!M(a));else{let e=Q.currentSlug.split(`/`).filter(Boolean).slice(0,t.index).join(`/`);e&&Q.navigate(e),D(a,!1)}}function p(e){e.key===`Escape`?D(a,!1):e.key===`ArrowDown`&&!M(a)&&M(l).length>0&&(e.preventDefault(),D(a,!0))}Li(()=>{if(!M(a))return;let e=e=>{M(c)&&!M(c).contains(e.target)&&D(a,!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)});var m=DS(),h=O(m);let g;var _=O(h),v=e=>{var t=bS();pt(2),F(e,t)},y=e=>{var n=xS(),r=k(n,!0);j(e=>I(r,e),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)};L(_,e=>{n()?e(v):e(y,-1)});var b=A(_,2),x=e=>{F(e,SS())};L(b,e=>{M(l).length>1&&e(x)}),w(h);var S=A(h,2),ee=e=>{var i=ES(),o=O(i),s=O(o),c=O(s),u=e=>{F(e,Bo(`Docs Overview`))},d=e=>{var n=Bo();j(e=>I(n,`Related in ${e??``}`),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)},f=e=>{var n=Bo();j(e=>I(n,`Section: ${e??``}`),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)};L(c,e=>{n()?e(u):r()?e(d,1):e(f,-1)}),w(s);var p=k(A(s,2));w(o);var m=A(o,2);Ss(m,21,()=>M(l),e=>e.slug,(e,t)=>{var n=TS();let r;var i=O(n),o=O(i),s=e=>{F(e,Bo(`●`))},c=e=>{F(e,Bo(`○`))};L(o,e=>{M(t).slug===Q.currentSlug?e(s):e(c,-1)}),w(i);var l=A(i,2),u=O(l),d=k(u,!0),f=k(A(u,2),!0);w(l);var p=A(l,2),m=e=>{F(e,CS())},h=e=>{var n=wS(),r=k(n);j(()=>I(r,`${M(t).readingTimeMinutes??``}m`)),F(e,n)};L(p,e=>{M(t).slug===Q.currentSlug?e(m):M(t).readingTimeMinutes&&e(h,1)}),w(n),j(()=>{r=gc(n,1,`dmd-crumb-popover-item`,null,r,{selected:M(t).slug===Q.currentSlug}),I(d,M(t).title),I(f,M(t).slug)}),N(`click`,n,()=>{D(a,!1),Q.navigate(M(t).slug)}),F(e,n)}),w(m),w(i),j(()=>{R(i,`aria-label`,`Sections under ${t.label??``}`),I(p,`${M(l).length??``} ${M(l).length===1?`page`:`pages`}`)}),F(e,i)};L(S,e=>{M(a)&&M(l).length>0&&e(ee)}),w(m),Ol(m,e=>D(c,e),()=>M(c)),j(()=>{g=gc(h,1,`dmd-nav-crumb dmd-crumb`,null,g,{current:r(),"has-paths":M(l).length>0,open:M(a)}),R(h,`aria-expanded`,M(a)),R(h,`aria-haspopup`,M(l).length>0?`menu`:void 0),R(h,`tabindex`,i()?0:-1),R(h,`title`,n()?`Documentation home`:t.label)}),xo(`mouseenter`,m,u),xo(`mouseleave`,m,d),N(`keydown`,m,p),N(`click`,h,f),F(e,m),bn()}So([`keydown`,`click`]);var kS=[`default`,`markdown`,`terminal`,`book`,`minimal`],AS={default:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#4f46e5"/><stop offset="100%" stop-color="#7c3aed"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-bg)"/><path d="M9 5h8.5l6.5 6.5V25a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z" fill="#ffffff" fill-opacity="0.16" stroke="#ffffff" stroke-width="1.8" stroke-linejoin="round"/><path d="M17.5 5v5a1.5 1.5 0 0 0 1.5 1.5h5" stroke="#ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" fill="none"/><path d="M16 12.5v9.5m-3.5-3.5 3.5 3.5 3.5-3.5" stroke="#ffffff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,markdown:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-md" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#1e293b"/><stop offset="100%" stop-color="#0f172a"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-md)" stroke="#38bdf8" stroke-width="1.2" stroke-opacity="0.35"/><path d="M6.5 21V11h3l3 4.5 3-4.5h3v10" fill="none" stroke="#f8fafc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22.5 11v10m-3-3 3 3 3-3" fill="none" stroke="#38bdf8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,terminal:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-term" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#0f172a"/><stop offset="100%" stop-color="#020617"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-term)" stroke="#10b981" stroke-width="1.2" stroke-opacity="0.4"/><circle cx="8" cy="8" r="1.5" fill="#ef4444" opacity="0.85"/><circle cx="12.5" cy="8" r="1.5" fill="#f59e0b" opacity="0.85"/><circle cx="17" cy="8" r="1.5" fill="#10b981" opacity="0.85"/><path d="M8.5 15.5l5 4-5 4" fill="none" stroke="#10b981" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/><line x1="16.5" y1="23.5" x2="23.5" y2="23.5" stroke="#38bdf8" stroke-width="2.2" stroke-linecap="round"/></svg>`,book:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-book" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#2563eb"/><stop offset="100%" stop-color="#1d4ed8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-book)"/><path d="M16 11.5c-2.8-1.8-6.5-1.8-9.5 0v11c3-1.4 6.7-1.4 9.5 0m0-11c2.8-1.8 6.5-1.8 9.5 0v11c-3-1.4-6.7-1.4-9.5 0M16 11.5v11" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 7.5v2.5" stroke="#93c5fd" stroke-width="2" stroke-linecap="round"/></svg>`,minimal:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-min-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#18181b"/><stop offset="100%" stop-color="#09090b"/></linearGradient><linearGradient id="dmd-fav-min-accent" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#38bdf8"/><stop offset="100%" stop-color="#818cf8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-min-bg)" stroke="#27272a" stroke-width="1.2"/><polygon points="16,6 25,11.2 25,20.8 16,26 7,20.8 7,11.2" fill="none" stroke="url(#dmd-fav-min-accent)" stroke-width="2" stroke-linejoin="round"/><circle cx="16" cy="16" r="3.5" fill="url(#dmd-fav-min-accent)"/></svg>`};function jS(e){let t=e.replace(/\s+/g,` `).trim();return typeof Buffer<`u`?`data:image/svg+xml;base64,${Buffer.from(t,`utf-8`).toString(`base64`)}`:typeof btoa<`u`?`data:image/svg+xml;base64,${btoa(t)}`:`data:image/svg+xml;utf8,${encodeURIComponent(t)}`}var MS={default:jS(AS.default),markdown:jS(AS.markdown),terminal:jS(AS.terminal),book:jS(AS.book),minimal:jS(AS.minimal)},NS=MS.default;function PS(e){return typeof e==`string`&&kS.includes(e)}function FS(e){if(!e||e===`data:,`)return NS;let t=e.trim();return PS(t)?MS[t]:t}var IS=`dmd-splash`,LS=`dmd-splash-hidden`,RS=`dmd-splash-active`,zS=`__DOCMEDOWN_SPLASH_START__`,BS=450;function VS(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}var HS=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;function US(e){let t=e?.trim();return t&&HS.test(t)?t:void 0}function WS(e){let t=e?.trim();if(!t||t.length>512||/[<>"'`]/.test(t))return;let n=t.toLowerCase();if(!(n.startsWith(`javascript:`)||n.startsWith(`data:text/html`)||n.startsWith(`vbscript:`))&&(/^(https?:\/\/|data:image\/|\.\.?\/|#|\/[^/]|[^:/?#]+\/)/i.test(t)||/^[^:/?#\s]+\.[a-z0-9]+/i.test(t)||/^[\w\-.]+$/i.test(t)))return t}function GS(e,t){let n=US(e),r=US(t),i=[];return n&&i.push(`:root{--dmd-splash-accent:${n}}`),(n||r)&&i.push(`:root[data-theme=dark]{--dmd-splash-accent:${r??n}}`),i.length>0?`<style>${i.join(``)}</style>`:``}var KS=`<style>
|
|
377
377
|
html.dmd-splash-active{overflow:hidden}
|
|
378
378
|
html,body{margin:0}
|
|
379
379
|
:root{--dmd-splash-bg:#f7f7f5;--dmd-splash-surface:#ffffff;--dmd-splash-line:#ddded8;--dmd-splash-ink:#1a1d21;--dmd-splash-muted:#788089;--dmd-splash-bone:#e4e6e3;--dmd-splash-shine:#ffffff;--dmd-splash-accent:#315cf5;--dmd-splash-code:#16181d;--dmd-splash-code-head:#101216;--dmd-splash-code-line:#262b33;--dmd-splash-navh:68px;--dmd-splash-radius:10px;--dmd-splash-radius-sm:6px}
|
|
@@ -489,23 +489,23 @@ html,body{margin:0}
|
|
|
489
489
|
:root[data-dmd-motion=reduced] #dmd-splash,:root[data-dmd-motion=off] #dmd-splash{transition:none}
|
|
490
490
|
:root[data-dmd-motion=reduced] .dmd-splash-bone::after,:root[data-dmd-motion=off] .dmd-splash-bone::after{display:none}
|
|
491
491
|
:root[data-dmd-motion=reduced] .dmd-splash-progress::after,:root[data-dmd-motion=off] .dmd-splash-progress::after{animation:none}
|
|
492
|
-
</style>`,GS=`<script>(function(){try{var h=document.documentElement,l=window.localStorage,m=l&&l.getItem("dmd-color-mode"),f=l&&l.getItem("dmd-theme-family"),n=l&&l.getItem("dmd-theme-density"),mot=l&&l.getItem("dmd-motion");if(m!=="light"&&m!=="dark"&&m!=="auto")m="auto";if(["atlas","blueprint","terminal","editorial"].indexOf(f)<0)f="atlas";if(n!=="comfortable"&&n!=="compact")n="comfortable";if(mot!=="reduced"&&mot!=="off")mot="full";var d=m==="dark"||(m==="auto"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches),v=d?"dark":"light";h.setAttribute("data-theme",v);h.setAttribute("data-dmd-mode",v);h.setAttribute("data-dmd-theme",f);h.setAttribute("data-dmd-density",n);h.setAttribute("data-dmd-motion",mot);h.style.colorScheme=v;var isMac=/^mac/i.test((navigator.userAgentData&&navigator.userAgentData.platform)||navigator.platform||navigator.userAgent||"");h.setAttribute("data-dmd-os",isMac?"mac":"other");h.className+=" ${LS}";window.${RS}=Date.now();window.setTimeout(function(){var s=document.getElementById("${FS}");if(!s)return;s.className+=" ${IS}";s.setAttribute("aria-hidden","true");h.className=h.className.replace(" ${LS}","");window.setTimeout(function(){s.parentNode&&s.parentNode.removeChild(s)},450)},9000)}catch(e){}})();<\/script>`;function KS(e={}){return`${WS}${US(e.accent,e.accentDark)}${GS}<noscript><style>#${FS}{display:none!important}html.dmd-splash-active{overflow:auto!important}</style></noscript>`}function qS({name:e=`Documentation`,tagline:t,version:n,logo:r,logoDark:i,logoAlt:a,searchPlaceholder:o}={}){let s=e.trim()||`Documentation`,c=zS(s),l=HS(r),u=HS(i),d=zS((a??s).trim()||s),f=l?`<img class="dmd-splash-logo dmd-splash-logo-light" src="${zS(l)}" alt="${d}" decoding="async" />`+(u?`<img class="dmd-splash-logo dmd-splash-logo-dark" src="${zS(u)}" alt="${d}" decoding="async" />`:``):`<span class="dmd-splash-mark" aria-hidden="true"><svg viewBox="0 0 32 32" fill="none"><path d="M10 4.5h8.6c.4 0 .8.2 1.1.5l4.3 4.3c.3.3.5.7.5 1.1V25.5a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V6.5a2 2 0 0 1 2-2Z"/><path d="M18.7 4.7v3.6a2 2 0 0 0 2 2h3.6"/><path d="M12 15h8"/><path d="M12 19.5h8"/><path d="M12 24h5"/></svg></span>`,p=n?.trim().replace(/^v/i,``).slice(0,24)??``,m=p?`<span class="dmd-splash-version">v${zS(p)}</span>`:``,h=t?.trim().slice(0,220)??``,g=h?`<p class="dmd-splash-desc">${zS(h)}</p>`:`<span class="dmd-splash-bone w70"></span>`,_=o?.trim()||`Search docs…`;return`<div id="${FS}" role="status" aria-live="polite" aria-busy="true" aria-label="Loading ${c}"><div class="dmd-splash-bar"><div class="dmd-splash-brand">${f}<span class="dmd-splash-name">${c}</span>${m}</div><div class="dmd-splash-search" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><span class="dmd-splash-search-mac">${zS(_.replace(/Ctrl\+?K/gi,`⌘K`))}</span><span class="dmd-splash-search-win">${zS(_.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`))}</span><kbd></kbd></div><div class="dmd-splash-actions" aria-hidden="true"><i></i><i></i><i class="dmd-splash-action-pill"></i><i class="dmd-splash-action-pill"></i><i></i></div><span class="dmd-splash-progress" aria-hidden="true"></span></div><div class="dmd-splash-body" aria-hidden="true"><div class="dmd-splash-nav"><span class="dmd-splash-nav-label">Documentation</span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item dmd-splash-nav-active"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w50"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w40"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span></div><div class="dmd-splash-main-wrapper"><div class="dmd-splash-article"><div class="dmd-splash-crumb-row"><span class="dmd-splash-crumb" style="width:44px"></span><span class="dmd-splash-crumb-sep"></span><span class="dmd-splash-crumb current"></span></div><h1 class="dmd-splash-doc-title">${c}</h1>${g}<div class="dmd-splash-meta"><span class="dmd-splash-bone" style="width:72px"></span><span class="dmd-splash-bone" style="width:54px"></span></div><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-callout"><span class="dmd-splash-bone w30"></span><span class="dmd-splash-bone w70"></span></div><span class="dmd-splash-h2" style="width:38%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-code"><div class="dmd-splash-code-head"><i></i><i></i><i></i></div><div class="dmd-splash-code-body"><span class="dmd-splash-bone" style="width:45%"></span><span class="dmd-splash-bone" style="width:70%"></span><span class="dmd-splash-bone" style="width:55%"></span><span class="dmd-splash-bone" style="width:62%"></span></div></div></div><div class="dmd-splash-toc"><div class="dmd-splash-toc-header"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="8" x2="21" y1="6" y2="6"/><line x1="8" x2="21" y1="12" y2="12"/><line x1="8" x2="21" y1="18" y2="18"/><line x1="3" x2="3.01" y1="6" y2="6"/><line x1="3" x2="3.01" y1="12" y2="12"/><line x1="3" x2="3.01" y1="18" y2="18"/></svg><span class="dmd-splash-toc-label">On this page</span></div><div class="dmd-splash-toc-list"><span class="dmd-splash-bone dmd-splash-toc-active" style="width:72%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w60"></span></div></div></div></div><span class="dmd-splash-sr">Loading documentation…</span></div>`}var JS=null;function YS(){if(typeof document>`u`)return;let e=document.getElementById(FS);if(!e||e===JS||e.classList.contains(`dmd-splash-hidden`))return;JS=e;let t=window[RS],n=typeof t==`number`?Date.now()-t:950,r=Math.max(0,950-n);window.setTimeout(()=>{document.documentElement.classList.remove(LS),e.classList.add(IS),e.setAttribute(`aria-hidden`,`true`),window.setTimeout(()=>e.remove(),450)},r)}var XS=`data-docmedown-runtime`,ZS=`docmedown:offline-link-unavailable`;function QS(e){return`${e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`documentation`}-offline.html`}function $S(){return typeof window>`u`?!1:window.location.protocol===`file:`||!!window.__DOCMEDOWN_OFFLINE__}function eC(){return typeof window>`u`?!1:!!window.__DOCMEDOWN_OFFLINE__}function tC(e=`That link is unavailable in offline documentation.`){typeof window>`u`||window.dispatchEvent(new CustomEvent(ZS,{detail:e}))}function nC(e){let t=``,n=32768;for(let r=0;r<e.length;r+=n)t+=String.fromCharCode(...e.subarray(r,r+n));return btoa(t)}function rC(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function iC(e,t,n={},r){let i=`(async()=>{try{const b=Uint8Array.from(atob(document.getElementById("d").textContent.trim()),c=>c.charCodeAt(0)),s=await new Response(new Blob([b]).stream().pipeThrough(new DecompressionStream("gzip"))).text(),e=JSON.parse(s);if(e.version!==2)throw new Error("Unsupported offline format");window.__DOCMEDOWN_OFFLINE__=true;window.__DOCMEDOWN_DATA__=e.data;window.__DOCMEDOWN_CONFIG__=e.data.manifest.config;const u=URL.createObjectURL(new Blob([e.runtime],{type:"text/javascript"}));window.__DOCMEDOWN_RUNTIME_URL__=u;const j=document.createElement("script");j.src=u;j.onerror=()=>{URL.revokeObjectURL(u);throw new Error("Runtime bootstrap failed")};document.head.appendChild(j)}catch(e){var p=document.getElementById("${FS}");if(p){p.className+=" ${IS}";p.setAttribute("aria-hidden","true");setTimeout(function(){p.parentNode&&p.parentNode.removeChild(p)},600)}var h=document.documentElement;h.className=h.className.replace(" ${LS}","");document.getElementById("dmd-app").textContent="Could not open this offline documentation copy: "+e.message}})();`,a=rC(PS(r)),o=` type="image/svg+xml"`;return a.startsWith(`data:image/png`)||/\.png($|\?)/i.test(a)?o=` type="image/png"`:(a.startsWith(`data:image/x-icon`)||/\.ico($|\?)/i.test(a))&&(o=` type="image/x-icon"`),`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon"${o} href="${a}"><title>${rC(t)}</title>${KS(n)}</head><body>${qS({name:t,...n})}<div id="dmd-app"></div><script id="d" type="application/octet-stream">${e}<\/script><script>${i}<\/script></body></html>`}async function aC(e){if(typeof CompressionStream>`u`)throw Error(`This browser does not support local gzip compression.`);let t=new Blob([e]).stream().pipeThrough(new CompressionStream(`gzip`));return new Uint8Array(await new Response(t).arrayBuffer())}function oC(){return document.querySelector(`script[${XS}]`)||([...document.scripts].find(e=>/docmedown(?:\.iife)?\.js(?:[?#].*)?$/i.test(e.src))??null)}async function sC(e=!1){let t=oC();if(!t?.src)throw Error(`The current DocMeDown runtime script could not be located.`);let n=await fetch(t.src,{credentials:`same-origin`,cache:`force-cache`});if(!n.ok)throw Error(`Could not read the current DocMeDown runtime (${n.status}).`);let r=await n.text();if(e&&!r.includes(`DocMeDownMermaid`))try{let e=new URL(`docmedown-mermaid.js`,t.src).href,n=await fetch(e,{credentials:`same-origin`,cache:`force-cache`});if(n.ok){let e=await n.text();r=`${r}\n;${e}`}}catch{}return r}async function cC(){if($S())throw Error(`This documentation is already an offline copy.`);let e=window.__DOCMEDOWN_DATA__;if(!e?.manifest||!e.docs)throw Error(`This site has no embedded documentation corpus to export. Run a DocMeDown build first.`);let t=await sC(Object.values(e.docs).some(e=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(e))||!!(e.nestedSites&&Object.values(e.nestedSites).some(e=>Object.values(e.docs).some(e=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(e))))),n=await aC(JSON.stringify({version:2,data:e,runtime:t})),r=PS(e.manifest.config.theme?.favicon),i=iC(nC(n),e.manifest.config.name||`Documentation`,{tagline:e.manifest.config.tagline,version:e.manifest.config.version,logo:e.manifest.config.theme?.logo?.light,logoDark:e.manifest.config.theme?.logo?.dark,logoAlt:e.manifest.config.theme?.logo?.alt,accent:e.manifest.config.theme?.accentColor,accentDark:e.manifest.config.theme?.accentColorDark},r);return{blob:new Blob([i],{type:`text/html;charset=utf-8`}),filename:QS(e.manifest.config.name||`Documentation`)}}async function lC(){let{blob:e,filename:t}=await cC(),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.hidden=!0,document.body.appendChild(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),1e3)}function uC(){if(typeof window>`u`)return null;let e=window.__DOCMEDOWN_DATA__;return e?.nestedSites&&typeof e.nestedSites==`object`?e.nestedSites:null}function dC(e){if(!e)return!1;let t=e.trim().toLowerCase();return t.startsWith(`#`)||t.startsWith(`http://`)||t.startsWith(`https://`)||t.startsWith(`mailto:`)||t.startsWith(`blob:`)||t.startsWith(`data:`)||t.startsWith(`javascript:`)?!1:t.split(`#`)[0].split(`?`)[0].endsWith(`.html`)}function fC(e,t){if(!t)return null;let n=e.trim().replace(/^\.?\//,``).split(`#`)[0].split(`?`)[0].replace(/\/index\.html?$/i,``).replace(/\.html?$/i,``).replace(/\/+$/,``);return n?t[n]?n:Object.keys(t).find(e=>n.endsWith(`/${e}`))??null:null}var pC=new Map;async function mC(e,t){let n=uC()?.[e];if(!n)throw Error(`This offline copy does not embed the documentation site "${e}".`);let r=pC.get(e);if(!r){let t=window.__DOCMEDOWN_RUNTIME_URL__;if(!t)throw Error(`This offline copy predates nested site embedding. Rebuild it with the current DocMeDown version.`);let i=await(await fetch(t)).text(),a={version:2,data:{manifest:n.manifest,docs:n.docs,componentsSource:n.componentsSource},runtime:i},o=await aC(JSON.stringify(a)),s=PS(n.manifest.config?.theme?.favicon),c=iC(nC(o),n.name||`Documentation`,{tagline:n.manifest.config?.tagline,version:n.manifest.config?.version,logo:n.manifest.config?.theme?.logo?.light,logoDark:n.manifest.config?.theme?.logo?.dark,logoAlt:n.manifest.config?.theme?.logo?.alt,accent:n.manifest.config?.theme?.accentColor,accentDark:n.manifest.config?.theme?.accentColorDark},s);r=URL.createObjectURL(new Blob([c],{type:`text/html;charset=utf-8`})),pC.set(e,r)}let i=t?t.indexOf(`#`):-1;window.location.href=i>=0?`${r}${t.substring(i)}`:r}function hC(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/[\s_]+/g,`-`).toLowerCase()}function gC(e){return e.startsWith(`dmd-`)?e:`dmd-${hC(e)}`}function _C(e,t){return/<svelte:options\b[^>]*customElement/i.test(e)?e:`<svelte:options customElement={{ tag: "${t}" }} />\n${e}`}var vC=s((()=>{}));function yC(e){if(e===null)return;if(e===``||e.toLowerCase()===`true`)return!0;if(e.toLowerCase()===`false`)return!1;if(e.toLowerCase()===`null`)return null;if(e.toLowerCase()===`undefined`)return;if(/^-?\d+(\.\d+)?$/.test(e.trim())){let t=Number(e.trim());if(!Number.isNaN(t))return t}let t=e.trim();if(t.startsWith(`{`)&&t.endsWith(`}`)||t.startsWith(`[`)&&t.endsWith(`]`))try{return JSON.parse(t)}catch{}return e}function bC(e){return e.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase())}async function xC(e){let t=typeof window<`u`?window:globalThis,n=t.__DOCMEDOWN_REACT__,r=e?.React||n?.React||t.React,i=e?.ReactDOM||n?.ReactDOM||t.ReactDOM;if(!r)try{r=await import(`react`)}catch{r=(await import(`react`)).default}if(!i)try{i=await import(`react-dom/client`)}catch{try{i=await import(`react-dom`)}catch{}}let a=e?.createRoot||i?.createRoot||n?.createRoot||(i?.default?i.default.createRoot:void 0),o=e?.createElement||r?.createElement||n?.createElement||(r?.default?r.default.createElement:void 0);if(!a||!o)throw Error(`[DocMeDown] ReactBridge: could not resolve React.createElement and ReactDOM.createRoot. Ensure React is available.`);return{React:r,ReactDOM:i,createRoot:a,createElement:o}}function SC(e,t={}){return class extends HTMLElement{_root=null;_container=null;_observer=null;_propsStore={};_mounted=!1;connectedCallback(){if(!this._mounted){if(this._mounted=!0,t.shadowRoot){let e=this.attachShadow({mode:`open`});this._container=document.createElement(`div`),this._container.className=`dmd-react-host`,e.appendChild(this._container)}else this._container=document.createElement(`div`),this._container.className=`dmd-react-host`,this.appendChild(this._container);this.mountPromise=this.mountReact(),typeof MutationObserver<`u`&&(this._observer=new MutationObserver(()=>{this.updatePropsAndRender()}),this._observer.observe(this,{attributes:!0}))}}mountPromise=null;disconnectedCallback(){if(this._mounted=!1,this._observer&&=(this._observer.disconnect(),null),this._root){try{this._root.unmount()}catch(e){console.warn(`[DocMeDown] Error unmounting React component:`,e)}this._root=null}}collectProps(){let e={...t.defaultProps||{},...this._propsStore};for(let t=0;t<this.attributes.length;t++){let n=this.attributes[t];if(n.name.startsWith(`data-dmd-`)||n.name===`class`||n.name===`style`||n.name===`id`)continue;let r=bC(n.name);this._propsStore[r]===void 0&&(e[r]=yC(n.value))}let n=(e,t)=>{let n=new CustomEvent(e,{detail:t,bubbles:!0,composed:!0});this.dispatchEvent(n)};for(let t of Object.keys(e))if(/^on[A-Z]/.test(t)&&typeof e[t]!=`function`){let r=t.slice(2).toLowerCase();e[t]=e=>n(r,e)}return e}async mountReact(){let n=this._container;if(n)try{let{createRoot:r,createElement:i}=await xC(t);if(!this._mounted)return;let a=r(n);this._root=a;let o=this.collectProps();a.render(i(e,o))}catch(e){console.error(`[DocMeDown] Failed to mount React component bridge:`,e),this._container&&(this._container.innerHTML=`<div style="color:var(--dmd-danger, #ef4444);font-size:0.875rem;padding:0.5rem;border:1px solid currentColor;border-radius:4px;">Failed to render React component: ${e instanceof Error?e.message:String(e)}</div>`)}}async updatePropsAndRender(){if(!(!this._root||!this._container))try{let{createElement:n}=await xC(t),r=this.collectProps();this._root.render(n(e,r))}catch(e){console.warn(`[DocMeDown] Error updating React component props:`,e)}}setProp(e,t){this._propsStore[e]=t,this.updatePropsAndRender()}getProp(e){return this._propsStore[e]}}}function CC(e,t={}){return class n extends e{connectedCallback(){let e=Object.getPrototypeOf(n.prototype);if(e&&typeof e.connectedCallback==`function`&&e.connectedCallback.call(this),this.syncAttributesToProperties(),t.bubbleEvents)for(let e of t.bubbleEvents)this.addEventListener(e,t=>{(!t.bubbles||!t.composed)&&(t.stopPropagation(),this.dispatchEvent(new CustomEvent(e,{detail:t.detail,bubbles:!0,composed:!0})))})}syncAttributesToProperties(){for(let e=0;e<this.attributes.length;e++){let t=this.attributes[e];if(t.name.startsWith(`data-dmd-`)||t.name===`class`||t.name===`style`||t.name===`id`)continue;let n=bC(t.name),r=yC(t.value);try{this[n]=r}catch{}}}}}function wC(e,t){return typeof window<`u`&&typeof customElements<`u`&&(customElements.get(e)||customElements.define(e,t)),e}function TC(e,t){if(t){if(/\.svelte$/i.test(t))return`svelte`;if(/\.(tsx|jsx)$/i.test(t))return`react`;if(/\.(lit\.ts|lit\.js|wc\.ts|wc\.js)$/i.test(t))return`element`}if(typeof e==`string`){let t=e;if(/<svelte:options|<script|<style|from\s+['"]svelte/i.test(t))return`svelte`;if(/from\s+['"]lit|extends\s+LitElement/i.test(t))return`element`;if(/from\s+['"]react['"]|<[A-Z][A-Za-z0-9_]*|\buseState\b|\buseEffect\b/i.test(t))return`react`}if(typeof e==`function`){let t=e;if(t.prototype&&(t.prototype instanceof(typeof HTMLElement<`u`?HTMLElement:Object)||typeof t.prototype.connectedCallback==`function`||typeof t.prototype.render==`function`)&&(t.styles!==void 0||t.properties!==void 0||typeof t.prototype.connectedCallback==`function`))return`element`;if(t.prototype&&(t.prototype.isReactComponent||t.prototype.isPureReactComponent)||t.$$typeof===Symbol.for(`react.element`)||t.$$typeof===Symbol.for(`react.memo`)||t.$$typeof===Symbol.for(`react.forward_ref`)||/^[A-Z]/.test(t.name))return`react`}return`svelte`}function EC(e=``){MC=e?`${e.replace(/\/+$/,``)}/`:``}function DC(){return globalThis[AC]}function OC(){return new Promise((e,t)=>{if(typeof document>`u`){t(Error(`DocMeDown: the Svelte compiler engine can only be loaded in a browser.`));return}let n=`${MC}${jC}`,r=document.querySelector(`script[data-dmd-engine="compiler"]`);if(r){r.addEventListener(`load`,()=>{let r=DC();r?e(r):t(Error(`DocMeDown: ${n} did not expose ${AC}.`))}),r.addEventListener(`error`,()=>t(Error(`DocMeDown: could not load ${n}`)));return}let i=document.createElement(`script`);i.src=n,i.async=!0,i.dataset.dmdEngine=`compiler`,i.addEventListener(`load`,()=>{let r=DC();r?e(r):t(Error(`DocMeDown: ${n} did not expose ${AC}.`))}),i.addEventListener(`error`,()=>t(Error(`DocMeDown: could not load ${n}`))),document.head.appendChild(i)})}function kC(){return NC||(NC=(async()=>DC()||(PC||typeof document<`u`?OC():{compile:(await import(`svelte/compiler`)).compile}))(),NC.catch(()=>{NC=null}),NC)}var AC,jC,MC,NC,PC,FC=s((()=>{AC=`__DOCMEDOWN_COMPILER__`,jC=`docmedown-compiler.js`,MC=``,NC=null,PC=!0})),IC=l({compileSvelteComponent:()=>zC,ensureCustomElementTag:()=>_C,evaluateCompiledSvelte:()=>BC,linkSveltePrimitives:()=>RC,loadAndRegisterSvelteComponent:()=>VC});function LC(e){return e.replace(/\b([A-Za-z0-9_$]+)\s+as\s+([A-Za-z0-9_$]+)\b/g,`$1: $2`)}function RC(e){let t=e;return t=t.replace(/import\s*['"]svelte\/internal\/disclose-version['"];?/g,`/* svelte disclose-version */
|
|
492
|
+
</style>`,qS=`<script>(function(){try{var h=document.documentElement,l=window.localStorage,m=l&&l.getItem("dmd-color-mode"),f=l&&l.getItem("dmd-theme-family"),n=l&&l.getItem("dmd-theme-density"),mot=l&&l.getItem("dmd-motion");if(m!=="light"&&m!=="dark"&&m!=="auto")m="auto";if(["atlas","blueprint","terminal","editorial"].indexOf(f)<0)f="atlas";if(n!=="comfortable"&&n!=="compact")n="comfortable";if(mot!=="reduced"&&mot!=="off")mot="full";var d=m==="dark"||(m==="auto"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches),v=d?"dark":"light";h.setAttribute("data-theme",v);h.setAttribute("data-dmd-mode",v);h.setAttribute("data-dmd-theme",f);h.setAttribute("data-dmd-density",n);h.setAttribute("data-dmd-motion",mot);h.style.colorScheme=v;var isMac=/^mac/i.test((navigator.userAgentData&&navigator.userAgentData.platform)||navigator.platform||navigator.userAgent||"");h.setAttribute("data-dmd-os",isMac?"mac":"other");h.className+=" ${RS}";window.${zS}=Date.now();window.setTimeout(function(){var s=document.getElementById("${IS}");if(!s)return;s.className+=" ${LS}";s.setAttribute("aria-hidden","true");h.className=h.className.replace(" ${RS}","");window.setTimeout(function(){s.parentNode&&s.parentNode.removeChild(s)},${BS})},9000)}catch(e){}})();<\/script>`;function JS(e={}){return`${KS}${GS(e.accent,e.accentDark)}${qS}<noscript><style>#${IS}{display:none!important}html.dmd-splash-active{overflow:auto!important}</style></noscript>`}function YS({name:e=`Documentation`,tagline:t,version:n,logo:r,logoDark:i,logoAlt:a,searchPlaceholder:o}={}){let s=e.trim()||`Documentation`,c=VS(s),l=WS(r),u=WS(i),d=VS((a??s).trim()||s),f=l?`<img class="dmd-splash-logo dmd-splash-logo-light" src="${VS(l)}" alt="${d}" decoding="async" />`+(u?`<img class="dmd-splash-logo dmd-splash-logo-dark" src="${VS(u)}" alt="${d}" decoding="async" />`:``):`<span class="dmd-splash-mark" aria-hidden="true"><svg viewBox="0 0 32 32" fill="none"><path d="M10 4.5h8.6c.4 0 .8.2 1.1.5l4.3 4.3c.3.3.5.7.5 1.1V25.5a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V6.5a2 2 0 0 1 2-2Z"/><path d="M18.7 4.7v3.6a2 2 0 0 0 2 2h3.6"/><path d="M12 15h8"/><path d="M12 19.5h8"/><path d="M12 24h5"/></svg></span>`,p=n?.trim().replace(/^v/i,``).slice(0,24)??``,m=p?`<span class="dmd-splash-version">v${VS(p)}</span>`:``,h=t?.trim().slice(0,220)??``,g=h?`<p class="dmd-splash-desc">${VS(h)}</p>`:`<span class="dmd-splash-bone w70"></span>`,_=o?.trim()||`Search docs…`;return`<div id="${IS}" role="status" aria-live="polite" aria-busy="true" aria-label="Loading ${c}"><div class="dmd-splash-bar"><div class="dmd-splash-brand">${f}<span class="dmd-splash-name">${c}</span>${m}</div><div class="dmd-splash-search" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><span class="dmd-splash-search-mac">${VS(_.replace(/Ctrl\+?K/gi,`⌘K`))}</span><span class="dmd-splash-search-win">${VS(_.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`))}</span><kbd></kbd></div><div class="dmd-splash-actions" aria-hidden="true"><i></i><i></i><i class="dmd-splash-action-pill"></i><i class="dmd-splash-action-pill"></i><i></i></div><span class="dmd-splash-progress" aria-hidden="true"></span></div><div class="dmd-splash-body" aria-hidden="true"><div class="dmd-splash-nav"><span class="dmd-splash-nav-label">Documentation</span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item dmd-splash-nav-active"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w50"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w40"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span></div><div class="dmd-splash-main-wrapper"><div class="dmd-splash-article"><div class="dmd-splash-crumb-row"><span class="dmd-splash-crumb" style="width:44px"></span><span class="dmd-splash-crumb-sep"></span><span class="dmd-splash-crumb current"></span></div><h1 class="dmd-splash-doc-title">${c}</h1>${g}<div class="dmd-splash-meta"><span class="dmd-splash-bone" style="width:72px"></span><span class="dmd-splash-bone" style="width:54px"></span></div><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-callout"><span class="dmd-splash-bone w30"></span><span class="dmd-splash-bone w70"></span></div><span class="dmd-splash-h2" style="width:38%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-code"><div class="dmd-splash-code-head"><i></i><i></i><i></i></div><div class="dmd-splash-code-body"><span class="dmd-splash-bone" style="width:45%"></span><span class="dmd-splash-bone" style="width:70%"></span><span class="dmd-splash-bone" style="width:55%"></span><span class="dmd-splash-bone" style="width:62%"></span></div></div></div><div class="dmd-splash-toc"><div class="dmd-splash-toc-header"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="8" x2="21" y1="6" y2="6"/><line x1="8" x2="21" y1="12" y2="12"/><line x1="8" x2="21" y1="18" y2="18"/><line x1="3" x2="3.01" y1="6" y2="6"/><line x1="3" x2="3.01" y1="12" y2="12"/><line x1="3" x2="3.01" y1="18" y2="18"/></svg><span class="dmd-splash-toc-label">On this page</span></div><div class="dmd-splash-toc-list"><span class="dmd-splash-bone dmd-splash-toc-active" style="width:72%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w60"></span></div></div></div></div><span class="dmd-splash-sr">Loading documentation…</span></div>`}var XS=null;function ZS(){if(typeof document>`u`)return;let e=document.getElementById(IS);if(!e||e===XS||e.classList.contains(`dmd-splash-hidden`))return;XS=e;let t=window[zS],n=typeof t==`number`?Date.now()-t:950,r=Math.max(0,950-n);window.setTimeout(()=>{document.documentElement.classList.remove(RS),e.classList.add(LS),e.setAttribute(`aria-hidden`,`true`),window.setTimeout(()=>e.remove(),BS)},r)}var QS=`data-docmedown-runtime`,$S=`docmedown:offline-link-unavailable`;function eC(e){return`${e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`documentation`}-offline.html`}function tC(){return typeof window>`u`?!1:window.location.protocol===`file:`||!!window.__DOCMEDOWN_OFFLINE__}function nC(){return typeof window>`u`?!1:!!window.__DOCMEDOWN_OFFLINE__}function rC(e=`That link is unavailable in offline documentation.`){typeof window>`u`||window.dispatchEvent(new CustomEvent($S,{detail:e}))}function iC(e){let t=``,n=32768;for(let r=0;r<e.length;r+=n)t+=String.fromCharCode(...e.subarray(r,r+n));return btoa(t)}function aC(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function oC(e,t,n={},r){let i=`(async()=>{try{const b=Uint8Array.from(atob(document.getElementById("d").textContent.trim()),c=>c.charCodeAt(0)),s=await new Response(new Blob([b]).stream().pipeThrough(new DecompressionStream("gzip"))).text(),e=JSON.parse(s);if(e.version!==2)throw new Error("Unsupported offline format");window.__DOCMEDOWN_OFFLINE__=true;window.__DOCMEDOWN_DATA__=e.data;window.__DOCMEDOWN_CONFIG__=e.data.manifest.config;const u=URL.createObjectURL(new Blob([e.runtime],{type:"text/javascript"}));window.__DOCMEDOWN_RUNTIME_URL__=u;const j=document.createElement("script");j.src=u;j.onerror=()=>{URL.revokeObjectURL(u);throw new Error("Runtime bootstrap failed")};document.head.appendChild(j)}catch(e){var p=document.getElementById("${IS}");if(p){p.className+=" ${LS}";p.setAttribute("aria-hidden","true");setTimeout(function(){p.parentNode&&p.parentNode.removeChild(p)},600)}var h=document.documentElement;h.className=h.className.replace(" ${RS}","");document.getElementById("dmd-app").textContent="Could not open this offline documentation copy: "+e.message}})();`,a=aC(FS(r)),o=` type="image/svg+xml"`;return a.startsWith(`data:image/png`)||/\.png($|\?)/i.test(a)?o=` type="image/png"`:(a.startsWith(`data:image/x-icon`)||/\.ico($|\?)/i.test(a))&&(o=` type="image/x-icon"`),`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon"${o} href="${a}"><title>${aC(t)}</title>${JS(n)}</head><body>${YS({name:t,...n})}<div id="dmd-app"></div><script id="d" type="application/octet-stream">${e}<\/script><script>${i}<\/script></body></html>`}async function sC(e){if(typeof CompressionStream>`u`)throw Error(`This browser does not support local gzip compression.`);let t=new Blob([e]).stream().pipeThrough(new CompressionStream(`gzip`));return new Uint8Array(await new Response(t).arrayBuffer())}function cC(){return document.querySelector(`script[${QS}]`)||([...document.scripts].find(e=>/docmedown(?:\.iife)?\.js(?:[?#].*)?$/i.test(e.src))??null)}async function lC(e=!1){let t=cC();if(!t?.src)throw Error(`The current DocMeDown runtime script could not be located.`);let n=await fetch(t.src,{credentials:`same-origin`,cache:`force-cache`});if(!n.ok)throw Error(`Could not read the current DocMeDown runtime (${n.status}).`);let r=await n.text();if(e&&!r.includes(`DocMeDownMermaid`))try{let e=new URL(`docmedown-mermaid.js`,t.src).href,n=await fetch(e,{credentials:`same-origin`,cache:`force-cache`});if(n.ok){let e=await n.text();r=`${r}\n;${e}`}}catch{}return r}async function uC(){if(tC())throw Error(`This documentation is already an offline copy.`);let e=window.__DOCMEDOWN_DATA__;if(!e?.manifest||!e.docs)throw Error(`This site has no embedded documentation corpus to export. Run a DocMeDown build first.`);let t=await lC(Object.values(e.docs).some(e=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(e))||!!(e.nestedSites&&Object.values(e.nestedSites).some(e=>Object.values(e.docs).some(e=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(e))))),n=await sC(JSON.stringify({version:2,data:e,runtime:t})),r=FS(e.manifest.config.theme?.favicon),i=oC(iC(n),e.manifest.config.name||`Documentation`,{tagline:e.manifest.config.tagline,version:e.manifest.config.version,logo:e.manifest.config.theme?.logo?.light,logoDark:e.manifest.config.theme?.logo?.dark,logoAlt:e.manifest.config.theme?.logo?.alt,accent:e.manifest.config.theme?.accentColor,accentDark:e.manifest.config.theme?.accentColorDark},r);return{blob:new Blob([i],{type:`text/html;charset=utf-8`}),filename:eC(e.manifest.config.name||`Documentation`)}}async function dC(){let{blob:e,filename:t}=await uC(),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.hidden=!0,document.body.appendChild(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),1e3)}function fC(){if(typeof window>`u`)return null;let e=window.__DOCMEDOWN_DATA__;return e?.nestedSites&&typeof e.nestedSites==`object`?e.nestedSites:null}function pC(e){if(!e)return!1;let t=e.trim().toLowerCase();return t.startsWith(`#`)||t.startsWith(`http://`)||t.startsWith(`https://`)||t.startsWith(`mailto:`)||t.startsWith(`blob:`)||t.startsWith(`data:`)||t.startsWith(`javascript:`)?!1:t.split(`#`)[0].split(`?`)[0].endsWith(`.html`)}function mC(e,t){if(!t)return null;let n=e.trim().replace(/^\.?\//,``).split(`#`)[0].split(`?`)[0].replace(/\/index\.html?$/i,``).replace(/\.html?$/i,``).replace(/\/+$/,``);return n?t[n]?n:Object.keys(t).find(e=>n.endsWith(`/${e}`))??null:null}var hC=new Map;async function gC(e,t){let n=fC()?.[e];if(!n)throw Error(`This offline copy does not embed the documentation site "${e}".`);let r=hC.get(e);if(!r){let t=window.__DOCMEDOWN_RUNTIME_URL__;if(!t)throw Error(`This offline copy predates nested site embedding. Rebuild it with the current DocMeDown version.`);let i=await(await fetch(t)).text(),a={version:2,data:{manifest:n.manifest,docs:n.docs,componentsSource:n.componentsSource},runtime:i},o=await sC(JSON.stringify(a)),s=FS(n.manifest.config?.theme?.favicon),c=oC(iC(o),n.name||`Documentation`,{tagline:n.manifest.config?.tagline,version:n.manifest.config?.version,logo:n.manifest.config?.theme?.logo?.light,logoDark:n.manifest.config?.theme?.logo?.dark,logoAlt:n.manifest.config?.theme?.logo?.alt,accent:n.manifest.config?.theme?.accentColor,accentDark:n.manifest.config?.theme?.accentColorDark},s);r=URL.createObjectURL(new Blob([c],{type:`text/html;charset=utf-8`})),hC.set(e,r)}let i=t?t.indexOf(`#`):-1;window.location.href=i>=0?`${r}${t.substring(i)}`:r}function _C(e){if(e===null)return;if(e===``||e.toLowerCase()===`true`)return!0;if(e.toLowerCase()===`false`)return!1;if(e.toLowerCase()===`null`)return null;if(e.toLowerCase()===`undefined`)return;if(/^-?\d+(\.\d+)?$/.test(e.trim())){let t=Number(e.trim());if(!Number.isNaN(t))return t}let t=e.trim();if(t.startsWith(`{`)&&t.endsWith(`}`)||t.startsWith(`[`)&&t.endsWith(`]`))try{return JSON.parse(t)}catch{}return e}function vC(e){return e.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase())}async function yC(e){let t=typeof window<`u`?window:globalThis,n=t.__DOCMEDOWN_REACT__,r=e?.React||n?.React||t.React,i=e?.ReactDOM||n?.ReactDOM||t.ReactDOM;if(!r)try{r=await import(`react`)}catch{r=(await import(`react`)).default}if(!i)try{i=await import(`react-dom/client`)}catch{try{i=await import(`react-dom`)}catch{}}let a=e?.createRoot||i?.createRoot||n?.createRoot||(i?.default?i.default.createRoot:void 0),o=e?.createElement||r?.createElement||n?.createElement||(r?.default?r.default.createElement:void 0);if(!a||!o)throw Error(`[DocMeDown] ReactBridge: could not resolve React.createElement and ReactDOM.createRoot. Ensure React is available.`);return{React:r,ReactDOM:i,createRoot:a,createElement:o}}function bC(e,t={}){return class extends HTMLElement{_root=null;_container=null;_observer=null;_propsStore={};_mounted=!1;connectedCallback(){if(!this._mounted){if(this._mounted=!0,t.shadowRoot){let e=this.attachShadow({mode:`open`});this._container=document.createElement(`div`),this._container.className=`dmd-react-host`,e.appendChild(this._container)}else this._container=document.createElement(`div`),this._container.className=`dmd-react-host`,this.appendChild(this._container);this.mountPromise=this.mountReact(),typeof MutationObserver<`u`&&(this._observer=new MutationObserver(()=>{this.updatePropsAndRender()}),this._observer.observe(this,{attributes:!0}))}}mountPromise=null;disconnectedCallback(){if(this._mounted=!1,this._observer&&=(this._observer.disconnect(),null),this._root){try{this._root.unmount()}catch(e){console.warn(`[DocMeDown] Error unmounting React component:`,e)}this._root=null}}collectProps(){let e={...t.defaultProps||{},...this._propsStore};for(let t=0;t<this.attributes.length;t++){let n=this.attributes[t];if(n.name.startsWith(`data-dmd-`)||n.name===`class`||n.name===`style`||n.name===`id`)continue;let r=vC(n.name);this._propsStore[r]===void 0&&(e[r]=_C(n.value))}let n=(e,t)=>{let n=new CustomEvent(e,{detail:t,bubbles:!0,composed:!0});this.dispatchEvent(n)};for(let t of Object.keys(e))if(/^on[A-Z]/.test(t)&&typeof e[t]!=`function`){let r=t.slice(2).toLowerCase();e[t]=e=>n(r,e)}return e}async mountReact(){let n=this._container;if(n)try{let{createRoot:r,createElement:i}=await yC(t);if(!this._mounted)return;let a=r(n);this._root=a;let o=this.collectProps();a.render(i(e,o))}catch(e){console.error(`[DocMeDown] Failed to mount React component bridge:`,e),this._container&&(this._container.innerHTML=`<div style="color:var(--dmd-danger, #ef4444);font-size:0.875rem;padding:0.5rem;border:1px solid currentColor;border-radius:4px;">Failed to render React component: ${e instanceof Error?e.message:String(e)}</div>`)}}async updatePropsAndRender(){if(!(!this._root||!this._container))try{let{createElement:n}=await yC(t),r=this.collectProps();this._root.render(n(e,r))}catch(e){console.warn(`[DocMeDown] Error updating React component props:`,e)}}setProp(e,t){this._propsStore[e]=t,this.updatePropsAndRender()}getProp(e){return this._propsStore[e]}}}function xC(e,t={}){return class n extends e{connectedCallback(){let e=Object.getPrototypeOf(n.prototype);if(e&&typeof e.connectedCallback==`function`&&e.connectedCallback.call(this),this.syncAttributesToProperties(),t.bubbleEvents)for(let e of t.bubbleEvents)this.addEventListener(e,t=>{(!t.bubbles||!t.composed)&&(t.stopPropagation(),this.dispatchEvent(new CustomEvent(e,{detail:t.detail,bubbles:!0,composed:!0})))})}syncAttributesToProperties(){for(let e=0;e<this.attributes.length;e++){let t=this.attributes[e];if(t.name.startsWith(`data-dmd-`)||t.name===`class`||t.name===`style`||t.name===`id`)continue;let n=vC(t.name),r=_C(t.value);try{this[n]=r}catch{}}}}}function SC(e,t){return typeof window<`u`&&typeof customElements<`u`&&(customElements.get(e)||customElements.define(e,t)),e}function CC(e,t){if(t){if(/\.svelte$/i.test(t))return`svelte`;if(/\.(tsx|jsx)$/i.test(t))return`react`;if(/\.(lit\.ts|lit\.js|wc\.ts|wc\.js)$/i.test(t))return`element`}if(typeof e==`string`){let t=e;if(/<svelte:options|<script|<style|from\s+['"]svelte/i.test(t))return`svelte`;if(/from\s+['"]lit|extends\s+LitElement/i.test(t))return`element`;if(/from\s+['"]react['"]|<[A-Z][A-Za-z0-9_]*|\buseState\b|\buseEffect\b/i.test(t))return`react`}if(typeof e==`function`){let t=e;if(t.prototype&&(t.prototype instanceof(typeof HTMLElement<`u`?HTMLElement:Object)||typeof t.prototype.connectedCallback==`function`||typeof t.prototype.render==`function`)&&(t.styles!==void 0||t.properties!==void 0||typeof t.prototype.connectedCallback==`function`))return`element`;if(t.prototype&&(t.prototype.isReactComponent||t.prototype.isPureReactComponent)||t.$$typeof===Symbol.for(`react.element`)||t.$$typeof===Symbol.for(`react.memo`)||t.$$typeof===Symbol.for(`react.forward_ref`)||/^[A-Z]/.test(t.name))return`react`}return`svelte`}function wC(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/[\s_]+/g,`-`).toLowerCase()}function TC(e){return e.startsWith(`dmd-`)?e:`dmd-${wC(e)}`}function EC(e,t){return/<svelte:options\b[^>]*customElement/i.test(e)?e:`<svelte:options customElement={{ tag: "${t}" }} />\n${e}`}var DC=s((()=>{}));function OC(e=``){PC=e?`${e.replace(/\/+$/,``)}/`:``}function kC(){return globalThis[MC]}function AC(){return new Promise((e,t)=>{if(typeof document>`u`){t(Error(`DocMeDown: the Svelte compiler engine can only be loaded in a browser.`));return}let n=`${PC}${NC}`,r=document.querySelector(`script[data-dmd-engine="compiler"]`);if(r){r.addEventListener(`load`,()=>{let r=kC();r?e(r):t(Error(`DocMeDown: ${n} did not expose ${MC}.`))}),r.addEventListener(`error`,()=>t(Error(`DocMeDown: could not load ${n}`)));return}let i=document.createElement(`script`);i.src=n,i.async=!0,i.dataset.dmdEngine=`compiler`,i.addEventListener(`load`,()=>{let r=kC();r?e(r):t(Error(`DocMeDown: ${n} did not expose ${MC}.`))}),i.addEventListener(`error`,()=>t(Error(`DocMeDown: could not load ${n}`))),document.head.appendChild(i)})}function jC(){return FC||(FC=(async()=>kC()||(IC||typeof document<`u`?AC():{compile:(await import(`svelte/compiler`)).compile}))(),FC.catch(()=>{FC=null}),FC)}var MC,NC,PC,FC,IC,LC=s((()=>{MC=`__DOCMEDOWN_COMPILER__`,NC=`docmedown-compiler.js`,PC=``,FC=null,IC=!0})),RC=l({ensureCustomElementTag:()=>EC,linkSveltePrimitives:()=>BC,loadAndRegisterSvelteComponent:()=>UC});function zC(e){return e.replace(/\b([A-Za-z0-9_$]+)\s+as\s+([A-Za-z0-9_$]+)\b/g,`$1: $2`)}function BC(e){let t=e;return t=t.replace(/import\s*['"]svelte\/internal\/disclose-version['"];?/g,`/* svelte disclose-version */
|
|
493
493
|
`),t=t.replace(/import\s*\*\s*as\s+(\w+)\s*from\s*['"]svelte\/internal\/client['"];?/g,`const $1 = ((typeof window !== 'undefined' && window.__DOCMEDOWN_SVELTE__?.client) || (typeof globalThis !== 'undefined' && globalThis.__DOCMEDOWN_SVELTE__?.client));
|
|
494
|
-
`),t=t.replace(/import\s*\{([^}]+)\}\s*from\s*['"]svelte\/internal\/client['"];?/g,(e,t)=>`const { ${
|
|
495
|
-
`),t=t.replace(/import\s*\{([^}]+)\}\s*from\s*['"](?:docmedown\/motion|motion)['"];?/g,(e,t)=>`const { ${
|
|
496
|
-
`),t}async function
|
|
494
|
+
`),t=t.replace(/import\s*\{([^}]+)\}\s*from\s*['"]svelte\/internal\/client['"];?/g,(e,t)=>`const { ${zC(t)} } = ((typeof window !== 'undefined' && window.__DOCMEDOWN_SVELTE__?.client) || (typeof globalThis !== 'undefined' && globalThis.__DOCMEDOWN_SVELTE__?.client));\n`),t=t.replace(/import\s*\{([^}]+)\}\s*from\s*['"]svelte['"];?/g,(e,t)=>`const { ${zC(t)} } = ((typeof window !== 'undefined' && window.__DOCMEDOWN_SVELTE__) || (typeof globalThis !== 'undefined' && globalThis.__DOCMEDOWN_SVELTE__));\n`),t=t.replace(/import\s*\*\s*as\s+(\w+)\s*from\s*['"]svelte['"];?/g,`const $1 = ((typeof window !== 'undefined' && window.__DOCMEDOWN_SVELTE__) || (typeof globalThis !== 'undefined' && globalThis.__DOCMEDOWN_SVELTE__));
|
|
495
|
+
`),t=t.replace(/import\s*\{([^}]+)\}\s*from\s*['"](?:docmedown\/motion|motion)['"];?/g,(e,t)=>`const { ${zC(t)} } = ((typeof window !== 'undefined' && window.__DOCMEDOWN_MOTION__) || (typeof globalThis !== 'undefined' && globalThis.__DOCMEDOWN_MOTION__));\n`),t=t.replace(/import\s*\*\s*as\s+(\w+)\s*from\s*['"](?:docmedown\/motion|motion)['"];?/g,`const $1 = ((typeof window !== 'undefined' && window.__DOCMEDOWN_MOTION__) || (typeof globalThis !== 'undefined' && globalThis.__DOCMEDOWN_MOTION__));
|
|
496
|
+
`),t}async function VC(e,t){let n=await jC(),r=t.tag||TC(t.name),i=EC(e,r),a=n.compile(i,{filename:t.filename||`${t.name}.svelte`});return{js:a.js.code,css:a.css?.code,tag:r}}async function HC(e){if(typeof window>`u`||typeof document>`u`)return null;let t=BC(e),n=new Blob([t],{type:`text/javascript`}),r=URL.createObjectURL(n);try{return await import(r)}finally{URL.revokeObjectURL(r)}}async function UC(e,t){let n=await fetch(e);if(!n.ok)throw Error(`Failed to fetch component from ${e}: ${n.statusText}`);let r=await VC(await n.text(),{name:t,filename:e});return await HC(r.js),r.tag}var WC=s((()=>{LC(),DC()}));async function GC(e,t=``){let n=`${e}:::${t}`;if(typeof crypto<`u`&&crypto.subtle){let e=new TextEncoder().encode(n),t=await crypto.subtle.digest(`SHA-256`,e);return Array.from(new Uint8Array(t)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}try{return(await import(`node:crypto`)).createHash(`sha256`).update(n).digest(`hex`)}catch{let e=5381;for(let t=0;t<n.length;t++)e=e*33^n.charCodeAt(t);return(e>>>0).toString(16).padStart(16,`0`)}}function KC(){return typeof indexedDB>`u`?Promise.resolve(null):new Promise(e=>{try{let t=indexedDB.open(YC,ZC);t.onupgradeneeded=()=>{let e=t.result;e.objectStoreNames.contains(XC)||e.createObjectStore(XC)},t.onsuccess=()=>e(t.result),t.onerror=()=>e(null)}catch{e(null)}})}async function qC(e){if(QC.has(e))return QC.get(e);let t=await KC();return t?new Promise(n=>{try{let r=t.transaction(XC,`readonly`).objectStore(XC).get(e);r.onsuccess=()=>{let t=r.result;t?(QC.set(e,t),n(t)):n(null)},r.onerror=()=>n(null)}catch{n(null)}}):null}async function JC(e,t){QC.set(e,t);let n=await KC();if(n)return new Promise(r=>{try{let i=n.transaction(XC,`readwrite`);i.objectStore(XC).put(t,e),i.oncomplete=()=>r(),i.onerror=()=>r()}catch{r()}})}var YC,XC,ZC,QC,$C=s((()=>{YC=`DocMeDownComponentCache`,XC=`compiled_modules`,ZC=1,QC=new Map})),ew=l({compileTsx:()=>nw,lightweightTransformTsx:()=>tw});function tw(e,t={}){let n=t.jsxFactory||`React.createElement`,r=t.jsxFragment||`React.Fragment`,i=e;return i=i.replace(/import\s+type\s+[^;]+;?/g,`/* stripped type import */`),i=i.replace(/(?:^|\n)\s*(?:export\s+)?interface\s+[A-Za-z0-9_$]+[^{]*\{[\s\S]*?\}/g,`
|
|
497
497
|
/* stripped interface */`),i=i.replace(/(?:^|\n)\s*(?:export\s+)?type\s+[A-Za-z0-9_$]+\s*=[^;]*;/g,`
|
|
498
|
-
/* stripped type */`),i=i.replace(/<>([\s\S]*?)<\/>/g,`${n}(${r}, null, $1)`),i=i.replace(/\s+as\s+[A-Za-z0-9_$]+(?:\s*<[^>]*>)?(?=[;,)\].}:])/g,``),i=i.replace(/:\s*([A-Za-z0-9_$]+(?:\s*<[^>]*>)?)(?=[,)=])/g,``),i}async function
|
|
499
|
-
`),s=!1;try{if(navigator.clipboard?.writeText)await navigator.clipboard.writeText(o),s=!0;else throw Error(`Clipboard API unavailable`)}catch{let e=document.createElement(`textarea`);e.value=o,e.setAttribute(`readonly`,``),e.style.position=`fixed`,e.style.opacity=`0`,document.body.appendChild(e),e.select();try{s=document.execCommand(`copy`)}finally{e.remove()}}clearTimeout(a.get(e)),e.classList.toggle(`copied`,s),e.title=s?`Copied!`:`Failed`,a.set(e,setTimeout(()=>{e.classList.remove(`copied`),e.title=t?`Copy highlighted lines`:`Copy code`},2e3))}async function s(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return t.remove(),n}catch{return!1}}function c(){n&&(n.querySelectorAll(`[data-dmd-table-toggle]`).forEach(e=>{e.setAttribute(`aria-expanded`,`false`)}),n.querySelectorAll(`.dmd-table-copy-menu`).forEach(e=>{e.setAttribute(`hidden`,``)}))}function l(e){let t=e.closest(`.dmd-table-copy`)?.querySelector(`.dmd-table-copy-menu`);if(!t)return;let n=e.getAttribute(`aria-expanded`)===`true`;c(),n||(e.setAttribute(`aria-expanded`,`true`),t.removeAttribute(`hidden`),t.querySelector(`[role='menuitem']`)?.focus())}async function u(e,t){let n=e.closest(`[data-dmd-table]`),r=n?.querySelector(`table.dmd-table`),i=n?.querySelector(`[data-dmd-table-toggle]`);if(c(),!r||!i)return;i.focus();let o=await s(Yf(Xf(r),t)),l=i.querySelector(`.dmd-table-copy-label`),u=i.querySelector(`.dmd-table-copy-btn-text`);clearTimeout(a.get(i)),i.classList.toggle(`copied`,o),i.classList.toggle(`copy-failed`,!o),l&&(l.textContent=o?`Copied!`:`Try again`),u&&(u.textContent=o?`Copied!`:`Try again`);let d=n?.querySelector(`[data-dmd-table-status]`);d&&(d.textContent=o?`Table copied as ${t===`markdown`?`Markdown`:t.toUpperCase()}.`:`Could not copy table. Choose a format to try again.`),a.set(i,setTimeout(()=>{i.classList.remove(`copied`),i.classList.remove(`copy-failed`),l&&(l.textContent=`Copy table`),u&&(u.textContent=`Copy`),d&&(d.textContent=``)},2e3))}Li(()=>{if(t.html,!n)return;r(n),i();let e=e=>{e.target.closest?.(`.dmd-table-copy`)||c()},a=e=>{let t=e.target,r=t.closest?.(`.dmd-table-copy`);if(!r||!n.contains(r))return;let i=r.querySelector(`[data-dmd-table-toggle]`),a=i?.getAttribute(`aria-expanded`)===`true`;if(e.key===`Escape`&&a)e.preventDefault(),c(),i?.focus();else if(e.key===`Tab`)a&&i?.focus(),c();else if([`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)){e.preventDefault(),!a&&i&&l(i);let n=Array.from(r.querySelectorAll(`[role='menuitem']`)),o=n.indexOf(t);n[e.key===`Home`?0:e.key===`End`?n.length-1:o<0?e.key===`ArrowUp`?n.length-1:0:(o+(e.key===`ArrowUp`?-1:1)+n.length)%n.length]?.focus()}};return window.addEventListener(`click`,e),window.addEventListener(`keydown`,a),()=>{window.removeEventListener(`click`,e),window.removeEventListener(`keydown`,a)}});function d(e){let n=e.target,r=n.closest?.(`[data-dmd-table-toggle]`);if(r){e.preventDefault(),e.stopPropagation(),l(r);return}let i=n.closest?.(`[data-dmd-table-copy]`);if(i){e.preventDefault(),e.stopPropagation(),u(i,i.getAttribute(`data-dmd-table-copy`));return}if(n.closest?.(`[data-dmd-inline-edit]`)){e.preventDefault(),Q.isEditorOpen=!0;return}let a=n.closest?.(`[data-dmd-copy-selected]`);if(a){e.preventDefault(),o(a,!0);return}let s=n.closest?.(`[data-dmd-copy]`);if(s){e.preventDefault(),o(s,!1);return}let c=n.closest(`a`);if(!c)return;let d=c.getAttribute(`href`);if(d&&!(d.startsWith(`http://`)||d.startsWith(`https://`)||d.startsWith(`mailto:`))){if(eC()&&dC(d)){e.preventDefault();let t=fC(d,uC());if(t){mC(t,d).catch(()=>tC(`This nested documentation site could not be opened from the offline copy.`));return}tC();return}if(d.startsWith(`#/`)){e.preventDefault();let n=d.substring(2),r=n.indexOf(`#`),i=r===-1?n:n.substring(0,r),a=r===-1?``:n.substring(r+1);t.onNavigate?t.onNavigate(i,a):window.location.hash=d}else if(d.startsWith(`#`)){e.preventDefault();let n=d.substring(1);t.onNavigate?t.onNavigate(Q.currentSlug,n):Q.router?.scrollToAnchor(n)}}}var f=ow();Os(f,()=>t.html,!0),w(f),Ol(f,e=>n=e,()=>n),N(`click`,f,d),N(`dblclick`,f,e=>{e.target?.closest(`h1, h2, h3, h4, h5, h6, .dmd-callout, .dmd-alert`)&&(Q.isEditorOpen=!0)}),N(`keydown`,f,e=>{e.key===`Enter`&&d(e)}),F(e,f),bn()}So([`click`,`dblclick`,`keydown`]);var cw=P(`<main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div class="dmd-loading-skeleton" aria-label="Loading document" aria-busy="true"><div class="dmd-skeleton-shimmer dmd-skeleton-header"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-title"></div> <div class="dmd-skeleton-meta"><div class="dmd-skeleton-shimmer dmd-skeleton-badge"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-badge"></div></div> <div class="dmd-skeleton-paragraph"><div class="dmd-skeleton-shimmer dmd-skeleton-line"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-90"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-80"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-60"></div></div> <div class="dmd-skeleton-shimmer dmd-skeleton-card"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-code"></div> <div class="dmd-skeleton-paragraph"><div class="dmd-skeleton-shimmer dmd-skeleton-line"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-90"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-40"></div></div></div></main>`),lw=P(`<main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div class="dmd-error-container"><div class="dmd-error-code">!</div> <h2 class="dmd-error-title"> </h2> <p class="dmd-error-desc">Return to the overview, then choose another page from the documentation index.</p> <button type="button" class="dmd-btn-primary">Return to Overview</button></div></main>`),uw=P(`<div class="dmd-nav-progress" role="progressbar" aria-label="Loading page"></div>`),dw=P(`<span class="dmd-crumb-sep">/</span> <!>`,1),fw=P(`<span class="dmd-meta-item"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></span>`),pw=P(`<span class="dmd-meta-item dmd-meta-category"> </span>`),mw=P(`<button type="button" class="dmd-meta-tag dmd-clickable-tag"> </button>`),hw=P(`<div class="dmd-edit-page-container"><a target="_blank" rel="noopener noreferrer" class="dmd-edit-link"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"></path><path d="m15 5 4 4"></path></svg> <span>Edit this page on GitHub</span></a></div>`),gw=P(`<button type="button" class="dmd-page-nav-card prev"><span class="dmd-page-nav-sub"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg> Previous</span> <span class="dmd-page-nav-title"> </span></button>`),_w=P(`<div></div>`),vw=P(`<button type="button" class="dmd-page-nav-card next"><span class="dmd-page-nav-sub">Next <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg></span> <span class="dmd-page-nav-title"> </span></button>`),yw=P(`<p class="dmd-footer-copy"> </p>`),bw=P(`<p class="dmd-footer-builtwith">Documented with <a href="https://github.com" target="_blank" rel="noreferrer">DocMeDown</a> ⚡</p>`),xw=P(`<!> <div class="dmd-progress-bar" aria-hidden="true"></div> <main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div><nav class="dmd-breadcrumbs" aria-label="Breadcrumb"><!> <!></nav> <div class="dmd-content-meta"><!> <!> <!> <button type="button" class="dmd-meta-edit-btn" title="Edit this document (Ctrl+E / ⌘E)" aria-label="Edit document in 2-way editor"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg> <span>Edit</span></button></div></div> <article class="dmd-article"><!></article> <!> <div class="dmd-page-nav"><!> <!></div> <footer class="dmd-footer"><!> <!></footer></main>`,1);function Sw(e,t){yn(t,!0);let n=E(null);Li(()=>{let e=!1,t=!1,r=0,i=()=>{if(e=!1,!M(n))return;if(r<=0){M(n).style.setProperty(`--dmd-scroll-progress`,`0`);return}let t=Math.min(1,Math.max(0,window.scrollY/r));M(n).style.setProperty(`--dmd-scroll-progress`,String(t))},a=()=>{t=!1,r=document.documentElement.scrollHeight-window.innerHeight,i()},o=()=>{e||(e=!0,requestAnimationFrame(i))},s=()=>{t||(t=!0,requestAnimationFrame(a))};return a(),window.addEventListener(`scroll`,o,{passive:!0}),window.addEventListener(`resize`,s,{passive:!0}),()=>{window.removeEventListener(`scroll`,o),window.removeEventListener(`resize`,s)}});let r=vr(()=>Q.currentSlug.split(`/`).filter(Boolean)),i=vr(()=>Q.currentDoc),a=vr(()=>Q.config),o=vr(()=>{let e=Q.currentSlug,t=M(a)?.editUrl;if(!t&&M(a)?.source?.type===`github`&&M(a).source.repo){let n=M(a).source.branch||`main`,r=M(a).source.docsDir?`${M(a).source.docsDir.replace(/^\/+|\/+$/g,``)}/`:``;t=`https://github.com/${M(a).source.repo}/edit/${n}/${r}${e}.md`}return t});var s=Vo(),c=Si(s),l=e=>{F(e,cw())},u=e=>{var t=lw(),n=O(t),r=A(O(n),2),i=k(r,!0),a=A(r,4);w(n),w(t),j(()=>I(i,Q.error||`This page is unavailable.`)),N(`click`,a,()=>Q.navigate(`README`)),F(e,t)},d=e=>{var t=xw(),s=Si(t),c=e=>{F(e,uw())};L(s,e=>{Q.isNavigating&&e(c)});var l=A(s,2);Ol(l,e=>D(n,e),()=>M(n));var u=A(l,2),d=O(u);let f;var p=O(d),m=O(p);{let e=vr(()=>!Q.isScrolled);DS(m,{label:`Docs`,index:0,isHome:!0,get isScrolled(){return M(e)}})}Ss(A(m,2),17,()=>M(r),vs,(e,t,n)=>{var i=dw(),a=A(Si(i),2);{let e=vr(()=>n===M(r).length-1),i=vr(()=>!Q.isScrolled);DS(a,{get label(){return M(t)},index:n+1,get isLast(){return M(e)},get isScrolled(){return M(i)}})}F(e,i)}),w(p);var h=A(p,2),g=O(h),_=e=>{var t=fw(),n=k(A(O(t),2));w(t),j(()=>I(n,`${M(i).readingTimeMinutes??``} min read`)),F(e,t)};L(g,e=>{M(i).readingTimeMinutes&&e(_)});var v=A(g,2),y=e=>{var t=pw(),n=k(t,!0);j(()=>I(n,M(i).frontmatter.category)),F(e,t)};L(v,e=>{M(i).frontmatter?.category&&e(y)});var b=A(v,2),x=e=>{var t=Vo();Ss(Si(t),16,()=>M(i).frontmatter.tags,e=>e,(e,t)=>{var n=mw(),r=k(n);j(()=>{R(n,`title`,`View documents tagged with #${t??``}`),R(n,`aria-label`,`View documents tagged with #${t??``}`),I(r,`#${t??``}`)}),N(`click`,n,()=>Q.openTagModal(t)),F(e,n)}),F(e,t)};L(b,e=>{M(i).frontmatter?.tags&&M(i).frontmatter.tags.length>0&&e(x)});var S=A(b,2);w(h),w(d);var ee=A(d,2);gs(O(ee),()=>M(i).slug,e=>{sw(e,{get html(){return M(i).html},onNavigate:(e,t)=>Q.navigate(e,t??``)})}),w(ee);var te=A(ee,2),ne=e=>{var t=hw(),n=k(t);j(()=>R(n,`href`,M(o))),F(e,t)};L(te,e=>{M(o)&&e(ne)});var re=A(te,2),ie=O(re),ae=e=>{var t=gw(),n=k(A(O(t),2),!0);w(t),j(()=>I(n,Q.prevDoc.title)),N(`click`,t,()=>Q.navigate(Q.prevDoc.slug)),F(e,t)},oe=e=>{F(e,_w())};L(ie,e=>{Q.prevDoc?e(ae):e(oe,-1)});var se=A(ie,2),ce=e=>{var t=vw(),n=k(A(O(t),2),!0);w(t),j(()=>I(n,Q.nextDoc.title)),N(`click`,t,()=>Q.navigate(Q.nextDoc.slug)),F(e,t)},le=e=>{F(e,_w())};L(se,e=>{Q.nextDoc?e(ce):e(le,-1)}),w(re);var ue=A(re,2),de=O(ue),fe=e=>{var t=yw(),n=k(t,!0);j(()=>I(n,M(a).footer.copyright)),F(e,t)};L(de,e=>{M(a)?.footer?.copyright&&e(fe)});var pe=A(de,2),me=e=>{F(e,bw())};L(pe,e=>{M(a)?.footer?.showBuiltWith!==!1&&e(me)}),w(ue),w(u),j(()=>f=gc(d,1,`dmd-content-header`,null,f,{"dmd-header-scrolled":Q.isScrolled})),N(`click`,S,()=>Q.isEditorOpen=!0),F(e,t)};L(c,e=>{Q.isLoading?e(l):Q.error||!M(i)?e(u,1):e(d,-1)}),F(e,s),bn()}So([`click`]);var Cw=P(`<div class="dmd-editor-target-pill svelte-q838rt"><span class="dmd-editor-target-label svelte-q838rt">Target:</span> <button type="button">Source</button> <button type="button">.preview</button></div>`),ww=P(`<span class="dmd-badge-offline svelte-q838rt" title="Running in self-contained offline mode. Edits save to in-browser session & storage.">Offline Mode</span>`),Tw=P(`<button type="button" class="dmd-badge-preview svelte-q838rt" title="Click to switch to Production mode">Preview Mode</button>`),Ew=P(`<button type="button" class="dmd-badge-prod svelte-q838rt" title="Click to switch to Preview mode">Production Mode</button>`),Dw=P(`<span class="dmd-mode-label svelte-q838rt">Server:</span> <!>`,1),Ow=P(`<div class="dmd-editor-pane editor svelte-q838rt"><div class="dmd-editor-textarea-wrapper svelte-q838rt"><textarea class="dmd-editor-textarea svelte-q838rt" placeholder="Type markdown here..." spellcheck="false"></textarea></div></div>`),kw=P(`<div class="dmd-editor-pane frontmatter-pane svelte-q838rt"><div class="dmd-fm-form svelte-q838rt"><h3 class="dmd-pane-title svelte-q838rt">Frontmatter Metadata Form</h3> <p class="dmd-pane-subtitle svelte-q838rt">Directly edit document header metadata with live two-way synchronization.</p> <div class="dmd-fm-grid svelte-q838rt"><div class="dmd-fm-field svelte-q838rt"><label for="fm-title" class="svelte-q838rt">Document Title</label> <input id="fm-title" type="text" placeholder="e.g. Getting Started" class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-category" class="svelte-q838rt">Category / Section</label> <input id="fm-category" type="text" placeholder="e.g. Guides" class="svelte-q838rt"/></div> <div class="dmd-fm-field full svelte-q838rt"><label for="fm-desc" class="svelte-q838rt">Description (SEO / Social)</label> <input id="fm-desc" type="text" placeholder="Summary of this document..." class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-tags" class="svelte-q838rt">Tags (comma-separated)</label> <input id="fm-tags" type="text" placeholder="cli, svelte, hmr" class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-order" class="svelte-q838rt">Navigation Order</label> <input id="fm-order" type="number" placeholder="e.g. 1" class="svelte-q838rt"/></div> <div class="dmd-fm-field checkbox-field full svelte-q838rt"><label class="dmd-checkbox-label svelte-q838rt"><input type="checkbox" class="svelte-q838rt"/> <span>NoIndex (Exclude from Search & LLM indexing)</span></label></div></div></div></div>`),Aw=P(`<th class="svelte-q838rt"><div class="dmd-th-cell svelte-q838rt"><input type="text" class="dmd-th-input svelte-q838rt"/> <select class="dmd-th-align svelte-q838rt"><option>Left</option><option>Center</option><option>Right</option></select> <button type="button" class="dmd-cell-del svelte-q838rt" title="Delete column">✕</button></div></th>`),jw=P(`<td class="svelte-q838rt"><input type="text" class="dmd-td-input svelte-q838rt"/></td>`),Mw=P(`<tr><!><td class="dmd-td-actions svelte-q838rt"><button type="button" class="dmd-cell-del svelte-q838rt" title="Delete row">✕</button></td></tr>`),Nw=P(`<div class="dmd-editor-pane table-pane svelte-q838rt"><div class="dmd-table-builder svelte-q838rt"><div class="dmd-table-toolbar svelte-q838rt"><div class="dmd-table-toolbar-left"><h3 class="dmd-pane-title svelte-q838rt">Table Assistant</h3> <span class="dmd-pane-subtitle svelte-q838rt"> </span></div> <div class="dmd-table-toolbar-actions svelte-q838rt"><button type="button" class="dmd-btn-xs svelte-q838rt">+ Add Column</button> <button type="button" class="dmd-btn-xs svelte-q838rt">+ Add Row</button> <button type="button" class="dmd-btn-primary dmd-btn-xs svelte-q838rt">Insert into Doc</button></div></div> <div class="dmd-table-scroll-wrapper svelte-q838rt"><table class="dmd-builder-table svelte-q838rt"><thead><tr><!><th class="dmd-th-actions svelte-q838rt"></th></tr></thead><tbody></tbody></table></div></div></div>`),Pw=P(`<div class="dmd-editor-pane preview svelte-q838rt"><div class="dmd-editor-preview-header svelte-q838rt"><span>Live Render</span></div> <div class="dmd-editor-preview-content svelte-q838rt"><!></div></div>`),Fw=P(`<button type="button" class="dmd-btn-warning svelte-q838rt" title="Copy all .preview files to production source">Publish Preview</button> <button type="button" class="dmd-btn-danger svelte-q838rt" title="Delete all staged preview files">Discard Preview</button>`,1),Iw=P(`<!> <button type="button" class="dmd-btn-secondary svelte-q838rt">Save to .preview</button> <button type="button" class="dmd-btn-primary svelte-q838rt"> </button>`,1),Lw=P(`<button type="button" class="dmd-btn-secondary svelte-q838rt" title="Download edited markdown file (.md) to your computer">Download .md</button> <button type="button" class="dmd-btn-primary svelte-q838rt" title="Save changes to in-memory session and browser storage"> </button>`,1),Rw=P(`<div class="dmd-editor-backdrop svelte-q838rt" role="dialog" aria-modal="true" tabindex="-1" aria-label="2-Way Markdown Editor"><div class="dmd-editor-window svelte-q838rt"><div class="dmd-editor-header svelte-q838rt"><div class="dmd-editor-title-group svelte-q838rt"><span class="dmd-editor-icon">✏️</span> <span class="dmd-editor-title">2-Way Markdown Editor</span> <span class="dmd-editor-file-badge svelte-q838rt"> </span></div> <div class="dmd-editor-tab-group svelte-q838rt"><button type="button">Markdown</button> <button type="button">Frontmatter Form</button> <button type="button">Table Assistant</button></div> <div class="dmd-editor-header-controls svelte-q838rt"><!> <button type="button" title="Toggle Split Preview"> </button> <div class="dmd-editor-mode-toggle svelte-q838rt"><!></div> <button type="button" class="dmd-editor-close-btn svelte-q838rt" aria-label="Close Editor">✕</button></div></div> <div><!> <!></div> <div class="dmd-editor-footer svelte-q838rt"><div class="dmd-editor-status svelte-q838rt"><span class="dmd-status-text svelte-q838rt"> </span> <span class="dmd-status-lines"> </span></div> <div class="dmd-editor-actions svelte-q838rt"><!></div></div></div></div>`);function zw(e,t){yn(t,!0);let n=vr($S),r=E(``),i=E(`source`),a=E(``),o=E(!1),s=E(!0),c=vr(()=>{if(!M(r))return``;try{return lb(M(r),Q.currentSlug).html}catch{return`<p><em>Rendering preview...</em></p>`}}),l=vr(()=>M(r).split(`
|
|
498
|
+
/* stripped type */`),i=i.replace(/<>([\s\S]*?)<\/>/g,`${n}(${r}, null, $1)`),i=i.replace(/\s+as\s+[A-Za-z0-9_$]+(?:\s*<[^>]*>)?(?=[;,)\].}:])/g,``),i=i.replace(/:\s*([A-Za-z0-9_$]+(?:\s*<[^>]*>)?)(?=[,)=])/g,``),i}async function nw(e,t={}){let n=t.useCache!==!1,r=``;if(n){r=await GC(e,t.filename||`component.tsx`);let n=await qC(r);if(n)return n}let i;try{let n=await import(`esbuild`);i=n&&typeof n.transformSync==`function`?n.transformSync(e,{loader:`tsx`,target:`es2022`,format:`esm`,jsx:`transform`,jsxFactory:t.jsxFactory||`React.createElement`,jsxFragment:t.jsxFragment||`React.Fragment`}).code:tw(e,t)}catch{i=tw(e,t)}return n&&r&&await JC(r,i),i}var rw=s((()=>{$C()}));DC();var iw=class e{static instance;tags=new Map;static getInstance(){return e.instance||=new e,e.instance}constructor(){if(typeof window<`u`){let e=window.__SMD_COMPONENTS__??window.__DMD_COMPONENTS__;e&&typeof e==`object`&&this.registerMultiple(e)}}register(e,t,n){typeof t==`string`&&!n&&(n=t,t=void 0);let r=n||TC(e);return t&&typeof window<`u`&&typeof customElements<`u`&&(customElements.get(r)||customElements.define(r,t)),this.tags.set(e,r),this.tags.set(e.toLowerCase(),r),this.tags.set(r,r),r}registerReact(e,t,n){let r=n||TC(e),i=bC(t);return this.register(e,i,r)}registerWebComponent(e,t,n){let r=n||TC(e),i=xC(t);return this.register(e,i,r)}registerMultiple(e){for(let[t,n]of Object.entries(e))this.register(t,n)}resolveTag(e){let t=e.toLowerCase();return this.tags.get(e)??this.tags.get(t)??null}getAll(){return Object.fromEntries(this.tags)}async loadDmdDirectory(e=``){if(typeof window>`u`)return;let t=window;if(!t.__DOCMEDOWN_COMPONENTS_READY__&&t.__DOCMEDOWN_DATA__?.componentsSource){let{linkSveltePrimitives:e}=await Promise.resolve().then(()=>(WC(),RC)),n=t.__DOCMEDOWN_DATA__.componentsSource,r=e(n),i=new Blob([r],{type:`text/javascript`}),a=URL.createObjectURL(i);t.__DOCMEDOWN_COMPONENTS_READY__=import(a).then(e=>(setTimeout(()=>URL.revokeObjectURL(a),5e3),e.default||e)).catch(e=>{throw setTimeout(()=>URL.revokeObjectURL(a),5e3),console.error(`[DocMeDown] Error evaluating custom components module:`,e),e})}let n=t.__DOCMEDOWN_COMPONENTS_READY__;if(n&&typeof n.then==`function`)try{let e=await n;if(e&&typeof e==`object`){this.registerMultiple(e);return}}catch(e){console.warn(`[DocMeDown] Failed to load embedded custom components:`,e)}let r=e?`${e.replace(/\/$/,``)}/.dmd`:`.dmd`,i=t.__DOCMEDOWN_DATA__?.manifest?.customComponents||[];if(i.length>0){let{loadAndRegisterSvelteComponent:e}=await Promise.resolve().then(()=>(WC(),RC));for(let t of i){let n=!1;try{if((await fetch(`${r}/${t}.svelte`)).ok){let i=await e(`${r}/${t}.svelte`,t);this.register(t,i),n=!0}}catch{}if(!n)for(let e of[`.tsx`,`.jsx`])try{let i=await fetch(`${r}/${t}${e}`);if(i.ok){let r=await i.text(),{compileTsx:a}=await Promise.resolve().then(()=>(rw(),ew)),o=await a(r,{filename:`${t}${e}`}),s=new Blob([o],{type:`text/javascript`}),c=URL.createObjectURL(s);try{let e=await import(c),r=e.default||e[t]||e;this.registerReact(t,r),n=!0;break}finally{URL.revokeObjectURL(c)}}}catch(n){console.warn(`[DocMeDown] Could not dynamically load React component ${t}${e}:`,n)}if(!n)for(let e of[`.ts`,`.js`])try{let i=await import(`${r}/${t}${e}`);if(i){let e=i.default||i[t]||i;if(typeof e==`function`){this.registerWebComponent(t,e),n=!0;break}}}catch{}}}for(let e of[`${r}/setup.js`,`${r}/languages.js`,`${r}/components.js`,`${r}/index.js`])try{let t=await import(e);if(t){let e=t.default||t;if(e&&typeof e==`object`&&Object.keys(e).length>0){this.registerMultiple(e),console.log(`[DocMeDown] Loaded custom .dmd components:`,Object.keys(e));return}}}catch{}}};function aw(e,t,n){return iw.getInstance().register(e,t,n)}function ow(e,t,n){return iw.getInstance().registerReact(e,t,n)}function sw(e,t,n){return iw.getInstance().registerWebComponent(e,t,n)}var cw=P(`<div class="dmd-markdown-body" role="none"></div>`);function lw(e,t){yn(t,!0);let n;function r(e){let t=iw.getInstance(),n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(let e=r.nextNode();e!==null;e=r.nextNode()){let r=e;if(r.closest?.(`.dmd-code-block-wrapper, pre, .dmd-diagram-host, .dmd-table-toolbar, .dmd-table-copy, .dmd-table-copy-menu`)||r.classList?.contains(`dmd-copy-btn`)||r.classList?.contains(`dmd-copy-selected-btn`)||r.classList?.contains(`dmd-table-copy-btn`)||r.classList?.contains(`dmd-table-copy-item`)||r.hasAttribute?.(`data-dmd-copy`)||r.hasAttribute?.(`data-dmd-copy-selected`)||r.hasAttribute?.(`data-dmd-table-toggle`)||r.hasAttribute?.(`data-dmd-table-copy`))continue;let i=t.resolveTag(r.tagName.toLowerCase());i&&n.push({el:r,tag:i})}for(let e=n.length-1;e>=0;e--){let{el:t,tag:r}=n[e];if(t.tagName.toLowerCase()===r)continue;let i=document.createElement(r);for(let e of Array.from(t.attributes)){let t=/^\{([^{}]*)\}$/.exec(e.value);if(t){let n=t[1].trim();if(/^(false|null|undefined)$/i.test(n))continue;let r=n.toLowerCase()===`true`?``:n;if(i.setAttribute(e.name,r),n!==``&&!Number.isNaN(Number(n)))try{i[e.name]=Number(n)}catch{}continue}if(i.setAttribute(e.name,e.value),e.value!==``&&!Number.isNaN(Number(e.value)))try{i[e.name]=Number(e.value)}catch{}}for(;t.firstChild;)i.appendChild(t.firstChild);t.replaceWith(i)}for(let t of Array.from(e.querySelectorAll(`.dmd-diagram-host`))){let e=t.getAttribute(`data-dmd-diagram`);if(!e)continue;let n=document.createElement(`dmd-mermaid`);n.setAttribute(`source`,e),t.replaceWith(n)}}function i(){if(!n||!t.html||!nC())return;let e=fC();n.querySelectorAll(`a[href]`).forEach(t=>{let n=t.getAttribute(`href`)||``;if(pC(n)){if(mC(n,e)){t.setAttribute(`data-dmd-embedded-link`,`true`);return}t.classList.add(`dmd-link-disabled`),t.setAttribute(`aria-disabled`,`true`),t.setAttribute(`title`,`Unavailable in offline documentation`)}})}let a=new WeakMap;async function o(e,t=!1){let n=e.closest(`.dmd-code-block-wrapper`);if(!n)return;let r=t?`.dmd-code-line-active`:`.dmd-code-line`,i=n.querySelectorAll(r);if(!i.length)return;let o=Array.from(i).map(e=>e.textContent??``).join(`
|
|
499
|
+
`),s=!1;try{if(navigator.clipboard?.writeText)await navigator.clipboard.writeText(o),s=!0;else throw Error(`Clipboard API unavailable`)}catch{let e=document.createElement(`textarea`);e.value=o,e.setAttribute(`readonly`,``),e.style.position=`fixed`,e.style.opacity=`0`,document.body.appendChild(e),e.select();try{s=document.execCommand(`copy`)}finally{e.remove()}}clearTimeout(a.get(e)),e.classList.toggle(`copied`,s),e.title=s?`Copied!`:`Failed`,a.set(e,setTimeout(()=>{e.classList.remove(`copied`),e.title=t?`Copy highlighted lines`:`Copy code`},2e3))}async function s(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return t.remove(),n}catch{return!1}}function c(){n&&(n.querySelectorAll(`[data-dmd-table-toggle]`).forEach(e=>{e.setAttribute(`aria-expanded`,`false`)}),n.querySelectorAll(`.dmd-table-copy-menu`).forEach(e=>{e.setAttribute(`hidden`,``)}))}function l(e){let t=e.closest(`.dmd-table-copy`)?.querySelector(`.dmd-table-copy-menu`);if(!t)return;let n=e.getAttribute(`aria-expanded`)===`true`;c(),n||(e.setAttribute(`aria-expanded`,`true`),t.removeAttribute(`hidden`),t.querySelector(`[role='menuitem']`)?.focus())}async function u(e,t){let n=e.closest(`[data-dmd-table]`),r=n?.querySelector(`table.dmd-table`),i=n?.querySelector(`[data-dmd-table-toggle]`);if(c(),!r||!i)return;i.focus();let o=await s(Xf(Zf(r),t)),l=i.querySelector(`.dmd-table-copy-label`),u=i.querySelector(`.dmd-table-copy-btn-text`);clearTimeout(a.get(i)),i.classList.toggle(`copied`,o),i.classList.toggle(`copy-failed`,!o),l&&(l.textContent=o?`Copied!`:`Try again`),u&&(u.textContent=o?`Copied!`:`Try again`);let d=n?.querySelector(`[data-dmd-table-status]`);d&&(d.textContent=o?`Table copied as ${t===`markdown`?`Markdown`:t.toUpperCase()}.`:`Could not copy table. Choose a format to try again.`),a.set(i,setTimeout(()=>{i.classList.remove(`copied`),i.classList.remove(`copy-failed`),l&&(l.textContent=`Copy table`),u&&(u.textContent=`Copy`),d&&(d.textContent=``)},2e3))}Li(()=>{if(t.html,!n)return;r(n),i();let e=e=>{e.target.closest?.(`.dmd-table-copy`)||c()},a=e=>{let t=e.target,r=t.closest?.(`.dmd-table-copy`);if(!r||!n.contains(r))return;let i=r.querySelector(`[data-dmd-table-toggle]`),a=i?.getAttribute(`aria-expanded`)===`true`;if(e.key===`Escape`&&a)e.preventDefault(),c(),i?.focus();else if(e.key===`Tab`)a&&i?.focus(),c();else if([`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)){e.preventDefault(),!a&&i&&l(i);let n=Array.from(r.querySelectorAll(`[role='menuitem']`)),o=n.indexOf(t);n[e.key===`Home`?0:e.key===`End`?n.length-1:o<0?e.key===`ArrowUp`?n.length-1:0:(o+(e.key===`ArrowUp`?-1:1)+n.length)%n.length]?.focus()}};return window.addEventListener(`click`,e),window.addEventListener(`keydown`,a),()=>{window.removeEventListener(`click`,e),window.removeEventListener(`keydown`,a)}});function d(e){let n=e.target,r=n.closest?.(`[data-dmd-table-toggle]`);if(r){e.preventDefault(),e.stopPropagation(),l(r);return}let i=n.closest?.(`[data-dmd-table-copy]`);if(i){e.preventDefault(),e.stopPropagation(),u(i,i.getAttribute(`data-dmd-table-copy`));return}if(n.closest?.(`[data-dmd-inline-edit]`)){e.preventDefault(),Q.isEditorOpen=!0;return}let a=n.closest?.(`[data-dmd-copy-selected]`);if(a){e.preventDefault(),o(a,!0);return}let s=n.closest?.(`[data-dmd-copy]`);if(s){e.preventDefault(),o(s,!1);return}let c=n.closest(`a`);if(!c)return;let d=c.getAttribute(`href`);if(d&&!(d.startsWith(`http://`)||d.startsWith(`https://`)||d.startsWith(`mailto:`))){if(nC()&&pC(d)){e.preventDefault();let t=mC(d,fC());if(t){gC(t,d).catch(()=>rC(`This nested documentation site could not be opened from the offline copy.`));return}rC();return}if(d.startsWith(`#/`)){e.preventDefault();let n=d.substring(2),r=n.indexOf(`#`),i=r===-1?n:n.substring(0,r),a=r===-1?``:n.substring(r+1);t.onNavigate?t.onNavigate(i,a):window.location.hash=d}else if(d.startsWith(`#`)){e.preventDefault();let n=d.substring(1);t.onNavigate?t.onNavigate(Q.currentSlug,n):Q.router?.scrollToAnchor(n)}}}var f=cw();Os(f,()=>t.html,!0),w(f),Ol(f,e=>n=e,()=>n),N(`click`,f,d),N(`dblclick`,f,e=>{e.target?.closest(`h1, h2, h3, h4, h5, h6, .dmd-callout, .dmd-alert`)&&(Q.isEditorOpen=!0)}),N(`keydown`,f,e=>{e.key===`Enter`&&d(e)}),F(e,f),bn()}So([`click`,`dblclick`,`keydown`]);var uw=P(`<main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div class="dmd-loading-skeleton" aria-label="Loading document" aria-busy="true"><div class="dmd-skeleton-shimmer dmd-skeleton-header"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-title"></div> <div class="dmd-skeleton-meta"><div class="dmd-skeleton-shimmer dmd-skeleton-badge"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-badge"></div></div> <div class="dmd-skeleton-paragraph"><div class="dmd-skeleton-shimmer dmd-skeleton-line"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-90"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-80"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-60"></div></div> <div class="dmd-skeleton-shimmer dmd-skeleton-card"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-code"></div> <div class="dmd-skeleton-paragraph"><div class="dmd-skeleton-shimmer dmd-skeleton-line"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-90"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-40"></div></div></div></main>`),dw=P(`<main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div class="dmd-error-container"><div class="dmd-error-code">!</div> <h2 class="dmd-error-title"> </h2> <p class="dmd-error-desc">Return to the overview, then choose another page from the documentation index.</p> <button type="button" class="dmd-btn-primary">Return to Overview</button></div></main>`),fw=P(`<div class="dmd-nav-progress" role="progressbar" aria-label="Loading page"></div>`),pw=P(`<span class="dmd-crumb-sep">/</span> <!>`,1),mw=P(`<span class="dmd-meta-item"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></span>`),hw=P(`<span class="dmd-meta-item dmd-meta-category"> </span>`),gw=P(`<button type="button" class="dmd-meta-tag dmd-clickable-tag"> </button>`),_w=P(`<div class="dmd-edit-page-container"><a target="_blank" rel="noopener noreferrer" class="dmd-edit-link"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"></path><path d="m15 5 4 4"></path></svg> <span>Edit this page on GitHub</span></a></div>`),vw=P(`<button type="button" class="dmd-page-nav-card prev"><span class="dmd-page-nav-sub"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg> Previous</span> <span class="dmd-page-nav-title"> </span></button>`),yw=P(`<div></div>`),bw=P(`<button type="button" class="dmd-page-nav-card next"><span class="dmd-page-nav-sub">Next <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg></span> <span class="dmd-page-nav-title"> </span></button>`),xw=P(`<p class="dmd-footer-copy"> </p>`),Sw=P(`<p class="dmd-footer-builtwith">Documented with <a href="https://github.com" target="_blank" rel="noreferrer">DocMeDown</a> ⚡</p>`),Cw=P(`<!> <div class="dmd-progress-bar" aria-hidden="true"></div> <main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div><nav class="dmd-breadcrumbs" aria-label="Breadcrumb"><!> <!></nav> <div class="dmd-content-meta"><!> <!> <!> <button type="button" class="dmd-meta-edit-btn" title="Edit this document (Ctrl+E / ⌘E)" aria-label="Edit document in 2-way editor"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg> <span>Edit</span></button></div></div> <article class="dmd-article"><!></article> <!> <div class="dmd-page-nav"><!> <!></div> <footer class="dmd-footer"><!> <!></footer></main>`,1);function ww(e,t){yn(t,!0);let n=E(null);Li(()=>{let e=!1,t=!1,r=0,i=()=>{if(e=!1,!M(n))return;if(r<=0){M(n).style.setProperty(`--dmd-scroll-progress`,`0`);return}let t=Math.min(1,Math.max(0,window.scrollY/r));M(n).style.setProperty(`--dmd-scroll-progress`,String(t))},a=()=>{t=!1,r=document.documentElement.scrollHeight-window.innerHeight,i()},o=()=>{e||(e=!0,requestAnimationFrame(i))},s=()=>{t||(t=!0,requestAnimationFrame(a))};return a(),window.addEventListener(`scroll`,o,{passive:!0}),window.addEventListener(`resize`,s,{passive:!0}),()=>{window.removeEventListener(`scroll`,o),window.removeEventListener(`resize`,s)}});let r=vr(()=>Q.currentSlug.split(`/`).filter(Boolean)),i=vr(()=>Q.currentDoc),a=vr(()=>Q.config),o=vr(()=>{let e=Q.currentSlug,t=M(a)?.editUrl;if(!t&&M(a)?.source?.type===`github`&&M(a).source.repo){let n=M(a).source.branch||`main`,r=M(a).source.docsDir?`${M(a).source.docsDir.replace(/^\/+|\/+$/g,``)}/`:``;t=`https://github.com/${M(a).source.repo}/edit/${n}/${r}${e}.md`}return t});var s=Vo(),c=Si(s),l=e=>{F(e,uw())},u=e=>{var t=dw(),n=O(t),r=A(O(n),2),i=k(r,!0),a=A(r,4);w(n),w(t),j(()=>I(i,Q.error||`This page is unavailable.`)),N(`click`,a,()=>Q.navigate(`README`)),F(e,t)},d=e=>{var t=Cw(),s=Si(t),c=e=>{F(e,fw())};L(s,e=>{Q.isNavigating&&e(c)});var l=A(s,2);Ol(l,e=>D(n,e),()=>M(n));var u=A(l,2),d=O(u);let f;var p=O(d),m=O(p);{let e=vr(()=>!Q.isScrolled);OS(m,{label:`Docs`,index:0,isHome:!0,get isScrolled(){return M(e)}})}Ss(A(m,2),17,()=>M(r),vs,(e,t,n)=>{var i=pw(),a=A(Si(i),2);{let e=vr(()=>n===M(r).length-1),i=vr(()=>!Q.isScrolled);OS(a,{get label(){return M(t)},index:n+1,get isLast(){return M(e)},get isScrolled(){return M(i)}})}F(e,i)}),w(p);var h=A(p,2),g=O(h),_=e=>{var t=mw(),n=k(A(O(t),2));w(t),j(()=>I(n,`${M(i).readingTimeMinutes??``} min read`)),F(e,t)};L(g,e=>{M(i).readingTimeMinutes&&e(_)});var v=A(g,2),y=e=>{var t=hw(),n=k(t,!0);j(()=>I(n,M(i).frontmatter.category)),F(e,t)};L(v,e=>{M(i).frontmatter?.category&&e(y)});var b=A(v,2),x=e=>{var t=Vo();Ss(Si(t),16,()=>M(i).frontmatter.tags,e=>e,(e,t)=>{var n=gw(),r=k(n);j(()=>{R(n,`title`,`View documents tagged with #${t??``}`),R(n,`aria-label`,`View documents tagged with #${t??``}`),I(r,`#${t??``}`)}),N(`click`,n,()=>Q.openTagModal(t)),F(e,n)}),F(e,t)};L(b,e=>{M(i).frontmatter?.tags&&M(i).frontmatter.tags.length>0&&e(x)});var S=A(b,2);w(h),w(d);var ee=A(d,2);gs(O(ee),()=>M(i).slug,e=>{lw(e,{get html(){return M(i).html},onNavigate:(e,t)=>Q.navigate(e,t??``)})}),w(ee);var te=A(ee,2),ne=e=>{var t=_w(),n=k(t);j(()=>R(n,`href`,M(o))),F(e,t)};L(te,e=>{M(o)&&e(ne)});var re=A(te,2),ie=O(re),ae=e=>{var t=vw(),n=k(A(O(t),2),!0);w(t),j(()=>I(n,Q.prevDoc.title)),N(`click`,t,()=>Q.navigate(Q.prevDoc.slug)),F(e,t)},oe=e=>{F(e,yw())};L(ie,e=>{Q.prevDoc?e(ae):e(oe,-1)});var se=A(ie,2),ce=e=>{var t=bw(),n=k(A(O(t),2),!0);w(t),j(()=>I(n,Q.nextDoc.title)),N(`click`,t,()=>Q.navigate(Q.nextDoc.slug)),F(e,t)},le=e=>{F(e,yw())};L(se,e=>{Q.nextDoc?e(ce):e(le,-1)}),w(re);var ue=A(re,2),de=O(ue),fe=e=>{var t=xw(),n=k(t,!0);j(()=>I(n,M(a).footer.copyright)),F(e,t)};L(de,e=>{M(a)?.footer?.copyright&&e(fe)});var pe=A(de,2),me=e=>{F(e,Sw())};L(pe,e=>{M(a)?.footer?.showBuiltWith!==!1&&e(me)}),w(ue),w(u),j(()=>f=gc(d,1,`dmd-content-header`,null,f,{"dmd-header-scrolled":Q.isScrolled})),N(`click`,S,()=>Q.isEditorOpen=!0),F(e,t)};L(c,e=>{Q.isLoading?e(l):Q.error||!M(i)?e(u,1):e(d,-1)}),F(e,s),bn()}So([`click`]);var Tw=P(`<div class="dmd-editor-target-pill svelte-q838rt"><span class="dmd-editor-target-label svelte-q838rt">Target:</span> <button type="button">Source</button> <button type="button">.preview</button></div>`),Ew=P(`<span class="dmd-badge-offline svelte-q838rt" title="Running in self-contained offline mode. Edits save to in-browser session & storage.">Offline Mode</span>`),Dw=P(`<button type="button" class="dmd-badge-preview svelte-q838rt" title="Click to switch to Production mode">Preview Mode</button>`),Ow=P(`<button type="button" class="dmd-badge-prod svelte-q838rt" title="Click to switch to Preview mode">Production Mode</button>`),kw=P(`<span class="dmd-mode-label svelte-q838rt">Server:</span> <!>`,1),Aw=P(`<div class="dmd-editor-pane editor svelte-q838rt"><div class="dmd-editor-textarea-wrapper svelte-q838rt"><textarea class="dmd-editor-textarea svelte-q838rt" placeholder="Type markdown here..." spellcheck="false"></textarea></div></div>`),jw=P(`<div class="dmd-editor-pane frontmatter-pane svelte-q838rt"><div class="dmd-fm-form svelte-q838rt"><h3 class="dmd-pane-title svelte-q838rt">Frontmatter Metadata Form</h3> <p class="dmd-pane-subtitle svelte-q838rt">Directly edit document header metadata with live two-way synchronization.</p> <div class="dmd-fm-grid svelte-q838rt"><div class="dmd-fm-field svelte-q838rt"><label for="fm-title" class="svelte-q838rt">Document Title</label> <input id="fm-title" type="text" placeholder="e.g. Getting Started" class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-category" class="svelte-q838rt">Category / Section</label> <input id="fm-category" type="text" placeholder="e.g. Guides" class="svelte-q838rt"/></div> <div class="dmd-fm-field full svelte-q838rt"><label for="fm-desc" class="svelte-q838rt">Description (SEO / Social)</label> <input id="fm-desc" type="text" placeholder="Summary of this document..." class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-tags" class="svelte-q838rt">Tags (comma-separated)</label> <input id="fm-tags" type="text" placeholder="cli, svelte, hmr" class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-order" class="svelte-q838rt">Navigation Order</label> <input id="fm-order" type="number" placeholder="e.g. 1" class="svelte-q838rt"/></div> <div class="dmd-fm-field checkbox-field full svelte-q838rt"><label class="dmd-checkbox-label svelte-q838rt"><input type="checkbox" class="svelte-q838rt"/> <span>NoIndex (Exclude from Search & LLM indexing)</span></label></div></div></div></div>`),Mw=P(`<th class="svelte-q838rt"><div class="dmd-th-cell svelte-q838rt"><input type="text" class="dmd-th-input svelte-q838rt"/> <select class="dmd-th-align svelte-q838rt"><option>Left</option><option>Center</option><option>Right</option></select> <button type="button" class="dmd-cell-del svelte-q838rt" title="Delete column">✕</button></div></th>`),Nw=P(`<td class="svelte-q838rt"><input type="text" class="dmd-td-input svelte-q838rt"/></td>`),Pw=P(`<tr><!><td class="dmd-td-actions svelte-q838rt"><button type="button" class="dmd-cell-del svelte-q838rt" title="Delete row">✕</button></td></tr>`),Fw=P(`<div class="dmd-editor-pane table-pane svelte-q838rt"><div class="dmd-table-builder svelte-q838rt"><div class="dmd-table-toolbar svelte-q838rt"><div class="dmd-table-toolbar-left"><h3 class="dmd-pane-title svelte-q838rt">Table Assistant</h3> <span class="dmd-pane-subtitle svelte-q838rt"> </span></div> <div class="dmd-table-toolbar-actions svelte-q838rt"><button type="button" class="dmd-btn-xs svelte-q838rt">+ Add Column</button> <button type="button" class="dmd-btn-xs svelte-q838rt">+ Add Row</button> <button type="button" class="dmd-btn-primary dmd-btn-xs svelte-q838rt">Insert into Doc</button></div></div> <div class="dmd-table-scroll-wrapper svelte-q838rt"><table class="dmd-builder-table svelte-q838rt"><thead><tr><!><th class="dmd-th-actions svelte-q838rt"></th></tr></thead><tbody></tbody></table></div></div></div>`),Iw=P(`<div class="dmd-editor-pane preview svelte-q838rt"><div class="dmd-editor-preview-header svelte-q838rt"><span>Live Render</span></div> <div class="dmd-editor-preview-content svelte-q838rt"><!></div></div>`),Lw=P(`<button type="button" class="dmd-btn-warning svelte-q838rt" title="Copy all .preview files to production source">Publish Preview</button> <button type="button" class="dmd-btn-danger svelte-q838rt" title="Delete all staged preview files">Discard Preview</button>`,1),Rw=P(`<!> <button type="button" class="dmd-btn-secondary svelte-q838rt">Save to .preview</button> <button type="button" class="dmd-btn-primary svelte-q838rt"> </button>`,1),zw=P(`<button type="button" class="dmd-btn-secondary svelte-q838rt" title="Download edited markdown file (.md) to your computer">Download .md</button> <button type="button" class="dmd-btn-primary svelte-q838rt" title="Save changes to in-memory session and browser storage"> </button>`,1),Bw=P(`<div class="dmd-editor-backdrop svelte-q838rt" role="dialog" aria-modal="true" tabindex="-1" aria-label="2-Way Markdown Editor"><div class="dmd-editor-window svelte-q838rt"><div class="dmd-editor-header svelte-q838rt"><div class="dmd-editor-title-group svelte-q838rt"><span class="dmd-editor-icon">✏️</span> <span class="dmd-editor-title">2-Way Markdown Editor</span> <span class="dmd-editor-file-badge svelte-q838rt"> </span></div> <div class="dmd-editor-tab-group svelte-q838rt"><button type="button">Markdown</button> <button type="button">Frontmatter Form</button> <button type="button">Table Assistant</button></div> <div class="dmd-editor-header-controls svelte-q838rt"><!> <button type="button" title="Toggle Split Preview"> </button> <div class="dmd-editor-mode-toggle svelte-q838rt"><!></div> <button type="button" class="dmd-editor-close-btn svelte-q838rt" aria-label="Close Editor">✕</button></div></div> <div><!> <!></div> <div class="dmd-editor-footer svelte-q838rt"><div class="dmd-editor-status svelte-q838rt"><span class="dmd-status-text svelte-q838rt"> </span> <span class="dmd-status-lines"> </span></div> <div class="dmd-editor-actions svelte-q838rt"><!></div></div></div></div>`);function Vw(e,t){yn(t,!0);let n=vr(tC),r=E(``),i=E(`source`),a=E(``),o=E(!1),s=E(!0),c=vr(()=>{if(!M(r))return``;try{return ub(M(r),Q.currentSlug).html}catch{return`<p><em>Rendering preview...</em></p>`}}),l=vr(()=>M(r).split(`
|
|
500
500
|
`).length),u=E(`editor`),d=E(``),f=E(``),p=E(``),m=E(``),h=E(``),g=E(!1);function _(){let e=M(r).match(/^---\r?\n([\s\S]*?)\r?\n---/);if(!e){D(d,Q.currentDoc?.title||``,!0),D(f,``),D(p,``),D(m,``),D(h,``),D(g,!1);return}let t=e[1].split(`
|
|
501
501
|
`);for(let e of t){let t=e.indexOf(`:`);if(t>0){let n=e.slice(0,t).trim(),r=e.slice(t+1).trim();(r.startsWith(`"`)&&r.endsWith(`"`)||r.startsWith(`'`)&&r.endsWith(`'`))&&(r=r.slice(1,-1)),n===`title`?D(d,r,!0):n===`description`?D(f,r,!0):n===`category`?D(p,r,!0):n===`tags`?D(m,r.replace(/^\[|\]$/g,``).replace(/["']/g,``).trim(),!0):n===`order`?D(h,r,!0):n===`noindex`&&D(g,r===`true`)}}}function v(){let e=M(r).match(/^---\r?\n([\s\S]*?)\r?\n---/),t=e?M(r).slice(e[0].length).replace(/^\r?\n/,``):M(r),n=[`---`];if(M(d).trim()&&n.push(`title: "${M(d).trim()}"`),M(f).trim()&&n.push(`description: "${M(f).trim()}"`),M(p).trim()&&n.push(`category: "${M(p).trim()}"`),M(m).trim()){let e=M(m).split(`,`).map(e=>e.trim()).filter(Boolean);n.push(`tags: [${e.map(e=>`"${e}"`).join(`, `)}]`)}M(h)!==``&&!isNaN(Number(M(h)))&&n.push(`order: ${Number(M(h))}`),M(g)&&n.push(`noindex: true`),n.push(`---`);let i=n.length>2?n.join(`
|
|
502
502
|
`)+`
|
|
503
503
|
|
|
504
504
|
`:``;D(r,`${i}${t}`),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`Frontmatter updated in document`)}let y=E(ci([`Header 1`,`Header 2`,`Header 3`])),b=E(ci([`left`,`left`,`left`])),x=E(ci([[`Row 1 Col 1`,`Row 1 Col 2`,`Row 1 Col 3`],[`Row 2 Col 1`,`Row 2 Col 2`,`Row 2 Col 3`]]));function S(){let e=M(y).length+1;D(y,[...M(y),`Header ${e}`],!0),D(b,[...M(b),`left`],!0),D(x,M(x).map(t=>[...t,`Cell ${e}`]),!0)}function ee(e){M(y).length<=1||(D(y,M(y).filter((t,n)=>n!==e),!0),D(b,M(b).filter((t,n)=>n!==e),!0),D(x,M(x).map(t=>t.filter((t,n)=>n!==e)),!0))}function te(){let e=M(x).length+1,t=M(y).map((t,n)=>`Row ${e} Col ${n+1}`);D(x,[...M(x),t],!0)}function ne(e){M(x).length<=1||D(x,M(x).filter((t,n)=>n!==e),!0)}function re(){let e={left:`:---`,center:`:---:`,right:`---:`},t=`\n\n${`| ${M(y).join(` | `)} |`}\n${`| ${M(b).map(t=>e[t]||`:---`).join(` | `)} |`}\n${M(x).map(e=>`| ${e.join(` | `)} |`).join(`
|
|
505
|
-
`)}\n\n`;D(r,`${M(r).trimEnd()}${t}`),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`✔ Markdown table inserted at end of document`),D(u,`editor`)}Li(()=>{if(Q.isEditorOpen&&Q.currentDoc){if(Q.currentDoc.rawContent)D(r,Q.currentDoc.rawContent,!0);else if(M(n)){let e=typeof window<`u`?window:null;D(r,e?.__DOCMEDOWN_DATA__?.docs?.[Q.currentSlug]||e?.__DOCMEDOWN_DOCS__?.[Q.currentSlug]||``,!0)}else fetch(`/__dmd_api__/raw?slug=${encodeURIComponent(Q.currentSlug)}`).then(e=>e.ok?e.text():``).then(e=>{e&&D(r,e,!0)}).catch(()=>{});_(),D(a,M(n)?`Ready to edit (Offline Mode)`:`Ready to edit`,!0)}});function ie(e){e.key===`Escape`?(e.preventDefault(),Q.isEditorOpen=!1):(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`&&(e.preventDefault(),se(M(n)?`source`:M(i)))}function ae(e){if(e.key===`Tab`){e.preventDefault();let t=e.currentTarget,n=t.selectionStart,i=t.selectionEnd;D(r,`${M(r).substring(0,n)} ${M(r).substring(i)}`),setTimeout(()=>{t.selectionStart=t.selectionEnd=n+2},0)}}function oe(e){let t=e.target;D(r,t.value,!0),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`Unsaved changes (live preview active)`)}async function se(e){if(M(o))return;if(D(o,!0),M(n)){try{if(Q.updateDocContent(M(r),Q.currentSlug,!1),typeof window<`u`){let e=window;e.__DOCMEDOWN_DATA__?.docs&&(e.__DOCMEDOWN_DATA__.docs[Q.currentSlug]=M(r));try{localStorage.setItem(`dmd-offline-doc-${Q.currentSlug}`,M(r))}catch{}}D(a,`✔ Saved to offline local session & browser storage at ${new Date().toLocaleTimeString()}`)}catch(e){D(a,`✖ Save error: ${e.message||`Failed to update offline document`}`)}finally{D(o,!1)}return}D(a,`Saving to ${e}...`);let t=Q.currentDoc?.path||`${Q.currentSlug===`README`?`README`:Q.currentSlug}.md`;try{let n=await fetch(`/__dmd_api__/save`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({file:t,slug:Q.currentSlug,content:M(r),target:e})});if(n.ok)await n.json(),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`✔ Saved to ${e} (${t}) at ${new Date().toLocaleTimeString()}`),e===`preview`&&(Q.hasPreviewChanges=!0);else{let e=await n.json().catch(()=>({}));D(a,`✖ Save failed: ${e.error||n.statusText}`)}}catch(e){D(a,`✖ Save error: ${e.message||`Dev server not reachable`}`)}finally{D(o,!1)}}function ce(){let e=(Q.currentDoc?.path||`${Q.currentSlug===`README`?`README`:Q.currentSlug}.md`).split(`/`).pop()||`document.md`,t=new Blob([M(r)],{type:`text/markdown;charset=utf-8`}),n=URL.createObjectURL(t),i=document.createElement(`a`);i.href=n,i.download=e,document.body.appendChild(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3),D(a,`✔ Downloaded ${e}`)}async function le(e){if(!M(n))try{(await fetch(`/__dmd_api__/mode`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({mode:e})})).ok&&(Q.serverMode=e,D(a,`Switched server to ${e} mode`))}catch{}}async function ue(){if(!M(n)&&confirm(`Publish all staged .preview changes directly to production source files?`))try{(await fetch(`/__dmd_api__/publish-preview`,{method:`POST`})).ok&&(Q.hasPreviewChanges=!1,D(a,`✔ Preview changes published to source!`))}catch(e){D(a,`✖ Error: ${e.message}`)}}async function de(){if(!M(n)&&confirm(`Discard all staged .preview changes? This cannot be undone.`))try{(await fetch(`/__dmd_api__/discard-preview`,{method:`POST`})).ok&&(Q.hasPreviewChanges=!1,D(a,`Preview staging discarded.`))}catch(e){D(a,`✖ Error: ${e.message}`)}}function fe(e,t){if(e===Q.currentSlug&&t){let e=decodeURIComponent(t).toLowerCase().replace(/^[#]/,``),n=document.querySelector(`.dmd-editor-preview-content #${e}`);if(n){n.scrollIntoView({behavior:`smooth`,block:`start`});return}}Q.navigate(e,t)}var pe=Vo();xo(`keydown`,pi,ie);var me=Si(pe),he=e=>{var t=Rw(),pe=O(t),me=O(pe),he=O(me),ge=k(A(O(he),4));w(he);var _e=A(he,2),ve=O(_e),ye=A(ve,2),be=A(ye,2);w(_e);var xe=A(_e,2),Se=O(xe),Ce=e=>{var t=Cw(),n=A(O(t),2),r=A(n,2);w(t),j(()=>{gc(n,1,`dmd-editor-pill-btn ${M(i)===`source`?`active`:``}`,`svelte-q838rt`),gc(r,1,`dmd-editor-pill-btn ${M(i)===`preview`?`active`:``}`,`svelte-q838rt`)}),N(`click`,n,()=>D(i,`source`)),N(`click`,r,()=>D(i,`preview`)),F(e,t)};L(Se,e=>{M(n)||e(Ce)});var we=A(Se,2),Te=k(we,!0),Ee=A(we,2),De=O(Ee),Oe=e=>{F(e,ww())},ke=e=>{var t=Dw(),n=A(Si(t),2),r=e=>{var t=Tw();N(`click`,t,()=>le(`production`)),F(e,t)},i=e=>{var t=Ew();N(`click`,t,()=>le(`preview`)),F(e,t)};L(n,e=>{Q.serverMode===`preview`?e(r):e(i,-1)}),F(e,t)};L(De,e=>{M(n)?e(Oe):e(ke,-1)}),w(Ee);var Ae=A(Ee,2);w(xe),w(me);var je=A(me,2),Me=O(je),Ne=e=>{var t=Ow(),n=O(t),i=O(n);Yn(i),w(n),w(t),j(()=>Lc(i,M(r))),N(`input`,i,oe),N(`keydown`,i,ae),F(e,t)},Pe=e=>{var t=kw(),n=O(t),r=A(O(n),4),i=O(r),a=A(O(i),2);Ic(a),w(i);var o=A(i,2),s=A(O(o),2);Ic(s),w(o);var c=A(o,2),l=A(O(c),2);Ic(l),w(c);var u=A(c,2),_=A(O(u),2);Ic(_),w(u);var y=A(u,2),b=A(O(y),2);Ic(b),w(y);var x=A(y,2),S=O(x),ee=O(S);Ic(ee),pt(2),w(S),w(x),w(r),w(n),w(t),N(`input`,a,v),$c(a,()=>M(d),e=>D(d,e)),N(`input`,s,v),$c(s,()=>M(p),e=>D(p,e)),N(`input`,l,v),$c(l,()=>M(f),e=>D(f,e)),N(`input`,_,v),$c(_,()=>M(m),e=>D(m,e)),N(`input`,b,v),$c(b,()=>M(h),e=>D(h,e)),N(`change`,ee,v),nl(ee,()=>M(g),e=>D(g,e)),F(e,t)},Fe=e=>{var t=Nw(),n=O(t),r=O(n),i=O(r),a=k(A(O(i),2));w(i);var o=A(i,2),s=O(o),c=A(s,2),l=A(c,2);w(o),w(r);var u=A(r,2),d=O(u),f=O(d),p=O(f);Ss(O(p),17,()=>M(y),vs,(e,t,n)=>{var r=Aw(),i=O(r),a=O(i);Ic(a);var o=A(a,2),s=O(o);s.value=s.__value=`left`;var c=A(s);c.value=c.__value=`center`;var l=A(c);l.value=l.__value=`right`,w(o),Cc(o);var u=A(o,2);w(i),w(r),$c(a,()=>M(y)[n],e=>M(y)[n]=e),wc(o,()=>M(b)[n],e=>M(b)[n]=e),N(`click`,u,()=>ee(n)),F(e,r)}),pt(),w(p),w(f);var m=A(f);Ss(m,21,()=>M(x),vs,(e,t,n)=>{var r=Mw(),i=O(r);Ss(i,17,()=>M(t),vs,(e,t,r)=>{var i=jw(),a=O(i);Ic(a),w(i),$c(a,()=>M(x)[n][r],e=>M(x)[n][r]=e),F(e,i)});var a=k(A(i));w(r),N(`click`,a,()=>ne(n)),F(e,r)}),w(m),w(d),w(u),w(n),w(t),j(()=>I(a,`${M(y).length??``} cols × ${M(x).length??``} rows`)),N(`click`,s,S),N(`click`,c,te),N(`click`,l,re),F(e,t)};L(Me,e=>{M(u)===`editor`?e(Ne):M(u)===`frontmatter`?e(Pe,1):M(u)===`table`&&e(Fe,2)});var Ie=A(Me,2),Le=e=>{var t=Pw(),n=A(O(t),2);sw(O(n),{get html(){return M(c)},onNavigate:fe}),w(n),w(t),F(e,t)};L(Ie,e=>{M(s)&&e(Le)}),w(je);var Re=A(je,2),ze=O(Re),Be=O(ze),Ve=k(Be,!0),He=k(A(Be,2));w(ze);var Ue=A(ze,2),We=O(Ue),Ge=e=>{var t=Iw(),n=Si(t),r=e=>{var t=Fw(),n=Si(t),r=A(n,2);N(`click`,n,ue),N(`click`,r,de),F(e,t)};L(n,e=>{Q.hasPreviewChanges&&e(r)});var i=A(n,2),a=A(i,2),s=k(a,!0);j(()=>{i.disabled=M(o),a.disabled=M(o),I(s,M(o)?`Saving...`:`Save to Source`)}),N(`click`,i,()=>se(`preview`)),N(`click`,a,()=>se(`source`)),F(e,t)},Ke=e=>{var t=Lw(),n=Si(t),r=A(n,2),i=k(r,!0);j(()=>{r.disabled=M(o),I(i,M(o)?`Saving...`:`Save to Session`)}),N(`click`,n,ce),N(`click`,r,()=>se(`source`)),F(e,t)};L(We,e=>{M(n)?e(Ke,-1):e(Ge)}),w(Ue),w(Re),w(pe),w(t),j(()=>{I(ge,`${Q.currentSlug??``}.md`),gc(ve,1,`dmd-editor-tab-btn ${M(u)===`editor`?`active`:``}`,`svelte-q838rt`),gc(ye,1,`dmd-editor-tab-btn ${M(u)===`frontmatter`?`active`:``}`,`svelte-q838rt`),gc(be,1,`dmd-editor-tab-btn ${M(u)===`table`?`active`:``}`,`svelte-q838rt`),gc(we,1,`dmd-editor-btn-secondary ${M(s)?`active`:``}`,`svelte-q838rt`),I(Te,M(s)?`Split: ON`:`Split: OFF`),gc(je,1,`dmd-editor-body ${M(s)?`split`:`full`}`,`svelte-q838rt`),I(Ve,M(a)),I(He,`${M(l)??``} lines`)}),N(`click`,t,e=>{e.target===e.currentTarget&&(Q.isEditorOpen=!1)}),N(`keydown`,t,ie),N(`click`,ve,()=>D(u,`editor`)),N(`click`,ye,()=>{_(),D(u,`frontmatter`)}),N(`click`,be,()=>D(u,`table`)),N(`click`,we,()=>D(s,!M(s))),N(`click`,Ae,()=>Q.isEditorOpen=!1),F(e,t)};L(me,e=>{Q.isEditorOpen&&e(he)}),F(e,pe),bn()}So([`click`,`keydown`,`input`,`change`]);var Bw=[`atlas`,`blueprint`,`terminal`,`editorial`],Vw=[`comfortable`,`compact`];function Hw(e){try{if(typeof window>`u`)return null;let t=window.localStorage;return t?t.getItem(e):null}catch{return null}}function Uw(e,t){try{if(typeof window>`u`)return;window.localStorage?.setItem(e,t)}catch{}}function Ww(e,t){let n=Hw(e);return n&&t.includes(n)?n:null}var Gw=new class{#e=E(`auto`);get mode(){return M(this.#e)}set mode(e){D(this.#e,e,!0)}#t=E(`atlas`);get family(){return M(this.#t)}set family(e){D(this.#t,e,!0)}#n=E(`comfortable`);get density(){return M(this.#n)}set density(e){D(this.#n,e,!0)}#r=E(`full`);get motion(){return M(this.#r)}set motion(e){D(this.#r,e,!0)}#i=E(!1);get systemDark(){return M(this.#i)}set systemDark(e){D(this.#i,e,!0)}accentColor;accentColorDark;#a=vr(()=>this.mode===`auto`?this.systemDark?`dark`:`light`:this.mode);get resolvedMode(){return M(this.#a)}set resolvedMode(e){D(this.#a,e)}mediaQuery=null;mediaHandler=null;init(e={}){this.mode=Ww(`dmd-color-mode`,[`light`,`dark`,`auto`])??e.defaultMode??`auto`,this.family=Ww(`dmd-theme-family`,Bw)??e.defaultFamily??`atlas`,this.density=Ww(`dmd-theme-density`,Vw)??e.defaultDensity??`comfortable`;let t=typeof document<`u`?document.documentElement?.getAttribute(`data-dmd-motion`):null,n=t===`reduced`||t===`off`?`reduced`:Ww(`dmd-motion`,[`full`,`reduced`])??`full`;this.motion=n,this.accentColor=e.accentColor,this.accentColorDark=e.accentColorDark;try{typeof window<`u`&&(this.systemDark=window.matchMedia(`(prefers-color-scheme: dark)`).matches)}catch{}try{typeof window<`u`&&window.matchMedia&&(this.mediaQuery=window.matchMedia(`(prefers-color-scheme: dark)`),this.mediaHandler=e=>{this.systemDark=e.matches},this.mediaQuery.addEventListener(`change`,this.mediaHandler))}catch{}}setMode(e){this.mode=e,Uw(`dmd-color-mode`,e)}setFamily(e){this.family=e,Uw(`dmd-theme-family`,e)}setDensity(e){this.density=e,Uw(`dmd-theme-density`,e)}setMotion(e){this.motion=e,Uw(`dmd-motion`,e)}toggleMode(){this.setMode(this.resolvedMode===`dark`?`light`:`dark`)}destroy(){try{this.mediaQuery&&this.mediaHandler&&this.mediaQuery.removeEventListener(`change`,this.mediaHandler)}catch{}this.mediaQuery=null,this.mediaHandler=null}},Kw=P(`<button type="button"><span aria-hidden="true"><span></span> <span></span> <span></span></span> <span class="dmd-theme-family-name"> </span> <span class="dmd-theme-family-description"> </span></button>`),qw=P(`<button type="button"> </button>`),Jw=P(`<div class="dmd-appearance-panel" role="dialog" aria-label="Documentation appearance"><div class="dmd-appearance-heading"><span>Appearance</span> <button type="button" class="dmd-appearance-close" aria-label="Close appearance menu">×</button></div> <div class="dmd-appearance-section"><div class="dmd-appearance-label">Theme family</div> <div class="dmd-theme-family-grid"></div></div> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Mode</legend> <div class="dmd-segmented-control"></div> <button type="button" class="dmd-appearance-quick-mode"> </button></fieldset> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Reading density</legend> <div class="dmd-segmented-control"></div></fieldset> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Animations</legend> <div class="dmd-segmented-control"><button type="button">Smooth</button> <button type="button">Reduced</button></div></fieldset></div>`),Yw=P(`<div class="dmd-appearance"><button type="button" class="dmd-appearance-trigger" aria-haspopup="dialog"><span aria-hidden="true"></span> <span class="dmd-appearance-trigger-label">Appearance</span></button> <!></div>`);function Xw(e,t){yn(t,!0);let n=[{family:`atlas`,label:`Atlas`,description:`Editorial technical reference`},{family:`blueprint`,label:`Blueprint`,description:`Structured and schematic`},{family:`terminal`,label:`Terminal`,description:`Compact operational console`},{family:`editorial`,label:`Editorial`,description:`Spacious publication reading`}],r=E(!1),i=null;Li(()=>{if(!M(r))return;let e=e=>{i?.contains(e.target)||D(r,!1)},t=e=>{e.key===`Escape`&&D(r,!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}});var a=Yw(),o=O(a),s=O(o);pt(2),w(o);var c=A(o,2),l=e=>{var t=Jw(),i=O(t),a=A(O(i),2);w(i);var o=A(i,2),s=A(O(o),2);Ss(s,21,()=>n,e=>e.family,(e,t)=>{var n=Kw(),r=O(n),i=A(r,2),a=k(i,!0),o=k(A(i,2),!0);w(n),j(()=>{gc(n,1,`dmd-theme-family-card ${Gw.family===M(t).family?`active`:``}`),R(n,`aria-pressed`,Gw.family===M(t).family),gc(r,1,`dmd-theme-preview dmd-theme-preview-${M(t).family??``}`),I(a,M(t).label),I(o,M(t).description)}),N(`click`,n,()=>Gw.setFamily(M(t).family)),F(e,n)}),w(s),w(o);var c=A(o,2),l=A(O(c),2);Ss(l,20,()=>[`auto`,`light`,`dark`],e=>e,(e,t)=>{var n=qw(),r=k(n,!0);j(()=>{gc(n,1,uc(Gw.mode===t?`active`:``)),I(r,t)}),N(`click`,n,()=>Gw.setMode(t)),F(e,n)}),w(l);var u=A(l,2),d=k(u);w(c);var f=A(c,2),p=A(O(f),2);Ss(p,20,()=>[`comfortable`,`compact`],e=>e,(e,t)=>{var n=qw(),r=k(n,!0);j(()=>{gc(n,1,uc(Gw.density===t?`active`:``)),I(r,t)}),N(`click`,n,()=>Gw.setDensity(t)),F(e,n)}),w(p),w(f);var m=A(f,2),h=A(O(m),2),g=O(h),_=A(g,2);w(h),w(m),w(t),j(()=>{I(d,`Use ${Gw.resolvedMode===`dark`?`light`:`dark`} now`),gc(g,1,uc(Gw.motion===`full`?`active`:``)),gc(_,1,uc(Gw.motion===`reduced`?`active`:``))}),N(`click`,a,()=>D(r,!1)),N(`click`,u,()=>Gw.toggleMode()),N(`click`,g,()=>Gw.setMotion(`full`)),N(`click`,_,()=>Gw.setMotion(`reduced`)),F(e,t)};L(c,e=>{M(r)&&e(l)}),w(a),Ol(a,e=>i=e,()=>i),j(()=>{R(o,`aria-expanded`,M(r)),gc(s,1,`dmd-theme-mark dmd-theme-mark-${Gw.family??``}`)}),N(`click`,o,()=>D(r,!M(r))),F(e,a),bn()}So([`click`]);var Zw=P(`<div class="dmd-offline-download-error" role="alert"> </div>`),Qw=P(`<div class="dmd-offline-download-wrap"><button type="button" class="dmd-offline-download-btn"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3v12"></path><path d="m7 10 5 5 5-5"></path><path d="M5 21h14"></path></svg> <span> </span></button> <!></div>`);function $w(e,t){yn(t,!0);let n=$S(),r=E(`idle`),i=E(``);async function a(){if(!(n||M(r)===`compressing`)){D(r,`compressing`),D(i,``);try{await lC(),D(r,`idle`)}catch(e){D(r,`error`),D(i,e instanceof Error?e.message:String(e),!0)}}}let o=vr(()=>n?`Offline copy`:M(r)===`compressing`?`Compressing…`:`Download`),s=vr(()=>n?`This page is already a self-contained offline documentation copy.`:`Compress and download this documentation as a self-contained offline HTML file.`);var c=Qw(),l=O(c),u=k(A(O(l),2),!0);w(l);var d=A(l,2),f=e=>{var t=Zw(),n=k(t,!0);j(()=>I(n,M(i))),F(e,t)};L(d,e=>{M(i)&&e(f)}),w(c),j(()=>{l.disabled=n||M(r)===`compressing`,R(l,`aria-disabled`,n||M(r)===`compressing`),R(l,`title`,M(s)),I(u,M(o))}),N(`click`,l,a),F(e,c),bn()}So([`click`]);var eT=P(`<img class="dmd-brand-logo"/>`),tT=P(`<span class="dmd-brand-version"> </span>`),nT=P(`<button type="button" class="dmd-search-trigger"><svg class="dmd-search-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <span class="dmd-search-placeholder"> </span> <span class="dmd-search-shortcut"><kbd class="dmd-kbd"> </kbd></span></button>`),rT=P(`<span class="dmd-nav-crumb-sep">/</span> <!>`,1),iT=P(`<span class="dmd-nav-meta-item dmd-meta-item" title="Reading time"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></span>`),aT=P(`<span class="dmd-nav-meta-item dmd-meta-item dmd-meta-category"> </span>`),oT=P(`<button type="button" class="dmd-nav-meta-tag dmd-meta-tag dmd-clickable-tag"> </button>`),sT=P(`<button type="button" class="dmd-nav-meta-tag dmd-meta-tag dmd-clickable-tag dmd-nav-meta-tag-more"> </button>`),cT=P(`<!> <!>`,1),lT=P(`<div class="dmd-nav-meta"><!> <!> <!> <button type="button" class="dmd-meta-edit-btn" title="Edit this document (Ctrl+E / ⌘E)" aria-label="Edit document in 2-way editor"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg> <span>Edit</span></button></div>`),uT=P(`<a class="dmd-social-btn dmd-home-btn"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg></a>`),dT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"></path><path d="M9 18c-4.51 2-5-2-7-2"></path></svg>`),fT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.06 3.25a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z"></path></svg>`),pT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="12" r="1"></circle><circle cx="15" cy="12" r="1"></circle><path d="M7.5 7.5c3.5-1 5.5-1 9 0 1.5 2 2.5 5 2.5 8.5-2 1.5-4 1.5-5.5 1.5l-.5-1c1-.5 1.5-1 1.5-1-1.5 1-3.5 1-6 1s-4.5 0-6-1c0 0 .5.5 1.5 1l-.5 1c-1.5 0-3.5 0-5.5-1.5 0-3.5 1-6.5 2.5-8.5Z"></path></svg>`),mT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>`),hT=P(`<a class="dmd-social-btn" target="_blank" rel="noopener noreferrer"><!></a>`),gT=P(`<div class="dmd-social-links"></div>`),_T=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>`),vT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg>`),yT=P(`<header><div class="dmd-navbar-left"><button type="button" class="dmd-mobile-menu-btn" aria-controls="dmd-sidebar"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="12" y2="12"></line><line x1="4" x2="20" y1="6" y2="6"></line><line x1="4" x2="20" y1="18" y2="18"></line></svg></button> <a class="dmd-brand"><!> <span class="dmd-brand-title"> </span> <!></a></div> <div><div class="dmd-navbar-search-full"><!></div> <div class="dmd-navbar-route-bar"><nav class="dmd-nav-breadcrumbs" aria-label="Breadcrumb"><!> <!></nav> <!></div></div> <div class="dmd-navbar-right"><!> <!> <button type="button" class="dmd-social-btn dmd-edit-btn" title="Edit markdown (Ctrl+E / ⌘E)" aria-label="Edit markdown"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg></button> <!> <!> <button type="button" class="dmd-theme-toggle-btn"><!></button></div></header>`);function bT(e,t){yn(t,!0);let n=vr(()=>Q.home?Q.home.kind===`href`?Q.home.href??`#/`:`#/${Q.home.slug}`:`#/README`),r=vr(()=>Q.home?.via===`ancestor`?`Original documentation home`:`Documentation home`),i=vr(()=>Q.config),a=vr(()=>Q.isScrolled),o=vr(()=>{let e=Q.currentSlug;return e?e.split(`/`).filter(Boolean):[]}),s=E(null),c=E(null),l=null,u=!0,d=null,f=()=>{if(typeof navigator>`u`)return!1;let e=navigator,t=e.userAgentData?.platform||e.platform||``,n=e.userAgent||``;return/^mac/i.test(t)||/macintosh|mac os x/i.test(n)},p=E(ci(f()));Li(()=>{D(p,f(),!0)});let m=vr(()=>M(p)?`⌘K`:`Ctrl K`),h=vr(()=>{let e=M(i)?.search?.placeholder||`Search docs...`;return M(p)?e.replace(/Ctrl\+?K/gi,`⌘K`):e.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`)}),g=vr(()=>{let e=M(h);return e.includes(M(m))?e:`${e} (${M(m)})`});Li(()=>{let e=!1,t=50,n=()=>{let e=document.querySelector(`.dmd-content-header`),n=document.querySelector(`.dmd-navbar`),r=n?n.offsetHeight:56;if(e){let n=e.getBoundingClientRect().top+window.scrollY;t=Math.max(30,Math.round(n-r+8))}else{let e=document.querySelector(`.dmd-main-content`);if(e){let n=e.getBoundingClientRect().top+window.scrollY;t=Math.max(30,Math.round(n-r+8))}else t=50}},r=()=>{e=!1;let n=window.scrollY,r=Wa(()=>Q.isScrolled),i=r?n>=t-20:n>=t;r!==i&&(Q.isScrolled=i)},i=()=>{e||(e=!0,requestAnimationFrame(r))};return n(),r(),window.addEventListener(`scroll`,i,{passive:!0}),window.addEventListener(`resize`,n,{passive:!0}),()=>{window.removeEventListener(`scroll`,i),window.removeEventListener(`resize`,n)}}),Li(()=>{Q.currentSlug,Q.isLoading,requestAnimationFrame(()=>{let e=document.querySelector(`.dmd-content-header`),t=document.querySelector(`.dmd-navbar`),n=t?t.offsetHeight:56,r=50;e&&(r=Math.max(30,Math.round(e.getBoundingClientRect().top+window.scrollY-n+8))),Q.isScrolled=window.scrollY>=r})}),Li(()=>{let e=M(a)&&!!Q.currentDoc;if(!(!M(c)||!M(s))){if(u){u=!1,d=e,e?(M(c).style.transition=`none`,M(c).setAttribute(`data-visible`,`true`),M(c).style.opacity=`1`,M(c).style.clipPath=`inset(0 0% 0 0)`,M(c).style.pointerEvents=`auto`,requestAnimationFrame(()=>{M(c)&&M(c).style.removeProperty(`transition`)}),M(s).style.transition=`none`,M(s).setAttribute(`data-collapsed`,`true`),M(s).style.removeProperty(`max-width`),requestAnimationFrame(()=>{M(s)&&M(s).style.removeProperty(`transition`)})):(M(c).style.opacity=`0`,M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.pointerEvents=`none`,M(c).removeAttribute(`data-visible`),M(s).removeAttribute(`data-collapsed`),M(s).style.removeProperty(`max-width`));return}if(e!==d)return d=e,l!==null&&(clearTimeout(l),l=null),e?(M(s).style.removeProperty(`max-width`),M(s).setAttribute(`data-collapsed`,`true`),M(c).style.pointerEvents=`auto`,M(c).removeAttribute(`data-visible`),M(c).style.removeProperty(`transition`),M(c).style.clipPath=`inset(0 0% 0 0)`,M(c).style.opacity=`1`,l=setTimeout(()=>{l=null,M(c)&&Q.isScrolled&&Q.currentDoc&&(M(c).setAttribute(`data-visible`,`true`),M(c).style.removeProperty(`clip-path`),M(c).style.removeProperty(`opacity`))},260)):(M(s).style.removeProperty(`max-width`),M(s).removeAttribute(`data-collapsed`),M(c).style.pointerEvents=`none`,M(c).removeAttribute(`data-visible`),M(c).style.removeProperty(`transition`),M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.opacity=`0`,l=setTimeout(()=>{l=null,M(c)&&!Q.isScrolled&&(M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.opacity=`0`)},260)),()=>{l!==null&&(clearTimeout(l),l=null)}}});var _=yT(),v=O(_),y=O(v),b=A(y,2),x=O(b),S=e=>{var t=eT();j(()=>{R(t,`src`,Gw.resolvedMode===`dark`&&M(i).theme?.logo?.dark?M(i).theme.logo.dark:M(i).theme.logo.light),R(t,`alt`,M(i).theme?.logo?.alt||M(i).name)}),F(e,t)};L(x,e=>{M(i)?.theme?.logo?.light&&e(S)});var ee=A(x,2),te=k(ee,!0),ne=A(ee,2),re=e=>{var t=tT(),n=k(t);j(()=>I(n,`v${M(i).version??``}`)),F(e,t)};L(ne,e=>{M(i)?.version&&e(re)}),w(b),w(v);var ie=A(v,2);let ae;var oe=O(ie);R(oe,`aria-hidden`,!1);var se=O(oe),ce=e=>{var t=nT();R(t,`tabindex`,0);var n=A(O(t),2),r=k(n,!0),i=A(n,2),o=k(O(i),!0);w(i),w(t),j(()=>{R(t,`aria-label`,M(g)),R(t,`title`,M(a)&&Q.currentDoc?M(g):void 0),I(r,M(h)),I(o,M(m))}),N(`click`,t,()=>Q.isSearchOpen=!0),F(e,t)};L(se,e=>{M(i)?.search?.enabled!==!1&&e(ce)}),w(oe),Ol(oe,e=>D(s,e),()=>M(s));var le=A(oe,2),ue=O(le),de=O(ue);DS(de,{label:`Docs`,index:0,isHome:!0,get isScrolled(){return M(a)}}),Ss(A(de,2),17,()=>M(o),vs,(e,t,n)=>{var r=rT(),i=A(Si(r),2);{let e=vr(()=>n===M(o).length-1);DS(i,{get label(){return M(t)},index:n+1,get isLast(){return M(e)},get isScrolled(){return M(a)}})}F(e,r)}),w(ue);var fe=A(ue,2),pe=e=>{var t=lT(),n=O(t),r=e=>{var t=iT(),n=k(A(O(t),2));w(t),j(()=>I(n,`${Q.currentDoc.readingTimeMinutes??``} min read`)),F(e,t)};L(n,e=>{Q.currentDoc.readingTimeMinutes&&e(r)});var i=A(n,2),o=e=>{var t=aT(),n=k(t,!0);j(()=>I(n,Q.currentDoc.frontmatter.category)),F(e,t)};L(i,e=>{Q.currentDoc.frontmatter?.category&&e(o)});var s=A(i,2),c=e=>{let t=vr(()=>Q.currentDoc.frontmatter.tags),n=vr(()=>M(t).length>2?1:2),r=vr(()=>M(t).slice(0,M(n))),i=vr(()=>M(t).length-M(r).length);var o=cT(),s=Si(o);Ss(s,16,()=>M(r),e=>e,(e,t)=>{var n=oT(),r=k(n);j(()=>{R(n,`tabindex`,M(a)?0:-1),R(n,`title`,`View documents tagged with #${t??``}`),R(n,`aria-label`,`View documents tagged with #${t??``}`),I(r,`#${t??``}`)}),N(`click`,n,()=>Q.openTagModal(t)),F(e,n)});var c=A(s,2),l=e=>{var n=sT(),r=k(n);j(()=>{R(n,`tabindex`,M(a)?0:-1),R(n,`title`,`View all ${M(t).length} tags for this document`),R(n,`aria-label`,`View ${M(i)} more tags`),I(r,`+${M(i)??``}`)}),N(`click`,n,()=>Q.openTagModal(M(t)[1]||M(t)[0])),F(e,n)};L(c,e=>{M(i)>0&&e(l)}),F(e,o)};L(s,e=>{Q.currentDoc.frontmatter?.tags&&Q.currentDoc.frontmatter.tags.length>0&&e(c)});var l=A(s,2);w(t),j(()=>R(l,`tabindex`,M(a)?0:-1)),N(`click`,l,()=>Q.isEditorOpen=!0),F(e,t)};L(fe,e=>{Q.currentDoc&&e(pe)}),w(le),Ol(le,e=>D(c,e),()=>M(c)),w(ie);var me=A(ie,2),he=O(me),ge=e=>{var t=uT();j(()=>{R(t,`href`,M(n)),R(t,`title`,M(r))}),F(e,t)};L(he,e=>{Q.home&&e(ge)});var _e=A(he,2),ve=e=>{var t=gT();Ss(t,21,()=>M(i).socials,e=>e.url,(e,t)=>{var n=hT(),r=O(n),i=e=>{F(e,dT())},a=e=>{F(e,fT())},o=e=>{F(e,pT())},s=e=>{F(e,mT())};L(r,e=>{M(t).type===`github`?e(i):M(t).type===`gitlab`?e(a,1):M(t).type===`discord`?e(o,2):e(s,-1)}),w(n),j(()=>{R(n,`href`,M(t).url),R(n,`title`,M(t).label||M(t).type)}),F(e,n)}),w(t),F(e,t)};L(_e,e=>{M(i)?.socials&&M(i).socials.length>0&&e(ve)});var ye=A(_e,2),be=A(ye,2);$w(be,{});var xe=A(be,2);Xw(xe,{});var Se=A(xe,2),Ce=O(Se),we=e=>{F(e,_T())},Te=e=>{F(e,vT())};L(Ce,e=>{Gw.resolvedMode===`dark`?e(we):e(Te,-1)}),w(Se),w(me),w(_),j(()=>{gc(_,1,`dmd-navbar ${M(a)?`dmd-navbar-scrolled`:``}`),R(y,`aria-label`,Q.isMobileSidebarOpen?`Close documentation navigation`:`Open documentation navigation`),R(y,`aria-expanded`,Q.isMobileSidebarOpen),R(b,`href`,M(n)),I(te,M(i)?.name),ae=gc(ie,1,`dmd-navbar-center`,null,ae,{"has-route":M(a)&&Q.currentDoc}),R(le,`aria-hidden`,!M(a)||!Q.currentDoc),R(Se,`title`,`Switch to ${Gw.resolvedMode===`dark`?`light`:`dark`} mode`),R(Se,`aria-label`,`Switch to ${Gw.resolvedMode===`dark`?`light`:`dark`} mode`)}),N(`click`,y,()=>Q.isMobileSidebarOpen=!Q.isMobileSidebarOpen),N(`click`,ye,()=>Q.isEditorOpen=!0),N(`click`,Se,()=>Gw.toggleMode()),F(e,_),bn()}So([`click`]);var xT=P(`<div class="dmd-offline-toast" role="status"><span> </span> <button type="button" class="dmd-offline-toast-action">Learn more</button> <button type="button" class="dmd-offline-toast-dismiss" aria-label="Dismiss offline notice">×</button></div>`),ST=P(`<li> </li>`),CT=P(`<li>Links to other documentation files are disabled because nested sites were not embedded in this copy.</li>`),wT=P(`<div class="dmd-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1" aria-label="Offline documentation limitations"><section class="dmd-offline-modal"><div class="dmd-offline-modal-header"><span>About this offline copy</span> <button type="button" class="dmd-appearance-close" aria-label="Close offline notice">×</button></div> <ul class="dmd-offline-modal-list"><li>Every page, the search index, diagrams, themes, and the runtime are embedded in this single file.</li> <!> <li>Links to the internet, such as repository or social links, still require a connection and may not always
|
|
506
|
-
work as intended.</li> <li>This copy never checks for updates. It is required to rebuild the documentation to refresh its content.</li></ul> <div class="dmd-offline-modal-footer"><button type="button" class="dmd-btn-primary">Got it</button></div></section></div>`),TT=P(`<!> <!>`,1);function ET(e,t){yn(t,!0);let n=`This offline copy has limited features.`,r=E(!1),i=E(n),a=E(!1),o=null,s=vr(()=>Object.keys(uC()??{}).length),c=vr(eC);function l(e){D(i,e,!0),D(r,!0),o!==null&&window.clearTimeout(o),o=window.setTimeout(()=>D(r,!1),12e3)}Li(()=>{if(!M(c))return;l(n);let e=e=>{let t=e.detail;l(t||`That link is unavailable in offline documentation.`)};return window.addEventListener(ZS,e),()=>{window.removeEventListener(ZS,e),o!==null&&window.clearTimeout(o)}}),Li(()=>{if(!M(a))return;let e=e=>{e.key===`Escape`&&D(a,!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});var u=Vo(),d=Si(u),f=e=>{var t=TT(),n=Si(t),o=e=>{var t=xT(),n=O(t),o=k(n,!0),s=A(n,2),c=A(s,2);w(t),j(()=>I(o,M(i))),N(`click`,s,()=>{D(r,!1),D(a,!0)}),N(`click`,c,()=>D(r,!1)),F(e,t)};L(n,e=>{M(r)&&e(o)});var c=A(n,2),l=e=>{var t=wT(),n=O(t),r=O(n),i=A(O(r),2);w(r);var o=A(r,2),c=A(O(o),2),l=e=>{var t=ST(),n=k(t,!0);j(()=>I(n,M(s)===1?`The nested documentation site opens directly from this file — no other files are needed.`:`${M(s)} nested documentation sites open directly from this file — no other files are needed.`)),F(e,t)},u=e=>{F(e,CT())};L(c,e=>{M(s)>0?e(l):e(u,-1)}),pt(4),w(o);var d=k(A(o,2));w(n),w(t),N(`click`,t,e=>{e.target===e.currentTarget&&D(a,!1)}),N(`keydown`,t,e=>{e.key===`Escape`&&D(a,!1)}),N(`click`,i,()=>D(a,!1)),N(`click`,d,()=>D(a,!1)),F(e,t)};L(c,e=>{M(a)&&e(l)}),F(e,t)};L(d,e=>{M(c)&&e(f)}),F(e,u),bn()}So([`click`,`keydown`]);var DT=P(`<button type="button" class="dmd-search-recent-chip"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></button>`),OT=P(`<div class="dmd-search-recent"><div class="dmd-search-recent-header"><span class="dmd-search-recent-title">Recent Searches</span> <button type="button" class="dmd-search-recent-clear">Clear all</button></div> <div class="dmd-search-recent-tags"></div></div>`),kT=P(`<div class="dmd-search-empty"> </div>`),AT=P(`<span class="dmd-search-item-cat"> </span>`),jT=P(`<p class="dmd-search-item-snippet"></p>`),MT=P(`<button type="button"><div class="dmd-search-item-header"><span class="dmd-search-item-title"></span> <!></div> <!></button>`),NT=P(`<div class="dmd-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1" aria-label="Documentation search"><div class="dmd-search-modal"><div class="dmd-search-input-wrapper"><svg class="dmd-search-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <input type="text" class="dmd-search-input"/> <kbd class="dmd-search-escape dmd-kbd">ESC</kbd> <button type="button" class="dmd-search-close" aria-label="Close search"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" x2="6" y1="6" y2="18"></line><line x1="6" x2="18" y1="6" y2="18"></line></svg></button></div> <!> <div class="dmd-search-results"><!> <!></div> <div class="dmd-search-footer"><span><kbd class="dmd-kbd">↑</kbd> <kbd class="dmd-kbd">↓</kbd> Navigate</span> <span><kbd class="dmd-kbd">↵</kbd> Select</span> <span><kbd class="dmd-kbd">ESC</kbd> Close</span></div></div></div>`);function PT(e,t){yn(t,!0);let n=z(t,`placeholder`,3,`Search docs...`),r=E(``),i=E(ci([])),a=E(0),o=E(null),s=E(null),c=null,l=()=>{if(typeof navigator>`u`)return!1;let e=navigator,t=e.userAgentData?.platform||e.platform||``,n=e.userAgent||``;return/^mac/i.test(t)||/macintosh|mac os x/i.test(n)},u=E(ci(l()));Li(()=>{D(u,l(),!0)});let d=vr(()=>{let e=n()||`Search documentation...`;return M(u)?e.replace(/Ctrl\+?K/gi,`⌘K`):e.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`)}),f=`dmd:recent-searches`,p=E(ci([]));function m(){try{let e=localStorage.getItem(f);D(p,e?JSON.parse(e):[],!0)}catch{D(p,[],!0)}}function h(e){let t=e.trim();if(t)try{let e=[t,...M(p).filter(e=>e.toLowerCase()!==t.toLowerCase())].slice(0,6);localStorage.setItem(f,JSON.stringify(e)),D(p,e,!0)}catch{}}function g(){try{localStorage.removeItem(f),D(p,[],!0)}catch{}}function _(e,t){if(!e||!t)return e;let n=t.trim(),r=n.split(/\s+/).filter(Boolean);if(r.length===0)return e;let i=[n,...r].sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),a=RegExp(`(${i})`,`gi`);return e.replace(a,`<mark class="dmd-search-highlight">$1</mark>`)}Li(()=>{if(t.isOpen){c=document.activeElement||null,m();let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=window.setTimeout(()=>M(o)?.focus(),50);return D(a,0),()=>{window.clearTimeout(t),document.body.style.overflow=e,c&&typeof c.focus==`function`&&(c.focus(),c=null)}}D(r,``),D(i,[],!0)});let v=E(``);Li(()=>{let e=M(r).trim();if(!e){D(v,``);return}let t=window.setTimeout(()=>{D(v,e,!0)},120);return()=>window.clearTimeout(t)}),Li(()=>{if(!M(v)){D(i,[],!0);return}D(i,t.searchIndex.search(M(v)),!0),D(a,0)});function y(e){if(e.key===`Escape`)t.onClose();else if(e.key===`ArrowDown`)e.preventDefault(),D(a,M(i).length>0?(M(a)+1)%M(i).length:0,!0);else if(e.key===`ArrowUp`)e.preventDefault(),D(a,M(i).length>0?(M(a)-1+M(i).length)%M(i).length:0,!0);else if(e.key===`Enter`)e.preventDefault(),M(i)[M(a)]&&(h(M(r)),t.onSelect(M(i)[M(a)].slug),t.onClose());else if(e.key===`Tab`&&M(s)){let t=M(s).querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(t.length>0){let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())}}}function b(e){h(M(r)||e.title),t.onSelect(e.slug),t.onClose()}function x(e){D(r,e,!0),M(o)?.focus()}var S=Vo(),ee=Si(S),te=e=>{var n=NT(),c=O(n),l=O(c),u=A(O(l),2);Ic(u),Ol(u,e=>D(o,e),()=>M(o));var f=A(u,4);w(l);var m=A(l,2),h=e=>{var t=OT(),n=O(t),r=A(O(n),2);w(n);var i=A(n,2);Ss(i,20,()=>M(p),e=>e,(e,t)=>{var n=DT(),r=k(A(O(n),2),!0);w(n),j(()=>I(r,t)),N(`click`,n,()=>x(t)),F(e,n)}),w(i),w(t),N(`click`,r,g),F(e,t)};L(m,e=>{!M(v)&&M(p).length>0&&e(h)});var S=A(m,2),ee=O(S),te=e=>{var t=kT(),n=k(t);j(()=>I(n,`No results found for “${M(v)??``}”`)),F(e,t)};L(ee,e=>{M(v)&&M(i).length===0&&e(te)}),Ss(A(ee,2),19,()=>M(i),e=>e.id,(e,t,n)=>{var r=MT(),i=O(r),o=O(i);Os(o,()=>_(M(t).title,M(v)),!0),w(o);var s=A(o,2),c=e=>{var n=AT(),r=k(n,!0);j(()=>I(r,M(t).category)),F(e,n)};L(s,e=>{M(t).category&&e(c)}),w(i);var l=A(i,2),u=e=>{var n=jT();Os(n,()=>_(M(t).snippet,M(v)),!0),w(n),F(e,n)};L(l,e=>{M(t).snippet&&e(u)}),w(r),j(()=>gc(r,1,`dmd-search-item ${M(n)===M(a)?`selected`:``}`)),N(`click`,r,()=>b(M(t))),xo(`mouseenter`,r,()=>D(a,M(n),!0)),F(e,r)}),w(S),pt(2),w(c),Ol(c,e=>D(s,e),()=>M(s)),w(n),j(()=>{R(u,`placeholder`,M(d)),R(u,`aria-label`,M(d))}),N(`click`,n,e=>{e.target===e.currentTarget&&t.onClose()}),N(`keydown`,n,y),$c(u,()=>M(r),e=>D(r,e)),N(`click`,f,function(...e){t.onClose?.apply(this,e)}),F(e,n)};L(ee,e=>{t.isOpen&&e(te)}),F(e,S),bn()}So([`click`,`keydown`]);var FT=P(`<ul class="dmd-sidebar-sublist"></ul>`),IT=P(`<li class="dmd-sidebar-category"><button type="button" class="dmd-category-header"><span class="dmd-category-title"> </span> <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg></button> <!></li>`),LT=P(`<span> </span>`),RT=P(`<li class="dmd-sidebar-item"><a><span class="dmd-item-icon" aria-hidden="true"><!></span> <span class="dmd-item-body"><span class="dmd-item-title"> </span> <!></span></a></li>`);function zT(e,t){yn(t,!0);let n=E(null),r=vr(()=>M(n)===null?t.node.collapsed??!1:M(n)),i=vr(()=>t.node.isCategory);Li(()=>{t.node.id,D(n,null)});function a(){D(n,!M(r))}var o=Vo(),s=Si(o),c=e=>{var n=IT(),i=O(n),o=O(i),s=k(o,!0),c=A(o,2);w(i);var l=A(i,2),u=e=>{var n=FT();Ss(n,21,()=>t.node.children,e=>e.id,(e,n)=>{zT(e,{get node(){return M(n)},get currentSlug(){return t.currentSlug},get onNavigate(){return t.onNavigate}})}),w(n),F(e,n)};L(l,e=>{!M(r)&&t.node.children&&e(u)}),w(n),j(()=>{R(i,`aria-expanded`,!M(r)),I(s,t.node.title),gc(c,0,`dmd-category-arrow ${M(r)?`collapsed`:``}`)}),N(`click`,i,a),F(e,n)},l=e=>{let n=vr(()=>t.currentSlug===t.node.slug||t.currentSlug===`README`&&t.node.slug===`README`);var r=RT(),i=O(r),a=O(i),o=O(a),s=e=>{var n=Bo();j(()=>I(n,t.node.icon)),F(e,n)};L(o,e=>{t.node.icon&&e(s)}),w(a);var c=A(a,2),l=O(c),u=k(l,!0),d=A(l,2),f=e=>{var n=LT(),r=k(n,!0);j(()=>{gc(n,1,`dmd-badge dmd-badge-${(t.node.badgeType||`info`)??``}`),I(r,t.node.badge)}),F(e,n)};L(d,e=>{t.node.badge&&e(f)}),w(c),w(i),w(r),j(()=>{R(i,`href`,`#/${t.node.slug}`),gc(i,1,`dmd-sidebar-link ${M(n)?`active`:``}`),I(u,t.node.title)}),N(`click`,i,e=>{e.preventDefault(),t.node.slug&&t.onNavigate(t.node.slug)}),F(e,r)};L(s,e=>{M(i)?e(c):e(l,-1)}),F(e,o),bn()}So([`click`]);var BT=P(`<button type="button" class="dmd-sidebar-backdrop" aria-label="Close documentation navigation"></button>`),VT=P(`<li class="dmd-sidebar-status">Loading pages…</li>`),HT=P(`<!> <aside id="dmd-sidebar" aria-label="Documentation navigation"><div class="dmd-sidebar-heading"><div class="dmd-sidebar-label">Documentation</div> <button type="button" class="dmd-sidebar-close" aria-label="Close documentation navigation"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" x2="6" y1="6" y2="18"></line><line x1="6" x2="18" y1="6" y2="18"></line></svg></button></div> <nav class="dmd-sidebar-nav"><ul class="dmd-sidebar-list"><!> <!></ul></nav></aside>`,1);function UT(e,t){yn(t,!0);let n=E(null),r=null;Li(()=>{if(!Q.isMobileSidebarOpen){r&&typeof r.focus==`function`&&(r.focus(),r=null);return}r=document.activeElement||null;let e=document.body.style.overflow;document.body.style.overflow=`hidden`,(M(n)?.querySelector(`.dmd-sidebar-close`))?.focus();let t=e=>{if(e.key===`Escape`){Q.isMobileSidebarOpen=!1;return}if(e.key===`Tab`&&M(n)){let t=M(n).querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(t.length>0){let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())}}};return window.addEventListener(`keydown`,t),()=>{document.body.style.overflow=e,window.removeEventListener(`keydown`,t)}}),Li(()=>{let e=0,t=0,n=!1,r=r=>{r.touches.length===1&&(e=r.touches[0].clientX,t=r.touches[0].clientY,(Q.isMobileSidebarOpen||e<30)&&(n=!0))},i=r=>{if(!n||r.changedTouches.length!==1)return;n=!1;let i=r.changedTouches[0].clientX,a=r.changedTouches[0].clientY,o=i-e,s=a-t;Math.abs(s)>80||(Q.isMobileSidebarOpen&&o<-50?Q.isMobileSidebarOpen=!1:!Q.isMobileSidebarOpen&&e<30&&o>60&&(Q.isMobileSidebarOpen=!0))};return window.addEventListener(`touchstart`,r,{passive:!0}),window.addEventListener(`touchend`,i,{passive:!0}),()=>{window.removeEventListener(`touchstart`,r),window.removeEventListener(`touchend`,i)}});var i=HT(),a=Si(i),o=e=>{var t=BT();N(`click`,t,()=>Q.isMobileSidebarOpen=!1),F(e,t)};L(a,e=>{Q.isMobileSidebarOpen&&e(o)});var s=A(a,2),c=O(s),l=A(O(c),2);w(c);var u=A(c,2),d=O(u),f=O(d),p=e=>{F(e,VT())};L(f,e=>{Q.tree.length===0&&Q.isLoading&&e(p)}),Ss(A(f,2),17,()=>Q.tree,e=>e.id,(e,t)=>{zT(e,{get node(){return M(t)},get currentSlug(){return Q.currentSlug},onNavigate:e=>Q.navigate(e)})}),w(d),w(u),w(s),Ol(s,e=>D(n,e),()=>M(n)),j(()=>gc(s,1,`dmd-sidebar ${Q.isMobileSidebarOpen?`mobile-open`:``}`)),N(`click`,l,()=>Q.isMobileSidebarOpen=!1),F(e,i),bn()}So([`click`]);var WT=P(`<li><a><!></a></li>`),GT=P(`<aside><button type="button" class="dmd-toc-header" aria-controls="dmd-toc-list"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line></svg> <span>On this page</span> <svg class="dmd-toc-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"></polyline></svg></button> <ul class="dmd-toc-list" id="dmd-toc-list"></ul></aside>`);function KT(e,t){yn(t,!0);let n=E(``),r=E(!1);Li(()=>{if(t.headings.length===0)return;let e=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&t.target.id!==M(n)&&D(n,t.target.id,!0)},{rootMargin:`-80px 0% -60% 0%`,threshold:0});for(let n of t.headings){let t=document.getElementById(n.id);t&&e.observe(t)}return()=>e.disconnect()}),Li(()=>{if(!M(n))return;let e=document.querySelector(`.dmd-toc-link[href*="#${M(n)}"]`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`,behavior:`smooth`})});function i(e){let i=document.getElementById(e.id);if(i){wx(i);try{typeof window<`u`&&window.location.protocol===`file:`?window.location.hash=`#/${t.currentSlug}#${e.id}`:history.pushState(null,``,`#/${t.currentSlug}#${e.id}`)}catch{try{window.location.hash=`#/${t.currentSlug}#${e.id}`}catch{}}D(n,e.id,!0),D(r,!1)}}var a=GT(),o=O(a),s=A(o,2);Ss(s,21,()=>t.headings,e=>e.id,(e,r)=>{var a=WT(),o=O(a),s=O(o),c=e=>{var t=Vo();Os(Si(t),()=>M(r).html.replace(/<a\b[^>]*>([\s\S]*?)<\/a>/gi,`$1`)),F(e,t)},l=e=>{var t=Bo();j(()=>I(t,M(r).text)),F(e,t)};L(s,e=>{M(r).html?e(c):e(l,-1)}),w(o),w(a),j(()=>{gc(a,1,`dmd-toc-item dmd-toc-level-${M(r).level??``}`),R(o,`href`,`#/${t.currentSlug}#${M(r).id}`),gc(o,1,`dmd-toc-link ${M(n)===M(r).id?`active`:``}`)}),N(`click`,o,e=>{e.preventDefault(),i(M(r))}),F(e,a)}),w(s),w(a),j(()=>{gc(a,1,`dmd-toc ${M(r)?`is-open`:``}`),R(o,`aria-expanded`,M(r))}),N(`click`,o,()=>D(r,!M(r))),F(e,a),bn()}So([`click`]);var qT=P(`<div class="dmd-tag-filter-bar"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <input type="text" class="dmd-tag-filter-input" placeholder="Filter tagged documents..."/></div>`),JT=P(`<span class="dmd-tag-current-badge">Current Page</span>`),YT=P(`<span class="dmd-tag-card-time"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> </span>`),XT=P(`<span class="dmd-tag-card-cat"> </span>`),ZT=P(`<button type="button"> </button>`),QT=P(`<div class="dmd-tag-card-tags"></div>`),$T=P(`<div role="button" tabindex="0"><div class="dmd-tag-card-head"><span class="dmd-tag-card-title"> </span> <!></div> <div class="dmd-tag-card-route"> </div> <div class="dmd-tag-card-meta"><!> <!></div> <!></div>`),eE=P(`<div class="dmd-tag-doc-grid"></div>`),tE=P(`<div class="dmd-tag-empty"><p> </p></div>`),nE=P(`<button type="button"> <span class="dmd-tag-count"> </span></button>`),rE=P(`<div class="dmd-tag-modal-footer"><span class="dmd-tag-footer-label">Explore related tags:</span> <div class="dmd-tag-chips-scroll"></div></div>`),iE=P(`<div class="dmd-modal-backdrop dmd-tag-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1"><div class="dmd-tag-modal"><div class="dmd-tag-modal-header"><div class="dmd-tag-modal-title-wrap"><div class="dmd-tag-pill-large"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line></svg> <span> </span></div> <div><h2 class="dmd-tag-modal-title"> </h2> <p class="dmd-tag-modal-sub"> </p></div></div> <button type="button" class="dmd-tag-modal-close" aria-label="Close tag modal">×</button></div> <!> <div class="dmd-tag-modal-body"><!></div> <!></div></div>`);function aE(e,t){yn(t,!0);let n=E(``),r=E(null),i=vr(()=>Q.activeTagModal||``),a=vr(()=>{if(!M(i))return[];let e=Q.getDocsWithTag(M(i));if(!M(n).trim())return e;let t=M(n).toLowerCase().trim();return e.filter(e=>e.title.toLowerCase().includes(t)||e.slug.toLowerCase().includes(t)||e.frontmatter?.tags?.some(e=>e.toLowerCase().includes(t)))}),o=vr(()=>Q.getAllTags());function s(){Q.closeTagModal(),D(n,``)}function c(e){e.key===`Escape`&&s()}function l(e){s(),Q.navigate(e)}function u(e){D(n,``),Q.openTagModal(e)}Li(()=>{if(!Q.activeTagModal)return;let e=e=>{M(r)&&!M(r).contains(e.target)&&s()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)});var d=Vo(),f=Si(d),p=e=>{var t=iE(),d=O(t),f=O(d),p=O(f),m=O(p),h=k(A(O(m),2));w(m);var g=A(m,2),_=O(g),v=k(_),y=k(A(_,2));w(g),w(p);var b=A(p,2);w(f);var x=A(f,2),S=e=>{var t=qT(),r=A(O(t),2);Ic(r),w(t),$c(r,()=>M(n),e=>D(n,e)),F(e,t)},ee=vr(()=>Q.getDocsWithTag(M(i)).length>3);L(x,e=>{M(ee)&&e(S)});var te=A(x,2),ne=O(te),re=e=>{var t=eE();Ss(t,21,()=>M(a),e=>e.slug,(e,t)=>{var n=$T();let r;var a=O(n),o=O(a),s=k(o,!0),c=A(o,2),d=e=>{F(e,JT())};L(c,e=>{M(t).slug===Q.currentSlug&&e(d)}),w(a);var f=A(a,2),p=k(f,!0),m=A(f,2),h=O(m),g=e=>{var n=YT(),r=A(O(n));w(n),j(()=>I(r,` ${M(t).readingTimeMinutes??``} min read`)),F(e,n)};L(h,e=>{M(t).readingTimeMinutes&&e(g)});var _=A(h,2),v=e=>{var n=XT(),r=k(n,!0);j(()=>I(r,M(t).category||M(t).frontmatter?.category)),F(e,n)};L(_,e=>{(M(t).category||M(t).frontmatter?.category)&&e(v)}),w(m);var y=A(m,2),b=e=>{var n=QT();Ss(n,20,()=>M(t).frontmatter.tags,e=>e,(e,t)=>{var n=ZT();let r;var a=k(n);j(e=>{r=gc(n,1,`dmd-tag-card-chip`,null,r,{highlight:e}),R(n,`title`,`Explore documents tagged with #${t??``}`),I(a,`#${t??``}`)},[()=>t.toLowerCase()===M(i).toLowerCase()]),N(`click`,n,e=>{e.stopPropagation(),u(t)}),F(e,n)}),w(n),F(e,n)};L(y,e=>{M(t).frontmatter?.tags&&M(t).frontmatter.tags.length>0&&e(b)}),w(n),j(()=>{r=gc(n,1,`dmd-tag-doc-card`,null,r,{"is-current":M(t).slug===Q.currentSlug}),I(s,M(t).title),I(p,M(t).slug)}),N(`click`,n,()=>l(M(t).slug)),N(`keydown`,n,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),l(M(t).slug))}),F(e,n)}),w(t),F(e,t)},ie=e=>{var t=tE(),r=k(O(t));w(t),j(()=>I(r,`No documents found matching "${M(n)??``}" under #${M(i)??``}.`)),F(e,t)};L(ne,e=>{M(a).length>0?e(re):e(ie,-1)}),w(te);var ae=A(te,2),oe=e=>{var t=rE(),n=A(O(t),2);Ss(n,21,()=>M(o).slice(0,12),e=>e.tag,(e,t)=>{var n=nE();let r;var a=O(n),o=k(A(a));w(n),j(e=>{r=gc(n,1,`dmd-tag-footer-chip`,null,r,{active:e}),I(a,`#${M(t).tag??``} `),I(o,`(${M(t).count??``})`)},[()=>M(t).tag.toLowerCase()===M(i).toLowerCase()]),N(`click`,n,()=>u(M(t).tag)),F(e,n)}),w(n),w(t),F(e,t)};L(ae,e=>{M(o).length>1&&e(oe)}),w(d),Ol(d,e=>D(r,e),()=>M(r)),w(t),j(()=>{R(t,`aria-label`,`Documents tagged with #${M(i)??``}`),I(h,`#${M(i)??``}`),I(v,`Documents tagged with #${M(i)??``}`),I(y,`${M(a).length??``} ${M(a).length===1?`matching document`:`matching documents`} found`)}),N(`keydown`,t,c),N(`click`,b,s),F(e,t)};L(f,e=>{Q.activeTagModal&&e(p)}),F(e,d),bn()}So([`keydown`,`click`]);var oE=P(`<div class="dmd-root"><a href="#dmd-main-content" class="dmd-skip-to-content">Skip to content</a> <!> <div class="dmd-layout-body"><!> <div class="dmd-main-wrapper"><!> <!></div></div> <!> <!> <!> <!></div>`);function sE(e,t){yn(t,!0),Li(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`?(e.preventDefault(),Q.isSearchOpen=!Q.isSearchOpen):(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`e`&&(e.preventDefault(),Q.isEditorOpen=!Q.isEditorOpen)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});let n;Li(()=>{let e=document.documentElement,t=(t,n)=>{e.getAttribute(t)!==n&&e.setAttribute(t,n)},r=(t,n)=>{n?e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n):e.style.getPropertyValue(t)&&e.style.removeProperty(t)},i=e.getAttribute(`data-dmd-mode`)!==Gw.resolvedMode,a=e.getAttribute(`data-dmd-theme`)!==Gw.family,o=Gw.resolvedMode===`dark`&&Gw.accentColorDark||Gw.accentColor,s=(e.style.getPropertyValue(`--dmd-accent`)||void 0)!==o;(i||a||s)&&(e.classList.add(`dmd-theme-switching`),clearTimeout(n),n=setTimeout(()=>e.classList.remove(`dmd-theme-switching`),220)),t(`data-dmd-mode`,Gw.resolvedMode),t(`data-dmd-theme`,Gw.family),t(`data-dmd-density`,Gw.density),t(`data-dmd-motion`,Gw.motion),t(`data-theme`,Gw.resolvedMode),r(`--dmd-accent`,o),r(`--dmd-accent-hover`,o)}),Li(()=>{if(typeof document>`u`)return;let e=PS(Q.config?.theme?.favicon),t=document.querySelector(`link[rel~="icon"]`);t||(t=document.createElement(`link`),t.rel=`icon`,document.head.appendChild(t)),t.getAttribute(`href`)!==e&&t.setAttribute(`href`,e)}),Li(()=>{(Q.currentDoc||Q.error)&&YS()});var r=oE(),i=A(O(r),2);bT(i,{});var a=A(i,2),o=O(a);UT(o,{});var s=A(o,2),c=O(s);Sw(c,{});var l=A(c,2),u=e=>{var t=Vo();gs(Si(t),()=>Q.currentSlug,e=>{KT(e,{get headings(){return Q.currentDoc.headings},get currentSlug(){return Q.currentSlug}})}),F(e,t)};L(l,e=>{Q.currentDoc&&Q.currentDoc.headings.length>0&&e(u)}),w(s),w(a);var d=A(a,2);{let e=vr(()=>Q.config?.search?.placeholder);PT(d,{get isOpen(){return Q.isSearchOpen},onClose:()=>Q.isSearchOpen=!1,get searchIndex(){return Q.searchIndex},onSelect:e=>Q.navigate(e),get placeholder(){return M(e)}})}var f=A(d,2);zw(f,{});var p=A(f,2);aE(p,{}),ET(A(p,2),{}),w(r),F(e,r),bn()}var cE=Po(`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="m5 12 4 4L19 6"></path></svg>`),lE=Po(`<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="8" y="8" width="11" height="11" rx="2"></rect><path d="M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"></path></svg>`),uE=P(`<pre class="dmd-diagram-error"> </pre>`),dE=P(`<button type="button"><!></button>`),fE=P(`<div class="dmd-diagram-canvas"><div class="dmd-diagram-svg"></div> <!></div>`),pE=P(`<div class="dmd-diagram-loading">Rendering diagram…</div>`),mE=P(`<figure><div class="dmd-diagram-frame"><div class="dmd-diagram-toolbar"><button type="button" class="dmd-diagram-btn" aria-label="Zoom out">−</button> <span class="dmd-diagram-zoom-label" aria-live="polite"> </span> <button type="button" class="dmd-diagram-btn" aria-label="Zoom in">+</button> <button type="button" class="dmd-diagram-btn">Fit</button> <button type="button" class="dmd-diagram-btn">1:1</button> <span class="dmd-diagram-toolbar-spacer"></span> <button type="button"><!></button> <span class="dmd-diagram-toolbar-divider" aria-hidden="true"></span> <button type="button" class="dmd-diagram-btn">SVG</button> <button type="button" class="dmd-diagram-btn"> </button></div> <div role="application"><!></div> <div class="dmd-diagram-status" aria-live="polite"> </div></div></figure>`);function hE(e,t){yn(t,!0);let n=.1,r=.1,i=e=>Math.min(3,Math.max(n,Math.round(e*100)/100));async function a(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);if(t.remove(),!n)throw Error(`Clipboard access is unavailable.`)}function o(e){return[...e.querySelectorAll(`.text-outer-tspan.row, text, tspan`)].map(e=>e.textContent?.replace(/\s+/g,` `).trim()).filter(Boolean)[0]||e.textContent?.replace(/\s+/g,` `).trim()||`Untitled subgraph`}let s=z(t,`source`,7),c=vr(()=>Cf(s())),l=E(null),u=E(null),d=E(null),f=E(1),p=E(1),m=E(!0),h=E(!1),g=E(ci([])),_=E(ci({x:0,y:0})),v=E(null),y=E(!1),b=E(null),x=E(null),S=E(null),ee=null,te={x:0,y:0},ne=null,re=vr(()=>M(u)?{width:Math.max(1,Math.round(M(u).width*M(f))),height:Math.max(1,Math.round(M(u).height*M(f)))}:null);Li(()=>{M(c);let e=!1,t=null,n,r=()=>{let n=Tf(),r=`${n.family}|${n.mode}|${n.tokens.accent}|${n.tokens.codeSurface}|${n.tokens.codeInk}`;r!==t&&(t=r,Of(M(c),n.family,n.mode,n.tokens).then(t=>{e||(D(l,t,!0),D(u,uf(t),!0),D(d,null),D(m,!0))}).catch(t=>{e||(D(l,null),D(u,null),D(d,t instanceof Error?t.message:String(t),!0))}))};if(r(),typeof MutationObserver>`u`)return()=>{e=!0};let i=new MutationObserver(()=>{e||(clearTimeout(n),n=setTimeout(r,150))});return i.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dmd-theme`,`data-theme`,`style`]}),()=>{e=!0,clearTimeout(n),i.disconnect()}}),Li(()=>{if(!M(l))return;let e=M(S)?.querySelector(`svg`);if(!e)return;let t=e.querySelector(`.cluster`)!==null,n=e.querySelectorAll(`:scope > g`),r=e.querySelector(`:scope > g.output, :scope > g[id^='flowchart-']`)??(n.length===1?n[0]:null);if(!(!t||!r||typeof r.getBBox!=`function`))try{let t=r.getBBox();if(t.width<=0||t.height<=0)return;let n={width:t.width+40,height:t.height+40};(!M(u)||n.height>M(u).height||n.width>M(u).width)&&(e.setAttribute(`viewBox`,`${t.x-20} ${t.y-20} ${n.width} ${n.height}`),e.removeAttribute(`width`),e.removeAttribute(`height`),D(u,n,!0))}catch{}}),Li(()=>{if(!M(x)||!M(u))return;let e=()=>{let e=getComputedStyle(M(x)),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),n=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),r=Math.max(1,M(x).clientWidth-t),a=Math.max(1,M(x).clientHeight-n),o=M(h)?i(df(M(u),{width:r,height:a})):i(Math.min(1,r/M(u).width)),s=M(h)?null:Math.round(Math.min(560,Math.max(200,M(u).height*o+n)));D(b,s,!0);let c=Math.max(1,(s??M(x).clientHeight)-n);D(p,o,!0),M(m)&&(D(f,o,!0),D(_,{x:0,y:Math.max(0,(M(u).height*o-c)/2)},!0))};if(e(),typeof ResizeObserver>`u`)return;let t=new ResizeObserver(e);return t.observe(M(x)),()=>t.disconnect()}),Li(()=>{let e=M(S),t=e?.querySelector(`svg`);if(!e||!t||!M(u)||M(f)<=0){D(g,[],!0);return}let n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect(),r=gf(M(c)),i=new Set(r.map((e,t)=>t)),a=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,``),s=[...t.querySelectorAll(`.cluster`)].map((e,t)=>{let s=e.getBoundingClientRect();if(s.width<=0||s.height<=0)return null;let l=o(e),u=a(l),d=r.findIndex((e,t)=>i.has(t)&&(a(e.label)===u||a(e.id)===u));d<0&&(d=r.findIndex((t,n)=>i.has(n)&&a(e.id).includes(a(t.id)))),d<0&&(d=[...i][0]??-1);let f=r[d];return f?(i.delete(d),{id:`subgraph-${f.id}-${t}`,label:f.label||l,markdown:_f(M(c),f.source),left:s.right-n.left-8,top:s.top-n.top+8}):null}).filter(e=>e!==null);D(g,s,!0)});return()=>cancelAnimationFrame(n)}),Li(()=>{if(!M(h))return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&D(h,!1)};return window.addEventListener(`keydown`,t),()=>{document.body.style.overflow=e,window.removeEventListener(`keydown`,t)}}),Li(()=>()=>{ne!==null&&window.clearTimeout(ne)});function ie(){if(!M(l))return;let e=new Blob([M(l)],{type:`image/svg+xml;charset=utf-8`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`diagram.svg`,n.click(),URL.revokeObjectURL(t)}function ae(e){D(m,!1),D(f,i(e),!0)}function oe(){D(m,!0),D(f,M(p),!0);let e=M(x);if(e&&M(u)){let t=getComputedStyle(e),n=Number.parseFloat(t.paddingTop)+Number.parseFloat(t.paddingBottom),r=Math.max(1,(M(b)??e.clientHeight)-n),i={x:0,y:Math.max(0,(M(u).height*M(p)-r)/2)};te=i,D(_,i,!0)}}function se(){let e=M(x);if(!e||!M(re))return{x:0,y:0};let t=getComputedStyle(e),n={width:Math.max(0,e.clientWidth-Number.parseFloat(t.paddingLeft)-Number.parseFloat(t.paddingRight)),height:Math.max(0,e.clientHeight-Number.parseFloat(t.paddingTop)-Number.parseFloat(t.paddingBottom))};return ff(M(re),n)}function ce(e){return pf({x:0,y:0},e,se()).camera}Li(()=>{M(re),M(f);let e=ce(te);(e.x!==te.x||e.y!==te.y)&&(te=e,D(_,e,!0))});async function le(e,t){try{await a(e),D(v,t,!0),ne!==null&&window.clearTimeout(ne),ne=window.setTimeout(()=>D(v,null),1800)}catch{D(v,`error`)}}function ue(e){return e instanceof Element?!e.closest(`.node, text, .dmd-diagram-subgraph-copy, button, a`):!0}function de(e){let t=M(x);!t||e.pointerType===`mouse`&&e.button!==0||!ue(e.target)||(ee={pointerId:e.pointerId,lastX:e.clientX,lastY:e.clientY},t.setPointerCapture(e.pointerId),D(y,!0),e.preventDefault())}function fe(e){let t=ee;if(t?.pointerId===e.pointerId){let n={x:e.clientX-t.lastX,y:e.clientY-t.lastY},r=pf(te,n,se());t.lastX=e.clientX,t.lastY=e.clientY,te=r.camera,D(_,r.camera,!0),!M(h)&&r.remainder.y!==0&&window.scrollBy({top:-r.remainder.y,behavior:`instant`}),e.preventDefault()}}function pe(e){let t=M(x);ee?.pointerId===e.pointerId&&(ee=null,D(y,!1),t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId))}Li(()=>{let e=M(x);if(!e)return;let t=t=>{if(!M(re))return;let n=t.deltaMode===1?16:t.deltaMode===2?e.clientHeight:1,r={x:-t.deltaX*n,y:-t.deltaY*n},i=pf(te,r,se()),a=i.camera.x!==te.x||i.camera.y!==te.y;!a&&(M(h)||i.remainder.y===0)||(t.preventDefault(),te=i.camera,a&&D(_,i.camera,!0),!M(h)&&i.remainder.y!==0&&window.scrollBy({top:-i.remainder.y,behavior:`instant`}))};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)});var me={get source(){return s()},set source(e){s(e),T()}},he=mE(),ge=O(he),_e=O(ge),ve=O(_e),ye=A(ve,2),be=k(ye),xe=A(ye,2),Se=A(xe,2),Ce=A(Se,2),we=A(Ce,4),Te=O(we),Ee=e=>{F(e,cE())},De=e=>{F(e,lE())};L(Te,e=>{M(v)===`graph`?e(Ee):e(De,-1)}),w(we);var Oe=A(we,4),ke=A(Oe,2),Ae=k(ke,!0);w(_e);var je=A(_e,2),Me=O(je),Ne=e=>{var t=uE(),n=k(t);j(()=>I(n,`Diagram syntax error: ${M(d)??``}`)),F(e,t)},Pe=e=>{var t=fE(),n=O(t);Os(n,()=>M(l),!0),w(n),Ss(A(n,2),17,()=>M(g),e=>e.id,(e,t)=>{var n=dE(),r=O(n),i=e=>{F(e,cE())},a=e=>{F(e,lE())};L(r,e=>{M(v)===M(t).id?e(i):e(a,-1)}),w(n),j(()=>{gc(n,1,`dmd-diagram-subgraph-copy${M(v)===M(t).id?` copied`:``}`),vc(n,`left: ${M(t).left??``}px; top: ${M(t).top??``}px;`),R(n,`aria-label`,M(v)===M(t).id?`${M(t).label} subgraph Markdown copied`:`Copy ${M(t).label} subgraph Markdown`),R(n,`title`,M(v)===M(t).id?`Copied`:`Copy ${M(t).label} subgraph Markdown`)}),N(`click`,n,()=>le(M(t).markdown,M(t).id)),F(e,n)}),w(t),Ol(t,e=>D(S,e),()=>M(S)),j((e,n,r,i)=>vc(t,`width: ${M(re).width??``}px; height: ${M(re).height??``}px; margin-left: ${e??``}px; margin-top: ${n??``}px; transform: translate(${r??``}px, ${i??``}px);`),[()=>-Math.round(M(re).width/2),()=>-Math.round(M(re).height/2),()=>Math.round(M(_).x),()=>Math.round(M(_).y)]),F(e,t)},Fe=e=>{F(e,pE())};L(Me,e=>{M(d)?e(Ne):M(l)&&M(re)?e(Pe,1):e(Fe,-1)}),w(je),Ol(je,e=>D(x,e),()=>M(x));var Ie=k(A(je,2),!0);return w(ge),w(he),j(e=>{gc(he,1,`dmd-diagram-viewer${M(h)?` is-expanded`:``}`),ve.disabled=!M(l)||M(f)<=n,I(be,`${e??``}%`),xe.disabled=!M(l)||M(f)>=3,Se.disabled=!M(l)||M(m),Ce.disabled=!M(l)||M(f)===1,gc(we,1,`dmd-diagram-btn dmd-diagram-icon-btn dmd-diagram-copy-all${M(v)===`graph`?` copied`:``}`),we.disabled=!M(l),R(we,`aria-label`,M(v)===`graph`?`Graph Markdown copied`:`Copy graph Markdown`),R(we,`title`,M(v)===`graph`?`Copied`:`Copy graph Markdown`),Oe.disabled=!M(l),ke.disabled=!M(l),I(Ae,M(h)?`Close`:`Expand`),gc(je,1,`dmd-diagram-stage${M(y)?` is-panning`:``}`),vc(je,M(b)!==null&&!M(h)?`height: ${M(b)}px; aspect-ratio: auto;`:void 0),I(Ie,M(v)===`error`?`Clipboard unavailable. Select the diagram text manually.`:``)},[()=>Math.round(M(f)*100)]),N(`click`,ve,()=>ae(M(f)-r)),N(`click`,xe,()=>ae(M(f)+r)),N(`click`,Se,oe),N(`click`,Ce,()=>ae(1)),N(`click`,we,()=>le(mf(M(c)),`graph`)),N(`click`,Oe,ie),N(`click`,ke,()=>D(h,!M(h))),N(`pointerdown`,je,de),N(`pointermove`,je,fe),N(`pointerup`,je,pe),xo(`pointercancel`,je,pe),F(e,he),bn(me)}So([`click`,`pointerdown`,`pointermove`,`pointerup`]),customElements.define(`dmd-mermaid`,ou(hE,{source:{}},[],[]));var gE;function $(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var _E=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},vE=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(gE=globalThis).__zod_globalConfig??(gE.__zod_globalConfig={});var yE=globalThis.__zod_globalConfig;function bE(e){return e&&Object.assign(yE,e),yE}function xE(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function SE(e,t){return typeof t==`bigint`?t.toString():t}function CE(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function wE(e){return e==null}function TE(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function EE(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var DE=Symbol(`evaluating`);function OE(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==DE)return r===void 0&&(r=DE,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function kE(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function AE(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function jE(e){return JSON.stringify(e)}function ME(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var NE=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function PE(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var FE=CE(()=>{if(yE.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function IE(e){if(PE(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return PE(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function LE(e){return IE(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var RE=new Set([`string`,`number`,`symbol`]);function zE(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function BE(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function VE(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function HE(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var UE={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function WE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return BE(e,AE(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return kE(this,`shape`,e),e},checks:[]}))}function GE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return BE(e,AE(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return kE(this,`shape`,r),r},checks:[]}))}function KE(e,t){if(!IE(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return BE(e,AE(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return kE(this,`shape`,n),n}}))}function qE(e,t){if(!IE(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return BE(e,AE(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return kE(this,`shape`,n),n}}))}function JE(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return BE(e,AE(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return kE(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function YE(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return BE(t,AE(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return kE(this,`shape`,i),i},checks:[]}))}function XE(e,t,n){return BE(t,AE(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return kE(this,`shape`,i),i}}))}function ZE(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function QE(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function $E(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function eD(e){return typeof e==`string`?e:e?.message}function tD(e,t,n){let r=e.message?e.message:eD(e.inst?._zod.def?.error?.(e))??eD(t?.error?.(e))??eD(n.customError?.(e))??eD(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function nD(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function rD(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var iD=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,SE,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},aD=$(`$ZodError`,iD),oD=$(`$ZodError`,iD,{Parent:Error});function sD(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function cD(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}var lD=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new _E;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>tD(e,a,bE())));throw NE(t,i?.callee),t}return o.value},uD=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>tD(e,a,bE())));throw NE(t,i?.callee),t}return o.value},dD=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new _E;return a.issues.length?{success:!1,error:new(e??aD)(a.issues.map(e=>tD(e,i,bE())))}:{success:!0,data:a.value}},fD=dD(oD),pD=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>tD(e,i,bE())))}:{success:!0,data:a.value}},mD=pD(oD),hD=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return lD(e)(t,n,i)},gD=e=>(t,n,r)=>lD(e)(t,n,r),_D=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return uD(e)(t,n,i)},vD=e=>async(t,n,r)=>uD(e)(t,n,r),yD=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return dD(e)(t,n,i)},bD=e=>(t,n,r)=>dD(e)(t,n,r),xD=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return pD(e)(t,n,i)},SD=e=>async(t,n,r)=>pD(e)(t,n,r),CD=/^[cC][0-9a-z]{6,}$/,wD=/^[0-9a-z]+$/,TD=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ED=/^[0-9a-vA-V]{20}$/,DD=/^[A-Za-z0-9]{27}$/,OD=/^[a-zA-Z0-9_-]{21}$/,kD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,AD=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,jD=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,MD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ND=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function PD(){return new RegExp(ND,`u`)}var FD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ID=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,LD=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,RD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zD=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,BD=/^[A-Za-z0-9_-]*$/,VD=/^https?$/,HD=/^\+[1-9]\d{6,14}$/,UD=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,WD=RegExp(`^${UD}$`);function GD(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function KD(e){return RegExp(`^${GD(e)}$`)}function qD(e){let t=GD({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${UD}T(?:${r})$`)}var JD=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},YD=/^-?\d+$/,XD=/^-?\d+(?:\.\d+)?$/,ZD=/^(?:true|false)$/i,QD=/^[^A-Z]*$/,$D=/^[^a-z]*$/,eO=$(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),tO={number:`number`,bigint:`bigint`,object:`date`},nO=$(`$ZodCheckLessThan`,(e,t)=>{eO.init(e,t);let n=tO[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rO=$(`$ZodCheckGreaterThan`,(e,t)=>{eO.init(e,t);let n=tO[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),iO=$(`$ZodCheckMultipleOf`,(e,t)=>{eO.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):EE(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),aO=$(`$ZodCheckNumberFormat`,(e,t)=>{eO.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=UE[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=YD)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),oO=$(`$ZodCheckMaxLength`,(e,t)=>{var n;eO.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!wE(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=nD(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),sO=$(`$ZodCheckMinLength`,(e,t)=>{var n;eO.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!wE(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=nD(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),cO=$(`$ZodCheckLengthEquals`,(e,t)=>{var n;eO.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!wE(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=nD(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),lO=$(`$ZodCheckStringFormat`,(e,t)=>{var n,r;eO.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),uO=$(`$ZodCheckRegex`,(e,t)=>{lO.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),dO=$(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=QD,lO.init(e,t)}),fO=$(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=$D,lO.init(e,t)}),pO=$(`$ZodCheckIncludes`,(e,t)=>{eO.init(e,t);let n=zE(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),mO=$(`$ZodCheckStartsWith`,(e,t)=>{eO.init(e,t);let n=RegExp(`^${zE(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),hO=$(`$ZodCheckEndsWith`,(e,t)=>{eO.init(e,t);let n=RegExp(`.*${zE(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),gO=$(`$ZodCheckOverwrite`,(e,t)=>{eO.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),_O=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
505
|
+
`)}\n\n`;D(r,`${M(r).trimEnd()}${t}`),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`✔ Markdown table inserted at end of document`),D(u,`editor`)}Li(()=>{if(Q.isEditorOpen&&Q.currentDoc){if(Q.currentDoc.rawContent)D(r,Q.currentDoc.rawContent,!0);else if(M(n)){let e=typeof window<`u`?window:null;D(r,e?.__DOCMEDOWN_DATA__?.docs?.[Q.currentSlug]||e?.__DOCMEDOWN_DOCS__?.[Q.currentSlug]||``,!0)}else fetch(`/__dmd_api__/raw?slug=${encodeURIComponent(Q.currentSlug)}`).then(e=>e.ok?e.text():``).then(e=>{e&&D(r,e,!0)}).catch(()=>{});_(),D(a,M(n)?`Ready to edit (Offline Mode)`:`Ready to edit`,!0)}});function ie(e){e.key===`Escape`?(e.preventDefault(),Q.isEditorOpen=!1):(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`&&(e.preventDefault(),se(M(n)?`source`:M(i)))}function ae(e){if(e.key===`Tab`){e.preventDefault();let t=e.currentTarget,n=t.selectionStart,i=t.selectionEnd;D(r,`${M(r).substring(0,n)} ${M(r).substring(i)}`),setTimeout(()=>{t.selectionStart=t.selectionEnd=n+2},0)}}function oe(e){let t=e.target;D(r,t.value,!0),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`Unsaved changes (live preview active)`)}async function se(e){if(M(o))return;if(D(o,!0),M(n)){try{if(Q.updateDocContent(M(r),Q.currentSlug,!1),typeof window<`u`){let e=window;e.__DOCMEDOWN_DATA__?.docs&&(e.__DOCMEDOWN_DATA__.docs[Q.currentSlug]=M(r));try{localStorage.setItem(`dmd-offline-doc-${Q.currentSlug}`,M(r))}catch{}}D(a,`✔ Saved to offline local session & browser storage at ${new Date().toLocaleTimeString()}`)}catch(e){D(a,`✖ Save error: ${e.message||`Failed to update offline document`}`)}finally{D(o,!1)}return}D(a,`Saving to ${e}...`);let t=Q.currentDoc?.path||`${Q.currentSlug===`README`?`README`:Q.currentSlug}.md`;try{let n=await fetch(`/__dmd_api__/save`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({file:t,slug:Q.currentSlug,content:M(r),target:e})});if(n.ok)await n.json(),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`✔ Saved to ${e} (${t}) at ${new Date().toLocaleTimeString()}`),e===`preview`&&(Q.hasPreviewChanges=!0);else{let e=await n.json().catch(()=>({}));D(a,`✖ Save failed: ${e.error||n.statusText}`)}}catch(e){D(a,`✖ Save error: ${e.message||`Dev server not reachable`}`)}finally{D(o,!1)}}function ce(){let e=(Q.currentDoc?.path||`${Q.currentSlug===`README`?`README`:Q.currentSlug}.md`).split(`/`).pop()||`document.md`,t=new Blob([M(r)],{type:`text/markdown;charset=utf-8`}),n=URL.createObjectURL(t),i=document.createElement(`a`);i.href=n,i.download=e,document.body.appendChild(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3),D(a,`✔ Downloaded ${e}`)}async function le(e){if(!M(n))try{(await fetch(`/__dmd_api__/mode`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({mode:e})})).ok&&(Q.serverMode=e,D(a,`Switched server to ${e} mode`))}catch{}}async function ue(){if(!M(n)&&confirm(`Publish all staged .preview changes directly to production source files?`))try{(await fetch(`/__dmd_api__/publish-preview`,{method:`POST`})).ok&&(Q.hasPreviewChanges=!1,D(a,`✔ Preview changes published to source!`))}catch(e){D(a,`✖ Error: ${e.message}`)}}async function de(){if(!M(n)&&confirm(`Discard all staged .preview changes? This cannot be undone.`))try{(await fetch(`/__dmd_api__/discard-preview`,{method:`POST`})).ok&&(Q.hasPreviewChanges=!1,D(a,`Preview staging discarded.`))}catch(e){D(a,`✖ Error: ${e.message}`)}}function fe(e,t){if(e===Q.currentSlug&&t){let e=decodeURIComponent(t).toLowerCase().replace(/^[#]/,``),n=document.querySelector(`.dmd-editor-preview-content #${e}`);if(n){n.scrollIntoView({behavior:`smooth`,block:`start`});return}}Q.navigate(e,t)}var pe=Vo();xo(`keydown`,pi,ie);var me=Si(pe),he=e=>{var t=Bw(),pe=O(t),me=O(pe),he=O(me),ge=k(A(O(he),4));w(he);var _e=A(he,2),ve=O(_e),ye=A(ve,2),be=A(ye,2);w(_e);var xe=A(_e,2),Se=O(xe),Ce=e=>{var t=Tw(),n=A(O(t),2),r=A(n,2);w(t),j(()=>{gc(n,1,`dmd-editor-pill-btn ${M(i)===`source`?`active`:``}`,`svelte-q838rt`),gc(r,1,`dmd-editor-pill-btn ${M(i)===`preview`?`active`:``}`,`svelte-q838rt`)}),N(`click`,n,()=>D(i,`source`)),N(`click`,r,()=>D(i,`preview`)),F(e,t)};L(Se,e=>{M(n)||e(Ce)});var we=A(Se,2),Te=k(we,!0),Ee=A(we,2),De=O(Ee),Oe=e=>{F(e,Ew())},ke=e=>{var t=kw(),n=A(Si(t),2),r=e=>{var t=Dw();N(`click`,t,()=>le(`production`)),F(e,t)},i=e=>{var t=Ow();N(`click`,t,()=>le(`preview`)),F(e,t)};L(n,e=>{Q.serverMode===`preview`?e(r):e(i,-1)}),F(e,t)};L(De,e=>{M(n)?e(Oe):e(ke,-1)}),w(Ee);var Ae=A(Ee,2);w(xe),w(me);var je=A(me,2),Me=O(je),Ne=e=>{var t=Aw(),n=O(t),i=O(n);Yn(i),w(n),w(t),j(()=>Lc(i,M(r))),N(`input`,i,oe),N(`keydown`,i,ae),F(e,t)},Pe=e=>{var t=jw(),n=O(t),r=A(O(n),4),i=O(r),a=A(O(i),2);Ic(a),w(i);var o=A(i,2),s=A(O(o),2);Ic(s),w(o);var c=A(o,2),l=A(O(c),2);Ic(l),w(c);var u=A(c,2),_=A(O(u),2);Ic(_),w(u);var y=A(u,2),b=A(O(y),2);Ic(b),w(y);var x=A(y,2),S=O(x),ee=O(S);Ic(ee),pt(2),w(S),w(x),w(r),w(n),w(t),N(`input`,a,v),$c(a,()=>M(d),e=>D(d,e)),N(`input`,s,v),$c(s,()=>M(p),e=>D(p,e)),N(`input`,l,v),$c(l,()=>M(f),e=>D(f,e)),N(`input`,_,v),$c(_,()=>M(m),e=>D(m,e)),N(`input`,b,v),$c(b,()=>M(h),e=>D(h,e)),N(`change`,ee,v),nl(ee,()=>M(g),e=>D(g,e)),F(e,t)},Fe=e=>{var t=Fw(),n=O(t),r=O(n),i=O(r),a=k(A(O(i),2));w(i);var o=A(i,2),s=O(o),c=A(s,2),l=A(c,2);w(o),w(r);var u=A(r,2),d=O(u),f=O(d),p=O(f);Ss(O(p),17,()=>M(y),vs,(e,t,n)=>{var r=Mw(),i=O(r),a=O(i);Ic(a);var o=A(a,2),s=O(o);s.value=s.__value=`left`;var c=A(s);c.value=c.__value=`center`;var l=A(c);l.value=l.__value=`right`,w(o),Cc(o);var u=A(o,2);w(i),w(r),$c(a,()=>M(y)[n],e=>M(y)[n]=e),wc(o,()=>M(b)[n],e=>M(b)[n]=e),N(`click`,u,()=>ee(n)),F(e,r)}),pt(),w(p),w(f);var m=A(f);Ss(m,21,()=>M(x),vs,(e,t,n)=>{var r=Pw(),i=O(r);Ss(i,17,()=>M(t),vs,(e,t,r)=>{var i=Nw(),a=O(i);Ic(a),w(i),$c(a,()=>M(x)[n][r],e=>M(x)[n][r]=e),F(e,i)});var a=k(A(i));w(r),N(`click`,a,()=>ne(n)),F(e,r)}),w(m),w(d),w(u),w(n),w(t),j(()=>I(a,`${M(y).length??``} cols × ${M(x).length??``} rows`)),N(`click`,s,S),N(`click`,c,te),N(`click`,l,re),F(e,t)};L(Me,e=>{M(u)===`editor`?e(Ne):M(u)===`frontmatter`?e(Pe,1):M(u)===`table`&&e(Fe,2)});var Ie=A(Me,2),Le=e=>{var t=Iw(),n=A(O(t),2);lw(O(n),{get html(){return M(c)},onNavigate:fe}),w(n),w(t),F(e,t)};L(Ie,e=>{M(s)&&e(Le)}),w(je);var Re=A(je,2),ze=O(Re),Be=O(ze),Ve=k(Be,!0),He=k(A(Be,2));w(ze);var Ue=A(ze,2),We=O(Ue),Ge=e=>{var t=Rw(),n=Si(t),r=e=>{var t=Lw(),n=Si(t),r=A(n,2);N(`click`,n,ue),N(`click`,r,de),F(e,t)};L(n,e=>{Q.hasPreviewChanges&&e(r)});var i=A(n,2),a=A(i,2),s=k(a,!0);j(()=>{i.disabled=M(o),a.disabled=M(o),I(s,M(o)?`Saving...`:`Save to Source`)}),N(`click`,i,()=>se(`preview`)),N(`click`,a,()=>se(`source`)),F(e,t)},Ke=e=>{var t=zw(),n=Si(t),r=A(n,2),i=k(r,!0);j(()=>{r.disabled=M(o),I(i,M(o)?`Saving...`:`Save to Session`)}),N(`click`,n,ce),N(`click`,r,()=>se(`source`)),F(e,t)};L(We,e=>{M(n)?e(Ke,-1):e(Ge)}),w(Ue),w(Re),w(pe),w(t),j(()=>{I(ge,`${Q.currentSlug??``}.md`),gc(ve,1,`dmd-editor-tab-btn ${M(u)===`editor`?`active`:``}`,`svelte-q838rt`),gc(ye,1,`dmd-editor-tab-btn ${M(u)===`frontmatter`?`active`:``}`,`svelte-q838rt`),gc(be,1,`dmd-editor-tab-btn ${M(u)===`table`?`active`:``}`,`svelte-q838rt`),gc(we,1,`dmd-editor-btn-secondary ${M(s)?`active`:``}`,`svelte-q838rt`),I(Te,M(s)?`Split: ON`:`Split: OFF`),gc(je,1,`dmd-editor-body ${M(s)?`split`:`full`}`,`svelte-q838rt`),I(Ve,M(a)),I(He,`${M(l)??``} lines`)}),N(`click`,t,e=>{e.target===e.currentTarget&&(Q.isEditorOpen=!1)}),N(`keydown`,t,ie),N(`click`,ve,()=>D(u,`editor`)),N(`click`,ye,()=>{_(),D(u,`frontmatter`)}),N(`click`,be,()=>D(u,`table`)),N(`click`,we,()=>D(s,!M(s))),N(`click`,Ae,()=>Q.isEditorOpen=!1),F(e,t)};L(me,e=>{Q.isEditorOpen&&e(he)}),F(e,pe),bn()}So([`click`,`keydown`,`input`,`change`]);var Hw=[`atlas`,`blueprint`,`terminal`,`editorial`],Uw=[`comfortable`,`compact`];function Ww(e){try{if(typeof window>`u`)return null;let t=window.localStorage;return t?t.getItem(e):null}catch{return null}}function Gw(e,t){try{if(typeof window>`u`)return;window.localStorage?.setItem(e,t)}catch{}}function Kw(e,t){let n=Ww(e);return n&&t.includes(n)?n:null}var qw=new class{#e=E(`auto`);get mode(){return M(this.#e)}set mode(e){D(this.#e,e,!0)}#t=E(`atlas`);get family(){return M(this.#t)}set family(e){D(this.#t,e,!0)}#n=E(`comfortable`);get density(){return M(this.#n)}set density(e){D(this.#n,e,!0)}#r=E(`full`);get motion(){return M(this.#r)}set motion(e){D(this.#r,e,!0)}#i=E(!1);get systemDark(){return M(this.#i)}set systemDark(e){D(this.#i,e,!0)}accentColor;accentColorDark;#a=vr(()=>this.mode===`auto`?this.systemDark?`dark`:`light`:this.mode);get resolvedMode(){return M(this.#a)}set resolvedMode(e){D(this.#a,e)}mediaQuery=null;mediaHandler=null;init(e={}){this.mode=Kw(`dmd-color-mode`,[`light`,`dark`,`auto`])??e.defaultMode??`auto`,this.family=Kw(`dmd-theme-family`,Hw)??e.defaultFamily??`atlas`,this.density=Kw(`dmd-theme-density`,Uw)??e.defaultDensity??`comfortable`;let t=typeof document<`u`?document.documentElement?.getAttribute(`data-dmd-motion`):null,n=t===`reduced`||t===`off`?`reduced`:Kw(`dmd-motion`,[`full`,`reduced`])??`full`;this.motion=n,this.accentColor=e.accentColor,this.accentColorDark=e.accentColorDark;try{typeof window<`u`&&(this.systemDark=window.matchMedia(`(prefers-color-scheme: dark)`).matches)}catch{}try{typeof window<`u`&&window.matchMedia&&(this.mediaQuery=window.matchMedia(`(prefers-color-scheme: dark)`),this.mediaHandler=e=>{this.systemDark=e.matches},this.mediaQuery.addEventListener(`change`,this.mediaHandler))}catch{}}setMode(e){this.mode=e,Gw(`dmd-color-mode`,e)}setFamily(e){this.family=e,Gw(`dmd-theme-family`,e)}setDensity(e){this.density=e,Gw(`dmd-theme-density`,e)}setMotion(e){this.motion=e,Gw(`dmd-motion`,e)}toggleMode(){this.setMode(this.resolvedMode===`dark`?`light`:`dark`)}destroy(){try{this.mediaQuery&&this.mediaHandler&&this.mediaQuery.removeEventListener(`change`,this.mediaHandler)}catch{}this.mediaQuery=null,this.mediaHandler=null}},Jw=P(`<button type="button"><span aria-hidden="true"><span></span> <span></span> <span></span></span> <span class="dmd-theme-family-name"> </span> <span class="dmd-theme-family-description"> </span></button>`),Yw=P(`<button type="button"> </button>`),Xw=P(`<div class="dmd-appearance-panel" role="dialog" aria-label="Documentation appearance"><div class="dmd-appearance-heading"><span>Appearance</span> <button type="button" class="dmd-appearance-close" aria-label="Close appearance menu">×</button></div> <div class="dmd-appearance-section"><div class="dmd-appearance-label">Theme family</div> <div class="dmd-theme-family-grid"></div></div> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Mode</legend> <div class="dmd-segmented-control"></div> <button type="button" class="dmd-appearance-quick-mode"> </button></fieldset> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Reading density</legend> <div class="dmd-segmented-control"></div></fieldset> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Animations</legend> <div class="dmd-segmented-control"><button type="button">Smooth</button> <button type="button">Reduced</button></div></fieldset></div>`),Zw=P(`<div class="dmd-appearance"><button type="button" class="dmd-appearance-trigger" aria-haspopup="dialog"><span aria-hidden="true"></span> <span class="dmd-appearance-trigger-label">Appearance</span></button> <!></div>`);function Qw(e,t){yn(t,!0);let n=[{family:`atlas`,label:`Atlas`,description:`Editorial technical reference`},{family:`blueprint`,label:`Blueprint`,description:`Structured and schematic`},{family:`terminal`,label:`Terminal`,description:`Compact operational console`},{family:`editorial`,label:`Editorial`,description:`Spacious publication reading`}],r=E(!1),i=null;Li(()=>{if(!M(r))return;let e=e=>{i?.contains(e.target)||D(r,!1)},t=e=>{e.key===`Escape`&&D(r,!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}});var a=Zw(),o=O(a),s=O(o);pt(2),w(o);var c=A(o,2),l=e=>{var t=Xw(),i=O(t),a=A(O(i),2);w(i);var o=A(i,2),s=A(O(o),2);Ss(s,21,()=>n,e=>e.family,(e,t)=>{var n=Jw(),r=O(n),i=A(r,2),a=k(i,!0),o=k(A(i,2),!0);w(n),j(()=>{gc(n,1,`dmd-theme-family-card ${qw.family===M(t).family?`active`:``}`),R(n,`aria-pressed`,qw.family===M(t).family),gc(r,1,`dmd-theme-preview dmd-theme-preview-${M(t).family??``}`),I(a,M(t).label),I(o,M(t).description)}),N(`click`,n,()=>qw.setFamily(M(t).family)),F(e,n)}),w(s),w(o);var c=A(o,2),l=A(O(c),2);Ss(l,20,()=>[`auto`,`light`,`dark`],e=>e,(e,t)=>{var n=Yw(),r=k(n,!0);j(()=>{gc(n,1,uc(qw.mode===t?`active`:``)),I(r,t)}),N(`click`,n,()=>qw.setMode(t)),F(e,n)}),w(l);var u=A(l,2),d=k(u);w(c);var f=A(c,2),p=A(O(f),2);Ss(p,20,()=>[`comfortable`,`compact`],e=>e,(e,t)=>{var n=Yw(),r=k(n,!0);j(()=>{gc(n,1,uc(qw.density===t?`active`:``)),I(r,t)}),N(`click`,n,()=>qw.setDensity(t)),F(e,n)}),w(p),w(f);var m=A(f,2),h=A(O(m),2),g=O(h),_=A(g,2);w(h),w(m),w(t),j(()=>{I(d,`Use ${qw.resolvedMode===`dark`?`light`:`dark`} now`),gc(g,1,uc(qw.motion===`full`?`active`:``)),gc(_,1,uc(qw.motion===`reduced`?`active`:``))}),N(`click`,a,()=>D(r,!1)),N(`click`,u,()=>qw.toggleMode()),N(`click`,g,()=>qw.setMotion(`full`)),N(`click`,_,()=>qw.setMotion(`reduced`)),F(e,t)};L(c,e=>{M(r)&&e(l)}),w(a),Ol(a,e=>i=e,()=>i),j(()=>{R(o,`aria-expanded`,M(r)),gc(s,1,`dmd-theme-mark dmd-theme-mark-${qw.family??``}`)}),N(`click`,o,()=>D(r,!M(r))),F(e,a),bn()}So([`click`]);var $w=P(`<div class="dmd-offline-download-error" role="alert"> </div>`),eT=P(`<div class="dmd-offline-download-wrap"><button type="button" class="dmd-offline-download-btn"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3v12"></path><path d="m7 10 5 5 5-5"></path><path d="M5 21h14"></path></svg> <span> </span></button> <!></div>`);function tT(e,t){yn(t,!0);let n=tC(),r=E(`idle`),i=E(``);async function a(){if(!(n||M(r)===`compressing`)){D(r,`compressing`),D(i,``);try{await dC(),D(r,`idle`)}catch(e){D(r,`error`),D(i,e instanceof Error?e.message:String(e),!0)}}}let o=vr(()=>n?`Offline copy`:M(r)===`compressing`?`Compressing…`:`Download`),s=vr(()=>n?`This page is already a self-contained offline documentation copy.`:`Compress and download this documentation as a self-contained offline HTML file.`);var c=eT(),l=O(c),u=k(A(O(l),2),!0);w(l);var d=A(l,2),f=e=>{var t=$w(),n=k(t,!0);j(()=>I(n,M(i))),F(e,t)};L(d,e=>{M(i)&&e(f)}),w(c),j(()=>{l.disabled=n||M(r)===`compressing`,R(l,`aria-disabled`,n||M(r)===`compressing`),R(l,`title`,M(s)),I(u,M(o))}),N(`click`,l,a),F(e,c),bn()}So([`click`]);var nT=P(`<img class="dmd-brand-logo"/>`),rT=P(`<span class="dmd-brand-version"> </span>`),iT=P(`<button type="button" class="dmd-search-trigger"><svg class="dmd-search-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <span class="dmd-search-placeholder"> </span> <span class="dmd-search-shortcut"><kbd class="dmd-kbd"> </kbd></span></button>`),aT=P(`<span class="dmd-nav-crumb-sep">/</span> <!>`,1),oT=P(`<span class="dmd-nav-meta-item dmd-meta-item" title="Reading time"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></span>`),sT=P(`<span class="dmd-nav-meta-item dmd-meta-item dmd-meta-category"> </span>`),cT=P(`<button type="button" class="dmd-nav-meta-tag dmd-meta-tag dmd-clickable-tag"> </button>`),lT=P(`<button type="button" class="dmd-nav-meta-tag dmd-meta-tag dmd-clickable-tag dmd-nav-meta-tag-more"> </button>`),uT=P(`<!> <!>`,1),dT=P(`<div class="dmd-nav-meta"><!> <!> <!> <button type="button" class="dmd-meta-edit-btn" title="Edit this document (Ctrl+E / ⌘E)" aria-label="Edit document in 2-way editor"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg> <span>Edit</span></button></div>`),fT=P(`<a class="dmd-social-btn dmd-home-btn"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg></a>`),pT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"></path><path d="M9 18c-4.51 2-5-2-7-2"></path></svg>`),mT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.06 3.25a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z"></path></svg>`),hT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="12" r="1"></circle><circle cx="15" cy="12" r="1"></circle><path d="M7.5 7.5c3.5-1 5.5-1 9 0 1.5 2 2.5 5 2.5 8.5-2 1.5-4 1.5-5.5 1.5l-.5-1c1-.5 1.5-1 1.5-1-1.5 1-3.5 1-6 1s-4.5 0-6-1c0 0 .5.5 1.5 1l-.5 1c-1.5 0-3.5 0-5.5-1.5 0-3.5 1-6.5 2.5-8.5Z"></path></svg>`),gT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>`),_T=P(`<a class="dmd-social-btn" target="_blank" rel="noopener noreferrer"><!></a>`),vT=P(`<div class="dmd-social-links"></div>`),yT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>`),bT=Po(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg>`),xT=P(`<header><div class="dmd-navbar-left"><button type="button" class="dmd-mobile-menu-btn" aria-controls="dmd-sidebar"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="12" y2="12"></line><line x1="4" x2="20" y1="6" y2="6"></line><line x1="4" x2="20" y1="18" y2="18"></line></svg></button> <a class="dmd-brand"><!> <span class="dmd-brand-title"> </span> <!></a></div> <div><div class="dmd-navbar-search-full"><!></div> <div class="dmd-navbar-route-bar"><nav class="dmd-nav-breadcrumbs" aria-label="Breadcrumb"><!> <!></nav> <!></div></div> <div class="dmd-navbar-right"><!> <!> <button type="button" class="dmd-social-btn dmd-edit-btn" title="Edit markdown (Ctrl+E / ⌘E)" aria-label="Edit markdown"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg></button> <!> <!> <button type="button" class="dmd-theme-toggle-btn"><!></button></div></header>`);function ST(e,t){yn(t,!0);let n=vr(()=>Q.home?Q.home.kind===`href`?Q.home.href??`#/`:`#/${Q.home.slug}`:`#/README`),r=vr(()=>Q.home?.via===`ancestor`?`Original documentation home`:`Documentation home`),i=vr(()=>Q.config),a=vr(()=>Q.isScrolled),o=vr(()=>{let e=Q.currentSlug;return e?e.split(`/`).filter(Boolean):[]}),s=E(null),c=E(null),l=null,u=!0,d=null,f=()=>{if(typeof navigator>`u`)return!1;let e=navigator,t=e.userAgentData?.platform||e.platform||``,n=e.userAgent||``;return/^mac/i.test(t)||/macintosh|mac os x/i.test(n)},p=E(ci(f()));Li(()=>{D(p,f(),!0)});let m=vr(()=>M(p)?`⌘K`:`Ctrl K`),h=vr(()=>{let e=M(i)?.search?.placeholder||`Search docs...`;return M(p)?e.replace(/Ctrl\+?K/gi,`⌘K`):e.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`)}),g=vr(()=>{let e=M(h);return e.includes(M(m))?e:`${e} (${M(m)})`});Li(()=>{let e=!1,t=50,n=()=>{let e=document.querySelector(`.dmd-content-header`),n=document.querySelector(`.dmd-navbar`),r=n?n.offsetHeight:56;if(e){let n=e.getBoundingClientRect().top+window.scrollY;t=Math.max(30,Math.round(n-r+8))}else{let e=document.querySelector(`.dmd-main-content`);if(e){let n=e.getBoundingClientRect().top+window.scrollY;t=Math.max(30,Math.round(n-r+8))}else t=50}},r=()=>{e=!1;let n=window.scrollY,r=Wa(()=>Q.isScrolled),i=r?n>=t-20:n>=t;r!==i&&(Q.isScrolled=i)},i=()=>{e||(e=!0,requestAnimationFrame(r))};return n(),r(),window.addEventListener(`scroll`,i,{passive:!0}),window.addEventListener(`resize`,n,{passive:!0}),()=>{window.removeEventListener(`scroll`,i),window.removeEventListener(`resize`,n)}}),Li(()=>{Q.currentSlug,Q.isLoading,requestAnimationFrame(()=>{let e=document.querySelector(`.dmd-content-header`),t=document.querySelector(`.dmd-navbar`),n=t?t.offsetHeight:56,r=50;e&&(r=Math.max(30,Math.round(e.getBoundingClientRect().top+window.scrollY-n+8))),Q.isScrolled=window.scrollY>=r})}),Li(()=>{let e=M(a)&&!!Q.currentDoc;if(!(!M(c)||!M(s))){if(u){u=!1,d=e,e?(M(c).style.transition=`none`,M(c).setAttribute(`data-visible`,`true`),M(c).style.opacity=`1`,M(c).style.clipPath=`inset(0 0% 0 0)`,M(c).style.pointerEvents=`auto`,requestAnimationFrame(()=>{M(c)&&M(c).style.removeProperty(`transition`)}),M(s).style.transition=`none`,M(s).setAttribute(`data-collapsed`,`true`),M(s).style.removeProperty(`max-width`),requestAnimationFrame(()=>{M(s)&&M(s).style.removeProperty(`transition`)})):(M(c).style.opacity=`0`,M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.pointerEvents=`none`,M(c).removeAttribute(`data-visible`),M(s).removeAttribute(`data-collapsed`),M(s).style.removeProperty(`max-width`));return}if(e!==d)return d=e,l!==null&&(clearTimeout(l),l=null),e?(M(s).style.removeProperty(`max-width`),M(s).setAttribute(`data-collapsed`,`true`),M(c).style.pointerEvents=`auto`,M(c).removeAttribute(`data-visible`),M(c).style.removeProperty(`transition`),M(c).style.clipPath=`inset(0 0% 0 0)`,M(c).style.opacity=`1`,l=setTimeout(()=>{l=null,M(c)&&Q.isScrolled&&Q.currentDoc&&(M(c).setAttribute(`data-visible`,`true`),M(c).style.removeProperty(`clip-path`),M(c).style.removeProperty(`opacity`))},260)):(M(s).style.removeProperty(`max-width`),M(s).removeAttribute(`data-collapsed`),M(c).style.pointerEvents=`none`,M(c).removeAttribute(`data-visible`),M(c).style.removeProperty(`transition`),M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.opacity=`0`,l=setTimeout(()=>{l=null,M(c)&&!Q.isScrolled&&(M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.opacity=`0`)},260)),()=>{l!==null&&(clearTimeout(l),l=null)}}});var _=xT(),v=O(_),y=O(v),b=A(y,2),x=O(b),S=e=>{var t=nT();j(()=>{R(t,`src`,qw.resolvedMode===`dark`&&M(i).theme?.logo?.dark?M(i).theme.logo.dark:M(i).theme.logo.light),R(t,`alt`,M(i).theme?.logo?.alt||M(i).name)}),F(e,t)};L(x,e=>{M(i)?.theme?.logo?.light&&e(S)});var ee=A(x,2),te=k(ee,!0),ne=A(ee,2),re=e=>{var t=rT(),n=k(t);j(()=>I(n,`v${M(i).version??``}`)),F(e,t)};L(ne,e=>{M(i)?.version&&e(re)}),w(b),w(v);var ie=A(v,2);let ae;var oe=O(ie);R(oe,`aria-hidden`,!1);var se=O(oe),ce=e=>{var t=iT();R(t,`tabindex`,0);var n=A(O(t),2),r=k(n,!0),i=A(n,2),o=k(O(i),!0);w(i),w(t),j(()=>{R(t,`aria-label`,M(g)),R(t,`title`,M(a)&&Q.currentDoc?M(g):void 0),I(r,M(h)),I(o,M(m))}),N(`click`,t,()=>Q.isSearchOpen=!0),F(e,t)};L(se,e=>{M(i)?.search?.enabled!==!1&&e(ce)}),w(oe),Ol(oe,e=>D(s,e),()=>M(s));var le=A(oe,2),ue=O(le),de=O(ue);OS(de,{label:`Docs`,index:0,isHome:!0,get isScrolled(){return M(a)}}),Ss(A(de,2),17,()=>M(o),vs,(e,t,n)=>{var r=aT(),i=A(Si(r),2);{let e=vr(()=>n===M(o).length-1);OS(i,{get label(){return M(t)},index:n+1,get isLast(){return M(e)},get isScrolled(){return M(a)}})}F(e,r)}),w(ue);var fe=A(ue,2),pe=e=>{var t=dT(),n=O(t),r=e=>{var t=oT(),n=k(A(O(t),2));w(t),j(()=>I(n,`${Q.currentDoc.readingTimeMinutes??``} min read`)),F(e,t)};L(n,e=>{Q.currentDoc.readingTimeMinutes&&e(r)});var i=A(n,2),o=e=>{var t=sT(),n=k(t,!0);j(()=>I(n,Q.currentDoc.frontmatter.category)),F(e,t)};L(i,e=>{Q.currentDoc.frontmatter?.category&&e(o)});var s=A(i,2),c=e=>{let t=vr(()=>Q.currentDoc.frontmatter.tags),n=vr(()=>M(t).length>2?1:2),r=vr(()=>M(t).slice(0,M(n))),i=vr(()=>M(t).length-M(r).length);var o=uT(),s=Si(o);Ss(s,16,()=>M(r),e=>e,(e,t)=>{var n=cT(),r=k(n);j(()=>{R(n,`tabindex`,M(a)?0:-1),R(n,`title`,`View documents tagged with #${t??``}`),R(n,`aria-label`,`View documents tagged with #${t??``}`),I(r,`#${t??``}`)}),N(`click`,n,()=>Q.openTagModal(t)),F(e,n)});var c=A(s,2),l=e=>{var n=lT(),r=k(n);j(()=>{R(n,`tabindex`,M(a)?0:-1),R(n,`title`,`View all ${M(t).length} tags for this document`),R(n,`aria-label`,`View ${M(i)} more tags`),I(r,`+${M(i)??``}`)}),N(`click`,n,()=>Q.openTagModal(M(t)[1]||M(t)[0])),F(e,n)};L(c,e=>{M(i)>0&&e(l)}),F(e,o)};L(s,e=>{Q.currentDoc.frontmatter?.tags&&Q.currentDoc.frontmatter.tags.length>0&&e(c)});var l=A(s,2);w(t),j(()=>R(l,`tabindex`,M(a)?0:-1)),N(`click`,l,()=>Q.isEditorOpen=!0),F(e,t)};L(fe,e=>{Q.currentDoc&&e(pe)}),w(le),Ol(le,e=>D(c,e),()=>M(c)),w(ie);var me=A(ie,2),he=O(me),ge=e=>{var t=fT();j(()=>{R(t,`href`,M(n)),R(t,`title`,M(r))}),F(e,t)};L(he,e=>{Q.home&&e(ge)});var _e=A(he,2),ve=e=>{var t=vT();Ss(t,21,()=>M(i).socials,e=>e.url,(e,t)=>{var n=_T(),r=O(n),i=e=>{F(e,pT())},a=e=>{F(e,mT())},o=e=>{F(e,hT())},s=e=>{F(e,gT())};L(r,e=>{M(t).type===`github`?e(i):M(t).type===`gitlab`?e(a,1):M(t).type===`discord`?e(o,2):e(s,-1)}),w(n),j(()=>{R(n,`href`,M(t).url),R(n,`title`,M(t).label||M(t).type)}),F(e,n)}),w(t),F(e,t)};L(_e,e=>{M(i)?.socials&&M(i).socials.length>0&&e(ve)});var ye=A(_e,2),be=A(ye,2);tT(be,{});var xe=A(be,2);Qw(xe,{});var Se=A(xe,2),Ce=O(Se),we=e=>{F(e,yT())},Te=e=>{F(e,bT())};L(Ce,e=>{qw.resolvedMode===`dark`?e(we):e(Te,-1)}),w(Se),w(me),w(_),j(()=>{gc(_,1,`dmd-navbar ${M(a)?`dmd-navbar-scrolled`:``}`),R(y,`aria-label`,Q.isMobileSidebarOpen?`Close documentation navigation`:`Open documentation navigation`),R(y,`aria-expanded`,Q.isMobileSidebarOpen),R(b,`href`,M(n)),I(te,M(i)?.name),ae=gc(ie,1,`dmd-navbar-center`,null,ae,{"has-route":M(a)&&Q.currentDoc}),R(le,`aria-hidden`,!M(a)||!Q.currentDoc),R(Se,`title`,`Switch to ${qw.resolvedMode===`dark`?`light`:`dark`} mode`),R(Se,`aria-label`,`Switch to ${qw.resolvedMode===`dark`?`light`:`dark`} mode`)}),N(`click`,y,()=>Q.isMobileSidebarOpen=!Q.isMobileSidebarOpen),N(`click`,ye,()=>Q.isEditorOpen=!0),N(`click`,Se,()=>qw.toggleMode()),F(e,_),bn()}So([`click`]);var CT=P(`<div class="dmd-offline-toast" role="status"><span> </span> <button type="button" class="dmd-offline-toast-action">Learn more</button> <button type="button" class="dmd-offline-toast-dismiss" aria-label="Dismiss offline notice">×</button></div>`),wT=P(`<li> </li>`),TT=P(`<li>Links to other documentation files are disabled because nested sites were not embedded in this copy.</li>`),ET=P(`<div class="dmd-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1" aria-label="Offline documentation limitations"><section class="dmd-offline-modal"><div class="dmd-offline-modal-header"><span>About this offline copy</span> <button type="button" class="dmd-appearance-close" aria-label="Close offline notice">×</button></div> <ul class="dmd-offline-modal-list"><li>Every page, the search index, diagrams, themes, and the runtime are embedded in this single file.</li> <!> <li>Links to the internet, such as repository or social links, still require a connection and may not always
|
|
506
|
+
work as intended.</li> <li>This copy never checks for updates. It is required to rebuild the documentation to refresh its content.</li></ul> <div class="dmd-offline-modal-footer"><button type="button" class="dmd-btn-primary">Got it</button></div></section></div>`),DT=P(`<!> <!>`,1);function OT(e,t){yn(t,!0);let n=`This offline copy has limited features.`,r=E(!1),i=E(n),a=E(!1),o=null,s=vr(()=>Object.keys(fC()??{}).length),c=vr(nC);function l(e){D(i,e,!0),D(r,!0),o!==null&&window.clearTimeout(o),o=window.setTimeout(()=>D(r,!1),12e3)}Li(()=>{if(!M(c))return;l(n);let e=e=>{let t=e.detail;l(t||`That link is unavailable in offline documentation.`)};return window.addEventListener($S,e),()=>{window.removeEventListener($S,e),o!==null&&window.clearTimeout(o)}}),Li(()=>{if(!M(a))return;let e=e=>{e.key===`Escape`&&D(a,!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});var u=Vo(),d=Si(u),f=e=>{var t=DT(),n=Si(t),o=e=>{var t=CT(),n=O(t),o=k(n,!0),s=A(n,2),c=A(s,2);w(t),j(()=>I(o,M(i))),N(`click`,s,()=>{D(r,!1),D(a,!0)}),N(`click`,c,()=>D(r,!1)),F(e,t)};L(n,e=>{M(r)&&e(o)});var c=A(n,2),l=e=>{var t=ET(),n=O(t),r=O(n),i=A(O(r),2);w(r);var o=A(r,2),c=A(O(o),2),l=e=>{var t=wT(),n=k(t,!0);j(()=>I(n,M(s)===1?`The nested documentation site opens directly from this file — no other files are needed.`:`${M(s)} nested documentation sites open directly from this file — no other files are needed.`)),F(e,t)},u=e=>{F(e,TT())};L(c,e=>{M(s)>0?e(l):e(u,-1)}),pt(4),w(o);var d=k(A(o,2));w(n),w(t),N(`click`,t,e=>{e.target===e.currentTarget&&D(a,!1)}),N(`keydown`,t,e=>{e.key===`Escape`&&D(a,!1)}),N(`click`,i,()=>D(a,!1)),N(`click`,d,()=>D(a,!1)),F(e,t)};L(c,e=>{M(a)&&e(l)}),F(e,t)};L(d,e=>{M(c)&&e(f)}),F(e,u),bn()}So([`click`,`keydown`]);var kT=P(`<button type="button" class="dmd-search-recent-chip"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></button>`),AT=P(`<div class="dmd-search-recent"><div class="dmd-search-recent-header"><span class="dmd-search-recent-title">Recent Searches</span> <button type="button" class="dmd-search-recent-clear">Clear all</button></div> <div class="dmd-search-recent-tags"></div></div>`),jT=P(`<div class="dmd-search-empty"> </div>`),MT=P(`<span class="dmd-search-item-cat"> </span>`),NT=P(`<p class="dmd-search-item-snippet"></p>`),PT=P(`<button type="button"><div class="dmd-search-item-header"><span class="dmd-search-item-title"></span> <!></div> <!></button>`),FT=P(`<div class="dmd-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1" aria-label="Documentation search"><div class="dmd-search-modal"><div class="dmd-search-input-wrapper"><svg class="dmd-search-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <input type="text" class="dmd-search-input"/> <kbd class="dmd-search-escape dmd-kbd">ESC</kbd> <button type="button" class="dmd-search-close" aria-label="Close search"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" x2="6" y1="6" y2="18"></line><line x1="6" x2="18" y1="6" y2="18"></line></svg></button></div> <!> <div class="dmd-search-results"><!> <!></div> <div class="dmd-search-footer"><span><kbd class="dmd-kbd">↑</kbd> <kbd class="dmd-kbd">↓</kbd> Navigate</span> <span><kbd class="dmd-kbd">↵</kbd> Select</span> <span><kbd class="dmd-kbd">ESC</kbd> Close</span></div></div></div>`);function IT(e,t){yn(t,!0);let n=z(t,`placeholder`,3,`Search docs...`),r=E(``),i=E(ci([])),a=E(0),o=E(null),s=E(null),c=null,l=()=>{if(typeof navigator>`u`)return!1;let e=navigator,t=e.userAgentData?.platform||e.platform||``,n=e.userAgent||``;return/^mac/i.test(t)||/macintosh|mac os x/i.test(n)},u=E(ci(l()));Li(()=>{D(u,l(),!0)});let d=vr(()=>{let e=n()||`Search documentation...`;return M(u)?e.replace(/Ctrl\+?K/gi,`⌘K`):e.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`)}),f=`dmd:recent-searches`,p=E(ci([]));function m(){try{let e=localStorage.getItem(f);D(p,e?JSON.parse(e):[],!0)}catch{D(p,[],!0)}}function h(e){let t=e.trim();if(t)try{let e=[t,...M(p).filter(e=>e.toLowerCase()!==t.toLowerCase())].slice(0,6);localStorage.setItem(f,JSON.stringify(e)),D(p,e,!0)}catch{}}function g(){try{localStorage.removeItem(f),D(p,[],!0)}catch{}}function _(e,t){if(!e||!t)return e;let n=t.trim(),r=n.split(/\s+/).filter(Boolean);if(r.length===0)return e;let i=[n,...r].sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),a=RegExp(`(${i})`,`gi`);return e.replace(a,`<mark class="dmd-search-highlight">$1</mark>`)}Li(()=>{if(t.isOpen){c=document.activeElement||null,m();let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=window.setTimeout(()=>M(o)?.focus(),50);return D(a,0),()=>{window.clearTimeout(t),document.body.style.overflow=e,c&&typeof c.focus==`function`&&(c.focus(),c=null)}}D(r,``),D(i,[],!0)});let v=E(``);Li(()=>{let e=M(r).trim();if(!e){D(v,``);return}let t=window.setTimeout(()=>{D(v,e,!0)},120);return()=>window.clearTimeout(t)}),Li(()=>{if(!M(v)){D(i,[],!0);return}D(i,t.searchIndex.search(M(v)),!0),D(a,0)});function y(e){if(e.key===`Escape`)t.onClose();else if(e.key===`ArrowDown`)e.preventDefault(),D(a,M(i).length>0?(M(a)+1)%M(i).length:0,!0);else if(e.key===`ArrowUp`)e.preventDefault(),D(a,M(i).length>0?(M(a)-1+M(i).length)%M(i).length:0,!0);else if(e.key===`Enter`)e.preventDefault(),M(i)[M(a)]&&(h(M(r)),t.onSelect(M(i)[M(a)].slug),t.onClose());else if(e.key===`Tab`&&M(s)){let t=M(s).querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(t.length>0){let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())}}}function b(e){h(M(r)||e.title),t.onSelect(e.slug),t.onClose()}function x(e){D(r,e,!0),M(o)?.focus()}var S=Vo(),ee=Si(S),te=e=>{var n=FT(),c=O(n),l=O(c),u=A(O(l),2);Ic(u),Ol(u,e=>D(o,e),()=>M(o));var f=A(u,4);w(l);var m=A(l,2),h=e=>{var t=AT(),n=O(t),r=A(O(n),2);w(n);var i=A(n,2);Ss(i,20,()=>M(p),e=>e,(e,t)=>{var n=kT(),r=k(A(O(n),2),!0);w(n),j(()=>I(r,t)),N(`click`,n,()=>x(t)),F(e,n)}),w(i),w(t),N(`click`,r,g),F(e,t)};L(m,e=>{!M(v)&&M(p).length>0&&e(h)});var S=A(m,2),ee=O(S),te=e=>{var t=jT(),n=k(t);j(()=>I(n,`No results found for “${M(v)??``}”`)),F(e,t)};L(ee,e=>{M(v)&&M(i).length===0&&e(te)}),Ss(A(ee,2),19,()=>M(i),e=>e.id,(e,t,n)=>{var r=PT(),i=O(r),o=O(i);Os(o,()=>_(M(t).title,M(v)),!0),w(o);var s=A(o,2),c=e=>{var n=MT(),r=k(n,!0);j(()=>I(r,M(t).category)),F(e,n)};L(s,e=>{M(t).category&&e(c)}),w(i);var l=A(i,2),u=e=>{var n=NT();Os(n,()=>_(M(t).snippet,M(v)),!0),w(n),F(e,n)};L(l,e=>{M(t).snippet&&e(u)}),w(r),j(()=>gc(r,1,`dmd-search-item ${M(n)===M(a)?`selected`:``}`)),N(`click`,r,()=>b(M(t))),xo(`mouseenter`,r,()=>D(a,M(n),!0)),F(e,r)}),w(S),pt(2),w(c),Ol(c,e=>D(s,e),()=>M(s)),w(n),j(()=>{R(u,`placeholder`,M(d)),R(u,`aria-label`,M(d))}),N(`click`,n,e=>{e.target===e.currentTarget&&t.onClose()}),N(`keydown`,n,y),$c(u,()=>M(r),e=>D(r,e)),N(`click`,f,function(...e){t.onClose?.apply(this,e)}),F(e,n)};L(ee,e=>{t.isOpen&&e(te)}),F(e,S),bn()}So([`click`,`keydown`]);var LT=P(`<ul class="dmd-sidebar-sublist"></ul>`),RT=P(`<li class="dmd-sidebar-category"><button type="button" class="dmd-category-header"><span class="dmd-category-title"> </span> <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg></button> <!></li>`),zT=P(`<span> </span>`),BT=P(`<li class="dmd-sidebar-item"><a><span class="dmd-item-icon" aria-hidden="true"><!></span> <span class="dmd-item-body"><span class="dmd-item-title"> </span> <!></span></a></li>`);function VT(e,t){yn(t,!0);let n=E(null),r=vr(()=>M(n)===null?t.node.collapsed??!1:M(n)),i=vr(()=>t.node.isCategory);Li(()=>{t.node.id,D(n,null)});function a(){D(n,!M(r))}var o=Vo(),s=Si(o),c=e=>{var n=RT(),i=O(n),o=O(i),s=k(o,!0),c=A(o,2);w(i);var l=A(i,2),u=e=>{var n=LT();Ss(n,21,()=>t.node.children,e=>e.id,(e,n)=>{VT(e,{get node(){return M(n)},get currentSlug(){return t.currentSlug},get onNavigate(){return t.onNavigate}})}),w(n),F(e,n)};L(l,e=>{!M(r)&&t.node.children&&e(u)}),w(n),j(()=>{R(i,`aria-expanded`,!M(r)),I(s,t.node.title),gc(c,0,`dmd-category-arrow ${M(r)?`collapsed`:``}`)}),N(`click`,i,a),F(e,n)},l=e=>{let n=vr(()=>t.currentSlug===t.node.slug||t.currentSlug===`README`&&t.node.slug===`README`);var r=BT(),i=O(r),a=O(i),o=O(a),s=e=>{var n=Bo();j(()=>I(n,t.node.icon)),F(e,n)};L(o,e=>{t.node.icon&&e(s)}),w(a);var c=A(a,2),l=O(c),u=k(l,!0),d=A(l,2),f=e=>{var n=zT(),r=k(n,!0);j(()=>{gc(n,1,`dmd-badge dmd-badge-${(t.node.badgeType||`info`)??``}`),I(r,t.node.badge)}),F(e,n)};L(d,e=>{t.node.badge&&e(f)}),w(c),w(i),w(r),j(()=>{R(i,`href`,`#/${t.node.slug}`),gc(i,1,`dmd-sidebar-link ${M(n)?`active`:``}`),I(u,t.node.title)}),N(`click`,i,e=>{e.preventDefault(),t.node.slug&&t.onNavigate(t.node.slug)}),F(e,r)};L(s,e=>{M(i)?e(c):e(l,-1)}),F(e,o),bn()}So([`click`]);var HT=P(`<button type="button" class="dmd-sidebar-backdrop" aria-label="Close documentation navigation"></button>`),UT=P(`<li class="dmd-sidebar-status">Loading pages…</li>`),WT=P(`<!> <aside id="dmd-sidebar" aria-label="Documentation navigation"><div class="dmd-sidebar-heading"><div class="dmd-sidebar-label">Documentation</div> <button type="button" class="dmd-sidebar-close" aria-label="Close documentation navigation"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" x2="6" y1="6" y2="18"></line><line x1="6" x2="18" y1="6" y2="18"></line></svg></button></div> <nav class="dmd-sidebar-nav"><ul class="dmd-sidebar-list"><!> <!></ul></nav></aside>`,1);function GT(e,t){yn(t,!0);let n=E(null),r=null;Li(()=>{if(!Q.isMobileSidebarOpen){r&&typeof r.focus==`function`&&(r.focus(),r=null);return}r=document.activeElement||null;let e=document.body.style.overflow;document.body.style.overflow=`hidden`,(M(n)?.querySelector(`.dmd-sidebar-close`))?.focus();let t=e=>{if(e.key===`Escape`){Q.isMobileSidebarOpen=!1;return}if(e.key===`Tab`&&M(n)){let t=M(n).querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(t.length>0){let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())}}};return window.addEventListener(`keydown`,t),()=>{document.body.style.overflow=e,window.removeEventListener(`keydown`,t)}}),Li(()=>{let e=0,t=0,n=!1,r=r=>{r.touches.length===1&&(e=r.touches[0].clientX,t=r.touches[0].clientY,(Q.isMobileSidebarOpen||e<30)&&(n=!0))},i=r=>{if(!n||r.changedTouches.length!==1)return;n=!1;let i=r.changedTouches[0].clientX,a=r.changedTouches[0].clientY,o=i-e,s=a-t;Math.abs(s)>80||(Q.isMobileSidebarOpen&&o<-50?Q.isMobileSidebarOpen=!1:!Q.isMobileSidebarOpen&&e<30&&o>60&&(Q.isMobileSidebarOpen=!0))};return window.addEventListener(`touchstart`,r,{passive:!0}),window.addEventListener(`touchend`,i,{passive:!0}),()=>{window.removeEventListener(`touchstart`,r),window.removeEventListener(`touchend`,i)}});var i=WT(),a=Si(i),o=e=>{var t=HT();N(`click`,t,()=>Q.isMobileSidebarOpen=!1),F(e,t)};L(a,e=>{Q.isMobileSidebarOpen&&e(o)});var s=A(a,2),c=O(s),l=A(O(c),2);w(c);var u=A(c,2),d=O(u),f=O(d),p=e=>{F(e,UT())};L(f,e=>{Q.tree.length===0&&Q.isLoading&&e(p)}),Ss(A(f,2),17,()=>Q.tree,e=>e.id,(e,t)=>{VT(e,{get node(){return M(t)},get currentSlug(){return Q.currentSlug},onNavigate:e=>Q.navigate(e)})}),w(d),w(u),w(s),Ol(s,e=>D(n,e),()=>M(n)),j(()=>gc(s,1,`dmd-sidebar ${Q.isMobileSidebarOpen?`mobile-open`:``}`)),N(`click`,l,()=>Q.isMobileSidebarOpen=!1),F(e,i),bn()}So([`click`]);var KT=P(`<li><a><!></a></li>`),qT=P(`<aside><button type="button" class="dmd-toc-header" aria-controls="dmd-toc-list"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line></svg> <span>On this page</span> <svg class="dmd-toc-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"></polyline></svg></button> <ul class="dmd-toc-list" id="dmd-toc-list"></ul></aside>`);function JT(e,t){yn(t,!0);let n=E(``),r=E(!1);Li(()=>{if(t.headings.length===0)return;let e=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&t.target.id!==M(n)&&D(n,t.target.id,!0)},{rootMargin:`-80px 0% -60% 0%`,threshold:0});for(let n of t.headings){let t=document.getElementById(n.id);t&&e.observe(t)}return()=>e.disconnect()}),Li(()=>{if(!M(n))return;let e=document.querySelector(`.dmd-toc-link[href*="#${M(n)}"]`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`,behavior:`smooth`})});function i(e){let i=document.getElementById(e.id);if(i){Tx(i);try{typeof window<`u`&&window.location.protocol===`file:`?window.location.hash=`#/${t.currentSlug}#${e.id}`:history.pushState(null,``,`#/${t.currentSlug}#${e.id}`)}catch{try{window.location.hash=`#/${t.currentSlug}#${e.id}`}catch{}}D(n,e.id,!0),D(r,!1)}}var a=qT(),o=O(a),s=A(o,2);Ss(s,21,()=>t.headings,e=>e.id,(e,r)=>{var a=KT(),o=O(a),s=O(o),c=e=>{var t=Vo();Os(Si(t),()=>M(r).html.replace(/<a\b[^>]*>([\s\S]*?)<\/a>/gi,`$1`)),F(e,t)},l=e=>{var t=Bo();j(()=>I(t,M(r).text)),F(e,t)};L(s,e=>{M(r).html?e(c):e(l,-1)}),w(o),w(a),j(()=>{gc(a,1,`dmd-toc-item dmd-toc-level-${M(r).level??``}`),R(o,`href`,`#/${t.currentSlug}#${M(r).id}`),gc(o,1,`dmd-toc-link ${M(n)===M(r).id?`active`:``}`)}),N(`click`,o,e=>{e.preventDefault(),i(M(r))}),F(e,a)}),w(s),w(a),j(()=>{gc(a,1,`dmd-toc ${M(r)?`is-open`:``}`),R(o,`aria-expanded`,M(r))}),N(`click`,o,()=>D(r,!M(r))),F(e,a),bn()}So([`click`]);var YT=P(`<div class="dmd-tag-filter-bar"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <input type="text" class="dmd-tag-filter-input" placeholder="Filter tagged documents..."/></div>`),XT=P(`<span class="dmd-tag-current-badge">Current Page</span>`),ZT=P(`<span class="dmd-tag-card-time"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> </span>`),QT=P(`<span class="dmd-tag-card-cat"> </span>`),$T=P(`<button type="button"> </button>`),eE=P(`<div class="dmd-tag-card-tags"></div>`),tE=P(`<div role="button" tabindex="0"><div class="dmd-tag-card-head"><span class="dmd-tag-card-title"> </span> <!></div> <div class="dmd-tag-card-route"> </div> <div class="dmd-tag-card-meta"><!> <!></div> <!></div>`),nE=P(`<div class="dmd-tag-doc-grid"></div>`),rE=P(`<div class="dmd-tag-empty"><p> </p></div>`),iE=P(`<button type="button"> <span class="dmd-tag-count"> </span></button>`),aE=P(`<div class="dmd-tag-modal-footer"><span class="dmd-tag-footer-label">Explore related tags:</span> <div class="dmd-tag-chips-scroll"></div></div>`),oE=P(`<div class="dmd-modal-backdrop dmd-tag-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1"><div class="dmd-tag-modal"><div class="dmd-tag-modal-header"><div class="dmd-tag-modal-title-wrap"><div class="dmd-tag-pill-large"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line></svg> <span> </span></div> <div><h2 class="dmd-tag-modal-title"> </h2> <p class="dmd-tag-modal-sub"> </p></div></div> <button type="button" class="dmd-tag-modal-close" aria-label="Close tag modal">×</button></div> <!> <div class="dmd-tag-modal-body"><!></div> <!></div></div>`);function sE(e,t){yn(t,!0);let n=E(``),r=E(null),i=vr(()=>Q.activeTagModal||``),a=vr(()=>{if(!M(i))return[];let e=Q.getDocsWithTag(M(i));if(!M(n).trim())return e;let t=M(n).toLowerCase().trim();return e.filter(e=>e.title.toLowerCase().includes(t)||e.slug.toLowerCase().includes(t)||e.frontmatter?.tags?.some(e=>e.toLowerCase().includes(t)))}),o=vr(()=>Q.getAllTags());function s(){Q.closeTagModal(),D(n,``)}function c(e){e.key===`Escape`&&s()}function l(e){s(),Q.navigate(e)}function u(e){D(n,``),Q.openTagModal(e)}Li(()=>{if(!Q.activeTagModal)return;let e=e=>{M(r)&&!M(r).contains(e.target)&&s()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)});var d=Vo(),f=Si(d),p=e=>{var t=oE(),d=O(t),f=O(d),p=O(f),m=O(p),h=k(A(O(m),2));w(m);var g=A(m,2),_=O(g),v=k(_),y=k(A(_,2));w(g),w(p);var b=A(p,2);w(f);var x=A(f,2),S=e=>{var t=YT(),r=A(O(t),2);Ic(r),w(t),$c(r,()=>M(n),e=>D(n,e)),F(e,t)},ee=vr(()=>Q.getDocsWithTag(M(i)).length>3);L(x,e=>{M(ee)&&e(S)});var te=A(x,2),ne=O(te),re=e=>{var t=nE();Ss(t,21,()=>M(a),e=>e.slug,(e,t)=>{var n=tE();let r;var a=O(n),o=O(a),s=k(o,!0),c=A(o,2),d=e=>{F(e,XT())};L(c,e=>{M(t).slug===Q.currentSlug&&e(d)}),w(a);var f=A(a,2),p=k(f,!0),m=A(f,2),h=O(m),g=e=>{var n=ZT(),r=A(O(n));w(n),j(()=>I(r,` ${M(t).readingTimeMinutes??``} min read`)),F(e,n)};L(h,e=>{M(t).readingTimeMinutes&&e(g)});var _=A(h,2),v=e=>{var n=QT(),r=k(n,!0);j(()=>I(r,M(t).category||M(t).frontmatter?.category)),F(e,n)};L(_,e=>{(M(t).category||M(t).frontmatter?.category)&&e(v)}),w(m);var y=A(m,2),b=e=>{var n=eE();Ss(n,20,()=>M(t).frontmatter.tags,e=>e,(e,t)=>{var n=$T();let r;var a=k(n);j(e=>{r=gc(n,1,`dmd-tag-card-chip`,null,r,{highlight:e}),R(n,`title`,`Explore documents tagged with #${t??``}`),I(a,`#${t??``}`)},[()=>t.toLowerCase()===M(i).toLowerCase()]),N(`click`,n,e=>{e.stopPropagation(),u(t)}),F(e,n)}),w(n),F(e,n)};L(y,e=>{M(t).frontmatter?.tags&&M(t).frontmatter.tags.length>0&&e(b)}),w(n),j(()=>{r=gc(n,1,`dmd-tag-doc-card`,null,r,{"is-current":M(t).slug===Q.currentSlug}),I(s,M(t).title),I(p,M(t).slug)}),N(`click`,n,()=>l(M(t).slug)),N(`keydown`,n,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),l(M(t).slug))}),F(e,n)}),w(t),F(e,t)},ie=e=>{var t=rE(),r=k(O(t));w(t),j(()=>I(r,`No documents found matching "${M(n)??``}" under #${M(i)??``}.`)),F(e,t)};L(ne,e=>{M(a).length>0?e(re):e(ie,-1)}),w(te);var ae=A(te,2),oe=e=>{var t=aE(),n=A(O(t),2);Ss(n,21,()=>M(o).slice(0,12),e=>e.tag,(e,t)=>{var n=iE();let r;var a=O(n),o=k(A(a));w(n),j(e=>{r=gc(n,1,`dmd-tag-footer-chip`,null,r,{active:e}),I(a,`#${M(t).tag??``} `),I(o,`(${M(t).count??``})`)},[()=>M(t).tag.toLowerCase()===M(i).toLowerCase()]),N(`click`,n,()=>u(M(t).tag)),F(e,n)}),w(n),w(t),F(e,t)};L(ae,e=>{M(o).length>1&&e(oe)}),w(d),Ol(d,e=>D(r,e),()=>M(r)),w(t),j(()=>{R(t,`aria-label`,`Documents tagged with #${M(i)??``}`),I(h,`#${M(i)??``}`),I(v,`Documents tagged with #${M(i)??``}`),I(y,`${M(a).length??``} ${M(a).length===1?`matching document`:`matching documents`} found`)}),N(`keydown`,t,c),N(`click`,b,s),F(e,t)};L(f,e=>{Q.activeTagModal&&e(p)}),F(e,d),bn()}So([`keydown`,`click`]);var cE=P(`<div class="dmd-root"><a href="#dmd-main-content" class="dmd-skip-to-content">Skip to content</a> <!> <div class="dmd-layout-body"><!> <div class="dmd-main-wrapper"><!> <!></div></div> <!> <!> <!> <!></div>`);function lE(e,t){yn(t,!0),Li(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`?(e.preventDefault(),Q.isSearchOpen=!Q.isSearchOpen):(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`e`&&(e.preventDefault(),Q.isEditorOpen=!Q.isEditorOpen)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});let n;Li(()=>{let e=document.documentElement,t=(t,n)=>{e.getAttribute(t)!==n&&e.setAttribute(t,n)},r=(t,n)=>{n?e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n):e.style.getPropertyValue(t)&&e.style.removeProperty(t)},i=e.getAttribute(`data-dmd-mode`)!==qw.resolvedMode,a=e.getAttribute(`data-dmd-theme`)!==qw.family,o=qw.resolvedMode===`dark`&&qw.accentColorDark||qw.accentColor,s=(e.style.getPropertyValue(`--dmd-accent`)||void 0)!==o;(i||a||s)&&(e.classList.add(`dmd-theme-switching`),clearTimeout(n),n=setTimeout(()=>e.classList.remove(`dmd-theme-switching`),220)),t(`data-dmd-mode`,qw.resolvedMode),t(`data-dmd-theme`,qw.family),t(`data-dmd-density`,qw.density),t(`data-dmd-motion`,qw.motion),t(`data-theme`,qw.resolvedMode),r(`--dmd-accent`,o),r(`--dmd-accent-hover`,o)}),Li(()=>{if(typeof document>`u`)return;let e=FS(Q.config?.theme?.favicon),t=document.querySelector(`link[rel~="icon"]`);t||(t=document.createElement(`link`),t.rel=`icon`,document.head.appendChild(t)),t.getAttribute(`href`)!==e&&t.setAttribute(`href`,e)}),Li(()=>{(Q.currentDoc||Q.error)&&ZS()});var r=cE(),i=A(O(r),2);ST(i,{});var a=A(i,2),o=O(a);GT(o,{});var s=A(o,2),c=O(s);ww(c,{});var l=A(c,2),u=e=>{var t=Vo();gs(Si(t),()=>Q.currentSlug,e=>{JT(e,{get headings(){return Q.currentDoc.headings},get currentSlug(){return Q.currentSlug}})}),F(e,t)};L(l,e=>{Q.currentDoc&&Q.currentDoc.headings.length>0&&e(u)}),w(s),w(a);var d=A(a,2);{let e=vr(()=>Q.config?.search?.placeholder);IT(d,{get isOpen(){return Q.isSearchOpen},onClose:()=>Q.isSearchOpen=!1,get searchIndex(){return Q.searchIndex},onSelect:e=>Q.navigate(e),get placeholder(){return M(e)}})}var f=A(d,2);Vw(f,{});var p=A(f,2);sE(p,{}),OT(A(p,2),{}),w(r),F(e,r),bn()}var uE=Po(`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="m5 12 4 4L19 6"></path></svg>`),dE=Po(`<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="8" y="8" width="11" height="11" rx="2"></rect><path d="M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"></path></svg>`),fE=P(`<pre class="dmd-diagram-error"> </pre>`),pE=P(`<button type="button"><!></button>`),mE=P(`<div class="dmd-diagram-canvas"><div class="dmd-diagram-svg"></div> <!></div>`),hE=P(`<div class="dmd-diagram-loading">Rendering diagram…</div>`),gE=P(`<figure><div class="dmd-diagram-frame"><div class="dmd-diagram-toolbar"><button type="button" class="dmd-diagram-btn" aria-label="Zoom out">−</button> <span class="dmd-diagram-zoom-label" aria-live="polite"> </span> <button type="button" class="dmd-diagram-btn" aria-label="Zoom in">+</button> <button type="button" class="dmd-diagram-btn">Fit</button> <button type="button" class="dmd-diagram-btn">1:1</button> <span class="dmd-diagram-toolbar-spacer"></span> <button type="button"><!></button> <span class="dmd-diagram-toolbar-divider" aria-hidden="true"></span> <button type="button" class="dmd-diagram-btn">SVG</button> <button type="button" class="dmd-diagram-btn"> </button></div> <div role="application"><!></div> <div class="dmd-diagram-status" aria-live="polite"> </div></div></figure>`);function _E(e,t){yn(t,!0);let n=.1,r=.1,i=e=>Math.min(3,Math.max(n,Math.round(e*100)/100));async function a(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);if(t.remove(),!n)throw Error(`Clipboard access is unavailable.`)}function o(e){return[...e.querySelectorAll(`.text-outer-tspan.row, text, tspan`)].map(e=>e.textContent?.replace(/\s+/g,` `).trim()).filter(Boolean)[0]||e.textContent?.replace(/\s+/g,` `).trim()||`Untitled subgraph`}let s=z(t,`source`,7),c=vr(()=>wf(s())),l=E(null),u=E(null),d=E(null),f=E(1),p=E(1),m=E(!0),h=E(!1),g=E(ci([])),_=E(ci({x:0,y:0})),v=E(null),y=E(!1),b=E(null),x=E(null),S=E(null),ee=null,te={x:0,y:0},ne=null,re=vr(()=>M(u)?{width:Math.max(1,Math.round(M(u).width*M(f))),height:Math.max(1,Math.round(M(u).height*M(f)))}:null);Li(()=>{M(c);let e=!1,t=null,n,r=()=>{let n=Ef(),r=`${n.family}|${n.mode}|${n.tokens.accent}|${n.tokens.codeSurface}|${n.tokens.codeInk}`;r!==t&&(t=r,kf(M(c),n.family,n.mode,n.tokens).then(t=>{e||(D(l,t,!0),D(u,df(t),!0),D(d,null),D(m,!0))}).catch(t=>{e||(D(l,null),D(u,null),D(d,t instanceof Error?t.message:String(t),!0))}))};if(r(),typeof MutationObserver>`u`)return()=>{e=!0};let i=new MutationObserver(()=>{e||(clearTimeout(n),n=setTimeout(r,150))});return i.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dmd-theme`,`data-theme`,`style`]}),()=>{e=!0,clearTimeout(n),i.disconnect()}}),Li(()=>{if(!M(l))return;let e=M(S)?.querySelector(`svg`);if(!e)return;let t=e.querySelector(`.cluster`)!==null,n=e.querySelectorAll(`:scope > g`),r=e.querySelector(`:scope > g.output, :scope > g[id^='flowchart-']`)??(n.length===1?n[0]:null);if(!(!t||!r||typeof r.getBBox!=`function`))try{let t=r.getBBox();if(t.width<=0||t.height<=0)return;let n={width:t.width+40,height:t.height+40};(!M(u)||n.height>M(u).height||n.width>M(u).width)&&(e.setAttribute(`viewBox`,`${t.x-20} ${t.y-20} ${n.width} ${n.height}`),e.removeAttribute(`width`),e.removeAttribute(`height`),D(u,n,!0))}catch{}}),Li(()=>{if(!M(x)||!M(u))return;let e=()=>{let e=getComputedStyle(M(x)),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),n=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),r=Math.max(1,M(x).clientWidth-t),a=Math.max(1,M(x).clientHeight-n),o=M(h)?i(ff(M(u),{width:r,height:a})):i(Math.min(1,r/M(u).width)),s=M(h)?null:Math.round(Math.min(560,Math.max(200,M(u).height*o+n)));D(b,s,!0);let c=Math.max(1,(s??M(x).clientHeight)-n);D(p,o,!0),M(m)&&(D(f,o,!0),D(_,{x:0,y:Math.max(0,(M(u).height*o-c)/2)},!0))};if(e(),typeof ResizeObserver>`u`)return;let t=new ResizeObserver(e);return t.observe(M(x)),()=>t.disconnect()}),Li(()=>{let e=M(S),t=e?.querySelector(`svg`);if(!e||!t||!M(u)||M(f)<=0){D(g,[],!0);return}let n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect(),r=_f(M(c)),i=new Set(r.map((e,t)=>t)),a=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,``),s=[...t.querySelectorAll(`.cluster`)].map((e,t)=>{let s=e.getBoundingClientRect();if(s.width<=0||s.height<=0)return null;let l=o(e),u=a(l),d=r.findIndex((e,t)=>i.has(t)&&(a(e.label)===u||a(e.id)===u));d<0&&(d=r.findIndex((t,n)=>i.has(n)&&a(e.id).includes(a(t.id)))),d<0&&(d=[...i][0]??-1);let f=r[d];return f?(i.delete(d),{id:`subgraph-${f.id}-${t}`,label:f.label||l,markdown:vf(M(c),f.source),left:s.right-n.left-8,top:s.top-n.top+8}):null}).filter(e=>e!==null);D(g,s,!0)});return()=>cancelAnimationFrame(n)}),Li(()=>{if(!M(h))return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&D(h,!1)};return window.addEventListener(`keydown`,t),()=>{document.body.style.overflow=e,window.removeEventListener(`keydown`,t)}}),Li(()=>()=>{ne!==null&&window.clearTimeout(ne)});function ie(){if(!M(l))return;let e=new Blob([M(l)],{type:`image/svg+xml;charset=utf-8`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`diagram.svg`,n.click(),URL.revokeObjectURL(t)}function ae(e){D(m,!1),D(f,i(e),!0)}function oe(){D(m,!0),D(f,M(p),!0);let e=M(x);if(e&&M(u)){let t=getComputedStyle(e),n=Number.parseFloat(t.paddingTop)+Number.parseFloat(t.paddingBottom),r=Math.max(1,(M(b)??e.clientHeight)-n),i={x:0,y:Math.max(0,(M(u).height*M(p)-r)/2)};te=i,D(_,i,!0)}}function se(){let e=M(x);if(!e||!M(re))return{x:0,y:0};let t=getComputedStyle(e),n={width:Math.max(0,e.clientWidth-Number.parseFloat(t.paddingLeft)-Number.parseFloat(t.paddingRight)),height:Math.max(0,e.clientHeight-Number.parseFloat(t.paddingTop)-Number.parseFloat(t.paddingBottom))};return pf(M(re),n)}function ce(e){return mf({x:0,y:0},e,se()).camera}Li(()=>{M(re),M(f);let e=ce(te);(e.x!==te.x||e.y!==te.y)&&(te=e,D(_,e,!0))});async function le(e,t){try{await a(e),D(v,t,!0),ne!==null&&window.clearTimeout(ne),ne=window.setTimeout(()=>D(v,null),1800)}catch{D(v,`error`)}}function ue(e){return e instanceof Element?!e.closest(`.node, text, .dmd-diagram-subgraph-copy, button, a`):!0}function de(e){let t=M(x);!t||e.pointerType===`mouse`&&e.button!==0||!ue(e.target)||(ee={pointerId:e.pointerId,lastX:e.clientX,lastY:e.clientY},t.setPointerCapture(e.pointerId),D(y,!0),e.preventDefault())}function fe(e){let t=ee;if(t?.pointerId===e.pointerId){let n={x:e.clientX-t.lastX,y:e.clientY-t.lastY},r=mf(te,n,se());t.lastX=e.clientX,t.lastY=e.clientY,te=r.camera,D(_,r.camera,!0),!M(h)&&r.remainder.y!==0&&window.scrollBy({top:-r.remainder.y,behavior:`instant`}),e.preventDefault()}}function pe(e){let t=M(x);ee?.pointerId===e.pointerId&&(ee=null,D(y,!1),t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId))}Li(()=>{let e=M(x);if(!e)return;let t=t=>{if(!M(re))return;let n=t.deltaMode===1?16:t.deltaMode===2?e.clientHeight:1,r={x:-t.deltaX*n,y:-t.deltaY*n},i=mf(te,r,se()),a=i.camera.x!==te.x||i.camera.y!==te.y;!a&&(M(h)||i.remainder.y===0)||(t.preventDefault(),te=i.camera,a&&D(_,i.camera,!0),!M(h)&&i.remainder.y!==0&&window.scrollBy({top:-i.remainder.y,behavior:`instant`}))};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)});var me={get source(){return s()},set source(e){s(e),T()}},he=gE(),ge=O(he),_e=O(ge),ve=O(_e),ye=A(ve,2),be=k(ye),xe=A(ye,2),Se=A(xe,2),Ce=A(Se,2),we=A(Ce,4),Te=O(we),Ee=e=>{F(e,uE())},De=e=>{F(e,dE())};L(Te,e=>{M(v)===`graph`?e(Ee):e(De,-1)}),w(we);var Oe=A(we,4),ke=A(Oe,2),Ae=k(ke,!0);w(_e);var je=A(_e,2),Me=O(je),Ne=e=>{var t=fE(),n=k(t);j(()=>I(n,`Diagram syntax error: ${M(d)??``}`)),F(e,t)},Pe=e=>{var t=mE(),n=O(t);Os(n,()=>M(l),!0),w(n),Ss(A(n,2),17,()=>M(g),e=>e.id,(e,t)=>{var n=pE(),r=O(n),i=e=>{F(e,uE())},a=e=>{F(e,dE())};L(r,e=>{M(v)===M(t).id?e(i):e(a,-1)}),w(n),j(()=>{gc(n,1,`dmd-diagram-subgraph-copy${M(v)===M(t).id?` copied`:``}`),vc(n,`left: ${M(t).left??``}px; top: ${M(t).top??``}px;`),R(n,`aria-label`,M(v)===M(t).id?`${M(t).label} subgraph Markdown copied`:`Copy ${M(t).label} subgraph Markdown`),R(n,`title`,M(v)===M(t).id?`Copied`:`Copy ${M(t).label} subgraph Markdown`)}),N(`click`,n,()=>le(M(t).markdown,M(t).id)),F(e,n)}),w(t),Ol(t,e=>D(S,e),()=>M(S)),j((e,n,r,i)=>vc(t,`width: ${M(re).width??``}px; height: ${M(re).height??``}px; margin-left: ${e??``}px; margin-top: ${n??``}px; transform: translate(${r??``}px, ${i??``}px);`),[()=>-Math.round(M(re).width/2),()=>-Math.round(M(re).height/2),()=>Math.round(M(_).x),()=>Math.round(M(_).y)]),F(e,t)},Fe=e=>{F(e,hE())};L(Me,e=>{M(d)?e(Ne):M(l)&&M(re)?e(Pe,1):e(Fe,-1)}),w(je),Ol(je,e=>D(x,e),()=>M(x));var Ie=k(A(je,2),!0);return w(ge),w(he),j(e=>{gc(he,1,`dmd-diagram-viewer${M(h)?` is-expanded`:``}`),ve.disabled=!M(l)||M(f)<=n,I(be,`${e??``}%`),xe.disabled=!M(l)||M(f)>=3,Se.disabled=!M(l)||M(m),Ce.disabled=!M(l)||M(f)===1,gc(we,1,`dmd-diagram-btn dmd-diagram-icon-btn dmd-diagram-copy-all${M(v)===`graph`?` copied`:``}`),we.disabled=!M(l),R(we,`aria-label`,M(v)===`graph`?`Graph Markdown copied`:`Copy graph Markdown`),R(we,`title`,M(v)===`graph`?`Copied`:`Copy graph Markdown`),Oe.disabled=!M(l),ke.disabled=!M(l),I(Ae,M(h)?`Close`:`Expand`),gc(je,1,`dmd-diagram-stage${M(y)?` is-panning`:``}`),vc(je,M(b)!==null&&!M(h)?`height: ${M(b)}px; aspect-ratio: auto;`:void 0),I(Ie,M(v)===`error`?`Clipboard unavailable. Select the diagram text manually.`:``)},[()=>Math.round(M(f)*100)]),N(`click`,ve,()=>ae(M(f)-r)),N(`click`,xe,()=>ae(M(f)+r)),N(`click`,Se,oe),N(`click`,Ce,()=>ae(1)),N(`click`,we,()=>le(hf(M(c)),`graph`)),N(`click`,Oe,ie),N(`click`,ke,()=>D(h,!M(h))),N(`pointerdown`,je,de),N(`pointermove`,je,fe),N(`pointerup`,je,pe),xo(`pointercancel`,je,pe),F(e,he),bn(me)}So([`click`,`pointerdown`,`pointermove`,`pointerup`]),customElements.define(`dmd-mermaid`,ou(_E,{source:{}},[],[]));var vE;function $(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var yE=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},bE=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(vE=globalThis).__zod_globalConfig??(vE.__zod_globalConfig={});var xE=globalThis.__zod_globalConfig;function SE(e){return e&&Object.assign(xE,e),xE}function CE(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function wE(e,t){return typeof t==`bigint`?t.toString():t}function TE(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function EE(e){return e==null}function DE(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function OE(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var kE=Symbol(`evaluating`);function AE(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==kE)return r===void 0&&(r=kE,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function jE(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ME(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function NE(e){return JSON.stringify(e)}function PE(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var FE=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function IE(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var LE=TE(()=>{if(xE.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function RE(e){if(IE(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return IE(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function zE(e){return RE(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var BE=new Set([`string`,`number`,`symbol`]);function VE(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function HE(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function UE(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function WE(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var GE={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function KE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return HE(e,ME(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return jE(this,`shape`,e),e},checks:[]}))}function qE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return HE(e,ME(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return jE(this,`shape`,r),r},checks:[]}))}function JE(e,t){if(!RE(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return HE(e,ME(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return jE(this,`shape`,n),n}}))}function YE(e,t){if(!RE(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return HE(e,ME(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return jE(this,`shape`,n),n}}))}function XE(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return HE(e,ME(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return jE(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ZE(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return HE(t,ME(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return jE(this,`shape`,i),i},checks:[]}))}function QE(e,t,n){return HE(t,ME(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return jE(this,`shape`,i),i}}))}function $E(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function eD(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function tD(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function nD(e){return typeof e==`string`?e:e?.message}function rD(e,t,n){let r=e.message?e.message:nD(e.inst?._zod.def?.error?.(e))??nD(t?.error?.(e))??nD(n.customError?.(e))??nD(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function iD(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function aD(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var oD=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,wE,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},sD=$(`$ZodError`,oD),cD=$(`$ZodError`,oD,{Parent:Error});function lD(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function uD(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}var dD=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new yE;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>rD(e,a,SE())));throw FE(t,i?.callee),t}return o.value},fD=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>rD(e,a,SE())));throw FE(t,i?.callee),t}return o.value},pD=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new yE;return a.issues.length?{success:!1,error:new(e??sD)(a.issues.map(e=>rD(e,i,SE())))}:{success:!0,data:a.value}},mD=pD(cD),hD=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>rD(e,i,SE())))}:{success:!0,data:a.value}},gD=hD(cD),_D=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return dD(e)(t,n,i)},vD=e=>(t,n,r)=>dD(e)(t,n,r),yD=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return fD(e)(t,n,i)},bD=e=>async(t,n,r)=>fD(e)(t,n,r),xD=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return pD(e)(t,n,i)},SD=e=>(t,n,r)=>pD(e)(t,n,r),CD=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return hD(e)(t,n,i)},wD=e=>async(t,n,r)=>hD(e)(t,n,r),TD=/^[cC][0-9a-z]{6,}$/,ED=/^[0-9a-z]+$/,DD=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,OD=/^[0-9a-vA-V]{20}$/,kD=/^[A-Za-z0-9]{27}$/,AD=/^[a-zA-Z0-9_-]{21}$/,jD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,MD=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ND=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,PD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,FD=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function ID(){return new RegExp(FD,`u`)}var LD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,RD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,zD=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,BD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,VD=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,HD=/^[A-Za-z0-9_-]*$/,UD=/^https?$/,WD=/^\+[1-9]\d{6,14}$/,GD=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,KD=RegExp(`^${GD}$`);function qD(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function JD(e){return RegExp(`^${qD(e)}$`)}function YD(e){let t=qD({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${GD}T(?:${r})$`)}var XD=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},ZD=/^-?\d+$/,QD=/^-?\d+(?:\.\d+)?$/,$D=/^(?:true|false)$/i,eO=/^[^A-Z]*$/,tO=/^[^a-z]*$/,nO=$(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),rO={number:`number`,bigint:`bigint`,object:`date`},iO=$(`$ZodCheckLessThan`,(e,t)=>{nO.init(e,t);let n=rO[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),aO=$(`$ZodCheckGreaterThan`,(e,t)=>{nO.init(e,t);let n=rO[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),oO=$(`$ZodCheckMultipleOf`,(e,t)=>{nO.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):OE(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),sO=$(`$ZodCheckNumberFormat`,(e,t)=>{nO.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=GE[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=ZD)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),cO=$(`$ZodCheckMaxLength`,(e,t)=>{var n;nO.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!EE(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=iD(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),lO=$(`$ZodCheckMinLength`,(e,t)=>{var n;nO.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!EE(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=iD(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),uO=$(`$ZodCheckLengthEquals`,(e,t)=>{var n;nO.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!EE(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=iD(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),dO=$(`$ZodCheckStringFormat`,(e,t)=>{var n,r;nO.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),fO=$(`$ZodCheckRegex`,(e,t)=>{dO.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),pO=$(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=eO,dO.init(e,t)}),mO=$(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=tO,dO.init(e,t)}),hO=$(`$ZodCheckIncludes`,(e,t)=>{nO.init(e,t);let n=VE(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),gO=$(`$ZodCheckStartsWith`,(e,t)=>{nO.init(e,t);let n=RegExp(`^${VE(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),_O=$(`$ZodCheckEndsWith`,(e,t)=>{nO.init(e,t);let n=RegExp(`.*${VE(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),vO=$(`$ZodCheckOverwrite`,(e,t)=>{nO.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),yO=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
507
507
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
508
|
-
`))}},
|
|
508
|
+
`))}},bO={major:4,minor:4,patch:3},xO=$(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=bO;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=$E(e),i;for(let a of t){if(a._zod.def.when){if(eD(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new yE;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=$E(e,t))});else{if(e.issues.length===t)continue;r||=$E(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if($E(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new yE;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new yE;return o.then(e=>t(e,r,a))}return t(o,r,a)}}AE(e,`~standard`,()=>({validate:t=>{try{let n=mD(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return gD(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),SO=$(`$ZodString`,(e,t)=>{xO.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??XD(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),CO=$(`$ZodStringFormat`,(e,t)=>{dO.init(e,t),SO.init(e,t)}),wO=$(`$ZodGUID`,(e,t)=>{t.pattern??=MD,CO.init(e,t)}),TO=$(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=ND(e)}else t.pattern??=ND();CO.init(e,t)}),EO=$(`$ZodEmail`,(e,t)=>{t.pattern??=PD,CO.init(e,t)}),DO=$(`$ZodURL`,(e,t)=>{CO.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===UD.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),OO=$(`$ZodEmoji`,(e,t)=>{t.pattern??=ID(),CO.init(e,t)}),kO=$(`$ZodNanoID`,(e,t)=>{t.pattern??=AD,CO.init(e,t)}),AO=$(`$ZodCUID`,(e,t)=>{t.pattern??=TD,CO.init(e,t)}),jO=$(`$ZodCUID2`,(e,t)=>{t.pattern??=ED,CO.init(e,t)}),MO=$(`$ZodULID`,(e,t)=>{t.pattern??=DD,CO.init(e,t)}),NO=$(`$ZodXID`,(e,t)=>{t.pattern??=OD,CO.init(e,t)}),PO=$(`$ZodKSUID`,(e,t)=>{t.pattern??=kD,CO.init(e,t)}),FO=$(`$ZodISODateTime`,(e,t)=>{t.pattern??=YD(t),CO.init(e,t)}),IO=$(`$ZodISODate`,(e,t)=>{t.pattern??=KD,CO.init(e,t)}),LO=$(`$ZodISOTime`,(e,t)=>{t.pattern??=JD(t),CO.init(e,t)}),RO=$(`$ZodISODuration`,(e,t)=>{t.pattern??=jD,CO.init(e,t)}),zO=$(`$ZodIPv4`,(e,t)=>{t.pattern??=LD,CO.init(e,t),e._zod.bag.format=`ipv4`}),BO=$(`$ZodIPv6`,(e,t)=>{t.pattern??=RD,CO.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),VO=$(`$ZodCIDRv4`,(e,t)=>{t.pattern??=zD,CO.init(e,t)}),HO=$(`$ZodCIDRv6`,(e,t)=>{t.pattern??=BD,CO.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function UO(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var WO=$(`$ZodBase64`,(e,t)=>{t.pattern??=VD,CO.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{UO(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function GO(e){if(!HD.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return UO(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var KO=$(`$ZodBase64URL`,(e,t)=>{t.pattern??=HD,CO.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{GO(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),qO=$(`$ZodE164`,(e,t)=>{t.pattern??=WD,CO.init(e,t)});function JO(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var YO=$(`$ZodJWT`,(e,t)=>{CO.init(e,t),e._zod.check=n=>{JO(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),XO=$(`$ZodNumber`,(e,t)=>{xO.init(e,t),e._zod.pattern=e._zod.bag.pattern??QD,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),ZO=$(`$ZodNumberFormat`,(e,t)=>{sO.init(e,t),XO.init(e,t)}),QO=$(`$ZodBoolean`,(e,t)=>{xO.init(e,t),e._zod.pattern=$D,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),$O=$(`$ZodUnknown`,(e,t)=>{xO.init(e,t),e._zod.parse=e=>e}),ek=$(`$ZodNever`,(e,t)=>{xO.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function tk(e,t,n){e.issues.length&&t.issues.push(...tD(n,e.issues)),t.value[n]=e.value}var nk=$(`$ZodArray`,(e,t)=>{xO.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>tk(t,n,e))):tk(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function rk(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...tD(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function ik(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=WE(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function ak(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>rk(e,n,i,t,u,d))):rk(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var ok=$(`$ZodObject`,(e,t)=>{if(xO.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=TE(()=>ik(t));AE(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=IE,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>rk(n,t,e,s,r,i))):rk(a,t,e,s,r,i)}return i?ak(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),sk=$(`$ZodObjectJIT`,(e,t)=>{ok.init(e,t);let n=e._zod.parse,r=TE(()=>ik(t)),i=e=>{let t=new yO([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=NE(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=NE(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
|
|
509
509
|
if (${n}.issues.length) {
|
|
510
510
|
if (${o} in input) {
|
|
511
511
|
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
@@ -564,10 +564,10 @@ html,body{margin:0}
|
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
-
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=PE,s=!yE.jitless,c=s&&FE.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?rk([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function ok(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ZE(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>tD(e,r,bE())))}),t)}var sk=$(`$ZodUnion`,(e,t)=>{yO.init(e,t),OE(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),OE(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),OE(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),OE(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>TE(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>ok(t,r,e,i)):ok(o,r,e,i)}}),ck=$(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,sk.init(e,t);let n=e._zod.parse;OE(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=CE(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!PE(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),lk=$(`$ZodIntersection`,(e,t)=>{yO.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>dk(e,t,n)):dk(e,i,a)}});function uk(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(IE(e)&&IE(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=uk(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=uk(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function dk(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),ZE(e))return e;let o=uk(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var fk=$(`$ZodEnum`,(e,t)=>{yO.init(e,t);let n=xE(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>RE.has(typeof e)).map(e=>typeof e==`string`?zE(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),pk=$(`$ZodLiteral`,(e,t)=>{if(yO.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?zE(e):e?zE(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),mk=$(`$ZodTransform`,(e,t)=>{yO.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new vE(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new _E;return n.value=i,n.fallback=!0,n}});function hk(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var gk=$(`$ZodOptional`,(e,t)=>{yO.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,OE(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),OE(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${TE(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>hk(e,r)):hk(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),_k=$(`$ZodExactOptional`,(e,t)=>{gk.init(e,t),OE(e._zod,`values`,()=>t.innerType._zod.values),OE(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),vk=$(`$ZodNullable`,(e,t)=>{yO.init(e,t),OE(e._zod,`optin`,()=>t.innerType._zod.optin),OE(e._zod,`optout`,()=>t.innerType._zod.optout),OE(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${TE(e.source)}|null)$`):void 0}),OE(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),yk=$(`$ZodDefault`,(e,t)=>{yO.init(e,t),e._zod.optin=`optional`,OE(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>bk(e,t)):bk(r,t)}});function bk(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var xk=$(`$ZodPrefault`,(e,t)=>{yO.init(e,t),e._zod.optin=`optional`,OE(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Sk=$(`$ZodNonOptional`,(e,t)=>{yO.init(e,t),OE(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Ck(t,e)):Ck(i,e)}});function Ck(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var wk=$(`$ZodCatch`,(e,t)=>{yO.init(e,t),e._zod.optin=`optional`,OE(e._zod,`optout`,()=>t.innerType._zod.optout),OE(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>tD(e,n,bE()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>tD(e,n,bE()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Tk=$(`$ZodPipe`,(e,t)=>{yO.init(e,t),OE(e._zod,`values`,()=>t.in._zod.values),OE(e._zod,`optin`,()=>t.in._zod.optin),OE(e._zod,`optout`,()=>t.out._zod.optout),OE(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ek(e,t.in,n)):Ek(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ek(e,t.out,n)):Ek(r,t.out,n)}});function Ek(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Dk=$(`$ZodReadonly`,(e,t)=>{yO.init(e,t),OE(e._zod,`propValues`,()=>t.innerType._zod.propValues),OE(e._zod,`values`,()=>t.innerType._zod.values),OE(e._zod,`optin`,()=>t.innerType?._zod?.optin),OE(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Ok):Ok(r)}});function Ok(e){return e.value=Object.freeze(e.value),e}var kk=$(`$ZodLazy`,(e,t)=>{yO.init(e,t),OE(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),OE(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),OE(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),OE(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),OE(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Ak=$(`$ZodCustom`,(e,t)=>{eO.init(e,t),yO.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>jk(t,n,r,e));jk(i,n,r,e)}});function jk(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(rD(e))}}var Mk,Nk=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Pk(){return new Nk}(Mk=globalThis).__zod_globalRegistry??(Mk.__zod_globalRegistry=Pk());var Fk=globalThis.__zod_globalRegistry;function Ik(e,t){return new e({type:`string`,...VE(t)})}function Lk(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...VE(t)})}function Rk(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...VE(t)})}function zk(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...VE(t)})}function Bk(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...VE(t)})}function Vk(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...VE(t)})}function Hk(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...VE(t)})}function Uk(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...VE(t)})}function Wk(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...VE(t)})}function Gk(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...VE(t)})}function Kk(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...VE(t)})}function qk(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...VE(t)})}function Jk(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...VE(t)})}function Yk(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...VE(t)})}function Xk(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...VE(t)})}function Zk(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...VE(t)})}function Qk(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...VE(t)})}function $k(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...VE(t)})}function eA(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...VE(t)})}function tA(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...VE(t)})}function nA(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...VE(t)})}function rA(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...VE(t)})}function iA(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...VE(t)})}function aA(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...VE(t)})}function oA(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...VE(t)})}function sA(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...VE(t)})}function cA(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...VE(t)})}function lA(e,t){return new e({type:`number`,checks:[],...VE(t)})}function uA(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...VE(t)})}function dA(e,t){return new e({type:`boolean`,...VE(t)})}function fA(e){return new e({type:`unknown`})}function pA(e,t){return new e({type:`never`,...VE(t)})}function mA(e,t){return new nO({check:`less_than`,...VE(t),value:e,inclusive:!1})}function hA(e,t){return new nO({check:`less_than`,...VE(t),value:e,inclusive:!0})}function gA(e,t){return new rO({check:`greater_than`,...VE(t),value:e,inclusive:!1})}function _A(e,t){return new rO({check:`greater_than`,...VE(t),value:e,inclusive:!0})}function vA(e,t){return new iO({check:`multiple_of`,...VE(t),value:e})}function yA(e,t){return new oO({check:`max_length`,...VE(t),maximum:e})}function bA(e,t){return new sO({check:`min_length`,...VE(t),minimum:e})}function xA(e,t){return new cO({check:`length_equals`,...VE(t),length:e})}function SA(e,t){return new uO({check:`string_format`,format:`regex`,...VE(t),pattern:e})}function CA(e){return new dO({check:`string_format`,format:`lowercase`,...VE(e)})}function wA(e){return new fO({check:`string_format`,format:`uppercase`,...VE(e)})}function TA(e,t){return new pO({check:`string_format`,format:`includes`,...VE(t),includes:e})}function EA(e,t){return new mO({check:`string_format`,format:`starts_with`,...VE(t),prefix:e})}function DA(e,t){return new hO({check:`string_format`,format:`ends_with`,...VE(t),suffix:e})}function OA(e){return new gO({check:`overwrite`,tx:e})}function kA(e){return OA(t=>t.normalize(e))}function AA(){return OA(e=>e.trim())}function jA(){return OA(e=>e.toLowerCase())}function MA(){return OA(e=>e.toUpperCase())}function NA(){return OA(e=>ME(e))}function PA(e,t,n){return new e({type:`array`,element:t,...VE(n)})}function FA(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...VE(n)})}function IA(e,t){let n=LA(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(rD(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(rD(r))}},e(t.value,t)),t);return n}function LA(e,t){let n=new eO({check:`custom`,...VE(t)});return n._zod.check=e,n}function RA(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Fk,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function zA(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,zA(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&HA(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function BA(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
567
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=IE,s=!xE.jitless,c=s&&LE.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?ak([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function ck(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!$E(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>rD(e,r,SE())))}),t)}var lk=$(`$ZodUnion`,(e,t)=>{xO.init(e,t),AE(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),AE(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),AE(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),AE(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>DE(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>ck(t,r,e,i)):ck(o,r,e,i)}}),uk=$(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,lk.init(e,t);let n=e._zod.parse;AE(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=TE(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!IE(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),dk=$(`$ZodIntersection`,(e,t)=>{xO.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>pk(e,t,n)):pk(e,i,a)}});function fk(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(RE(e)&&RE(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=fk(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=fk(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function pk(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),$E(e))return e;let o=fk(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var mk=$(`$ZodEnum`,(e,t)=>{xO.init(e,t);let n=CE(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>BE.has(typeof e)).map(e=>typeof e==`string`?VE(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),hk=$(`$ZodLiteral`,(e,t)=>{if(xO.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?VE(e):e?VE(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),gk=$(`$ZodTransform`,(e,t)=>{xO.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new bE(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new yE;return n.value=i,n.fallback=!0,n}});function _k(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var vk=$(`$ZodOptional`,(e,t)=>{xO.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,AE(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),AE(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${DE(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>_k(e,r)):_k(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),yk=$(`$ZodExactOptional`,(e,t)=>{vk.init(e,t),AE(e._zod,`values`,()=>t.innerType._zod.values),AE(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),bk=$(`$ZodNullable`,(e,t)=>{xO.init(e,t),AE(e._zod,`optin`,()=>t.innerType._zod.optin),AE(e._zod,`optout`,()=>t.innerType._zod.optout),AE(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${DE(e.source)}|null)$`):void 0}),AE(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),xk=$(`$ZodDefault`,(e,t)=>{xO.init(e,t),e._zod.optin=`optional`,AE(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Sk(e,t)):Sk(r,t)}});function Sk(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ck=$(`$ZodPrefault`,(e,t)=>{xO.init(e,t),e._zod.optin=`optional`,AE(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),wk=$(`$ZodNonOptional`,(e,t)=>{xO.init(e,t),AE(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Tk(t,e)):Tk(i,e)}});function Tk(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Ek=$(`$ZodCatch`,(e,t)=>{xO.init(e,t),e._zod.optin=`optional`,AE(e._zod,`optout`,()=>t.innerType._zod.optout),AE(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>rD(e,n,SE()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>rD(e,n,SE()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Dk=$(`$ZodPipe`,(e,t)=>{xO.init(e,t),AE(e._zod,`values`,()=>t.in._zod.values),AE(e._zod,`optin`,()=>t.in._zod.optin),AE(e._zod,`optout`,()=>t.out._zod.optout),AE(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ok(e,t.in,n)):Ok(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ok(e,t.out,n)):Ok(r,t.out,n)}});function Ok(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var kk=$(`$ZodReadonly`,(e,t)=>{xO.init(e,t),AE(e._zod,`propValues`,()=>t.innerType._zod.propValues),AE(e._zod,`values`,()=>t.innerType._zod.values),AE(e._zod,`optin`,()=>t.innerType?._zod?.optin),AE(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Ak):Ak(r)}});function Ak(e){return e.value=Object.freeze(e.value),e}var jk=$(`$ZodLazy`,(e,t)=>{xO.init(e,t),AE(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),AE(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),AE(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),AE(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),AE(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Mk=$(`$ZodCustom`,(e,t)=>{nO.init(e,t),xO.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Nk(t,n,r,e));Nk(i,n,r,e)}});function Nk(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(aD(e))}}var Pk,Fk=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ik(){return new Fk}(Pk=globalThis).__zod_globalRegistry??(Pk.__zod_globalRegistry=Ik());var Lk=globalThis.__zod_globalRegistry;function Rk(e,t){return new e({type:`string`,...UE(t)})}function zk(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...UE(t)})}function Bk(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...UE(t)})}function Vk(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...UE(t)})}function Hk(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...UE(t)})}function Uk(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...UE(t)})}function Wk(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...UE(t)})}function Gk(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...UE(t)})}function Kk(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...UE(t)})}function qk(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...UE(t)})}function Jk(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...UE(t)})}function Yk(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...UE(t)})}function Xk(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...UE(t)})}function Zk(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...UE(t)})}function Qk(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...UE(t)})}function $k(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...UE(t)})}function eA(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...UE(t)})}function tA(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...UE(t)})}function nA(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...UE(t)})}function rA(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...UE(t)})}function iA(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...UE(t)})}function aA(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...UE(t)})}function oA(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...UE(t)})}function sA(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...UE(t)})}function cA(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...UE(t)})}function lA(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...UE(t)})}function uA(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...UE(t)})}function dA(e,t){return new e({type:`number`,checks:[],...UE(t)})}function fA(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...UE(t)})}function pA(e,t){return new e({type:`boolean`,...UE(t)})}function mA(e){return new e({type:`unknown`})}function hA(e,t){return new e({type:`never`,...UE(t)})}function gA(e,t){return new iO({check:`less_than`,...UE(t),value:e,inclusive:!1})}function _A(e,t){return new iO({check:`less_than`,...UE(t),value:e,inclusive:!0})}function vA(e,t){return new aO({check:`greater_than`,...UE(t),value:e,inclusive:!1})}function yA(e,t){return new aO({check:`greater_than`,...UE(t),value:e,inclusive:!0})}function bA(e,t){return new oO({check:`multiple_of`,...UE(t),value:e})}function xA(e,t){return new cO({check:`max_length`,...UE(t),maximum:e})}function SA(e,t){return new lO({check:`min_length`,...UE(t),minimum:e})}function CA(e,t){return new uO({check:`length_equals`,...UE(t),length:e})}function wA(e,t){return new fO({check:`string_format`,format:`regex`,...UE(t),pattern:e})}function TA(e){return new pO({check:`string_format`,format:`lowercase`,...UE(e)})}function EA(e){return new mO({check:`string_format`,format:`uppercase`,...UE(e)})}function DA(e,t){return new hO({check:`string_format`,format:`includes`,...UE(t),includes:e})}function OA(e,t){return new gO({check:`string_format`,format:`starts_with`,...UE(t),prefix:e})}function kA(e,t){return new _O({check:`string_format`,format:`ends_with`,...UE(t),suffix:e})}function AA(e){return new vO({check:`overwrite`,tx:e})}function jA(e){return AA(t=>t.normalize(e))}function MA(){return AA(e=>e.trim())}function NA(){return AA(e=>e.toLowerCase())}function PA(){return AA(e=>e.toUpperCase())}function FA(){return AA(e=>PE(e))}function IA(e,t,n){return new e({type:`array`,element:t,...UE(n)})}function LA(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...UE(n)})}function RA(e,t){let n=zA(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(aD(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(aD(r))}},e(t.value,t)),t);return n}function zA(e,t){let n=new nO({check:`custom`,...UE(t)});return n._zod.check=e,n}function BA(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Lk,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function VA(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,VA(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&WA(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function HA(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
568
568
|
|
|
569
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function VA(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:WA(t,`input`,e.processors),output:WA(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function HA(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return HA(r.element,n);if(r.type===`set`)return HA(r.valueType,n);if(r.type===`lazy`)return HA(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return HA(r.innerType,n);if(r.type===`intersection`)return HA(r.left,n)||HA(r.right,n);if(r.type===`record`||r.type===`map`)return HA(r.keyType,n)||HA(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:HA(r.in,n)||HA(r.out,n);if(r.type===`object`){for(let e in r.shape)if(HA(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(HA(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(HA(e,n))return!0;return!!(r.rest&&HA(r.rest,n))}return!1}var UA=(e,t={})=>n=>{let r=RA({...n,processors:t});return zA(e,r),BA(r,e),VA(r,e)},WA=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=RA({...i??{},target:a,io:t,processors:n});return zA(e,o),BA(o,e),VA(o,e)},GA={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},KA=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=GA[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},qA=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},JA=(e,t,n,r)=>{n.type=`boolean`},YA=(e,t,n,r)=>{n.not={}},XA=(e,t,n,r)=>{let i=e._zod.def,a=xE(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},ZA=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},QA=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},$A=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},ej=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=zA(a.element,t,{...r,path:[...r.path,`items`]})},tj=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=zA(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=zA(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},nj=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>zA(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},rj=(e,t,n,r)=>{let i=e._zod.def,a=zA(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=zA(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},ij=(e,t,n,r)=>{let i=e._zod.def,a=zA(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},aj=(e,t,n,r)=>{let i=e._zod.def;zA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},oj=(e,t,n,r)=>{let i=e._zod.def;zA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},sj=(e,t,n,r)=>{let i=e._zod.def;zA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},cj=(e,t,n,r)=>{let i=e._zod.def;zA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},lj=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;zA(o,t,r);let s=t.seen.get(e);s.ref=o},uj=(e,t,n,r)=>{let i=e._zod.def;zA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},dj=(e,t,n,r)=>{let i=e._zod.def;zA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},fj=(e,t,n,r)=>{let i=e._zod.innerType;zA(i,t,r);let a=t.seen.get(e);a.ref=i},pj=$(`ZodISODateTime`,(e,t)=>{NO.init(e,t),Bj.init(e,t)});function mj(e){return aA(pj,e)}var hj=$(`ZodISODate`,(e,t)=>{PO.init(e,t),Bj.init(e,t)});function gj(e){return oA(hj,e)}var _j=$(`ZodISOTime`,(e,t)=>{FO.init(e,t),Bj.init(e,t)});function vj(e){return sA(_j,e)}var yj=$(`ZodISODuration`,(e,t)=>{IO.init(e,t),Bj.init(e,t)});function bj(e){return cA(yj,e)}var xj=$(`ZodError`,(e,t)=>{aD.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>cD(e,t)},flatten:{value:t=>sD(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,SE,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,SE,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Sj=lD(xj),Cj=uD(xj),wj=dD(xj),Tj=pD(xj),Ej=hD(xj),Dj=gD(xj),Oj=_D(xj),kj=vD(xj),Aj=yD(xj),jj=bD(xj),Mj=xD(xj),Nj=SD(xj),Pj=new WeakMap;function Fj(e,t,n){let r=Object.getPrototypeOf(e),i=Pj.get(r);if(i||(i=new Set,Pj.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Ij=$(`ZodType`,(e,t)=>(yO.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:WA(e,`input`),output:WA(e,`output`)}}),e.toJSONSchema=UA(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Sj(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>wj(e,t,n),e.parseAsync=async(t,n)=>Cj(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Tj(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Ej(e,t,n),e.decode=(t,n)=>Dj(e,t,n),e.encodeAsync=async(t,n)=>Oj(e,t,n),e.decodeAsync=async(t,n)=>kj(e,t,n),e.safeEncode=(t,n)=>Aj(e,t,n),e.safeDecode=(t,n)=>jj(e,t,n),e.safeEncodeAsync=async(t,n)=>Mj(e,t,n),e.safeDecodeAsync=async(t,n)=>Nj(e,t,n),Fj(e,`ZodType`,{check(...e){let t=this.def;return this.clone(AE(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return BE(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check($M(e,t))},superRefine(e,t){return this.check(eN(e,t))},overwrite(e){return this.check(OA(e))},optional(){return NM(this)},exactOptional(){return FM(this)},nullable(){return LM(this)},nullish(){return NM(LM(this))},nonoptional(e){return UM(this,e)},array(){return _M(this)},or(e){return xM([this,e])},and(e){return TM(this,e)},transform(e){return qM(this,jM(e))},default(e){return zM(this,e)},prefault(e){return VM(this,e)},catch(e){return GM(this,e)},pipe(e){return qM(this,e)},readonly(){return YM(this)},describe(e){let t=this.clone();return Fk.add(t,{description:e}),t},meta(...e){if(e.length===0)return Fk.get(this);let t=this.clone();return Fk.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Fk.get(e)?.description},configurable:!0}),e)),Lj=$(`_ZodString`,(e,t)=>{bO.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KA(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Fj(e,`_ZodString`,{regex(...e){return this.check(SA(...e))},includes(...e){return this.check(TA(...e))},startsWith(...e){return this.check(EA(...e))},endsWith(...e){return this.check(DA(...e))},min(...e){return this.check(bA(...e))},max(...e){return this.check(yA(...e))},length(...e){return this.check(xA(...e))},nonempty(...e){return this.check(bA(1,...e))},lowercase(e){return this.check(CA(e))},uppercase(e){return this.check(wA(e))},trim(){return this.check(AA())},normalize(...e){return this.check(kA(...e))},toLowerCase(){return this.check(jA())},toUpperCase(){return this.check(MA())},slugify(){return this.check(NA())}})}),Rj=$(`ZodString`,(e,t)=>{bO.init(e,t),Lj.init(e,t),e.email=t=>e.check(Lk(Vj,t)),e.url=t=>e.check(Uk(Wj,t)),e.jwt=t=>e.check(iA(aM,t)),e.emoji=t=>e.check(Wk(Gj,t)),e.guid=t=>e.check(Rk(Hj,t)),e.uuid=t=>e.check(zk(Uj,t)),e.uuidv4=t=>e.check(Bk(Uj,t)),e.uuidv6=t=>e.check(Vk(Uj,t)),e.uuidv7=t=>e.check(Hk(Uj,t)),e.nanoid=t=>e.check(Gk(Kj,t)),e.guid=t=>e.check(Rk(Hj,t)),e.cuid=t=>e.check(Kk(qj,t)),e.cuid2=t=>e.check(qk(Jj,t)),e.ulid=t=>e.check(Jk(Yj,t)),e.base64=t=>e.check(tA(nM,t)),e.base64url=t=>e.check(nA(rM,t)),e.xid=t=>e.check(Yk(Xj,t)),e.ksuid=t=>e.check(Xk(Zj,t)),e.ipv4=t=>e.check(Zk(Qj,t)),e.ipv6=t=>e.check(Qk($j,t)),e.cidrv4=t=>e.check($k(eM,t)),e.cidrv6=t=>e.check(eA(tM,t)),e.e164=t=>e.check(rA(iM,t)),e.datetime=t=>e.check(mj(t)),e.date=t=>e.check(gj(t)),e.time=t=>e.check(vj(t)),e.duration=t=>e.check(bj(t))});function zj(e){return Ik(Rj,e)}var Bj=$(`ZodStringFormat`,(e,t)=>{xO.init(e,t),Lj.init(e,t)}),Vj=$(`ZodEmail`,(e,t)=>{wO.init(e,t),Bj.init(e,t)}),Hj=$(`ZodGUID`,(e,t)=>{SO.init(e,t),Bj.init(e,t)}),Uj=$(`ZodUUID`,(e,t)=>{CO.init(e,t),Bj.init(e,t)}),Wj=$(`ZodURL`,(e,t)=>{TO.init(e,t),Bj.init(e,t)}),Gj=$(`ZodEmoji`,(e,t)=>{EO.init(e,t),Bj.init(e,t)}),Kj=$(`ZodNanoID`,(e,t)=>{DO.init(e,t),Bj.init(e,t)}),qj=$(`ZodCUID`,(e,t)=>{OO.init(e,t),Bj.init(e,t)}),Jj=$(`ZodCUID2`,(e,t)=>{kO.init(e,t),Bj.init(e,t)}),Yj=$(`ZodULID`,(e,t)=>{AO.init(e,t),Bj.init(e,t)}),Xj=$(`ZodXID`,(e,t)=>{jO.init(e,t),Bj.init(e,t)}),Zj=$(`ZodKSUID`,(e,t)=>{MO.init(e,t),Bj.init(e,t)}),Qj=$(`ZodIPv4`,(e,t)=>{LO.init(e,t),Bj.init(e,t)}),$j=$(`ZodIPv6`,(e,t)=>{RO.init(e,t),Bj.init(e,t)}),eM=$(`ZodCIDRv4`,(e,t)=>{zO.init(e,t),Bj.init(e,t)}),tM=$(`ZodCIDRv6`,(e,t)=>{BO.init(e,t),Bj.init(e,t)}),nM=$(`ZodBase64`,(e,t)=>{HO.init(e,t),Bj.init(e,t)}),rM=$(`ZodBase64URL`,(e,t)=>{WO.init(e,t),Bj.init(e,t)}),iM=$(`ZodE164`,(e,t)=>{GO.init(e,t),Bj.init(e,t)}),aM=$(`ZodJWT`,(e,t)=>{qO.init(e,t),Bj.init(e,t)}),oM=$(`ZodNumber`,(e,t)=>{JO.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qA(e,t,n,r),Fj(e,`ZodNumber`,{gt(e,t){return this.check(gA(e,t))},gte(e,t){return this.check(_A(e,t))},min(e,t){return this.check(_A(e,t))},lt(e,t){return this.check(mA(e,t))},lte(e,t){return this.check(hA(e,t))},max(e,t){return this.check(hA(e,t))},int(e){return this.check(lM(e))},safe(e){return this.check(lM(e))},positive(e){return this.check(gA(0,e))},nonnegative(e){return this.check(_A(0,e))},negative(e){return this.check(mA(0,e))},nonpositive(e){return this.check(hA(0,e))},multipleOf(e,t){return this.check(vA(e,t))},step(e,t){return this.check(vA(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function sM(e){return lA(oM,e)}var cM=$(`ZodNumberFormat`,(e,t)=>{YO.init(e,t),oM.init(e,t)});function lM(e){return uA(cM,e)}var uM=$(`ZodBoolean`,(e,t)=>{XO.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JA(e,t,n,r)});function dM(e){return dA(uM,e)}var fM=$(`ZodUnknown`,(e,t)=>{ZO.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function pM(){return fA(fM)}var mM=$(`ZodNever`,(e,t)=>{QO.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YA(e,t,n,r)});function hM(e){return pA(mM,e)}var gM=$(`ZodArray`,(e,t)=>{ek.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ej(e,t,n,r),e.element=t.element,Fj(e,`ZodArray`,{min(e,t){return this.check(bA(e,t))},nonempty(e){return this.check(bA(1,e))},max(e,t){return this.check(yA(e,t))},length(e,t){return this.check(xA(e,t))},unwrap(){return this.element}})});function _M(e,t){return PA(gM,e,t)}var vM=$(`ZodObject`,(e,t)=>{ak.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tj(e,t,n,r),OE(e,`shape`,()=>t.shape),Fj(e,`ZodObject`,{keyof(){return DM(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:pM()})},loose(){return this.clone({...this._zod.def,catchall:pM()})},strict(){return this.clone({...this._zod.def,catchall:hM()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return KE(this,e)},safeExtend(e){return qE(this,e)},merge(e){return JE(this,e)},pick(e){return WE(this,e)},omit(e){return GE(this,e)},partial(...e){return YE(MM,this,e[0])},required(...e){return XE(HM,this,e[0])}})});function yM(e,t){return new vM({type:`object`,shape:e??{},...VE(t)})}var bM=$(`ZodUnion`,(e,t)=>{sk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nj(e,t,n,r),e.options=t.options});function xM(e,t){return new bM({type:`union`,options:e,...VE(t)})}var SM=$(`ZodDiscriminatedUnion`,(e,t)=>{bM.init(e,t),ck.init(e,t)});function CM(e,t,n){return new SM({type:`union`,options:t,discriminator:e,...VE(n)})}var wM=$(`ZodIntersection`,(e,t)=>{lk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rj(e,t,n,r)});function TM(e,t){return new wM({type:`intersection`,left:e,right:t})}var EM=$(`ZodEnum`,(e,t)=>{fk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XA(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new EM({...t,checks:[],...VE(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new EM({...t,checks:[],...VE(r),entries:i})}});function DM(e,t){return new EM({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...VE(t)})}var OM=$(`ZodLiteral`,(e,t)=>{pk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZA(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function kM(e,t){return new OM({type:`literal`,values:Array.isArray(e)?e:[e],...VE(t)})}var AM=$(`ZodTransform`,(e,t)=>{mk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$A(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new vE(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(rD(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(rD(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function jM(e){return new AM({type:`transform`,transform:e})}var MM=$(`ZodOptional`,(e,t)=>{gk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function NM(e){return new MM({type:`optional`,innerType:e})}var PM=$(`ZodExactOptional`,(e,t)=>{_k.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function FM(e){return new PM({type:`optional`,innerType:e})}var IM=$(`ZodNullable`,(e,t)=>{vk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ij(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function LM(e){return new IM({type:`nullable`,innerType:e})}var RM=$(`ZodDefault`,(e,t)=>{yk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function zM(e,t){return new RM({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():LE(t)}})}var BM=$(`ZodPrefault`,(e,t)=>{xk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function VM(e,t){return new BM({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():LE(t)}})}var HM=$(`ZodNonOptional`,(e,t)=>{Sk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function UM(e,t){return new HM({type:`nonoptional`,innerType:e,...VE(t)})}var WM=$(`ZodCatch`,(e,t)=>{wk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function GM(e,t){return new WM({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var KM=$(`ZodPipe`,(e,t)=>{Tk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lj(e,t,n,r),e.in=t.in,e.out=t.out});function qM(e,t){return new KM({type:`pipe`,in:e,out:t})}var JM=$(`ZodReadonly`,(e,t)=>{Dk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function YM(e){return new JM({type:`readonly`,innerType:e})}var XM=$(`ZodLazy`,(e,t)=>{kk.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fj(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function ZM(e){return new XM({type:`lazy`,getter:e})}var QM=$(`ZodCustom`,(e,t)=>{Ak.init(e,t),Ij.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QA(e,t,n,r)});function $M(e,t={}){return FA(QM,e,t)}function eN(e,t){return IA(e,t)}var tN=zj().trim().min(1,`Must not be empty.`),nN=DM([`indigo`,`emerald`,`sunset`,`violet`,`rose`,`slate`,`cyberpunk`]),rN=DM([`atlas`,`blueprint`,`terminal`,`editorial`]),iN=DM([`comfortable`,`compact`]),aN=DM([`light`,`dark`,`auto`]),oN=DM([`github`,`gitlab`,`twitter`,`x`,`discord`,`custom`]),sN=DM([`info`,`success`,`warning`,`new`]),cN=yM({label:tN,href:tN,external:dM().optional(),icon:zj().optional()}).strict(),lN=yM({type:oN,url:zj().url(`Must be an absolute URL.`),label:zj().optional(),icon:zj().optional()}).strict(),uN=CM(`type`,[yM({type:kM(`github`),repo:tN.regex(/^[^/\s]+\/[^/\s]+$/,`Use the owner/repository format.`),branch:tN.optional(),docsDir:zj().optional(),token:zj().optional(),baseUrl:zj().url(`Must be an absolute URL.`).optional()}).strict(),yM({type:kM(`gitlab`),repo:tN.regex(/^[^/\s]+\/[^/\s]+$/,`Use the namespace/repository format.`),branch:tN.optional(),docsDir:zj().optional(),token:zj().optional(),baseUrl:zj().url(`Must be an absolute URL.`).optional()}).strict(),yM({type:kM(`raw`),baseUrl:zj().url(`Must be an absolute URL.`),branch:tN.optional(),docsDir:zj().optional(),token:zj().optional()}).strict()]),dN=ZM(()=>yM({title:zj().optional(),path:zj().optional(),slug:zj().optional(),icon:zj().optional(),badge:zj().optional(),badgeType:sN.optional(),collapsed:dM().optional(),children:_M(dN).optional()}).strict()),fN=yM({family:rN.optional(),density:iN.optional(),preset:nN.optional(),defaultMode:aN.optional(),accentColor:zj().optional(),accentColorDark:zj().optional(),fontFamily:zj().optional(),codeTheme:DM([`github`,`dracula`,`one-dark`,`synthwave`]).optional(),logo:yM({light:zj().optional(),dark:zj().optional(),alt:zj().optional(),text:zj().optional()}).strict().optional(),favicon:zj().optional()}).strict(),pN=yM({enabled:dM().optional(),placeholder:zj().optional(),maxResults:sM().int().positive().max(100).optional()}).strict(),mN=yM({embedNestedDocs:dM().optional()}).strict(),hN=yM({$schema:zj().url(`Must be an absolute URL.`).optional(),name:tN.optional(),tagline:zj().optional(),description:zj().optional(),url:zj().url(`Must be an absolute URL.`).optional(),version:zj().optional(),rootDoc:tN.optional(),home:tN.optional(),source:uN.optional(),theme:fN.optional(),nav:_M(cN).optional(),socials:_M(lN).optional(),sidebar:_M(dN).optional(),autoIndex:yM({enabled:dM().optional(),exclude:_M(tN).optional(),sort:DM([`alphabetical`,`frontmatter`,`natural`]).optional(),defaultCollapsed:dM().optional()}).strict().optional(),search:pN.optional(),offline:mN.optional(),footer:yM({copyright:zj().optional(),links:_M(cN).optional(),showBuiltWith:dM().optional()}).strict().optional(),componentsUrl:zj().optional(),editUrl:zj().optional()}).strict(),gN=hN.extend({name:tN});function _N(e){return e.issues.map(e=>`${e.path.length>0?e.path.join(`.`):`config`}: ${e.message}`).join(`
|
|
570
|
-
`)}function
|
|
569
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function UA(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:KA(t,`input`,e.processors),output:KA(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function WA(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return WA(r.element,n);if(r.type===`set`)return WA(r.valueType,n);if(r.type===`lazy`)return WA(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return WA(r.innerType,n);if(r.type===`intersection`)return WA(r.left,n)||WA(r.right,n);if(r.type===`record`||r.type===`map`)return WA(r.keyType,n)||WA(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:WA(r.in,n)||WA(r.out,n);if(r.type===`object`){for(let e in r.shape)if(WA(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(WA(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(WA(e,n))return!0;return!!(r.rest&&WA(r.rest,n))}return!1}var GA=(e,t={})=>n=>{let r=BA({...n,processors:t});return VA(e,r),HA(r,e),UA(r,e)},KA=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=BA({...i??{},target:a,io:t,processors:n});return VA(e,o),HA(o,e),UA(o,e)},qA={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},JA=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=qA[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},YA=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},XA=(e,t,n,r)=>{n.type=`boolean`},ZA=(e,t,n,r)=>{n.not={}},QA=(e,t,n,r)=>{let i=e._zod.def,a=CE(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},$A=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},ej=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},tj=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},nj=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=VA(a.element,t,{...r,path:[...r.path,`items`]})},rj=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=VA(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=VA(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},ij=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>VA(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},aj=(e,t,n,r)=>{let i=e._zod.def,a=VA(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=VA(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},oj=(e,t,n,r)=>{let i=e._zod.def,a=VA(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},sj=(e,t,n,r)=>{let i=e._zod.def;VA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},cj=(e,t,n,r)=>{let i=e._zod.def;VA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},lj=(e,t,n,r)=>{let i=e._zod.def;VA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},uj=(e,t,n,r)=>{let i=e._zod.def;VA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},dj=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;VA(o,t,r);let s=t.seen.get(e);s.ref=o},fj=(e,t,n,r)=>{let i=e._zod.def;VA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},pj=(e,t,n,r)=>{let i=e._zod.def;VA(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},mj=(e,t,n,r)=>{let i=e._zod.innerType;VA(i,t,r);let a=t.seen.get(e);a.ref=i},hj=$(`ZodISODateTime`,(e,t)=>{FO.init(e,t),Hj.init(e,t)});function gj(e){return sA(hj,e)}var _j=$(`ZodISODate`,(e,t)=>{IO.init(e,t),Hj.init(e,t)});function vj(e){return cA(_j,e)}var yj=$(`ZodISOTime`,(e,t)=>{LO.init(e,t),Hj.init(e,t)});function bj(e){return lA(yj,e)}var xj=$(`ZodISODuration`,(e,t)=>{RO.init(e,t),Hj.init(e,t)});function Sj(e){return uA(xj,e)}var Cj=$(`ZodError`,(e,t)=>{sD.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>uD(e,t)},flatten:{value:t=>lD(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,wE,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,wE,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),wj=dD(Cj),Tj=fD(Cj),Ej=pD(Cj),Dj=hD(Cj),Oj=_D(Cj),kj=vD(Cj),Aj=yD(Cj),jj=bD(Cj),Mj=xD(Cj),Nj=SD(Cj),Pj=CD(Cj),Fj=wD(Cj),Ij=new WeakMap;function Lj(e,t,n){let r=Object.getPrototypeOf(e),i=Ij.get(r);if(i||(i=new Set,Ij.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Rj=$(`ZodType`,(e,t)=>(xO.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:KA(e,`input`),output:KA(e,`output`)}}),e.toJSONSchema=GA(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>wj(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ej(e,t,n),e.parseAsync=async(t,n)=>Tj(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Dj(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Oj(e,t,n),e.decode=(t,n)=>kj(e,t,n),e.encodeAsync=async(t,n)=>Aj(e,t,n),e.decodeAsync=async(t,n)=>jj(e,t,n),e.safeEncode=(t,n)=>Mj(e,t,n),e.safeDecode=(t,n)=>Nj(e,t,n),e.safeEncodeAsync=async(t,n)=>Pj(e,t,n),e.safeDecodeAsync=async(t,n)=>Fj(e,t,n),Lj(e,`ZodType`,{check(...e){let t=this.def;return this.clone(ME(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return HE(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(tN(e,t))},superRefine(e,t){return this.check(nN(e,t))},overwrite(e){return this.check(AA(e))},optional(){return FM(this)},exactOptional(){return LM(this)},nullable(){return zM(this)},nullish(){return FM(zM(this))},nonoptional(e){return GM(this,e)},array(){return yM(this)},or(e){return CM([this,e])},and(e){return DM(this,e)},transform(e){return YM(this,NM(e))},default(e){return VM(this,e)},prefault(e){return UM(this,e)},catch(e){return qM(this,e)},pipe(e){return YM(this,e)},readonly(){return ZM(this)},describe(e){let t=this.clone();return Lk.add(t,{description:e}),t},meta(...e){if(e.length===0)return Lk.get(this);let t=this.clone();return Lk.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Lk.get(e)?.description},configurable:!0}),e)),zj=$(`_ZodString`,(e,t)=>{SO.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JA(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Lj(e,`_ZodString`,{regex(...e){return this.check(wA(...e))},includes(...e){return this.check(DA(...e))},startsWith(...e){return this.check(OA(...e))},endsWith(...e){return this.check(kA(...e))},min(...e){return this.check(SA(...e))},max(...e){return this.check(xA(...e))},length(...e){return this.check(CA(...e))},nonempty(...e){return this.check(SA(1,...e))},lowercase(e){return this.check(TA(e))},uppercase(e){return this.check(EA(e))},trim(){return this.check(MA())},normalize(...e){return this.check(jA(...e))},toLowerCase(){return this.check(NA())},toUpperCase(){return this.check(PA())},slugify(){return this.check(FA())}})}),Bj=$(`ZodString`,(e,t)=>{SO.init(e,t),zj.init(e,t),e.email=t=>e.check(zk(Uj,t)),e.url=t=>e.check(Gk(Kj,t)),e.jwt=t=>e.check(oA(sM,t)),e.emoji=t=>e.check(Kk(qj,t)),e.guid=t=>e.check(Bk(Wj,t)),e.uuid=t=>e.check(Vk(Gj,t)),e.uuidv4=t=>e.check(Hk(Gj,t)),e.uuidv6=t=>e.check(Uk(Gj,t)),e.uuidv7=t=>e.check(Wk(Gj,t)),e.nanoid=t=>e.check(qk(Jj,t)),e.guid=t=>e.check(Bk(Wj,t)),e.cuid=t=>e.check(Jk(Yj,t)),e.cuid2=t=>e.check(Yk(Xj,t)),e.ulid=t=>e.check(Xk(Zj,t)),e.base64=t=>e.check(rA(iM,t)),e.base64url=t=>e.check(iA(aM,t)),e.xid=t=>e.check(Zk(Qj,t)),e.ksuid=t=>e.check(Qk($j,t)),e.ipv4=t=>e.check($k(eM,t)),e.ipv6=t=>e.check(eA(tM,t)),e.cidrv4=t=>e.check(tA(nM,t)),e.cidrv6=t=>e.check(nA(rM,t)),e.e164=t=>e.check(aA(oM,t)),e.datetime=t=>e.check(gj(t)),e.date=t=>e.check(vj(t)),e.time=t=>e.check(bj(t)),e.duration=t=>e.check(Sj(t))});function Vj(e){return Rk(Bj,e)}var Hj=$(`ZodStringFormat`,(e,t)=>{CO.init(e,t),zj.init(e,t)}),Uj=$(`ZodEmail`,(e,t)=>{EO.init(e,t),Hj.init(e,t)}),Wj=$(`ZodGUID`,(e,t)=>{wO.init(e,t),Hj.init(e,t)}),Gj=$(`ZodUUID`,(e,t)=>{TO.init(e,t),Hj.init(e,t)}),Kj=$(`ZodURL`,(e,t)=>{DO.init(e,t),Hj.init(e,t)}),qj=$(`ZodEmoji`,(e,t)=>{OO.init(e,t),Hj.init(e,t)}),Jj=$(`ZodNanoID`,(e,t)=>{kO.init(e,t),Hj.init(e,t)}),Yj=$(`ZodCUID`,(e,t)=>{AO.init(e,t),Hj.init(e,t)}),Xj=$(`ZodCUID2`,(e,t)=>{jO.init(e,t),Hj.init(e,t)}),Zj=$(`ZodULID`,(e,t)=>{MO.init(e,t),Hj.init(e,t)}),Qj=$(`ZodXID`,(e,t)=>{NO.init(e,t),Hj.init(e,t)}),$j=$(`ZodKSUID`,(e,t)=>{PO.init(e,t),Hj.init(e,t)}),eM=$(`ZodIPv4`,(e,t)=>{zO.init(e,t),Hj.init(e,t)}),tM=$(`ZodIPv6`,(e,t)=>{BO.init(e,t),Hj.init(e,t)}),nM=$(`ZodCIDRv4`,(e,t)=>{VO.init(e,t),Hj.init(e,t)}),rM=$(`ZodCIDRv6`,(e,t)=>{HO.init(e,t),Hj.init(e,t)}),iM=$(`ZodBase64`,(e,t)=>{WO.init(e,t),Hj.init(e,t)}),aM=$(`ZodBase64URL`,(e,t)=>{KO.init(e,t),Hj.init(e,t)}),oM=$(`ZodE164`,(e,t)=>{qO.init(e,t),Hj.init(e,t)}),sM=$(`ZodJWT`,(e,t)=>{YO.init(e,t),Hj.init(e,t)}),cM=$(`ZodNumber`,(e,t)=>{XO.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YA(e,t,n,r),Lj(e,`ZodNumber`,{gt(e,t){return this.check(vA(e,t))},gte(e,t){return this.check(yA(e,t))},min(e,t){return this.check(yA(e,t))},lt(e,t){return this.check(gA(e,t))},lte(e,t){return this.check(_A(e,t))},max(e,t){return this.check(_A(e,t))},int(e){return this.check(dM(e))},safe(e){return this.check(dM(e))},positive(e){return this.check(vA(0,e))},nonnegative(e){return this.check(yA(0,e))},negative(e){return this.check(gA(0,e))},nonpositive(e){return this.check(_A(0,e))},multipleOf(e,t){return this.check(bA(e,t))},step(e,t){return this.check(bA(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function lM(e){return dA(cM,e)}var uM=$(`ZodNumberFormat`,(e,t)=>{ZO.init(e,t),cM.init(e,t)});function dM(e){return fA(uM,e)}var fM=$(`ZodBoolean`,(e,t)=>{QO.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XA(e,t,n,r)});function pM(e){return pA(fM,e)}var mM=$(`ZodUnknown`,(e,t)=>{$O.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function hM(){return mA(mM)}var gM=$(`ZodNever`,(e,t)=>{ek.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZA(e,t,n,r)});function _M(e){return hA(gM,e)}var vM=$(`ZodArray`,(e,t)=>{nk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nj(e,t,n,r),e.element=t.element,Lj(e,`ZodArray`,{min(e,t){return this.check(SA(e,t))},nonempty(e){return this.check(SA(1,e))},max(e,t){return this.check(xA(e,t))},length(e,t){return this.check(CA(e,t))},unwrap(){return this.element}})});function yM(e,t){return IA(vM,e,t)}var bM=$(`ZodObject`,(e,t)=>{sk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rj(e,t,n,r),AE(e,`shape`,()=>t.shape),Lj(e,`ZodObject`,{keyof(){return kM(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:hM()})},loose(){return this.clone({...this._zod.def,catchall:hM()})},strict(){return this.clone({...this._zod.def,catchall:_M()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return JE(this,e)},safeExtend(e){return YE(this,e)},merge(e){return XE(this,e)},pick(e){return KE(this,e)},omit(e){return qE(this,e)},partial(...e){return ZE(PM,this,e[0])},required(...e){return QE(WM,this,e[0])}})});function xM(e,t){return new bM({type:`object`,shape:e??{},...UE(t)})}var SM=$(`ZodUnion`,(e,t)=>{lk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ij(e,t,n,r),e.options=t.options});function CM(e,t){return new SM({type:`union`,options:e,...UE(t)})}var wM=$(`ZodDiscriminatedUnion`,(e,t)=>{SM.init(e,t),uk.init(e,t)});function TM(e,t,n){return new wM({type:`union`,options:t,discriminator:e,...UE(n)})}var EM=$(`ZodIntersection`,(e,t)=>{dk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aj(e,t,n,r)});function DM(e,t){return new EM({type:`intersection`,left:e,right:t})}var OM=$(`ZodEnum`,(e,t)=>{mk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QA(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new OM({...t,checks:[],...UE(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new OM({...t,checks:[],...UE(r),entries:i})}});function kM(e,t){return new OM({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...UE(t)})}var AM=$(`ZodLiteral`,(e,t)=>{hk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$A(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function jM(e,t){return new AM({type:`literal`,values:Array.isArray(e)?e:[e],...UE(t)})}var MM=$(`ZodTransform`,(e,t)=>{gk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tj(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new bE(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(aD(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(aD(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function NM(e){return new MM({type:`transform`,transform:e})}var PM=$(`ZodOptional`,(e,t)=>{vk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function FM(e){return new PM({type:`optional`,innerType:e})}var IM=$(`ZodExactOptional`,(e,t)=>{yk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function LM(e){return new IM({type:`optional`,innerType:e})}var RM=$(`ZodNullable`,(e,t)=>{bk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function zM(e){return new RM({type:`nullable`,innerType:e})}var BM=$(`ZodDefault`,(e,t)=>{xk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function VM(e,t){return new BM({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():zE(t)}})}var HM=$(`ZodPrefault`,(e,t)=>{Ck.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function UM(e,t){return new HM({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():zE(t)}})}var WM=$(`ZodNonOptional`,(e,t)=>{wk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function GM(e,t){return new WM({type:`nonoptional`,innerType:e,...UE(t)})}var KM=$(`ZodCatch`,(e,t)=>{Ek.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qM(e,t){return new KM({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var JM=$(`ZodPipe`,(e,t)=>{Dk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dj(e,t,n,r),e.in=t.in,e.out=t.out});function YM(e,t){return new JM({type:`pipe`,in:e,out:t})}var XM=$(`ZodReadonly`,(e,t)=>{kk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fj(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ZM(e){return new XM({type:`readonly`,innerType:e})}var QM=$(`ZodLazy`,(e,t)=>{jk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mj(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function $M(e){return new QM({type:`lazy`,getter:e})}var eN=$(`ZodCustom`,(e,t)=>{Mk.init(e,t),Rj.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ej(e,t,n,r)});function tN(e,t={}){return LA(eN,e,t)}function nN(e,t){return RA(e,t)}var rN=Vj().trim().min(1,`Must not be empty.`),iN=kM([`indigo`,`emerald`,`sunset`,`violet`,`rose`,`slate`,`cyberpunk`]),aN=kM([`atlas`,`blueprint`,`terminal`,`editorial`]),oN=kM([`comfortable`,`compact`]),sN=kM([`light`,`dark`,`auto`]),cN=kM([`github`,`gitlab`,`twitter`,`x`,`discord`,`custom`]),lN=kM([`info`,`success`,`warning`,`new`]),uN=xM({label:rN,href:rN,external:pM().optional(),icon:Vj().optional()}).strict(),dN=xM({type:cN,url:Vj().url(`Must be an absolute URL.`),label:Vj().optional(),icon:Vj().optional()}).strict(),fN=TM(`type`,[xM({type:jM(`github`),repo:rN.regex(/^[^/\s]+\/[^/\s]+$/,`Use the owner/repository format.`),branch:rN.optional(),docsDir:Vj().optional(),token:Vj().optional(),baseUrl:Vj().url(`Must be an absolute URL.`).optional()}).strict(),xM({type:jM(`gitlab`),repo:rN.regex(/^[^/\s]+\/[^/\s]+$/,`Use the namespace/repository format.`),branch:rN.optional(),docsDir:Vj().optional(),token:Vj().optional(),baseUrl:Vj().url(`Must be an absolute URL.`).optional()}).strict(),xM({type:jM(`raw`),baseUrl:Vj().url(`Must be an absolute URL.`),branch:rN.optional(),docsDir:Vj().optional(),token:Vj().optional()}).strict()]),pN=$M(()=>xM({title:Vj().optional(),path:Vj().optional(),slug:Vj().optional(),icon:Vj().optional(),badge:Vj().optional(),badgeType:lN.optional(),collapsed:pM().optional(),children:yM(pN).optional()}).strict()),mN=xM({family:aN.optional(),density:oN.optional(),preset:iN.optional(),defaultMode:sN.optional(),accentColor:Vj().optional(),accentColorDark:Vj().optional(),fontFamily:Vj().optional(),codeTheme:kM([`github`,`dracula`,`one-dark`,`synthwave`]).optional(),logo:xM({light:Vj().optional(),dark:Vj().optional(),alt:Vj().optional(),text:Vj().optional()}).strict().optional(),favicon:Vj().optional()}).strict(),hN=xM({enabled:pM().optional(),placeholder:Vj().optional(),maxResults:lM().int().positive().max(100).optional()}).strict(),gN=xM({embedNestedDocs:pM().optional()}).strict(),_N=xM({$schema:Vj().url(`Must be an absolute URL.`).optional(),name:rN.optional(),tagline:Vj().optional(),description:Vj().optional(),url:Vj().url(`Must be an absolute URL.`).optional(),version:Vj().optional(),rootDoc:rN.optional(),home:rN.optional(),source:fN.optional(),theme:mN.optional(),nav:yM(uN).optional(),socials:yM(dN).optional(),sidebar:yM(pN).optional(),autoIndex:xM({enabled:pM().optional(),exclude:yM(rN).optional(),sort:kM([`alphabetical`,`frontmatter`,`natural`]).optional(),defaultCollapsed:pM().optional()}).strict().optional(),search:hN.optional(),offline:gN.optional(),footer:xM({copyright:Vj().optional(),links:yM(uN).optional(),showBuiltWith:pM().optional()}).strict().optional(),componentsUrl:Vj().optional(),editUrl:Vj().optional()}).strict(),vN=_N.extend({name:rN});function yN(e){return e.issues.map(e=>`${e.path.length>0?e.path.join(`.`):`config`}: ${e.message}`).join(`
|
|
570
|
+
`)}function bN(e){let t=_N.safeParse(e);if(t.success)return t.data;throw Error(`Invalid DocMeDown configuration:\n${yN(t.error)}`)}var xN={indigo:`atlas`,emerald:`atlas`,sunset:`editorial`,violet:`atlas`,rose:`editorial`,slate:`blueprint`,cyberpunk:`terminal`},SN={name:`DocMeDown`,tagline:`The simplest Markdown documenter yet`,description:`Instant documentation site powered by DocMeDown`,version:`1.0.0`,rootDoc:`README.md`,theme:{family:`atlas`,density:`comfortable`,defaultMode:`auto`,codeTheme:`github`},autoIndex:{enabled:!0,sort:`natural`,defaultCollapsed:!1,exclude:[`node_modules`,`.git`,`.dmd`,`dist`,`bin`,`package.json`,`tsconfig.json`]},search:{enabled:!0,placeholder:`Search documentation...`,maxResults:10},offline:{embedNestedDocs:!0},footer:{copyright:`© ${new Date().getFullYear()} DocMeDown. All rights reserved.`,showBuiltWith:!0}};function CN(e={}){let t=bN(e),n=t.theme?.preset,r=t.theme?.family||(n?xN[n]:SN.theme?.family),{preset:i,...a}=t.theme??{},o={...SN,...t,theme:{...SN.theme,...a,family:r,logo:{...SN.theme?.logo,...t.theme?.logo}},autoIndex:{...SN.autoIndex,...t.autoIndex},search:{...SN.search,...t.search},offline:{...SN.offline,...t.offline},footer:{...SN.footer,...t.footer}};return vN.parse(o)}function wN(e,t){try{return bN(JSON.parse(e))}catch(e){throw Error(`${t}: ${e instanceof Error?e.message:String(e)}`)}}async function TN(e=``){if(typeof window<`u`&&window.__DOCMEDOWN_CONFIG__)try{return CN(window.__DOCMEDOWN_CONFIG__)}catch(e){console.warn(`[DocMeDown] Invalid window.__DOCMEDOWN_CONFIG__:`,e)}if(typeof document<`u`){let e=document.getElementById(`dmd-config`);if(e?.textContent)try{return CN(wN(e.textContent.trim(),`Inline #dmd-config`))}catch(e){console.warn(`[DocMeDown] Failed to parse inline #dmd-config JSON:`,e)}}for(let t of[`docs.json`,`dmd.json`,`_manifest.json`])try{let n=e?`${e.replace(/\/$/,``)}/${t}`:t,r=await fetch(n);if(r.ok){let e=await r.json();return t===`_manifest.json`&&typeof e==`object`&&e&&`config`in e?CN(e.config):CN(e)}}catch(e){e instanceof Error&&e.message.includes(`Invalid DocMeDown configuration`)&&console.warn(`[DocMeDown] Ignoring invalid ${t}:\n${e.message}`)}return CN()}var EN=`@import './themes.css';
|
|
571
571
|
/* KaTeX base styles are imported as a module from App.svelte (before this
|
|
572
572
|
file) so the build can prune their legacy woff/ttf font sources. */
|
|
573
573
|
|
|
@@ -7624,5 +7624,5 @@ dmd-timeline-item {
|
|
|
7624
7624
|
animation-duration: 3s;
|
|
7625
7625
|
}`).replace(/@import\s+['"][^'"]*katex[^'"]*['"]\s*;?/,`/* katex: loaded globally for slotted content */`)+`
|
|
7626
7626
|
|
|
7627
|
-
:host { display: contents; }`,TN=null;function EN(){if(!TN&&typeof CSSStyleSheet<`u`)try{TN=new CSSStyleSheet,TN.replaceSync(wN)}catch{TN=null}return TN}function DN(e){if(!e||typeof ShadowRoot>`u`)return;let t=e.getRootNode();if(t instanceof ShadowRoot){let e=EN();e&&!t.adoptedStyleSheets.includes(e)&&(t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}}var ON=P(`<div class="dmd-accordion"><!></div>`);function kN(e,t){yn(t,!0);let n=E(void 0);fu(()=>{DN(M(n))});var r=ON();ks(O(r),t,`default`,{},null),w(r),Ol(r,e=>D(n,e),()=>M(n)),F(e,r),bn()}customElements.define(`dmd-accordion`,ou(kN,{},[`default`],[],{mode:`open`}));var AN=P(`<div><button type="button" class="dmd-accordion-trigger"><span class="dmd-accordion-label"> </span> <span class="dmd-accordion-chevron" aria-hidden="true">▾</span></button> <div><div class="dmd-accordion-content"><!></div></div></div>`);function jN(e,t){yn(t,!0);let n=z(t,`title`,7,``),r=z(t,`defaultopen`,7,!1),i=E(void 0),a=E(!1);function o(){D(a,!M(a))}fu(()=>{DN(M(i)),D(a,!!r(),!0)});var s={get title(){return n()},set title(e=``){n(e),T()},get defaultopen(){return r()},set defaultopen(e=!1){r(e),T()}},c=AN(),l=O(c),u=k(O(l),!0);pt(2),w(l);var d=A(l,2),f=O(d);return ks(O(f),t,`default`,{},null),w(f),w(d),w(c),Ol(c,e=>D(i,e),()=>M(i)),j(()=>{gc(c,1,`dmd-accordion-item${M(a)?` open`:``}`),R(l,`aria-expanded`,M(a)),I(u,n()),gc(d,1,`dmd-accordion-panel${M(a)?` open`:``}`)}),N(`click`,l,o),F(e,c),bn(s)}So([`click`]),customElements.define(`dmd-accordion-item`,ou(jN,{title:{},defaultopen:{}},[`default`],[],{mode:`open`}));var MN=P(`<span class="dmd-alert-title"> </span>`),NN=P(`<div role="note"><div class="dmd-alert-head"><span class="dmd-alert-icon" aria-hidden="true"></span> <!></div> <div class="dmd-alert-body"><!></div></div>`);function PN(e,t){yn(t,!0);let n={note:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,info:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>`,tip:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg>`,important:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>`,warning:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>`,caution:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>`,success:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>`,danger:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`},r=z(t,`type`,7,`note`),i=z(t,`title`,7,``),a=E(void 0);fu(()=>{DN(M(a))});let o=vr(()=>n[r()]??n.note);var s={get type(){return r()},set type(e=`note`){r(e),T()},get title(){return i()},set title(e=``){i(e),T()}},c=NN(),l=O(c),u=O(l);Os(u,()=>M(o),!0),w(u);var d=A(u,2),f=e=>{var t=MN(),n=k(t,!0);j(()=>I(n,i())),F(e,t)};L(d,e=>{i()&&e(f)}),w(l);var p=A(l,2);return ks(O(p),t,`default`,{},null),w(p),w(c),Ol(c,e=>D(a,e),()=>M(a)),j(()=>gc(c,1,`dmd-alert dmd-alert-${r()??``}`)),F(e,c),bn(s)}customElements.define(`dmd-alert`,ou(PN,{type:{},title:{}},[`default`],[],{mode:`open`}));function FN(e,t){yn(t,!0);let n=z(t,`type`,7,`note`),r=z(t,`title`,7,``);return PN(e,{get type(){return n()},get title(){return r()},children:(e,n)=>{var r=Vo();ks(Si(r),t,`default`,{},null),F(e,r)},$$slots:{default:!0}}),bn({get type(){return n()},set type(e=`note`){n(e),T()},get title(){return r()},set title(e=``){r(e),T()}})}customElements.define(`dmd-callout`,ou(FN,{type:{},title:{}},[`default`],[],{mode:`open`}));var IN=P(`<span class="dmd-badge-pulse" aria-hidden="true"><span class="dmd-badge-pulse-ring"></span> <span class="dmd-badge-pulse-core"></span></span>`),LN=P(`<span><!> <span class="dmd-badge-label"><!></span></span>`);function RN(e,t){yn(t,!0);let n=z(t,`type`,7,`info`),r=z(t,`pill`,7,!1),i=z(t,`dot`,7,!1),a=E(void 0);fu(()=>{DN(M(a))});var o={get type(){return n()},set type(e=`info`){n(e),T()},get pill(){return r()},set pill(e=!1){r(e),T()},get dot(){return i()},set dot(e=!1){i(e),T()}},s=LN(),c=O(s),l=e=>{F(e,IN())};L(c,e=>{i()&&e(l)});var u=A(c,2);return ks(O(u),t,`default`,{},null),w(u),w(s),Ol(s,e=>D(a,e),()=>M(a)),j(()=>gc(s,1,`dmd-badge dmd-badge-${n()??``}${r()?` dmd-badge-pill`:``}${i()?` dmd-badge-dot`:``}`)),F(e,s),bn(o)}customElements.define(`dmd-badge`,ou(RN,{type:{},pill:{},dot:{}},[`default`],[],{mode:`open`}));var zN=P(`<span class="dmd-btn-spinner" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M21 12a9 9 0 1 1-6.2-8.56" stroke-linecap="round"></path></svg></span>`),BN=P(`<a><!> <span class="dmd-btn-label"><!></span></a>`),VN=P(`<button><!> <span class="dmd-btn-label"><!></span></button>`);function HN(e,t){yn(t,!0);let n=z(t,`variant`,7,`primary`),r=z(t,`size`,7,`md`),i=z(t,`href`,7,``),a=z(t,`external`,7,!1),o=z(t,`block`,7,!1),s=z(t,`iconposition`,7,`left`),c=z(t,`loading`,7,!1),l=z(t,`disabled`,7,!1),u=z(t,`type`,7,`button`),d=E(void 0);fu(()=>{DN(M(d))});let f=vr(()=>`dmd-btn dmd-btn-${n()} dmd-btn-${r()}${o()?` dmd-btn-block`:``}${c()?` dmd-btn-loading`:``}`);var p={get variant(){return n()},set variant(e=`primary`){n(e),T()},get size(){return r()},set size(e=`md`){r(e),T()},get href(){return i()},set href(e=``){i(e),T()},get external(){return a()},set external(e=!1){a(e),T()},get block(){return o()},set block(e=!1){o(e),T()},get iconposition(){return s()},set iconposition(e=`left`){s(e),T()},get loading(){return c()},set loading(e=!1){c(e),T()},get disabled(){return l()},set disabled(e=!1){l(e),T()},get type(){return u()},set type(e=`button`){u(e),T()}},m=Vo(),h=Si(m),g=e=>{var n=BN(),r=O(n),o=e=>{F(e,zN())};L(r,e=>{c()&&e(o)});var s=A(r,2);ks(O(s),t,`default`,{},null),w(s),w(n),Ol(n,e=>D(d,e),()=>M(d)),j(()=>{R(n,`href`,i()),gc(n,1,uc(M(f))),R(n,`target`,a()?`_blank`:void 0),R(n,`rel`,a()?`noopener noreferrer`:void 0),R(n,`aria-disabled`,c()?`true`:void 0)}),F(e,n)},_=e=>{var n=VN(),r=O(n),i=e=>{F(e,zN())};L(r,e=>{c()&&e(i)});var a=A(r,2);ks(O(a),t,`default`,{},null),w(a),w(n),Ol(n,e=>D(d,e),()=>M(d)),j(()=>{R(n,`type`,u()),gc(n,1,uc(M(f))),n.disabled=l()||c()}),F(e,n)};return L(h,e=>{i()&&!l()?e(g):e(_,-1)}),F(e,m),bn(p)}customElements.define(`dmd-button`,ou(HN,{variant:{},size:{},href:{},external:{},block:{},iconposition:{},loading:{},disabled:{},type:{}},[`default`],[],{mode:`open`}));var UN=2,WN=6,GN=/^H([1-6])$/;function KN(e){let t=GN.exec(e.tagName.toUpperCase());return t?Number(t[1]):0}function qN(e){return KN(e)>0||e.textContent===void 0&&e.childElementCount===void 0?!1:(e.textContent??``).trim()===``&&(e.childElementCount??0)===0}function JN(e){let t={},n=e.filter(e=>!qN(e)),r=n.find(e=>{let t=KN(e);return t>0&&t<=UN});if(r){t.title=r;let e=n[n.indexOf(r)+1];e&&KN(e)>KN(r)&&(t.description=e)}let i=n[n.length-1];return i&&i!==t.title&&i!==t.description&&(i.tagName.toUpperCase()===`BLOCKQUOTE`||KN(i)>=WN)&&(t.footer=i),t}var YN=P(`<div class="dmd-card-media"><img loading="lazy"/></div>`),XN=P(`<div class="dmd-card-icon"><span></span></div>`),ZN=P(`<h3 class="dmd-card-title"> </h3>`),QN=P(`<h3 class="dmd-card-title"></h3>`),$N=P(`<span> </span>`),eP=P(`<div class="dmd-card-title-row"><!> <!></div>`),tP=P(`<p class="dmd-card-subtitle"> </p>`),nP=P(`<p class="dmd-card-subtitle"></p>`),rP=P(`<div class="dmd-card-header"><!> <div class="dmd-card-header-text"><!> <!></div></div>`),iP=P(`<div class="dmd-card-footer"> </div>`),aP=P(`<div class="dmd-card-footer"></div>`),oP=P(`<div><!> <!> <div class="dmd-card-body"><!> <!></div> <!></div>`),sP=P(`<a class="dmd-card-link"><!></a>`),cP=P(`<div style="display: contents;"><!></div>`);function lP(e,t){yn(t,!0);let n=e=>{var n=oP(),r=O(n),i=e=>{var t=YN(),n=k(t);j(()=>{R(t,`aria-hidden`,p()?void 0:`true`),R(n,`src`,f()),R(n,`alt`,p()||``)}),F(e,t)};L(r,e=>{f()&&e(i)});var a=A(r,2),o=e=>{var t=rP(),n=O(t),r=e=>{var t=XN(),n=O(t);Os(n,d,!0),w(n),w(t),F(e,t)};L(n,e=>{d()&&e(r)});var i=A(n,2),a=O(i),o=e=>{var t=eP(),n=O(t),r=e=>{var t=ZN(),n=k(t,!0);j(()=>I(n,s())),F(e,t)},i=e=>{var t=QN();Os(t,()=>M(y),!0),w(t),F(e,t)};L(n,e=>{s()?e(r):M(y)&&e(i,1)});var a=A(n,2),o=e=>{var t=$N(),n=k(t,!0);j(()=>{gc(t,1,`dmd-badge dmd-badge-${h()??``}`),I(n,m())}),F(e,t)};L(a,e=>{m()&&e(o)}),w(t),F(e,t)};L(a,e=>{(s()||M(y)||m())&&e(o)});var l=A(a,2),u=e=>{var t=tP(),n=k(t,!0);j(()=>I(n,c())),F(e,t)},f=e=>{var t=nP();Os(t,()=>M(b),!0),w(t),F(e,t)};L(l,e=>{c()?e(u):M(b)&&e(f,1)}),w(i),w(t),F(e,t)};L(a,e=>{M(se)&&e(o)});var l=A(a,2),u=O(l),_=e=>{var t=Vo();Os(Si(t),()=>M(ne)),F(e,t)};L(u,e=>{M(ne)&&e(_)}),ks(A(u,2),t,`default`,{onslotchange:ie},null),w(l),Ol(l,e=>D(ee,e),()=>M(ee));var S=A(l,2),te=e=>{var t=iP(),n=k(t,!0);j(()=>I(n,g())),F(e,t)},re=e=>{var t=aP();Os(t,()=>M(x),!0),w(t),F(e,t)};L(S,e=>{g()?e(te):M(x)&&e(re,1)}),w(n),j(()=>{gc(n,1,`dmd-card${M(ae)??``}${v()?` dmd-card-shadow`:` dmd-card-flat`}`),vc(n,M(oe)||void 0)}),F(e,n)},r=new Set([`blue`,`green`,`violet`,`amber`,`red`,`neutral`]),i=new Map;function a(e){let t=e.trim();return!t||t.includes(`
|
|
7628
|
-
`)||t.includes(`\r`)||/^<[a-z0-9-]+[\s>]/i.test(t)||/^(#{1,6}\s|[-*+]\s|\d+\.\s|>\s|`{3,})/.test(t)?!1:!!(/^https?:\/\//i.test(t)||/\.(md|mdx|html)$/i.test(t)&&(t.includes(`/`)||t.includes(`.`)||!t.includes(` `)))}function o(e){if(typeof window>`u`)return;let t=e.trim(),n=[t,t.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``),t.replace(/^\.?\//,``)],r=window.__DOCMEDOWN_DATA__?.docs;if(r&&typeof r==`object`){for(let e of n)if(r[e]!==void 0)return r[e]}let i=window.__DOCMEDOWN_DOCS__;if(i&&typeof i==`object`){for(let e of n)if(i[e]!==void 0)return i[e]}let a=document.getElementById(`dmd-docs`);if(a?.textContent)try{let e=JSON.parse(a.textContent);for(let t of n)if(e[t]!==void 0)return e[t]}catch{}}let s=z(t,`title`,7,``),c=z(t,`description`,7,``),l=z(t,`content`,7,``),u=z(t,`href`,7,``),d=z(t,`icon`,7,``),f=z(t,`image`,7,``),p=z(t,`imagealt`,7,``),m=z(t,`badge`,7,``),h=z(t,`badgetype`,7,`info`),g=z(t,`footer`,7,``),_=z(t,`color`,7,``),v=z(t,`shadow`,7,!0),y=E(``),b=E(``),x=E(``),S=E(void 0),ee=E(void 0);function te(e){let t=e?.trim()||``;if(!t)return``;if(!a(t)){let e=lb(t);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}let n=i.get(t);if(n!==void 0){let e=lb(n);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}let r=o(t);if(r!==void 0){i.set(t,r);let e=lb(r);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}return``}let ne=E(``);Li(()=>{let e=l()?.trim()||``;if(!e){D(ne,``);return}let t=te(e);if(t){D(ne,t,!0);return}if(typeof window>`u`)return;let n=!0;return fetch(e).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()}).then(t=>{if(!n)return;i.set(e,t);let r=lb(t);!s()&&!M(y)&&r.frontmatter?.title&&D(y,String(r.frontmatter.title),!0),!c()&&!M(b)&&r.frontmatter?.description&&D(b,String(r.frontmatter.description),!0),D(ne,r.html,!0)}).catch(t=>{n&&(console.warn(`[DocMeDown] Failed to fetch card content from "${e}":`,t),D(ne,`<p class="dmd-card-error">Failed to load content: <code>${e}</code></p>`))}),()=>{n=!1}});function re(){if(!M(S))return null;let e=M(S).getRootNode();return e instanceof ShadowRoot?e.host:M(S).parentElement}function ie(){let e=re();if(!e)return;let t=JN(Array.from(e.children)),n=!s()&&!M(y),r=!c()&&!M(b);n&&t.title&&(D(y,t.title.innerHTML,!0),t.title.remove(),r&&t.description&&(D(b,t.description.innerHTML,!0),t.description.remove())),!g()&&!M(x)&&t.footer&&(D(x,t.footer.innerHTML,!0),t.footer.remove())}fu(()=>{DN(M(S)),ie();let e=re();e&&(e.cloneCard=()=>{let t=e.cloneNode(!0);return t._autoTitle=M(y),t._autoDescription=M(b),t._autoFooter=M(x),t},e._autoTitle&&D(y,e._autoTitle,!0),e._autoDescription&&D(b,e._autoDescription,!0),e._autoFooter&&D(x,e._autoFooter,!0))});let ae=vr(()=>_()?r.has(_())?` dmd-card-${_()}`:` dmd-card-accent`:``),oe=vr(()=>_()&&!r.has(_())?`--dmd-card-accent: ${_()};`:``),se=vr(()=>!!(s()||M(y)||m()||d()||c()||M(b)));var ce={get title(){return s()},set title(e=``){s(e),T()},get description(){return c()},set description(e=``){c(e),T()},get content(){return l()},set content(e=``){l(e),T()},get href(){return u()},set href(e=``){u(e),T()},get icon(){return d()},set icon(e=``){d(e),T()},get image(){return f()},set image(e=``){f(e),T()},get imagealt(){return p()},set imagealt(e=``){p(e),T()},get badge(){return m()},set badge(e=``){m(e),T()},get badgetype(){return h()},set badgetype(e=`info`){h(e),T()},get footer(){return g()},set footer(e=``){g(e),T()},get color(){return _()},set color(e=``){_(e),T()},get shadow(){return v()},set shadow(e=!0){v(e),T()}},le=cP(),ue=O(le),de=e=>{var t=sP(),r=O(t);n(r),w(t),j(()=>R(t,`href`,u())),F(e,t)},fe=e=>{n(e)};return L(ue,e=>{u()?e(de):e(fe,-1)}),w(le),Ol(le,e=>D(S,e),()=>M(S)),F(e,le),bn(ce)}customElements.define(`dmd-card`,ou(lP,{title:{},description:{},content:{},href:{},icon:{},image:{},imagealt:{},badge:{},badgetype:{},footer:{},color:{},shadow:{}},[`default`],[],{mode:`open`}));function uP(e,t){let n=typeof e==`number`&&Number.isFinite(e)?Math.floor(e):t;return n<1?1:n>4?4:n}function dP(e,t){let n=uP(e,2);if(!Number.isFinite(t)||t<=0)return n;let r=Math.floor((t+16)/276);return r<1?1:Math.min(n,r)}function fP(e,t,n){let r=Math.max(0,Math.floor(e)),i=Math.max(1,Math.floor(t)),a=Math.max(1,r-i+1),o=Number.isFinite(n)?Math.floor(n):0,s=Math.min(a-1,Math.max(0,o)),c=[];for(let e=0;e<Math.min(i,r);e++)c.push(s+e);return{positions:a,index:s,indices:c}}var pP=P(`<button type="button" role="tab"></button>`),mP=P(`<section aria-roledescription="carousel" tabindex="-1"><div class="dmd-carousel-viewport"><div class="dmd-carousel-track"><!></div></div> <div class="dmd-sr-only" aria-live="polite"> </div> <div class="dmd-carousel-controls"><button type="button" class="dmd-carousel-btn" aria-label="Previous cards"><span aria-hidden="true">‹</span></button> <div class="dmd-carousel-dots" role="tablist" aria-label="Choose card"></div> <button type="button" class="dmd-carousel-btn" aria-label="Next cards"><span aria-hidden="true">›</span></button></div></section>`),hP=P(`<div><!></div>`),gP=P(`<div style="display: contents;"><!></div>`);function _P(e,t){yn(t,!0);let n=z(t,`cols`,7,2),r=z(t,`carouselcols`,7,0),i=E(void 0),a=E(void 0),o=E(0),s=E(2),c=E(0),l=[],u=[],d=``,f=0,p=null,m=null,h=0,g=E(void 0),_=null;function v(){if(!M(g))return;let e=M(g).querySelectorAll(`.dmd-carousel-slide`);if(!(e.length===M(o)&&M(o)>0)){e.forEach(e=>e.remove());for(let e=0;e<M(o);e++){let t=document.createElement(`div`);t.className=`dmd-carousel-slide`;let n=document.createElement(`slot`);n.name=`dmd-carousel-${e}`,t.appendChild(n),M(g).appendChild(t)}}}let y=!1,b=vr(()=>uP(Number(n())||2,2)),x=vr(()=>uP(Number(r())||Number(n())||2,2)),S=vr(()=>M(o)>M(b)),ee=vr(()=>fP(M(o),M(s),M(c)).positions),te=vr(()=>{let e=fP(M(o),M(s),M(c)).indices.map(e=>e+1);return e.length===0?`no cards`:e.length===1?`card ${e[0]}`:`cards ${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`});function ne(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function re(){let e=ne();return e?Array.from(e.children).filter(e=>e instanceof HTMLElement):[]}function ie(){let e=(M(g)||M(i)?.getRootNode())?.querySelectorAll(`.dmd-carousel-slide`);if(!e||e.length===0||!M(a))return;let t=`${e.length}:${M(s)}:${M(a).clientWidth}`;if(t===d&&u.length>0&&(e.length<=1||u[1]>0))return;let n=[...e].slice(0,M(o)).map(e=>e.offsetLeft);if(n.length>1&&n[1]===0){h||=requestAnimationFrame(()=>{h=0,ie()});return}d=t,u=n}function ae(){if(!M(a))return;p?.stop(),p=null,m=null;let e=dP(M(x),M(a).clientWidth);M(s)!==e&&D(s,e,!0),M(S)&&v(),ie(),_&&M(a)&&!y&&(_.observe(M(a)),y=!0)}function oe(e,t=`smooth`){if(!M(a))return;u.length===0&&ie();let n=u[e];if(n==null)return;p?.stop(),p=null,m=null,D(c,e,!0);let r=u[0]||0,i=Math.max(0,n-r);if(lx()||t===`instant`||t===`auto`){M(a).scrollLeft=i;return}m=e;let o=px(M(a),i,{duration:320});p=o,o.finished.then(()=>{p===o&&(p=null,m=null,le())})}function se(){oe(Math.max(0,M(c)-1))}function ce(){oe(Math.min(M(ee)-1,M(c)+1))}function le(){f||=requestAnimationFrame(()=>{if(f=0,!M(a)||m!==null||(u.length===0&&ie(),u.length===0))return;let e=u[0]||0,t=M(a).scrollLeft,n=0,r=1/0;for(let i=0;i<Math.min(M(ee),u.length);i++){let a=Math.max(0,u[i]-e),o=Math.abs(a-t);o<r&&(r=o,n=i)}n!==M(c)&&D(c,n,!0)})}function ue(e){e.key===`ArrowLeft`?(e.preventDefault(),se()):e.key===`ArrowRight`&&(e.preventDefault(),ce())}function de(e){if(e.target.name)return;let t=re();if(t.length===0)return;let n=t.length===l.length&&t.every((e,t)=>e===l[t]);if(l=t,D(o,t.length,!0),n||(p?.stop(),p=null,m=null,d=``,u=[]),!M(S)){l.forEach(e=>e.removeAttribute(`slot`)),D(s,M(b),!0);return}l.forEach((e,t)=>e.setAttribute(`slot`,`dmd-carousel-${t}`)),ae()}Li(()=>{if(l.length===0){let e=re();e.length>0&&(l=e,D(o,e.length,!0))}if(M(S)){if(M(g)&&M(a)&&M(o)>0){l.forEach((e,t)=>e.setAttribute(`slot`,`dmd-carousel-${t}`));let e=dP(M(x),M(a).clientWidth);M(s)!==e&&D(s,e,!0),v(),ie(),_&&!y&&(_.observe(M(a)),y=!0)}}else l.forEach(e=>e.removeAttribute(`slot`)),_&&y&&(_.disconnect(),y=!1)}),fu(()=>{DN(M(i));let e=ne();e&&e.addEventListener(`keydown`,ue),typeof ResizeObserver<`u`&&(_=new ResizeObserver(()=>ae()),M(a)&&M(S)&&!y&&(_.observe(M(a)),y=!0))}),pu(()=>{p?.stop(),h&&cancelAnimationFrame(h);let e=ne();e&&e.removeEventListener(`keydown`,ue),_&&_.disconnect(),f&&cancelAnimationFrame(f)});var fe={get cols(){return n()},set cols(e=2){n(e),T()},get carouselcols(){return r()},set carouselcols(e=0){r(e),T()}},pe=gP(),me=O(pe),he=e=>{var n=mP(),r=O(n),i=O(r);ks(O(i),t,`default`,{onslotchange:de,style:`display: contents;`},null),w(i),Ol(i,e=>D(g,e),()=>M(g)),w(r),Ol(r,e=>D(a,e),()=>M(a));var l=A(r,2),u=k(l),d=A(l,2),f=O(d),p=A(f,2);Ss(p,21,()=>Array.from({length:M(ee)}),vs,(e,t,n)=>{var r=pP();R(r,`aria-label`,`Go to card ${n+1}`),j(()=>{gc(r,1,`dmd-carousel-dot${n===M(c)?` active`:``}`),R(r,`aria-selected`,n===M(c))}),N(`click`,r,()=>oe(n)),F(e,r)}),w(p);var m=A(p,2);w(d),w(n),j(()=>{gc(n,1,`dmd-card-carousel dmd-card-grid-${M(b)??``}`),R(n,`data-per-view`,M(s)),R(n,`aria-label`,`Card carousel, ${M(o)??``} cards`),vc(i,`--dmd-carousel-per-view: ${M(s)??``};`),I(u,`Showing ${M(te)??``} of ${M(o)??``}`),f.disabled=M(c)<=0,m.disabled=M(c)>=M(ee)-1}),xo(`scroll`,r,le),N(`click`,f,se),N(`click`,m,ce),F(e,n)},ge=e=>{var n=hP();ks(O(n),t,`default`,{onslotchange:de},null),w(n),j(()=>gc(n,1,`dmd-card-grid dmd-card-grid-${M(b)??``}`)),F(e,n)};return L(me,e=>{M(S)?e(he):e(ge,-1)}),w(pe),Ol(pe,e=>D(i,e),()=>M(i)),F(e,pe),bn(fe)}So([`click`]),customElements.define(`dmd-card-grid`,ou(_P,{cols:{},carouselcols:{}},[`default`],[],{mode:`open`}));var vP=P(`<div><!></div>`);function yP(e,t){yn(t,!0);let n=z(t,`cols`,7,2),r=z(t,`type`,7,`normal`),i=E(void 0),a=vr(()=>{if(typeof n()==`number`)return Math.min(4,Math.max(1,n()));let e=Number.parseInt(String(n()).replace(/[{}'"\s]/g,``),10);return Number.isFinite(e)?Math.min(4,Math.max(1,e)):2});function o(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function s(){let e=o();if(e)for(let t of Array.from(e.children)){let e=t.tagName.toLowerCase();(e===`dmd-column`||e===`dmd-item`)&&t.setAttribute(`data-col-type`,r()||`normal`)}}Li(()=>{r()&&s()}),fu(()=>{DN(M(i)),queueMicrotask(()=>s())});var c={get cols(){return n()},set cols(e=2){n(e),T()},get type(){return r()},set type(e=`normal`){r(e),T()}},l=vP();return ks(O(l),t,`default`,{onslotchange:s},null),w(l),Ol(l,e=>D(i,e),()=>M(i)),j(()=>gc(l,1,`dmd-columns dmd-columns-${M(a)??``} dmd-columns-${r()??``}`)),F(e,l),bn(c)}customElements.define(`dmd-columns`,ou(yP,{cols:{},type:{}},[`default`],[],{mode:`open`}));var bP=P(`<div><!></div>`);function xP(e,t){yn(t,!0);let n=z(t,`colType`,7,``),r=E(void 0);fu(()=>{DN(M(r))});var i={get colType(){return n()},set colType(e=``){n(e),T()}},a=bP();return ks(O(a),t,`default`,{},null),w(a),Ol(a,e=>D(r,e),()=>M(r)),j(()=>gc(a,1,`dmd-column${n()?` dmd-column-${n()}`:``}`)),F(e,a),bn(i)}customElements.define(`dmd-column`,ou(xP,{colType:{}},[`default`],[],{mode:`open`}));var SP=P(`<div style="display: contents;"><details class="dmd-details"><summary class="dmd-details-summary"> </summary> <div class="dmd-details-body"><!></div></details></div>`);function CP(e,t){yn(t,!0);let n=z(t,`summary`,7,``),r=z(t,`open`,7,!1),i=E(void 0);fu(()=>{DN(M(i))});var a={get summary(){return n()},set summary(e=``){n(e),T()},get open(){return r()},set open(e=!1){r(e),T()}},o=SP(),s=O(o),c=O(s),l=k(c,!0),u=A(c,2);return ks(O(u),t,`default`,{},null),w(u),w(s),w(o),Ol(o,e=>D(i,e),()=>M(i)),j(()=>{s.open=r(),I(l,n())}),F(e,o),bn(a)}customElements.define(`dmd-details`,ou(CP,{summary:{},open:{}},[`default`],[],{mode:`open`}));var wP=P(`<div class="dmd-timeline-subtitle"> </div>`),TP=P(`<div class="dmd-timeline-item"><div class="dmd-timeline-dot" aria-hidden="true"></div> <div class="dmd-timeline-content"><div class="dmd-timeline-title"> </div> <!> <div class="dmd-timeline-body"><!></div></div></div>`),EP=P(`<div><button type="button" class="dmd-accordion-trigger"><span class="dmd-accordion-label"> </span> <span class="dmd-accordion-chevron" aria-hidden="true">▾</span></button> <div><div class="dmd-accordion-content"><!></div></div></div>`),DP=P(`<div class="dmd-step-item"><div class="dmd-step-marker"> </div> <div class="dmd-step-content"><h4 class="dmd-step-title"> </h4> <div class="dmd-step-body"><!></div></div></div>`),OP=P(`<div><!></div>`),kP=P(`<div class="dmd-card-icon"><span></span></div>`),AP=P(`<h3 class="dmd-card-title"> </h3>`),jP=P(`<p class="dmd-card-subtitle"> </p>`),MP=P(`<div class="dmd-card-header"><!> <div class="dmd-card-header-text"><!> <!></div></div>`),NP=P(`<div class="dmd-card dmd-card-shadow"><!> <div class="dmd-card-body"><!></div></div>`),PP=P(`<div class="dmd-tab-content"><!></div>`),FP=P(`<li><!></li>`),IP=P(`<div style="display: contents;"><!></div>`);function LP(e,t){yn(t,!0);let n=z(t,`title`,7,``),r=z(t,`subtitle`,7,``),i=z(t,`description`,7,``),a=z(t,`icon`,7,``),o=z(t,`label`,7,``),s=z(t,`value`,7,``),c=z(t,`step`,7,``),l=z(t,`defaultopen`,7,!1),u=z(t,`colType`,7,``),d=E(void 0),f=E(!1),p=E(`none`),m=E(``);function h(){if(!M(d))return null;let e=M(d).getRootNode();return e instanceof ShadowRoot?e.host:M(d).parentElement}function g(){let e=h();switch(e?.parentElement?.tagName?.toLowerCase()){case`dmd-timeline`:D(p,`timeline`);break;case`dmd-accordion`:D(p,`accordion`);break;case`dmd-columns`:D(p,`columns`);break;case`dmd-card-grid`:D(p,`cardgrid`);break;case`dmd-tabs`:D(p,`tabs`);break;case`dmd-steps`:{D(p,`steps`);let t=Array.from(e.parentElement.children).filter(e=>e.tagName.toLowerCase()===`dmd-item`||e.tagName.toLowerCase()===`dmd-step`);D(m,String(t.indexOf(e)+1),!0);break}default:D(p,`none`)}}function _(){D(f,!M(f))}fu(()=>{DN(M(d)),D(f,!!l(),!0),g()});var v={get title(){return n()},set title(e=``){n(e),T()},get subtitle(){return r()},set subtitle(e=``){r(e),T()},get description(){return i()},set description(e=``){i(e),T()},get icon(){return a()},set icon(e=``){a(e),T()},get label(){return o()},set label(e=``){o(e),T()},get value(){return s()},set value(e=``){s(e),T()},get step(){return c()},set step(e=``){c(e),T()},get defaultopen(){return l()},set defaultopen(e=!1){l(e),T()},get colType(){return u()},set colType(e=``){u(e),T()}},y=IP(),b=O(y),x=e=>{var i=TP(),a=A(O(i),2),o=O(a),s=k(o,!0),c=A(o,2),l=e=>{var t=wP(),n=k(t,!0);j(()=>I(n,r())),F(e,t)};L(c,e=>{r()&&e(l)});var u=A(c,2);ks(O(u),t,`default`,{},null),w(u),w(a),w(i),j(()=>I(s,n())),F(e,i)},S=e=>{var r=EP(),i=O(r),a=k(O(i),!0);pt(2),w(i);var o=A(i,2),s=O(o);ks(O(s),t,`default`,{},null),w(s),w(o),w(r),j(()=>{gc(r,1,`dmd-accordion-item${M(f)?` open`:``}`),R(i,`aria-expanded`,M(f)),I(a,n()),gc(o,1,`dmd-accordion-panel${M(f)?` open`:``}`)}),N(`click`,i,_),F(e,r)},ee=e=>{var r=DP(),i=O(r),a=k(i,!0),o=A(i,2),s=O(o),l=k(s,!0),u=A(s,2);ks(O(u),t,`default`,{},null),w(u),w(o),w(r),j(()=>{I(a,c()||M(m)),I(l,n())}),F(e,r)},te=e=>{var n=OP();ks(O(n),t,`default`,{},null),w(n),j(()=>gc(n,1,`dmd-column${u()&&u()!==`normal`?` dmd-column-${u()}`:``}`)),F(e,n)},ne=e=>{var r=NP(),o=O(r),s=e=>{var t=MP(),r=O(t),o=e=>{var t=kP(),n=O(t);Os(n,a,!0),w(n),w(t),F(e,t)};L(r,e=>{a()&&e(o)});var s=A(r,2),c=O(s),l=e=>{var t=AP(),r=k(t,!0);j(()=>I(r,n())),F(e,t)};L(c,e=>{n()&&e(l)});var u=A(c,2),d=e=>{var t=jP(),n=k(t,!0);j(()=>I(n,i())),F(e,t)};L(u,e=>{i()&&e(d)}),w(s),w(t),F(e,t)};L(o,e=>{(n()||a()||i())&&e(s)});var c=A(o,2);ks(O(c),t,`default`,{},null),w(c),w(r),F(e,r)},re=e=>{var n=PP();ks(O(n),t,`default`,{},null),w(n),F(e,n)},ie=e=>{var n=FP();ks(O(n),t,`default`,{},null),w(n),F(e,n)};return L(b,e=>{M(p)===`timeline`?e(x):M(p)===`accordion`?e(S,1):M(p)===`steps`?e(ee,2):M(p)===`columns`?e(te,3):M(p)===`cardgrid`?e(ne,4):M(p)===`tabs`?e(re,5):e(ie,-1)}),w(y),Ol(y,e=>D(d,e),()=>M(d)),F(e,y),bn(v)}So([`click`]),customElements.define(`dmd-item`,ou(LP,{title:{},subtitle:{},description:{},icon:{},label:{},value:{},step:{},defaultopen:{},colType:{}},[`default`],[],{mode:`open`}));var RP=P(`<kbd class="dmd-kbd"><!></kbd>`);function zP(e,t){yn(t,!0);let n=E(void 0);fu(()=>{DN(M(n))});var r=RP();ks(O(r),t,`default`,{},null),w(r),Ol(r,e=>D(n,e),()=>M(n)),F(e,r),bn()}customElements.define(`dmd-kbd`,ou(zP,{},[`default`],[],{mode:`open`}));var BP=P(`<div class="dmd-step-item"><div class="dmd-step-marker"> </div> <div class="dmd-step-content"><h4 class="dmd-step-title"> </h4> <div class="dmd-step-body"><!></div></div></div>`);function VP(e,t){yn(t,!0);let n=z(t,`title`,7,``),r=z(t,`step`,7,``),i=E(void 0),a=E(``);function o(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function s(){let e=Number(r());if(r()&&Number.isFinite(e)&&String(e)!==``){D(a,String(e),!0);return}let t=o(),n=t?.parentElement;if(!n){D(a,``);return}let i=Array.from(n.children).filter(e=>e.tagName.toLowerCase()===`dmd-step`);D(a,String(i.indexOf(t)+1),!0)}fu(()=>{DN(M(i)),Promise.resolve().then(()=>{s()})});var c={get title(){return n()},set title(e=``){n(e),T()},get step(){return r()},set step(e=``){r(e),T()}},l=BP(),u=O(l),d=k(u,!0),f=A(u,2),p=O(f),m=k(p,!0),h=A(p,2);return ks(O(h),t,`default`,{},null),w(h),w(f),w(l),Ol(l,e=>D(i,e),()=>M(i)),j(()=>{I(d,M(a)),I(m,n())}),F(e,l),bn(c)}customElements.define(`dmd-step`,ou(VP,{title:{},step:{}},[`default`],[],{mode:`open`}));var HP=P(`<div class="dmd-steps"><!></div>`);function UP(e,t){yn(t,!0);let n=E(void 0);fu(()=>{DN(M(n))});var r=HP();ks(O(r),t,`default`,{},null),w(r),Ol(r,e=>D(n,e),()=>M(n)),F(e,r),bn()}customElements.define(`dmd-steps`,ou(UP,{},[`default`],[],{mode:`open`}));var WP=P(`<div class="dmd-tab-content"><!></div>`);function GP(e,t){yn(t,!0);let n=z(t,`label`,7,``),r=z(t,`value`,7,``),i=z(t,`icon`,7,``),a=E(void 0);fu(()=>{DN(M(a))});var o={get label(){return n()},set label(e=``){n(e),T()},get value(){return r()},set value(e=``){r(e),T()},get icon(){return i()},set icon(e=``){i(e),T()}},s=WP();return ks(O(s),t,`default`,{},null),w(s),Ol(s,e=>D(a,e),()=>M(a)),F(e,s),bn(o)}customElements.define(`dmd-tab`,ou(GP,{label:{},value:{},icon:{}},[`default`],[],{mode:`open`}));var KP=P(`<span class="dmd-tab-icon" aria-hidden="true"></span>`),qP=P(`<span class="dmd-tab-label"> </span>`),JP=P(`<button type="button" role="tab"><!> <!></button>`),YP=P(`<div><div class="dmd-tabs-header" role="tablist" tabindex="0" aria-label="Content tabs"><span class="dmd-tab-indicator" aria-hidden="true"></span> <!></div> <div class="dmd-tabs-body dmd-tab-panel" role="tabpanel"><!></div></div>`);function XP(e,t){yn(t,!0);let n=z(t,`defaultindex`,7,0),r=z(t,`groupid`,7,``),i=z(t,`type`,7,``),a=z(t,`variant`,7,``),o=E(void 0),s=E(void 0),c=E(void 0),l=E(void 0),u=E(0),d=E(ci([])),f=!1,p=`dmd${Math.random().toString(36).slice(2,10)}`,m=null,h=0,g=null,_=null,v=null;function y(){if(!M(o))return null;let e=M(o).getRootNode();return e instanceof ShadowRoot?e.host:M(o).parentElement}function b(){let e=y();return e?Array.from(e.children).filter(e=>{let t=e.tagName.toLowerCase();return t===`dmd-tab`||t===`dmd-item`}):[]}function x(){let e=b();if(e.length===0)return;if(D(d,e.map((e,t)=>({label:e.getAttribute(`label`)||``,value:e.getAttribute(`value`)||e.getAttribute(`label`)||String(t),icon:e.getAttribute(`icon`)||``})),!0),r()&&typeof localStorage<`u`)try{let e=localStorage.getItem(`dmd-tabs-${r()}`);if(e){let t=M(d).findIndex(t=>t.value===e||t.label===e);if(t!==-1){D(u,t,!0),S(),f=!0;return}}}catch{}let t=Number(n())||0;D(u,Math.max(0,Math.min(t,Math.max(0,M(d).length-1))),!0),S(),f=!0}function S(){g?.stop(),g=null,b().forEach((e,t)=>{if(t===M(u)){if(e.style.display=``,e.removeAttribute(`hidden`),f&&M(l)&&!lx()){let e=M(l),t=dx(e,{opacity:[0,1],transform:[`translate3d(0, 8px, 0)`,`translate3d(0, 0, 0)`]},{duration:.22,ease:[.16,1,.3,1]});g=t,t.then(()=>{g===t&&(g=null,e.style.removeProperty(`transform`),e.style.removeProperty(`opacity`))})}}else e.style.display=`none`,e.removeAttribute(`hidden`)}),ne()}function ee(){return M(s)?Array.from(M(s).querySelectorAll(`.dmd-tab-btn`)):[]}function te(){if(!M(s))return;let e=ee()[M(u)];if(!e||e.offsetWidth===0)return;let t=e.offsetLeft,n=e.offsetWidth,r=v;if((r?.x!==t||r.width!==n)&&(_?.stop(),v={x:t,width:n},M(s).style.setProperty(`--dmd-tab-ind-x`,`${t}px`),M(s).style.setProperty(`--dmd-tab-ind-w`,`${n}px`),r&&M(c)&&M(se)!==`postit`&&!lx())){let e=dx(M(c),{transform:[`translateX(${r.x-t}px) scaleX(${r.width/n})`,`translateX(0) scaleX(1)`]},{duration:.26,ease:[.16,1,.3,1]});_=e,e.then(()=>{_===e&&(_=null,M(c).style.removeProperty(`transform`))})}}function ne(){h||=requestAnimationFrame(()=>{h=0,te()})}function re(e,t=!1){if(e===M(u)||e<0||e>=M(d).length)return;D(u,e,!0),S(),te(),t&&ee()[e]?.focus();let n=ee()[e];if(n&&typeof n.scrollIntoView==`function`&&n.scrollIntoView({behavior:lx()?`auto`:`smooth`,block:`nearest`,inline:`nearest`}),r()){let t=M(d)[e];if(typeof localStorage<`u`)try{localStorage.setItem(`dmd-tabs-${r()}`,t.value||t.label)}catch{}window.dispatchEvent(new CustomEvent(`dmd-tabs-change`,{detail:{groupId:r(),value:t.value,label:t.label}}))}}function ie(e){let t=e;if(!t.detail||t.detail.groupId!==r())return;let n=M(d).findIndex(e=>e.value===t.detail.value||e.label===t.detail.label);n!==-1&&n!==M(u)&&(D(u,n,!0),S(),te())}function ae(e){let t=ee();t.length!==0&&(e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),re((M(u)+1)%t.length,!0)):e.key===`ArrowLeft`||e.key===`ArrowUp`?(e.preventDefault(),re((M(u)-1+t.length)%t.length,!0)):e.key===`Home`?(e.preventDefault(),re(0,!0)):e.key===`End`&&(e.preventDefault(),re(t.length-1,!0)))}function oe(){x()}let se=vr(()=>a()||(i()===`underline`||i()===`pills`||i()===`postit`?i():`recessed`)),ce=vr(()=>`dmd-tabs dmd-tabs-wrapper dmd-tabs-${M(se)}${r()?` dmd-tabs-grouped`:``}`);fu(()=>{DN(M(o)),window.addEventListener(`dmd-tabs-change`,ie),typeof ResizeObserver<`u`&&(m=new ResizeObserver(()=>ne()),M(s)&&m.observe(M(s))),Promise.resolve().then(async()=>{x(),await za(),te(),requestAnimationFrame(()=>te())})}),pu(()=>{g?.stop(),_?.stop(),typeof window<`u`&&window.removeEventListener(`dmd-tabs-change`,ie),m&&m.disconnect(),h&&cancelAnimationFrame(h)});var le={get defaultindex(){return n()},set defaultindex(e=0){n(e),T()},get groupid(){return r()},set groupid(e=``){r(e),T()},get type(){return i()},set type(e=``){i(e),T()},get variant(){return a()},set variant(e=``){a(e),T()}},ue=YP(),de=O(ue),fe=O(de);Ol(fe,e=>D(c,e),()=>M(c)),Ss(A(fe,2),17,()=>M(d),vs,(e,t,n)=>{let r=vr(()=>n===M(u)),i=vr(()=>M(t).value||M(t).label||`Tab ${n+1}`),a=vr(()=>!!M(t).label);var o=JP(),s=O(o),c=e=>{var n=KP();Os(n,()=>M(t).icon,!0),w(n),F(e,n)};L(s,e=>{M(t).icon&&e(c)});var l=A(s,2),d=e=>{var n=qP(),r=k(n,!0);j(()=>I(r,M(t).label)),F(e,n)};L(l,e=>{M(a)&&e(d)}),w(o),j(()=>{R(o,`id`,`${p}-tab-${n}`),gc(o,1,`dmd-tab-btn${M(r)?` active`:``}${M(a)?``:` dmd-tab-btn-icon`}`),R(o,`aria-selected`,M(r)),R(o,`aria-controls`,`${p}-panel-${n}`),R(o,`aria-label`,M(a)?void 0:M(i)),R(o,`tabindex`,M(r)?0:-1)}),N(`click`,o,()=>re(n)),F(e,o)}),w(de),Ol(de,e=>D(s,e),()=>M(s));var pe=A(de,2);return ks(O(pe),t,`default`,{onslotchange:oe},null),w(pe),Ol(pe,e=>D(l,e),()=>M(l)),w(ue),Ol(ue,e=>D(o,e),()=>M(o)),j(()=>{gc(ue,1,uc(M(ce))),R(pe,`id`,`${p}-panel-${M(u)??``}`),R(pe,`aria-labelledby`,`${p}-tab-${M(u)??``}`)}),N(`keydown`,de,ae),F(e,ue),bn(le)}So([`keydown`,`click`]),customElements.define(`dmd-tabs`,ou(XP,{defaultindex:{},groupid:{},type:{},variant:{}},[`default`],[],{mode:`open`}));var ZP=P(`<div class="dmd-timeline"><!></div>`);function QP(e,t){yn(t,!0);let n=E(void 0);fu(()=>{DN(M(n))});var r=ZP();ks(O(r),t,`default`,{},null),w(r),Ol(r,e=>D(n,e),()=>M(n)),F(e,r),bn()}customElements.define(`dmd-timeline`,ou(QP,{},[`default`],[],{mode:`open`}));var $P=P(`<div class="dmd-timeline-subtitle"> </div>`),eF=P(`<div class="dmd-timeline-item"><div class="dmd-timeline-dot" aria-hidden="true"></div> <div class="dmd-timeline-content"><div class="dmd-timeline-title"> </div> <!> <div class="dmd-timeline-body"><!></div></div></div>`);function tF(e,t){yn(t,!0);let n=z(t,`title`,7,``),r=z(t,`subtitle`,7,``),i=E(void 0);fu(()=>{DN(M(i))});var a={get title(){return n()},set title(e=``){n(e),T()},get subtitle(){return r()},set subtitle(e=``){r(e),T()}},o=eF(),s=A(O(o),2),c=O(s),l=k(c,!0),u=A(c,2),d=e=>{var t=$P(),n=k(t,!0);j(()=>I(n,r())),F(e,t)};L(u,e=>{r()&&e(d)});var f=A(u,2);return ks(O(f),t,`default`,{},null),w(f),w(s),w(o),Ol(o,e=>D(i,e),()=>M(i)),j(()=>I(l,n())),F(e,o),bn(a)}customElements.define(`dmd-timeline-item`,ou(tF,{title:{},subtitle:{}},[`default`],[],{mode:`open`}));var nF={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,webp:`image/webp`,gif:`image/gif`,avif:`image/avif`,bmp:`image/bmp`,ico:`image/x-icon`,cur:`image/x-icon`,tif:`image/tiff`,tiff:`image/tiff`,apng:`image/apng`,svg:`image/svg+xml`,svgz:`image/svg+xml`,mp4:`video/mp4`,m4v:`video/mp4`,webm:`video/webm`,ogv:`video/ogg`,mov:`video/quicktime`,avi:`video/x-msvideo`,mkv:`video/x-matroska`,wmv:`video/x-ms-wmv`,flv:`video/x-flv`,mp3:`audio/mpeg`,wav:`audio/wav`,wave:`audio/wav`,ogg:`audio/ogg`,oga:`audio/ogg`,opus:`audio/opus`,aac:`audio/aac`,m4a:`audio/mp4`,flac:`audio/flac`,weba:`audio/webm`,wma:`audio/x-ms-wma`,mid:`audio/midi`,midi:`audio/midi`};function rF(e){if(!e)return``;let t=e.trim().split(`#`)[0].split(`?`)[0],n=t.lastIndexOf(`.`);return n===-1||n===t.length-1?``:t.slice(n+1).toLowerCase()}function iF(e,t){if(t?.trim()){let e=t.trim().toLowerCase();if(e.includes(`/`))return e;if(nF[e])return nF[e]}if(oF(e)){let t=sF(e);if(t)return t.mimeType}let n=rF(e);return n&&nF[n]?nF[n]:`application/octet-stream`}function aF(e,t){let n=(t||``).trim().toLowerCase();if(n===`vector`||n===`svg`||n.includes(`svg`))return`vector`;if(n===`image`||n.startsWith(`image/`))return n.includes(`svg`)?`vector`:`image`;if(n===`video`||n.startsWith(`video/`))return`video`;if(n===`audio`||n.startsWith(`audio/`))return`audio`;let r=iF(e,t);if(r===`image/svg+xml`)return`vector`;if(r.startsWith(`image/`))return`image`;if(r.startsWith(`video/`))return`video`;if(r.startsWith(`audio/`))return`audio`;let i=rF(e);return[`png`,`jpg`,`jpeg`,`webp`,`gif`,`avif`,`bmp`,`ico`,`tif`,`tiff`,`apng`].includes(i)?`image`:[`svg`,`svgz`].includes(i)?`vector`:[`mp4`,`m4v`,`webm`,`ogv`,`mov`,`avi`,`mkv`].includes(i)?`video`:[`mp3`,`wav`,`ogg`,`oga`,`opus`,`aac`,`m4a`,`flac`,`weba`].includes(i)?`audio`:`unknown`}function oF(e){return e?/^data:([a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+)?(?:;charset=[a-zA-Z0-9-]+)?(?:;base64)?,/i.test(e.trim()):!1}function sF(e){if(!e)return null;let t=/^data:([^;,]+)?(?:;charset=[^;,]+)?(;base64)?,(.*)$/is.exec(e.trim());return t?{mimeType:t[1]||`text/plain`,isBase64:!!t[2],data:t[3]}:null}var cF=Po(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>`),lF=Po(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle></svg>`),uF=Po(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>`),dF=P(`<div class="dmd-media-fallback" role="alert"><span class="dmd-media-fallback-icon" aria-hidden="true"><!></span> <div class="dmd-media-fallback-content"><span class="dmd-media-fallback-text"> </span> <!></div></div>`),fF=P(`<source/>`),pF=P(`<video class="dmd-media-video"><!> <!> <p> </p></video>`,2),mF=P(`<audio class="dmd-media-audio"><!> <!> <p> </p></audio>`),hF=P(`<div class="dmd-media-svg-host"></div>`),gF=P(`<img class="dmd-media-image" loading="lazy"/>`),_F=P(`<figcaption> </figcaption>`),vF=P(`<figure><div><!></div> <!></figure>`);function yF(e,t){yn(t,!0);let n=z(t,`src`,7,``),r=z(t,`type`,7,``),i=z(t,`format`,7,``),a=z(t,`fallback`,7,``),o=z(t,`fallbacktext`,7,``),s=z(t,`fallbackText`,7,``),c=z(t,`poster`,7,``),l=z(t,`alt`,7,``),u=z(t,`title`,7,``),d=z(t,`width`,7,``),f=z(t,`height`,7,``),p=z(t,`maxwidth`,7,``),m=z(t,`maxWidth`,7,``),h=z(t,`maxheight`,7,``),g=z(t,`maxHeight`,7,``),_=z(t,`aspectratio`,7,``),v=z(t,`aspectRatio`,7,``),y=z(t,`fit`,7,``),b=z(t,`objectfit`,7,``),x=z(t,`objectFit`,7,``),S=z(t,`align`,7,`center`),ee=z(t,`rounded`,7,``),te=z(t,`radius`,7,``),ne=z(t,`shadow`,7,``),re=z(t,`border`,7,``),ie=z(t,`caption`,7,``),ae=z(t,`captionalign`,7,`center`),oe=z(t,`captionAlign`,7,`center`),se=z(t,`controls`,7,!0),ce=z(t,`autoplay`,7,!1),le=z(t,`loop`,7,!1),ue=z(t,`muted`,7,!1),de=z(t,`playsinline`,7,!0),fe=z(t,`preload`,7,`metadata`),pe=z(t,`embed`,7,``),me=z(t,`zoomable`,7,!1),he=z(t,`class`,7,``),ge=z(t,`style`,7,``),_e=E(void 0),ve=E(!1),ye=E(!1),be=E(null),xe=E(!1);function Se(e){if(typeof window>`u`||!e)return;let t=e.trim(),n=t.replace(/^\.?\//,``),r=[t,n,`./${n}`,`/${n}`],i=window.__DOCMEDOWN_DATA__?.media;if(i&&typeof i==`object`){for(let e of r)if(i[e])return i[e]}let a=document.getElementById(`dmd-media-store`);if(a?.textContent)try{let e=JSON.parse(a.textContent);for(let t of r)if(e[t])return e[t]}catch{}}let Ce=vr(()=>s()||o()),we=vr(()=>m()||p()),Te=vr(()=>g()||h()),Ee=vr(()=>v()||_()),De=vr(()=>y()||x()||b()),Oe=vr(()=>oe()===`center`?ae():oe()),ke=vr(()=>r()||i()),Ae=vr(()=>n()?Se(n())||n():``),je=vr(()=>{if(c())return Se(c())||c()}),Me=vr(()=>{if(a())return Se(a())||a()}),Ne=E(``);Li(()=>{D(Ne,M(Ae),!0),D(ve,!1),D(ye,!1),D(be,null)});let Pe=vr(()=>M(Ne)?aF(M(Ne),M(ke)):`unknown`),Fe=vr(()=>M(Ne)?iF(M(Ne),M(ke)):``);Li(()=>{if(pe()!==`inline`&&pe()!==`svg`&&pe()!==!0||M(Pe)!==`vector`||!M(Ne)){D(be,null);return}if(M(Ne).trim().startsWith(`<svg`))D(be,M(Ne).trim(),!0);else if(oF(M(Ne))){let e=sF(M(Ne));if(e)try{e.isBase64?D(be,atob(e.data),!0):D(be,decodeURIComponent(e.data),!0)}catch{D(be,null)}}}),fu(()=>{DN(M(_e))});function Ie(e){if(e==null||e===``)return;let t=String(e).trim();if(t)return/^\d+(\.\d+)?$/.test(t)?`${t}px`:t}function Le(){!M(ye)&&M(Me)&&M(Me)!==M(Ne)?(D(ye,!0),D(Ne,M(Me),!0)):D(ve,!0)}function Re(){!me()||M(Pe)!==`image`||D(xe,!M(xe))}let ze=vr(()=>{let e=[],t=Ie(d()),n=Ie(f()),r=Ie(M(we)),i=Ie(M(Te));return t&&e.push(`width: ${t};`),n&&e.push(`height: ${n};`),r&&e.push(`max-width: ${r};`),i&&e.push(`max-height: ${i};`),M(Ee)&&e.push(`aspect-ratio: ${M(Ee)};`),M(De)&&e.push(`object-fit: ${M(De)};`),e.join(` `)}),Be=vr(()=>{let e=[],t=Ie(d()),n=Ie(M(we));t&&t!==`auto`&&e.push(`width: ${t};`),n&&e.push(`max-width: ${n};`);let r=ee()===``?te():ee();return r===!0||r===`md`?e.push(`border-radius: var(--dmd-radius-md, 8px);`):r===`sm`?e.push(`border-radius: var(--dmd-radius-sm, 4px);`):r===`lg`?e.push(`border-radius: var(--dmd-radius-lg, 12px);`):r===`full`?e.push(`border-radius: 9999px;`):r===`none`||r===!1?e.push(`border-radius: 0;`):typeof r==`string`&&r.trim()&&e.push(`border-radius: ${Ie(r)};`),ne()===!0||ne()===`md`?e.push(`box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);`):ne()===`sm`?e.push(`box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);`):ne()===`lg`?e.push(`box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.06);`):typeof ne()==`string`&&ne()!==`none`&&ne()!==`false`&&ne().trim()&&e.push(`box-shadow: ${ne()};`),re()===!0||re()===`true`?e.push(`border: 1px solid var(--dmd-border, #e2e8f0);`):typeof re()==`string`&&re()!==`none`&&re()!==`false`&&re().trim()&&e.push(`border: ${re().includes(` `)?re():`1px solid ${re()}`};`),ge()&&e.push(ge()),e.join(` `)}),Ve=vr(()=>{let e=[],t=Ie(M(we));return t&&e.push(`max-width: ${t};`),S()===`center`?e.push(`margin-left: auto; margin-right: auto; text-align: center;`):S()===`left`||S()===`start`?e.push(`margin-left: 0; margin-right: auto; text-align: left;`):(S()===`right`||S()===`end`)&&e.push(`margin-left: auto; margin-right: 0; text-align: right;`),e.join(` `)});var He={get src(){return n()},set src(e=``){n(e),T()},get type(){return r()},set type(e=``){r(e),T()},get format(){return i()},set format(e=``){i(e),T()},get fallback(){return a()},set fallback(e=``){a(e),T()},get fallbacktext(){return o()},set fallbacktext(e=``){o(e),T()},get fallbackText(){return s()},set fallbackText(e=``){s(e),T()},get poster(){return c()},set poster(e=``){c(e),T()},get alt(){return l()},set alt(e=``){l(e),T()},get title(){return u()},set title(e=``){u(e),T()},get width(){return d()},set width(e=``){d(e),T()},get height(){return f()},set height(e=``){f(e),T()},get maxwidth(){return p()},set maxwidth(e=``){p(e),T()},get maxWidth(){return m()},set maxWidth(e=``){m(e),T()},get maxheight(){return h()},set maxheight(e=``){h(e),T()},get maxHeight(){return g()},set maxHeight(e=``){g(e),T()},get aspectratio(){return _()},set aspectratio(e=``){_(e),T()},get aspectRatio(){return v()},set aspectRatio(e=``){v(e),T()},get fit(){return y()},set fit(e=``){y(e),T()},get objectfit(){return b()},set objectfit(e=``){b(e),T()},get objectFit(){return x()},set objectFit(e=``){x(e),T()},get align(){return S()},set align(e=`center`){S(e),T()},get rounded(){return ee()},set rounded(e=``){ee(e),T()},get radius(){return te()},set radius(e=``){te(e),T()},get shadow(){return ne()},set shadow(e=``){ne(e),T()},get border(){return re()},set border(e=``){re(e),T()},get caption(){return ie()},set caption(e=``){ie(e),T()},get captionalign(){return ae()},set captionalign(e=`center`){ae(e),T()},get captionAlign(){return oe()},set captionAlign(e=`center`){oe(e),T()},get controls(){return se()},set controls(e=!0){se(e),T()},get autoplay(){return ce()},set autoplay(e=!1){ce(e),T()},get loop(){return le()},set loop(e=!1){le(e),T()},get muted(){return ue()},set muted(e=!1){ue(e),T()},get playsinline(){return de()},set playsinline(e=!0){de(e),T()},get preload(){return fe()},set preload(e=`metadata`){fe(e),T()},get embed(){return pe()},set embed(e=``){pe(e),T()},get zoomable(){return me()},set zoomable(e=!1){me(e),T()},get class(){return he()},set class(e=``){he(e),T()},get style(){return ge()},set style(e=``){ge(e),T()}},Ue=vF(),We=O(Ue),Ge=O(We),Ke=e=>{var n=dF(),r=O(n),i=O(r),o=e=>{F(e,cF())},s=e=>{F(e,lF())},c=e=>{F(e,uF())};L(i,e=>{M(Pe)===`video`?e(o):M(Pe)===`audio`?e(s,1):e(c,-1)}),w(r);var u=A(r,2),d=O(u),f=k(d,!0);ks(A(d,2),t,`default`,{},null),w(u),w(n),j(()=>I(f,M(Ce)||(typeof a()==`string`&&!M(Me)?a():``)||(l()?`Media unavailable: ${l()}`:`Media unavailable`))),F(e,n)},qe=e=>{var t=pF(),n=O(t),r=e=>{var t=fF();j(()=>{R(t,`src`,M(Ne)),R(t,`type`,M(Fe))}),F(e,t)};L(n,e=>{M(Fe)&&e(r)});var i=A(n,2),a=e=>{var t=fF();j(()=>R(t,`src`,M(Me))),F(e,t)};L(i,e=>{M(Me)&&!M(ye)&&e(a)});var o=k(A(i,2),!0);w(t),j(()=>{R(t,`src`,M(Ne)),R(t,`poster`,M(je)),t.controls=se(),t.autoplay=ce(),t.loop=le(),t.muted=ue(),t.playsInline=de(),R(t,`preload`,fe()),vc(t,M(ze)),I(o,M(Ce)||l()||`Your browser does not support HTML5 video.`)}),xo(`error`,t,Le),F(e,t)},Je=e=>{var t=mF(),n=O(t),r=e=>{var t=fF();j(()=>{R(t,`src`,M(Ne)),R(t,`type`,M(Fe))}),F(e,t)};L(n,e=>{M(Fe)&&e(r)});var i=A(n,2),a=e=>{var t=fF();j(()=>R(t,`src`,M(Me))),F(e,t)};L(i,e=>{M(Me)&&!M(ye)&&e(a)});var o=k(A(i,2),!0);w(t),j(()=>{R(t,`src`,M(Ne)),t.controls=se(),t.autoplay=ce(),t.loop=le(),t.muted=ue(),R(t,`preload`,fe()),vc(t,M(ze)),I(o,M(Ce)||l()||`Your browser does not support HTML5 audio.`)}),xo(`error`,t,Le),F(e,t)},Ye=e=>{var t=hF();Os(t,()=>M(be),!0),w(t),j(()=>vc(t,M(ze))),F(e,t)},Xe=e=>{var t=gF();j(()=>{R(t,`src`,M(Ne)),R(t,`alt`,l()),R(t,`title`,u()),vc(t,M(ze))}),xo(`error`,t,Le),yo(t),F(e,t)};L(Ge,e=>{M(ve)?e(Ke):M(Pe)===`video`?e(qe,1):M(Pe)===`audio`?e(Je,2):M(Pe)===`vector`&&M(be)?e(Ye,3):e(Xe,-1)}),w(We);var Ze=A(We,2),Qe=e=>{var t=_F(),n=k(t,!0);j(()=>{gc(t,1,`dmd-media-caption dmd-media-caption-${M(Oe)??``}`),I(n,ie())}),F(e,t)};return L(Ze,e=>{ie()&&e(Qe)}),w(Ue),Ol(Ue,e=>D(_e,e),()=>M(_e)),j(()=>{gc(Ue,1,`dmd-media dmd-media-${M(Pe)??``} dmd-media-align-${S()??``} ${he()??``}`),vc(Ue,M(Ve)),gc(We,1,`dmd-media-wrapper${me()?` dmd-media-zoomable`:``}${M(xe)?` dmd-media-zoomed`:``}`),vc(We,M(Be)),R(We,`role`,me()?`button`:void 0),R(We,`tabindex`,me()?0:void 0)}),N(`click`,We,Re),N(`keydown`,We,e=>{me()&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Re())}),F(e,Ue),bn(He)}So([`click`,`keydown`]),customElements.define(`dmd-media`,ou(yF,{src:{},type:{},format:{},fallback:{},fallbacktext:{},fallbackText:{},poster:{},alt:{},title:{},width:{},height:{},maxwidth:{},maxWidth:{},maxheight:{},maxHeight:{},aspectratio:{},aspectRatio:{},fit:{},objectfit:{},objectFit:{},align:{},rounded:{},radius:{},shadow:{},border:{},caption:{},captionalign:{},captionAlign:{},controls:{},autoplay:{},loop:{},muted:{},playsinline:{},preload:{},embed:{},zoomable:{},class:{},style:{}},[`default`],[],{mode:`open`})),FC(),typeof window<`u`&&(window.__DOCMEDOWN_SVELTE__={...uu,client:cu,internal:{client:cu}},window.__DOCMEDOWN_MOTION__=sx),typeof globalThis<`u`&&!globalThis.__DOCMEDOWN_SVELTE__&&(globalThis.__DOCMEDOWN_SVELTE__={...uu,client:cu,internal:{client:cu}},globalThis.__DOCMEDOWN_MOTION__=sx);for(let e of[`Tabs`,`Tab`,`Card`,`CardGrid`,`Badge`,`Steps`,`Step`,`Alert`,`Callout`,`Button`,`Kbd`,`Details`,`Accordion`,`AccordionItem`,`Columns`,`Column`,`Timeline`,`TimelineItem`,`Item`,`Media`])nw.getInstance().register(e,gC(e));var bF=new WeakMap;async function xF(e={}){of(e.basePath||``),EC(e.basePath||``);let t=null;if(typeof e.el==`string`?t=document.querySelector(e.el):e.el instanceof HTMLElement?t=e.el:(t=document.getElementById(`dmd-app`),t||(t=document.createElement(`div`),t.id=`dmd-app`,document.body.appendChild(t))),!t)return console.error(`[DocMeDown] Could not find or create mount container element`),null;let n=xN({...await CN(e.basePath||``),...e.config});Gw.init({defaultMode:n.theme?.defaultMode,defaultFamily:n.theme?.family,defaultDensity:n.theme?.density,accentColor:n.theme?.accentColor,accentColorDark:n.theme?.accentColorDark}),await nw.getInstance().loadDmdDirectory(e.basePath||``),await Q.init(n,e.basePath||``),bF.get(t)?.destroy(),t.innerHTML=``;let r=Xo(sE,{target:t}),i={element:t,destroy:()=>{ts(r),Q.destroy(),t?.dispatchEvent(new CustomEvent(`docmedown:destroyed`))}};return bF.set(t,i),t.dispatchEvent(new CustomEvent(`docmedown:ready`,{detail:i})),i}if(typeof window<`u`&&(window.DocMeDown={init:xF,theme:Gw,motion:sx,registerComponent:(e,t,n)=>rw(e,t,n),registerComponents:e=>nw.getInstance().registerMultiple(e),registerLanguage:np},!window.__DOCMEDOWN_NO_AUTO_INIT__&&!document.querySelector(`script[data-docmedown-auto-init="false"]`))){let e=Cx()?.base??``,t=()=>void xF({basePath:e});document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,t,{once:!0}):t()}e.ComponentRegistry=nw,e.StaticRouter=jx,e.animate=dx,e.collapse=gx,e.createElementBridge=CC,e.createOfflineDownload=cC,e.createReactBridge=SC,e.createRouter=Ex,e.defineDmd=rw,e.defineReactDmd=iw,e.defineWebComponentDmd=aw,e.detectComponentKind=TC,e.dmdTag=gC,e.doc=Q,e.docConfigSchema=hN,e.docSearchConfigSchema=pN,e.docThemeConfigSchema=fN,e.downloadOfflineCopy=lC,e.expand=hx,e.fade=vx,e.formatConfigIssues=_N,e.getMotionOptions=ux,e.getStaticRuntimeContext=Cx,e.initDocMeDown=xF,e.isOfflineDocumentation=$S,e.isStaticRuntime=Tx,e.joinStaticBase=Dx,e.loadDocConfig=CN,e.motion=_x,Object.defineProperty(e,"motionLib",{enumerable:!0,get:function(){return sx}}),e.navLinkSchema=cN,e.normalizeConfig=xN,e.normalizedDocConfigSchema=gN,e.parseDocConfig=vN,e.prefersReducedMotion=lx,e.registerWebComponent=wC,e.remoteSourceSchema=uN,e.sanitizeDownloadName=QS,e.scale=bx,e.sidebarItemSchema=dN,e.slide=yx,e.smoothScroll=px,e.socialLinkSchema=lN,e.stagger=Sx,e.theme=Gw,e.useMotion=xx})(this.DocMeDown=this.DocMeDown||{});
|
|
7627
|
+
:host { display: contents; }`,DN=null;function ON(){if(!DN&&typeof CSSStyleSheet<`u`)try{DN=new CSSStyleSheet,DN.replaceSync(EN)}catch{DN=null}return DN}function kN(e){if(!e||typeof ShadowRoot>`u`)return;let t=e.getRootNode();if(t instanceof ShadowRoot){let e=ON();e&&!t.adoptedStyleSheets.includes(e)&&(t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}}var AN=P(`<div class="dmd-accordion"><!></div>`);function jN(e,t){yn(t,!0);let n=E(void 0);fu(()=>{kN(M(n))});var r=AN();ks(O(r),t,`default`,{},null),w(r),Ol(r,e=>D(n,e),()=>M(n)),F(e,r),bn()}customElements.define(`dmd-accordion`,ou(jN,{},[`default`],[],{mode:`open`}));var MN=P(`<div><button type="button" class="dmd-accordion-trigger"><span class="dmd-accordion-label"> </span> <span class="dmd-accordion-chevron" aria-hidden="true">▾</span></button> <div><div class="dmd-accordion-content"><!></div></div></div>`);function NN(e,t){yn(t,!0);let n=z(t,`title`,7,``),r=z(t,`defaultopen`,7,!1),i=E(void 0),a=E(!1);function o(){D(a,!M(a))}fu(()=>{kN(M(i)),D(a,!!r(),!0)});var s={get title(){return n()},set title(e=``){n(e),T()},get defaultopen(){return r()},set defaultopen(e=!1){r(e),T()}},c=MN(),l=O(c),u=k(O(l),!0);pt(2),w(l);var d=A(l,2),f=O(d);return ks(O(f),t,`default`,{},null),w(f),w(d),w(c),Ol(c,e=>D(i,e),()=>M(i)),j(()=>{gc(c,1,`dmd-accordion-item${M(a)?` open`:``}`),R(l,`aria-expanded`,M(a)),I(u,n()),gc(d,1,`dmd-accordion-panel${M(a)?` open`:``}`)}),N(`click`,l,o),F(e,c),bn(s)}So([`click`]),customElements.define(`dmd-accordion-item`,ou(NN,{title:{},defaultopen:{}},[`default`],[],{mode:`open`}));var PN=P(`<span class="dmd-alert-title"> </span>`),FN=P(`<div role="note"><div class="dmd-alert-head"><span class="dmd-alert-icon" aria-hidden="true"></span> <!></div> <div class="dmd-alert-body"><!></div></div>`);function IN(e,t){yn(t,!0);let n={note:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,info:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>`,tip:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg>`,important:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>`,warning:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>`,caution:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>`,success:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>`,danger:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`},r=z(t,`type`,7,`note`),i=z(t,`title`,7,``),a=E(void 0);fu(()=>{kN(M(a))});let o=vr(()=>n[r()]??n.note);var s={get type(){return r()},set type(e=`note`){r(e),T()},get title(){return i()},set title(e=``){i(e),T()}},c=FN(),l=O(c),u=O(l);Os(u,()=>M(o),!0),w(u);var d=A(u,2),f=e=>{var t=PN(),n=k(t,!0);j(()=>I(n,i())),F(e,t)};L(d,e=>{i()&&e(f)}),w(l);var p=A(l,2);return ks(O(p),t,`default`,{},null),w(p),w(c),Ol(c,e=>D(a,e),()=>M(a)),j(()=>gc(c,1,`dmd-alert dmd-alert-${r()??``}`)),F(e,c),bn(s)}customElements.define(`dmd-alert`,ou(IN,{type:{},title:{}},[`default`],[],{mode:`open`}));function LN(e,t){yn(t,!0);let n=z(t,`type`,7,`note`),r=z(t,`title`,7,``);return IN(e,{get type(){return n()},get title(){return r()},children:(e,n)=>{var r=Vo();ks(Si(r),t,`default`,{},null),F(e,r)},$$slots:{default:!0}}),bn({get type(){return n()},set type(e=`note`){n(e),T()},get title(){return r()},set title(e=``){r(e),T()}})}customElements.define(`dmd-callout`,ou(LN,{type:{},title:{}},[`default`],[],{mode:`open`}));var RN=P(`<span class="dmd-badge-pulse" aria-hidden="true"><span class="dmd-badge-pulse-ring"></span> <span class="dmd-badge-pulse-core"></span></span>`),zN=P(`<span><!> <span class="dmd-badge-label"><!></span></span>`);function BN(e,t){yn(t,!0);let n=z(t,`type`,7,`info`),r=z(t,`pill`,7,!1),i=z(t,`dot`,7,!1),a=E(void 0);fu(()=>{kN(M(a))});var o={get type(){return n()},set type(e=`info`){n(e),T()},get pill(){return r()},set pill(e=!1){r(e),T()},get dot(){return i()},set dot(e=!1){i(e),T()}},s=zN(),c=O(s),l=e=>{F(e,RN())};L(c,e=>{i()&&e(l)});var u=A(c,2);return ks(O(u),t,`default`,{},null),w(u),w(s),Ol(s,e=>D(a,e),()=>M(a)),j(()=>gc(s,1,`dmd-badge dmd-badge-${n()??``}${r()?` dmd-badge-pill`:``}${i()?` dmd-badge-dot`:``}`)),F(e,s),bn(o)}customElements.define(`dmd-badge`,ou(BN,{type:{},pill:{},dot:{}},[`default`],[],{mode:`open`}));var VN=P(`<span class="dmd-btn-spinner" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M21 12a9 9 0 1 1-6.2-8.56" stroke-linecap="round"></path></svg></span>`),HN=P(`<a><!> <span class="dmd-btn-label"><!></span></a>`),UN=P(`<button><!> <span class="dmd-btn-label"><!></span></button>`);function WN(e,t){yn(t,!0);let n=z(t,`variant`,7,`primary`),r=z(t,`size`,7,`md`),i=z(t,`href`,7,``),a=z(t,`external`,7,!1),o=z(t,`block`,7,!1),s=z(t,`iconposition`,7,`left`),c=z(t,`loading`,7,!1),l=z(t,`disabled`,7,!1),u=z(t,`type`,7,`button`),d=E(void 0);fu(()=>{kN(M(d))});let f=vr(()=>`dmd-btn dmd-btn-${n()} dmd-btn-${r()}${o()?` dmd-btn-block`:``}${c()?` dmd-btn-loading`:``}`);var p={get variant(){return n()},set variant(e=`primary`){n(e),T()},get size(){return r()},set size(e=`md`){r(e),T()},get href(){return i()},set href(e=``){i(e),T()},get external(){return a()},set external(e=!1){a(e),T()},get block(){return o()},set block(e=!1){o(e),T()},get iconposition(){return s()},set iconposition(e=`left`){s(e),T()},get loading(){return c()},set loading(e=!1){c(e),T()},get disabled(){return l()},set disabled(e=!1){l(e),T()},get type(){return u()},set type(e=`button`){u(e),T()}},m=Vo(),h=Si(m),g=e=>{var n=HN(),r=O(n),o=e=>{F(e,VN())};L(r,e=>{c()&&e(o)});var s=A(r,2);ks(O(s),t,`default`,{},null),w(s),w(n),Ol(n,e=>D(d,e),()=>M(d)),j(()=>{R(n,`href`,i()),gc(n,1,uc(M(f))),R(n,`target`,a()?`_blank`:void 0),R(n,`rel`,a()?`noopener noreferrer`:void 0),R(n,`aria-disabled`,c()?`true`:void 0)}),F(e,n)},_=e=>{var n=UN(),r=O(n),i=e=>{F(e,VN())};L(r,e=>{c()&&e(i)});var a=A(r,2);ks(O(a),t,`default`,{},null),w(a),w(n),Ol(n,e=>D(d,e),()=>M(d)),j(()=>{R(n,`type`,u()),gc(n,1,uc(M(f))),n.disabled=l()||c()}),F(e,n)};return L(h,e=>{i()&&!l()?e(g):e(_,-1)}),F(e,m),bn(p)}customElements.define(`dmd-button`,ou(WN,{variant:{},size:{},href:{},external:{},block:{},iconposition:{},loading:{},disabled:{},type:{}},[`default`],[],{mode:`open`}));var GN=2,KN=6,qN=/^H([1-6])$/;function JN(e){let t=qN.exec(e.tagName.toUpperCase());return t?Number(t[1]):0}function YN(e){return JN(e)>0||e.textContent===void 0&&e.childElementCount===void 0?!1:(e.textContent??``).trim()===``&&(e.childElementCount??0)===0}function XN(e){let t={},n=e.filter(e=>!YN(e)),r=n.find(e=>{let t=JN(e);return t>0&&t<=GN});if(r){t.title=r;let e=n[n.indexOf(r)+1];e&&JN(e)>JN(r)&&(t.description=e)}let i=n[n.length-1];return i&&i!==t.title&&i!==t.description&&(i.tagName.toUpperCase()===`BLOCKQUOTE`||JN(i)>=KN)&&(t.footer=i),t}var ZN=P(`<div class="dmd-card-media"><img loading="lazy"/></div>`),QN=P(`<div class="dmd-card-icon"><span></span></div>`),$N=P(`<h3 class="dmd-card-title"> </h3>`),eP=P(`<h3 class="dmd-card-title"></h3>`),tP=P(`<span> </span>`),nP=P(`<div class="dmd-card-title-row"><!> <!></div>`),rP=P(`<p class="dmd-card-subtitle"> </p>`),iP=P(`<p class="dmd-card-subtitle"></p>`),aP=P(`<div class="dmd-card-header"><!> <div class="dmd-card-header-text"><!> <!></div></div>`),oP=P(`<div class="dmd-card-footer"> </div>`),sP=P(`<div class="dmd-card-footer"></div>`),cP=P(`<div><!> <!> <div class="dmd-card-body"><!> <!></div> <!></div>`),lP=P(`<a class="dmd-card-link"><!></a>`),uP=P(`<div style="display: contents;"><!></div>`);function dP(e,t){yn(t,!0);let n=e=>{var n=cP(),r=O(n),i=e=>{var t=ZN(),n=k(t);j(()=>{R(t,`aria-hidden`,p()?void 0:`true`),R(n,`src`,f()),R(n,`alt`,p()||``)}),F(e,t)};L(r,e=>{f()&&e(i)});var a=A(r,2),o=e=>{var t=aP(),n=O(t),r=e=>{var t=QN(),n=O(t);Os(n,d,!0),w(n),w(t),F(e,t)};L(n,e=>{d()&&e(r)});var i=A(n,2),a=O(i),o=e=>{var t=nP(),n=O(t),r=e=>{var t=$N(),n=k(t,!0);j(()=>I(n,s())),F(e,t)},i=e=>{var t=eP();Os(t,()=>M(y),!0),w(t),F(e,t)};L(n,e=>{s()?e(r):M(y)&&e(i,1)});var a=A(n,2),o=e=>{var t=tP(),n=k(t,!0);j(()=>{gc(t,1,`dmd-badge dmd-badge-${h()??``}`),I(n,m())}),F(e,t)};L(a,e=>{m()&&e(o)}),w(t),F(e,t)};L(a,e=>{(s()||M(y)||m())&&e(o)});var l=A(a,2),u=e=>{var t=rP(),n=k(t,!0);j(()=>I(n,c())),F(e,t)},f=e=>{var t=iP();Os(t,()=>M(b),!0),w(t),F(e,t)};L(l,e=>{c()?e(u):M(b)&&e(f,1)}),w(i),w(t),F(e,t)};L(a,e=>{M(se)&&e(o)});var l=A(a,2),u=O(l),_=e=>{var t=Vo();Os(Si(t),()=>M(ne)),F(e,t)};L(u,e=>{M(ne)&&e(_)}),ks(A(u,2),t,`default`,{onslotchange:ie},null),w(l),Ol(l,e=>D(ee,e),()=>M(ee));var S=A(l,2),te=e=>{var t=oP(),n=k(t,!0);j(()=>I(n,g())),F(e,t)},re=e=>{var t=sP();Os(t,()=>M(x),!0),w(t),F(e,t)};L(S,e=>{g()?e(te):M(x)&&e(re,1)}),w(n),j(()=>{gc(n,1,`dmd-card${M(ae)??``}${v()?` dmd-card-shadow`:` dmd-card-flat`}`),vc(n,M(oe)||void 0)}),F(e,n)},r=new Set([`blue`,`green`,`violet`,`amber`,`red`,`neutral`]),i=new Map;function a(e){let t=e.trim();return!t||t.includes(`
|
|
7628
|
+
`)||t.includes(`\r`)||/^<[a-z0-9-]+[\s>]/i.test(t)||/^(#{1,6}\s|[-*+]\s|\d+\.\s|>\s|`{3,})/.test(t)?!1:!!(/^https?:\/\//i.test(t)||/\.(md|mdx|html)$/i.test(t)&&(t.includes(`/`)||t.includes(`.`)||!t.includes(` `)))}function o(e){if(typeof window>`u`)return;let t=e.trim(),n=[t,t.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``),t.replace(/^\.?\//,``)],r=window.__DOCMEDOWN_DATA__?.docs;if(r&&typeof r==`object`){for(let e of n)if(r[e]!==void 0)return r[e]}let i=window.__DOCMEDOWN_DOCS__;if(i&&typeof i==`object`){for(let e of n)if(i[e]!==void 0)return i[e]}let a=document.getElementById(`dmd-docs`);if(a?.textContent)try{let e=JSON.parse(a.textContent);for(let t of n)if(e[t]!==void 0)return e[t]}catch{}}let s=z(t,`title`,7,``),c=z(t,`description`,7,``),l=z(t,`content`,7,``),u=z(t,`href`,7,``),d=z(t,`icon`,7,``),f=z(t,`image`,7,``),p=z(t,`imagealt`,7,``),m=z(t,`badge`,7,``),h=z(t,`badgetype`,7,`info`),g=z(t,`footer`,7,``),_=z(t,`color`,7,``),v=z(t,`shadow`,7,!0),y=E(``),b=E(``),x=E(``),S=E(void 0),ee=E(void 0);function te(e){let t=e?.trim()||``;if(!t)return``;if(!a(t)){let e=ub(t);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}let n=i.get(t);if(n!==void 0){let e=ub(n);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}let r=o(t);if(r!==void 0){i.set(t,r);let e=ub(r);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}return``}let ne=E(``);Li(()=>{let e=l()?.trim()||``;if(!e){D(ne,``);return}let t=te(e);if(t){D(ne,t,!0);return}if(typeof window>`u`)return;let n=!0;return fetch(e).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()}).then(t=>{if(!n)return;i.set(e,t);let r=ub(t);!s()&&!M(y)&&r.frontmatter?.title&&D(y,String(r.frontmatter.title),!0),!c()&&!M(b)&&r.frontmatter?.description&&D(b,String(r.frontmatter.description),!0),D(ne,r.html,!0)}).catch(t=>{n&&(console.warn(`[DocMeDown] Failed to fetch card content from "${e}":`,t),D(ne,`<p class="dmd-card-error">Failed to load content: <code>${e}</code></p>`))}),()=>{n=!1}});function re(){if(!M(S))return null;let e=M(S).getRootNode();return e instanceof ShadowRoot?e.host:M(S).parentElement}function ie(){let e=re();if(!e)return;let t=XN(Array.from(e.children)),n=!s()&&!M(y),r=!c()&&!M(b);n&&t.title&&(D(y,t.title.innerHTML,!0),t.title.remove(),r&&t.description&&(D(b,t.description.innerHTML,!0),t.description.remove())),!g()&&!M(x)&&t.footer&&(D(x,t.footer.innerHTML,!0),t.footer.remove())}fu(()=>{kN(M(S)),ie();let e=re();e&&(e.cloneCard=()=>{let t=e.cloneNode(!0);return t._autoTitle=M(y),t._autoDescription=M(b),t._autoFooter=M(x),t},e._autoTitle&&D(y,e._autoTitle,!0),e._autoDescription&&D(b,e._autoDescription,!0),e._autoFooter&&D(x,e._autoFooter,!0))});let ae=vr(()=>_()?r.has(_())?` dmd-card-${_()}`:` dmd-card-accent`:``),oe=vr(()=>_()&&!r.has(_())?`--dmd-card-accent: ${_()};`:``),se=vr(()=>!!(s()||M(y)||m()||d()||c()||M(b)));var ce={get title(){return s()},set title(e=``){s(e),T()},get description(){return c()},set description(e=``){c(e),T()},get content(){return l()},set content(e=``){l(e),T()},get href(){return u()},set href(e=``){u(e),T()},get icon(){return d()},set icon(e=``){d(e),T()},get image(){return f()},set image(e=``){f(e),T()},get imagealt(){return p()},set imagealt(e=``){p(e),T()},get badge(){return m()},set badge(e=``){m(e),T()},get badgetype(){return h()},set badgetype(e=`info`){h(e),T()},get footer(){return g()},set footer(e=``){g(e),T()},get color(){return _()},set color(e=``){_(e),T()},get shadow(){return v()},set shadow(e=!0){v(e),T()}},le=uP(),ue=O(le),de=e=>{var t=lP(),r=O(t);n(r),w(t),j(()=>R(t,`href`,u())),F(e,t)},fe=e=>{n(e)};return L(ue,e=>{u()?e(de):e(fe,-1)}),w(le),Ol(le,e=>D(S,e),()=>M(S)),F(e,le),bn(ce)}customElements.define(`dmd-card`,ou(dP,{title:{},description:{},content:{},href:{},icon:{},image:{},imagealt:{},badge:{},badgetype:{},footer:{},color:{},shadow:{}},[`default`],[],{mode:`open`}));function fP(e,t){let n=typeof e==`number`&&Number.isFinite(e)?Math.floor(e):t;return n<1?1:n>4?4:n}function pP(e,t){let n=fP(e,2);if(!Number.isFinite(t)||t<=0)return n;let r=Math.floor((t+16)/276);return r<1?1:Math.min(n,r)}function mP(e,t,n){let r=Math.max(0,Math.floor(e)),i=Math.max(1,Math.floor(t)),a=Math.max(1,r-i+1),o=Number.isFinite(n)?Math.floor(n):0,s=Math.min(a-1,Math.max(0,o)),c=[];for(let e=0;e<Math.min(i,r);e++)c.push(s+e);return{positions:a,index:s,indices:c}}var hP=P(`<button type="button" role="tab"></button>`),gP=P(`<section aria-roledescription="carousel" tabindex="-1"><div class="dmd-carousel-viewport"><div class="dmd-carousel-track"><!></div></div> <div class="dmd-sr-only" aria-live="polite"> </div> <div class="dmd-carousel-controls"><button type="button" class="dmd-carousel-btn" aria-label="Previous cards"><span aria-hidden="true">‹</span></button> <div class="dmd-carousel-dots" role="tablist" aria-label="Choose card"></div> <button type="button" class="dmd-carousel-btn" aria-label="Next cards"><span aria-hidden="true">›</span></button></div></section>`),_P=P(`<div><!></div>`),vP=P(`<div style="display: contents;"><!></div>`);function yP(e,t){yn(t,!0);let n=z(t,`cols`,7,2),r=z(t,`carouselcols`,7,0),i=E(void 0),a=E(void 0),o=E(0),s=E(2),c=E(0),l=[],u=[],d=``,f=0,p=null,m=null,h=0,g=E(void 0),_=null;function v(){if(!M(g))return;let e=M(g).querySelectorAll(`.dmd-carousel-slide`);if(!(e.length===M(o)&&M(o)>0)){e.forEach(e=>e.remove());for(let e=0;e<M(o);e++){let t=document.createElement(`div`);t.className=`dmd-carousel-slide`;let n=document.createElement(`slot`);n.name=`dmd-carousel-${e}`,t.appendChild(n),M(g).appendChild(t)}}}let y=!1,b=vr(()=>fP(Number(n())||2,2)),x=vr(()=>fP(Number(r())||Number(n())||2,2)),S=vr(()=>M(o)>M(b)),ee=vr(()=>mP(M(o),M(s),M(c)).positions),te=vr(()=>{let e=mP(M(o),M(s),M(c)).indices.map(e=>e+1);return e.length===0?`no cards`:e.length===1?`card ${e[0]}`:`cards ${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`});function ne(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function re(){let e=ne();return e?Array.from(e.children).filter(e=>e instanceof HTMLElement):[]}function ie(){let e=(M(g)||M(i)?.getRootNode())?.querySelectorAll(`.dmd-carousel-slide`);if(!e||e.length===0||!M(a))return;let t=`${e.length}:${M(s)}:${M(a).clientWidth}`;if(t===d&&u.length>0&&(e.length<=1||u[1]>0))return;let n=[...e].slice(0,M(o)).map(e=>e.offsetLeft);if(n.length>1&&n[1]===0){h||=requestAnimationFrame(()=>{h=0,ie()});return}d=t,u=n}function ae(){if(!M(a))return;p?.stop(),p=null,m=null;let e=pP(M(x),M(a).clientWidth);M(s)!==e&&D(s,e,!0),M(S)&&v(),ie(),_&&M(a)&&!y&&(_.observe(M(a)),y=!0)}function oe(e,t=`smooth`){if(!M(a))return;u.length===0&&ie();let n=u[e];if(n==null)return;p?.stop(),p=null,m=null,D(c,e,!0);let r=u[0]||0,i=Math.max(0,n-r);if(ux()||t===`instant`||t===`auto`){M(a).scrollLeft=i;return}m=e;let o=mx(M(a),i,{duration:320});p=o,o.finished.then(()=>{p===o&&(p=null,m=null,le())})}function se(){oe(Math.max(0,M(c)-1))}function ce(){oe(Math.min(M(ee)-1,M(c)+1))}function le(){f||=requestAnimationFrame(()=>{if(f=0,!M(a)||m!==null||(u.length===0&&ie(),u.length===0))return;let e=u[0]||0,t=M(a).scrollLeft,n=0,r=1/0;for(let i=0;i<Math.min(M(ee),u.length);i++){let a=Math.max(0,u[i]-e),o=Math.abs(a-t);o<r&&(r=o,n=i)}n!==M(c)&&D(c,n,!0)})}function ue(e){e.key===`ArrowLeft`?(e.preventDefault(),se()):e.key===`ArrowRight`&&(e.preventDefault(),ce())}function de(e){if(e.target.name)return;let t=re();if(t.length===0)return;let n=t.length===l.length&&t.every((e,t)=>e===l[t]);if(l=t,D(o,t.length,!0),n||(p?.stop(),p=null,m=null,d=``,u=[]),!M(S)){l.forEach(e=>e.removeAttribute(`slot`)),D(s,M(b),!0);return}l.forEach((e,t)=>e.setAttribute(`slot`,`dmd-carousel-${t}`)),ae()}Li(()=>{if(l.length===0){let e=re();e.length>0&&(l=e,D(o,e.length,!0))}if(M(S)){if(M(g)&&M(a)&&M(o)>0){l.forEach((e,t)=>e.setAttribute(`slot`,`dmd-carousel-${t}`));let e=pP(M(x),M(a).clientWidth);M(s)!==e&&D(s,e,!0),v(),ie(),_&&!y&&(_.observe(M(a)),y=!0)}}else l.forEach(e=>e.removeAttribute(`slot`)),_&&y&&(_.disconnect(),y=!1)}),fu(()=>{kN(M(i));let e=ne();e&&e.addEventListener(`keydown`,ue),typeof ResizeObserver<`u`&&(_=new ResizeObserver(()=>ae()),M(a)&&M(S)&&!y&&(_.observe(M(a)),y=!0))}),pu(()=>{p?.stop(),h&&cancelAnimationFrame(h);let e=ne();e&&e.removeEventListener(`keydown`,ue),_&&_.disconnect(),f&&cancelAnimationFrame(f)});var fe={get cols(){return n()},set cols(e=2){n(e),T()},get carouselcols(){return r()},set carouselcols(e=0){r(e),T()}},pe=vP(),me=O(pe),he=e=>{var n=gP(),r=O(n),i=O(r);ks(O(i),t,`default`,{onslotchange:de,style:`display: contents;`},null),w(i),Ol(i,e=>D(g,e),()=>M(g)),w(r),Ol(r,e=>D(a,e),()=>M(a));var l=A(r,2),u=k(l),d=A(l,2),f=O(d),p=A(f,2);Ss(p,21,()=>Array.from({length:M(ee)}),vs,(e,t,n)=>{var r=hP();R(r,`aria-label`,`Go to card ${n+1}`),j(()=>{gc(r,1,`dmd-carousel-dot${n===M(c)?` active`:``}`),R(r,`aria-selected`,n===M(c))}),N(`click`,r,()=>oe(n)),F(e,r)}),w(p);var m=A(p,2);w(d),w(n),j(()=>{gc(n,1,`dmd-card-carousel dmd-card-grid-${M(b)??``}`),R(n,`data-per-view`,M(s)),R(n,`aria-label`,`Card carousel, ${M(o)??``} cards`),vc(i,`--dmd-carousel-per-view: ${M(s)??``};`),I(u,`Showing ${M(te)??``} of ${M(o)??``}`),f.disabled=M(c)<=0,m.disabled=M(c)>=M(ee)-1}),xo(`scroll`,r,le),N(`click`,f,se),N(`click`,m,ce),F(e,n)},ge=e=>{var n=_P();ks(O(n),t,`default`,{onslotchange:de},null),w(n),j(()=>gc(n,1,`dmd-card-grid dmd-card-grid-${M(b)??``}`)),F(e,n)};return L(me,e=>{M(S)?e(he):e(ge,-1)}),w(pe),Ol(pe,e=>D(i,e),()=>M(i)),F(e,pe),bn(fe)}So([`click`]),customElements.define(`dmd-card-grid`,ou(yP,{cols:{},carouselcols:{}},[`default`],[],{mode:`open`}));var bP=P(`<div><!></div>`);function xP(e,t){yn(t,!0);let n=z(t,`cols`,7,2),r=z(t,`type`,7,`normal`),i=E(void 0),a=vr(()=>{if(typeof n()==`number`)return Math.min(4,Math.max(1,n()));let e=Number.parseInt(String(n()).replace(/[{}'"\s]/g,``),10);return Number.isFinite(e)?Math.min(4,Math.max(1,e)):2});function o(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function s(){let e=o();if(e)for(let t of Array.from(e.children)){let e=t.tagName.toLowerCase();(e===`dmd-column`||e===`dmd-item`)&&t.setAttribute(`data-col-type`,r()||`normal`)}}Li(()=>{r()&&s()}),fu(()=>{kN(M(i)),queueMicrotask(()=>s())});var c={get cols(){return n()},set cols(e=2){n(e),T()},get type(){return r()},set type(e=`normal`){r(e),T()}},l=bP();return ks(O(l),t,`default`,{onslotchange:s},null),w(l),Ol(l,e=>D(i,e),()=>M(i)),j(()=>gc(l,1,`dmd-columns dmd-columns-${M(a)??``} dmd-columns-${r()??``}`)),F(e,l),bn(c)}customElements.define(`dmd-columns`,ou(xP,{cols:{},type:{}},[`default`],[],{mode:`open`}));var SP=P(`<div><!></div>`);function CP(e,t){yn(t,!0);let n=z(t,`colType`,7,``),r=E(void 0);fu(()=>{kN(M(r))});var i={get colType(){return n()},set colType(e=``){n(e),T()}},a=SP();return ks(O(a),t,`default`,{},null),w(a),Ol(a,e=>D(r,e),()=>M(r)),j(()=>gc(a,1,`dmd-column${n()?` dmd-column-${n()}`:``}`)),F(e,a),bn(i)}customElements.define(`dmd-column`,ou(CP,{colType:{}},[`default`],[],{mode:`open`}));var wP=P(`<div style="display: contents;"><details class="dmd-details"><summary class="dmd-details-summary"> </summary> <div class="dmd-details-body"><!></div></details></div>`);function TP(e,t){yn(t,!0);let n=z(t,`summary`,7,``),r=z(t,`open`,7,!1),i=E(void 0);fu(()=>{kN(M(i))});var a={get summary(){return n()},set summary(e=``){n(e),T()},get open(){return r()},set open(e=!1){r(e),T()}},o=wP(),s=O(o),c=O(s),l=k(c,!0),u=A(c,2);return ks(O(u),t,`default`,{},null),w(u),w(s),w(o),Ol(o,e=>D(i,e),()=>M(i)),j(()=>{s.open=r(),I(l,n())}),F(e,o),bn(a)}customElements.define(`dmd-details`,ou(TP,{summary:{},open:{}},[`default`],[],{mode:`open`}));var EP=P(`<div class="dmd-timeline-subtitle"> </div>`),DP=P(`<div class="dmd-timeline-item"><div class="dmd-timeline-dot" aria-hidden="true"></div> <div class="dmd-timeline-content"><div class="dmd-timeline-title"> </div> <!> <div class="dmd-timeline-body"><!></div></div></div>`),OP=P(`<div><button type="button" class="dmd-accordion-trigger"><span class="dmd-accordion-label"> </span> <span class="dmd-accordion-chevron" aria-hidden="true">▾</span></button> <div><div class="dmd-accordion-content"><!></div></div></div>`),kP=P(`<div class="dmd-step-item"><div class="dmd-step-marker"> </div> <div class="dmd-step-content"><h4 class="dmd-step-title"> </h4> <div class="dmd-step-body"><!></div></div></div>`),AP=P(`<div><!></div>`),jP=P(`<div class="dmd-card-icon"><span></span></div>`),MP=P(`<h3 class="dmd-card-title"> </h3>`),NP=P(`<p class="dmd-card-subtitle"> </p>`),PP=P(`<div class="dmd-card-header"><!> <div class="dmd-card-header-text"><!> <!></div></div>`),FP=P(`<div class="dmd-card dmd-card-shadow"><!> <div class="dmd-card-body"><!></div></div>`),IP=P(`<div class="dmd-tab-content"><!></div>`),LP=P(`<li><!></li>`),RP=P(`<div style="display: contents;"><!></div>`);function zP(e,t){yn(t,!0);let n=z(t,`title`,7,``),r=z(t,`subtitle`,7,``),i=z(t,`description`,7,``),a=z(t,`icon`,7,``),o=z(t,`label`,7,``),s=z(t,`value`,7,``),c=z(t,`step`,7,``),l=z(t,`defaultopen`,7,!1),u=z(t,`colType`,7,``),d=E(void 0),f=E(!1),p=E(`none`),m=E(``);function h(){if(!M(d))return null;let e=M(d).getRootNode();return e instanceof ShadowRoot?e.host:M(d).parentElement}function g(){let e=h();switch(e?.parentElement?.tagName?.toLowerCase()){case`dmd-timeline`:D(p,`timeline`);break;case`dmd-accordion`:D(p,`accordion`);break;case`dmd-columns`:D(p,`columns`);break;case`dmd-card-grid`:D(p,`cardgrid`);break;case`dmd-tabs`:D(p,`tabs`);break;case`dmd-steps`:{D(p,`steps`);let t=Array.from(e.parentElement.children).filter(e=>e.tagName.toLowerCase()===`dmd-item`||e.tagName.toLowerCase()===`dmd-step`);D(m,String(t.indexOf(e)+1),!0);break}default:D(p,`none`)}}function _(){D(f,!M(f))}fu(()=>{kN(M(d)),D(f,!!l(),!0),g()});var v={get title(){return n()},set title(e=``){n(e),T()},get subtitle(){return r()},set subtitle(e=``){r(e),T()},get description(){return i()},set description(e=``){i(e),T()},get icon(){return a()},set icon(e=``){a(e),T()},get label(){return o()},set label(e=``){o(e),T()},get value(){return s()},set value(e=``){s(e),T()},get step(){return c()},set step(e=``){c(e),T()},get defaultopen(){return l()},set defaultopen(e=!1){l(e),T()},get colType(){return u()},set colType(e=``){u(e),T()}},y=RP(),b=O(y),x=e=>{var i=DP(),a=A(O(i),2),o=O(a),s=k(o,!0),c=A(o,2),l=e=>{var t=EP(),n=k(t,!0);j(()=>I(n,r())),F(e,t)};L(c,e=>{r()&&e(l)});var u=A(c,2);ks(O(u),t,`default`,{},null),w(u),w(a),w(i),j(()=>I(s,n())),F(e,i)},S=e=>{var r=OP(),i=O(r),a=k(O(i),!0);pt(2),w(i);var o=A(i,2),s=O(o);ks(O(s),t,`default`,{},null),w(s),w(o),w(r),j(()=>{gc(r,1,`dmd-accordion-item${M(f)?` open`:``}`),R(i,`aria-expanded`,M(f)),I(a,n()),gc(o,1,`dmd-accordion-panel${M(f)?` open`:``}`)}),N(`click`,i,_),F(e,r)},ee=e=>{var r=kP(),i=O(r),a=k(i,!0),o=A(i,2),s=O(o),l=k(s,!0),u=A(s,2);ks(O(u),t,`default`,{},null),w(u),w(o),w(r),j(()=>{I(a,c()||M(m)),I(l,n())}),F(e,r)},te=e=>{var n=AP();ks(O(n),t,`default`,{},null),w(n),j(()=>gc(n,1,`dmd-column${u()&&u()!==`normal`?` dmd-column-${u()}`:``}`)),F(e,n)},ne=e=>{var r=FP(),o=O(r),s=e=>{var t=PP(),r=O(t),o=e=>{var t=jP(),n=O(t);Os(n,a,!0),w(n),w(t),F(e,t)};L(r,e=>{a()&&e(o)});var s=A(r,2),c=O(s),l=e=>{var t=MP(),r=k(t,!0);j(()=>I(r,n())),F(e,t)};L(c,e=>{n()&&e(l)});var u=A(c,2),d=e=>{var t=NP(),n=k(t,!0);j(()=>I(n,i())),F(e,t)};L(u,e=>{i()&&e(d)}),w(s),w(t),F(e,t)};L(o,e=>{(n()||a()||i())&&e(s)});var c=A(o,2);ks(O(c),t,`default`,{},null),w(c),w(r),F(e,r)},re=e=>{var n=IP();ks(O(n),t,`default`,{},null),w(n),F(e,n)},ie=e=>{var n=LP();ks(O(n),t,`default`,{},null),w(n),F(e,n)};return L(b,e=>{M(p)===`timeline`?e(x):M(p)===`accordion`?e(S,1):M(p)===`steps`?e(ee,2):M(p)===`columns`?e(te,3):M(p)===`cardgrid`?e(ne,4):M(p)===`tabs`?e(re,5):e(ie,-1)}),w(y),Ol(y,e=>D(d,e),()=>M(d)),F(e,y),bn(v)}So([`click`]),customElements.define(`dmd-item`,ou(zP,{title:{},subtitle:{},description:{},icon:{},label:{},value:{},step:{},defaultopen:{},colType:{}},[`default`],[],{mode:`open`}));var BP=P(`<kbd class="dmd-kbd"><!></kbd>`);function VP(e,t){yn(t,!0);let n=E(void 0);fu(()=>{kN(M(n))});var r=BP();ks(O(r),t,`default`,{},null),w(r),Ol(r,e=>D(n,e),()=>M(n)),F(e,r),bn()}customElements.define(`dmd-kbd`,ou(VP,{},[`default`],[],{mode:`open`}));var HP=P(`<div class="dmd-step-item"><div class="dmd-step-marker"> </div> <div class="dmd-step-content"><h4 class="dmd-step-title"> </h4> <div class="dmd-step-body"><!></div></div></div>`);function UP(e,t){yn(t,!0);let n=z(t,`title`,7,``),r=z(t,`step`,7,``),i=E(void 0),a=E(``);function o(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function s(){let e=Number(r());if(r()&&Number.isFinite(e)&&String(e)!==``){D(a,String(e),!0);return}let t=o(),n=t?.parentElement;if(!n){D(a,``);return}let i=Array.from(n.children).filter(e=>e.tagName.toLowerCase()===`dmd-step`);D(a,String(i.indexOf(t)+1),!0)}fu(()=>{kN(M(i)),Promise.resolve().then(()=>{s()})});var c={get title(){return n()},set title(e=``){n(e),T()},get step(){return r()},set step(e=``){r(e),T()}},l=HP(),u=O(l),d=k(u,!0),f=A(u,2),p=O(f),m=k(p,!0),h=A(p,2);return ks(O(h),t,`default`,{},null),w(h),w(f),w(l),Ol(l,e=>D(i,e),()=>M(i)),j(()=>{I(d,M(a)),I(m,n())}),F(e,l),bn(c)}customElements.define(`dmd-step`,ou(UP,{title:{},step:{}},[`default`],[],{mode:`open`}));var WP=P(`<div class="dmd-steps"><!></div>`);function GP(e,t){yn(t,!0);let n=E(void 0);fu(()=>{kN(M(n))});var r=WP();ks(O(r),t,`default`,{},null),w(r),Ol(r,e=>D(n,e),()=>M(n)),F(e,r),bn()}customElements.define(`dmd-steps`,ou(GP,{},[`default`],[],{mode:`open`}));var KP=P(`<div class="dmd-tab-content"><!></div>`);function qP(e,t){yn(t,!0);let n=z(t,`label`,7,``),r=z(t,`value`,7,``),i=z(t,`icon`,7,``),a=E(void 0);fu(()=>{kN(M(a))});var o={get label(){return n()},set label(e=``){n(e),T()},get value(){return r()},set value(e=``){r(e),T()},get icon(){return i()},set icon(e=``){i(e),T()}},s=KP();return ks(O(s),t,`default`,{},null),w(s),Ol(s,e=>D(a,e),()=>M(a)),F(e,s),bn(o)}customElements.define(`dmd-tab`,ou(qP,{label:{},value:{},icon:{}},[`default`],[],{mode:`open`}));var JP=P(`<span class="dmd-tab-icon" aria-hidden="true"></span>`),YP=P(`<span class="dmd-tab-label"> </span>`),XP=P(`<button type="button" role="tab"><!> <!></button>`),ZP=P(`<div><div class="dmd-tabs-header" role="tablist" tabindex="0" aria-label="Content tabs"><span class="dmd-tab-indicator" aria-hidden="true"></span> <!></div> <div class="dmd-tabs-body dmd-tab-panel" role="tabpanel"><!></div></div>`);function QP(e,t){yn(t,!0);let n=z(t,`defaultindex`,7,0),r=z(t,`groupid`,7,``),i=z(t,`type`,7,``),a=z(t,`variant`,7,``),o=E(void 0),s=E(void 0),c=E(void 0),l=E(void 0),u=E(0),d=E(ci([])),f=!1,p=`dmd${Math.random().toString(36).slice(2,10)}`,m=null,h=0,g=null,_=null,v=null;function y(){if(!M(o))return null;let e=M(o).getRootNode();return e instanceof ShadowRoot?e.host:M(o).parentElement}function b(){let e=y();return e?Array.from(e.children).filter(e=>{let t=e.tagName.toLowerCase();return t===`dmd-tab`||t===`dmd-item`}):[]}function x(){let e=b();if(e.length===0)return;if(D(d,e.map((e,t)=>({label:e.getAttribute(`label`)||``,value:e.getAttribute(`value`)||e.getAttribute(`label`)||String(t),icon:e.getAttribute(`icon`)||``})),!0),r()&&typeof localStorage<`u`)try{let e=localStorage.getItem(`dmd-tabs-${r()}`);if(e){let t=M(d).findIndex(t=>t.value===e||t.label===e);if(t!==-1){D(u,t,!0),S(),f=!0;return}}}catch{}let t=Number(n())||0;D(u,Math.max(0,Math.min(t,Math.max(0,M(d).length-1))),!0),S(),f=!0}function S(){g?.stop(),g=null,b().forEach((e,t)=>{if(t===M(u)){if(e.style.display=``,e.removeAttribute(`hidden`),f&&M(l)&&!ux()){let e=M(l),t=fx(e,{opacity:[0,1],transform:[`translate3d(0, 8px, 0)`,`translate3d(0, 0, 0)`]},{duration:.22,ease:[.16,1,.3,1]});g=t,t.then(()=>{g===t&&(g=null,e.style.removeProperty(`transform`),e.style.removeProperty(`opacity`))})}}else e.style.display=`none`,e.removeAttribute(`hidden`)}),ne()}function ee(){return M(s)?Array.from(M(s).querySelectorAll(`.dmd-tab-btn`)):[]}function te(){if(!M(s))return;let e=ee()[M(u)];if(!e||e.offsetWidth===0)return;let t=e.offsetLeft,n=e.offsetWidth,r=v;if((r?.x!==t||r.width!==n)&&(_?.stop(),v={x:t,width:n},M(s).style.setProperty(`--dmd-tab-ind-x`,`${t}px`),M(s).style.setProperty(`--dmd-tab-ind-w`,`${n}px`),r&&M(c)&&M(se)!==`postit`&&!ux())){let e=fx(M(c),{transform:[`translateX(${r.x-t}px) scaleX(${r.width/n})`,`translateX(0) scaleX(1)`]},{duration:.26,ease:[.16,1,.3,1]});_=e,e.then(()=>{_===e&&(_=null,M(c).style.removeProperty(`transform`))})}}function ne(){h||=requestAnimationFrame(()=>{h=0,te()})}function re(e,t=!1){if(e===M(u)||e<0||e>=M(d).length)return;D(u,e,!0),S(),te(),t&&ee()[e]?.focus();let n=ee()[e];if(n&&typeof n.scrollIntoView==`function`&&n.scrollIntoView({behavior:ux()?`auto`:`smooth`,block:`nearest`,inline:`nearest`}),r()){let t=M(d)[e];if(typeof localStorage<`u`)try{localStorage.setItem(`dmd-tabs-${r()}`,t.value||t.label)}catch{}window.dispatchEvent(new CustomEvent(`dmd-tabs-change`,{detail:{groupId:r(),value:t.value,label:t.label}}))}}function ie(e){let t=e;if(!t.detail||t.detail.groupId!==r())return;let n=M(d).findIndex(e=>e.value===t.detail.value||e.label===t.detail.label);n!==-1&&n!==M(u)&&(D(u,n,!0),S(),te())}function ae(e){let t=ee();t.length!==0&&(e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),re((M(u)+1)%t.length,!0)):e.key===`ArrowLeft`||e.key===`ArrowUp`?(e.preventDefault(),re((M(u)-1+t.length)%t.length,!0)):e.key===`Home`?(e.preventDefault(),re(0,!0)):e.key===`End`&&(e.preventDefault(),re(t.length-1,!0)))}function oe(){x()}let se=vr(()=>a()||(i()===`underline`||i()===`pills`||i()===`postit`?i():`recessed`)),ce=vr(()=>`dmd-tabs dmd-tabs-wrapper dmd-tabs-${M(se)}${r()?` dmd-tabs-grouped`:``}`);fu(()=>{kN(M(o)),window.addEventListener(`dmd-tabs-change`,ie),typeof ResizeObserver<`u`&&(m=new ResizeObserver(()=>ne()),M(s)&&m.observe(M(s))),Promise.resolve().then(async()=>{x(),await za(),te(),requestAnimationFrame(()=>te())})}),pu(()=>{g?.stop(),_?.stop(),typeof window<`u`&&window.removeEventListener(`dmd-tabs-change`,ie),m&&m.disconnect(),h&&cancelAnimationFrame(h)});var le={get defaultindex(){return n()},set defaultindex(e=0){n(e),T()},get groupid(){return r()},set groupid(e=``){r(e),T()},get type(){return i()},set type(e=``){i(e),T()},get variant(){return a()},set variant(e=``){a(e),T()}},ue=ZP(),de=O(ue),fe=O(de);Ol(fe,e=>D(c,e),()=>M(c)),Ss(A(fe,2),17,()=>M(d),vs,(e,t,n)=>{let r=vr(()=>n===M(u)),i=vr(()=>M(t).value||M(t).label||`Tab ${n+1}`),a=vr(()=>!!M(t).label);var o=XP(),s=O(o),c=e=>{var n=JP();Os(n,()=>M(t).icon,!0),w(n),F(e,n)};L(s,e=>{M(t).icon&&e(c)});var l=A(s,2),d=e=>{var n=YP(),r=k(n,!0);j(()=>I(r,M(t).label)),F(e,n)};L(l,e=>{M(a)&&e(d)}),w(o),j(()=>{R(o,`id`,`${p}-tab-${n}`),gc(o,1,`dmd-tab-btn${M(r)?` active`:``}${M(a)?``:` dmd-tab-btn-icon`}`),R(o,`aria-selected`,M(r)),R(o,`aria-controls`,`${p}-panel-${n}`),R(o,`aria-label`,M(a)?void 0:M(i)),R(o,`tabindex`,M(r)?0:-1)}),N(`click`,o,()=>re(n)),F(e,o)}),w(de),Ol(de,e=>D(s,e),()=>M(s));var pe=A(de,2);return ks(O(pe),t,`default`,{onslotchange:oe},null),w(pe),Ol(pe,e=>D(l,e),()=>M(l)),w(ue),Ol(ue,e=>D(o,e),()=>M(o)),j(()=>{gc(ue,1,uc(M(ce))),R(pe,`id`,`${p}-panel-${M(u)??``}`),R(pe,`aria-labelledby`,`${p}-tab-${M(u)??``}`)}),N(`keydown`,de,ae),F(e,ue),bn(le)}So([`keydown`,`click`]),customElements.define(`dmd-tabs`,ou(QP,{defaultindex:{},groupid:{},type:{},variant:{}},[`default`],[],{mode:`open`}));var $P=P(`<div class="dmd-timeline"><!></div>`);function eF(e,t){yn(t,!0);let n=E(void 0);fu(()=>{kN(M(n))});var r=$P();ks(O(r),t,`default`,{},null),w(r),Ol(r,e=>D(n,e),()=>M(n)),F(e,r),bn()}customElements.define(`dmd-timeline`,ou(eF,{},[`default`],[],{mode:`open`}));var tF=P(`<div class="dmd-timeline-subtitle"> </div>`),nF=P(`<div class="dmd-timeline-item"><div class="dmd-timeline-dot" aria-hidden="true"></div> <div class="dmd-timeline-content"><div class="dmd-timeline-title"> </div> <!> <div class="dmd-timeline-body"><!></div></div></div>`);function rF(e,t){yn(t,!0);let n=z(t,`title`,7,``),r=z(t,`subtitle`,7,``),i=E(void 0);fu(()=>{kN(M(i))});var a={get title(){return n()},set title(e=``){n(e),T()},get subtitle(){return r()},set subtitle(e=``){r(e),T()}},o=nF(),s=A(O(o),2),c=O(s),l=k(c,!0),u=A(c,2),d=e=>{var t=tF(),n=k(t,!0);j(()=>I(n,r())),F(e,t)};L(u,e=>{r()&&e(d)});var f=A(u,2);return ks(O(f),t,`default`,{},null),w(f),w(s),w(o),Ol(o,e=>D(i,e),()=>M(i)),j(()=>I(l,n())),F(e,o),bn(a)}customElements.define(`dmd-timeline-item`,ou(rF,{title:{},subtitle:{}},[`default`],[],{mode:`open`}));var iF={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,webp:`image/webp`,gif:`image/gif`,avif:`image/avif`,bmp:`image/bmp`,ico:`image/x-icon`,cur:`image/x-icon`,tif:`image/tiff`,tiff:`image/tiff`,apng:`image/apng`,svg:`image/svg+xml`,svgz:`image/svg+xml`,mp4:`video/mp4`,m4v:`video/mp4`,webm:`video/webm`,ogv:`video/ogg`,mov:`video/quicktime`,avi:`video/x-msvideo`,mkv:`video/x-matroska`,wmv:`video/x-ms-wmv`,flv:`video/x-flv`,mp3:`audio/mpeg`,wav:`audio/wav`,wave:`audio/wav`,ogg:`audio/ogg`,oga:`audio/ogg`,opus:`audio/opus`,aac:`audio/aac`,m4a:`audio/mp4`,flac:`audio/flac`,weba:`audio/webm`,wma:`audio/x-ms-wma`,mid:`audio/midi`,midi:`audio/midi`};function aF(e){if(!e)return``;let t=e.trim().split(`#`)[0].split(`?`)[0],n=t.lastIndexOf(`.`);return n===-1||n===t.length-1?``:t.slice(n+1).toLowerCase()}function oF(e,t){if(t?.trim()){let e=t.trim().toLowerCase();if(e.includes(`/`))return e;if(iF[e])return iF[e]}if(cF(e)){let t=lF(e);if(t)return t.mimeType}let n=aF(e);return n&&iF[n]?iF[n]:`application/octet-stream`}function sF(e,t){let n=(t||``).trim().toLowerCase();if(n===`vector`||n===`svg`||n.includes(`svg`))return`vector`;if(n===`image`||n.startsWith(`image/`))return n.includes(`svg`)?`vector`:`image`;if(n===`video`||n.startsWith(`video/`))return`video`;if(n===`audio`||n.startsWith(`audio/`))return`audio`;let r=oF(e,t);if(r===`image/svg+xml`)return`vector`;if(r.startsWith(`image/`))return`image`;if(r.startsWith(`video/`))return`video`;if(r.startsWith(`audio/`))return`audio`;let i=aF(e);return[`png`,`jpg`,`jpeg`,`webp`,`gif`,`avif`,`bmp`,`ico`,`tif`,`tiff`,`apng`].includes(i)?`image`:[`svg`,`svgz`].includes(i)?`vector`:[`mp4`,`m4v`,`webm`,`ogv`,`mov`,`avi`,`mkv`].includes(i)?`video`:[`mp3`,`wav`,`ogg`,`oga`,`opus`,`aac`,`m4a`,`flac`,`weba`].includes(i)?`audio`:`unknown`}function cF(e){return e?/^data:([a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+)?(?:;charset=[a-zA-Z0-9-]+)?(?:;base64)?,/i.test(e.trim()):!1}function lF(e){if(!e)return null;let t=/^data:([^;,]+)?(?:;charset=[^;,]+)?(;base64)?,(.*)$/is.exec(e.trim());return t?{mimeType:t[1]||`text/plain`,isBase64:!!t[2],data:t[3]}:null}var uF=Po(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>`),dF=Po(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle></svg>`),fF=Po(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>`),pF=P(`<div class="dmd-media-fallback" role="alert"><span class="dmd-media-fallback-icon" aria-hidden="true"><!></span> <div class="dmd-media-fallback-content"><span class="dmd-media-fallback-text"> </span> <!></div></div>`),mF=P(`<source/>`),hF=P(`<video class="dmd-media-video"><!> <!> <p> </p></video>`,2),gF=P(`<audio class="dmd-media-audio"><!> <!> <p> </p></audio>`),_F=P(`<div class="dmd-media-svg-host"></div>`),vF=P(`<img class="dmd-media-image" loading="lazy"/>`),yF=P(`<figcaption> </figcaption>`),bF=P(`<figure><div><!></div> <!></figure>`);function xF(e,t){yn(t,!0);let n=z(t,`src`,7,``),r=z(t,`type`,7,``),i=z(t,`format`,7,``),a=z(t,`fallback`,7,``),o=z(t,`fallbacktext`,7,``),s=z(t,`fallbackText`,7,``),c=z(t,`poster`,7,``),l=z(t,`alt`,7,``),u=z(t,`title`,7,``),d=z(t,`width`,7,``),f=z(t,`height`,7,``),p=z(t,`maxwidth`,7,``),m=z(t,`maxWidth`,7,``),h=z(t,`maxheight`,7,``),g=z(t,`maxHeight`,7,``),_=z(t,`aspectratio`,7,``),v=z(t,`aspectRatio`,7,``),y=z(t,`fit`,7,``),b=z(t,`objectfit`,7,``),x=z(t,`objectFit`,7,``),S=z(t,`align`,7,`center`),ee=z(t,`rounded`,7,``),te=z(t,`radius`,7,``),ne=z(t,`shadow`,7,``),re=z(t,`border`,7,``),ie=z(t,`caption`,7,``),ae=z(t,`captionalign`,7,`center`),oe=z(t,`captionAlign`,7,`center`),se=z(t,`controls`,7,!0),ce=z(t,`autoplay`,7,!1),le=z(t,`loop`,7,!1),ue=z(t,`muted`,7,!1),de=z(t,`playsinline`,7,!0),fe=z(t,`preload`,7,`metadata`),pe=z(t,`embed`,7,``),me=z(t,`zoomable`,7,!1),he=z(t,`class`,7,``),ge=z(t,`style`,7,``),_e=E(void 0),ve=E(!1),ye=E(!1),be=E(null),xe=E(!1);function Se(e){if(typeof window>`u`||!e)return;let t=e.trim(),n=t.replace(/^\.?\//,``),r=[t,n,`./${n}`,`/${n}`],i=window.__DOCMEDOWN_DATA__?.media;if(i&&typeof i==`object`){for(let e of r)if(i[e])return i[e]}let a=document.getElementById(`dmd-media-store`);if(a?.textContent)try{let e=JSON.parse(a.textContent);for(let t of r)if(e[t])return e[t]}catch{}}let Ce=vr(()=>s()||o()),we=vr(()=>m()||p()),Te=vr(()=>g()||h()),Ee=vr(()=>v()||_()),De=vr(()=>y()||x()||b()),Oe=vr(()=>oe()===`center`?ae():oe()),ke=vr(()=>r()||i()),Ae=vr(()=>n()?Se(n())||n():``),je=vr(()=>{if(c())return Se(c())||c()}),Me=vr(()=>{if(a())return Se(a())||a()}),Ne=E(``);Li(()=>{D(Ne,M(Ae),!0),D(ve,!1),D(ye,!1),D(be,null)});let Pe=vr(()=>M(Ne)?sF(M(Ne),M(ke)):`unknown`),Fe=vr(()=>M(Ne)?oF(M(Ne),M(ke)):``);Li(()=>{if(pe()!==`inline`&&pe()!==`svg`&&pe()!==!0||M(Pe)!==`vector`||!M(Ne)){D(be,null);return}if(M(Ne).trim().startsWith(`<svg`))D(be,M(Ne).trim(),!0);else if(cF(M(Ne))){let e=lF(M(Ne));if(e)try{e.isBase64?D(be,atob(e.data),!0):D(be,decodeURIComponent(e.data),!0)}catch{D(be,null)}}}),fu(()=>{kN(M(_e))});function Ie(e){if(e==null||e===``)return;let t=String(e).trim();if(t)return/^\d+(\.\d+)?$/.test(t)?`${t}px`:t}function Le(){!M(ye)&&M(Me)&&M(Me)!==M(Ne)?(D(ye,!0),D(Ne,M(Me),!0)):D(ve,!0)}function Re(){!me()||M(Pe)!==`image`||D(xe,!M(xe))}let ze=vr(()=>{let e=[],t=Ie(d()),n=Ie(f()),r=Ie(M(we)),i=Ie(M(Te));return t&&e.push(`width: ${t};`),n&&e.push(`height: ${n};`),r&&e.push(`max-width: ${r};`),i&&e.push(`max-height: ${i};`),M(Ee)&&e.push(`aspect-ratio: ${M(Ee)};`),M(De)&&e.push(`object-fit: ${M(De)};`),e.join(` `)}),Be=vr(()=>{let e=[],t=Ie(d()),n=Ie(M(we));t&&t!==`auto`&&e.push(`width: ${t};`),n&&e.push(`max-width: ${n};`);let r=ee()===``?te():ee();return r===!0||r===`md`?e.push(`border-radius: var(--dmd-radius-md, 8px);`):r===`sm`?e.push(`border-radius: var(--dmd-radius-sm, 4px);`):r===`lg`?e.push(`border-radius: var(--dmd-radius-lg, 12px);`):r===`full`?e.push(`border-radius: 9999px;`):r===`none`||r===!1?e.push(`border-radius: 0;`):typeof r==`string`&&r.trim()&&e.push(`border-radius: ${Ie(r)};`),ne()===!0||ne()===`md`?e.push(`box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);`):ne()===`sm`?e.push(`box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);`):ne()===`lg`?e.push(`box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.06);`):typeof ne()==`string`&&ne()!==`none`&&ne()!==`false`&&ne().trim()&&e.push(`box-shadow: ${ne()};`),re()===!0||re()===`true`?e.push(`border: 1px solid var(--dmd-border, #e2e8f0);`):typeof re()==`string`&&re()!==`none`&&re()!==`false`&&re().trim()&&e.push(`border: ${re().includes(` `)?re():`1px solid ${re()}`};`),ge()&&e.push(ge()),e.join(` `)}),Ve=vr(()=>{let e=[],t=Ie(M(we));return t&&e.push(`max-width: ${t};`),S()===`center`?e.push(`margin-left: auto; margin-right: auto; text-align: center;`):S()===`left`||S()===`start`?e.push(`margin-left: 0; margin-right: auto; text-align: left;`):(S()===`right`||S()===`end`)&&e.push(`margin-left: auto; margin-right: 0; text-align: right;`),e.join(` `)});var He={get src(){return n()},set src(e=``){n(e),T()},get type(){return r()},set type(e=``){r(e),T()},get format(){return i()},set format(e=``){i(e),T()},get fallback(){return a()},set fallback(e=``){a(e),T()},get fallbacktext(){return o()},set fallbacktext(e=``){o(e),T()},get fallbackText(){return s()},set fallbackText(e=``){s(e),T()},get poster(){return c()},set poster(e=``){c(e),T()},get alt(){return l()},set alt(e=``){l(e),T()},get title(){return u()},set title(e=``){u(e),T()},get width(){return d()},set width(e=``){d(e),T()},get height(){return f()},set height(e=``){f(e),T()},get maxwidth(){return p()},set maxwidth(e=``){p(e),T()},get maxWidth(){return m()},set maxWidth(e=``){m(e),T()},get maxheight(){return h()},set maxheight(e=``){h(e),T()},get maxHeight(){return g()},set maxHeight(e=``){g(e),T()},get aspectratio(){return _()},set aspectratio(e=``){_(e),T()},get aspectRatio(){return v()},set aspectRatio(e=``){v(e),T()},get fit(){return y()},set fit(e=``){y(e),T()},get objectfit(){return b()},set objectfit(e=``){b(e),T()},get objectFit(){return x()},set objectFit(e=``){x(e),T()},get align(){return S()},set align(e=`center`){S(e),T()},get rounded(){return ee()},set rounded(e=``){ee(e),T()},get radius(){return te()},set radius(e=``){te(e),T()},get shadow(){return ne()},set shadow(e=``){ne(e),T()},get border(){return re()},set border(e=``){re(e),T()},get caption(){return ie()},set caption(e=``){ie(e),T()},get captionalign(){return ae()},set captionalign(e=`center`){ae(e),T()},get captionAlign(){return oe()},set captionAlign(e=`center`){oe(e),T()},get controls(){return se()},set controls(e=!0){se(e),T()},get autoplay(){return ce()},set autoplay(e=!1){ce(e),T()},get loop(){return le()},set loop(e=!1){le(e),T()},get muted(){return ue()},set muted(e=!1){ue(e),T()},get playsinline(){return de()},set playsinline(e=!0){de(e),T()},get preload(){return fe()},set preload(e=`metadata`){fe(e),T()},get embed(){return pe()},set embed(e=``){pe(e),T()},get zoomable(){return me()},set zoomable(e=!1){me(e),T()},get class(){return he()},set class(e=``){he(e),T()},get style(){return ge()},set style(e=``){ge(e),T()}},Ue=bF(),We=O(Ue),Ge=O(We),Ke=e=>{var n=pF(),r=O(n),i=O(r),o=e=>{F(e,uF())},s=e=>{F(e,dF())},c=e=>{F(e,fF())};L(i,e=>{M(Pe)===`video`?e(o):M(Pe)===`audio`?e(s,1):e(c,-1)}),w(r);var u=A(r,2),d=O(u),f=k(d,!0);ks(A(d,2),t,`default`,{},null),w(u),w(n),j(()=>I(f,M(Ce)||(typeof a()==`string`&&!M(Me)?a():``)||(l()?`Media unavailable: ${l()}`:`Media unavailable`))),F(e,n)},qe=e=>{var t=hF(),n=O(t),r=e=>{var t=mF();j(()=>{R(t,`src`,M(Ne)),R(t,`type`,M(Fe))}),F(e,t)};L(n,e=>{M(Fe)&&e(r)});var i=A(n,2),a=e=>{var t=mF();j(()=>R(t,`src`,M(Me))),F(e,t)};L(i,e=>{M(Me)&&!M(ye)&&e(a)});var o=k(A(i,2),!0);w(t),j(()=>{R(t,`src`,M(Ne)),R(t,`poster`,M(je)),t.controls=se(),t.autoplay=ce(),t.loop=le(),t.muted=ue(),t.playsInline=de(),R(t,`preload`,fe()),vc(t,M(ze)),I(o,M(Ce)||l()||`Your browser does not support HTML5 video.`)}),xo(`error`,t,Le),F(e,t)},Je=e=>{var t=gF(),n=O(t),r=e=>{var t=mF();j(()=>{R(t,`src`,M(Ne)),R(t,`type`,M(Fe))}),F(e,t)};L(n,e=>{M(Fe)&&e(r)});var i=A(n,2),a=e=>{var t=mF();j(()=>R(t,`src`,M(Me))),F(e,t)};L(i,e=>{M(Me)&&!M(ye)&&e(a)});var o=k(A(i,2),!0);w(t),j(()=>{R(t,`src`,M(Ne)),t.controls=se(),t.autoplay=ce(),t.loop=le(),t.muted=ue(),R(t,`preload`,fe()),vc(t,M(ze)),I(o,M(Ce)||l()||`Your browser does not support HTML5 audio.`)}),xo(`error`,t,Le),F(e,t)},Ye=e=>{var t=_F();Os(t,()=>M(be),!0),w(t),j(()=>vc(t,M(ze))),F(e,t)},Xe=e=>{var t=vF();j(()=>{R(t,`src`,M(Ne)),R(t,`alt`,l()),R(t,`title`,u()),vc(t,M(ze))}),xo(`error`,t,Le),yo(t),F(e,t)};L(Ge,e=>{M(ve)?e(Ke):M(Pe)===`video`?e(qe,1):M(Pe)===`audio`?e(Je,2):M(Pe)===`vector`&&M(be)?e(Ye,3):e(Xe,-1)}),w(We);var Ze=A(We,2),Qe=e=>{var t=yF(),n=k(t,!0);j(()=>{gc(t,1,`dmd-media-caption dmd-media-caption-${M(Oe)??``}`),I(n,ie())}),F(e,t)};return L(Ze,e=>{ie()&&e(Qe)}),w(Ue),Ol(Ue,e=>D(_e,e),()=>M(_e)),j(()=>{gc(Ue,1,`dmd-media dmd-media-${M(Pe)??``} dmd-media-align-${S()??``} ${he()??``}`),vc(Ue,M(Ve)),gc(We,1,`dmd-media-wrapper${me()?` dmd-media-zoomable`:``}${M(xe)?` dmd-media-zoomed`:``}`),vc(We,M(Be)),R(We,`role`,me()?`button`:void 0),R(We,`tabindex`,me()?0:void 0)}),N(`click`,We,Re),N(`keydown`,We,e=>{me()&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Re())}),F(e,Ue),bn(He)}So([`click`,`keydown`]),customElements.define(`dmd-media`,ou(xF,{src:{},type:{},format:{},fallback:{},fallbacktext:{},fallbackText:{},poster:{},alt:{},title:{},width:{},height:{},maxwidth:{},maxWidth:{},maxheight:{},maxHeight:{},aspectratio:{},aspectRatio:{},fit:{},objectfit:{},objectFit:{},align:{},rounded:{},radius:{},shadow:{},border:{},caption:{},captionalign:{},captionAlign:{},controls:{},autoplay:{},loop:{},muted:{},playsinline:{},preload:{},embed:{},zoomable:{},class:{},style:{}},[`default`],[],{mode:`open`})),LC(),typeof window<`u`&&(window.__DOCMEDOWN_SVELTE__={...uu,client:cu,internal:{client:cu}},window.__DOCMEDOWN_MOTION__=cx),typeof globalThis<`u`&&!globalThis.__DOCMEDOWN_SVELTE__&&(globalThis.__DOCMEDOWN_SVELTE__={...uu,client:cu,internal:{client:cu}},globalThis.__DOCMEDOWN_MOTION__=cx);for(let e of[`Tabs`,`Tab`,`Card`,`CardGrid`,`Badge`,`Steps`,`Step`,`Alert`,`Callout`,`Button`,`Kbd`,`Details`,`Accordion`,`AccordionItem`,`Columns`,`Column`,`Timeline`,`TimelineItem`,`Item`,`Media`])iw.getInstance().register(e,TC(e));var SF=new WeakMap;async function CF(e={}){sf(e.basePath||``),OC(e.basePath||``);let t=null;if(typeof e.el==`string`?t=document.querySelector(e.el):e.el instanceof HTMLElement?t=e.el:(t=document.getElementById(`dmd-app`),t||(t=document.createElement(`div`),t.id=`dmd-app`,document.body.appendChild(t))),!t)return console.error(`[DocMeDown] Could not find or create mount container element`),null;let n=CN({...await TN(e.basePath||``),...e.config});qw.init({defaultMode:n.theme?.defaultMode,defaultFamily:n.theme?.family,defaultDensity:n.theme?.density,accentColor:n.theme?.accentColor,accentColorDark:n.theme?.accentColorDark}),await iw.getInstance().loadDmdDirectory(e.basePath||``),await Q.init(n,e.basePath||``),SF.get(t)?.destroy(),t.innerHTML=``;let r=Xo(lE,{target:t}),i={element:t,destroy:()=>{ts(r),Q.destroy(),t?.dispatchEvent(new CustomEvent(`docmedown:destroyed`))}};return SF.set(t,i),t.dispatchEvent(new CustomEvent(`docmedown:ready`,{detail:i})),i}if(typeof window<`u`&&(window.DocMeDown={init:CF,theme:qw,motion:cx,registerComponent:(e,t,n)=>aw(e,t,n),registerComponents:e=>iw.getInstance().registerMultiple(e),registerLanguage:rp},!window.__DOCMEDOWN_NO_AUTO_INIT__&&!document.querySelector(`script[data-docmedown-auto-init="false"]`))){let e=wx()?.base??``,t=()=>void CF({basePath:e});document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,t,{once:!0}):t()}e.ComponentRegistry=iw,e.StaticRouter=Mx,e.animate=fx,e.collapse=_x,e.createElementBridge=xC,e.createOfflineDownload=uC,e.createReactBridge=bC,e.createRouter=Dx,e.defineDmd=aw,e.defineReactDmd=ow,e.defineWebComponentDmd=sw,e.detectComponentKind=CC,e.dmdTag=TC,e.doc=Q,e.docConfigSchema=_N,e.docSearchConfigSchema=hN,e.docThemeConfigSchema=mN,e.downloadOfflineCopy=dC,e.expand=gx,e.fade=yx,e.formatConfigIssues=yN,e.getMotionOptions=dx,e.getStaticRuntimeContext=wx,e.initDocMeDown=CF,e.isOfflineDocumentation=tC,e.isStaticRuntime=Ex,e.joinStaticBase=Ox,e.loadDocConfig=TN,e.motion=vx,Object.defineProperty(e,"motionLib",{enumerable:!0,get:function(){return cx}}),e.navLinkSchema=uN,e.normalizeConfig=CN,e.normalizedDocConfigSchema=vN,e.parseDocConfig=bN,e.prefersReducedMotion=ux,e.registerWebComponent=SC,e.remoteSourceSchema=fN,e.sanitizeDownloadName=eC,e.scale=xx,e.sidebarItemSchema=pN,e.slide=bx,e.smoothScroll=mx,e.socialLinkSchema=dN,e.stagger=Cx,e.theme=qw,e.useMotion=Sx})(this.DocMeDown=this.DocMeDown||{});
|