From 626b8cab722b62871dc58aded8fc0abb07b8a5b3 Mon Sep 17 00:00:00 2001 From: Eyssette Date: Sun, 28 Jul 2024 02:21:00 +0200 Subject: [PATCH] Updates --- _app/immutable/chunks/singletons.0a5feed3.js | 1 + _app/immutable/chunks/singletons.9f6d8ab9.js | 1 - .../{app.40f2026f.js => app.737cd0f7.js} | 2 +- .../{start.bae9de1d.js => start.2ce3f55f.js} | 2 +- .../nodes/{1.917bca37.js => 1.52cd5ae9.js} | 2 +- .../nodes/{2.fb9ff5e8.js => 2.7b25c784.js} | 54 +++++++++---------- _app/version.json | 2 +- index.html | 16 +++--- 8 files changed, 40 insertions(+), 40 deletions(-) create mode 100644 _app/immutable/chunks/singletons.0a5feed3.js delete mode 100644 _app/immutable/chunks/singletons.9f6d8ab9.js rename _app/immutable/entry/{app.40f2026f.js => app.737cd0f7.js} (96%) rename _app/immutable/entry/{start.bae9de1d.js => start.2ce3f55f.js} (99%) rename _app/immutable/nodes/{1.917bca37.js => 1.52cd5ae9.js} (86%) rename _app/immutable/nodes/{2.fb9ff5e8.js => 2.7b25c784.js} (94%) diff --git a/_app/immutable/chunks/singletons.0a5feed3.js b/_app/immutable/chunks/singletons.0a5feed3.js new file mode 100644 index 0000000..2af5aaf --- /dev/null +++ b/_app/immutable/chunks/singletons.0a5feed3.js @@ -0,0 +1 @@ +import{w as u}from"./index.cf520272.js";var _;const k=((_=globalThis.__sveltekit_xlxptf)==null?void 0:_.base)??"";var g;const m=((g=globalThis.__sveltekit_xlxptf)==null?void 0:g.assets)??k,w="1722126054545",R="sveltekit:snapshot",T="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},h=location.origin;function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function b(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function O(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=b(e)}}function U(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,l=!n||!!o||E(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),r=(n==null?void 0:n.origin)===h&&e.hasAttribute("download");return{url:n,external:l,target:o,download:r}}function L(e){let t=null,n=null,o=null,l=null,r=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),l===null&&(l=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),r===null&&(r=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=b(s);function i(v){switch(v){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[l??"off"],keep_focus:i(t),noscroll:i(n),reload:i(r),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function l(a){n=!1,t.set(a)}function r(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:l,subscribe:r}}function x(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const l=await fetch(`${m}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!l.ok)return!1;const a=(await l.json()).version!==w;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function E(e,t){return e.origin!==h||!e.pathname.startsWith(t)}function N(e){e.client}const P={url:p({}),page:p({}),navigating:u(null),updated:x()};export{y as I,f as P,T as S,R as a,U as b,L as c,P as d,k as e,O as f,I as g,N as h,E as i,h as o,S as s}; diff --git a/_app/immutable/chunks/singletons.9f6d8ab9.js b/_app/immutable/chunks/singletons.9f6d8ab9.js deleted file mode 100644 index a1c8a4c..0000000 --- a/_app/immutable/chunks/singletons.9f6d8ab9.js +++ /dev/null @@ -1 +0,0 @@ -import{w as u}from"./index.cf520272.js";var _;const k=((_=globalThis.__sveltekit_ft9muz)==null?void 0:_.base)??"";var g;const m=((g=globalThis.__sveltekit_ft9muz)==null?void 0:g.assets)??k,w="1721766287881",T="sveltekit:snapshot",y="sveltekit:scroll",I="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},h=location.origin;function S(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function x(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function b(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function O(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=b(e)}}function U(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||A(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===h&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function L(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=b(s);function i(v){switch(v){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function E(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${m}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==w;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function A(e,t){return e.origin!==h||!e.pathname.startsWith(t)}function N(e){e.client}const P={url:p({}),page:p({}),navigating:u(null),updated:E()};export{I,f as P,y as S,T as a,U as b,L as c,P as d,k as e,O as f,S as g,N as h,A as i,h as o,x as s}; diff --git a/_app/immutable/entry/app.40f2026f.js b/_app/immutable/entry/app.737cd0f7.js similarity index 96% rename from _app/immutable/entry/app.40f2026f.js rename to _app/immutable/entry/app.737cd0f7.js index 98daeb6..e2689c5 100644 --- a/_app/immutable/entry/app.40f2026f.js +++ b/_app/immutable/entry/app.737cd0f7.js @@ -1 +1 @@ -import{_ as I}from"../chunks/preload-helper.a4192956.js";import{S,i as j,s as z,a as B,e as p,c as C,b as w,d as h,f as A,g as d,h as g,j as M,o as U,k as F,l as G,m as H,n as P,p as m,q as J,r as K,u as Q,v as D,t as W,w as R,x as k,y as v,z as V,A as E,B as N}from"../chunks/index.84111acf.js";const ne={};function X(r){let e,n,i;var s=r[1][0];function _(t){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,_(r)),r[12](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,o){e&&E(e,t,o),w(t,n,o),i=!0},p(t,o){const c={};if(o&8&&(c.data=t[3]),o&4&&(c.form=t[2]),o&2&&s!==(s=t[1][0])){if(e){D();const f=e;h(f.$$.fragment,1,0,()=>{N(f,1)}),A()}s?(e=k(s,_(t)),t[12](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(c)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){r[12](null),t&&g(n),e&&N(e,t)}}}function Y(r){let e,n,i;var s=r[1][0];function _(t){return{props:{data:t[3],$$slots:{default:[Z]},$$scope:{ctx:t}}}}return s&&(e=k(s,_(r)),r[11](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,o){e&&E(e,t,o),w(t,n,o),i=!0},p(t,o){const c={};if(o&8&&(c.data=t[3]),o&8215&&(c.$$scope={dirty:o,ctx:t}),o&2&&s!==(s=t[1][0])){if(e){D();const f=e;h(f.$$.fragment,1,0,()=>{N(f,1)}),A()}s?(e=k(s,_(t)),t[11](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(c)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){r[11](null),t&&g(n),e&&N(e,t)}}}function Z(r){let e,n,i;var s=r[1][1];function _(t){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,_(r)),r[10](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,o){e&&E(e,t,o),w(t,n,o),i=!0},p(t,o){const c={};if(o&16&&(c.data=t[4]),o&4&&(c.form=t[2]),o&2&&s!==(s=t[1][1])){if(e){D();const f=e;h(f.$$.fragment,1,0,()=>{N(f,1)}),A()}s?(e=k(s,_(t)),t[10](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(c)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){r[10](null),t&&g(n),e&&N(e,t)}}}function y(r){let e,n=r[6]&&L(r);return{c(){e=F("div"),n&&n.c(),this.h()},l(i){e=G(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=H(e);n&&n.l(s),s.forEach(g),this.h()},h(){P(e,"id","svelte-announcer"),P(e,"aria-live","assertive"),P(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=L(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function L(r){let e;return{c(){e=J(r[7])},l(n){e=K(n,r[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&Q(e,n[7])},d(n){n&&g(e)}}}function $(r){let e,n,i,s,_;const t=[Y,X],o=[];function c(a,u){return a[1][1]?0:1}e=c(r),n=o[e]=t[e](r);let f=r[5]&&y(r);return{c(){n.c(),i=B(),f&&f.c(),s=p()},l(a){n.l(a),i=C(a),f&&f.l(a),s=p()},m(a,u){o[e].m(a,u),w(a,i,u),f&&f.m(a,u),w(a,s,u),_=!0},p(a,[u]){let b=e;e=c(a),e===b?o[e].p(a,u):(D(),h(o[b],1,1,()=>{o[b]=null}),A(),n=o[e],n?n.p(a,u):(n=o[e]=t[e](a),n.c()),d(n,1),n.m(i.parentNode,i)),a[5]?f?f.p(a,u):(f=y(a),f.c(),f.m(s.parentNode,s)):f&&(f.d(1),f=null)},i(a){_||(d(n),_=!0)},o(a){h(n),_=!1},d(a){o[e].d(a),a&&g(i),f&&f.d(a),a&&g(s)}}}function x(r,e,n){let{stores:i}=e,{page:s}=e,{constructors:_}=e,{components:t=[]}=e,{form:o}=e,{data_0:c=null}=e,{data_1:f=null}=e;M(i.page.notify);let a=!1,u=!1,b=null;U(()=>{const l=i.page.subscribe(()=>{a&&(n(6,u=!0),W().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,a=!0),l});function O(l){R[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function T(l){R[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}function q(l){R[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}return r.$$set=l=>{"stores"in l&&n(8,i=l.stores),"page"in l&&n(9,s=l.page),"constructors"in l&&n(1,_=l.constructors),"components"in l&&n(0,t=l.components),"form"in l&&n(2,o=l.form),"data_0"in l&&n(3,c=l.data_0),"data_1"in l&&n(4,f=l.data_1)},r.$$.update=()=>{r.$$.dirty&768&&i.page.set(s)},[t,_,o,c,f,a,u,b,i,s,O,T,q]}class ie extends S{constructor(e){super(),j(this,e,x,$,z,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const se=[()=>I(()=>import("../nodes/0.c5f46d57.js"),["../nodes/0.c5f46d57.js","../chunks/index.84111acf.js"],import.meta.url),()=>I(()=>import("../nodes/1.917bca37.js"),["../nodes/1.917bca37.js","../chunks/index.84111acf.js","../chunks/singletons.9f6d8ab9.js","../chunks/index.cf520272.js"],import.meta.url),()=>I(()=>import("../nodes/2.fb9ff5e8.js"),["../nodes/2.fb9ff5e8.js","../chunks/index.84111acf.js","../chunks/index.cf520272.js","../chunks/preload-helper.a4192956.js","../assets/2.674e04a4.css"],import.meta.url)],oe=[],re={"/":[2]},ae={handleError:({error:r})=>{console.error(r)}};export{re as dictionary,ae as hooks,ne as matchers,se as nodes,ie as root,oe as server_loads}; +import{_ as I}from"../chunks/preload-helper.a4192956.js";import{S,i as j,s as z,a as B,e as p,c as C,b as w,d as h,f as A,g as d,h as g,j as M,o as U,k as F,l as G,m as H,n as P,p as m,q as J,r as K,u as Q,v as D,t as W,w as R,x as k,y as v,z as V,A as E,B as N}from"../chunks/index.84111acf.js";const ne={};function X(r){let e,n,i;var s=r[1][0];function _(t){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,_(r)),r[12](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,o){e&&E(e,t,o),w(t,n,o),i=!0},p(t,o){const c={};if(o&8&&(c.data=t[3]),o&4&&(c.form=t[2]),o&2&&s!==(s=t[1][0])){if(e){D();const f=e;h(f.$$.fragment,1,0,()=>{N(f,1)}),A()}s?(e=k(s,_(t)),t[12](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(c)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){r[12](null),t&&g(n),e&&N(e,t)}}}function Y(r){let e,n,i;var s=r[1][0];function _(t){return{props:{data:t[3],$$slots:{default:[Z]},$$scope:{ctx:t}}}}return s&&(e=k(s,_(r)),r[11](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,o){e&&E(e,t,o),w(t,n,o),i=!0},p(t,o){const c={};if(o&8&&(c.data=t[3]),o&8215&&(c.$$scope={dirty:o,ctx:t}),o&2&&s!==(s=t[1][0])){if(e){D();const f=e;h(f.$$.fragment,1,0,()=>{N(f,1)}),A()}s?(e=k(s,_(t)),t[11](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(c)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){r[11](null),t&&g(n),e&&N(e,t)}}}function Z(r){let e,n,i;var s=r[1][1];function _(t){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,_(r)),r[10](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,o){e&&E(e,t,o),w(t,n,o),i=!0},p(t,o){const c={};if(o&16&&(c.data=t[4]),o&4&&(c.form=t[2]),o&2&&s!==(s=t[1][1])){if(e){D();const f=e;h(f.$$.fragment,1,0,()=>{N(f,1)}),A()}s?(e=k(s,_(t)),t[10](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(c)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){r[10](null),t&&g(n),e&&N(e,t)}}}function y(r){let e,n=r[6]&&L(r);return{c(){e=F("div"),n&&n.c(),this.h()},l(i){e=G(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=H(e);n&&n.l(s),s.forEach(g),this.h()},h(){P(e,"id","svelte-announcer"),P(e,"aria-live","assertive"),P(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=L(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function L(r){let e;return{c(){e=J(r[7])},l(n){e=K(n,r[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&Q(e,n[7])},d(n){n&&g(e)}}}function $(r){let e,n,i,s,_;const t=[Y,X],o=[];function c(a,u){return a[1][1]?0:1}e=c(r),n=o[e]=t[e](r);let f=r[5]&&y(r);return{c(){n.c(),i=B(),f&&f.c(),s=p()},l(a){n.l(a),i=C(a),f&&f.l(a),s=p()},m(a,u){o[e].m(a,u),w(a,i,u),f&&f.m(a,u),w(a,s,u),_=!0},p(a,[u]){let b=e;e=c(a),e===b?o[e].p(a,u):(D(),h(o[b],1,1,()=>{o[b]=null}),A(),n=o[e],n?n.p(a,u):(n=o[e]=t[e](a),n.c()),d(n,1),n.m(i.parentNode,i)),a[5]?f?f.p(a,u):(f=y(a),f.c(),f.m(s.parentNode,s)):f&&(f.d(1),f=null)},i(a){_||(d(n),_=!0)},o(a){h(n),_=!1},d(a){o[e].d(a),a&&g(i),f&&f.d(a),a&&g(s)}}}function x(r,e,n){let{stores:i}=e,{page:s}=e,{constructors:_}=e,{components:t=[]}=e,{form:o}=e,{data_0:c=null}=e,{data_1:f=null}=e;M(i.page.notify);let a=!1,u=!1,b=null;U(()=>{const l=i.page.subscribe(()=>{a&&(n(6,u=!0),W().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,a=!0),l});function O(l){R[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function T(l){R[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}function q(l){R[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}return r.$$set=l=>{"stores"in l&&n(8,i=l.stores),"page"in l&&n(9,s=l.page),"constructors"in l&&n(1,_=l.constructors),"components"in l&&n(0,t=l.components),"form"in l&&n(2,o=l.form),"data_0"in l&&n(3,c=l.data_0),"data_1"in l&&n(4,f=l.data_1)},r.$$.update=()=>{r.$$.dirty&768&&i.page.set(s)},[t,_,o,c,f,a,u,b,i,s,O,T,q]}class ie extends S{constructor(e){super(),j(this,e,x,$,z,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const se=[()=>I(()=>import("../nodes/0.c5f46d57.js"),["../nodes/0.c5f46d57.js","../chunks/index.84111acf.js"],import.meta.url),()=>I(()=>import("../nodes/1.52cd5ae9.js"),["../nodes/1.52cd5ae9.js","../chunks/index.84111acf.js","../chunks/singletons.0a5feed3.js","../chunks/index.cf520272.js"],import.meta.url),()=>I(()=>import("../nodes/2.7b25c784.js"),["../nodes/2.7b25c784.js","../chunks/index.84111acf.js","../chunks/index.cf520272.js","../chunks/preload-helper.a4192956.js","../assets/2.674e04a4.css"],import.meta.url)],oe=[],re={"/":[2]},ae={handleError:({error:r})=>{console.error(r)}};export{re as dictionary,ae as hooks,ne as matchers,se as nodes,ie as root,oe as server_loads}; diff --git a/_app/immutable/entry/start.bae9de1d.js b/_app/immutable/entry/start.2ce3f55f.js similarity index 99% rename from _app/immutable/entry/start.bae9de1d.js rename to _app/immutable/entry/start.2ce3f55f.js index 495176f..6ff2b37 100644 --- a/_app/immutable/entry/start.bae9de1d.js +++ b/_app/immutable/entry/start.2ce3f55f.js @@ -1,3 +1,3 @@ -import{o as me,t as we}from"../chunks/index.84111acf.js";import{S as Ge,a as Je,I as M,g as Ce,f as De,b as ye,c as le,s as te,i as _e,d as B,e as q,o as Fe,P as Me,h as Ze}from"../chunks/singletons.9f6d8ab9.js";function Qe(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function et(t){return t.split("%25").map(decodeURI).join("%25")}function tt(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const nt=["href","pathname","search","searchParams","toString","toJSON"];function at(t,r){const f=new URL(t);for(const i of nt)Object.defineProperty(f,i,{get(){return r(),t[i]},enumerable:!0,configurable:!0});return rt(f),f}function rt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const ot="/__data.json";function it(t){return t.replace(/\/$/,"")+ot}function st(...t){let r=5381;for(const f of t)if(typeof f=="string"){let i=f.length;for(;i;)r=r*33^f.charCodeAt(--i)}else if(ArrayBuffer.isView(f)){const i=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);let h=i.length;for(;h;)r=r*33^i[--h]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const Ke=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Ke(t,r));const ae=new Map;function ct(t){const r=atob(t),f=new Uint8Array(r.length);for(let i=0;i0){const i=Se(t,f),h=ae.get(i);if(h){if(performance.now(){const h=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(i);if(h)return r.push({name:h[1],matcher:h[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(i);if(u)return r.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!i)return;const E=i.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const d=ut.exec(g);if(!d)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,N,T,R,D]=d;return r.push({name:R,matcher:D,optional:!!N,rest:!!T,chained:T?m===1&&E[0]==="":!1}),T?"(.*?)":N?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function ht(t){return!/^\([^)]+\)$/.test(t)}function pt(t){return t.slice(1).split("/").filter(ht)}function gt(t,r,f){const i={},h=t.slice(1),u=h.filter(l=>l!==void 0);let E=0;for(let l=0;ld).join("/"),E=0),m===void 0){g.rest&&(i[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){i[g.name]=m;const d=r[l+1],N=h[l+1];d&&!d.rest&&d.optional&&N&&g.chained&&(E=0),!d&&!N&&Object.keys(i).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return i}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function mt({nodes:t,server_loads:r,dictionary:f,matchers:i}){const h=new Set(r);return Object.entries(f).map(([l,[g,m,d]])=>{const{pattern:N,params:T}=dt(l),R={id:l,exec:D=>{const U=N.exec(D);if(U)return gt(U,T,i)},errors:[1,...d||[]].map(D=>t[D]),layouts:[0,...m||[]].map(E),leaf:u(g)};return R.errors.length=R.layouts.length=Math.max(R.errors.length,R.layouts.length),R});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[h.has(l),t[l]]}}function ze(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Ve(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const wt=-1,yt=-2,_t=-3,vt=-4,bt=-5,Et=-6;function St(t,r){if(typeof t=="number")return h(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const f=t,i=Array(f.length);function h(u,E=!1){if(u===wt)return;if(u===_t)return NaN;if(u===vt)return 1/0;if(u===bt)return-1/0;if(u===Et)return-0;if(E)throw new Error("Invalid input");if(u in i)return i[u];const l=f[u];if(!l||typeof l!="object")i[u]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=r==null?void 0:r[g];if(m)return i[u]=m(h(l[1]));switch(g){case"Date":i[u]=new Date(l[1]);break;case"Set":const d=new Set;i[u]=d;for(let R=1;Rr!=null)}const We=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...We];const Rt=new Set([...We]);[...Rt];async function At(t,r){var f;for(const i in t)if(typeof((f=t[i])==null?void 0:f.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([h,u])=>[h,await u])));return t}class ne{constructor(r,f){this.status=r,typeof f=="string"?this.body={message:f}:f?this.body=f:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class qe{constructor(r,f){this.status=r,this.location=f}}class It extends Error{constructor(r){super(),this.status=404,this.message=`Not found: ${r}`}}const Lt="x-sveltekit-invalidated",Pt="x-sveltekit-trailing-slash",J=ze(Ge)??{},ee=ze(Je)??{};function be(t){J[t]=te()}function K(t){return location.href=t.href,new Promise(()=>{})}function Ot(t,r){var je;const f=mt(t),i=t.nodes[0],h=t.nodes[1];i(),h();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let d={branch:[],error:null,url:null},N=!1,T=!1,R=!0,D=!1,U=!1,C=!1,z=!1,V,x=(je=history.state)==null?void 0:je[M];x||(x=Date.now(),history.replaceState({...history.state,[M]:x},"",location.href));const fe=J[x];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let H,W,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),s=Z(e,!0);g=null;const n=W={},o=s&&await he(s);if(n===W&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(H=o.props.page),V.$set(o.props)}}function Re(e){l.some(s=>s==null?void 0:s.snapshot)&&(ee[e]=l.map(s=>{var n;return(n=s==null?void 0:s.snapshot)==null?void 0:n.capture()}))}function Ae(e){var s;(s=ee[e])==null||s.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(x),Ve(Ge,J),Re(x),Ve(Je,ee)}async function re(e,{noScroll:s=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,_){return typeof e=="string"&&(e=new URL(e,Ce(document))),ce({url:e,scroll:s?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:_,accepted:()=>{c&&(z=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:he(e).then(s=>(s.type==="loaded"&&s.state.error&&(g=null),s))},g.promise}async function oe(...e){const n=f.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Pe(e){var o;d=e.state;const s=document.querySelector("style[data-sveltekit]");s&&s.remove(),H=e.props.page,V=new t.root({target:r,props:{...e.props,stores:B,components:l},hydrate:!0}),Ae(x);const n={from:null,to:{params:d.params,route:{id:((o=d.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),T=!0}async function X({url:e,params:s,branch:n,status:o,error:a,route:c,form:p}){let _="never";for(const y of n)(y==null?void 0:y.slash)!==void 0&&(_=y.slash);e.pathname=Qe(e.pathname,_),e.search=e.search;const b={type:"loaded",state:{url:e,params:s,branch:n,error:a,route:c},props:{constructors:kt(n).map(y=>y.node.component)}};p!==void 0&&(b.props.form=p);let v={},L=!H,A=0;for(let y=0;y(_.route=!0,w[O])}),params:new Proxy(o,{get:(w,O)=>(_.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:at(n,()=>{_.url=!0}),async fetch(w,O){let j;w instanceof Request?(j=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):j=w;const F=new URL(j,n);return P(F.href),F.origin===n.origin&&(j=F.href.slice(n.origin.length)),T?ft(j,F.href,O):lt(j,O)},setHeaders:()=>{},depends:P,parent(){return _.parent=!0,s()}};p=await b.universal.load.call(null,y)??null,p=p?await At(p,a.id):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:_}:null,data:p??(c==null?void 0:c.data)??null,slash:n.pathname===q||n.pathname===q+"/"?"always":((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,s,n,o,a){if(z)return!0;if(!o)return!1;if(o.parent&&e||o.route&&s||o.url&&n)return!0;for(const c of o.params)if(a[c]!==d.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,s){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?s??null:null}async function he({id:e,invalidating:s,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:_}=a,b=[...p,_];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let v=null;const L=d.url?e!==d.url.pathname+d.url.search:!1,A=d.route?a.id!==d.route.id:!1;let P=!1;const y=b.map((S,I)=>{var G;const k=d.branch[I],$=!!(S!=null&&S[0])&&((k==null?void 0:k.loader)!==S[1]||Oe(P,A,L,(G=k.server)==null?void 0:G.uses,o));return $&&(P=!0),$});if(y.some(Boolean)){try{v=await He(n,y)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(v.type==="redirect")return v}const w=v==null?void 0:v.nodes;let O=!1;const j=b.map(async(S,I)=>{var pe;if(!S)return;const k=d.branch[I],$=w==null?void 0:w[I];if((!$||$.type==="skip")&&S[1]===(k==null?void 0:k.loader)&&!Oe(O,A,L,(pe=k.universal)==null?void 0:pe.uses,o))return k;if(O=!0,($==null?void 0:$.type)==="error")throw $;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const F=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await h(),loader:h,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[_,b],status:e,error:s,route:null})}function Z(e,s){if(_e(e,q))return;const n=se(e);for(const o of f){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:s,route:o,params:tt(a),url:e}}}function se(e){return et(e.pathname.slice(q.length)||"/")}function Ue({url:e,type:s,intent:n,delta:o}){let a=!1;const c=Be(d,n,e,s);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(_=>_(p)),a?null:c}async function ce({url:e,scroll:s,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:_={},accepted:b,blocked:v}){var j,F,S;const L=Z(e,!1),A=Ue({url:e,type:c,delta:p,intent:L});if(!A){v();return}const P=x;b(),U=!0,T&&B.navigating.set(A.navigation),W=_;let y=L&&await he(L);if(!y){if(_e(e,q))return await K(e);y=await Ne(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,W!==_)return A.reject(new Error("navigation was aborted")),!1;if(y.type==="redirect")if(o>=20)y=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(y.location,e).href,{},o+1,_),!1;else((j=y.props.page)==null?void 0:j.status)>=400&&await B.updated.check()&&await K(e);if(E.length=0,z=!1,D=!0,be(P),Re(P),(F=y.props.page)!=null&&F.url&&y.props.page.url.pathname!==e.pathname&&(e.pathname=(S=y.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=x+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let k=x+1;for(;ee[k]||J[k];)delete ee[k],delete J[k],k+=1}}if(g=null,T){d=y.state,y.props.page&&(y.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(k=>k(A.navigation)))).filter(k=>typeof k=="function");if(I.length>0){let k=function(){m.after_navigate=m.after_navigate.filter($=>!I.includes($))};I.push(k),m.after_navigate.push(...I)}V.$set(y.props)}else Pe(y);const{activeElement:w}=document;if(await we(),R){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));s?scrollTo(s.x,s.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!n&&!O&&Ee(),R=!0,y.props.page&&(H=y.props.page),U=!1,c==="popstate"&&Ae(x),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),B.navigating.set(null),D=!1}async function Ne(e,s,n,o){return e.origin===Fe&&e.pathname===location.pathname&&!N?await ie({status:o,error:n,url:e,route:s}):await K(e)}function Xe(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,2)},20)});function s(c){o(c.composedPath()[0],1)}u.addEventListener("mousedown",s),u.addEventListener("touchstart",s,{passive:!0});const n=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const _=De(c,u);if(!_)return;const{url:b,external:v,download:L}=ye(_,q);if(v||L)return;const A=le(_);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:_,download:b}=ye(c,q);if(_||b)continue;const v=le(c);v.reload||(v.preload_code===Me.viewport&&n.observe(c),v.preload_code===Me.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,s){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:s})??{message:s.route.id===null&&e instanceof It?"Not Found":"Internal Error"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const s=m.after_navigate.indexOf(e);m.after_navigate.splice(s,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const s=m.before_navigate.indexOf(e);m.before_navigate.splice(s,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const s=m.on_navigate.indexOf(e);m.on_navigate.splice(s,1)}))},disable_scroll_handling:()=>{(D||!T)&&(R=!1)},goto:(e,s={})=>re(e,s,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:s}=new URL(e,location.href);E.push(n=>n.href===s)}return ke()},invalidate_all:()=>(z=!0,ke()),preload_data:async e=>{const s=new URL(e,Ce(document)),n=Z(s,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${s}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const s=new URL(location.href),{branch:n,route:o}=d;if(!o)return;const a=await xe(d.branch.length,n,o.errors);if(a){const c=await X({url:s,params:d.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});d=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...H,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var s;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=Be(d,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(s=navigator.connection)!=null&&s.saveData||Xe(),u.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=De(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:_}=ye(o,q);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||_)return;if(c||b.reload){Ue({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(d.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(C=!0,be(x),e(a),!b.replace_state)return;C=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),u.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(_e(p,q))return;const _=n.target,{keep_focus:b,noscroll:v,reload:L,replace_state:A}=le(_);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(_),y=a==null?void 0:a.getAttribute("name");y&&P.append(y,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:v?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o,a;if(W={},(o=n.state)!=null&&o[M]){if(n.state[M]===x)return;const c=J[n.state[M]],p=new URL(location.href);if(((a=d.url)==null?void 0:a.href.split("#")[0])===location.href.split("#")[0]){e(p),J[x]=te(),x=n.state[M],scrollTo(c.x,c.y);return}const _=n.state[M]-x;await ce({url:p,scroll:c,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{x=n.state[M]},blocked:()=>{history.go(-_)},type:"popstate",delta:_,nav_token:W})}else if(!C){const c=new URL(location.href);e(c)}}),addEventListener("hashchange",()=>{C&&(C=!1,history.replaceState({...history.state,[M]:++x},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&B.navigating.set(null)});function e(n){d.url=n,B.page.set({...H,url:n}),B.page.notify()}},_hydrate:async({status:e=200,error:s,node_ids:n,params:o,route:a,data:c,form:p})=>{N=!0;const _=new URL(location.href);({params:o={},route:a={id:null}}=Z(_,!1)||{});let b;try{const v=n.map(async(P,y)=>{const w=c[y];return w!=null&&w.uses&&(w.uses=Ye(w.uses)),ue({loader:t.nodes[P],url:_,params:o,route:a,parent:async()=>{const O={};for(let j=0;jP===a.id);if(A){const P=A.layouts;for(let y=0;yu?"1":"0").join(""));const i=await Ke(f.href);if((h=i.headers.get("content-type"))!=null&&h.includes("text/html")&&await K(t),!i.ok)throw new ne(i.status,await i.json());return new Promise(async u=>{var N;const E=new Map,l=i.body.getReader(),g=new TextDecoder;function m(T){return St(T,{Promise:R=>new Promise((D,U)=>{E.set(R,{fulfil:D,reject:U})})})}let d="";for(;;){const{done:T,value:R}=await l.read();if(T&&!d)break;for(d+=!R&&d?` +import{o as me,t as we}from"../chunks/index.84111acf.js";import{S as Ge,a as Je,I as M,g as Ce,f as De,b as ye,c as le,s as te,i as _e,d as B,e as q,o as Fe,P as Me,h as Ze}from"../chunks/singletons.0a5feed3.js";function Qe(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function et(t){return t.split("%25").map(decodeURI).join("%25")}function tt(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const nt=["href","pathname","search","searchParams","toString","toJSON"];function at(t,r){const f=new URL(t);for(const i of nt)Object.defineProperty(f,i,{get(){return r(),t[i]},enumerable:!0,configurable:!0});return rt(f),f}function rt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const ot="/__data.json";function it(t){return t.replace(/\/$/,"")+ot}function st(...t){let r=5381;for(const f of t)if(typeof f=="string"){let i=f.length;for(;i;)r=r*33^f.charCodeAt(--i)}else if(ArrayBuffer.isView(f)){const i=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);let h=i.length;for(;h;)r=r*33^i[--h]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const Ke=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Ke(t,r));const ae=new Map;function ct(t){const r=atob(t),f=new Uint8Array(r.length);for(let i=0;i0){const i=Se(t,f),h=ae.get(i);if(h){if(performance.now(){const h=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(i);if(h)return r.push({name:h[1],matcher:h[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(i);if(u)return r.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!i)return;const E=i.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const d=ut.exec(g);if(!d)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,N,T,R,D]=d;return r.push({name:R,matcher:D,optional:!!N,rest:!!T,chained:T?m===1&&E[0]==="":!1}),T?"(.*?)":N?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function ht(t){return!/^\([^)]+\)$/.test(t)}function pt(t){return t.slice(1).split("/").filter(ht)}function gt(t,r,f){const i={},h=t.slice(1),u=h.filter(l=>l!==void 0);let E=0;for(let l=0;ld).join("/"),E=0),m===void 0){g.rest&&(i[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){i[g.name]=m;const d=r[l+1],N=h[l+1];d&&!d.rest&&d.optional&&N&&g.chained&&(E=0),!d&&!N&&Object.keys(i).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return i}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function mt({nodes:t,server_loads:r,dictionary:f,matchers:i}){const h=new Set(r);return Object.entries(f).map(([l,[g,m,d]])=>{const{pattern:N,params:T}=dt(l),R={id:l,exec:D=>{const U=N.exec(D);if(U)return gt(U,T,i)},errors:[1,...d||[]].map(D=>t[D]),layouts:[0,...m||[]].map(E),leaf:u(g)};return R.errors.length=R.layouts.length=Math.max(R.errors.length,R.layouts.length),R});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[h.has(l),t[l]]}}function ze(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Ve(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const wt=-1,yt=-2,_t=-3,vt=-4,bt=-5,Et=-6;function St(t,r){if(typeof t=="number")return h(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const f=t,i=Array(f.length);function h(u,E=!1){if(u===wt)return;if(u===_t)return NaN;if(u===vt)return 1/0;if(u===bt)return-1/0;if(u===Et)return-0;if(E)throw new Error("Invalid input");if(u in i)return i[u];const l=f[u];if(!l||typeof l!="object")i[u]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=r==null?void 0:r[g];if(m)return i[u]=m(h(l[1]));switch(g){case"Date":i[u]=new Date(l[1]);break;case"Set":const d=new Set;i[u]=d;for(let R=1;Rr!=null)}const We=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...We];const Rt=new Set([...We]);[...Rt];async function At(t,r){var f;for(const i in t)if(typeof((f=t[i])==null?void 0:f.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([h,u])=>[h,await u])));return t}class ne{constructor(r,f){this.status=r,typeof f=="string"?this.body={message:f}:f?this.body=f:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class qe{constructor(r,f){this.status=r,this.location=f}}class It extends Error{constructor(r){super(),this.status=404,this.message=`Not found: ${r}`}}const Lt="x-sveltekit-invalidated",Pt="x-sveltekit-trailing-slash",J=ze(Ge)??{},ee=ze(Je)??{};function be(t){J[t]=te()}function K(t){return location.href=t.href,new Promise(()=>{})}function Ot(t,r){var je;const f=mt(t),i=t.nodes[0],h=t.nodes[1];i(),h();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let d={branch:[],error:null,url:null},N=!1,T=!1,R=!0,D=!1,U=!1,C=!1,z=!1,V,x=(je=history.state)==null?void 0:je[M];x||(x=Date.now(),history.replaceState({...history.state,[M]:x},"",location.href));const fe=J[x];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let H,W,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),s=Z(e,!0);g=null;const n=W={},o=s&&await he(s);if(n===W&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(H=o.props.page),V.$set(o.props)}}function Re(e){l.some(s=>s==null?void 0:s.snapshot)&&(ee[e]=l.map(s=>{var n;return(n=s==null?void 0:s.snapshot)==null?void 0:n.capture()}))}function Ae(e){var s;(s=ee[e])==null||s.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(x),Ve(Ge,J),Re(x),Ve(Je,ee)}async function re(e,{noScroll:s=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,_){return typeof e=="string"&&(e=new URL(e,Ce(document))),ce({url:e,scroll:s?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:_,accepted:()=>{c&&(z=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:he(e).then(s=>(s.type==="loaded"&&s.state.error&&(g=null),s))},g.promise}async function oe(...e){const n=f.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Pe(e){var o;d=e.state;const s=document.querySelector("style[data-sveltekit]");s&&s.remove(),H=e.props.page,V=new t.root({target:r,props:{...e.props,stores:B,components:l},hydrate:!0}),Ae(x);const n={from:null,to:{params:d.params,route:{id:((o=d.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),T=!0}async function X({url:e,params:s,branch:n,status:o,error:a,route:c,form:p}){let _="never";for(const y of n)(y==null?void 0:y.slash)!==void 0&&(_=y.slash);e.pathname=Qe(e.pathname,_),e.search=e.search;const b={type:"loaded",state:{url:e,params:s,branch:n,error:a,route:c},props:{constructors:kt(n).map(y=>y.node.component)}};p!==void 0&&(b.props.form=p);let v={},L=!H,A=0;for(let y=0;y(_.route=!0,w[O])}),params:new Proxy(o,{get:(w,O)=>(_.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:at(n,()=>{_.url=!0}),async fetch(w,O){let j;w instanceof Request?(j=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):j=w;const F=new URL(j,n);return P(F.href),F.origin===n.origin&&(j=F.href.slice(n.origin.length)),T?ft(j,F.href,O):lt(j,O)},setHeaders:()=>{},depends:P,parent(){return _.parent=!0,s()}};p=await b.universal.load.call(null,y)??null,p=p?await At(p,a.id):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:_}:null,data:p??(c==null?void 0:c.data)??null,slash:n.pathname===q||n.pathname===q+"/"?"always":((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,s,n,o,a){if(z)return!0;if(!o)return!1;if(o.parent&&e||o.route&&s||o.url&&n)return!0;for(const c of o.params)if(a[c]!==d.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,s){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?s??null:null}async function he({id:e,invalidating:s,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:_}=a,b=[...p,_];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let v=null;const L=d.url?e!==d.url.pathname+d.url.search:!1,A=d.route?a.id!==d.route.id:!1;let P=!1;const y=b.map((S,I)=>{var G;const k=d.branch[I],$=!!(S!=null&&S[0])&&((k==null?void 0:k.loader)!==S[1]||Oe(P,A,L,(G=k.server)==null?void 0:G.uses,o));return $&&(P=!0),$});if(y.some(Boolean)){try{v=await He(n,y)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(v.type==="redirect")return v}const w=v==null?void 0:v.nodes;let O=!1;const j=b.map(async(S,I)=>{var pe;if(!S)return;const k=d.branch[I],$=w==null?void 0:w[I];if((!$||$.type==="skip")&&S[1]===(k==null?void 0:k.loader)&&!Oe(O,A,L,(pe=k.universal)==null?void 0:pe.uses,o))return k;if(O=!0,($==null?void 0:$.type)==="error")throw $;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const F=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await h(),loader:h,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[_,b],status:e,error:s,route:null})}function Z(e,s){if(_e(e,q))return;const n=se(e);for(const o of f){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:s,route:o,params:tt(a),url:e}}}function se(e){return et(e.pathname.slice(q.length)||"/")}function Ue({url:e,type:s,intent:n,delta:o}){let a=!1;const c=Be(d,n,e,s);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(_=>_(p)),a?null:c}async function ce({url:e,scroll:s,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:_={},accepted:b,blocked:v}){var j,F,S;const L=Z(e,!1),A=Ue({url:e,type:c,delta:p,intent:L});if(!A){v();return}const P=x;b(),U=!0,T&&B.navigating.set(A.navigation),W=_;let y=L&&await he(L);if(!y){if(_e(e,q))return await K(e);y=await Ne(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,W!==_)return A.reject(new Error("navigation was aborted")),!1;if(y.type==="redirect")if(o>=20)y=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(y.location,e).href,{},o+1,_),!1;else((j=y.props.page)==null?void 0:j.status)>=400&&await B.updated.check()&&await K(e);if(E.length=0,z=!1,D=!0,be(P),Re(P),(F=y.props.page)!=null&&F.url&&y.props.page.url.pathname!==e.pathname&&(e.pathname=(S=y.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=x+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let k=x+1;for(;ee[k]||J[k];)delete ee[k],delete J[k],k+=1}}if(g=null,T){d=y.state,y.props.page&&(y.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(k=>k(A.navigation)))).filter(k=>typeof k=="function");if(I.length>0){let k=function(){m.after_navigate=m.after_navigate.filter($=>!I.includes($))};I.push(k),m.after_navigate.push(...I)}V.$set(y.props)}else Pe(y);const{activeElement:w}=document;if(await we(),R){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));s?scrollTo(s.x,s.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!n&&!O&&Ee(),R=!0,y.props.page&&(H=y.props.page),U=!1,c==="popstate"&&Ae(x),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),B.navigating.set(null),D=!1}async function Ne(e,s,n,o){return e.origin===Fe&&e.pathname===location.pathname&&!N?await ie({status:o,error:n,url:e,route:s}):await K(e)}function Xe(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,2)},20)});function s(c){o(c.composedPath()[0],1)}u.addEventListener("mousedown",s),u.addEventListener("touchstart",s,{passive:!0});const n=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const _=De(c,u);if(!_)return;const{url:b,external:v,download:L}=ye(_,q);if(v||L)return;const A=le(_);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:_,download:b}=ye(c,q);if(_||b)continue;const v=le(c);v.reload||(v.preload_code===Me.viewport&&n.observe(c),v.preload_code===Me.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,s){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:s})??{message:s.route.id===null&&e instanceof It?"Not Found":"Internal Error"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const s=m.after_navigate.indexOf(e);m.after_navigate.splice(s,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const s=m.before_navigate.indexOf(e);m.before_navigate.splice(s,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const s=m.on_navigate.indexOf(e);m.on_navigate.splice(s,1)}))},disable_scroll_handling:()=>{(D||!T)&&(R=!1)},goto:(e,s={})=>re(e,s,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:s}=new URL(e,location.href);E.push(n=>n.href===s)}return ke()},invalidate_all:()=>(z=!0,ke()),preload_data:async e=>{const s=new URL(e,Ce(document)),n=Z(s,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${s}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const s=new URL(location.href),{branch:n,route:o}=d;if(!o)return;const a=await xe(d.branch.length,n,o.errors);if(a){const c=await X({url:s,params:d.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});d=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...H,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var s;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=Be(d,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(s=navigator.connection)!=null&&s.saveData||Xe(),u.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=De(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:_}=ye(o,q);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||_)return;if(c||b.reload){Ue({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(d.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(C=!0,be(x),e(a),!b.replace_state)return;C=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),u.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(_e(p,q))return;const _=n.target,{keep_focus:b,noscroll:v,reload:L,replace_state:A}=le(_);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(_),y=a==null?void 0:a.getAttribute("name");y&&P.append(y,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:v?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o,a;if(W={},(o=n.state)!=null&&o[M]){if(n.state[M]===x)return;const c=J[n.state[M]],p=new URL(location.href);if(((a=d.url)==null?void 0:a.href.split("#")[0])===location.href.split("#")[0]){e(p),J[x]=te(),x=n.state[M],scrollTo(c.x,c.y);return}const _=n.state[M]-x;await ce({url:p,scroll:c,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{x=n.state[M]},blocked:()=>{history.go(-_)},type:"popstate",delta:_,nav_token:W})}else if(!C){const c=new URL(location.href);e(c)}}),addEventListener("hashchange",()=>{C&&(C=!1,history.replaceState({...history.state,[M]:++x},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&B.navigating.set(null)});function e(n){d.url=n,B.page.set({...H,url:n}),B.page.notify()}},_hydrate:async({status:e=200,error:s,node_ids:n,params:o,route:a,data:c,form:p})=>{N=!0;const _=new URL(location.href);({params:o={},route:a={id:null}}=Z(_,!1)||{});let b;try{const v=n.map(async(P,y)=>{const w=c[y];return w!=null&&w.uses&&(w.uses=Ye(w.uses)),ue({loader:t.nodes[P],url:_,params:o,route:a,parent:async()=>{const O={};for(let j=0;jP===a.id);if(A){const P=A.layouts;for(let y=0;yu?"1":"0").join(""));const i=await Ke(f.href);if((h=i.headers.get("content-type"))!=null&&h.includes("text/html")&&await K(t),!i.ok)throw new ne(i.status,await i.json());return new Promise(async u=>{var N;const E=new Map,l=i.body.getReader(),g=new TextDecoder;function m(T){return St(T,{Promise:R=>new Promise((D,U)=>{E.set(R,{fulfil:D,reject:U})})})}let d="";for(;;){const{done:T,value:R}=await l.read();if(T&&!d)break;for(d+=!R&&d?` `:g.decode(R);;){const D=d.indexOf(` `);if(D===-1)break;const U=JSON.parse(d.slice(0,D));if(d=d.slice(D+1),U.type==="redirect")return u(U);if(U.type==="data")(N=U.nodes)==null||N.forEach(C=>{(C==null?void 0:C.type)==="data"&&(C.uses=Ye(C.uses),C.data=m(C.data))}),u(U);else if(U.type==="chunk"){const{id:C,data:z,error:V}=U,x=E.get(C);E.delete(C),V?x.reject(m(V)):x.fulfil(m(z))}}}})}function Ye(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function Ee(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const r=document.body,f=r.getAttribute("tabindex");r.tabIndex=-1,r.focus({preventScroll:!0,focusVisible:!1}),f!==null?r.setAttribute("tabindex",f):r.removeAttribute("tabindex");const i=getSelection();if(i&&i.type!=="None"){const h=[];for(let u=0;u{if(i.rangeCount===h.length){for(let u=0;u{h=d,u=N});return E.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((g=t.route)==null?void 0:g.id)??null},url:t.url},to:f&&{params:(r==null?void 0:r.params)??null,route:{id:((m=r==null?void 0:r.route)==null?void 0:m.id)??null},url:f},willUnload:!r,type:i,complete:E},fulfil:h,reject:u}}async function Nt(t,r,f){const i=Ot(t,r);Ze({client:i}),f?await i._hydrate(f):i.goto(location.href,{replaceState:!0}),i._start_router()}export{Nt as start}; diff --git a/_app/immutable/nodes/1.917bca37.js b/_app/immutable/nodes/1.52cd5ae9.js similarity index 86% rename from _app/immutable/nodes/1.917bca37.js rename to _app/immutable/nodes/1.52cd5ae9.js index 17639f0..ec4ed9a 100644 --- a/_app/immutable/nodes/1.917bca37.js +++ b/_app/immutable/nodes/1.52cd5ae9.js @@ -1 +1 @@ -import{S,i as q,s as x,k as _,q as f,a as H,l as d,m as g,r as h,h as u,c as k,b as m,G as v,u as $,H as E,I as y}from"../chunks/index.84111acf.js";import{d as C}from"../chunks/singletons.9f6d8ab9.js";const G=()=>{const s=C;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},I={subscribe(s){return G().page.subscribe(s)}};function P(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",l;return{c(){t=_("h1"),o=f(r),n=H(),i=_("p"),l=f(c)},l(e){t=d(e,"H1",{});var a=g(t);o=h(a,r),a.forEach(u),n=k(e),i=d(e,"P",{});var p=g(i);l=h(p,c),p.forEach(u)},m(e,a){m(e,t,a),v(t,o),m(e,n,a),m(e,i,a),v(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&$(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&$(l,c)},i:E,o:E,d(e){e&&u(t),e&&u(n),e&&u(i)}}}function j(s,t,r){let o;return y(s,I,n=>r(0,o=n)),[o]}let A=class extends S{constructor(t){super(),q(this,t,j,P,x,{})}};export{A as component}; +import{S,i as q,s as x,k as _,q as f,a as H,l as d,m as g,r as h,h as u,c as k,b as m,G as v,u as $,H as E,I as y}from"../chunks/index.84111acf.js";import{d as C}from"../chunks/singletons.0a5feed3.js";const G=()=>{const s=C;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},I={subscribe(s){return G().page.subscribe(s)}};function P(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",l;return{c(){t=_("h1"),o=f(r),n=H(),i=_("p"),l=f(c)},l(e){t=d(e,"H1",{});var a=g(t);o=h(a,r),a.forEach(u),n=k(e),i=d(e,"P",{});var p=g(i);l=h(p,c),p.forEach(u)},m(e,a){m(e,t,a),v(t,o),m(e,n,a),m(e,i,a),v(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&$(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&$(l,c)},i:E,o:E,d(e){e&&u(t),e&&u(n),e&&u(i)}}}function j(s,t,r){let o;return y(s,I,n=>r(0,o=n)),[o]}let A=class extends S{constructor(t){super(),q(this,t,j,P,x,{})}};export{A as component}; diff --git a/_app/immutable/nodes/2.fb9ff5e8.js b/_app/immutable/nodes/2.7b25c784.js similarity index 94% rename from _app/immutable/nodes/2.fb9ff5e8.js rename to _app/immutable/nodes/2.7b25c784.js index 9b8bfbf..5d8d3a5 100644 --- a/_app/immutable/nodes/2.fb9ff5e8.js +++ b/_app/immutable/nodes/2.7b25c784.js @@ -1,23 +1,23 @@ import{J as op,K as Tl,S as g0,i as v0,s as _0,e as Cl,b as Ot,L as Pt,g as Nt,v as wo,d as Xt,f as xo,h as Pe,M as ko,I as Dt,k as vt,a as Pr,q as kr,l as _t,m as pt,c as Hr,r as Ar,n as Re,G as it,N as Hn,O as Ao,P as sp,Q as lp,w as Xi,H as Er,R as zl,T as cp,o as So,U as Yi,V as Bl,W as up,X as hp,p as Bi,Y as fp,j as pp,y as Wi,z as Ki,A as Zi,B as Ji}from"../chunks/index.84111acf.js";import{d as dp,w as or}from"../chunks/index.cf520272.js";import{_ as mp}from"../chunks/preload-helper.a4192956.js";var In=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gp=typeof In=="object"&&In&&In.Object===Object&&In,lu=gp,vp=lu,_p=typeof self=="object"&&self&&self.Object===Object&&self,bp=vp||_p||Function("return this")(),zr=bp,yp=zr,wp=yp.Symbol,Eo=wp;function xp(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r-1&&e%1==0&&e<=Ud}var du=Gd,Vd=hu,Xd=du;function Yd(e){return e!=null&&Xd(e.length)&&!Vd(e)}var mu=Yd,Wd=Array.isArray,gu=Wd;function Kd(e){return e!=null&&typeof e=="object"}var b0=Kd,Zd=ri,Jd=gu,Qd=b0,em="[object String]";function tm(e){return typeof e=="string"||!Jd(e)&&Qd(e)&&Zd(e)==em}var rm=tm;function nm(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}var im=nm;function am(e){var t=-1,r=Array(e.size);return e.forEach(function(i,o){r[++t]=[o,i]}),r}var om=am;function sm(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var lm=sm;function cm(e){return e.split("")}var um=cm,hm="\\ud800-\\udfff",fm="\\u0300-\\u036f",pm="\\ufe20-\\ufe2f",dm="\\u20d0-\\u20ff",mm=fm+pm+dm,gm="\\ufe0e\\ufe0f",vm="\\u200d",_m=RegExp("["+vm+hm+mm+gm+"]");function bm(e){return _m.test(e)}var ym=bm,vu="\\ud800-\\udfff",wm="\\u0300-\\u036f",xm="\\ufe20-\\ufe2f",km="\\u20d0-\\u20ff",Am=wm+xm+km,Sm="\\ufe0e\\ufe0f",Mm="["+vu+"]",Xa="["+Am+"]",Ya="\\ud83c[\\udffb-\\udfff]",Em="(?:"+Xa+"|"+Ya+")",_u="[^"+vu+"]",bu="(?:\\ud83c[\\udde6-\\uddff]){2}",yu="[\\ud800-\\udbff][\\udc00-\\udfff]",Tm="\\u200d",wu=Em+"?",xu="["+Sm+"]?",Cm="(?:"+Tm+"(?:"+[_u,bu,yu].join("|")+")"+xu+wu+")*",zm=xu+wu+Cm,Bm="(?:"+[_u+Xa+"?",Xa,bu,yu,Mm].join("|")+")",Nm=RegExp(Ya+"(?="+Ya+")|"+Bm+zm,"g");function Dm(e){return e.match(Nm)||[]}var Om=Dm,Im=um,Rm=ym,Fm=Om;function Lm(e){return Rm(e)?Fm(e):Im(e)}var qm=Lm;function Pm(e,t){for(var r=-1,i=e==null?0:e.length,o=Array(i);++r-1&&e%1==0&&e-1?t===e.length-1?(e=e.substring(0,t),gn(e)):(e=e.substr(t+1),gn(e)):e}function Su(e){return typeof e=="string"&&e.length>0?":"+e+":":e}function GR(e){return typeof e=="string"&&e[0]!==":"?Su(e):e}var VR=String.fromCharCode(65039),XR=new RegExp(VR,"g");function vn(e){return e.replace(XR,"")}var To=Object.keys(sr).reduce(function(e,t){return e[vn(sr[t])]=t,e},{}),Oe={emoji:sr};Oe._get=function(t){return To[vn(t)]?t:sr.hasOwnProperty(t)?sr[t]:GR(t)};Oe.get=function(t){return t=gn(t),Oe._get(t)};Oe.find=function(t){return Oe.findByName(t)||Oe.findByCode(t)};Oe.findByName=function(t){var r=gn(t),i=sr[r];return i?{emoji:i,key:r}:void 0};Oe.findByCode=function(t){var r=vn(t),i=To[r];return i?{emoji:sr[i],key:i}:void 0};Oe.hasEmoji=function(t){return Oe.hasEmojiByName(t)||Oe.hasEmojiByCode(t)};Oe.hasEmojiByName=function(t){var r=Oe.findByName(t);return!!r&&r.key===gn(t)};Oe.hasEmojiByCode=function(t){var r=Oe.findByCode(t);return!!r&&vn(r.emoji)===vn(t)};Oe.which=function(t,r){var i=vn(t),o=To[i];return r?Su(o):o};Oe.emojify=function(t,r,i){return t?t.split(jR).map(function(l,u){if(u%2===0)return l;var h=Oe._get(l),d=h.indexOf(":")>-1;return d&&typeof r=="function"?r(l):!d&&typeof i=="function"?i(h,l):h}).join(""):""};Oe.random=function(){var t=Object.keys(sr),r=Math.floor(Math.random()*t.length),i=t[r],o=Oe._get(i);return{key:i,emoji:o}};Oe.search=function(t){var r=Object.keys(sr),i=gn(t),o=r.filter(function(l){return l.toString().indexOf(i)===0});return o.map(function(l){return{key:l,emoji:Oe._get(l)}})};Oe.unemojify=function(t){if(!t)return"";var r=Au(t);return r.map(function(i){return Oe.which(i,!0)||i}).join("")};Oe.replace=function(t,r,i){if(!t)return"";var o=typeof r=="function"?r:function(){return r},l=Au(t),u=l.map(function(h,d){var b=Oe.findByCode(h);return b&&i&&l[d+1]===" "&&(l[d+1]=""),b?o(b):h}).join("");return i?u.replace(UR,""):u};Oe.strip=function(t){return Oe.replace(t,"",!0)};var YR=Oe,WR=YR;const KR=Mo(WR);function ZR(e){if(typeof window>"u"){const{subscribe:l}=or(e);return{subscribe:l}}const t=or(window.location.href),r=history.pushState,i=history.replaceState,o=()=>t.set(window.location.href);return history.pushState=function(){r.apply(this,arguments),o()},history.replaceState=function(){i.apply(this,arguments),o()},window.addEventListener("popstate",o),window.addEventListener("hashchange",o),{subscribe:dp(t,l=>new URL(l)).subscribe}}const Mu=ZR();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Eu(e){return typeof e>"u"||e===null}function JR(e){return typeof e=="object"&&e!==null}function QR(e){return Array.isArray(e)?e:Eu(e)?[]:[e]}function eF(e,t){var r,i,o,l;if(t)for(l=Object.keys(t),r=0,i=l.length;rh&&(l=" ... ",t=i-h+l.length),r-i>h&&(u=" ...",r=i+h-u.length),{str:l+e.slice(t,r).replace(/\t/g,"→")+u,pos:i-t+l.length}}function Aa(e,t){return at.repeat(" ",t-e.length)+e}function cF(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],l,u=-1;l=r.exec(e.buffer);)o.push(l.index),i.push(l.index+l[0].length),e.position<=l.index&&u<0&&(u=i.length-2);u<0&&(u=i.length-1);var h="",d,b,_=Math.min(e.line+t.linesAfter,o.length).toString().length,k=t.maxLength-(t.indent+_+3);for(d=1;d<=t.linesBefore&&!(u-d<0);d++)b=ka(e.buffer,i[u-d],o[u-d],e.position-(i[u]-i[u-d]),k),h=at.repeat(" ",t.indent)+Aa((e.line-d+1).toString(),_)+" | "+b.str+` -`+h;for(b=ka(e.buffer,i[u],o[u],e.position,k),h+=at.repeat(" ",t.indent)+Aa((e.line+1).toString(),_)+" | "+b.str+` +`+e.mark.snippet),i+" "+r):i}function Un(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Tu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Un.prototype=Object.create(Error.prototype);Un.prototype.constructor=Un;Un.prototype.toString=function(t){return this.name+": "+Tu(this,t)};var dt=Un;function ka(e,t,r,i,o){var l="",u="",h=Math.floor(o/2)-1;return i-t>h&&(l=" ... ",t=i-h+l.length),r-i>h&&(u=" ...",r=i+h-u.length),{str:l+e.slice(t,r).replace(/\t/g,"→")+u,pos:i-t+l.length}}function Aa(e,t){return at.repeat(" ",t-e.length)+e}function cF(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],l,u=-1;l=r.exec(e.buffer);)o.push(l.index),i.push(l.index+l[0].length),e.position<=l.index&&u<0&&(u=i.length-2);u<0&&(u=i.length-1);var h="",d,b,_=Math.min(e.line+t.linesAfter,o.length).toString().length,x=t.maxLength-(t.indent+_+3);for(d=1;d<=t.linesBefore&&!(u-d<0);d++)b=ka(e.buffer,i[u-d],o[u-d],e.position-(i[u]-i[u-d]),x),h=at.repeat(" ",t.indent)+Aa((e.line-d+1).toString(),_)+" | "+b.str+` +`+h;for(b=ka(e.buffer,i[u],o[u],e.position,x),h+=at.repeat(" ",t.indent)+Aa((e.line+1).toString(),_)+" | "+b.str+` `,h+=at.repeat("-",t.indent+_+3+b.pos)+`^ -`,d=1;d<=t.linesAfter&&!(u+d>=o.length);d++)b=ka(e.buffer,i[u+d],o[u+d],e.position-(i[u]-i[u+d]),k),h+=at.repeat(" ",t.indent)+Aa((e.line+d+1).toString(),_)+" | "+b.str+` -`;return h.replace(/\n$/,"")}var uF=cF,hF=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],fF=["scalar","sequence","mapping"];function pF(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function dF(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(hF.indexOf(r)===-1)throw new dt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=pF(t.styleAliases||null),fF.indexOf(this.kind)===-1)throw new dt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var st=dF;function Gl(e,t){var r=[];return e[t].forEach(function(i){var o=r.length;r.forEach(function(l,u){l.tag===i.tag&&l.kind===i.kind&&l.multi===i.multi&&(o=u)}),r[o]=i}),r}function mF(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,r=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),TF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function CF(e){return!(e===null||!TF.test(e)||e[e.length-1]==="_")}function zF(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var BF=/^[-+]?[0-9]+e/;function NF(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(at.isNegativeZero(e))return"-0.0";return r=e.toString(10),BF.test(r)?r.replace("e",".e"):r}function DF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||at.isNegativeZero(e))}var Fu=new st("tag:yaml.org,2002:float",{kind:"scalar",resolve:CF,construct:zF,predicate:DF,represent:NF,defaultStyle:"lowercase"}),Lu=Du.extend({implicit:[Ou,Iu,Ru,Fu]}),qu=Lu,Pu=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Hu=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function OF(e){return e===null?!1:Pu.exec(e)!==null||Hu.exec(e)!==null}function IF(e){var t,r,i,o,l,u,h,d=0,b=null,_,k,M;if(t=Pu.exec(e),t===null&&(t=Hu.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,i,o));if(l=+t[4],u=+t[5],h=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(_=+t[10],k=+(t[11]||0),b=(_*60+k)*6e4,t[9]==="-"&&(b=-b)),M=new Date(Date.UTC(r,i,o,l,u,h,d)),b&&M.setTime(M.getTime()-b),M}function RF(e){return e.toISOString()}var $u=new st("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:OF,construct:IF,instanceOf:Date,represent:RF});function FF(e){return e==="<<"||e===null}var ju=new st("tag:yaml.org,2002:merge",{kind:"scalar",resolve:FF}),Co=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +`,d=1;d<=t.linesAfter&&!(u+d>=o.length);d++)b=ka(e.buffer,i[u+d],o[u+d],e.position-(i[u]-i[u+d]),x),h+=at.repeat(" ",t.indent)+Aa((e.line+d+1).toString(),_)+" | "+b.str+` +`;return h.replace(/\n$/,"")}var uF=cF,hF=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],fF=["scalar","sequence","mapping"];function pF(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function dF(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(hF.indexOf(r)===-1)throw new dt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=pF(t.styleAliases||null),fF.indexOf(this.kind)===-1)throw new dt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var st=dF;function Gl(e,t){var r=[];return e[t].forEach(function(i){var o=r.length;r.forEach(function(l,u){l.tag===i.tag&&l.kind===i.kind&&l.multi===i.multi&&(o=u)}),r[o]=i}),r}function mF(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,r=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),TF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function CF(e){return!(e===null||!TF.test(e)||e[e.length-1]==="_")}function zF(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var BF=/^[-+]?[0-9]+e/;function NF(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(at.isNegativeZero(e))return"-0.0";return r=e.toString(10),BF.test(r)?r.replace("e",".e"):r}function DF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||at.isNegativeZero(e))}var Fu=new st("tag:yaml.org,2002:float",{kind:"scalar",resolve:CF,construct:zF,predicate:DF,represent:NF,defaultStyle:"lowercase"}),Lu=Du.extend({implicit:[Ou,Iu,Ru,Fu]}),qu=Lu,Pu=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Hu=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function OF(e){return e===null?!1:Pu.exec(e)!==null||Hu.exec(e)!==null}function IF(e){var t,r,i,o,l,u,h,d=0,b=null,_,x,M;if(t=Pu.exec(e),t===null&&(t=Hu.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,i,o));if(l=+t[4],u=+t[5],h=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(_=+t[10],x=+(t[11]||0),b=(_*60+x)*6e4,t[9]==="-"&&(b=-b)),M=new Date(Date.UTC(r,i,o,l,u,h,d)),b&&M.setTime(M.getTime()-b),M}function RF(e){return e.toISOString()}var $u=new st("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:OF,construct:IF,instanceOf:Date,represent:RF});function FF(e){return e==="<<"||e===null}var ju=new st("tag:yaml.org,2002:merge",{kind:"scalar",resolve:FF}),Co=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function LF(e){if(e===null)return!1;var t,r,i=0,o=e.length,l=Co;for(r=0;r64)){if(t<0)return!1;i+=6}return i%8===0}function qF(e){var t,r,i=e.replace(/[\r\n=]/g,""),o=i.length,l=Co,u=0,h=[];for(t=0;t>16&255),h.push(u>>8&255),h.push(u&255)),u=u<<6|l.indexOf(i.charAt(t));return r=o%4*6,r===0?(h.push(u>>16&255),h.push(u>>8&255),h.push(u&255)):r===18?(h.push(u>>10&255),h.push(u>>2&255)):r===12&&h.push(u>>4&255),new Uint8Array(h)}function PF(e){var t="",r=0,i,o,l=e.length,u=Co;for(i=0;i>18&63],t+=u[r>>12&63],t+=u[r>>6&63],t+=u[r&63]),r=(r<<8)+e[i];return o=l%3,o===0?(t+=u[r>>18&63],t+=u[r>>12&63],t+=u[r>>6&63],t+=u[r&63]):o===2?(t+=u[r>>10&63],t+=u[r>>4&63],t+=u[r<<2&63],t+=u[64]):o===1&&(t+=u[r>>2&63],t+=u[r<<4&63],t+=u[64],t+=u[64]),t}function HF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Uu=new st("tag:yaml.org,2002:binary",{kind:"scalar",resolve:LF,construct:qF,predicate:HF,represent:PF}),$F=Object.prototype.hasOwnProperty,jF=Object.prototype.toString;function UF(e){if(e===null)return!0;var t=[],r,i,o,l,u,h=e;for(r=0,i=h.length;r>10)+55296,(e-65536&1023)+56320)}var Ju=new Array(256),Qu=new Array(256);for(var ln=0;ln<256;ln++)Ju[ln]=Yl(ln)?1:0,Qu[ln]=Yl(ln);function oL(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||zo,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function eh(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=uF(r),new dt(t,r)}function fe(e,t){throw eh(e,t)}function n0(e,t){e.onWarning&&e.onWarning.call(null,eh(e,t))}var Wl={YAML:function(t,r,i){var o,l,u;t.version!==null&&fe(t,"duplication of %YAML directive"),i.length!==1&&fe(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),o===null&&fe(t,"ill-formed argument of the YAML directive"),l=parseInt(o[1],10),u=parseInt(o[2],10),l!==1&&fe(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=u<2,u!==1&&u!==2&&n0(t,"unsupported YAML version of the document")},TAG:function(t,r,i){var o,l;i.length!==2&&fe(t,"TAG directive accepts exactly two arguments"),o=i[0],l=i[1],Ku.test(o)||fe(t,"ill-formed tag handle (first argument) of the TAG directive"),Cr.call(t.tagMap,o)&&fe(t,'there is a previously declared suffix for "'+o+'" tag handle'),Zu.test(l)||fe(t,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch{fe(t,"tag prefix is malformed: "+l)}t.tagMap[o]=l}};function Tr(e,t,r,i){var o,l,u,h;if(t1&&(e.result+=at.repeat(` -`,t-1))}function sL(e,t,r){var i,o,l,u,h,d,b,_,k=e.kind,M=e.result,E;if(E=e.input.charCodeAt(e.position),bt(E)||pn(E)||E===35||E===38||E===42||E===33||E===124||E===62||E===39||E===34||E===37||E===64||E===96||(E===63||E===45)&&(o=e.input.charCodeAt(e.position+1),bt(o)||r&&pn(o)))return!1;for(e.kind="scalar",e.result="",l=u=e.position,h=!1;E!==0;){if(E===58){if(o=e.input.charCodeAt(e.position+1),bt(o)||r&&pn(o))break}else if(E===35){if(i=e.input.charCodeAt(e.position-1),bt(i))break}else{if(e.position===e.lineStart&&y0(e)||r&&pn(E))break;if(Yt(E))if(d=e.line,b=e.lineStart,_=e.lineIndent,tt(e,!1,-1),e.lineIndent>=t){h=!0,E=e.input.charCodeAt(e.position);continue}else{e.position=u,e.line=d,e.lineStart=b,e.lineIndent=_;break}}h&&(Tr(e,l,u,!1),No(e,e.line-d),l=u=e.position,h=!1),Ur(E)||(u=e.position+1),E=e.input.charCodeAt(++e.position)}return Tr(e,l,u,!1),e.result?!0:(e.kind=k,e.result=M,!1)}function lL(e,t){var r,i,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Tr(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,o=e.position;else return!0;else Yt(r)?(Tr(e,i,o,!0),No(e,tt(e,!1,t)),i=o=e.position):e.position===e.lineStart&&y0(e)?fe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);fe(e,"unexpected end of the stream within a single quoted scalar")}function cL(e,t){var r,i,o,l,u,h;if(h=e.input.charCodeAt(e.position),h!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(h=e.input.charCodeAt(e.position))!==0;){if(h===34)return Tr(e,r,e.position,!0),e.position++,!0;if(h===92){if(Tr(e,r,e.position,!0),h=e.input.charCodeAt(++e.position),Yt(h))tt(e,!1,t);else if(h<256&&Ju[h])e.result+=Qu[h],e.position++;else if((u=nL(h))>0){for(o=u,l=0;o>0;o--)h=e.input.charCodeAt(++e.position),(u=rL(h))>=0?l=(l<<4)+u:fe(e,"expected hexadecimal character");e.result+=aL(l),e.position++}else fe(e,"unknown escape sequence");r=i=e.position}else Yt(h)?(Tr(e,r,i,!0),No(e,tt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&y0(e)?fe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}fe(e,"unexpected end of the stream within a double quoted scalar")}function uL(e,t){var r=!0,i,o,l,u=e.tag,h,d=e.anchor,b,_,k,M,E,B=Object.create(null),O,P,D,W;if(W=e.input.charCodeAt(e.position),W===91)_=93,E=!1,h=[];else if(W===123)_=125,E=!0,h={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),W=e.input.charCodeAt(++e.position);W!==0;){if(tt(e,!0,t),W=e.input.charCodeAt(e.position),W===_)return e.position++,e.tag=u,e.anchor=d,e.kind=E?"mapping":"sequence",e.result=h,!0;r?W===44&&fe(e,"expected the node content, but found ','"):fe(e,"missed comma between flow collection entries"),P=O=D=null,k=M=!1,W===63&&(b=e.input.charCodeAt(e.position+1),bt(b)&&(k=M=!0,e.position++,tt(e,!0,t))),i=e.line,o=e.lineStart,l=e.position,_n(e,t,t0,!1,!0),P=e.tag,O=e.result,tt(e,!0,t),W=e.input.charCodeAt(e.position),(M||e.line===i)&&W===58&&(k=!0,W=e.input.charCodeAt(++e.position),tt(e,!0,t),_n(e,t,t0,!1,!0),D=e.result),E?dn(e,h,B,P,O,D,i,o,l):k?h.push(dn(e,null,B,P,O,D,i,o,l)):h.push(O),tt(e,!0,t),W=e.input.charCodeAt(e.position),W===44?(r=!0,W=e.input.charCodeAt(++e.position)):r=!1}fe(e,"unexpected end of the stream within a flow collection")}function hL(e,t){var r,i,o=Sa,l=!1,u=!1,h=t,d=0,b=!1,_,k;if(k=e.input.charCodeAt(e.position),k===124)i=!1;else if(k===62)i=!0;else return!1;for(e.kind="scalar",e.result="";k!==0;)if(k=e.input.charCodeAt(++e.position),k===43||k===45)Sa===o?o=k===43?Vl:JF:fe(e,"repeat of a chomping mode identifier");else if((_=iL(k))>=0)_===0?fe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?fe(e,"repeat of an indentation width identifier"):(h=t+_-1,u=!0);else break;if(Ur(k)){do k=e.input.charCodeAt(++e.position);while(Ur(k));if(k===35)do k=e.input.charCodeAt(++e.position);while(!Yt(k)&&k!==0)}for(;k!==0;){for(Bo(e),e.lineIndent=0,k=e.input.charCodeAt(e.position);(!u||e.lineIndenth&&(h=e.lineIndent),Yt(k)){d++;continue}if(e.lineIndent=t){h=!0,E=e.input.charCodeAt(e.position);continue}else{e.position=u,e.line=d,e.lineStart=b,e.lineIndent=_;break}}h&&(Tr(e,l,u,!1),No(e,e.line-d),l=u=e.position,h=!1),Ur(E)||(u=e.position+1),E=e.input.charCodeAt(++e.position)}return Tr(e,l,u,!1),e.result?!0:(e.kind=x,e.result=M,!1)}function lL(e,t){var r,i,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Tr(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,o=e.position;else return!0;else Yt(r)?(Tr(e,i,o,!0),No(e,tt(e,!1,t)),i=o=e.position):e.position===e.lineStart&&y0(e)?fe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);fe(e,"unexpected end of the stream within a single quoted scalar")}function cL(e,t){var r,i,o,l,u,h;if(h=e.input.charCodeAt(e.position),h!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(h=e.input.charCodeAt(e.position))!==0;){if(h===34)return Tr(e,r,e.position,!0),e.position++,!0;if(h===92){if(Tr(e,r,e.position,!0),h=e.input.charCodeAt(++e.position),Yt(h))tt(e,!1,t);else if(h<256&&Ju[h])e.result+=Qu[h],e.position++;else if((u=nL(h))>0){for(o=u,l=0;o>0;o--)h=e.input.charCodeAt(++e.position),(u=rL(h))>=0?l=(l<<4)+u:fe(e,"expected hexadecimal character");e.result+=aL(l),e.position++}else fe(e,"unknown escape sequence");r=i=e.position}else Yt(h)?(Tr(e,r,i,!0),No(e,tt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&y0(e)?fe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}fe(e,"unexpected end of the stream within a double quoted scalar")}function uL(e,t){var r=!0,i,o,l,u=e.tag,h,d=e.anchor,b,_,x,M,E,B=Object.create(null),O,P,D,W;if(W=e.input.charCodeAt(e.position),W===91)_=93,E=!1,h=[];else if(W===123)_=125,E=!0,h={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),W=e.input.charCodeAt(++e.position);W!==0;){if(tt(e,!0,t),W=e.input.charCodeAt(e.position),W===_)return e.position++,e.tag=u,e.anchor=d,e.kind=E?"mapping":"sequence",e.result=h,!0;r?W===44&&fe(e,"expected the node content, but found ','"):fe(e,"missed comma between flow collection entries"),P=O=D=null,x=M=!1,W===63&&(b=e.input.charCodeAt(e.position+1),bt(b)&&(x=M=!0,e.position++,tt(e,!0,t))),i=e.line,o=e.lineStart,l=e.position,_n(e,t,t0,!1,!0),P=e.tag,O=e.result,tt(e,!0,t),W=e.input.charCodeAt(e.position),(M||e.line===i)&&W===58&&(x=!0,W=e.input.charCodeAt(++e.position),tt(e,!0,t),_n(e,t,t0,!1,!0),D=e.result),E?dn(e,h,B,P,O,D,i,o,l):x?h.push(dn(e,null,B,P,O,D,i,o,l)):h.push(O),tt(e,!0,t),W=e.input.charCodeAt(e.position),W===44?(r=!0,W=e.input.charCodeAt(++e.position)):r=!1}fe(e,"unexpected end of the stream within a flow collection")}function hL(e,t){var r,i,o=Sa,l=!1,u=!1,h=t,d=0,b=!1,_,x;if(x=e.input.charCodeAt(e.position),x===124)i=!1;else if(x===62)i=!0;else return!1;for(e.kind="scalar",e.result="";x!==0;)if(x=e.input.charCodeAt(++e.position),x===43||x===45)Sa===o?o=x===43?Vl:JF:fe(e,"repeat of a chomping mode identifier");else if((_=iL(x))>=0)_===0?fe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?fe(e,"repeat of an indentation width identifier"):(h=t+_-1,u=!0);else break;if(Ur(x)){do x=e.input.charCodeAt(++e.position);while(Ur(x));if(x===35)do x=e.input.charCodeAt(++e.position);while(!Yt(x)&&x!==0)}for(;x!==0;){for(Bo(e),e.lineIndent=0,x=e.input.charCodeAt(e.position);(!u||e.lineIndenth&&(h=e.lineIndent),Yt(x)){d++;continue}if(e.lineIndentt)&&d!==0)fe(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(P&&(u=e.line,h=e.lineStart,d=e.position),_n(e,t,r0,!0,o)&&(P?B=e.result:O=e.result),P||(dn(e,k,M,E,B,O,u,h,d),E=B=O=null),tt(e,!0,-1),W=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>t)&&W!==0)fe(e,"bad indentation of a mapping entry");else if(e.lineIndentt?d=1:e.lineIndent===t?d=0:e.lineIndentt?d=1:e.lineIndent===t?d=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),k=0,M=e.implicitTypes.length;k"),e.result!==null&&B.kind!==e.kind&&fe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+B.kind+'", not "'+e.kind+'"'),B.resolve(e.result,e.tag)?(e.result=B.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):fe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||_}function gL(e){var t=e.position,r,i,o,l=!1,u;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(u=e.input.charCodeAt(e.position))!==0&&(tt(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||u!==37));){for(l=!0,u=e.input.charCodeAt(++e.position),r=e.position;u!==0&&!bt(u);)u=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),o=[],i.length<1&&fe(e,"directive name must not be less than one character in length");u!==0;){for(;Ur(u);)u=e.input.charCodeAt(++e.position);if(u===35){do u=e.input.charCodeAt(++e.position);while(u!==0&&!Yt(u));break}if(Yt(u))break;for(r=e.position;u!==0&&!bt(u);)u=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}u!==0&&Bo(e),Cr.call(Wl,i)?Wl[i](e,i,o):n0(e,'unknown document directive "'+i+'"')}if(tt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,tt(e,!0,-1)):l&&fe(e,"directives end mark is expected"),_n(e,e.lineIndent-1,r0,!1,!0),tt(e,!0,-1),e.checkLineBreaks&&eL.test(e.input.slice(t,e.position))&&n0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&y0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,tt(e,!0,-1));return}if(e.positiont)&&d!==0)fe(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(P&&(u=e.line,h=e.lineStart,d=e.position),_n(e,t,r0,!0,o)&&(P?B=e.result:O=e.result),P||(dn(e,x,M,E,B,O,u,h,d),E=B=O=null),tt(e,!0,-1),W=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>t)&&W!==0)fe(e,"bad indentation of a mapping entry");else if(e.lineIndentt?d=1:e.lineIndent===t?d=0:e.lineIndentt?d=1:e.lineIndent===t?d=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),x=0,M=e.implicitTypes.length;x"),e.result!==null&&B.kind!==e.kind&&fe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+B.kind+'", not "'+e.kind+'"'),B.resolve(e.result,e.tag)?(e.result=B.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):fe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||_}function gL(e){var t=e.position,r,i,o,l=!1,u;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(u=e.input.charCodeAt(e.position))!==0&&(tt(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||u!==37));){for(l=!0,u=e.input.charCodeAt(++e.position),r=e.position;u!==0&&!bt(u);)u=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),o=[],i.length<1&&fe(e,"directive name must not be less than one character in length");u!==0;){for(;Ur(u);)u=e.input.charCodeAt(++e.position);if(u===35){do u=e.input.charCodeAt(++e.position);while(u!==0&&!Yt(u));break}if(Yt(u))break;for(r=e.position;u!==0&&!bt(u);)u=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}u!==0&&Bo(e),Cr.call(Wl,i)?Wl[i](e,i,o):n0(e,'unknown document directive "'+i+'"')}if(tt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,tt(e,!0,-1)):l&&fe(e,"directives end mark is expected"),_n(e,e.lineIndent-1,r0,!1,!0),tt(e,!0,-1),e.checkLineBreaks&&eL.test(e.input.slice(t,e.position))&&n0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&y0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,tt(e,!0,-1));return}if(e.position"u"&&(r=t,t=null);var i=th(e,r);if(typeof t!="function")return i;for(var o=0,l=i.length;o=55296&&r<=56319&&t+1=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function uh(e){var t=/^\n* /;return t.test(e)}var hh=1,Ja=2,fh=3,ph=4,fn=5;function VL(e,t,r,i,o,l,u,h){var d,b=0,_=null,k=!1,M=!1,E=i!==-1,B=-1,O=UL(Rn(e,0))&&GL(Rn(e,e.length-1));if(t||u)for(d=0;d=65536?d+=2:d++){if(b=Rn(e,d),!Xn(b))return fn;O=O&&ec(b,_,h),_=b}else{for(d=0;d=65536?d+=2:d++){if(b=Rn(e,d),b===Gn)k=!0,E&&(M=M||d-B-1>i&&e[B+1]!==" ",B=d);else if(!Xn(b))return fn;O=O&&ec(b,_,h),_=b}M=M||E&&d-B-1>i&&e[B+1]!==" "}return!k&&!M?O&&!u&&!o(e)?hh:l===Vn?fn:Ja:r>9&&uh(e)?fn:u?l===Vn?fn:Ja:M?ph:fh}function XL(e,t,r,i,o){e.dump=function(){if(t.length===0)return e.quotingType===Vn?'""':"''";if(!e.noCompatMode&&(FL.indexOf(t)!==-1||LL.test(t)))return e.quotingType===Vn?'"'+t+'"':"'"+t+"'";var l=e.indent*Math.max(1,r),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),h=i||e.flowLevel>-1&&r>=e.flowLevel;function d(b){return jL(e,b)}switch(VL(t,h,e.indent,u,d,e.quotingType,e.forceQuotes&&!i,o)){case hh:return t;case Ja:return"'"+t.replace(/'/g,"''")+"'";case fh:return"|"+tc(t,e.indent)+rc(Jl(t,l));case ph:return">"+tc(t,e.indent)+rc(Jl(YL(t,u),l));case fn:return'"'+WL(t)+'"';default:throw new dt("impossible error: invalid scalar style")}}()}function tc(e,t){var r=uh(e)?String(t):"",i=e[e.length-1]===` +`+at.repeat(" ",e.indent*t)}function jL(e,t){var r,i,o;for(r=0,i=e.implicitTypes.length;r=55296&&r<=56319&&t+1=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function uh(e){var t=/^\n* /;return t.test(e)}var hh=1,Ja=2,fh=3,ph=4,fn=5;function VL(e,t,r,i,o,l,u,h){var d,b=0,_=null,x=!1,M=!1,E=i!==-1,B=-1,O=UL(Rn(e,0))&&GL(Rn(e,e.length-1));if(t||u)for(d=0;d=65536?d+=2:d++){if(b=Rn(e,d),!Xn(b))return fn;O=O&&ec(b,_,h),_=b}else{for(d=0;d=65536?d+=2:d++){if(b=Rn(e,d),b===Gn)x=!0,E&&(M=M||d-B-1>i&&e[B+1]!==" ",B=d);else if(!Xn(b))return fn;O=O&&ec(b,_,h),_=b}M=M||E&&d-B-1>i&&e[B+1]!==" "}return!x&&!M?O&&!u&&!o(e)?hh:l===Vn?fn:Ja:r>9&&uh(e)?fn:u?l===Vn?fn:Ja:M?ph:fh}function XL(e,t,r,i,o){e.dump=function(){if(t.length===0)return e.quotingType===Vn?'""':"''";if(!e.noCompatMode&&(FL.indexOf(t)!==-1||LL.test(t)))return e.quotingType===Vn?'"'+t+'"':"'"+t+"'";var l=e.indent*Math.max(1,r),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),h=i||e.flowLevel>-1&&r>=e.flowLevel;function d(b){return jL(e,b)}switch(VL(t,h,e.indent,u,d,e.quotingType,e.forceQuotes&&!i,o)){case hh:return t;case Ja:return"'"+t.replace(/'/g,"''")+"'";case fh:return"|"+tc(t,e.indent)+rc(Jl(t,l));case ph:return">"+tc(t,e.indent)+rc(Jl(YL(t,u),l));case fn:return'"'+WL(t)+'"';default:throw new dt("impossible error: invalid scalar style")}}()}function tc(e,t){var r=uh(e)?String(t):"",i=e[e.length-1]===` `,o=i&&(e[e.length-2]===` `||e===` `),l=o?"+":i?"":"-";return r+l+` @@ -28,12 +28,12 @@ import{J as op,K as Tl,S as g0,i as v0,s as _0,e as Cl,b as Ot,L as Pt,g as Nt,v `:"")+nc(d,t),o=l}return i}function nc(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,o=0,l,u=0,h=0,d="";i=r.exec(e);)h=i.index,h-o>t&&(l=u>o?u:h,d+=` `+e.slice(o,l),o=l+1),u=h;return d+=` `,e.length-o>t&&u>o?d+=e.slice(o,u)+` -`+e.slice(u+1):d+=e.slice(o),d.slice(1)}function WL(e){for(var t="",r=0,i,o=0;o=65536?o+=2:o++)r=Rn(e,o),i=lt[r],!i&&Xn(r)?(t+=e[o],r>=65536&&(t+=e[o+1])):t+=i||PL(r);return t}function KL(e,t,r){var i="",o=e.tag,l,u,h;for(l=0,u=r.length;l"u"&&lr(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=o,e.dump="["+i+"]"}function ic(e,t,r,i){var o="",l=e.tag,u,h,d;for(u=0,h=r.length;u"u"&&lr(e,t+1,null,!0,!0,!1,!0))&&((!i||o!=="")&&(o+=Za(e,t)),e.dump&&Gn===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=l,e.dump=o||"[]"}function ZL(e,t,r){var i="",o=e.tag,l=Object.keys(r),u,h,d,b,_;for(u=0,h=l.length;u1024&&(_+="? "),_+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),lr(e,t,b,!1,!1)&&(_+=e.dump,i+=_));e.tag=o,e.dump="{"+i+"}"}function JL(e,t,r,i){var o="",l=e.tag,u=Object.keys(r),h,d,b,_,k,M;if(e.sortKeys===!0)u.sort();else if(typeof e.sortKeys=="function")u.sort(e.sortKeys);else if(e.sortKeys)throw new dt("sortKeys must be a boolean or a function");for(h=0,d=u.length;h1024,k&&(e.dump&&Gn===e.dump.charCodeAt(0)?M+="?":M+="? "),M+=e.dump,k&&(M+=Za(e,t)),lr(e,t+1,_,!0,k)&&(e.dump&&Gn===e.dump.charCodeAt(0)?M+=":":M+=": ",M+=e.dump,o+=M));e.tag=l,e.dump=o||"{}"}function ac(e,t,r){var i,o,l,u,h,d;for(o=r?e.explicitTypes:e.implicitTypes,l=0,u=o.length;l tag resolver accepts not "'+d+'" style');e.dump=i}return!0}return!1}function lr(e,t,r,i,o,l,u){e.tag=null,e.dump=r,ac(e,r,!1)||ac(e,r,!0);var h=nh.call(e.dump),d=i,b;i&&(i=e.flowLevel<0||e.flowLevel>t);var _=h==="[object Object]"||h==="[object Array]",k,M;if(_&&(k=e.duplicates.indexOf(r),M=k!==-1),(e.tag!==null&&e.tag!=="?"||M||e.indent!==2&&t>0)&&(o=!1),M&&e.usedDuplicates[k])e.dump="*ref_"+k;else{if(_&&M&&!e.usedDuplicates[k]&&(e.usedDuplicates[k]=!0),h==="[object Object]")i&&Object.keys(e.dump).length!==0?(JL(e,t,e.dump,o),M&&(e.dump="&ref_"+k+e.dump)):(ZL(e,t,e.dump),M&&(e.dump="&ref_"+k+" "+e.dump));else if(h==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!u&&t>0?ic(e,t-1,e.dump,o):ic(e,t,e.dump,o),M&&(e.dump="&ref_"+k+e.dump)):(KL(e,t,e.dump),M&&(e.dump="&ref_"+k+" "+e.dump));else if(h==="[object String]")e.tag!=="?"&&XL(e,e.dump,t,l,d);else{if(h==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new dt("unacceptable kind of an object to dump "+h)}e.tag!==null&&e.tag!=="?"&&(b=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?b="!"+b:b.slice(0,18)==="tag:yaml.org,2002:"?b="!!"+b.slice(18):b="!<"+b+">",e.dump=b+" "+e.dump)}return!0}function QL(e,t){var r=[],i=[],o,l;for(Qa(e,r,i),o=0,l=i.length;o\n - \\\\ `https://mymarkmap.vercel.app/#URL`\n - En cas de problème : \\\\ `https://mymarkmap.vercel.app/#https://corsproxy.io/%3FURL`\n - Sur une instance Gitlab, il faut utiliser un fichier `.gitlab-ci.yml` pour publier le fichier md sur une page publique et utiliser cette adresse comme URL\n\n## Comment naviguer \\\\dans la carte ?\n- \\\\\\\\Clic sur les **cercles** à l'intersection \\\\ des différentes branches pour \\\\ **afficher ou masquer la suite**\n - \\\\**Alt+clic** sur un cercle pour afficher \\\\ seulement la branche en question\n- **Autres raccourcis**\n - **Alt+clic** sur le texte d'une branche pour la masquer\n - `m` pour masquer ou réafficher la barre de menu\n - `r` pour désactiver ou réactiver le redimensionnement automatique\n\n## Usages plus \\\\ avancés \n\n### Des balises pour \\\\ **contrôler l'affichage** \\\\ de la carte\n\n#### **Markdown** \n\n- `**texte**` : pour mettre en **gras**\n- `_texte_` : pour mettre en _italiques_\n- `[lien](URL)` : pour insérer un [lien](https://eyssette.forge.apps.education.fr/)\n- `![](URL)` : pour insérer une image\n - `![h-25](URL)` : pour spécifier la hauteur \\\\de l'image (de h-25, h-50 … à h-200)\n- ``` `code` ``` : Pour insérer du `code` \n- `==texte==`: Pour surligner du ==texte==\n- `++texte++`: Pour souligner du ++texte++\n\n#### **HTML** \n\n- `
` ou `\\\\` pour forcer le passage à la ligne\n- `texte` \\\\ pour changer le style d'un élément\n \n#### **Autres \\\\ balises** \n\n- `` en fin de ligne pour que les \\\\ sous-branches soient cachées par défaut : \\\\ il faut cliquer sur le cercle pour afficher la suite\n - Cette branche est cachée par défaut !\n - Cette branche aussi !\n- `:code_emoji:` : pour insérer un code pour un emoji [:link:](https://raw.githubusercontent.com/omnidan/node-emoji/master/lib/emoji.json)\n- `{{partie masquée}}` pour masquer une partie \\\\ d'un texte : voici par exemple un {{passage}} masqué \\\\ (cliquer dessus pour afficher / masquer à nouveau)\n\n### Un **en-tête** (YAML) \\\\ pour des options de \\\\configuration plus avancées \n\n- Pour spécifier la largeur \\\\ maximale d'une branche\n - ```maxWidth: 300```\n- Pour empêcher le changement de \\\\couleur des sous-branches à partir \\\\d'un certain niveau\n - ```colorFreezeLevel: 2``` \\\\ (pour que chaque branche \\\\ait sa propre couleur)\n- Pour ajouter des styles \\\\CSS spécifiques\n - ```style: strong{color:red}```\n- Pour ajouter un \\\\thème spécifique\n - ```theme: focus```\n - Seul le thème `focus` est \\\\disponible pour le moment\n- Pour ajouter un titre\n - ```title: Mon titre```\n- Pour masquer par défaut \\\\les sous-branches à partir\\\\ d'un certain niveau\n - ```initialExpandLevel: 1```\n- Pour forcer l'ouverture des \\\\liens dans un nouvel onglet\n - ```openLinksInNewTab: true```\n")),Fn=or(""),eo=or(!1),to=or(!1),vq=or(),_q=or();function bq(e){const t=e-1;return t*t*t+1}function yq(e,{delay:t=0,duration:r=400,easing:i=op}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:i,css:l=>`opacity: ${l*o}`}}function wq(e,{delay:t=0,duration:r=400,easing:i=bq,x:o=0,y:l=0,opacity:u=0}={}){const h=getComputedStyle(e),d=+h.opacity,b=h.transform==="none"?"":h.transform,_=d*(1-u),[k,M]=Tl(o),[E,B]=Tl(l);return{delay:t,duration:r,easing:i,css:(O,P)=>` - transform: ${b} translate(${(1-O)*k}${M}, ${(1-O)*E}${B}); - opacity: ${d-_*P}`}}var Vt=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:globalThis;function xq(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function Ma(e,t,r){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){ro(i.response,t,r)},i.onerror=function(){console.error("could not download file")},i.send()}function oc(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ni(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var sc=Vt.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),ro=Vt.saveAs||(typeof window!="object"||window!==Vt?function(){}:"download"in HTMLAnchorElement.prototype&&!sc?function(t,r,i){var o=Vt.URL||Vt.webkitURL,l=document.createElement("a");r=r||t.name||"download",l.download=r,l.rel="noopener",typeof t=="string"?(l.href=t,l.origin!==location.origin?oc(l.href)?Ma(t,r,i):Ni(l,l.target="_blank"):Ni(l)):(l.href=o.createObjectURL(t),setTimeout(function(){o.revokeObjectURL(l.href)},4e4),setTimeout(function(){Ni(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,r,i){if(r=r||t.name||"download",typeof t=="string")if(oc(t))Ma(t,r,i);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){Ni(o)})}else navigator.msSaveOrOpenBlob(xq(t,i),r)}:function(t,r,i,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof t=="string")return Ma(t,r,i);var l=t.type==="application/octet-stream",u=/constructor/i.test(Vt.HTMLElement)||Vt.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||l&&u||sc)&&typeof FileReader<"u"){var d=new FileReader;d.onloadend=function(){var k=d.result;k=h?k:k.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=k:location=k,o=null},d.readAsDataURL(t)}else{var b=Vt.URL||Vt.webkitURL,_=b.createObjectURL(t);o?o.location=_:location.href=_,o=null,setTimeout(function(){b.revokeObjectURL(_)},4e4)}});Vt.saveAs=ro.saveAs=ro;function lc(e){let t,r,i,o,l,u,h,d,b,_,k,M,E,B,O,P,D;function W(_e,be){return _e[3]?Aq:kq}let ce=W(e),ue=ce(e),Z=e[2]&&cc();return{c(){t=vt("nav"),ue.c(),r=Pr(),i=vt("a"),o=kr("🌐"),l=Pr(),u=vt("a"),h=kr("💾"),d=Pr(),b=vt("a"),_=kr("🔗"),k=Pr(),Z&&Z.c(),M=Pr(),E=vt("a"),B=kr("❓"),this.h()},l(_e){t=_t(_e,"NAV",{id:!0,class:!0});var be=pt(t);ue.l(be),r=Hr(be),i=_t(be,"A",{href:!0,class:!0});var He=pt(i);o=Ar(He,"🌐"),He.forEach(Pe),l=Hr(be),u=_t(be,"A",{href:!0,class:!0});var Se=pt(u);h=Ar(Se,"💾"),Se.forEach(Pe),d=Hr(be),b=_t(be,"A",{href:!0,class:!0});var Ge=pt(b);_=Ar(Ge,"🔗"),Ge.forEach(Pe),k=Hr(be),Z&&Z.l(be),M=Hr(be),E=_t(be,"A",{href:!0,target:!0,rel:!0,class:!0});var q=pt(E);B=Ar(q,"❓"),q.forEach(Pe),be.forEach(Pe),this.h()},h(){Re(i,"href","#saveHTML"),Re(i,"class","svelte-4wmhyd"),Re(u,"href","#saveSVG"),Re(u,"class","svelte-4wmhyd"),Re(b,"href","#share"),Re(b,"class","svelte-4wmhyd"),Re(E,"href",e[4]),Re(E,"target","_blank"),Re(E,"rel","noreferrer"),Re(E,"class","svelte-4wmhyd"),Re(t,"id","menu"),Re(t,"class","svelte-4wmhyd")},m(_e,be){Ot(_e,t,be),ue.m(t,null),it(t,r),it(t,i),it(i,o),it(t,l),it(t,u),it(u,h),it(t,d),it(t,b),it(b,_),it(t,k),Z&&Z.m(t,null),it(t,M),it(t,E),it(E,B),e[12](t),O=!0,P||(D=[Pt(i,"click",Hn(e[8])),Pt(u,"click",Hn(e[7])),Pt(b,"click",Hn(e[9]))],P=!0)},p(_e,be){ce===(ce=W(_e))&&ue?ue.p(_e,be):(ue.d(1),ue=ce(_e),ue&&(ue.c(),ue.m(t,r))),_e[2]?Z?be&4&&Nt(Z,1):(Z=cc(),Z.c(),Nt(Z,1),Z.m(t,M)):Z&&(wo(),Xt(Z,1,1,()=>{Z=null}),xo()),(!O||be&16)&&Re(E,"href",_e[4])},i(_e){O||(Nt(Z),O=!0)},o(_e){Xt(Z),O=!1},d(_e){_e&&Pe(t),ue.d(),Z&&Z.d(),e[12](null),P=!1,ko(D)}}}function kq(e){let t,r,i,o;return{c(){t=vt("a"),r=kr("✒️"),this.h()},l(l){t=_t(l,"A",{href:!0,class:!0});var u=pt(t);r=Ar(u,"✒️"),u.forEach(Pe),this.h()},h(){Re(t,"href","#edit"),Re(t,"class","svelte-4wmhyd")},m(l,u){Ot(l,t,u),it(t,r),i||(o=Pt(t,"click",Hn(e[5])),i=!0)},p:Er,d(l){l&&Pe(t),i=!1,o()}}}function Aq(e){let t,r,i,o;return{c(){t=vt("a"),r=kr("👓"),this.h()},l(l){t=_t(l,"A",{href:!0,class:!0});var u=pt(t);r=Ar(u,"👓"),u.forEach(Pe),this.h()},h(){Re(t,"href","#edit"),Re(t,"class","svelte-4wmhyd")},m(l,u){Ot(l,t,u),it(t,r),i||(o=Pt(t,"click",Hn(e[6])),i=!0)},p:Er,d(l){l&&Pe(t),i=!1,o()}}}function cc(e){let t,r,i,o,l;return{c(){t=vt("div"),r=kr("Lien copié dans le presse-papier !"),this.h()},l(u){t=_t(u,"DIV",{id:!0,class:!0});var h=pt(t);r=Ar(h,"Lien copié dans le presse-papier !"),h.forEach(Pe),this.h()},h(){Re(t,"id","shareNotification"),Re(t,"class","svelte-4wmhyd")},m(u,h){Ot(u,t,h),it(t,r),l=!0},i(u){l||(Ao(()=>{l&&(o&&o.end(1),i=sp(t,wq,{y:50,duration:1e3}),i.start())}),l=!0)},o(u){i&&i.invalidate(),o=lp(t,yq,{}),l=!1},d(u){u&&Pe(t),u&&o&&o.end()}}}function Sq(e){let t,r,i,o,l=e[0]&&lc(e);return{c(){l&&l.c(),t=Cl()},l(u){l&&l.l(u),t=Cl()},m(u,h){l&&l.m(u,h),Ot(u,t,h),r=!0,i||(o=[Pt(window,"keydown",e[10]),Pt(window,"beforeunload",Mq)],i=!0)},p(u,[h]){u[0]?l?(l.p(u,h),h&1&&Nt(l,1)):(l=lc(u),l.c(),Nt(l,1),l.m(t.parentNode,t)):l&&(wo(),Xt(l,1,1,()=>{l=null}),xo())},i(u){r||(Nt(l),r=!0)},o(u){Xt(l),r=!1},d(u){l&&l.d(u),u&&Pe(t),i=!1,ko(o)}}}function Mq(e){return e.preventDefault(),e.returnValue=""}function Eq(e,t,r){let i,o,l;Dt(e,$n,Z=>r(3,i=Z)),Dt(e,Fn,Z=>r(4,o=Z)),Dt(e,Mu,Z=>r(15,l=Z));let{source:u}=t,h,d,b=!1,_;function k(){r(2,W=!1),$n.update(Z=>!0)}function M(){$n.update(Z=>!1)}function E(){eo.update(Z=>!0)}function B(){to.update(Z=>!0)}function O(){r(0,b=!b)}l&&l.searchParams&&l.searchParams.get("m")==0?b=!1:b=!0;function P(){ce(),d=encodeURI(u),h=o+"/#"+d,navigator.clipboard.writeText(h)}function D(Z){i?Z.key==="Escape"&&(r(1,_.style.display="block",_),M()):(Z.key==="e"&&(Z.preventDefault(),r(1,_.style.display="block",_),k()),Z.key==="s"&&(r(1,_.style.display="block",_),E()),Z.key==="h"&&(r(1,_.style.display="block",_),B()),Z.key==="l"&&(r(1,_.style.display="block",_),P()),Z.key=="m"&&O())}let W=!1;function ce(){r(2,W=!0),setTimeout(function(){r(2,W=!1)},1500)}function ue(Z){Xi[Z?"unshift":"push"](()=>{_=Z,r(1,_)})}return e.$$set=Z=>{"source"in Z&&r(11,u=Z.source)},[b,_,W,i,o,k,M,E,B,P,D,u,ue]}class Tq extends g0{constructor(t){super(),v0(this,t,Eq,Sq,_0,{source:11})}}function Cq(e){const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(l,{begin:/\(/,end:/\)/}),h=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[l,d,h,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[l,u,d,h]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:b}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function zq(e){const t=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},o={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},l={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},h=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,h,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},_={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},k=e.inherit(b,{contains:[]}),M=e.inherit(_,{contains:[]});b.contains.push(M),_.contains.push(k);let E=[r,d];return[b,_,k,M].forEach(P=>{P.contains=P.contains.concat(E)}),E=E.concat(b,_),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:E},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:E}]}]},r,l,b,_,{className:"quote",begin:"^>\\s+",contains:E,end:"$"},o,i,d,u]}}function mh(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const r=e[t],i=typeof r;(i==="object"||i==="function")&&!Object.isFrozen(r)&&mh(r)}),e}class uc{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function gh(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Mr(e,...t){const r=Object.create(null);for(const i in e)r[i]=e[i];return t.forEach(function(i){for(const o in i)r[o]=i[o]}),r}const Bq="",hc=e=>!!e.scope,Nq=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const r=e.split(".");return[`${t}${r.shift()}`,...r.map((i,o)=>`${i}${"_".repeat(o+1)}`)].join(" ")}return`${t}${e}`};class Dq{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=gh(t)}openNode(t){if(!hc(t))return;const r=Nq(t.scope,{prefix:this.classPrefix});this.span(r)}closeNode(t){hc(t)&&(this.buffer+=Bq)}value(){return this.buffer}span(t){this.buffer+=``}}const fc=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Io{constructor(){this.rootNode=fc(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r=fc({scope:t});this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(i=>this._walk(t,i)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{Io._collapse(r)}))}}class Oq extends Io{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,r){const i=t.root;r&&(i.scope=`language:${r}`),this.add(i)}toHTML(){return new Dq(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Yn(e){return e?typeof e=="string"?e:e.source:null}function vh(e){return Wr("(?=",e,")")}function Iq(e){return Wr("(?:",e,")*")}function Rq(e){return Wr("(?:",e,")?")}function Wr(...e){return e.map(r=>Yn(r)).join("")}function Fq(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ro(...e){return"("+(Fq(e).capture?"":"?:")+e.map(i=>Yn(i)).join("|")+")"}function _h(e){return new RegExp(e.toString()+"|").exec("").length-1}function Lq(e,t){const r=e&&e.exec(t);return r&&r.index===0}const qq=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Fo(e,{joinWith:t}){let r=0;return e.map(i=>{r+=1;const o=r;let l=Yn(i),u="";for(;l.length>0;){const h=qq.exec(l);if(!h){u+=l;break}u+=l.substring(0,h.index),l=l.substring(h.index+h[0].length),h[0][0]==="\\"&&h[1]?u+="\\"+String(Number(h[1])+o):(u+=h[0],h[0]==="("&&r++)}return u}).map(i=>`(${i})`).join(t)}const Pq=/\b\B/,bh="[a-zA-Z]\\w*",Lo="[a-zA-Z_]\\w*",yh="\\b\\d+(\\.\\d+)?",wh="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",xh="\\b(0b[01]+)",Hq="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",$q=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Wr(t,/.*\b/,e.binary,/\b.*/)),Mr({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,i)=>{r.index!==0&&i.ignoreMatch()}},e)},Wn={begin:"\\\\[\\s\\S]",relevance:0},jq={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Wn]},Uq={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Wn]},Gq={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},w0=function(e,t,r={}){const i=Mr({scope:"comment",begin:e,end:t,contains:[]},r);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=Ro("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:Wr(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Vq=w0("//","$"),Xq=w0("/\\*","\\*/"),Yq=w0("#","$"),Wq={scope:"number",begin:yh,relevance:0},Kq={scope:"number",begin:wh,relevance:0},Zq={scope:"number",begin:xh,relevance:0},Jq={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Wn,{begin:/\[/,end:/\]/,relevance:0,contains:[Wn]}]},Qq={scope:"title",begin:bh,relevance:0},eP={scope:"title",begin:Lo,relevance:0},tP={begin:"\\.\\s*"+Lo,relevance:0},rP=function(e){return Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}})};var Di=Object.freeze({__proto__:null,APOS_STRING_MODE:jq,BACKSLASH_ESCAPE:Wn,BINARY_NUMBER_MODE:Zq,BINARY_NUMBER_RE:xh,COMMENT:w0,C_BLOCK_COMMENT_MODE:Xq,C_LINE_COMMENT_MODE:Vq,C_NUMBER_MODE:Kq,C_NUMBER_RE:wh,END_SAME_AS_BEGIN:rP,HASH_COMMENT_MODE:Yq,IDENT_RE:bh,MATCH_NOTHING_RE:Pq,METHOD_GUARD:tP,NUMBER_MODE:Wq,NUMBER_RE:yh,PHRASAL_WORDS_MODE:Gq,QUOTE_STRING_MODE:Uq,REGEXP_MODE:Jq,RE_STARTERS_RE:Hq,SHEBANG:$q,TITLE_MODE:Qq,UNDERSCORE_IDENT_RE:Lo,UNDERSCORE_TITLE_MODE:eP});function nP(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function iP(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function aP(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=nP,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function oP(e,t){Array.isArray(e.illegal)&&(e.illegal=Ro(...e.illegal))}function sP(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function lP(e,t){e.relevance===void 0&&(e.relevance=1)}const cP=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const r=Object.assign({},e);Object.keys(e).forEach(i=>{delete e[i]}),e.keywords=r.keywords,e.begin=Wr(r.beforeMatch,vh(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},uP=["of","and","for","in","not","or","if","then","parent","list","value"],hP="keyword";function kh(e,t,r=hP){const i=Object.create(null);return typeof e=="string"?o(r,e.split(" ")):Array.isArray(e)?o(r,e):Object.keys(e).forEach(function(l){Object.assign(i,kh(e[l],t,l))}),i;function o(l,u){t&&(u=u.map(h=>h.toLowerCase())),u.forEach(function(h){const d=h.split("|");i[d[0]]=[l,fP(d[0],d[1])]})}}function fP(e,t){return t?Number(t):pP(e)?0:1}function pP(e){return uP.includes(e.toLowerCase())}const pc={},Gr=e=>{console.error(e)},dc=(e,...t)=>{console.log(`WARN: ${e}`,...t)},cn=(e,t)=>{pc[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),pc[`${e}/${t}`]=!0)},o0=new Error;function Ah(e,t,{key:r}){let i=0;const o=e[r],l={},u={};for(let h=1;h<=t.length;h++)u[h+i]=o[h],l[h+i]=!0,i+=_h(t[h-1]);e[r]=u,e[r]._emit=l,e[r]._multi=!0}function dP(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Gr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),o0;if(typeof e.beginScope!="object"||e.beginScope===null)throw Gr("beginScope must be object"),o0;Ah(e,e.begin,{key:"beginScope"}),e.begin=Fo(e.begin,{joinWith:""})}}function mP(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Gr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),o0;if(typeof e.endScope!="object"||e.endScope===null)throw Gr("endScope must be object"),o0;Ah(e,e.end,{key:"endScope"}),e.end=Fo(e.end,{joinWith:""})}}function gP(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function vP(e){gP(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),dP(e),mP(e)}function _P(e){function t(u,h){return new RegExp(Yn(u),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(h?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(h,d){d.position=this.position++,this.matchIndexes[this.matchAt]=d,this.regexes.push([d,h]),this.matchAt+=_h(h)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const h=this.regexes.map(d=>d[1]);this.matcherRe=t(Fo(h,{joinWith:"|"}),!0),this.lastIndex=0}exec(h){this.matcherRe.lastIndex=this.lastIndex;const d=this.matcherRe.exec(h);if(!d)return null;const b=d.findIndex((k,M)=>M>0&&k!==void 0),_=this.matchIndexes[b];return d.splice(0,b),Object.assign(d,_)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(h){if(this.multiRegexes[h])return this.multiRegexes[h];const d=new r;return this.rules.slice(h).forEach(([b,_])=>d.addRule(b,_)),d.compile(),this.multiRegexes[h]=d,d}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(h,d){this.rules.push([h,d]),d.type==="begin"&&this.count++}exec(h){const d=this.getMatcher(this.regexIndex);d.lastIndex=this.lastIndex;let b=d.exec(h);if(this.resumingScanAtSamePosition()&&!(b&&b.index===this.lastIndex)){const _=this.getMatcher(0);_.lastIndex=this.lastIndex+1,b=_.exec(h)}return b&&(this.regexIndex+=b.position+1,this.regexIndex===this.count&&this.considerAll()),b}}function o(u){const h=new i;return u.contains.forEach(d=>h.addRule(d.begin,{rule:d,type:"begin"})),u.terminatorEnd&&h.addRule(u.terminatorEnd,{type:"end"}),u.illegal&&h.addRule(u.illegal,{type:"illegal"}),h}function l(u,h){const d=u;if(u.isCompiled)return d;[iP,sP,vP,cP].forEach(_=>_(u,h)),e.compilerExtensions.forEach(_=>_(u,h)),u.__beforeBegin=null,[aP,oP,lP].forEach(_=>_(u,h)),u.isCompiled=!0;let b=null;return typeof u.keywords=="object"&&u.keywords.$pattern&&(u.keywords=Object.assign({},u.keywords),b=u.keywords.$pattern,delete u.keywords.$pattern),b=b||/\w+/,u.keywords&&(u.keywords=kh(u.keywords,e.case_insensitive)),d.keywordPatternRe=t(b,!0),h&&(u.begin||(u.begin=/\B|\b/),d.beginRe=t(d.begin),!u.end&&!u.endsWithParent&&(u.end=/\B|\b/),u.end&&(d.endRe=t(d.end)),d.terminatorEnd=Yn(d.end)||"",u.endsWithParent&&h.terminatorEnd&&(d.terminatorEnd+=(u.end?"|":"")+h.terminatorEnd)),u.illegal&&(d.illegalRe=t(u.illegal)),u.contains||(u.contains=[]),u.contains=[].concat(...u.contains.map(function(_){return bP(_==="self"?u:_)})),u.contains.forEach(function(_){l(_,d)}),u.starts&&l(u.starts,h),d.matcher=o(d),d}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Mr(e.classNameAliases||{}),l(e)}function Sh(e){return e?e.endsWithParent||Sh(e.starts):!1}function bP(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Mr(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Sh(e)?Mr(e,{starts:e.starts?Mr(e.starts):null}):Object.isFrozen(e)?Mr(e):e}var yP="11.9.0";class wP extends Error{constructor(t,r){super(t),this.name="HTMLInjectionError",this.html=r}}const Ea=gh,mc=Mr,gc=Symbol("nomatch"),xP=7,Mh=function(e){const t=Object.create(null),r=Object.create(null),i=[];let o=!0;const l="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let h={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Oq};function d(F){return h.noHighlightRe.test(F)}function b(F){let X=F.className+" ";X+=F.parentNode?F.parentNode.className:"";const ee=h.languageDetectRe.exec(X);if(ee){const ae=Se(ee[1]);return ae||(dc(l.replace("{}",ee[1])),dc("Falling back to no-highlight mode for this block.",F)),ae?ee[1]:"no-highlight"}return X.split(/\s+/).find(ae=>d(ae)||Se(ae))}function _(F,X,ee){let ae="",V="";typeof X=="object"?(ae=F,ee=X.ignoreIllegals,V=X.language):(cn("10.7.0","highlight(lang, code, ...args) has been deprecated."),cn("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),V=F,ae=X),ee===void 0&&(ee=!0);const we={code:ae,language:V};U("before:highlight",we);const Fe=we.result?we.result:k(we.language,we.code,ee);return Fe.code=we.code,U("after:highlight",Fe),Fe}function k(F,X,ee,ae){const V=Object.create(null);function we(re,le){return re.keywords[le]}function Fe(){if(!pe.keywords){Je.addText(Le);return}let re=0;pe.keywordPatternRe.lastIndex=0;let le=pe.keywordPatternRe.exec(Le),ye="";for(;le;){ye+=Le.substring(re,le.index);const Ce=xt.case_insensitive?le[0].toLowerCase():le[0],Qe=we(pe,Ce);if(Qe){const[Rt,si]=Qe;if(Je.addText(ye),ye="",V[Ce]=(V[Ce]||0)+1,V[Ce]<=xP&&(ur+=si),Rt.startsWith("_"))ye+=le[0];else{const $e=xt.classNameAliases[Rt]||Rt;Ne(le[0],$e)}}else ye+=le[0];re=pe.keywordPatternRe.lastIndex,le=pe.keywordPatternRe.exec(Le)}ye+=Le.substring(re),Je.addText(ye)}function ze(){if(Le==="")return;let re=null;if(typeof pe.subLanguage=="string"){if(!t[pe.subLanguage]){Je.addText(Le);return}re=k(pe.subLanguage,Le,!0,Nr[pe.subLanguage]),Nr[pe.subLanguage]=re._top}else re=E(Le,pe.subLanguage.length?pe.subLanguage:null);pe.relevance>0&&(ur+=re.relevance),Je.__addSublanguage(re._emitter,re.language)}function Be(){pe.subLanguage!=null?ze():Fe(),Le=""}function Ne(re,le){re!==""&&(Je.startScope(le),Je.addText(re),Je.endScope())}function rt(re,le){let ye=1;const Ce=le.length-1;for(;ye<=Ce;){if(!re._emit[ye]){ye++;continue}const Qe=xt.classNameAliases[re[ye]]||re[ye],Rt=le[ye];Qe?Ne(Rt,Qe):(Le=Rt,Fe(),Le=""),ye++}}function ct(re,le){return re.scope&&typeof re.scope=="string"&&Je.openNode(xt.classNameAliases[re.scope]||re.scope),re.beginScope&&(re.beginScope._wrap?(Ne(Le,xt.classNameAliases[re.beginScope._wrap]||re.beginScope._wrap),Le=""):re.beginScope._multi&&(rt(re.beginScope,le),Le="")),pe=Object.create(re,{parent:{value:pe}}),pe}function $t(re,le,ye){let Ce=Lq(re.endRe,ye);if(Ce){if(re["on:end"]){const Qe=new uc(re);re["on:end"](le,Qe),Qe.isMatchIgnored&&(Ce=!1)}if(Ce){for(;re.endsParent&&re.parent;)re=re.parent;return re}}if(re.endsWithParent)return $t(re.parent,le,ye)}function C0(re){return pe.matcher.regexIndex===0?(Le+=re[0],1):(An=!0,0)}function z0(re){const le=re[0],ye=re.rule,Ce=new uc(ye),Qe=[ye.__beforeBegin,ye["on:begin"]];for(const Rt of Qe)if(Rt&&(Rt(re,Ce),Ce.isMatchIgnored))return C0(le);return ye.skip?Le+=le:(ye.excludeBegin&&(Le+=le),Be(),!ye.returnBegin&&!ye.excludeBegin&&(Le=le)),ct(ye,re),ye.returnBegin?0:le.length}function B0(re){const le=re[0],ye=X.substring(re.index),Ce=$t(pe,re,ye);if(!Ce)return gc;const Qe=pe;pe.endScope&&pe.endScope._wrap?(Be(),Ne(le,pe.endScope._wrap)):pe.endScope&&pe.endScope._multi?(Be(),rt(pe.endScope,re)):Qe.skip?Le+=le:(Qe.returnEnd||Qe.excludeEnd||(Le+=le),Be(),Qe.excludeEnd&&(Le=le));do pe.scope&&Je.closeNode(),!pe.skip&&!pe.subLanguage&&(ur+=pe.relevance),pe=pe.parent;while(pe!==Ce.parent);return Ce.starts&&ct(Ce.starts,re),Qe.returnEnd?0:le.length}function N0(){const re=[];for(let le=pe;le!==xt;le=le.parent)le.scope&&re.unshift(le.scope);re.forEach(le=>Je.openNode(le))}let Qr={};function oi(re,le){const ye=le&&le[0];if(Le+=re,ye==null)return Be(),0;if(Qr.type==="begin"&&le.type==="end"&&Qr.index===le.index&&ye===""){if(Le+=X.slice(le.index,le.index+1),!o){const Ce=new Error(`0 width match regex (${F})`);throw Ce.languageName=F,Ce.badRule=Qr.rule,Ce}return 1}if(Qr=le,le.type==="begin")return z0(le);if(le.type==="illegal"&&!ee){const Ce=new Error('Illegal lexeme "'+ye+'" for mode "'+(pe.scope||"")+'"');throw Ce.mode=pe,Ce}else if(le.type==="end"){const Ce=B0(le);if(Ce!==gc)return Ce}if(le.type==="illegal"&&ye==="")return 1;if(kn>1e5&&kn>le.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=ye,ye.length}const xt=Se(F);if(!xt)throw Gr(l.replace("{}",F)),new Error('Unknown language: "'+F+'"');const D0=_P(xt);let Zt="",pe=ae||D0;const Nr={},Je=new h.__emitter(h);N0();let Le="",ur=0,It=0,kn=0,An=!1;try{if(xt.__emitTokens)xt.__emitTokens(X,Je);else{for(pe.matcher.considerAll();;){kn++,An?An=!1:pe.matcher.considerAll(),pe.matcher.lastIndex=It;const re=pe.matcher.exec(X);if(!re)break;const le=X.substring(It,re.index),ye=oi(le,re);It=re.index+ye}oi(X.substring(It))}return Je.finalize(),Zt=Je.toHTML(),{language:F,value:Zt,relevance:ur,illegal:!1,_emitter:Je,_top:pe}}catch(re){if(re.message&&re.message.includes("Illegal"))return{language:F,value:Ea(X),illegal:!0,relevance:0,_illegalBy:{message:re.message,index:It,context:X.slice(It-100,It+100),mode:re.mode,resultSoFar:Zt},_emitter:Je};if(o)return{language:F,value:Ea(X),illegal:!1,relevance:0,errorRaised:re,_emitter:Je,_top:pe};throw re}}function M(F){const X={value:Ea(F),illegal:!1,relevance:0,_top:u,_emitter:new h.__emitter(h)};return X._emitter.addText(F),X}function E(F,X){X=X||h.languages||Object.keys(t);const ee=M(F),ae=X.filter(Se).filter(q).map(Be=>k(Be,F,!1));ae.unshift(ee);const V=ae.sort((Be,Ne)=>{if(Be.relevance!==Ne.relevance)return Ne.relevance-Be.relevance;if(Be.language&&Ne.language){if(Se(Be.language).supersetOf===Ne.language)return 1;if(Se(Ne.language).supersetOf===Be.language)return-1}return 0}),[we,Fe]=V,ze=we;return ze.secondBest=Fe,ze}function B(F,X,ee){const ae=X&&r[X]||ee;F.classList.add("hljs"),F.classList.add(`language-${ae}`)}function O(F){let X=null;const ee=b(F);if(d(ee))return;if(U("before:highlightElement",{el:F,language:ee}),F.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",F);return}if(F.children.length>0&&(h.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(F)),h.throwUnescapedHTML))throw new wP("One of your code blocks includes unescaped HTML.",F.innerHTML);X=F;const ae=X.textContent,V=ee?_(ae,{language:ee,ignoreIllegals:!0}):E(ae);F.innerHTML=V.value,F.dataset.highlighted="yes",B(F,ee,V.language),F.result={language:V.language,re:V.relevance,relevance:V.relevance},V.secondBest&&(F.secondBest={language:V.secondBest.language,relevance:V.secondBest.relevance}),U("after:highlightElement",{el:F,result:V,text:ae})}function P(F){h=mc(h,F)}const D=()=>{ue(),cn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function W(){ue(),cn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ce=!1;function ue(){if(document.readyState==="loading"){ce=!0;return}document.querySelectorAll(h.cssSelector).forEach(O)}function Z(){ce&&ue()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Z,!1);function _e(F,X){let ee=null;try{ee=X(e)}catch(ae){if(Gr("Language definition for '{}' could not be registered.".replace("{}",F)),o)Gr(ae);else throw ae;ee=u}ee.name||(ee.name=F),t[F]=ee,ee.rawDefinition=X.bind(null,e),ee.aliases&&Ge(ee.aliases,{languageName:F})}function be(F){delete t[F];for(const X of Object.keys(r))r[X]===F&&delete r[X]}function He(){return Object.keys(t)}function Se(F){return F=(F||"").toLowerCase(),t[F]||t[r[F]]}function Ge(F,{languageName:X}){typeof F=="string"&&(F=[F]),F.forEach(ee=>{r[ee.toLowerCase()]=X})}function q(F){const X=Se(F);return X&&!X.disableAutodetect}function de(F){F["before:highlightBlock"]&&!F["before:highlightElement"]&&(F["before:highlightElement"]=X=>{F["before:highlightBlock"](Object.assign({block:X.el},X))}),F["after:highlightBlock"]&&!F["after:highlightElement"]&&(F["after:highlightElement"]=X=>{F["after:highlightBlock"](Object.assign({block:X.el},X))})}function Ae(F){de(F),i.push(F)}function L(F){const X=i.indexOf(F);X!==-1&&i.splice(X,1)}function U(F,X){const ee=F;i.forEach(function(ae){ae[ee]&&ae[ee](X)})}function G(F){return cn("10.7.0","highlightBlock will be removed entirely in v12.0"),cn("10.7.0","Please use highlightElement now."),O(F)}Object.assign(e,{highlight:_,highlightAuto:E,highlightAll:ue,highlightElement:O,highlightBlock:G,configure:P,initHighlighting:D,initHighlightingOnLoad:W,registerLanguage:_e,unregisterLanguage:be,listLanguages:He,getLanguage:Se,registerAliases:Ge,autoDetection:q,inherit:mc,addPlugin:Ae,removePlugin:L}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=yP,e.regex={concat:Wr,lookahead:vh,either:Ro,optional:Rq,anyNumberOfTimes:Iq};for(const F in Di)typeof Di[F]=="object"&&mh(Di[F]);return Object.assign(e,Di),e},bn=Mh({});bn.newInstance=()=>Mh({});var kP=bn;bn.HighlightJS=bn;bn.default=bn;const qo=Mo(kP);function AP(e){let t,r,i;return{c(){t=vt("textarea"),this.h()},l(o){t=_t(o,"TEXTAREA",{rows:!0,cols:!0,class:!0}),pt(t).forEach(Pe),this.h()},h(){Re(t,"rows","20"),Re(t,"cols","50"),Re(t,"class","svelte-1gj3b73"),Yi(t,"hidden",!e[2])},m(o,l){Ot(o,t,l),Bl(t,e[1]),r||(i=Pt(t,"input",e[8]),r=!0)},p(o,l){l&2&&Bl(t,o[1]),l&4&&Yi(t,"hidden",!o[2])},d(o){o&&Pe(t),r=!1,i()}}}function SP(e){let t,r,i;return{c(){t=vt("pre"),this.h()},l(o){t=_t(o,"PRE",{contenteditable:!0,class:!0}),pt(t).forEach(Pe),this.h()},h(){Re(t,"contenteditable","true"),Re(t,"class","editor"),e[1]===void 0&&Ao(()=>e[7].call(t)),Yi(t,"hidden",!e[2])},m(o,l){Ot(o,t,l),e[6](t),e[1]!==void 0&&(t.textContent=e[1]),r||(i=Pt(t,"input",e[7]),r=!0)},p(o,l){l&2&&o[1]!==t.textContent&&(t.textContent=o[1]),l&4&&Yi(t,"hidden",!o[2])},d(o){o&&Pe(t),e[6](null),r=!1,i()}}}function MP(e){let t,r;return{c(){t=vt("div"),r=kr("Éditeur en cours de chargement")},l(i){t=_t(i,"DIV",{});var o=pt(t);r=Ar(o,"Éditeur en cours de chargement"),o.forEach(Pe)},m(i,o){Ot(i,t,o),it(t,r)},p:Er,d(i){i&&Pe(t)}}}function EP(e){let t,r,i={ctx:e,current:null,token:null,hasCatch:!0,pending:MP,then:SP,catch:AP,error:12};return zl(r=e[4],i),{c(){t=vt("div"),i.block.c()},l(o){t=_t(o,"DIV",{});var l=pt(t);i.block.l(l),l.forEach(Pe)},m(o,l){Ot(o,t,l),i.block.m(t,i.anchor=null),i.mount=()=>t,i.anchor=null,e[9](t)},p(o,[l]){e=o,i.ctx=e,l&16&&r!==(r=e[4])&&zl(r,i)||cp(i,e,l)},i:Er,o:Er,d(o){o&&Pe(t),i.block.d(),i.token=null,i=null,e[9](null)}}}qo.registerLanguage("markdown",zq);qo.registerLanguage("xml",Cq);function TP(e,t,r){let i,o;Dt(e,Sr,B=>r(1,i=B)),Dt(e,$n,B=>r(2,o=B));let l,u;const h=B=>{let O=B.textContent;O=O.replace(/:(.*)_(.*?):/g,":$1@underscore$2:"),O=O.replace(/:(.*)_(.*?):/g,":$1@underscore$2:"),O=O.replace(/:(.*)_(.*?):/g,":$1@underscore$2:"),O=qo.highlight(O,{language:"markdown",ignoreUnescapedHTML:!1}).value,O=O.replace(/\\\\/g,'\\\\').replace(/<!--(.*?)-->/g,'<!--$1-->').replace(/<!--(\s*?)fold(\s*?)-->/g,'<!--$1fold$2-->'),O=O.replace(/@underscore/g,"_"),B.innerHTML=O};let d,b;So(async()=>{r(4,{CodeJar:b}=await mp(()=>import("../chunks/codejar.c0a238b2.js"),[],import.meta.url),b),r(5,d=await b(u,h,{history:!0}))});function _(B){Xi[B?"unshift":"push"](()=>{u=B,r(3,u)})}function k(){i=this.textContent,Sr.set(i)}function M(){i=this.value,Sr.set(i)}function E(B){Xi[B?"unshift":"push"](()=>{l=B,r(0,l)})}return e.$$.update=()=>{e.$$.dirty&4,e.$$.dirty&5&&o==!0&&setTimeout(function(){l.firstChild.focus()},0),e.$$.dirty&34&&d&&d.onUpdate(B=>{d.toString()!=i&&Sr.update(O=>B)})},[l,i,o,u,b,d,_,k,M,E]}class CP extends g0{constructor(t){super(),v0(this,t,TP,EP,_0,{})}}var Oi;function Eh(e){return Oi=Oi||document.createElement("textarea"),Oi.innerHTML="&"+e+";",Oi.value}var zP=Object.prototype.hasOwnProperty;function BP(e,t){return e?zP.call(e,t):!1}function Th(e){var t=[].slice.call(arguments,1);return t.forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(i){e[i]=r[i]})}}),e}var NP=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Kn(e){return e.indexOf("\\")<0?e:e.replace(NP,"$1")}function Ch(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function no(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var DP=/&([a-z#][a-z0-9]{1,31});/gi,OP=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function IP(e,t){var r=0,i=Eh(t);return t!==i?i:t.charCodeAt(0)===35&&OP.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Ch(r))?no(r):e}function Xr(e){return e.indexOf("&")<0?e:e.replace(DP,IP)}var RP=/[&<>"]/,FP=/[&<>"]/g,LP={"&":"&","<":"<",">":">",'"':"""};function qP(e){return LP[e]}function wt(e){return RP.test(e)?e.replace(FP,qP):e}var se={};se.blockquote_open=function(){return`
-`};se.blockquote_close=function(e,t){return"
"+Kr(e,t)};se.code=function(e,t){return e[t].block?"
"+wt(e[t].content)+"
"+Kr(e,t):""+wt(e[t].content)+""};se.fence=function(e,t,r,i,o){var l=e[t],u="",h=r.langPrefix,d="",b,_,k;if(l.params){if(b=l.params.split(/\s+/g),_=b.join(" "),BP(o.rules.fence_custom,b[0]))return o.rules.fence_custom[b[0]](e,t,r,i,o);d=wt(Xr(Kn(_))),u=' class="'+h+d+'"'}return r.highlight?k=r.highlight.apply(r.highlight,[l.content].concat(b))||wt(l.content):k=wt(l.content),"
"+k+"
"+Kr(e,t)};se.fence_custom={};se.heading_open=function(e,t){return""};se.heading_close=function(e,t){return" +`+e.slice(u+1):d+=e.slice(o),d.slice(1)}function WL(e){for(var t="",r=0,i,o=0;o=65536?o+=2:o++)r=Rn(e,o),i=lt[r],!i&&Xn(r)?(t+=e[o],r>=65536&&(t+=e[o+1])):t+=i||PL(r);return t}function KL(e,t,r){var i="",o=e.tag,l,u,h;for(l=0,u=r.length;l"u"&&lr(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=o,e.dump="["+i+"]"}function ic(e,t,r,i){var o="",l=e.tag,u,h,d;for(u=0,h=r.length;u"u"&&lr(e,t+1,null,!0,!0,!1,!0))&&((!i||o!=="")&&(o+=Za(e,t)),e.dump&&Gn===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=l,e.dump=o||"[]"}function ZL(e,t,r){var i="",o=e.tag,l=Object.keys(r),u,h,d,b,_;for(u=0,h=l.length;u1024&&(_+="? "),_+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),lr(e,t,b,!1,!1)&&(_+=e.dump,i+=_));e.tag=o,e.dump="{"+i+"}"}function JL(e,t,r,i){var o="",l=e.tag,u=Object.keys(r),h,d,b,_,x,M;if(e.sortKeys===!0)u.sort();else if(typeof e.sortKeys=="function")u.sort(e.sortKeys);else if(e.sortKeys)throw new dt("sortKeys must be a boolean or a function");for(h=0,d=u.length;h1024,x&&(e.dump&&Gn===e.dump.charCodeAt(0)?M+="?":M+="? "),M+=e.dump,x&&(M+=Za(e,t)),lr(e,t+1,_,!0,x)&&(e.dump&&Gn===e.dump.charCodeAt(0)?M+=":":M+=": ",M+=e.dump,o+=M));e.tag=l,e.dump=o||"{}"}function ac(e,t,r){var i,o,l,u,h,d;for(o=r?e.explicitTypes:e.implicitTypes,l=0,u=o.length;l tag resolver accepts not "'+d+'" style');e.dump=i}return!0}return!1}function lr(e,t,r,i,o,l,u){e.tag=null,e.dump=r,ac(e,r,!1)||ac(e,r,!0);var h=nh.call(e.dump),d=i,b;i&&(i=e.flowLevel<0||e.flowLevel>t);var _=h==="[object Object]"||h==="[object Array]",x,M;if(_&&(x=e.duplicates.indexOf(r),M=x!==-1),(e.tag!==null&&e.tag!=="?"||M||e.indent!==2&&t>0)&&(o=!1),M&&e.usedDuplicates[x])e.dump="*ref_"+x;else{if(_&&M&&!e.usedDuplicates[x]&&(e.usedDuplicates[x]=!0),h==="[object Object]")i&&Object.keys(e.dump).length!==0?(JL(e,t,e.dump,o),M&&(e.dump="&ref_"+x+e.dump)):(ZL(e,t,e.dump),M&&(e.dump="&ref_"+x+" "+e.dump));else if(h==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!u&&t>0?ic(e,t-1,e.dump,o):ic(e,t,e.dump,o),M&&(e.dump="&ref_"+x+e.dump)):(KL(e,t,e.dump),M&&(e.dump="&ref_"+x+" "+e.dump));else if(h==="[object String]")e.tag!=="?"&&XL(e,e.dump,t,l,d);else{if(h==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new dt("unacceptable kind of an object to dump "+h)}e.tag!==null&&e.tag!=="?"&&(b=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?b="!"+b:b.slice(0,18)==="tag:yaml.org,2002:"?b="!!"+b.slice(18):b="!<"+b+">",e.dump=b+" "+e.dump)}return!0}function QL(e,t){var r=[],i=[],o,l;for(Qa(e,r,i),o=0,l=i.length;o\n - \\\\ `https://mymarkmap.vercel.app/#URL`\n - En cas de problème : \\\\ `https://mymarkmap.vercel.app/#https://corsproxy.io/%3FURL`\n - Sur une instance Gitlab, il faut utiliser un fichier `.gitlab-ci.yml` pour publier le fichier md sur une page publique et utiliser cette adresse comme URL\n\n## Comment naviguer \\\\dans la carte ?\n- \\\\\\\\Clic sur les **cercles** à l'intersection \\\\ des différentes branches pour \\\\ **afficher ou masquer la suite**\n - \\\\**Alt+clic** sur un cercle pour afficher \\\\ seulement la branche en question\n- **Autres raccourcis**\n - **Alt+clic** sur le texte d'une branche pour la masquer\n - `m` pour masquer ou réafficher la barre de menu\n - `r` pour désactiver ou réactiver le redimensionnement automatique\n\n## Usages plus \\\\ avancés \n\n### Des balises pour \\\\ **contrôler l'affichage** \\\\ de la carte\n\n#### **Markdown** \n\n- `**texte**` : pour mettre en **gras**\n- `_texte_` : pour mettre en _italiques_\n- `[lien](URL)` : pour insérer un [lien](https://eyssette.forge.apps.education.fr/)\n- `![](URL)` : pour insérer une image\n - `![h-25](URL)` : pour spécifier la hauteur \\\\de l'image (de h-25, h-50 … à h-200)\n- ``` `code` ``` : Pour insérer du `code` \n- `==texte==`: Pour surligner du ==texte==\n- `++texte++`: Pour souligner du ++texte++\n\n#### **HTML** \n\n- `
` ou `\\\\` pour forcer le passage à la ligne\n- `texte` \\\\ pour changer le style d'un élément\n \n#### **Autres \\\\ balises** \n\n- `` en fin de ligne pour que les \\\\ sous-branches soient cachées par défaut : \\\\ il faut cliquer sur le cercle pour afficher la suite\n - Cette branche est cachée par défaut !\n - Cette branche aussi !\n- `:code_emoji:` : pour insérer un code pour un emoji [:link:](https://raw.githubusercontent.com/omnidan/node-emoji/master/lib/emoji.json)\n- `{{partie masquée}}` pour masquer une partie \\\\ d'un texte : voici par exemple un {{passage}} masqué \\\\ (cliquer dessus pour afficher / masquer à nouveau)\n\n### Un **en-tête** (YAML) \\\\ pour des options de \\\\configuration plus avancées \n\n- Pour spécifier la largeur \\\\ maximale d'une branche\n - ```maxWidth: 300```\n- Pour empêcher le changement de \\\\couleur des sous-branches à partir \\\\d'un certain niveau\n - ```colorFreezeLevel: 2``` \\\\ (pour que chaque branche \\\\ait sa propre couleur)\n- Pour ajouter des styles \\\\CSS spécifiques\n - ```style: strong{color:red}```\n- Pour ajouter un \\\\thème spécifique\n - ```theme: focus```\n - Thèmes disponibles : \\\\ `focus` et `nolines`\n- Pour ajouter un titre\n - ```title: Mon titre```\n- Pour masquer par défaut \\\\les sous-branches à partir\\\\ d'un certain niveau\n - ```initialExpandLevel: 1```\n- Pour forcer l'ouverture des \\\\liens dans un nouvel onglet\n - ```openLinksInNewTab: true```\n")),Fn=or(""),eo=or(!1),to=or(!1),vq=or(),_q=or();function bq(e){const t=e-1;return t*t*t+1}function yq(e,{delay:t=0,duration:r=400,easing:i=op}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:i,css:l=>`opacity: ${l*o}`}}function wq(e,{delay:t=0,duration:r=400,easing:i=bq,x:o=0,y:l=0,opacity:u=0}={}){const h=getComputedStyle(e),d=+h.opacity,b=h.transform==="none"?"":h.transform,_=d*(1-u),[x,M]=Tl(o),[E,B]=Tl(l);return{delay:t,duration:r,easing:i,css:(O,P)=>` + transform: ${b} translate(${(1-O)*x}${M}, ${(1-O)*E}${B}); + opacity: ${d-_*P}`}}var Vt=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:globalThis;function xq(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function Ma(e,t,r){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){ro(i.response,t,r)},i.onerror=function(){console.error("could not download file")},i.send()}function oc(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ni(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var sc=Vt.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),ro=Vt.saveAs||(typeof window!="object"||window!==Vt?function(){}:"download"in HTMLAnchorElement.prototype&&!sc?function(t,r,i){var o=Vt.URL||Vt.webkitURL,l=document.createElement("a");r=r||t.name||"download",l.download=r,l.rel="noopener",typeof t=="string"?(l.href=t,l.origin!==location.origin?oc(l.href)?Ma(t,r,i):Ni(l,l.target="_blank"):Ni(l)):(l.href=o.createObjectURL(t),setTimeout(function(){o.revokeObjectURL(l.href)},4e4),setTimeout(function(){Ni(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,r,i){if(r=r||t.name||"download",typeof t=="string")if(oc(t))Ma(t,r,i);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){Ni(o)})}else navigator.msSaveOrOpenBlob(xq(t,i),r)}:function(t,r,i,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof t=="string")return Ma(t,r,i);var l=t.type==="application/octet-stream",u=/constructor/i.test(Vt.HTMLElement)||Vt.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||l&&u||sc)&&typeof FileReader<"u"){var d=new FileReader;d.onloadend=function(){var x=d.result;x=h?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=x:location=x,o=null},d.readAsDataURL(t)}else{var b=Vt.URL||Vt.webkitURL,_=b.createObjectURL(t);o?o.location=_:location.href=_,o=null,setTimeout(function(){b.revokeObjectURL(_)},4e4)}});Vt.saveAs=ro.saveAs=ro;function lc(e){let t,r,i,o,l,u,h,d,b,_,x,M,E,B,O,P,D;function W(_e,be){return _e[3]?Aq:kq}let ce=W(e),ue=ce(e),Z=e[2]&&cc();return{c(){t=vt("nav"),ue.c(),r=Pr(),i=vt("a"),o=kr("🌐"),l=Pr(),u=vt("a"),h=kr("💾"),d=Pr(),b=vt("a"),_=kr("🔗"),x=Pr(),Z&&Z.c(),M=Pr(),E=vt("a"),B=kr("❓"),this.h()},l(_e){t=_t(_e,"NAV",{id:!0,class:!0});var be=pt(t);ue.l(be),r=Hr(be),i=_t(be,"A",{href:!0,class:!0});var He=pt(i);o=Ar(He,"🌐"),He.forEach(Pe),l=Hr(be),u=_t(be,"A",{href:!0,class:!0});var Se=pt(u);h=Ar(Se,"💾"),Se.forEach(Pe),d=Hr(be),b=_t(be,"A",{href:!0,class:!0});var Ge=pt(b);_=Ar(Ge,"🔗"),Ge.forEach(Pe),x=Hr(be),Z&&Z.l(be),M=Hr(be),E=_t(be,"A",{href:!0,target:!0,rel:!0,class:!0});var q=pt(E);B=Ar(q,"❓"),q.forEach(Pe),be.forEach(Pe),this.h()},h(){Re(i,"href","#saveHTML"),Re(i,"class","svelte-4wmhyd"),Re(u,"href","#saveSVG"),Re(u,"class","svelte-4wmhyd"),Re(b,"href","#share"),Re(b,"class","svelte-4wmhyd"),Re(E,"href",e[4]),Re(E,"target","_blank"),Re(E,"rel","noreferrer"),Re(E,"class","svelte-4wmhyd"),Re(t,"id","menu"),Re(t,"class","svelte-4wmhyd")},m(_e,be){Ot(_e,t,be),ue.m(t,null),it(t,r),it(t,i),it(i,o),it(t,l),it(t,u),it(u,h),it(t,d),it(t,b),it(b,_),it(t,x),Z&&Z.m(t,null),it(t,M),it(t,E),it(E,B),e[12](t),O=!0,P||(D=[Pt(i,"click",Hn(e[8])),Pt(u,"click",Hn(e[7])),Pt(b,"click",Hn(e[9]))],P=!0)},p(_e,be){ce===(ce=W(_e))&&ue?ue.p(_e,be):(ue.d(1),ue=ce(_e),ue&&(ue.c(),ue.m(t,r))),_e[2]?Z?be&4&&Nt(Z,1):(Z=cc(),Z.c(),Nt(Z,1),Z.m(t,M)):Z&&(wo(),Xt(Z,1,1,()=>{Z=null}),xo()),(!O||be&16)&&Re(E,"href",_e[4])},i(_e){O||(Nt(Z),O=!0)},o(_e){Xt(Z),O=!1},d(_e){_e&&Pe(t),ue.d(),Z&&Z.d(),e[12](null),P=!1,ko(D)}}}function kq(e){let t,r,i,o;return{c(){t=vt("a"),r=kr("✒️"),this.h()},l(l){t=_t(l,"A",{href:!0,class:!0});var u=pt(t);r=Ar(u,"✒️"),u.forEach(Pe),this.h()},h(){Re(t,"href","#edit"),Re(t,"class","svelte-4wmhyd")},m(l,u){Ot(l,t,u),it(t,r),i||(o=Pt(t,"click",Hn(e[5])),i=!0)},p:Er,d(l){l&&Pe(t),i=!1,o()}}}function Aq(e){let t,r,i,o;return{c(){t=vt("a"),r=kr("👓"),this.h()},l(l){t=_t(l,"A",{href:!0,class:!0});var u=pt(t);r=Ar(u,"👓"),u.forEach(Pe),this.h()},h(){Re(t,"href","#edit"),Re(t,"class","svelte-4wmhyd")},m(l,u){Ot(l,t,u),it(t,r),i||(o=Pt(t,"click",Hn(e[6])),i=!0)},p:Er,d(l){l&&Pe(t),i=!1,o()}}}function cc(e){let t,r,i,o,l;return{c(){t=vt("div"),r=kr("Lien copié dans le presse-papier !"),this.h()},l(u){t=_t(u,"DIV",{id:!0,class:!0});var h=pt(t);r=Ar(h,"Lien copié dans le presse-papier !"),h.forEach(Pe),this.h()},h(){Re(t,"id","shareNotification"),Re(t,"class","svelte-4wmhyd")},m(u,h){Ot(u,t,h),it(t,r),l=!0},i(u){l||(Ao(()=>{l&&(o&&o.end(1),i=sp(t,wq,{y:50,duration:1e3}),i.start())}),l=!0)},o(u){i&&i.invalidate(),o=lp(t,yq,{}),l=!1},d(u){u&&Pe(t),u&&o&&o.end()}}}function Sq(e){let t,r,i,o,l=e[0]&&lc(e);return{c(){l&&l.c(),t=Cl()},l(u){l&&l.l(u),t=Cl()},m(u,h){l&&l.m(u,h),Ot(u,t,h),r=!0,i||(o=[Pt(window,"keydown",e[10]),Pt(window,"beforeunload",Mq)],i=!0)},p(u,[h]){u[0]?l?(l.p(u,h),h&1&&Nt(l,1)):(l=lc(u),l.c(),Nt(l,1),l.m(t.parentNode,t)):l&&(wo(),Xt(l,1,1,()=>{l=null}),xo())},i(u){r||(Nt(l),r=!0)},o(u){Xt(l),r=!1},d(u){l&&l.d(u),u&&Pe(t),i=!1,ko(o)}}}function Mq(e){return e.preventDefault(),e.returnValue=""}function Eq(e,t,r){let i,o,l;Dt(e,$n,Z=>r(3,i=Z)),Dt(e,Fn,Z=>r(4,o=Z)),Dt(e,Mu,Z=>r(15,l=Z));let{source:u}=t,h,d,b=!1,_;function x(){r(2,W=!1),$n.update(Z=>!0)}function M(){$n.update(Z=>!1)}function E(){eo.update(Z=>!0)}function B(){to.update(Z=>!0)}function O(){r(0,b=!b)}l&&l.searchParams&&l.searchParams.get("m")==0?b=!1:b=!0;function P(){ce(),d=encodeURI(u),h=o+"/#"+d,navigator.clipboard.writeText(h)}function D(Z){i?Z.key==="Escape"&&(r(1,_.style.display="block",_),M()):(Z.key==="e"&&(Z.preventDefault(),r(1,_.style.display="block",_),x()),Z.key==="s"&&(r(1,_.style.display="block",_),E()),Z.key==="h"&&(r(1,_.style.display="block",_),B()),Z.key==="l"&&(r(1,_.style.display="block",_),P()),Z.key=="m"&&O())}let W=!1;function ce(){r(2,W=!0),setTimeout(function(){r(2,W=!1)},1500)}function ue(Z){Xi[Z?"unshift":"push"](()=>{_=Z,r(1,_)})}return e.$$set=Z=>{"source"in Z&&r(11,u=Z.source)},[b,_,W,i,o,x,M,E,B,P,D,u,ue]}class Tq extends g0{constructor(t){super(),v0(this,t,Eq,Sq,_0,{source:11})}}function Cq(e){const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(l,{begin:/\(/,end:/\)/}),h=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[l,d,h,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[l,u,d,h]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:b}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function zq(e){const t=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},o={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},l={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},h=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,h,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},_={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},x=e.inherit(b,{contains:[]}),M=e.inherit(_,{contains:[]});b.contains.push(M),_.contains.push(x);let E=[r,d];return[b,_,x,M].forEach(P=>{P.contains=P.contains.concat(E)}),E=E.concat(b,_),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:E},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:E}]}]},r,l,b,_,{className:"quote",begin:"^>\\s+",contains:E,end:"$"},o,i,d,u]}}function mh(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const r=e[t],i=typeof r;(i==="object"||i==="function")&&!Object.isFrozen(r)&&mh(r)}),e}class uc{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function gh(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Mr(e,...t){const r=Object.create(null);for(const i in e)r[i]=e[i];return t.forEach(function(i){for(const o in i)r[o]=i[o]}),r}const Bq="
",hc=e=>!!e.scope,Nq=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const r=e.split(".");return[`${t}${r.shift()}`,...r.map((i,o)=>`${i}${"_".repeat(o+1)}`)].join(" ")}return`${t}${e}`};class Dq{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=gh(t)}openNode(t){if(!hc(t))return;const r=Nq(t.scope,{prefix:this.classPrefix});this.span(r)}closeNode(t){hc(t)&&(this.buffer+=Bq)}value(){return this.buffer}span(t){this.buffer+=``}}const fc=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Io{constructor(){this.rootNode=fc(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r=fc({scope:t});this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(i=>this._walk(t,i)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{Io._collapse(r)}))}}class Oq extends Io{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,r){const i=t.root;r&&(i.scope=`language:${r}`),this.add(i)}toHTML(){return new Dq(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Yn(e){return e?typeof e=="string"?e:e.source:null}function vh(e){return Wr("(?=",e,")")}function Iq(e){return Wr("(?:",e,")*")}function Rq(e){return Wr("(?:",e,")?")}function Wr(...e){return e.map(r=>Yn(r)).join("")}function Fq(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ro(...e){return"("+(Fq(e).capture?"":"?:")+e.map(i=>Yn(i)).join("|")+")"}function _h(e){return new RegExp(e.toString()+"|").exec("").length-1}function Lq(e,t){const r=e&&e.exec(t);return r&&r.index===0}const qq=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Fo(e,{joinWith:t}){let r=0;return e.map(i=>{r+=1;const o=r;let l=Yn(i),u="";for(;l.length>0;){const h=qq.exec(l);if(!h){u+=l;break}u+=l.substring(0,h.index),l=l.substring(h.index+h[0].length),h[0][0]==="\\"&&h[1]?u+="\\"+String(Number(h[1])+o):(u+=h[0],h[0]==="("&&r++)}return u}).map(i=>`(${i})`).join(t)}const Pq=/\b\B/,bh="[a-zA-Z]\\w*",Lo="[a-zA-Z_]\\w*",yh="\\b\\d+(\\.\\d+)?",wh="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",xh="\\b(0b[01]+)",Hq="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",$q=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Wr(t,/.*\b/,e.binary,/\b.*/)),Mr({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,i)=>{r.index!==0&&i.ignoreMatch()}},e)},Wn={begin:"\\\\[\\s\\S]",relevance:0},jq={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Wn]},Uq={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Wn]},Gq={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},w0=function(e,t,r={}){const i=Mr({scope:"comment",begin:e,end:t,contains:[]},r);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=Ro("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:Wr(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Vq=w0("//","$"),Xq=w0("/\\*","\\*/"),Yq=w0("#","$"),Wq={scope:"number",begin:yh,relevance:0},Kq={scope:"number",begin:wh,relevance:0},Zq={scope:"number",begin:xh,relevance:0},Jq={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Wn,{begin:/\[/,end:/\]/,relevance:0,contains:[Wn]}]},Qq={scope:"title",begin:bh,relevance:0},eP={scope:"title",begin:Lo,relevance:0},tP={begin:"\\.\\s*"+Lo,relevance:0},rP=function(e){return Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}})};var Di=Object.freeze({__proto__:null,APOS_STRING_MODE:jq,BACKSLASH_ESCAPE:Wn,BINARY_NUMBER_MODE:Zq,BINARY_NUMBER_RE:xh,COMMENT:w0,C_BLOCK_COMMENT_MODE:Xq,C_LINE_COMMENT_MODE:Vq,C_NUMBER_MODE:Kq,C_NUMBER_RE:wh,END_SAME_AS_BEGIN:rP,HASH_COMMENT_MODE:Yq,IDENT_RE:bh,MATCH_NOTHING_RE:Pq,METHOD_GUARD:tP,NUMBER_MODE:Wq,NUMBER_RE:yh,PHRASAL_WORDS_MODE:Gq,QUOTE_STRING_MODE:Uq,REGEXP_MODE:Jq,RE_STARTERS_RE:Hq,SHEBANG:$q,TITLE_MODE:Qq,UNDERSCORE_IDENT_RE:Lo,UNDERSCORE_TITLE_MODE:eP});function nP(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function iP(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function aP(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=nP,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function oP(e,t){Array.isArray(e.illegal)&&(e.illegal=Ro(...e.illegal))}function sP(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function lP(e,t){e.relevance===void 0&&(e.relevance=1)}const cP=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const r=Object.assign({},e);Object.keys(e).forEach(i=>{delete e[i]}),e.keywords=r.keywords,e.begin=Wr(r.beforeMatch,vh(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},uP=["of","and","for","in","not","or","if","then","parent","list","value"],hP="keyword";function kh(e,t,r=hP){const i=Object.create(null);return typeof e=="string"?o(r,e.split(" ")):Array.isArray(e)?o(r,e):Object.keys(e).forEach(function(l){Object.assign(i,kh(e[l],t,l))}),i;function o(l,u){t&&(u=u.map(h=>h.toLowerCase())),u.forEach(function(h){const d=h.split("|");i[d[0]]=[l,fP(d[0],d[1])]})}}function fP(e,t){return t?Number(t):pP(e)?0:1}function pP(e){return uP.includes(e.toLowerCase())}const pc={},Gr=e=>{console.error(e)},dc=(e,...t)=>{console.log(`WARN: ${e}`,...t)},cn=(e,t)=>{pc[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),pc[`${e}/${t}`]=!0)},o0=new Error;function Ah(e,t,{key:r}){let i=0;const o=e[r],l={},u={};for(let h=1;h<=t.length;h++)u[h+i]=o[h],l[h+i]=!0,i+=_h(t[h-1]);e[r]=u,e[r]._emit=l,e[r]._multi=!0}function dP(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Gr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),o0;if(typeof e.beginScope!="object"||e.beginScope===null)throw Gr("beginScope must be object"),o0;Ah(e,e.begin,{key:"beginScope"}),e.begin=Fo(e.begin,{joinWith:""})}}function mP(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Gr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),o0;if(typeof e.endScope!="object"||e.endScope===null)throw Gr("endScope must be object"),o0;Ah(e,e.end,{key:"endScope"}),e.end=Fo(e.end,{joinWith:""})}}function gP(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function vP(e){gP(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),dP(e),mP(e)}function _P(e){function t(u,h){return new RegExp(Yn(u),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(h?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(h,d){d.position=this.position++,this.matchIndexes[this.matchAt]=d,this.regexes.push([d,h]),this.matchAt+=_h(h)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const h=this.regexes.map(d=>d[1]);this.matcherRe=t(Fo(h,{joinWith:"|"}),!0),this.lastIndex=0}exec(h){this.matcherRe.lastIndex=this.lastIndex;const d=this.matcherRe.exec(h);if(!d)return null;const b=d.findIndex((x,M)=>M>0&&x!==void 0),_=this.matchIndexes[b];return d.splice(0,b),Object.assign(d,_)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(h){if(this.multiRegexes[h])return this.multiRegexes[h];const d=new r;return this.rules.slice(h).forEach(([b,_])=>d.addRule(b,_)),d.compile(),this.multiRegexes[h]=d,d}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(h,d){this.rules.push([h,d]),d.type==="begin"&&this.count++}exec(h){const d=this.getMatcher(this.regexIndex);d.lastIndex=this.lastIndex;let b=d.exec(h);if(this.resumingScanAtSamePosition()&&!(b&&b.index===this.lastIndex)){const _=this.getMatcher(0);_.lastIndex=this.lastIndex+1,b=_.exec(h)}return b&&(this.regexIndex+=b.position+1,this.regexIndex===this.count&&this.considerAll()),b}}function o(u){const h=new i;return u.contains.forEach(d=>h.addRule(d.begin,{rule:d,type:"begin"})),u.terminatorEnd&&h.addRule(u.terminatorEnd,{type:"end"}),u.illegal&&h.addRule(u.illegal,{type:"illegal"}),h}function l(u,h){const d=u;if(u.isCompiled)return d;[iP,sP,vP,cP].forEach(_=>_(u,h)),e.compilerExtensions.forEach(_=>_(u,h)),u.__beforeBegin=null,[aP,oP,lP].forEach(_=>_(u,h)),u.isCompiled=!0;let b=null;return typeof u.keywords=="object"&&u.keywords.$pattern&&(u.keywords=Object.assign({},u.keywords),b=u.keywords.$pattern,delete u.keywords.$pattern),b=b||/\w+/,u.keywords&&(u.keywords=kh(u.keywords,e.case_insensitive)),d.keywordPatternRe=t(b,!0),h&&(u.begin||(u.begin=/\B|\b/),d.beginRe=t(d.begin),!u.end&&!u.endsWithParent&&(u.end=/\B|\b/),u.end&&(d.endRe=t(d.end)),d.terminatorEnd=Yn(d.end)||"",u.endsWithParent&&h.terminatorEnd&&(d.terminatorEnd+=(u.end?"|":"")+h.terminatorEnd)),u.illegal&&(d.illegalRe=t(u.illegal)),u.contains||(u.contains=[]),u.contains=[].concat(...u.contains.map(function(_){return bP(_==="self"?u:_)})),u.contains.forEach(function(_){l(_,d)}),u.starts&&l(u.starts,h),d.matcher=o(d),d}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Mr(e.classNameAliases||{}),l(e)}function Sh(e){return e?e.endsWithParent||Sh(e.starts):!1}function bP(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Mr(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Sh(e)?Mr(e,{starts:e.starts?Mr(e.starts):null}):Object.isFrozen(e)?Mr(e):e}var yP="11.9.0";class wP extends Error{constructor(t,r){super(t),this.name="HTMLInjectionError",this.html=r}}const Ea=gh,mc=Mr,gc=Symbol("nomatch"),xP=7,Mh=function(e){const t=Object.create(null),r=Object.create(null),i=[];let o=!0;const l="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let h={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Oq};function d(F){return h.noHighlightRe.test(F)}function b(F){let X=F.className+" ";X+=F.parentNode?F.parentNode.className:"";const ee=h.languageDetectRe.exec(X);if(ee){const ae=Se(ee[1]);return ae||(dc(l.replace("{}",ee[1])),dc("Falling back to no-highlight mode for this block.",F)),ae?ee[1]:"no-highlight"}return X.split(/\s+/).find(ae=>d(ae)||Se(ae))}function _(F,X,ee){let ae="",V="";typeof X=="object"?(ae=F,ee=X.ignoreIllegals,V=X.language):(cn("10.7.0","highlight(lang, code, ...args) has been deprecated."),cn("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),V=F,ae=X),ee===void 0&&(ee=!0);const we={code:ae,language:V};U("before:highlight",we);const Fe=we.result?we.result:x(we.language,we.code,ee);return Fe.code=we.code,U("after:highlight",Fe),Fe}function x(F,X,ee,ae){const V=Object.create(null);function we(re,le){return re.keywords[le]}function Fe(){if(!pe.keywords){Je.addText(Le);return}let re=0;pe.keywordPatternRe.lastIndex=0;let le=pe.keywordPatternRe.exec(Le),ye="";for(;le;){ye+=Le.substring(re,le.index);const Ce=xt.case_insensitive?le[0].toLowerCase():le[0],Qe=we(pe,Ce);if(Qe){const[Rt,si]=Qe;if(Je.addText(ye),ye="",V[Ce]=(V[Ce]||0)+1,V[Ce]<=xP&&(ur+=si),Rt.startsWith("_"))ye+=le[0];else{const $e=xt.classNameAliases[Rt]||Rt;Ne(le[0],$e)}}else ye+=le[0];re=pe.keywordPatternRe.lastIndex,le=pe.keywordPatternRe.exec(Le)}ye+=Le.substring(re),Je.addText(ye)}function ze(){if(Le==="")return;let re=null;if(typeof pe.subLanguage=="string"){if(!t[pe.subLanguage]){Je.addText(Le);return}re=x(pe.subLanguage,Le,!0,Nr[pe.subLanguage]),Nr[pe.subLanguage]=re._top}else re=E(Le,pe.subLanguage.length?pe.subLanguage:null);pe.relevance>0&&(ur+=re.relevance),Je.__addSublanguage(re._emitter,re.language)}function Be(){pe.subLanguage!=null?ze():Fe(),Le=""}function Ne(re,le){re!==""&&(Je.startScope(le),Je.addText(re),Je.endScope())}function rt(re,le){let ye=1;const Ce=le.length-1;for(;ye<=Ce;){if(!re._emit[ye]){ye++;continue}const Qe=xt.classNameAliases[re[ye]]||re[ye],Rt=le[ye];Qe?Ne(Rt,Qe):(Le=Rt,Fe(),Le=""),ye++}}function ct(re,le){return re.scope&&typeof re.scope=="string"&&Je.openNode(xt.classNameAliases[re.scope]||re.scope),re.beginScope&&(re.beginScope._wrap?(Ne(Le,xt.classNameAliases[re.beginScope._wrap]||re.beginScope._wrap),Le=""):re.beginScope._multi&&(rt(re.beginScope,le),Le="")),pe=Object.create(re,{parent:{value:pe}}),pe}function $t(re,le,ye){let Ce=Lq(re.endRe,ye);if(Ce){if(re["on:end"]){const Qe=new uc(re);re["on:end"](le,Qe),Qe.isMatchIgnored&&(Ce=!1)}if(Ce){for(;re.endsParent&&re.parent;)re=re.parent;return re}}if(re.endsWithParent)return $t(re.parent,le,ye)}function C0(re){return pe.matcher.regexIndex===0?(Le+=re[0],1):(An=!0,0)}function z0(re){const le=re[0],ye=re.rule,Ce=new uc(ye),Qe=[ye.__beforeBegin,ye["on:begin"]];for(const Rt of Qe)if(Rt&&(Rt(re,Ce),Ce.isMatchIgnored))return C0(le);return ye.skip?Le+=le:(ye.excludeBegin&&(Le+=le),Be(),!ye.returnBegin&&!ye.excludeBegin&&(Le=le)),ct(ye,re),ye.returnBegin?0:le.length}function B0(re){const le=re[0],ye=X.substring(re.index),Ce=$t(pe,re,ye);if(!Ce)return gc;const Qe=pe;pe.endScope&&pe.endScope._wrap?(Be(),Ne(le,pe.endScope._wrap)):pe.endScope&&pe.endScope._multi?(Be(),rt(pe.endScope,re)):Qe.skip?Le+=le:(Qe.returnEnd||Qe.excludeEnd||(Le+=le),Be(),Qe.excludeEnd&&(Le=le));do pe.scope&&Je.closeNode(),!pe.skip&&!pe.subLanguage&&(ur+=pe.relevance),pe=pe.parent;while(pe!==Ce.parent);return Ce.starts&&ct(Ce.starts,re),Qe.returnEnd?0:le.length}function N0(){const re=[];for(let le=pe;le!==xt;le=le.parent)le.scope&&re.unshift(le.scope);re.forEach(le=>Je.openNode(le))}let Qr={};function oi(re,le){const ye=le&&le[0];if(Le+=re,ye==null)return Be(),0;if(Qr.type==="begin"&&le.type==="end"&&Qr.index===le.index&&ye===""){if(Le+=X.slice(le.index,le.index+1),!o){const Ce=new Error(`0 width match regex (${F})`);throw Ce.languageName=F,Ce.badRule=Qr.rule,Ce}return 1}if(Qr=le,le.type==="begin")return z0(le);if(le.type==="illegal"&&!ee){const Ce=new Error('Illegal lexeme "'+ye+'" for mode "'+(pe.scope||"")+'"');throw Ce.mode=pe,Ce}else if(le.type==="end"){const Ce=B0(le);if(Ce!==gc)return Ce}if(le.type==="illegal"&&ye==="")return 1;if(kn>1e5&&kn>le.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=ye,ye.length}const xt=Se(F);if(!xt)throw Gr(l.replace("{}",F)),new Error('Unknown language: "'+F+'"');const D0=_P(xt);let Zt="",pe=ae||D0;const Nr={},Je=new h.__emitter(h);N0();let Le="",ur=0,It=0,kn=0,An=!1;try{if(xt.__emitTokens)xt.__emitTokens(X,Je);else{for(pe.matcher.considerAll();;){kn++,An?An=!1:pe.matcher.considerAll(),pe.matcher.lastIndex=It;const re=pe.matcher.exec(X);if(!re)break;const le=X.substring(It,re.index),ye=oi(le,re);It=re.index+ye}oi(X.substring(It))}return Je.finalize(),Zt=Je.toHTML(),{language:F,value:Zt,relevance:ur,illegal:!1,_emitter:Je,_top:pe}}catch(re){if(re.message&&re.message.includes("Illegal"))return{language:F,value:Ea(X),illegal:!0,relevance:0,_illegalBy:{message:re.message,index:It,context:X.slice(It-100,It+100),mode:re.mode,resultSoFar:Zt},_emitter:Je};if(o)return{language:F,value:Ea(X),illegal:!1,relevance:0,errorRaised:re,_emitter:Je,_top:pe};throw re}}function M(F){const X={value:Ea(F),illegal:!1,relevance:0,_top:u,_emitter:new h.__emitter(h)};return X._emitter.addText(F),X}function E(F,X){X=X||h.languages||Object.keys(t);const ee=M(F),ae=X.filter(Se).filter(q).map(Be=>x(Be,F,!1));ae.unshift(ee);const V=ae.sort((Be,Ne)=>{if(Be.relevance!==Ne.relevance)return Ne.relevance-Be.relevance;if(Be.language&&Ne.language){if(Se(Be.language).supersetOf===Ne.language)return 1;if(Se(Ne.language).supersetOf===Be.language)return-1}return 0}),[we,Fe]=V,ze=we;return ze.secondBest=Fe,ze}function B(F,X,ee){const ae=X&&r[X]||ee;F.classList.add("hljs"),F.classList.add(`language-${ae}`)}function O(F){let X=null;const ee=b(F);if(d(ee))return;if(U("before:highlightElement",{el:F,language:ee}),F.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",F);return}if(F.children.length>0&&(h.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(F)),h.throwUnescapedHTML))throw new wP("One of your code blocks includes unescaped HTML.",F.innerHTML);X=F;const ae=X.textContent,V=ee?_(ae,{language:ee,ignoreIllegals:!0}):E(ae);F.innerHTML=V.value,F.dataset.highlighted="yes",B(F,ee,V.language),F.result={language:V.language,re:V.relevance,relevance:V.relevance},V.secondBest&&(F.secondBest={language:V.secondBest.language,relevance:V.secondBest.relevance}),U("after:highlightElement",{el:F,result:V,text:ae})}function P(F){h=mc(h,F)}const D=()=>{ue(),cn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function W(){ue(),cn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ce=!1;function ue(){if(document.readyState==="loading"){ce=!0;return}document.querySelectorAll(h.cssSelector).forEach(O)}function Z(){ce&&ue()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Z,!1);function _e(F,X){let ee=null;try{ee=X(e)}catch(ae){if(Gr("Language definition for '{}' could not be registered.".replace("{}",F)),o)Gr(ae);else throw ae;ee=u}ee.name||(ee.name=F),t[F]=ee,ee.rawDefinition=X.bind(null,e),ee.aliases&&Ge(ee.aliases,{languageName:F})}function be(F){delete t[F];for(const X of Object.keys(r))r[X]===F&&delete r[X]}function He(){return Object.keys(t)}function Se(F){return F=(F||"").toLowerCase(),t[F]||t[r[F]]}function Ge(F,{languageName:X}){typeof F=="string"&&(F=[F]),F.forEach(ee=>{r[ee.toLowerCase()]=X})}function q(F){const X=Se(F);return X&&!X.disableAutodetect}function de(F){F["before:highlightBlock"]&&!F["before:highlightElement"]&&(F["before:highlightElement"]=X=>{F["before:highlightBlock"](Object.assign({block:X.el},X))}),F["after:highlightBlock"]&&!F["after:highlightElement"]&&(F["after:highlightElement"]=X=>{F["after:highlightBlock"](Object.assign({block:X.el},X))})}function Ae(F){de(F),i.push(F)}function L(F){const X=i.indexOf(F);X!==-1&&i.splice(X,1)}function U(F,X){const ee=F;i.forEach(function(ae){ae[ee]&&ae[ee](X)})}function G(F){return cn("10.7.0","highlightBlock will be removed entirely in v12.0"),cn("10.7.0","Please use highlightElement now."),O(F)}Object.assign(e,{highlight:_,highlightAuto:E,highlightAll:ue,highlightElement:O,highlightBlock:G,configure:P,initHighlighting:D,initHighlightingOnLoad:W,registerLanguage:_e,unregisterLanguage:be,listLanguages:He,getLanguage:Se,registerAliases:Ge,autoDetection:q,inherit:mc,addPlugin:Ae,removePlugin:L}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=yP,e.regex={concat:Wr,lookahead:vh,either:Ro,optional:Rq,anyNumberOfTimes:Iq};for(const F in Di)typeof Di[F]=="object"&&mh(Di[F]);return Object.assign(e,Di),e},bn=Mh({});bn.newInstance=()=>Mh({});var kP=bn;bn.HighlightJS=bn;bn.default=bn;const qo=Mo(kP);function AP(e){let t,r,i;return{c(){t=vt("textarea"),this.h()},l(o){t=_t(o,"TEXTAREA",{rows:!0,cols:!0,class:!0}),pt(t).forEach(Pe),this.h()},h(){Re(t,"rows","20"),Re(t,"cols","50"),Re(t,"class","svelte-1gj3b73"),Yi(t,"hidden",!e[2])},m(o,l){Ot(o,t,l),Bl(t,e[1]),r||(i=Pt(t,"input",e[8]),r=!0)},p(o,l){l&2&&Bl(t,o[1]),l&4&&Yi(t,"hidden",!o[2])},d(o){o&&Pe(t),r=!1,i()}}}function SP(e){let t,r,i;return{c(){t=vt("pre"),this.h()},l(o){t=_t(o,"PRE",{contenteditable:!0,class:!0}),pt(t).forEach(Pe),this.h()},h(){Re(t,"contenteditable","true"),Re(t,"class","editor"),e[1]===void 0&&Ao(()=>e[7].call(t)),Yi(t,"hidden",!e[2])},m(o,l){Ot(o,t,l),e[6](t),e[1]!==void 0&&(t.textContent=e[1]),r||(i=Pt(t,"input",e[7]),r=!0)},p(o,l){l&2&&o[1]!==t.textContent&&(t.textContent=o[1]),l&4&&Yi(t,"hidden",!o[2])},d(o){o&&Pe(t),e[6](null),r=!1,i()}}}function MP(e){let t,r;return{c(){t=vt("div"),r=kr("Éditeur en cours de chargement")},l(i){t=_t(i,"DIV",{});var o=pt(t);r=Ar(o,"Éditeur en cours de chargement"),o.forEach(Pe)},m(i,o){Ot(i,t,o),it(t,r)},p:Er,d(i){i&&Pe(t)}}}function EP(e){let t,r,i={ctx:e,current:null,token:null,hasCatch:!0,pending:MP,then:SP,catch:AP,error:12};return zl(r=e[4],i),{c(){t=vt("div"),i.block.c()},l(o){t=_t(o,"DIV",{});var l=pt(t);i.block.l(l),l.forEach(Pe)},m(o,l){Ot(o,t,l),i.block.m(t,i.anchor=null),i.mount=()=>t,i.anchor=null,e[9](t)},p(o,[l]){e=o,i.ctx=e,l&16&&r!==(r=e[4])&&zl(r,i)||cp(i,e,l)},i:Er,o:Er,d(o){o&&Pe(t),i.block.d(),i.token=null,i=null,e[9](null)}}}qo.registerLanguage("markdown",zq);qo.registerLanguage("xml",Cq);function TP(e,t,r){let i,o;Dt(e,Sr,B=>r(1,i=B)),Dt(e,$n,B=>r(2,o=B));let l,u;const h=B=>{let O=B.textContent;O=O.replace(/:(.*)_(.*?):/g,":$1@underscore$2:"),O=O.replace(/:(.*)_(.*?):/g,":$1@underscore$2:"),O=O.replace(/:(.*)_(.*?):/g,":$1@underscore$2:"),O=qo.highlight(O,{language:"markdown",ignoreUnescapedHTML:!1}).value,O=O.replace(/\\\\/g,'\\\\').replace(/<!--(.*?)-->/g,'<!--$1-->').replace(/<!--(\s*?)fold(\s*?)-->/g,'<!--$1fold$2-->'),O=O.replace(/@underscore/g,"_"),B.innerHTML=O};let d,b;So(async()=>{r(4,{CodeJar:b}=await mp(()=>import("../chunks/codejar.c0a238b2.js"),[],import.meta.url),b),r(5,d=await b(u,h,{history:!0}))});function _(B){Xi[B?"unshift":"push"](()=>{u=B,r(3,u)})}function x(){i=this.textContent,Sr.set(i)}function M(){i=this.value,Sr.set(i)}function E(B){Xi[B?"unshift":"push"](()=>{l=B,r(0,l)})}return e.$$.update=()=>{e.$$.dirty&4,e.$$.dirty&5&&o==!0&&setTimeout(function(){l.firstChild.focus()},0),e.$$.dirty&34&&d&&d.onUpdate(B=>{d.toString()!=i&&Sr.update(O=>B)})},[l,i,o,u,b,d,_,x,M,E]}class CP extends g0{constructor(t){super(),v0(this,t,TP,EP,_0,{})}}var Oi;function Eh(e){return Oi=Oi||document.createElement("textarea"),Oi.innerHTML="&"+e+";",Oi.value}var zP=Object.prototype.hasOwnProperty;function BP(e,t){return e?zP.call(e,t):!1}function Th(e){var t=[].slice.call(arguments,1);return t.forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(i){e[i]=r[i]})}}),e}var NP=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Kn(e){return e.indexOf("\\")<0?e:e.replace(NP,"$1")}function Ch(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function no(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var DP=/&([a-z#][a-z0-9]{1,31});/gi,OP=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function IP(e,t){var r=0,i=Eh(t);return t!==i?i:t.charCodeAt(0)===35&&OP.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Ch(r))?no(r):e}function Xr(e){return e.indexOf("&")<0?e:e.replace(DP,IP)}var RP=/[&<>"]/,FP=/[&<>"]/g,LP={"&":"&","<":"<",">":">",'"':"""};function qP(e){return LP[e]}function wt(e){return RP.test(e)?e.replace(FP,qP):e}var se={};se.blockquote_open=function(){return`
+`};se.blockquote_close=function(e,t){return"
"+Kr(e,t)};se.code=function(e,t){return e[t].block?"
"+wt(e[t].content)+"
"+Kr(e,t):""+wt(e[t].content)+""};se.fence=function(e,t,r,i,o){var l=e[t],u="",h=r.langPrefix,d="",b,_,x;if(l.params){if(b=l.params.split(/\s+/g),_=b.join(" "),BP(o.rules.fence_custom,b[0]))return o.rules.fence_custom[b[0]](e,t,r,i,o);d=wt(Xr(Kn(_))),u=' class="'+h+d+'"'}return r.highlight?x=r.highlight.apply(r.highlight,[l.content].concat(b))||wt(l.content):x=wt(l.content),"
"+x+"
"+Kr(e,t)};se.fence_custom={};se.heading_open=function(e,t){return""};se.heading_close=function(e,t){return" `};se.hr=function(e,t,r){return(r.xhtmlOut?"
":"
")+Kr(e,t)};se.bullet_list_open=function(){return`
    `};se.bullet_list_close=function(e,t){return"
"+Kr(e,t)};se.list_item_open=function(){return"
  • "};se.list_item_close=function(){return`
  • `};se.ordered_list_open=function(e,t){var r=e[t],i=r.order>1?' start="'+r.order+'"':"";return" @@ -61,14 +61,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`),V=F,ae=X),ee===void 0& `};se.dt_close=function(){return` `};se.dd_close=function(){return` `};function zh(e,t){return++t>=e.length-2?t:e[t].type==="paragraph_open"&&e[t].tight&&e[t+1].type==="inline"&&e[t+1].content.length===0&&e[t+2].type==="paragraph_close"&&e[t+2].tight?zh(e,t+2):t}var Kr=se.getBreak=function(t,r){return r=zh(t,r),r"u"&&(i.abbreviations[":"+d]=b),u)}function $P(e){var t=e.tokens,r,i,o,l;if(!e.inlineMode){for(r=1,i=t.length-1;r1)||r===41&&(i--,i<0))break;t++}return l===t||(o=Kn(e.src.slice(l,t)),!e.parser.validateLink(o))?!1:(e.linkContent=o,e.pos=t,!0)}function Nh(e,t){var r,i=t,o=e.posMax,l=e.src.charCodeAt(t);if(l!==34&&l!==39&&l!==40)return!1;for(t++,l===40&&(l=41);t"u"&&(i.references[M]={title:k,href:_}),u)}function UP(e){var t=e.tokens,r,i,o,l;if(e.env.references=e.env.references||{},!e.inlineMode){for(r=1,i=t.length-1;r0?u[t].count:1,i=0;i=0;t--)if(l=o[t],l.type==="text"){for(d=0,u=l.content,_.lastIndex=0,b=l.level,h=[];k=_.exec(u);)_.lastIndex>d&&h.push({type:"text",content:u.slice(d,k.index+k[1].length),level:b}),h.push({type:"abbr_open",title:e.env.abbreviations[":"+k[2]],level:b++}),h.push({type:"text",content:k[2],level:b}),h.push({type:"abbr_close",level:--b}),d=_.lastIndex-k[3].length;h.length&&(d=0;l--)if(e.tokens[l].type==="inline")for(o=e.tokens[l].children,t=o.length-1;t>=0;t--)r=o[t],r.type==="text"&&(i=r.content,i=ZP(i),YP.test(i)&&(i=i.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=i)}}var QP=/['"]/,_c=/['"]/g,eH=/[-\s()\[\]]/,bc="’";function yc(e,t){return t<0||t>=e.length?!1:!eH.test(e[t])}function un(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function tH(e){var t,r,i,o,l,u,h,d,b,_,k,M,E,B,O,P,D;if(e.options.typographer){for(D=[],O=e.tokens.length-1;O>=0;O--)if(e.tokens[O].type==="inline"){for(P=e.tokens[O].children,D.length=0,t=0;t=0&&!(D[E].level<=h);E--);D.length=E+1,i=r.content,l=0,u=i.length;e:for(;l=0&&(_=D[E],!(D[E].level=this.eMarks[t]};Jr.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;ti;)if(r!==this.src.charCodeAt(--t))return t+1;return t};Jr.prototype.getLines=function(t,r,i,o){var l,u,h,d,b,_=t;if(t>=r)return"";if(_+1===r)return u=this.bMarks[_]+Math.min(this.tShift[_],i),h=o?this.eMarks[_]+1:this.eMarks[_],this.src.slice(u,h);for(d=new Array(r-t),l=0;_i&&(b=i),b<0&&(b=0),u=this.bMarks[_]+b,_+1=4){i++,o=i;continue}break}return e.line=i,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}function nH(e,t,r,i){var o,l,u,h,d,b=!1,_=e.bMarks[t]+e.tShift[t],k=e.eMarks[t];if(_+3>k||(o=e.src.charCodeAt(_),o!==126&&o!==96)||(d=_,_=e.skipChars(_,o),l=_-d,l<3)||(u=e.src.slice(_,k).trim(),u.indexOf("`")>=0))return!1;if(i)return!0;for(h=t;h++,!(h>=r||(_=d=e.bMarks[h]+e.tShift[h],k=e.eMarks[h],_=4)&&(_=e.skipChars(_,o),!(_-dP||e.src.charCodeAt(O++)!==62||e.level>=e.options.maxNesting)return!1;if(i)return!0;for(e.src.charCodeAt(O)===32&&O++,d=e.blkIndent,e.blkIndent=0,h=[e.bMarks[t]],e.bMarks[t]=O,O=O=P,u=[e.tShift[t]],e.tShift[t]=O-e.bMarks[t],k=e.parser.ruler.getRules("blockquote"),o=t+1;o=P));o++){if(e.src.charCodeAt(O++)===62){e.src.charCodeAt(O)===32&&O++,h.push(e.bMarks[o]),e.bMarks[o]=O,O=O=P,u.push(e.tShift[o]),e.tShift[o]=O-e.bMarks[o];continue}if(l)break;for(B=!1,M=0,E=k.length;Md||(o=e.src.charCodeAt(h++),o!==42&&o!==45&&o!==95))return!1;for(l=1;h=o||(r=e.src.charCodeAt(i++),r!==42&&r!==45&&r!==43)||i=o||(r=e.src.charCodeAt(i++),r<48||r>57))return-1;for(;;){if(i>=o)return-1;if(r=e.src.charCodeAt(i++),!(r>=48&&r<=57)){if(r===41||r===46)break;return-1}}return i=0)P=!0;else if((k=wc(e,t))>=0)P=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(O=e.src.charCodeAt(k-1),i)return!0;for(W=e.tokens.length,P?(_=e.bMarks[t]+e.tShift[t],B=Number(e.src.substr(_,k-_-1)),e.tokens.push({type:"ordered_list_open",order:B,lines:ue=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:ue=[t,0],level:e.level++}),o=t,ce=!1,be=e.parser.ruler.getRules("list");o=M?E=1:E=D-k,E>4&&(E=1),E<1&&(E=1),l=k-e.bMarks[o]+E,e.tokens.push({type:"list_item_open",lines:Z=[t,0],level:e.level++}),h=e.blkIndent,d=e.tight,u=e.tShift[t],b=e.parentType,e.tShift[t]=D-e.bMarks[t],e.blkIndent=l,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,r,!0),(!e.tight||ce)&&(_e=!1),ce=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=h,e.tShift[t]=u,e.tight=d,e.parentType=b,e.tokens.push({type:"list_item_close",level:--e.level}),o=t=e.line,Z[1]=o,D=e.bMarks[t],!(o>=r||e.isEmpty(o)||e.tShift[o]_||e.src.charCodeAt(b)!==91||e.src.charCodeAt(b+1)!==94||e.level>=e.options.maxNesting)return!1;for(h=b+2;h<_;h++){if(e.src.charCodeAt(h)===32)return!1;if(e.src.charCodeAt(h)===93)break}return h===b+2||h+1>=_||e.src.charCodeAt(++h)!==58?!1:(i||(h++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),d=e.src.slice(b+2,h-2),e.env.footnotes.refs[":"+d]=-1,e.tokens.push({type:"footnote_reference_open",label:d,level:e.level++}),o=e.bMarks[t],l=e.tShift[t],u=e.parentType,e.tShift[t]=e.skipSpaces(h)-h,e.bMarks[t]=h,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]=d||(o=e.src.charCodeAt(h),o!==35||h>=d))return!1;for(l=1,o=e.src.charCodeAt(++h);o===35&&h6||hh&&e.src.charCodeAt(u-1)===32&&(d=u),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:l,lines:[t,e.line],level:e.level}),h=r||e.tShift[u]3||(o=e.bMarks[u]+e.tShift[u],l=e.eMarks[u],o>=l)||(i=e.src.charCodeAt(o),i!==45&&i!==61)||(o=e.skipChars(o,i),o=e.skipSpaces(o),o]/,fH=/^<\/([a-zA-Z]{1,15})[\s>]/;function pH(e){var t=e|32;return t>=97&&t<=122}function dH(e,t,r,i){var o,l,u,h=e.bMarks[t],d=e.eMarks[t],b=e.tShift[t];if(h+=b,!e.options.html||b>3||h+2>=d||e.src.charCodeAt(h)!==60)return!1;if(o=e.src.charCodeAt(h+1),o===33||o===63){if(i)return!0}else if(o===47||pH(o)){if(o===47){if(l=e.src.slice(h,d).match(fH),!l)return!1}else if(l=e.src.slice(h,d).match(hH),!l)return!1;if(Ih[l[1].toLowerCase()]!==!0)return!1;if(i)return!0}else return!1;for(u=t+1;ur||(d=t+1,e.tShift[d]=e.eMarks[d])||(o=e.src.charCodeAt(u),o!==124&&o!==45&&o!==58)||(l=za(e,t+1),!/^[-:| ]+$/.test(l))||(b=l.split("|"),b<=2))return!1;for(k=[],h=0;h=l||(i=e.src.charCodeAt(o++),i!==126&&i!==58)||(r=e.skipSpaces(o),o===r)||r>=l?-1:r}function gH(e,t){var r,i,o=e.level+2;for(r=t+2,i=e.tokens.length-2;r=0;if(_=t+1,e.isEmpty(_)&&++_>r||e.tShift[_]=e.options.maxNesting)return!1;b=e.tokens.length,e.tokens.push({type:"dl_open",lines:d=[t,0],level:e.level++}),u=t,l=_;e:for(;;){for(D=!0,P=!1,e.tokens.push({type:"dt_open",lines:[u,u],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(u,u+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[u,u],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:h=[_,0],level:e.level++}),O=e.tight,M=e.ddIndent,k=e.blkIndent,B=e.tShift[l],E=e.parentType,e.blkIndent=e.ddIndent=e.tShift[l]+2,e.tShift[l]=o-e.bMarks[l],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,l,r,!0),(!e.tight||P)&&(D=!1),P=e.line-l>1&&e.isEmpty(e.line-1),e.tShift[l]=B,e.tight=O,e.parentType=E,e.blkIndent=k,e.ddIndent=M,e.tokens.push({type:"dd_close",level:--e.level}),h[1]=_=e.line,_>=r||e.tShift[_]=r||(u=_,e.isEmpty(u))||e.tShift[u]=r)||(e.isEmpty(l)&&l++,l>=r)||e.tShift[l]3)){for(o=!1,l=0,u=d.length;l=r||e.tShift[l]=0&&(e=e.replace(bH,function(h,d){var b;return e.charCodeAt(d)===10?(l=d+1,u=0,h):(b=" ".slice((d-l-u)%4),u=d-l+1,b)})),o=new Jr(e,this,t,r,i),this.tokenize(o,o.line,o.lineMax)};function xH(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function kH(e,t){for(var r=e.pos;r=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(var l=r-2;l>=0;l--)if(e.pending.charCodeAt(l)!==32){e.pending=e.pending.substring(0,l+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o?@[]^_`{|}~-".split("").forEach(function(e){$o[e.charCodeAt(0)]=1});function SH(e,t){var r,i=e.pos,o=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i=l||e.src.charCodeAt(u+1)!==126||e.level>=e.options.maxNesting||(h=u>0?e.src.charCodeAt(u-1):-1,d=e.src.charCodeAt(u+2),h===126)||d===126||d===32||d===10)return!1;for(i=u+2;iu+3)return e.pos+=i-u,t||(e.pending+=e.src.slice(u,i)),!0;for(e.pos=u+2,o=1;e.pos+1=l||e.src.charCodeAt(u+1)!==43||e.level>=e.options.maxNesting||(h=u>0?e.src.charCodeAt(u-1):-1,d=e.src.charCodeAt(u+2),h===43)||d===43||d===32||d===10)return!1;for(i=u+2;i=l||e.src.charCodeAt(u+1)!==61||e.level>=e.options.maxNesting||(h=u>0?e.src.charCodeAt(u-1):-1,d=e.src.charCodeAt(u+2),h===61)||d===61||d===32||d===10)return!1;for(i=u+2;i=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Sc(e,t){var r=t,i,o,l,u=!0,h=!0,d=e.posMax,b=e.src.charCodeAt(t);for(i=t>0?e.src.charCodeAt(t-1):-1;r=d&&(u=!1),l=r-t,l>=4?u=h=!1:(o=r=e.options.maxNesting)return!1;for(e.pos=_+r,h=[r];e.pos?@[\]^_`{|}~-])/g;function NH(e,t){var r,i,o=e.posMax,l=e.pos;if(e.src.charCodeAt(l)!==126||t||l+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=l+1;e.pos?@[\]^_`{|}~-])/g;function OH(e,t){var r,i,o=e.posMax,l=e.pos;if(e.src.charCodeAt(l)!==94||t||l+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=l+1;e.pos=e.options.maxNesting||(r=E+1,i=Zn(e,E),i<0))return!1;if(h=i+1,h=M)return!1;for(E=h,Bh(e,h)?(l=e.linkContent,h=e.pos):l="",E=h;h=M||e.src.charCodeAt(h)!==41)return e.pos=k,!1;h++}else{if(e.linkLevel>0)return!1;for(;h=0?o=e.src.slice(E,h++):h=E-1),o||(typeof o>"u"&&(h=i+1),o=e.src.slice(r,i)),d=e.env.references[Dh(o)],!d)return e.pos=k,!1;l=d.href,u=d.title}return t||(e.pos=r,e.posMax=i,_?e.push({type:"image",src:l,title:u,alt:e.src.substr(r,i-r),level:e.level}):(e.push({type:"link_open",href:l,title:u,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=h,e.posMax=M,!0}function RH(e,t){var r,i,o,l,u=e.posMax,h=e.pos;return h+2>=u||e.src.charCodeAt(h)!==94||e.src.charCodeAt(h+1)!==91||e.level>=e.options.maxNesting||(r=h+2,i=Zn(e,h+1),i<0)?!1:(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=r,e.posMax=i,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,l=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(l)},e.linkLevel--),e.pos=i+1,e.posMax=u,!0)}function FH(e,t){var r,i,o,l,u=e.posMax,h=e.pos;if(h+3>u||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(h)!==91||e.src.charCodeAt(h+1)!==94||e.level>=e.options.maxNesting)return!1;for(i=h+2;i=u||(i++,r=e.src.slice(h+2,i-1),typeof e.env.footnotes.refs[":"+r]>"u")?!1:(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+r]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:r,count:0},e.env.footnotes.refs[":"+r]=o):o=e.env.footnotes.refs[":"+r],l=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:l,level:e.level})),e.pos=i,e.posMax=u,!0)}var LH=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],qH=/^<([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])?)*)>/,PH=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function HH(e,t){var r,i,o,l,u,h=e.pos;return e.src.charCodeAt(h)!==60||(r=e.src.slice(h),r.indexOf(">")<0)?!1:(i=r.match(PH),i?LH.indexOf(i[1].toLowerCase())<0||(l=i[0].slice(1,-1),u=io(l),!e.parser.validateLink(l))?!1:(t||(e.push({type:"link_open",href:u,level:e.level}),e.push({type:"text",content:l,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=i[0].length,!0):(o=r.match(qH),o?(l=o[0].slice(1,-1),u=io("mailto:"+l),e.parser.validateLink(u)?(t||(e.push({type:"link_open",href:u,level:e.level}),e.push({type:"text",content:l,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0):!1):!1))}function x0(e,t){return e=e.source,t=t||"",function r(i,o){return i?(o=o.source||o,e=e.replace(i,o),r):new RegExp(e,t)}}var $H=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,jH=/[^"'=<>`\x00-\x20]+/,UH=/'[^']*'/,GH=/"[^"]*"/,VH=x0(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",jH)("single_quoted",UH)("double_quoted",GH)(),XH=x0(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",$H)("attr_value",VH)(),YH=x0(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",XH)(),WH=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,KH=/|/,ZH=/<[?].*?[?]>/,JH=/]*>/,QH=//,e$=x0(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",YH)("close_tag",WH)("comment",KH)("processing",ZH)("declaration",JH)("cdata",QH)();function t$(e){var t=e|32;return t>=97&&t<=122}function r$(e,t){var r,i,o,l=e.pos;return!e.options.html||(o=e.posMax,e.src.charCodeAt(l)!==60||l+2>=o)||(r=e.src.charCodeAt(l+1),r!==33&&r!==63&&r!==47&&!t$(r))||(i=e.src.slice(l).match(e$),!i)?!1:(t||e.push({type:"htmltag",content:e.src.slice(l,l+i[0].length),level:e.level}),e.pos+=i[0].length,!0)}var n$=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,i$=/^&([a-z][a-z0-9]{1,31});/i;function a$(e,t){var r,i,o,l=e.pos,u=e.posMax;if(e.src.charCodeAt(l)!==38)return!1;if(l+10){e.pos=l;return}for(o=0;o=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};k0.prototype.parse=function(e,t,r,i){var o=new Zr(e,this,t,r,i);this.tokenize(o)};function o$(e){var t=["vbscript","javascript","file","data"],r=e.trim().toLowerCase();return r=Xr(r),!(r.indexOf(":")!==-1&&t.indexOf(r.split(":")[0])!==-1)}var s$={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},l$={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},c$={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},u$={default:s$,full:l$,commonmark:c$};function Rh(e,t,r){this.src=t,this.env=r,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Br(e,t){typeof e!="string"&&(t=e,e="default"),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead: +`};function Po(){this.rules=Th({},se),this.getBreak=se.getBreak}Po.prototype.renderInline=function(e,t,r){for(var i=this.rules,o=e.length,l=0,u="";o--;)u+=i[e[l].type](e,l++,t,r,this);return u};Po.prototype.render=function(e,t,r){for(var i=this.rules,o=e.length,l=-1,u="";++l"u"&&(i.abbreviations[":"+d]=b),u)}function $P(e){var t=e.tokens,r,i,o,l;if(!e.inlineMode){for(r=1,i=t.length-1;r1)||r===41&&(i--,i<0))break;t++}return l===t||(o=Kn(e.src.slice(l,t)),!e.parser.validateLink(o))?!1:(e.linkContent=o,e.pos=t,!0)}function Nh(e,t){var r,i=t,o=e.posMax,l=e.src.charCodeAt(t);if(l!==34&&l!==39&&l!==40)return!1;for(t++,l===40&&(l=41);t"u"&&(i.references[M]={title:x,href:_}),u)}function UP(e){var t=e.tokens,r,i,o,l;if(e.env.references=e.env.references||{},!e.inlineMode){for(r=1,i=t.length-1;r0?u[t].count:1,i=0;i=0;t--)if(l=o[t],l.type==="text"){for(d=0,u=l.content,_.lastIndex=0,b=l.level,h=[];x=_.exec(u);)_.lastIndex>d&&h.push({type:"text",content:u.slice(d,x.index+x[1].length),level:b}),h.push({type:"abbr_open",title:e.env.abbreviations[":"+x[2]],level:b++}),h.push({type:"text",content:x[2],level:b}),h.push({type:"abbr_close",level:--b}),d=_.lastIndex-x[3].length;h.length&&(d=0;l--)if(e.tokens[l].type==="inline")for(o=e.tokens[l].children,t=o.length-1;t>=0;t--)r=o[t],r.type==="text"&&(i=r.content,i=ZP(i),YP.test(i)&&(i=i.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=i)}}var QP=/['"]/,_c=/['"]/g,eH=/[-\s()\[\]]/,bc="’";function yc(e,t){return t<0||t>=e.length?!1:!eH.test(e[t])}function un(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function tH(e){var t,r,i,o,l,u,h,d,b,_,x,M,E,B,O,P,D;if(e.options.typographer){for(D=[],O=e.tokens.length-1;O>=0;O--)if(e.tokens[O].type==="inline"){for(P=e.tokens[O].children,D.length=0,t=0;t=0&&!(D[E].level<=h);E--);D.length=E+1,i=r.content,l=0,u=i.length;e:for(;l=0&&(_=D[E],!(D[E].level=this.eMarks[t]};Jr.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;ti;)if(r!==this.src.charCodeAt(--t))return t+1;return t};Jr.prototype.getLines=function(t,r,i,o){var l,u,h,d,b,_=t;if(t>=r)return"";if(_+1===r)return u=this.bMarks[_]+Math.min(this.tShift[_],i),h=o?this.eMarks[_]+1:this.eMarks[_],this.src.slice(u,h);for(d=new Array(r-t),l=0;_i&&(b=i),b<0&&(b=0),u=this.bMarks[_]+b,_+1=4){i++,o=i;continue}break}return e.line=i,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}function nH(e,t,r,i){var o,l,u,h,d,b=!1,_=e.bMarks[t]+e.tShift[t],x=e.eMarks[t];if(_+3>x||(o=e.src.charCodeAt(_),o!==126&&o!==96)||(d=_,_=e.skipChars(_,o),l=_-d,l<3)||(u=e.src.slice(_,x).trim(),u.indexOf("`")>=0))return!1;if(i)return!0;for(h=t;h++,!(h>=r||(_=d=e.bMarks[h]+e.tShift[h],x=e.eMarks[h],_=4)&&(_=e.skipChars(_,o),!(_-dP||e.src.charCodeAt(O++)!==62||e.level>=e.options.maxNesting)return!1;if(i)return!0;for(e.src.charCodeAt(O)===32&&O++,d=e.blkIndent,e.blkIndent=0,h=[e.bMarks[t]],e.bMarks[t]=O,O=O=P,u=[e.tShift[t]],e.tShift[t]=O-e.bMarks[t],x=e.parser.ruler.getRules("blockquote"),o=t+1;o=P));o++){if(e.src.charCodeAt(O++)===62){e.src.charCodeAt(O)===32&&O++,h.push(e.bMarks[o]),e.bMarks[o]=O,O=O=P,u.push(e.tShift[o]),e.tShift[o]=O-e.bMarks[o];continue}if(l)break;for(B=!1,M=0,E=x.length;Md||(o=e.src.charCodeAt(h++),o!==42&&o!==45&&o!==95))return!1;for(l=1;h=o||(r=e.src.charCodeAt(i++),r!==42&&r!==45&&r!==43)||i=o||(r=e.src.charCodeAt(i++),r<48||r>57))return-1;for(;;){if(i>=o)return-1;if(r=e.src.charCodeAt(i++),!(r>=48&&r<=57)){if(r===41||r===46)break;return-1}}return i=0)P=!0;else if((x=wc(e,t))>=0)P=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(O=e.src.charCodeAt(x-1),i)return!0;for(W=e.tokens.length,P?(_=e.bMarks[t]+e.tShift[t],B=Number(e.src.substr(_,x-_-1)),e.tokens.push({type:"ordered_list_open",order:B,lines:ue=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:ue=[t,0],level:e.level++}),o=t,ce=!1,be=e.parser.ruler.getRules("list");o=M?E=1:E=D-x,E>4&&(E=1),E<1&&(E=1),l=x-e.bMarks[o]+E,e.tokens.push({type:"list_item_open",lines:Z=[t,0],level:e.level++}),h=e.blkIndent,d=e.tight,u=e.tShift[t],b=e.parentType,e.tShift[t]=D-e.bMarks[t],e.blkIndent=l,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,r,!0),(!e.tight||ce)&&(_e=!1),ce=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=h,e.tShift[t]=u,e.tight=d,e.parentType=b,e.tokens.push({type:"list_item_close",level:--e.level}),o=t=e.line,Z[1]=o,D=e.bMarks[t],!(o>=r||e.isEmpty(o)||e.tShift[o]_||e.src.charCodeAt(b)!==91||e.src.charCodeAt(b+1)!==94||e.level>=e.options.maxNesting)return!1;for(h=b+2;h<_;h++){if(e.src.charCodeAt(h)===32)return!1;if(e.src.charCodeAt(h)===93)break}return h===b+2||h+1>=_||e.src.charCodeAt(++h)!==58?!1:(i||(h++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),d=e.src.slice(b+2,h-2),e.env.footnotes.refs[":"+d]=-1,e.tokens.push({type:"footnote_reference_open",label:d,level:e.level++}),o=e.bMarks[t],l=e.tShift[t],u=e.parentType,e.tShift[t]=e.skipSpaces(h)-h,e.bMarks[t]=h,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]=d||(o=e.src.charCodeAt(h),o!==35||h>=d))return!1;for(l=1,o=e.src.charCodeAt(++h);o===35&&h6||hh&&e.src.charCodeAt(u-1)===32&&(d=u),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:l,lines:[t,e.line],level:e.level}),h=r||e.tShift[u]3||(o=e.bMarks[u]+e.tShift[u],l=e.eMarks[u],o>=l)||(i=e.src.charCodeAt(o),i!==45&&i!==61)||(o=e.skipChars(o,i),o=e.skipSpaces(o),o]/,fH=/^<\/([a-zA-Z]{1,15})[\s>]/;function pH(e){var t=e|32;return t>=97&&t<=122}function dH(e,t,r,i){var o,l,u,h=e.bMarks[t],d=e.eMarks[t],b=e.tShift[t];if(h+=b,!e.options.html||b>3||h+2>=d||e.src.charCodeAt(h)!==60)return!1;if(o=e.src.charCodeAt(h+1),o===33||o===63){if(i)return!0}else if(o===47||pH(o)){if(o===47){if(l=e.src.slice(h,d).match(fH),!l)return!1}else if(l=e.src.slice(h,d).match(hH),!l)return!1;if(Ih[l[1].toLowerCase()]!==!0)return!1;if(i)return!0}else return!1;for(u=t+1;ur||(d=t+1,e.tShift[d]=e.eMarks[d])||(o=e.src.charCodeAt(u),o!==124&&o!==45&&o!==58)||(l=za(e,t+1),!/^[-:| ]+$/.test(l))||(b=l.split("|"),b<=2))return!1;for(x=[],h=0;h=l||(i=e.src.charCodeAt(o++),i!==126&&i!==58)||(r=e.skipSpaces(o),o===r)||r>=l?-1:r}function gH(e,t){var r,i,o=e.level+2;for(r=t+2,i=e.tokens.length-2;r=0;if(_=t+1,e.isEmpty(_)&&++_>r||e.tShift[_]=e.options.maxNesting)return!1;b=e.tokens.length,e.tokens.push({type:"dl_open",lines:d=[t,0],level:e.level++}),u=t,l=_;e:for(;;){for(D=!0,P=!1,e.tokens.push({type:"dt_open",lines:[u,u],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(u,u+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[u,u],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:h=[_,0],level:e.level++}),O=e.tight,M=e.ddIndent,x=e.blkIndent,B=e.tShift[l],E=e.parentType,e.blkIndent=e.ddIndent=e.tShift[l]+2,e.tShift[l]=o-e.bMarks[l],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,l,r,!0),(!e.tight||P)&&(D=!1),P=e.line-l>1&&e.isEmpty(e.line-1),e.tShift[l]=B,e.tight=O,e.parentType=E,e.blkIndent=x,e.ddIndent=M,e.tokens.push({type:"dd_close",level:--e.level}),h[1]=_=e.line,_>=r||e.tShift[_]=r||(u=_,e.isEmpty(u))||e.tShift[u]=r)||(e.isEmpty(l)&&l++,l>=r)||e.tShift[l]3)){for(o=!1,l=0,u=d.length;l=r||e.tShift[l]=0&&(e=e.replace(bH,function(h,d){var b;return e.charCodeAt(d)===10?(l=d+1,u=0,h):(b=" ".slice((d-l-u)%4),u=d-l+1,b)})),o=new Jr(e,this,t,r,i),this.tokenize(o,o.line,o.lineMax)};function xH(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function kH(e,t){for(var r=e.pos;r=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(var l=r-2;l>=0;l--)if(e.pending.charCodeAt(l)!==32){e.pending=e.pending.substring(0,l+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o?@[]^_`{|}~-".split("").forEach(function(e){$o[e.charCodeAt(0)]=1});function SH(e,t){var r,i=e.pos,o=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i=l||e.src.charCodeAt(u+1)!==126||e.level>=e.options.maxNesting||(h=u>0?e.src.charCodeAt(u-1):-1,d=e.src.charCodeAt(u+2),h===126)||d===126||d===32||d===10)return!1;for(i=u+2;iu+3)return e.pos+=i-u,t||(e.pending+=e.src.slice(u,i)),!0;for(e.pos=u+2,o=1;e.pos+1=l||e.src.charCodeAt(u+1)!==43||e.level>=e.options.maxNesting||(h=u>0?e.src.charCodeAt(u-1):-1,d=e.src.charCodeAt(u+2),h===43)||d===43||d===32||d===10)return!1;for(i=u+2;i=l||e.src.charCodeAt(u+1)!==61||e.level>=e.options.maxNesting||(h=u>0?e.src.charCodeAt(u-1):-1,d=e.src.charCodeAt(u+2),h===61)||d===61||d===32||d===10)return!1;for(i=u+2;i=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Sc(e,t){var r=t,i,o,l,u=!0,h=!0,d=e.posMax,b=e.src.charCodeAt(t);for(i=t>0?e.src.charCodeAt(t-1):-1;r=d&&(u=!1),l=r-t,l>=4?u=h=!1:(o=r=e.options.maxNesting)return!1;for(e.pos=_+r,h=[r];e.pos?@[\]^_`{|}~-])/g;function NH(e,t){var r,i,o=e.posMax,l=e.pos;if(e.src.charCodeAt(l)!==126||t||l+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=l+1;e.pos?@[\]^_`{|}~-])/g;function OH(e,t){var r,i,o=e.posMax,l=e.pos;if(e.src.charCodeAt(l)!==94||t||l+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=l+1;e.pos=e.options.maxNesting||(r=E+1,i=Zn(e,E),i<0))return!1;if(h=i+1,h=M)return!1;for(E=h,Bh(e,h)?(l=e.linkContent,h=e.pos):l="",E=h;h=M||e.src.charCodeAt(h)!==41)return e.pos=x,!1;h++}else{if(e.linkLevel>0)return!1;for(;h=0?o=e.src.slice(E,h++):h=E-1),o||(typeof o>"u"&&(h=i+1),o=e.src.slice(r,i)),d=e.env.references[Dh(o)],!d)return e.pos=x,!1;l=d.href,u=d.title}return t||(e.pos=r,e.posMax=i,_?e.push({type:"image",src:l,title:u,alt:e.src.substr(r,i-r),level:e.level}):(e.push({type:"link_open",href:l,title:u,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=h,e.posMax=M,!0}function RH(e,t){var r,i,o,l,u=e.posMax,h=e.pos;return h+2>=u||e.src.charCodeAt(h)!==94||e.src.charCodeAt(h+1)!==91||e.level>=e.options.maxNesting||(r=h+2,i=Zn(e,h+1),i<0)?!1:(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=r,e.posMax=i,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,l=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(l)},e.linkLevel--),e.pos=i+1,e.posMax=u,!0)}function FH(e,t){var r,i,o,l,u=e.posMax,h=e.pos;if(h+3>u||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(h)!==91||e.src.charCodeAt(h+1)!==94||e.level>=e.options.maxNesting)return!1;for(i=h+2;i=u||(i++,r=e.src.slice(h+2,i-1),typeof e.env.footnotes.refs[":"+r]>"u")?!1:(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+r]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:r,count:0},e.env.footnotes.refs[":"+r]=o):o=e.env.footnotes.refs[":"+r],l=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:l,level:e.level})),e.pos=i,e.posMax=u,!0)}var LH=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],qH=/^<([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])?)*)>/,PH=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function HH(e,t){var r,i,o,l,u,h=e.pos;return e.src.charCodeAt(h)!==60||(r=e.src.slice(h),r.indexOf(">")<0)?!1:(i=r.match(PH),i?LH.indexOf(i[1].toLowerCase())<0||(l=i[0].slice(1,-1),u=io(l),!e.parser.validateLink(l))?!1:(t||(e.push({type:"link_open",href:u,level:e.level}),e.push({type:"text",content:l,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=i[0].length,!0):(o=r.match(qH),o?(l=o[0].slice(1,-1),u=io("mailto:"+l),e.parser.validateLink(u)?(t||(e.push({type:"link_open",href:u,level:e.level}),e.push({type:"text",content:l,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0):!1):!1))}function x0(e,t){return e=e.source,t=t||"",function r(i,o){return i?(o=o.source||o,e=e.replace(i,o),r):new RegExp(e,t)}}var $H=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,jH=/[^"'=<>`\x00-\x20]+/,UH=/'[^']*'/,GH=/"[^"]*"/,VH=x0(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",jH)("single_quoted",UH)("double_quoted",GH)(),XH=x0(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",$H)("attr_value",VH)(),YH=x0(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",XH)(),WH=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,KH=/|/,ZH=/<[?].*?[?]>/,JH=/]*>/,QH=//,e$=x0(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",YH)("close_tag",WH)("comment",KH)("processing",ZH)("declaration",JH)("cdata",QH)();function t$(e){var t=e|32;return t>=97&&t<=122}function r$(e,t){var r,i,o,l=e.pos;return!e.options.html||(o=e.posMax,e.src.charCodeAt(l)!==60||l+2>=o)||(r=e.src.charCodeAt(l+1),r!==33&&r!==63&&r!==47&&!t$(r))||(i=e.src.slice(l).match(e$),!i)?!1:(t||e.push({type:"htmltag",content:e.src.slice(l,l+i[0].length),level:e.level}),e.pos+=i[0].length,!0)}var n$=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,i$=/^&([a-z][a-z0-9]{1,31});/i;function a$(e,t){var r,i,o,l=e.pos,u=e.posMax;if(e.src.charCodeAt(l)!==38)return!1;if(l+10){e.pos=l;return}for(o=0;o=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};k0.prototype.parse=function(e,t,r,i){var o=new Zr(e,this,t,r,i);this.tokenize(o)};function o$(e){var t=["vbscript","javascript","file","data"],r=e.trim().toLowerCase();return r=Xr(r),!(r.indexOf(":")!==-1&&t.indexOf(r.split(":")[0])!==-1)}var s$={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},l$={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},c$={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},u$={default:s$,full:l$,commonmark:c$};function Rh(e,t,r){this.src=t,this.env=r,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Br(e,t){typeof e!="string"&&(t=e,e="default"),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead: import Remarkable from 'remarkable'; import linkify from 'remarkable/linkify'; new Remarkable().use(linkify) -`),this.inline=new k0,this.block=new Ho,this.core=new Oh,this.renderer=new Po,this.ruler=new Mt,this.options={},this.configure(u$[e]),this.set(t||{})}Br.prototype.set=function(e){Th(this.options,e)};Br.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enable(e.components[r].rules,!0)})};Br.prototype.use=function(e,t){return e(this,t),this};Br.prototype.parse=function(e,t){var r=new Rh(this,e,t);return this.core.process(r),r.tokens};Br.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Br.prototype.parseInline=function(e,t){var r=new Rh(this,e,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Br.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const h$="npm2url/dist/index.cjs",f$={jsdelivr:e=>`https://cdn.jsdelivr.net/npm/${e}`,unpkg:e=>`https://unpkg.com/${e}`};async function p$(e,t){const r=await fetch(e,{signal:t});if(!r.ok)throw r;await r.text()}class d${constructor(){this.providers={...f$},this.provider="jsdelivr"}async getFastestProvider(t=5e3,r=h$){const i=new AbortController;let o=0;try{return await new Promise((l,u)=>{Promise.all(Object.entries(this.providers).map(async([h,d])=>{try{await p$(d(r),i.signal),l(h)}catch{}})).then(()=>u(new Error("All providers failed"))),o=setTimeout(u,t,new Error("Timed out"))})}finally{i.abort(),clearTimeout(o)}}async findFastestProvider(t,r){return this.provider=await this.getFastestProvider(t,r),this.provider}setProvider(t,r){r?this.providers[t]=r:delete this.providers[t]}getFullUrl(t,r=this.provider){if(t.includes("://"))return t;const i=this.providers[r];if(!i)throw new Error(`Provider ${r} not found`);return i(t)}}class $r{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){const r=this.listeners.indexOf(t);r>=0&&this.listeners.splice(r,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const r of this.listeners)r(...t)}}const m$={"&":"&","<":"<",'"':"""};function Mc(e){return e.replace(/[&<"]/g,t=>m$[t])}function g$(e){return e.replace(/<(\/script>)/g,"\\x3c$2")}function Ec(e,t){const r=t?Object.entries(t).map(([i,o])=>{if(!(o==null||o===!1))return i=` ${Mc(i)}`,o===!0?i:`${i}="${Mc(o)}"`}).filter(Boolean).join(""):"";return`<${e}${r}>`}function v$(e){return``}function s0(e,t,r){return t==null?Ec(e,r):Ec(e,r)+(t||"")+v$(e)}function _$(e,t){const r=t.map(i=>typeof i=="function"?i.toString():JSON.stringify(i??null)).join(",");return`(${e.toString()})(${r})`}function b$(e,t){return e.map(r=>{if(r.type==="script"){const{textContent:i,...o}=r.data;return s0("script",i||"",o)}if(r.type==="iife"){const{fn:i,getParams:o}=r.data;return s0("script",g$(_$(i,(o==null?void 0:o(t))||[])))}return""})}function y$(e){return e.map(t=>t.type==="stylesheet"?s0("link",null,{rel:"stylesheet",...t.data}):s0("style",t.data))}const w$=Math.random().toString(36).slice(2,8);let Tc=0;function x$(){return Tc+=1,`mm-${w$}-${Tc}`}function jn(){}function Na(e,t){const r=(i,o)=>t(i,()=>{var l;(l=i.children)==null||l.forEach(u=>{r(u,i)})},o);r(e)}function k$(e,...t){const r=(e||"").split(" ").filter(Boolean);return t.forEach(i=>{i&&r.indexOf(i)<0&&r.push(i)}),r.join(" ")}function hn(e){if(typeof e=="string"){const r=e;e=i=>i.tagName===r}const t=e;return function(){let i=Array.from(this.childNodes);return t&&(i=i.filter(o=>t(o))),i}}function A$(e,t){return(...r)=>t(e,...r)}function Fh(){const e={};return e.promise=new Promise((t,r)=>{e.resolve=t,e.reject=r}),e}function S$(e){const t={};return function(...i){const o=`${i[0]}`;let l=t[o];return l||(l={value:e(...i)},t[o]=l),l.value}}/*! @gera2ld/jsx-dom v2.2.2 | ISC License */const Lh=1,qh=2,M$="http://www.w3.org/2000/svg",Da="http://www.w3.org/1999/xlink",E$={show:Da,actuate:Da,href:Da},T$=e=>typeof e=="string"||typeof e=="number",C$=e=>(e==null?void 0:e.vtype)===Lh,z$=e=>(e==null?void 0:e.vtype)===qh;function B$(e,t,...r){return t=Object.assign({},t,{children:r.length===1?r[0]:r}),N$(e,t)}function N$(e,t){let r;if(typeof e=="string")r=Lh;else if(typeof e=="function")r=qh;else throw new Error("Invalid VNode type");return{vtype:r,type:e,props:t}}function D$(e){return e.children}const O$={isSvg:!1};function Cc(e,t){Array.isArray(t)||(t=[t]),t=t.filter(Boolean),t.length&&e.append(...t)}function I$(e,t,r){for(const i in t)if(!(i==="key"||i==="children"||i==="ref"))if(i==="dangerouslySetInnerHTML")e.innerHTML=t[i].__html;else if(i==="innerHTML"||i==="textContent"||i==="innerText"||i==="value"&&["textarea","select"].includes(e.tagName)){const o=t[i];o!=null&&(e[i]=o)}else i.startsWith("on")?e[i.toLowerCase()]=t[i]:F$(e,i,t[i],r.isSvg)}const R$={className:"class",labelFor:"for"};function F$(e,t,r,i){if(t=R$[t]||t,r===!0)e.setAttribute(t,"");else if(r===!1)e.removeAttribute(t);else{const o=i?E$[t]:void 0;o!==void 0?e.setAttributeNS(o,t,r):e.setAttribute(t,r)}}function L$(e){return e.reduce((t,r)=>t.concat(r),[])}function ao(e,t){return Array.isArray(e)?L$(e.map(r=>ao(r,t))):jo(e,t)}function jo(e,t=O$){if(e==null||typeof e=="boolean")return null;if(e instanceof Node)return e;if(z$(e)){const{type:r,props:i}=e;if(r===D$){const l=document.createDocumentFragment();if(i.children){const u=ao(i.children,t);Cc(l,u)}return l}const o=r(i);return jo(o,t)}if(T$(e))return document.createTextNode(`${e}`);if(C$(e)){let r;const{type:i,props:o}=e;if(!t.isSvg&&i==="svg"&&(t=Object.assign({},t,{isSvg:!0})),t.isSvg?r=document.createElementNS(M$,i):r=document.createElement(i),I$(r,o,t),o.children){let u=t;t.isSvg&&i==="foreignObject"&&(u=Object.assign({},u,{isSvg:!1}));const h=ao(o.children,u);h!=null&&Cc(r,h)}const{ref:l}=o;return typeof l=="function"&&l(r),r}throw new Error("mount: Invalid Vnode!")}function q$(e){return jo(e)}function l0(...e){return q$(B$(...e))}const P$=S$(e=>{document.head.append(l0("link",{rel:"preload",as:"script",href:e}))}),zc={},Bc={};async function H$(e,t){var r;const i=e.type==="script"&&((r=e.data)==null?void 0:r.src)||"";if(e.loaded||(e.loaded=zc[i]),!e.loaded){const o=Fh();if(e.loaded=o.promise,e.type==="script"&&(document.head.append(l0("script",{...e.data,onLoad:()=>o.resolve(),onError:o.reject})),i?zc[i]=e.loaded:o.resolve()),e.type==="iife"){const{fn:l,getParams:u}=e.data;l(...(u==null?void 0:u(t))||[]),o.resolve()}}await e.loaded}async function $$(e){const t=e.type==="stylesheet"&&e.data.href||"";if(e.loaded||(e.loaded=Bc[t]),!e.loaded){const r=Fh();e.loaded=r.promise,t&&(Bc[t]=e.loaded),e.type==="style"?(document.head.append(l0("style",{textContent:e.data})),r.resolve()):t&&(document.head.append(l0("link",{rel:"stylesheet",...e.data})),fetch(t).then(i=>{if(i.ok)return i.text();throw i}).then(()=>r.resolve(),r.reject))}await e.loaded}async function Uo(e,t){e.forEach(r=>{var i;r.type==="script"&&((i=r.data)!=null&&i.src)&&P$(r.data.src)}),t={getMarkmap:()=>window.markmap,...t};for(const r of e)await H$(r,t)}async function j$(e){await Promise.all(e.map(t=>$$(t)))}function A0(e){return{type:"script",data:{src:e}}}function Ph(e){return{type:"stylesheet",data:{href:e}}}var Oa={exports:{}},Nc;function U$(){return Nc||(Nc=1,function(e,t){(function(i,o){e.exports=o()})(typeof self<"u"?self:In,function(){return function(){var r={};(function(){r.d=function(m,n){for(var a in n)r.o(n,a)&&!r.o(m,a)&&Object.defineProperty(m,a,{enumerable:!0,get:n[a]})}})(),function(){r.o=function(m,n){return Object.prototype.hasOwnProperty.call(m,n)}}();var i={};r.d(i,{default:function(){return rp}});var o=function m(n,a){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var s="KaTeX parse error: "+n,c,f,g=a&&a.loc;if(g&&g.start<=g.end){var y=g.lexer.input;c=g.start,f=g.end,c===y.length?s+=" at end of input: ":s+=" at position "+(c+1)+": ";var x=y.slice(c,f).replace(/[^]/g,"$&̲"),S;c>15?S="…"+y.slice(c-15,c):S=y.slice(0,c);var z;f+15":">","<":"<",'"':""","'":"'"},k=/[&><"']/g;function M(m){return String(m).replace(k,function(n){return _[n]})}var E=function m(n){return n.type==="ordgroup"||n.type==="color"?n.body.length===1?m(n.body[0]):n:n.type==="font"?m(n.body):n},B=function(n){var a=E(n);return a.type==="mathord"||a.type==="textord"||a.type==="atom"},O=function(n){if(!n)throw new Error("Expected non-null, but got "+String(n));return n},P=function(n){var a=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(n);return a!=null?a[1]:"_relative"},D={contains:u,deflt:h,escape:M,hyphenate:b,getBaseElem:E,isCharacterBox:B,protocolFromUrl:P},W={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 "},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 ",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:function(n){return"#"+n}},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:function(n,a){return a.push(n),a}},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:function(n){return Math.max(0,n)},cli:"--min-rule-thickness ",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:function(n){return Math.max(0,n)},cli:"-s, --max-size ",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:function(n){return Math.max(0,n)},cli:"-e, --max-expand ",cliProcessor:function(n){return n==="Infinity"?1/0:parseInt(n)}},globalGroup:{type:"boolean",cli:!1}};function ce(m){if(m.default)return m.default;var n=m.type,a=Array.isArray(n)?n[0]:n;if(typeof a!="string")return a.enum[0];switch(a){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var ue=function(){function m(a){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,a=a||{};for(var s in W)if(W.hasOwnProperty(s)){var c=W[s];this[s]=a[s]!==void 0?c.processor?c.processor(a[s]):a[s]:ce(c)}}var n=m.prototype;return n.reportNonstrict=function(s,c,f){var g=this.strict;if(typeof g=="function"&&(g=g(s,c,f)),!(!g||g==="ignore")){if(g===!0||g==="error")throw new l("LaTeX-incompatible input and strict mode is set to 'error': "+(c+" ["+s+"]"),f);g==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(c+" ["+s+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+g+"': "+c+" ["+s+"]"))}},n.useStrictBehavior=function(s,c,f){var g=this.strict;if(typeof g=="function")try{g=g(s,c,f)}catch{g="error"}return!g||g==="ignore"?!1:g===!0||g==="error"?!0:g==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(c+" ["+s+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+g+"': "+c+" ["+s+"]")),!1)},n.isTrusted=function(s){s.url&&!s.protocol&&(s.protocol=D.protocolFromUrl(s.url));var c=typeof this.trust=="function"?this.trust(s):this.trust;return!!c},m}(),Z=function(){function m(a,s,c){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=a,this.size=s,this.cramped=c}var n=m.prototype;return n.sup=function(){return L[U[this.id]]},n.sub=function(){return L[G[this.id]]},n.fracNum=function(){return L[F[this.id]]},n.fracDen=function(){return L[X[this.id]]},n.cramp=function(){return L[ee[this.id]]},n.text=function(){return L[ae[this.id]]},n.isTight=function(){return this.size>=2},m}(),_e=0,be=1,He=2,Se=3,Ge=4,q=5,de=6,Ae=7,L=[new Z(_e,0,!1),new Z(be,0,!0),new Z(He,1,!1),new Z(Se,1,!0),new Z(Ge,2,!1),new Z(q,2,!0),new Z(de,3,!1),new Z(Ae,3,!0)],U=[Ge,q,Ge,q,de,Ae,de,Ae],G=[q,q,q,q,Ae,Ae,Ae,Ae],F=[He,Se,Ge,q,de,Ae,de,Ae],X=[Se,Se,q,q,Ae,Ae,Ae,Ae],ee=[be,be,Se,Se,q,q,Ae,Ae],ae=[_e,be,He,Se,He,Se,He,Se],V={DISPLAY:L[_e],TEXT:L[He],SCRIPT:L[Ge],SCRIPTSCRIPT:L[de]},we=[{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 Fe(m){for(var n=0;n=c[0]&&m<=c[1])return a.name}return null}var ze=[];we.forEach(function(m){return m.blocks.forEach(function(n){return ze.push.apply(ze,n)})});function Be(m){for(var n=0;n=ze[n]&&m<=ze[n+1])return!0;return!1}var Ne=80,rt=function(n,a){return"M95,"+(622+n+a)+` +`),this.inline=new k0,this.block=new Ho,this.core=new Oh,this.renderer=new Po,this.ruler=new Mt,this.options={},this.configure(u$[e]),this.set(t||{})}Br.prototype.set=function(e){Th(this.options,e)};Br.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enable(e.components[r].rules,!0)})};Br.prototype.use=function(e,t){return e(this,t),this};Br.prototype.parse=function(e,t){var r=new Rh(this,e,t);return this.core.process(r),r.tokens};Br.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Br.prototype.parseInline=function(e,t){var r=new Rh(this,e,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Br.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const h$="npm2url/dist/index.cjs",f$={jsdelivr:e=>`https://cdn.jsdelivr.net/npm/${e}`,unpkg:e=>`https://unpkg.com/${e}`};async function p$(e,t){const r=await fetch(e,{signal:t});if(!r.ok)throw r;await r.text()}class d${constructor(){this.providers={...f$},this.provider="jsdelivr"}async getFastestProvider(t=5e3,r=h$){const i=new AbortController;let o=0;try{return await new Promise((l,u)=>{Promise.all(Object.entries(this.providers).map(async([h,d])=>{try{await p$(d(r),i.signal),l(h)}catch{}})).then(()=>u(new Error("All providers failed"))),o=setTimeout(u,t,new Error("Timed out"))})}finally{i.abort(),clearTimeout(o)}}async findFastestProvider(t,r){return this.provider=await this.getFastestProvider(t,r),this.provider}setProvider(t,r){r?this.providers[t]=r:delete this.providers[t]}getFullUrl(t,r=this.provider){if(t.includes("://"))return t;const i=this.providers[r];if(!i)throw new Error(`Provider ${r} not found`);return i(t)}}class $r{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){const r=this.listeners.indexOf(t);r>=0&&this.listeners.splice(r,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const r of this.listeners)r(...t)}}const m$={"&":"&","<":"<",'"':"""};function Mc(e){return e.replace(/[&<"]/g,t=>m$[t])}function g$(e){return e.replace(/<(\/script>)/g,"\\x3c$2")}function Ec(e,t){const r=t?Object.entries(t).map(([i,o])=>{if(!(o==null||o===!1))return i=` ${Mc(i)}`,o===!0?i:`${i}="${Mc(o)}"`}).filter(Boolean).join(""):"";return`<${e}${r}>`}function v$(e){return``}function s0(e,t,r){return t==null?Ec(e,r):Ec(e,r)+(t||"")+v$(e)}function _$(e,t){const r=t.map(i=>typeof i=="function"?i.toString():JSON.stringify(i??null)).join(",");return`(${e.toString()})(${r})`}function b$(e,t){return e.map(r=>{if(r.type==="script"){const{textContent:i,...o}=r.data;return s0("script",i||"",o)}if(r.type==="iife"){const{fn:i,getParams:o}=r.data;return s0("script",g$(_$(i,(o==null?void 0:o(t))||[])))}return""})}function y$(e){return e.map(t=>t.type==="stylesheet"?s0("link",null,{rel:"stylesheet",...t.data}):s0("style",t.data))}const w$=Math.random().toString(36).slice(2,8);let Tc=0;function x$(){return Tc+=1,`mm-${w$}-${Tc}`}function jn(){}function Na(e,t){const r=(i,o)=>t(i,()=>{var l;(l=i.children)==null||l.forEach(u=>{r(u,i)})},o);r(e)}function k$(e,...t){const r=(e||"").split(" ").filter(Boolean);return t.forEach(i=>{i&&r.indexOf(i)<0&&r.push(i)}),r.join(" ")}function hn(e){if(typeof e=="string"){const r=e;e=i=>i.tagName===r}const t=e;return function(){let i=Array.from(this.childNodes);return t&&(i=i.filter(o=>t(o))),i}}function A$(e,t){return(...r)=>t(e,...r)}function Fh(){const e={};return e.promise=new Promise((t,r)=>{e.resolve=t,e.reject=r}),e}function S$(e){const t={};return function(...i){const o=`${i[0]}`;let l=t[o];return l||(l={value:e(...i)},t[o]=l),l.value}}/*! @gera2ld/jsx-dom v2.2.2 | ISC License */const Lh=1,qh=2,M$="http://www.w3.org/2000/svg",Da="http://www.w3.org/1999/xlink",E$={show:Da,actuate:Da,href:Da},T$=e=>typeof e=="string"||typeof e=="number",C$=e=>(e==null?void 0:e.vtype)===Lh,z$=e=>(e==null?void 0:e.vtype)===qh;function B$(e,t,...r){return t=Object.assign({},t,{children:r.length===1?r[0]:r}),N$(e,t)}function N$(e,t){let r;if(typeof e=="string")r=Lh;else if(typeof e=="function")r=qh;else throw new Error("Invalid VNode type");return{vtype:r,type:e,props:t}}function D$(e){return e.children}const O$={isSvg:!1};function Cc(e,t){Array.isArray(t)||(t=[t]),t=t.filter(Boolean),t.length&&e.append(...t)}function I$(e,t,r){for(const i in t)if(!(i==="key"||i==="children"||i==="ref"))if(i==="dangerouslySetInnerHTML")e.innerHTML=t[i].__html;else if(i==="innerHTML"||i==="textContent"||i==="innerText"||i==="value"&&["textarea","select"].includes(e.tagName)){const o=t[i];o!=null&&(e[i]=o)}else i.startsWith("on")?e[i.toLowerCase()]=t[i]:F$(e,i,t[i],r.isSvg)}const R$={className:"class",labelFor:"for"};function F$(e,t,r,i){if(t=R$[t]||t,r===!0)e.setAttribute(t,"");else if(r===!1)e.removeAttribute(t);else{const o=i?E$[t]:void 0;o!==void 0?e.setAttributeNS(o,t,r):e.setAttribute(t,r)}}function L$(e){return e.reduce((t,r)=>t.concat(r),[])}function ao(e,t){return Array.isArray(e)?L$(e.map(r=>ao(r,t))):jo(e,t)}function jo(e,t=O$){if(e==null||typeof e=="boolean")return null;if(e instanceof Node)return e;if(z$(e)){const{type:r,props:i}=e;if(r===D$){const l=document.createDocumentFragment();if(i.children){const u=ao(i.children,t);Cc(l,u)}return l}const o=r(i);return jo(o,t)}if(T$(e))return document.createTextNode(`${e}`);if(C$(e)){let r;const{type:i,props:o}=e;if(!t.isSvg&&i==="svg"&&(t=Object.assign({},t,{isSvg:!0})),t.isSvg?r=document.createElementNS(M$,i):r=document.createElement(i),I$(r,o,t),o.children){let u=t;t.isSvg&&i==="foreignObject"&&(u=Object.assign({},u,{isSvg:!1}));const h=ao(o.children,u);h!=null&&Cc(r,h)}const{ref:l}=o;return typeof l=="function"&&l(r),r}throw new Error("mount: Invalid Vnode!")}function q$(e){return jo(e)}function l0(...e){return q$(B$(...e))}const P$=S$(e=>{document.head.append(l0("link",{rel:"preload",as:"script",href:e}))}),zc={},Bc={};async function H$(e,t){var r;const i=e.type==="script"&&((r=e.data)==null?void 0:r.src)||"";if(e.loaded||(e.loaded=zc[i]),!e.loaded){const o=Fh();if(e.loaded=o.promise,e.type==="script"&&(document.head.append(l0("script",{...e.data,onLoad:()=>o.resolve(),onError:o.reject})),i?zc[i]=e.loaded:o.resolve()),e.type==="iife"){const{fn:l,getParams:u}=e.data;l(...(u==null?void 0:u(t))||[]),o.resolve()}}await e.loaded}async function $$(e){const t=e.type==="stylesheet"&&e.data.href||"";if(e.loaded||(e.loaded=Bc[t]),!e.loaded){const r=Fh();e.loaded=r.promise,t&&(Bc[t]=e.loaded),e.type==="style"?(document.head.append(l0("style",{textContent:e.data})),r.resolve()):t&&(document.head.append(l0("link",{rel:"stylesheet",...e.data})),fetch(t).then(i=>{if(i.ok)return i.text();throw i}).then(()=>r.resolve(),r.reject))}await e.loaded}async function Uo(e,t){e.forEach(r=>{var i;r.type==="script"&&((i=r.data)!=null&&i.src)&&P$(r.data.src)}),t={getMarkmap:()=>window.markmap,...t};for(const r of e)await H$(r,t)}async function j$(e){await Promise.all(e.map(t=>$$(t)))}function A0(e){return{type:"script",data:{src:e}}}function Ph(e){return{type:"stylesheet",data:{href:e}}}var Oa={exports:{}},Nc;function U$(){return Nc||(Nc=1,function(e,t){(function(i,o){e.exports=o()})(typeof self<"u"?self:In,function(){return function(){var r={};(function(){r.d=function(m,n){for(var a in n)r.o(n,a)&&!r.o(m,a)&&Object.defineProperty(m,a,{enumerable:!0,get:n[a]})}})(),function(){r.o=function(m,n){return Object.prototype.hasOwnProperty.call(m,n)}}();var i={};r.d(i,{default:function(){return rp}});var o=function m(n,a){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var s="KaTeX parse error: "+n,c,f,g=a&&a.loc;if(g&&g.start<=g.end){var y=g.lexer.input;c=g.start,f=g.end,c===y.length?s+=" at end of input: ":s+=" at position "+(c+1)+": ";var k=y.slice(c,f).replace(/[^]/g,"$&̲"),S;c>15?S="…"+y.slice(c-15,c):S=y.slice(0,c);var z;f+15":">","<":"<",'"':""","'":"'"},x=/[&><"']/g;function M(m){return String(m).replace(x,function(n){return _[n]})}var E=function m(n){return n.type==="ordgroup"||n.type==="color"?n.body.length===1?m(n.body[0]):n:n.type==="font"?m(n.body):n},B=function(n){var a=E(n);return a.type==="mathord"||a.type==="textord"||a.type==="atom"},O=function(n){if(!n)throw new Error("Expected non-null, but got "+String(n));return n},P=function(n){var a=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(n);return a!=null?a[1]:"_relative"},D={contains:u,deflt:h,escape:M,hyphenate:b,getBaseElem:E,isCharacterBox:B,protocolFromUrl:P},W={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 "},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 ",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:function(n){return"#"+n}},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:function(n,a){return a.push(n),a}},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:function(n){return Math.max(0,n)},cli:"--min-rule-thickness ",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:function(n){return Math.max(0,n)},cli:"-s, --max-size ",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:function(n){return Math.max(0,n)},cli:"-e, --max-expand ",cliProcessor:function(n){return n==="Infinity"?1/0:parseInt(n)}},globalGroup:{type:"boolean",cli:!1}};function ce(m){if(m.default)return m.default;var n=m.type,a=Array.isArray(n)?n[0]:n;if(typeof a!="string")return a.enum[0];switch(a){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var ue=function(){function m(a){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,a=a||{};for(var s in W)if(W.hasOwnProperty(s)){var c=W[s];this[s]=a[s]!==void 0?c.processor?c.processor(a[s]):a[s]:ce(c)}}var n=m.prototype;return n.reportNonstrict=function(s,c,f){var g=this.strict;if(typeof g=="function"&&(g=g(s,c,f)),!(!g||g==="ignore")){if(g===!0||g==="error")throw new l("LaTeX-incompatible input and strict mode is set to 'error': "+(c+" ["+s+"]"),f);g==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(c+" ["+s+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+g+"': "+c+" ["+s+"]"))}},n.useStrictBehavior=function(s,c,f){var g=this.strict;if(typeof g=="function")try{g=g(s,c,f)}catch{g="error"}return!g||g==="ignore"?!1:g===!0||g==="error"?!0:g==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(c+" ["+s+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+g+"': "+c+" ["+s+"]")),!1)},n.isTrusted=function(s){s.url&&!s.protocol&&(s.protocol=D.protocolFromUrl(s.url));var c=typeof this.trust=="function"?this.trust(s):this.trust;return!!c},m}(),Z=function(){function m(a,s,c){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=a,this.size=s,this.cramped=c}var n=m.prototype;return n.sup=function(){return L[U[this.id]]},n.sub=function(){return L[G[this.id]]},n.fracNum=function(){return L[F[this.id]]},n.fracDen=function(){return L[X[this.id]]},n.cramp=function(){return L[ee[this.id]]},n.text=function(){return L[ae[this.id]]},n.isTight=function(){return this.size>=2},m}(),_e=0,be=1,He=2,Se=3,Ge=4,q=5,de=6,Ae=7,L=[new Z(_e,0,!1),new Z(be,0,!0),new Z(He,1,!1),new Z(Se,1,!0),new Z(Ge,2,!1),new Z(q,2,!0),new Z(de,3,!1),new Z(Ae,3,!0)],U=[Ge,q,Ge,q,de,Ae,de,Ae],G=[q,q,q,q,Ae,Ae,Ae,Ae],F=[He,Se,Ge,q,de,Ae,de,Ae],X=[Se,Se,q,q,Ae,Ae,Ae,Ae],ee=[be,be,Se,Se,q,q,Ae,Ae],ae=[_e,be,He,Se,He,Se,He,Se],V={DISPLAY:L[_e],TEXT:L[He],SCRIPT:L[Ge],SCRIPTSCRIPT:L[de]},we=[{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 Fe(m){for(var n=0;n=c[0]&&m<=c[1])return a.name}return null}var ze=[];we.forEach(function(m){return m.blocks.forEach(function(n){return ze.push.apply(ze,n)})});function Be(m){for(var n=0;n=ze[n]&&m<=ze[n+1])return!0;return!1}var Ne=80,rt=function(n,a){return"M95,"+(622+n+a)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -322,13 +322,13 @@ 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 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},Zt=function(){function m(a){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=a,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var n=m.prototype;return n.hasClass=function(s){return D.contains(this.classes,s)},n.toNode=function(){for(var s=document.createDocumentFragment(),c=0;c=5?n=0:m>=3?n=1:n=2,!It[n]){var a=It[n]={cssEmPerMu:Nr.quad[n]/18};for(var s in Nr)Nr.hasOwnProperty(s)&&(a[s]=Nr[s][n])}return It[n]}var An=[[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]],re=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],le=function(n,a){return a.size<2?n:An[n-1][a.size-1]},ye=function(){function m(a){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=a.style,this.color=a.color,this.size=a.size||m.BASESIZE,this.textSize=a.textSize||this.size,this.phantom=!!a.phantom,this.font=a.font||"",this.fontFamily=a.fontFamily||"",this.fontWeight=a.fontWeight||"",this.fontShape=a.fontShape||"",this.sizeMultiplier=re[this.size-1],this.maxSize=a.maxSize,this.minRuleThickness=a.minRuleThickness,this._fontMetrics=void 0}var n=m.prototype;return n.extend=function(s){var c={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};for(var f in s)s.hasOwnProperty(f)&&(c[f]=s[f]);return new m(c)},n.havingStyle=function(s){return this.style===s?this:this.extend({style:s,size:le(this.textSize,s)})},n.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},n.havingSize=function(s){return this.size===s&&this.textSize===s?this:this.extend({style:this.style.text(),size:s,textSize:s,sizeMultiplier:re[s-1]})},n.havingBaseStyle=function(s){s=s||this.style.text();var c=le(m.BASESIZE,s);return this.size===c&&this.textSize===m.BASESIZE&&this.style===s?this:this.extend({style:s,size:c})},n.havingBaseSizing=function(){var s;switch(this.style.id){case 4:case 5:s=3;break;case 6:case 7:s=1;break;default:s=6}return this.extend({style:this.style.text(),size:s})},n.withColor=function(s){return this.extend({color:s})},n.withPhantom=function(){return this.extend({phantom:!0})},n.withFont=function(s){return this.extend({font:s})},n.withTextFontFamily=function(s){return this.extend({fontFamily:s,font:""})},n.withTextFontWeight=function(s){return this.extend({fontWeight:s,font:""})},n.withTextFontShape=function(s){return this.extend({fontShape:s,font:""})},n.sizingClasses=function(s){return s.size!==this.size?["sizing","reset-size"+s.size,"size"+this.size]:[]},n.baseSizingClasses=function(){return this.size!==m.BASESIZE?["sizing","reset-size"+this.size,"size"+m.BASESIZE]:[]},n.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=kn(this.size)),this._fontMetrics},n.getColor=function(){return this.phantom?"transparent":this.color},m}();ye.BASESIZE=6;var Ce=ye,Qe={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},Rt={ex:!0,em:!0,mu:!0},si=function(n){return typeof n!="string"&&(n=n.unit),n in Qe||n in Rt||n==="ex"},$e=function(n,a){var s;if(n.unit in Qe)s=Qe[n.unit]/a.fontMetrics().ptPerEm/a.sizeMultiplier;else if(n.unit==="mu")s=a.fontMetrics().cssEmPerMu;else{var c;if(a.style.isTight()?c=a.havingStyle(a.style.text()):c=a,n.unit==="ex")s=c.fontMetrics().xHeight;else if(n.unit==="em")s=c.fontMetrics().quad;else throw new l("Invalid unit: '"+n.unit+"'");c!==a&&(s*=c.sizeMultiplier/a.sizeMultiplier)}return Math.min(n.number*s,a.maxSize)},Q=function(n){return+n.toFixed(4)+"em"},hr=function(n){return n.filter(function(a){return a}).join(" ")},rs=function(n,a,s){if(this.classes=n||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=s||{},a){a.style.isTight()&&this.classes.push("mtight");var c=a.getColor();c&&(this.style.color=c)}},ns=function(n){var a=document.createElement(n);a.className=hr(this.classes);for(var s in this.style)this.style.hasOwnProperty(s)&&(a.style[s]=this.style[s]);for(var c in this.attributes)this.attributes.hasOwnProperty(c)&&a.setAttribute(c,this.attributes[c]);for(var f=0;f",a},Sn=function(){function m(a,s,c,f){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,rs.call(this,a,c,f),this.children=s||[]}var n=m.prototype;return n.setAttribute=function(s,c){this.attributes[s]=c},n.hasClass=function(s){return D.contains(this.classes,s)},n.toNode=function(){return ns.call(this,"span")},n.toMarkup=function(){return is.call(this,"span")},m}(),O0=function(){function m(a,s,c,f){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,rs.call(this,s,f),this.children=c||[],this.setAttribute("href",a)}var n=m.prototype;return n.setAttribute=function(s,c){this.attributes[s]=c},n.hasClass=function(s){return D.contains(this.classes,s)},n.toNode=function(){return ns.call(this,"a")},n.toMarkup=function(){return is.call(this,"a")},m}(),Nf=function(){function m(a,s,c){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=s,this.src=a,this.classes=["mord"],this.style=c}var n=m.prototype;return n.hasClass=function(s){return D.contains(this.classes,s)},n.toNode=function(){var s=document.createElement("img");s.src=this.src,s.alt=this.alt,s.className="mord";for(var c in this.style)this.style.hasOwnProperty(c)&&(s.style[c]=this.style[c]);return s},n.toMarkup=function(){var s=""+this.alt+"0&&(c=document.createElement("span"),c.style.marginRight=Q(this.italic)),this.classes.length>0&&(c=c||document.createElement("span"),c.className=hr(this.classes));for(var f in this.style)this.style.hasOwnProperty(f)&&(c=c||document.createElement("span"),c.style[f]=this.style[f]);return c?(c.appendChild(s),c):s},n.toMarkup=function(){var s=!1,c="0&&(f+="margin-right:"+this.italic+"em;");for(var g in this.style)this.style.hasOwnProperty(g)&&(f+=D.hyphenate(g)+":"+this.style[g]+";");f&&(s=!0,c+=' style="'+D.escape(f)+'"');var y=D.escape(this.text);return s?(c+=">",c+=y,c+="
    ",c):y},m}(),Jt=function(){function m(a,s){this.children=void 0,this.attributes=void 0,this.children=a||[],this.attributes=s||{}}var n=m.prototype;return n.toNode=function(){var s="http://www.w3.org/2000/svg",c=document.createElementNS(s,"svg");for(var f in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,f)&&c.setAttribute(f,this.attributes[f]);for(var g=0;g":""},m}(),I0=function(){function m(a){this.attributes=void 0,this.attributes=a||{}}var n=m.prototype;return n.toNode=function(){var s="http://www.w3.org/2000/svg",c=document.createElementNS(s,"line");for(var f in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,f)&&c.setAttribute(f,this.attributes[f]);return c},n.toMarkup=function(){var s=" but got "+String(m)+".")}var If={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Rf={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},li={math:{},text:{}},Xe=li;function p(m,n,a,s,c,f){li[m][c]={font:n,group:a,replace:s},f&&s&&(li[m][s]=li[m][c])}var v="math",Y="text",w="main",T="ams",Ve="accent-token",ie="bin",ut="close",en="inner",ge="mathord",et="op-token",kt="open",ci="punct",C="rel",Qt="spacing",N="textord";p(v,w,C,"≡","\\equiv",!0),p(v,w,C,"≺","\\prec",!0),p(v,w,C,"≻","\\succ",!0),p(v,w,C,"∼","\\sim",!0),p(v,w,C,"⊥","\\perp"),p(v,w,C,"⪯","\\preceq",!0),p(v,w,C,"⪰","\\succeq",!0),p(v,w,C,"≃","\\simeq",!0),p(v,w,C,"∣","\\mid",!0),p(v,w,C,"≪","\\ll",!0),p(v,w,C,"≫","\\gg",!0),p(v,w,C,"≍","\\asymp",!0),p(v,w,C,"∥","\\parallel"),p(v,w,C,"⋈","\\bowtie",!0),p(v,w,C,"⌣","\\smile",!0),p(v,w,C,"⊑","\\sqsubseteq",!0),p(v,w,C,"⊒","\\sqsupseteq",!0),p(v,w,C,"≐","\\doteq",!0),p(v,w,C,"⌢","\\frown",!0),p(v,w,C,"∋","\\ni",!0),p(v,w,C,"∝","\\propto",!0),p(v,w,C,"⊢","\\vdash",!0),p(v,w,C,"⊣","\\dashv",!0),p(v,w,C,"∋","\\owns"),p(v,w,ci,".","\\ldotp"),p(v,w,ci,"⋅","\\cdotp"),p(v,w,N,"#","\\#"),p(Y,w,N,"#","\\#"),p(v,w,N,"&","\\&"),p(Y,w,N,"&","\\&"),p(v,w,N,"ℵ","\\aleph",!0),p(v,w,N,"∀","\\forall",!0),p(v,w,N,"ℏ","\\hbar",!0),p(v,w,N,"∃","\\exists",!0),p(v,w,N,"∇","\\nabla",!0),p(v,w,N,"♭","\\flat",!0),p(v,w,N,"ℓ","\\ell",!0),p(v,w,N,"♮","\\natural",!0),p(v,w,N,"♣","\\clubsuit",!0),p(v,w,N,"℘","\\wp",!0),p(v,w,N,"♯","\\sharp",!0),p(v,w,N,"♢","\\diamondsuit",!0),p(v,w,N,"ℜ","\\Re",!0),p(v,w,N,"♡","\\heartsuit",!0),p(v,w,N,"ℑ","\\Im",!0),p(v,w,N,"♠","\\spadesuit",!0),p(v,w,N,"§","\\S",!0),p(Y,w,N,"§","\\S"),p(v,w,N,"¶","\\P",!0),p(Y,w,N,"¶","\\P"),p(v,w,N,"†","\\dag"),p(Y,w,N,"†","\\dag"),p(Y,w,N,"†","\\textdagger"),p(v,w,N,"‡","\\ddag"),p(Y,w,N,"‡","\\ddag"),p(Y,w,N,"‡","\\textdaggerdbl"),p(v,w,ut,"⎱","\\rmoustache",!0),p(v,w,kt,"⎰","\\lmoustache",!0),p(v,w,ut,"⟯","\\rgroup",!0),p(v,w,kt,"⟮","\\lgroup",!0),p(v,w,ie,"∓","\\mp",!0),p(v,w,ie,"⊖","\\ominus",!0),p(v,w,ie,"⊎","\\uplus",!0),p(v,w,ie,"⊓","\\sqcap",!0),p(v,w,ie,"∗","\\ast"),p(v,w,ie,"⊔","\\sqcup",!0),p(v,w,ie,"◯","\\bigcirc",!0),p(v,w,ie,"∙","\\bullet",!0),p(v,w,ie,"‡","\\ddagger"),p(v,w,ie,"≀","\\wr",!0),p(v,w,ie,"⨿","\\amalg"),p(v,w,ie,"&","\\And"),p(v,w,C,"⟵","\\longleftarrow",!0),p(v,w,C,"⇐","\\Leftarrow",!0),p(v,w,C,"⟸","\\Longleftarrow",!0),p(v,w,C,"⟶","\\longrightarrow",!0),p(v,w,C,"⇒","\\Rightarrow",!0),p(v,w,C,"⟹","\\Longrightarrow",!0),p(v,w,C,"↔","\\leftrightarrow",!0),p(v,w,C,"⟷","\\longleftrightarrow",!0),p(v,w,C,"⇔","\\Leftrightarrow",!0),p(v,w,C,"⟺","\\Longleftrightarrow",!0),p(v,w,C,"↦","\\mapsto",!0),p(v,w,C,"⟼","\\longmapsto",!0),p(v,w,C,"↗","\\nearrow",!0),p(v,w,C,"↩","\\hookleftarrow",!0),p(v,w,C,"↪","\\hookrightarrow",!0),p(v,w,C,"↘","\\searrow",!0),p(v,w,C,"↼","\\leftharpoonup",!0),p(v,w,C,"⇀","\\rightharpoonup",!0),p(v,w,C,"↙","\\swarrow",!0),p(v,w,C,"↽","\\leftharpoondown",!0),p(v,w,C,"⇁","\\rightharpoondown",!0),p(v,w,C,"↖","\\nwarrow",!0),p(v,w,C,"⇌","\\rightleftharpoons",!0),p(v,T,C,"≮","\\nless",!0),p(v,T,C,"","\\@nleqslant"),p(v,T,C,"","\\@nleqq"),p(v,T,C,"⪇","\\lneq",!0),p(v,T,C,"≨","\\lneqq",!0),p(v,T,C,"","\\@lvertneqq"),p(v,T,C,"⋦","\\lnsim",!0),p(v,T,C,"⪉","\\lnapprox",!0),p(v,T,C,"⊀","\\nprec",!0),p(v,T,C,"⋠","\\npreceq",!0),p(v,T,C,"⋨","\\precnsim",!0),p(v,T,C,"⪹","\\precnapprox",!0),p(v,T,C,"≁","\\nsim",!0),p(v,T,C,"","\\@nshortmid"),p(v,T,C,"∤","\\nmid",!0),p(v,T,C,"⊬","\\nvdash",!0),p(v,T,C,"⊭","\\nvDash",!0),p(v,T,C,"⋪","\\ntriangleleft"),p(v,T,C,"⋬","\\ntrianglelefteq",!0),p(v,T,C,"⊊","\\subsetneq",!0),p(v,T,C,"","\\@varsubsetneq"),p(v,T,C,"⫋","\\subsetneqq",!0),p(v,T,C,"","\\@varsubsetneqq"),p(v,T,C,"≯","\\ngtr",!0),p(v,T,C,"","\\@ngeqslant"),p(v,T,C,"","\\@ngeqq"),p(v,T,C,"⪈","\\gneq",!0),p(v,T,C,"≩","\\gneqq",!0),p(v,T,C,"","\\@gvertneqq"),p(v,T,C,"⋧","\\gnsim",!0),p(v,T,C,"⪊","\\gnapprox",!0),p(v,T,C,"⊁","\\nsucc",!0),p(v,T,C,"⋡","\\nsucceq",!0),p(v,T,C,"⋩","\\succnsim",!0),p(v,T,C,"⪺","\\succnapprox",!0),p(v,T,C,"≆","\\ncong",!0),p(v,T,C,"","\\@nshortparallel"),p(v,T,C,"∦","\\nparallel",!0),p(v,T,C,"⊯","\\nVDash",!0),p(v,T,C,"⋫","\\ntriangleright"),p(v,T,C,"⋭","\\ntrianglerighteq",!0),p(v,T,C,"","\\@nsupseteqq"),p(v,T,C,"⊋","\\supsetneq",!0),p(v,T,C,"","\\@varsupsetneq"),p(v,T,C,"⫌","\\supsetneqq",!0),p(v,T,C,"","\\@varsupsetneqq"),p(v,T,C,"⊮","\\nVdash",!0),p(v,T,C,"⪵","\\precneqq",!0),p(v,T,C,"⪶","\\succneqq",!0),p(v,T,C,"","\\@nsubseteqq"),p(v,T,ie,"⊴","\\unlhd"),p(v,T,ie,"⊵","\\unrhd"),p(v,T,C,"↚","\\nleftarrow",!0),p(v,T,C,"↛","\\nrightarrow",!0),p(v,T,C,"⇍","\\nLeftarrow",!0),p(v,T,C,"⇏","\\nRightarrow",!0),p(v,T,C,"↮","\\nleftrightarrow",!0),p(v,T,C,"⇎","\\nLeftrightarrow",!0),p(v,T,C,"△","\\vartriangle"),p(v,T,N,"ℏ","\\hslash"),p(v,T,N,"▽","\\triangledown"),p(v,T,N,"◊","\\lozenge"),p(v,T,N,"Ⓢ","\\circledS"),p(v,T,N,"®","\\circledR"),p(Y,T,N,"®","\\circledR"),p(v,T,N,"∡","\\measuredangle",!0),p(v,T,N,"∄","\\nexists"),p(v,T,N,"℧","\\mho"),p(v,T,N,"Ⅎ","\\Finv",!0),p(v,T,N,"⅁","\\Game",!0),p(v,T,N,"‵","\\backprime"),p(v,T,N,"▲","\\blacktriangle"),p(v,T,N,"▼","\\blacktriangledown"),p(v,T,N,"■","\\blacksquare"),p(v,T,N,"⧫","\\blacklozenge"),p(v,T,N,"★","\\bigstar"),p(v,T,N,"∢","\\sphericalangle",!0),p(v,T,N,"∁","\\complement",!0),p(v,T,N,"ð","\\eth",!0),p(Y,w,N,"ð","ð"),p(v,T,N,"╱","\\diagup"),p(v,T,N,"╲","\\diagdown"),p(v,T,N,"□","\\square"),p(v,T,N,"□","\\Box"),p(v,T,N,"◊","\\Diamond"),p(v,T,N,"¥","\\yen",!0),p(Y,T,N,"¥","\\yen",!0),p(v,T,N,"✓","\\checkmark",!0),p(Y,T,N,"✓","\\checkmark"),p(v,T,N,"ℶ","\\beth",!0),p(v,T,N,"ℸ","\\daleth",!0),p(v,T,N,"ℷ","\\gimel",!0),p(v,T,N,"ϝ","\\digamma",!0),p(v,T,N,"ϰ","\\varkappa"),p(v,T,kt,"┌","\\@ulcorner",!0),p(v,T,ut,"┐","\\@urcorner",!0),p(v,T,kt,"└","\\@llcorner",!0),p(v,T,ut,"┘","\\@lrcorner",!0),p(v,T,C,"≦","\\leqq",!0),p(v,T,C,"⩽","\\leqslant",!0),p(v,T,C,"⪕","\\eqslantless",!0),p(v,T,C,"≲","\\lesssim",!0),p(v,T,C,"⪅","\\lessapprox",!0),p(v,T,C,"≊","\\approxeq",!0),p(v,T,ie,"⋖","\\lessdot"),p(v,T,C,"⋘","\\lll",!0),p(v,T,C,"≶","\\lessgtr",!0),p(v,T,C,"⋚","\\lesseqgtr",!0),p(v,T,C,"⪋","\\lesseqqgtr",!0),p(v,T,C,"≑","\\doteqdot"),p(v,T,C,"≓","\\risingdotseq",!0),p(v,T,C,"≒","\\fallingdotseq",!0),p(v,T,C,"∽","\\backsim",!0),p(v,T,C,"⋍","\\backsimeq",!0),p(v,T,C,"⫅","\\subseteqq",!0),p(v,T,C,"⋐","\\Subset",!0),p(v,T,C,"⊏","\\sqsubset",!0),p(v,T,C,"≼","\\preccurlyeq",!0),p(v,T,C,"⋞","\\curlyeqprec",!0),p(v,T,C,"≾","\\precsim",!0),p(v,T,C,"⪷","\\precapprox",!0),p(v,T,C,"⊲","\\vartriangleleft"),p(v,T,C,"⊴","\\trianglelefteq"),p(v,T,C,"⊨","\\vDash",!0),p(v,T,C,"⊪","\\Vvdash",!0),p(v,T,C,"⌣","\\smallsmile"),p(v,T,C,"⌢","\\smallfrown"),p(v,T,C,"≏","\\bumpeq",!0),p(v,T,C,"≎","\\Bumpeq",!0),p(v,T,C,"≧","\\geqq",!0),p(v,T,C,"⩾","\\geqslant",!0),p(v,T,C,"⪖","\\eqslantgtr",!0),p(v,T,C,"≳","\\gtrsim",!0),p(v,T,C,"⪆","\\gtrapprox",!0),p(v,T,ie,"⋗","\\gtrdot"),p(v,T,C,"⋙","\\ggg",!0),p(v,T,C,"≷","\\gtrless",!0),p(v,T,C,"⋛","\\gtreqless",!0),p(v,T,C,"⪌","\\gtreqqless",!0),p(v,T,C,"≖","\\eqcirc",!0),p(v,T,C,"≗","\\circeq",!0),p(v,T,C,"≜","\\triangleq",!0),p(v,T,C,"∼","\\thicksim"),p(v,T,C,"≈","\\thickapprox"),p(v,T,C,"⫆","\\supseteqq",!0),p(v,T,C,"⋑","\\Supset",!0),p(v,T,C,"⊐","\\sqsupset",!0),p(v,T,C,"≽","\\succcurlyeq",!0),p(v,T,C,"⋟","\\curlyeqsucc",!0),p(v,T,C,"≿","\\succsim",!0),p(v,T,C,"⪸","\\succapprox",!0),p(v,T,C,"⊳","\\vartriangleright"),p(v,T,C,"⊵","\\trianglerighteq"),p(v,T,C,"⊩","\\Vdash",!0),p(v,T,C,"∣","\\shortmid"),p(v,T,C,"∥","\\shortparallel"),p(v,T,C,"≬","\\between",!0),p(v,T,C,"⋔","\\pitchfork",!0),p(v,T,C,"∝","\\varpropto"),p(v,T,C,"◀","\\blacktriangleleft"),p(v,T,C,"∴","\\therefore",!0),p(v,T,C,"∍","\\backepsilon"),p(v,T,C,"▶","\\blacktriangleright"),p(v,T,C,"∵","\\because",!0),p(v,T,C,"⋘","\\llless"),p(v,T,C,"⋙","\\gggtr"),p(v,T,ie,"⊲","\\lhd"),p(v,T,ie,"⊳","\\rhd"),p(v,T,C,"≂","\\eqsim",!0),p(v,w,C,"⋈","\\Join"),p(v,T,C,"≑","\\Doteq",!0),p(v,T,ie,"∔","\\dotplus",!0),p(v,T,ie,"∖","\\smallsetminus"),p(v,T,ie,"⋒","\\Cap",!0),p(v,T,ie,"⋓","\\Cup",!0),p(v,T,ie,"⩞","\\doublebarwedge",!0),p(v,T,ie,"⊟","\\boxminus",!0),p(v,T,ie,"⊞","\\boxplus",!0),p(v,T,ie,"⋇","\\divideontimes",!0),p(v,T,ie,"⋉","\\ltimes",!0),p(v,T,ie,"⋊","\\rtimes",!0),p(v,T,ie,"⋋","\\leftthreetimes",!0),p(v,T,ie,"⋌","\\rightthreetimes",!0),p(v,T,ie,"⋏","\\curlywedge",!0),p(v,T,ie,"⋎","\\curlyvee",!0),p(v,T,ie,"⊝","\\circleddash",!0),p(v,T,ie,"⊛","\\circledast",!0),p(v,T,ie,"⋅","\\centerdot"),p(v,T,ie,"⊺","\\intercal",!0),p(v,T,ie,"⋒","\\doublecap"),p(v,T,ie,"⋓","\\doublecup"),p(v,T,ie,"⊠","\\boxtimes",!0),p(v,T,C,"⇢","\\dashrightarrow",!0),p(v,T,C,"⇠","\\dashleftarrow",!0),p(v,T,C,"⇇","\\leftleftarrows",!0),p(v,T,C,"⇆","\\leftrightarrows",!0),p(v,T,C,"⇚","\\Lleftarrow",!0),p(v,T,C,"↞","\\twoheadleftarrow",!0),p(v,T,C,"↢","\\leftarrowtail",!0),p(v,T,C,"↫","\\looparrowleft",!0),p(v,T,C,"⇋","\\leftrightharpoons",!0),p(v,T,C,"↶","\\curvearrowleft",!0),p(v,T,C,"↺","\\circlearrowleft",!0),p(v,T,C,"↰","\\Lsh",!0),p(v,T,C,"⇈","\\upuparrows",!0),p(v,T,C,"↿","\\upharpoonleft",!0),p(v,T,C,"⇃","\\downharpoonleft",!0),p(v,w,C,"⊶","\\origof",!0),p(v,w,C,"⊷","\\imageof",!0),p(v,T,C,"⊸","\\multimap",!0),p(v,T,C,"↭","\\leftrightsquigarrow",!0),p(v,T,C,"⇉","\\rightrightarrows",!0),p(v,T,C,"⇄","\\rightleftarrows",!0),p(v,T,C,"↠","\\twoheadrightarrow",!0),p(v,T,C,"↣","\\rightarrowtail",!0),p(v,T,C,"↬","\\looparrowright",!0),p(v,T,C,"↷","\\curvearrowright",!0),p(v,T,C,"↻","\\circlearrowright",!0),p(v,T,C,"↱","\\Rsh",!0),p(v,T,C,"⇊","\\downdownarrows",!0),p(v,T,C,"↾","\\upharpoonright",!0),p(v,T,C,"⇂","\\downharpoonright",!0),p(v,T,C,"⇝","\\rightsquigarrow",!0),p(v,T,C,"⇝","\\leadsto"),p(v,T,C,"⇛","\\Rrightarrow",!0),p(v,T,C,"↾","\\restriction"),p(v,w,N,"‘","`"),p(v,w,N,"$","\\$"),p(Y,w,N,"$","\\$"),p(Y,w,N,"$","\\textdollar"),p(v,w,N,"%","\\%"),p(Y,w,N,"%","\\%"),p(v,w,N,"_","\\_"),p(Y,w,N,"_","\\_"),p(Y,w,N,"_","\\textunderscore"),p(v,w,N,"∠","\\angle",!0),p(v,w,N,"∞","\\infty",!0),p(v,w,N,"′","\\prime"),p(v,w,N,"△","\\triangle"),p(v,w,N,"Γ","\\Gamma",!0),p(v,w,N,"Δ","\\Delta",!0),p(v,w,N,"Θ","\\Theta",!0),p(v,w,N,"Λ","\\Lambda",!0),p(v,w,N,"Ξ","\\Xi",!0),p(v,w,N,"Π","\\Pi",!0),p(v,w,N,"Σ","\\Sigma",!0),p(v,w,N,"Υ","\\Upsilon",!0),p(v,w,N,"Φ","\\Phi",!0),p(v,w,N,"Ψ","\\Psi",!0),p(v,w,N,"Ω","\\Omega",!0),p(v,w,N,"A","Α"),p(v,w,N,"B","Β"),p(v,w,N,"E","Ε"),p(v,w,N,"Z","Ζ"),p(v,w,N,"H","Η"),p(v,w,N,"I","Ι"),p(v,w,N,"K","Κ"),p(v,w,N,"M","Μ"),p(v,w,N,"N","Ν"),p(v,w,N,"O","Ο"),p(v,w,N,"P","Ρ"),p(v,w,N,"T","Τ"),p(v,w,N,"X","Χ"),p(v,w,N,"¬","\\neg",!0),p(v,w,N,"¬","\\lnot"),p(v,w,N,"⊤","\\top"),p(v,w,N,"⊥","\\bot"),p(v,w,N,"∅","\\emptyset"),p(v,T,N,"∅","\\varnothing"),p(v,w,ge,"α","\\alpha",!0),p(v,w,ge,"β","\\beta",!0),p(v,w,ge,"γ","\\gamma",!0),p(v,w,ge,"δ","\\delta",!0),p(v,w,ge,"ϵ","\\epsilon",!0),p(v,w,ge,"ζ","\\zeta",!0),p(v,w,ge,"η","\\eta",!0),p(v,w,ge,"θ","\\theta",!0),p(v,w,ge,"ι","\\iota",!0),p(v,w,ge,"κ","\\kappa",!0),p(v,w,ge,"λ","\\lambda",!0),p(v,w,ge,"μ","\\mu",!0),p(v,w,ge,"ν","\\nu",!0),p(v,w,ge,"ξ","\\xi",!0),p(v,w,ge,"ο","\\omicron",!0),p(v,w,ge,"π","\\pi",!0),p(v,w,ge,"ρ","\\rho",!0),p(v,w,ge,"σ","\\sigma",!0),p(v,w,ge,"τ","\\tau",!0),p(v,w,ge,"υ","\\upsilon",!0),p(v,w,ge,"ϕ","\\phi",!0),p(v,w,ge,"χ","\\chi",!0),p(v,w,ge,"ψ","\\psi",!0),p(v,w,ge,"ω","\\omega",!0),p(v,w,ge,"ε","\\varepsilon",!0),p(v,w,ge,"ϑ","\\vartheta",!0),p(v,w,ge,"ϖ","\\varpi",!0),p(v,w,ge,"ϱ","\\varrho",!0),p(v,w,ge,"ς","\\varsigma",!0),p(v,w,ge,"φ","\\varphi",!0),p(v,w,ie,"∗","*",!0),p(v,w,ie,"+","+"),p(v,w,ie,"−","-",!0),p(v,w,ie,"⋅","\\cdot",!0),p(v,w,ie,"∘","\\circ",!0),p(v,w,ie,"÷","\\div",!0),p(v,w,ie,"±","\\pm",!0),p(v,w,ie,"×","\\times",!0),p(v,w,ie,"∩","\\cap",!0),p(v,w,ie,"∪","\\cup",!0),p(v,w,ie,"∖","\\setminus",!0),p(v,w,ie,"∧","\\land"),p(v,w,ie,"∨","\\lor"),p(v,w,ie,"∧","\\wedge",!0),p(v,w,ie,"∨","\\vee",!0),p(v,w,N,"√","\\surd"),p(v,w,kt,"⟨","\\langle",!0),p(v,w,kt,"∣","\\lvert"),p(v,w,kt,"∥","\\lVert"),p(v,w,ut,"?","?"),p(v,w,ut,"!","!"),p(v,w,ut,"⟩","\\rangle",!0),p(v,w,ut,"∣","\\rvert"),p(v,w,ut,"∥","\\rVert"),p(v,w,C,"=","="),p(v,w,C,":",":"),p(v,w,C,"≈","\\approx",!0),p(v,w,C,"≅","\\cong",!0),p(v,w,C,"≥","\\ge"),p(v,w,C,"≥","\\geq",!0),p(v,w,C,"←","\\gets"),p(v,w,C,">","\\gt",!0),p(v,w,C,"∈","\\in",!0),p(v,w,C,"","\\@not"),p(v,w,C,"⊂","\\subset",!0),p(v,w,C,"⊃","\\supset",!0),p(v,w,C,"⊆","\\subseteq",!0),p(v,w,C,"⊇","\\supseteq",!0),p(v,T,C,"⊈","\\nsubseteq",!0),p(v,T,C,"⊉","\\nsupseteq",!0),p(v,w,C,"⊨","\\models"),p(v,w,C,"←","\\leftarrow",!0),p(v,w,C,"≤","\\le"),p(v,w,C,"≤","\\leq",!0),p(v,w,C,"<","\\lt",!0),p(v,w,C,"→","\\rightarrow",!0),p(v,w,C,"→","\\to"),p(v,T,C,"≱","\\ngeq",!0),p(v,T,C,"≰","\\nleq",!0),p(v,w,Qt," ","\\ "),p(v,w,Qt," ","\\space"),p(v,w,Qt," ","\\nobreakspace"),p(Y,w,Qt," ","\\ "),p(Y,w,Qt," "," "),p(Y,w,Qt," ","\\space"),p(Y,w,Qt," ","\\nobreakspace"),p(v,w,Qt,null,"\\nobreak"),p(v,w,Qt,null,"\\allowbreak"),p(v,w,ci,",",","),p(v,w,ci,";",";"),p(v,T,ie,"⊼","\\barwedge",!0),p(v,T,ie,"⊻","\\veebar",!0),p(v,w,ie,"⊙","\\odot",!0),p(v,w,ie,"⊕","\\oplus",!0),p(v,w,ie,"⊗","\\otimes",!0),p(v,w,N,"∂","\\partial",!0),p(v,w,ie,"⊘","\\oslash",!0),p(v,T,ie,"⊚","\\circledcirc",!0),p(v,T,ie,"⊡","\\boxdot",!0),p(v,w,ie,"△","\\bigtriangleup"),p(v,w,ie,"▽","\\bigtriangledown"),p(v,w,ie,"†","\\dagger"),p(v,w,ie,"⋄","\\diamond"),p(v,w,ie,"⋆","\\star"),p(v,w,ie,"◃","\\triangleleft"),p(v,w,ie,"▹","\\triangleright"),p(v,w,kt,"{","\\{"),p(Y,w,N,"{","\\{"),p(Y,w,N,"{","\\textbraceleft"),p(v,w,ut,"}","\\}"),p(Y,w,N,"}","\\}"),p(Y,w,N,"}","\\textbraceright"),p(v,w,kt,"{","\\lbrace"),p(v,w,ut,"}","\\rbrace"),p(v,w,kt,"[","\\lbrack",!0),p(Y,w,N,"[","\\lbrack",!0),p(v,w,ut,"]","\\rbrack",!0),p(Y,w,N,"]","\\rbrack",!0),p(v,w,kt,"(","\\lparen",!0),p(v,w,ut,")","\\rparen",!0),p(Y,w,N,"<","\\textless",!0),p(Y,w,N,">","\\textgreater",!0),p(v,w,kt,"⌊","\\lfloor",!0),p(v,w,ut,"⌋","\\rfloor",!0),p(v,w,kt,"⌈","\\lceil",!0),p(v,w,ut,"⌉","\\rceil",!0),p(v,w,N,"\\","\\backslash"),p(v,w,N,"∣","|"),p(v,w,N,"∣","\\vert"),p(Y,w,N,"|","\\textbar",!0),p(v,w,N,"∥","\\|"),p(v,w,N,"∥","\\Vert"),p(Y,w,N,"∥","\\textbardbl"),p(Y,w,N,"~","\\textasciitilde"),p(Y,w,N,"\\","\\textbackslash"),p(Y,w,N,"^","\\textasciicircum"),p(v,w,C,"↑","\\uparrow",!0),p(v,w,C,"⇑","\\Uparrow",!0),p(v,w,C,"↓","\\downarrow",!0),p(v,w,C,"⇓","\\Downarrow",!0),p(v,w,C,"↕","\\updownarrow",!0),p(v,w,C,"⇕","\\Updownarrow",!0),p(v,w,et,"∐","\\coprod"),p(v,w,et,"⋁","\\bigvee"),p(v,w,et,"⋀","\\bigwedge"),p(v,w,et,"⨄","\\biguplus"),p(v,w,et,"⋂","\\bigcap"),p(v,w,et,"⋃","\\bigcup"),p(v,w,et,"∫","\\int"),p(v,w,et,"∫","\\intop"),p(v,w,et,"∬","\\iint"),p(v,w,et,"∭","\\iiint"),p(v,w,et,"∏","\\prod"),p(v,w,et,"∑","\\sum"),p(v,w,et,"⨂","\\bigotimes"),p(v,w,et,"⨁","\\bigoplus"),p(v,w,et,"⨀","\\bigodot"),p(v,w,et,"∮","\\oint"),p(v,w,et,"∯","\\oiint"),p(v,w,et,"∰","\\oiiint"),p(v,w,et,"⨆","\\bigsqcup"),p(v,w,et,"∫","\\smallint"),p(Y,w,en,"…","\\textellipsis"),p(v,w,en,"…","\\mathellipsis"),p(Y,w,en,"…","\\ldots",!0),p(v,w,en,"…","\\ldots",!0),p(v,w,en,"⋯","\\@cdots",!0),p(v,w,en,"⋱","\\ddots",!0),p(v,w,N,"⋮","\\varvdots"),p(v,w,Ve,"ˊ","\\acute"),p(v,w,Ve,"ˋ","\\grave"),p(v,w,Ve,"¨","\\ddot"),p(v,w,Ve,"~","\\tilde"),p(v,w,Ve,"ˉ","\\bar"),p(v,w,Ve,"˘","\\breve"),p(v,w,Ve,"ˇ","\\check"),p(v,w,Ve,"^","\\hat"),p(v,w,Ve,"⃗","\\vec"),p(v,w,Ve,"˙","\\dot"),p(v,w,Ve,"˚","\\mathring"),p(v,w,ge,"","\\@imath"),p(v,w,ge,"","\\@jmath"),p(v,w,N,"ı","ı"),p(v,w,N,"ȷ","ȷ"),p(Y,w,N,"ı","\\i",!0),p(Y,w,N,"ȷ","\\j",!0),p(Y,w,N,"ß","\\ss",!0),p(Y,w,N,"æ","\\ae",!0),p(Y,w,N,"œ","\\oe",!0),p(Y,w,N,"ø","\\o",!0),p(Y,w,N,"Æ","\\AE",!0),p(Y,w,N,"Œ","\\OE",!0),p(Y,w,N,"Ø","\\O",!0),p(Y,w,Ve,"ˊ","\\'"),p(Y,w,Ve,"ˋ","\\`"),p(Y,w,Ve,"ˆ","\\^"),p(Y,w,Ve,"˜","\\~"),p(Y,w,Ve,"ˉ","\\="),p(Y,w,Ve,"˘","\\u"),p(Y,w,Ve,"˙","\\."),p(Y,w,Ve,"¸","\\c"),p(Y,w,Ve,"˚","\\r"),p(Y,w,Ve,"ˇ","\\v"),p(Y,w,Ve,"¨",'\\"'),p(Y,w,Ve,"˝","\\H"),p(Y,w,Ve,"◯","\\textcircled");var os={"--":!0,"---":!0,"``":!0,"''":!0};p(Y,w,N,"–","--",!0),p(Y,w,N,"–","\\textendash"),p(Y,w,N,"—","---",!0),p(Y,w,N,"—","\\textemdash"),p(Y,w,N,"‘","`",!0),p(Y,w,N,"‘","\\textquoteleft"),p(Y,w,N,"’","'",!0),p(Y,w,N,"’","\\textquoteright"),p(Y,w,N,"“","``",!0),p(Y,w,N,"“","\\textquotedblleft"),p(Y,w,N,"”","''",!0),p(Y,w,N,"”","\\textquotedblright"),p(v,w,N,"°","\\degree",!0),p(Y,w,N,"°","\\degree"),p(Y,w,N,"°","\\textdegree",!0),p(v,w,N,"£","\\pounds"),p(v,w,N,"£","\\mathsterling",!0),p(Y,w,N,"£","\\pounds"),p(Y,w,N,"£","\\textsterling",!0),p(v,T,N,"✠","\\maltese"),p(Y,T,N,"✠","\\maltese");for(var ss='0123456789/@."',R0=0;R00)return Ft(f,S,c,a,g.concat(z));if(x){var $,H;if(x==="boldsymbol"){var j=qf(f,c,a,g,s);$=j.fontName,H=[j.fontClass]}else y?($=ds[x].fontName,H=[x]):($=mi(x,a.fontWeight,a.fontShape),H=[x,a.fontWeight,a.fontShape]);if(di(f,$,c).metrics)return Ft(f,$,c,a,g.concat(H));if(os.hasOwnProperty(f)&&$.slice(0,10)==="Typewriter"){for(var J=[],te=0;tea&&(a=g.height),g.depth>s&&(s=g.depth),g.maxFontSize>c&&(c=g.maxFontSize)}n.height=a,n.depth=s,n.maxFontSize=c},mt=function(n,a,s,c){var f=new Sn(n,a,s,c);return H0(f),f},fs=function(n,a,s,c){return new Sn(n,a,s,c)},jf=function(n,a,s){var c=mt([n],[],a);return c.height=Math.max(s||a.fontMetrics().defaultRuleThickness,a.minRuleThickness),c.style.borderBottomWidth=Q(c.height),c.maxFontSize=1,c},Uf=function(n,a,s,c){var f=new O0(n,a,s,c);return H0(f),f},ps=function(n){var a=new Zt(n);return H0(a),a},Gf=function(n,a){return n instanceof Zt?mt([],[n],a):n},Vf=function(n){if(n.positionType==="individualShift"){for(var a=n.children,s=[a[0]],c=-a[0].shift-a[0].elem.depth,f=c,g=1;g0&&(f.push(bi(g,n)),g=[]),f.push(s[y]));g.length>0&&f.push(bi(g,n));var S;a?(S=bi(nt(a,n,!0)),S.classes=["tag"],f.push(S)):c&&f.push(c);var z=tr(["katex-html"],f);if(z.setAttribute("aria-hidden","true"),S){var I=S.children[0];I.style.height=Q(z.height+z.depth),z.depth&&(I.style.verticalAlign=Q(-z.depth))}return z}function bs(m){return new Zt(m)}var Tt=function(){function m(a,s,c){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=a,this.attributes={},this.children=s||[],this.classes=c||[]}var n=m.prototype;return n.setAttribute=function(s,c){this.attributes[s]=c},n.getAttribute=function(s){return this.attributes[s]},n.toNode=function(){var s=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&s.setAttribute(c,this.attributes[c]);this.classes.length>0&&(s.className=hr(this.classes));for(var f=0;f0&&(s+=' class ="'+D.escape(hr(this.classes))+'"'),s+=">";for(var f=0;f",s},n.toText=function(){return this.children.map(function(s){return s.toText()}).join("")},m}(),En=function(){function m(a){this.text=void 0,this.text=a}var n=m.prototype;return n.toNode=function(){return document.createTextNode(this.text)},n.toMarkup=function(){return D.escape(this.toText())},n.toText=function(){return this.text},m}(),n1=function(){function m(a){this.width=void 0,this.character=void 0,this.width=a,a>=.05555&&a<=.05556?this.character=" ":a>=.1666&&a<=.1667?this.character=" ":a>=.2222&&a<=.2223?this.character=" ":a>=.2777&&a<=.2778?this.character="  ":a>=-.05556&&a<=-.05555?this.character=" ⁣":a>=-.1667&&a<=-.1666?this.character=" ⁣":a>=-.2223&&a<=-.2222?this.character=" ⁣":a>=-.2778&&a<=-.2777?this.character=" ⁣":this.character=null}var n=m.prototype;return n.toNode=function(){if(this.character)return document.createTextNode(this.character);var s=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return s.setAttribute("width",Q(this.width)),s},n.toMarkup=function(){return this.character?""+this.character+"":''},n.toText=function(){return this.character?this.character:" "},m}(),K={MathNode:Tt,TextNode:En,SpaceNode:n1,newDocumentFragment:bs},Ct=function(n,a,s){return Xe[a][n]&&Xe[a][n].replace&&n.charCodeAt(0)!==55349&&!(os.hasOwnProperty(n)&&s&&(s.fontFamily&&s.fontFamily.slice(4,6)==="tt"||s.font&&s.font.slice(4,6)==="tt"))&&(n=Xe[a][n].replace),new K.TextNode(n)},U0=function(n){return n.length===1?n[0]:new K.MathNode("mrow",n)},G0=function(n,a){if(a.fontFamily==="texttt")return"monospace";if(a.fontFamily==="textsf")return a.fontShape==="textit"&&a.fontWeight==="textbf"?"sans-serif-bold-italic":a.fontShape==="textit"?"sans-serif-italic":a.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(a.fontShape==="textit"&&a.fontWeight==="textbf")return"bold-italic";if(a.fontShape==="textit")return"italic";if(a.fontWeight==="textbf")return"bold";var s=a.font;if(!s||s==="mathnormal")return null;var c=n.mode;if(s==="mathit")return"italic";if(s==="boldsymbol")return n.type==="textord"?"bold":"bold-italic";if(s==="mathbf")return"bold";if(s==="mathbb")return"double-struck";if(s==="mathfrak")return"fraktur";if(s==="mathscr"||s==="mathcal")return"script";if(s==="mathsf")return"sans-serif";if(s==="mathtt")return"monospace";var f=n.text;if(D.contains(["\\imath","\\jmath"],f))return null;Xe[c][f]&&Xe[c][f].replace&&(f=Xe[c][f].replace);var g=R.fontMap[s].fontName;return ur(f,g,c)?R.fontMap[s].variant:null},gt=function(n,a,s){if(n.length===1){var c=qe(n[0],a);return s&&c instanceof Tt&&c.type==="mo"&&(c.setAttribute("lspace","0em"),c.setAttribute("rspace","0em")),[c]}for(var f=[],g,y=0;y0&&(j.text=j.text.slice(0,1)+"̸"+j.text.slice(1),f.pop())}}}f.push(x),g=x}return f},dr=function(n,a,s){return U0(gt(n,a,s))},qe=function(n,a){if(!n)return new K.MathNode("mrow");if(vi[n.type]){var s=vi[n.type](n,a);return s}else throw new l("Got group of unknown type: '"+n.type+"'")};function ys(m,n,a,s,c){var f=gt(m,a),g;f.length===1&&f[0]instanceof Tt&&D.contains(["mrow","mtable"],f[0].type)?g=f[0]:g=new K.MathNode("mrow",f);var y=new K.MathNode("annotation",[new K.TextNode(n)]);y.setAttribute("encoding","application/x-tex");var x=new K.MathNode("semantics",[g,y]),S=new K.MathNode("math",[x]);S.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),s&&S.setAttribute("display","block");var z=c?"katex":"katex-mathml";return R.makeSpan([z],[S])}var ws=function(n){return new Ce({style:n.displayMode?V.DISPLAY:V.TEXT,maxSize:n.maxSize,minRuleThickness:n.minRuleThickness})},xs=function(n,a){if(a.displayMode){var s=["katex-display"];a.leqno&&s.push("leqno"),a.fleqn&&s.push("fleqn"),n=R.makeSpan(s,[n])}return n},i1=function(n,a,s){var c=ws(s),f;if(s.output==="mathml")return ys(n,a,c,s.displayMode,!0);if(s.output==="html"){var g=j0(n,c);f=R.makeSpan(["katex"],[g])}else{var y=ys(n,a,c,s.displayMode,!1),x=j0(n,c);f=R.makeSpan(["katex"],[y,x])}return xs(f,s)},a1=function(n,a,s){var c=ws(s),f=j0(n,c),g=R.makeSpan(["katex"],[f]);return xs(g,s)},o1={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",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":"="},s1=function(n){var a=new K.MathNode("mo",[new K.TextNode(o1[n.replace(/^\\/,"")])]);return a.setAttribute("stretchy","true"),a},l1={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],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]},c1=function(n){return n.type==="ordgroup"?n.body.length:1},u1=function(n,a){function s(){var x=4e5,S=n.label.slice(1);if(D.contains(["widehat","widecheck","widetilde","utilde"],S)){var z=n,I=c1(z.base),$,H,j;if(I>5)S==="widehat"||S==="widecheck"?($=420,x=2364,j=.42,H=S+"4"):($=312,x=2340,j=.34,H="tilde4");else{var J=[1,1,2,2,3,3][I];S==="widehat"||S==="widecheck"?(x=[0,1062,2364,2364,2364][J],$=[0,239,300,360,420][J],j=[0,.24,.3,.3,.36,.42][J],H=S+J):(x=[0,600,1033,2339,2340][J],$=[0,260,286,306,312][J],j=[0,.26,.286,.3,.306,.34][J],H="tilde"+J)}var te=new fr(H),oe=new Jt([te],{width:"100%",height:Q(j),viewBox:"0 0 "+x+" "+$,preserveAspectRatio:"none"});return{span:R.makeSvgSpan([],[oe],a),minWidth:0,height:j}}else{var he=[],me=l1[S],Te=me[0],ke=me[1],De=me[2],Ee=De/1e3,Ie=Te.length,je,ot;if(Ie===1){var At=me[3];je=["hide-tail"],ot=[At]}else if(Ie===2)je=["halfarrow-left","halfarrow-right"],ot=["xMinYMin","xMaxYMin"];else if(Ie===3)je=["brace-left","brace-center","brace-right"],ot=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+Ie+" children.");for(var We=0;We0&&(f.style.minWidth=Q(g)),f},h1=function(n,a,s,c,f){var g,y=n.height+n.depth+s+c;if(/fbox|color|angl/.test(a)){if(g=R.makeSpan(["stretchy",a],[],f),a==="fbox"){var x=f.color&&f.getColor();x&&(g.style.borderColor=x)}}else{var S=[];/^[bx]cancel$/.test(a)&&S.push(new I0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&S.push(new I0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var z=new Jt(S,{width:"100%",height:Q(y)});g=R.makeSvgSpan([],[z],f)}return g.height=y,g.style.height=Q(y),g},rr={encloseSpan:h1,mathMLnode:s1,svgSpan:u1};function xe(m,n){if(!m||m.type!==n)throw new Error("Expected node of type "+n+", but got "+(m?"node of type "+m.type:String(m)));return m}function V0(m){var n=yi(m);if(!n)throw new Error("Expected node of symbol group type, but got "+(m?"node of type "+m.type:String(m)));return n}function yi(m){return m&&(m.type==="atom"||Rf.hasOwnProperty(m.type))?m:null}var X0=function(n,a){var s,c,f;n&&n.type==="supsub"?(c=xe(n.base,"accent"),s=c.base,n.base=s,f=Of(Me(n,a)),n.base=c):(c=xe(n,"accent"),s=c.base);var g=Me(s,a.havingCrampedStyle()),y=c.isShifty&&D.isCharacterBox(s),x=0;if(y){var S=D.getBaseElem(s),z=Me(S,a.havingCrampedStyle());x=as(z).skew}var I=c.label==="\\c",$=I?g.height+g.depth:Math.min(g.height,a.fontMetrics().xHeight),H;if(c.isStretchy)H=rr.svgSpan(c,a),H=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:g},{type:"elem",elem:H,wrapperClasses:["svg-align"],wrapperStyle:x>0?{width:"calc(100% - "+Q(2*x)+")",marginLeft:Q(2*x)}:void 0}]},a);else{var j,J;c.label==="\\vec"?(j=R.staticSvg("vec",a),J=R.svgData.vec[1]):(j=R.makeOrd({mode:c.mode,text:c.label},a,"textord"),j=as(j),j.italic=0,J=j.width,I&&($+=j.depth)),H=R.makeSpan(["accent-body"],[j]);var te=c.label==="\\textcircled";te&&(H.classes.push("accent-full"),$=g.height);var oe=x;te||(oe-=J/2),H.style.left=Q(oe),c.label==="\\textcircled"&&(H.style.top=".2em"),H=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:g},{type:"kern",size:-$},{type:"elem",elem:H}]},a)}var he=R.makeSpan(["mord","accent"],[H],a);return f?(f.children[0]=he,f.height=Math.max(he.height,f.height),f.classes[0]="mord",f):he},ks=function(n,a){var s=n.isStretchy?rr.mathMLnode(n.label):new K.MathNode("mo",[Ct(n.label,n.mode)]),c=new K.MathNode("mover",[qe(n.base,a),s]);return c.setAttribute("accent","true"),c},f1=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(m){return"\\"+m}).join("|"));ne({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:function(n,a){var s=_i(a[0]),c=!f1.test(n.funcName),f=!c||n.funcName==="\\widehat"||n.funcName==="\\widetilde"||n.funcName==="\\widecheck";return{type:"accent",mode:n.parser.mode,label:n.funcName,isStretchy:c,isShifty:f,base:s}},htmlBuilder:X0,mathmlBuilder:ks}),ne({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(n,a){var s=a[0],c=n.parser.mode;return c==="math"&&(n.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+n.funcName+" works only in text mode"),c="text"),{type:"accent",mode:c,label:n.funcName,isStretchy:!1,isShifty:!0,base:s}},htmlBuilder:X0,mathmlBuilder:ks}),ne({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];return{type:"accentUnder",mode:s.mode,label:c,base:f}},htmlBuilder:function(n,a){var s=Me(n.base,a),c=rr.svgSpan(n,a),f=n.label==="\\utilde"?.12:0,g=R.makeVList({positionType:"top",positionData:s.height,children:[{type:"elem",elem:c,wrapperClasses:["svg-align"]},{type:"kern",size:f},{type:"elem",elem:s}]},a);return R.makeSpan(["mord","accentunder"],[g],a)},mathmlBuilder:function(n,a){var s=rr.mathMLnode(n.label),c=new K.MathNode("munder",[qe(n.base,a),s]);return c.setAttribute("accentunder","true"),c}});var wi=function(n){var a=new K.MathNode("mpadded",n?[n]:[]);return a.setAttribute("width","+0.6em"),a.setAttribute("lspace","0.3em"),a};ne({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:function(n,a,s){var c=n.parser,f=n.funcName;return{type:"xArrow",mode:c.mode,label:f,body:a[0],below:s[0]}},htmlBuilder:function(n,a){var s=a.style,c=a.havingStyle(s.sup()),f=R.wrapFragment(Me(n.body,c,a),a),g=n.label.slice(0,2)==="\\x"?"x":"cd";f.classes.push(g+"-arrow-pad");var y;n.below&&(c=a.havingStyle(s.sub()),y=R.wrapFragment(Me(n.below,c,a),a),y.classes.push(g+"-arrow-pad"));var x=rr.svgSpan(n,a),S=-a.fontMetrics().axisHeight+.5*x.height,z=-a.fontMetrics().axisHeight-.5*x.height-.111;(f.depth>.25||n.label==="\\xleftequilibrium")&&(z-=f.depth);var I;if(y){var $=-a.fontMetrics().axisHeight+y.height+.5*x.height+.111;I=R.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:z},{type:"elem",elem:x,shift:S},{type:"elem",elem:y,shift:$}]},a)}else I=R.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:z},{type:"elem",elem:x,shift:S}]},a);return I.children[0].children[0].children[1].classes.push("svg-align"),R.makeSpan(["mrel","x-arrow"],[I],a)},mathmlBuilder:function(n,a){var s=rr.mathMLnode(n.label);s.setAttribute("minsize",n.label.charAt(0)==="x"?"1.75em":"3.0em");var c;if(n.body){var f=wi(qe(n.body,a));if(n.below){var g=wi(qe(n.below,a));c=new K.MathNode("munderover",[s,g,f])}else c=new K.MathNode("mover",[s,f])}else if(n.below){var y=wi(qe(n.below,a));c=new K.MathNode("munder",[s,y])}else c=wi(),c=new K.MathNode("mover",[s,c]);return c}});var p1=R.makeSpan;function As(m,n){var a=nt(m.body,n,!0);return p1([m.mclass],a,n)}function Ss(m,n){var a,s=gt(m.body,n);return m.mclass==="minner"?a=new K.MathNode("mpadded",s):m.mclass==="mord"?m.isCharacterBox?(a=s[0],a.type="mi"):a=new K.MathNode("mi",s):(m.isCharacterBox?(a=s[0],a.type="mo"):a=new K.MathNode("mo",s),m.mclass==="mbin"?(a.attributes.lspace="0.22em",a.attributes.rspace="0.22em"):m.mclass==="mpunct"?(a.attributes.lspace="0em",a.attributes.rspace="0.17em"):m.mclass==="mopen"||m.mclass==="mclose"?(a.attributes.lspace="0em",a.attributes.rspace="0em"):m.mclass==="minner"&&(a.attributes.lspace="0.0556em",a.attributes.width="+0.1111em")),a}ne({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];return{type:"mclass",mode:s.mode,mclass:"m"+c.slice(5),body:Ze(f),isCharacterBox:D.isCharacterBox(f)}},htmlBuilder:As,mathmlBuilder:Ss});var xi=function(n){var a=n.type==="ordgroup"&&n.body.length?n.body[0]:n;return a.type==="atom"&&(a.family==="bin"||a.family==="rel")?"m"+a.family:"mord"};ne({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(n,a){var s=n.parser;return{type:"mclass",mode:s.mode,mclass:xi(a[0]),body:Ze(a[1]),isCharacterBox:D.isCharacterBox(a[1])}}}),ne({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[1],g=a[0],y;c!=="\\stackrel"?y=xi(f):y="mrel";var x={type:"op",mode:f.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:c!=="\\stackrel",body:Ze(f)},S={type:"supsub",mode:g.mode,base:x,sup:c==="\\underset"?null:g,sub:c==="\\underset"?g:null};return{type:"mclass",mode:s.mode,mclass:y,body:[S],isCharacterBox:D.isCharacterBox(S)}},htmlBuilder:As,mathmlBuilder:Ss}),ne({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(n,a){var s=n.parser;return{type:"pmb",mode:s.mode,mclass:xi(a[0]),body:Ze(a[0])}},htmlBuilder:function(n,a){var s=nt(n.body,a,!0),c=R.makeSpan([n.mclass],s,a);return c.style.textShadow="0.02em 0.01em 0.04px",c},mathmlBuilder:function(n,a){var s=gt(n.body,a),c=new K.MathNode("mstyle",s);return c.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),c}});var d1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ms=function(){return{type:"styling",body:[],mode:"math",style:"display"}},Es=function(n){return n.type==="textord"&&n.text==="@"},m1=function(n,a){return(n.type==="mathord"||n.type==="atom")&&n.text===a};function g1(m,n,a){var s=d1[m];switch(s){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return a.callFunction(s,[n[0]],[n[1]]);case"\\uparrow":case"\\downarrow":{var c=a.callFunction("\\\\cdleft",[n[0]],[]),f={type:"atom",text:s,mode:"math",family:"rel"},g=a.callFunction("\\Big",[f],[]),y=a.callFunction("\\\\cdright",[n[1]],[]),x={type:"ordgroup",mode:"math",body:[c,g,y]};return a.callFunction("\\\\cdparent",[x],[])}case"\\\\cdlongequal":return a.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var S={type:"textord",text:"\\Vert",mode:"math"};return a.callFunction("\\Big",[S],[])}default:return{type:"textord",text:" ",mode:"math"}}}function v1(m){var n=[];for(m.gullet.beginGroup(),m.gullet.macros.set("\\cr","\\\\\\relax"),m.gullet.beginGroup();;){n.push(m.parseExpression(!1,"\\\\")),m.gullet.endGroup(),m.gullet.beginGroup();var a=m.fetch().text;if(a==="&"||a==="\\\\")m.consume();else if(a==="\\end"){n[n.length-1].length===0&&n.pop();break}else throw new l("Expected \\\\ or \\cr or \\end",m.nextToken)}for(var s=[],c=[s],f=0;f-1))if("<>AV".indexOf(S)>-1)for(var I=0;I<2;I++){for(var $=!0,H=x+1;HAV=|." after @',g[x]);var j=g1(S,z,m),J={type:"styling",body:[j],mode:"math",style:"display"};s.push(J),y=Ms()}f%2===0?s.push(y):s.shift(),s=[],c.push(s)}m.gullet.endGroup(),m.gullet.endGroup();var te=new Array(c[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:c,arraystretch:1,addJot:!0,rowGaps:[null],cols:te,colSeparationType:"CD",hLinesBeforeRow:new Array(c.length+1).fill([])}}ne({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(n,a){var s=n.parser,c=n.funcName;return{type:"cdlabel",mode:s.mode,side:c.slice(4),label:a[0]}},htmlBuilder:function(n,a){var s=a.havingStyle(a.style.sup()),c=R.wrapFragment(Me(n.label,s,a),a);return c.classes.push("cd-label-"+n.side),c.style.bottom=Q(.8-c.depth),c.height=0,c.depth=0,c},mathmlBuilder:function(n,a){var s=new K.MathNode("mrow",[qe(n.label,a)]);return s=new K.MathNode("mpadded",[s]),s.setAttribute("width","0"),n.side==="left"&&s.setAttribute("lspace","-1width"),s.setAttribute("voffset","0.7em"),s=new K.MathNode("mstyle",[s]),s.setAttribute("displaystyle","false"),s.setAttribute("scriptlevel","1"),s}}),ne({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(n,a){var s=n.parser;return{type:"cdlabelparent",mode:s.mode,fragment:a[0]}},htmlBuilder:function(n,a){var s=R.wrapFragment(Me(n.fragment,a),a);return s.classes.push("cd-vert-arrow"),s},mathmlBuilder:function(n,a){return new K.MathNode("mrow",[qe(n.fragment,a)])}}),ne({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(n,a){for(var s=n.parser,c=xe(a[0],"ordgroup"),f=c.body,g="",y=0;y=1114111)throw new l("\\@char with invalid code point "+g);return S<=65535?z=String.fromCharCode(S):(S-=65536,z=String.fromCharCode((S>>10)+55296,(S&1023)+56320)),{type:"textord",mode:s.mode,text:z}}});var Ts=function(n,a){var s=nt(n.body,a.withColor(n.color),!1);return R.makeFragment(s)},Cs=function(n,a){var s=gt(n.body,a.withColor(n.color)),c=new K.MathNode("mstyle",s);return c.setAttribute("mathcolor",n.color),c};ne({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(n,a){var s=n.parser,c=xe(a[0],"color-token").color,f=a[1];return{type:"color",mode:s.mode,color:c,body:Ze(f)}},htmlBuilder:Ts,mathmlBuilder:Cs}),ne({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(n,a){var s=n.parser,c=n.breakOnTokenText,f=xe(a[0],"color-token").color;s.gullet.macros.set("\\current@color",f);var g=s.parseExpression(!0,c);return{type:"color",mode:s.mode,color:f,body:g}},htmlBuilder:Ts,mathmlBuilder:Cs}),ne({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(n,a,s){var c=n.parser,f=c.gullet.future().text==="["?c.parseSizeGroup(!0):null,g=!c.settings.displayMode||!c.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:c.mode,newLine:g,size:f&&xe(f,"size").value}},htmlBuilder:function(n,a){var s=R.makeSpan(["mspace"],[],a);return n.newLine&&(s.classes.push("newline"),n.size&&(s.style.marginTop=Q($e(n.size,a)))),s},mathmlBuilder:function(n,a){var s=new K.MathNode("mspace");return n.newLine&&(s.setAttribute("linebreak","newline"),n.size&&s.setAttribute("height",Q($e(n.size,a)))),s}});var Y0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},zs=function(n){var a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new l("Expected a control sequence",n);return a},_1=function(n){var a=n.gullet.popToken();return a.text==="="&&(a=n.gullet.popToken(),a.text===" "&&(a=n.gullet.popToken())),a},Bs=function(n,a,s,c){var f=n.gullet.macros.get(s.text);f==null&&(s.noexpand=!0,f={tokens:[s],numArgs:0,unexpandable:!n.gullet.isExpandable(s.text)}),n.gullet.macros.set(a,f,c)};ne({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(n){var a=n.parser,s=n.funcName;a.consumeSpaces();var c=a.fetch();if(Y0[c.text])return(s==="\\global"||s==="\\\\globallong")&&(c.text=Y0[c.text]),xe(a.parseFunction(),"internal");throw new l("Invalid token after macro prefix",c)}}),ne({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(n){var a=n.parser,s=n.funcName,c=a.gullet.popToken(),f=c.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(f))throw new l("Expected a control sequence",c);for(var g=0,y,x=[[]];a.gullet.future().text!=="{";)if(c=a.gullet.popToken(),c.text==="#"){if(a.gullet.future().text==="{"){y=a.gullet.future(),x[g].push("{");break}if(c=a.gullet.popToken(),!/^[1-9]$/.test(c.text))throw new l('Invalid argument number "'+c.text+'"');if(parseInt(c.text)!==g+1)throw new l('Argument number "'+c.text+'" out of order');g++,x.push([])}else{if(c.text==="EOF")throw new l("Expected a macro definition");x[g].push(c.text)}var S=a.gullet.consumeArg(),z=S.tokens;return y&&z.unshift(y),(s==="\\edef"||s==="\\xdef")&&(z=a.gullet.expandTokens(z),z.reverse()),a.gullet.macros.set(f,{tokens:z,numArgs:g,delimiters:x},s===Y0[s]),{type:"internal",mode:a.mode}}}),ne({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(n){var a=n.parser,s=n.funcName,c=zs(a.gullet.popToken());a.gullet.consumeSpaces();var f=_1(a);return Bs(a,c,f,s==="\\\\globallet"),{type:"internal",mode:a.mode}}}),ne({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(n){var a=n.parser,s=n.funcName,c=zs(a.gullet.popToken()),f=a.gullet.popToken(),g=a.gullet.popToken();return Bs(a,c,g,s==="\\\\globalfuture"),a.gullet.pushToken(g),a.gullet.pushToken(f),{type:"internal",mode:a.mode}}});var Tn=function(n,a,s){var c=Xe.math[n]&&Xe.math[n].replace,f=ur(c||n,a,s);if(!f)throw new Error("Unsupported symbol "+n+" and font size "+a+".");return f},W0=function(n,a,s,c){var f=s.havingBaseStyle(a),g=R.makeSpan(c.concat(f.sizingClasses(s)),[n],s),y=f.sizeMultiplier/s.sizeMultiplier;return g.height*=y,g.depth*=y,g.maxFontSize=f.sizeMultiplier,g},Ns=function(n,a,s){var c=a.havingBaseStyle(s),f=(1-a.sizeMultiplier/c.sizeMultiplier)*a.fontMetrics().axisHeight;n.classes.push("delimcenter"),n.style.top=Q(f),n.height-=f,n.depth+=f},b1=function(n,a,s,c,f,g){var y=R.makeSymbol(n,"Main-Regular",f,c),x=W0(y,a,c,g);return s&&Ns(x,c,a),x},y1=function(n,a,s,c){return R.makeSymbol(n,"Size"+a+"-Regular",s,c)},Ds=function(n,a,s,c,f,g){var y=y1(n,a,f,c),x=W0(R.makeSpan(["delimsizing","size"+a],[y],c),V.TEXT,c,g);return s&&Ns(x,c,V.TEXT),x},K0=function(n,a,s){var c;a==="Size1-Regular"?c="delim-size1":c="delim-size4";var f=R.makeSpan(["delimsizinginner",c],[R.makeSpan([],[R.makeSymbol(n,a,s)])]);return{type:"elem",elem:f}},Z0=function(n,a,s){var c=pe["Size4-Regular"][n.charCodeAt(0)]?pe["Size4-Regular"][n.charCodeAt(0)][4]:pe["Size1-Regular"][n.charCodeAt(0)][4],f=new fr("inner",oi(n,Math.round(1e3*a))),g=new Jt([f],{width:Q(c),height:Q(a),style:"width:"+Q(c),viewBox:"0 0 "+1e3*c+" "+Math.round(1e3*a),preserveAspectRatio:"xMinYMin"}),y=R.makeSvgSpan([],[g],s);return y.height=a,y.style.height=Q(a),y.style.width=Q(c),{type:"elem",elem:y}},J0=.008,ki={type:"kern",size:-1*J0},w1=["|","\\lvert","\\rvert","\\vert"],x1=["\\|","\\lVert","\\rVert","\\Vert"],Os=function(n,a,s,c,f,g){var y,x,S,z,I="",$=0;y=S=z=n,x=null;var H="Size1-Regular";n==="\\uparrow"?S=z="⏐":n==="\\Uparrow"?S=z="‖":n==="\\downarrow"?y=S="⏐":n==="\\Downarrow"?y=S="‖":n==="\\updownarrow"?(y="\\uparrow",S="⏐",z="\\downarrow"):n==="\\Updownarrow"?(y="\\Uparrow",S="‖",z="\\Downarrow"):D.contains(w1,n)?(S="∣",I="vert",$=333):D.contains(x1,n)?(S="∥",I="doublevert",$=556):n==="["||n==="\\lbrack"?(y="⎡",S="⎢",z="⎣",H="Size4-Regular",I="lbrack",$=667):n==="]"||n==="\\rbrack"?(y="⎤",S="⎥",z="⎦",H="Size4-Regular",I="rbrack",$=667):n==="\\lfloor"||n==="⌊"?(S=y="⎢",z="⎣",H="Size4-Regular",I="lfloor",$=667):n==="\\lceil"||n==="⌈"?(y="⎡",S=z="⎢",H="Size4-Regular",I="lceil",$=667):n==="\\rfloor"||n==="⌋"?(S=y="⎥",z="⎦",H="Size4-Regular",I="rfloor",$=667):n==="\\rceil"||n==="⌉"?(y="⎤",S=z="⎥",H="Size4-Regular",I="rceil",$=667):n==="("||n==="\\lparen"?(y="⎛",S="⎜",z="⎝",H="Size4-Regular",I="lparen",$=875):n===")"||n==="\\rparen"?(y="⎞",S="⎟",z="⎠",H="Size4-Regular",I="rparen",$=875):n==="\\{"||n==="\\lbrace"?(y="⎧",x="⎨",z="⎩",S="⎪",H="Size4-Regular"):n==="\\}"||n==="\\rbrace"?(y="⎫",x="⎬",z="⎭",S="⎪",H="Size4-Regular"):n==="\\lgroup"||n==="⟮"?(y="⎧",z="⎩",S="⎪",H="Size4-Regular"):n==="\\rgroup"||n==="⟯"?(y="⎫",z="⎭",S="⎪",H="Size4-Regular"):n==="\\lmoustache"||n==="⎰"?(y="⎧",z="⎭",S="⎪",H="Size4-Regular"):(n==="\\rmoustache"||n==="⎱")&&(y="⎫",z="⎩",S="⎪",H="Size4-Regular");var j=Tn(y,H,f),J=j.height+j.depth,te=Tn(S,H,f),oe=te.height+te.depth,he=Tn(z,H,f),me=he.height+he.depth,Te=0,ke=1;if(x!==null){var De=Tn(x,H,f);Te=De.height+De.depth,ke=2}var Ee=J+me+Te,Ie=Math.max(0,Math.ceil((a-Ee)/(ke*oe))),je=Ee+Ie*ke*oe,ot=c.fontMetrics().axisHeight;s&&(ot*=c.sizeMultiplier);var At=je/2-ot,We=[];if(I.length>0){var Rr=je-J-me,zt=Math.round(je*1e3),ft=D0(I,Math.round(Rr*1e3)),_r=new fr(I,ft),rn=($/1e3).toFixed(3)+"em",nn=(zt/1e3).toFixed(3)+"em",va=new Jt([_r],{width:rn,height:nn,viewBox:"0 0 "+$+" "+zt}),br=R.makeSvgSpan([],[va],c);br.height=zt/1e3,br.style.width=rn,br.style.height=nn,We.push({type:"elem",elem:br})}else{if(We.push(K0(z,H,f)),We.push(ki),x===null){var yr=je-J-me+2*J0;We.push(Z0(S,yr,c))}else{var Bt=(je-J-me-Te)/2+2*J0;We.push(Z0(S,Bt,c)),We.push(ki),We.push(K0(x,H,f)),We.push(ki),We.push(Z0(S,Bt,c))}We.push(ki),We.push(K0(y,H,f))}var Bn=c.havingBaseStyle(V.TEXT),_a=R.makeVList({positionType:"bottom",positionData:At,children:We},Bn);return W0(R.makeSpan(["delimsizing","mult"],[_a],Bn),V.TEXT,c,g)},Q0=80,ea=.08,ta=function(n,a,s,c,f){var g=Qr(n,c,s),y=new fr(n,g),x=new Jt([y],{width:"400em",height:Q(a),viewBox:"0 0 400000 "+s,preserveAspectRatio:"xMinYMin slice"});return R.makeSvgSpan(["hide-tail"],[x],f)},k1=function(n,a){var s=a.havingBaseSizing(),c=Ls("\\surd",n*s.sizeMultiplier,Fs,s),f=s.sizeMultiplier,g=Math.max(0,a.minRuleThickness-a.fontMetrics().sqrtRuleThickness),y,x=0,S=0,z=0,I;return c.type==="small"?(z=1e3+1e3*g+Q0,n<1?f=1:n<1.4&&(f=.7),x=(1+g+ea)/f,S=(1+g)/f,y=ta("sqrtMain",x,z,g,a),y.style.minWidth="0.853em",I=.833/f):c.type==="large"?(z=(1e3+Q0)*Cn[c.size],S=(Cn[c.size]+g)/f,x=(Cn[c.size]+g+ea)/f,y=ta("sqrtSize"+c.size,x,z,g,a),y.style.minWidth="1.02em",I=1/f):(x=n+g+ea,S=n+g,z=Math.floor(1e3*n+g)+Q0,y=ta("sqrtTall",x,z,g,a),y.style.minWidth="0.742em",I=1.056),y.height=S,y.style.height=Q(x),{span:y,advanceWidth:I,ruleWidth:(a.fontMetrics().sqrtRuleThickness+g)*f}},Is=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],A1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Rs=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Cn=[0,1.2,1.8,2.4,3],S1=function(n,a,s,c,f){if(n==="<"||n==="\\lt"||n==="⟨"?n="\\langle":(n===">"||n==="\\gt"||n==="⟩")&&(n="\\rangle"),D.contains(Is,n)||D.contains(Rs,n))return Ds(n,a,!1,s,c,f);if(D.contains(A1,n))return Os(n,Cn[a],!1,s,c,f);throw new l("Illegal delimiter: '"+n+"'")},M1=[{type:"small",style:V.SCRIPTSCRIPT},{type:"small",style:V.SCRIPT},{type:"small",style:V.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],E1=[{type:"small",style:V.SCRIPTSCRIPT},{type:"small",style:V.SCRIPT},{type:"small",style:V.TEXT},{type:"stack"}],Fs=[{type:"small",style:V.SCRIPTSCRIPT},{type:"small",style:V.SCRIPT},{type:"small",style:V.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],T1=function(n){if(n.type==="small")return"Main-Regular";if(n.type==="large")return"Size"+n.size+"-Regular";if(n.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+n.type+"' here.")},Ls=function(n,a,s,c){for(var f=Math.min(2,3-c.style.size),g=f;ga)return s[g]}return s[s.length-1]},qs=function(n,a,s,c,f,g){n==="<"||n==="\\lt"||n==="⟨"?n="\\langle":(n===">"||n==="\\gt"||n==="⟩")&&(n="\\rangle");var y;D.contains(Rs,n)?y=M1:D.contains(Is,n)?y=Fs:y=E1;var x=Ls(n,a,y,c);return x.type==="small"?b1(n,x.style,s,c,f,g):x.type==="large"?Ds(n,x.size,s,c,f,g):Os(n,a,s,c,f,g)},C1=function(n,a,s,c,f,g){var y=c.fontMetrics().axisHeight*c.sizeMultiplier,x=901,S=5/c.fontMetrics().ptPerEm,z=Math.max(a-y,s+y),I=Math.max(z/500*x,2*z-S);return qs(n,I,!0,c,f,g)},nr={sqrtImage:k1,sizedDelim:S1,sizeToMaxHeight:Cn,customSizedDelim:qs,leftRightDelim:C1},Ps={"\\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}},z1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Ai(m,n){var a=yi(m);if(a&&D.contains(z1,a.text))return a;throw a?new l("Invalid delimiter '"+a.text+"' after '"+n.funcName+"'",m):new l("Invalid delimiter type '"+m.type+"'",m)}ne({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:function(n,a){var s=Ai(a[0],n);return{type:"delimsizing",mode:n.parser.mode,size:Ps[n.funcName].size,mclass:Ps[n.funcName].mclass,delim:s.text}},htmlBuilder:function(n,a){return n.delim==="."?R.makeSpan([n.mclass]):nr.sizedDelim(n.delim,n.size,a,n.mode,[n.mclass])},mathmlBuilder:function(n){var a=[];n.delim!=="."&&a.push(Ct(n.delim,n.mode));var s=new K.MathNode("mo",a);n.mclass==="mopen"||n.mclass==="mclose"?s.setAttribute("fence","true"):s.setAttribute("fence","false"),s.setAttribute("stretchy","true");var c=Q(nr.sizeToMaxHeight[n.size]);return s.setAttribute("minsize",c),s.setAttribute("maxsize",c),s}});function Hs(m){if(!m.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ne({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(n,a){var s=n.parser.gullet.macros.get("\\current@color");if(s&&typeof s!="string")throw new l("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:n.parser.mode,delim:Ai(a[0],n).text,color:s}}}),ne({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(n,a){var s=Ai(a[0],n),c=n.parser;++c.leftrightDepth;var f=c.parseExpression(!1);--c.leftrightDepth,c.expect("\\right",!1);var g=xe(c.parseFunction(),"leftright-right");return{type:"leftright",mode:c.mode,body:f,left:s.text,right:g.delim,rightColor:g.color}},htmlBuilder:function(n,a){Hs(n);for(var s=nt(n.body,a,!0,["mopen","mclose"]),c=0,f=0,g=!1,y=0;y-1?"mpadded":"menclose",[qe(n.body,a)]);switch(n.label){case"\\cancel":c.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":c.setAttribute("notation","downdiagonalstrike");break;case"\\phase":c.setAttribute("notation","phasorangle");break;case"\\sout":c.setAttribute("notation","horizontalstrike");break;case"\\fbox":c.setAttribute("notation","box");break;case"\\angl":c.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(s=a.fontMetrics().fboxsep*a.fontMetrics().ptPerEm,c.setAttribute("width","+"+2*s+"pt"),c.setAttribute("height","+"+2*s+"pt"),c.setAttribute("lspace",s+"pt"),c.setAttribute("voffset",s+"pt"),n.label==="\\fcolorbox"){var f=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness);c.setAttribute("style","border: "+f+"em solid "+String(n.borderColor))}break;case"\\xcancel":c.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return n.backgroundColor&&c.setAttribute("mathbackground",n.backgroundColor),c};ne({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(n,a,s){var c=n.parser,f=n.funcName,g=xe(a[0],"color-token").color,y=a[1];return{type:"enclose",mode:c.mode,label:f,backgroundColor:g,body:y}},htmlBuilder:ra,mathmlBuilder:na}),ne({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(n,a,s){var c=n.parser,f=n.funcName,g=xe(a[0],"color-token").color,y=xe(a[1],"color-token").color,x=a[2];return{type:"enclose",mode:c.mode,label:f,backgroundColor:y,borderColor:g,body:x}},htmlBuilder:ra,mathmlBuilder:na}),ne({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(n,a){var s=n.parser;return{type:"enclose",mode:s.mode,label:"\\fbox",body:a[0]}}}),ne({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];return{type:"enclose",mode:s.mode,label:c,body:f}},htmlBuilder:ra,mathmlBuilder:na}),ne({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(n,a){var s=n.parser;return{type:"enclose",mode:s.mode,label:"\\angl",body:a[0]}}});var $s={};function jt(m){for(var n=m.type,a=m.names,s=m.props,c=m.handler,f=m.htmlBuilder,g=m.mathmlBuilder,y={type:n,numArgs:s.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:c},x=0;x1||!z)&&J.pop(),oe.length0&&(me+=.25),S.push({pos:me,isDashed:Ci[zi]})}for(Te(g[0]),s=0;s0&&(At+=he,Ee=y)){var on=void 0;(c>0||n.hskipBeforeAndAfter)&&(on=D.deflt(Bt.pregap,$),on!==0&&(ft=R.makeSpan(["arraycolsep"],[]),ft.style.width=Q(on),zt.push(ft)));var sn=[];for(s=0;s0){for(var ip=R.makeLineSpan("hline",a,z),ap=R.makeLineSpan("hdashline",a,z),ba=[{type:"elem",elem:x,shift:0}];S.length>0;){var Ml=S.pop(),El=Ml.pos-We;Ml.isDashed?ba.push({type:"elem",elem:ap,shift:El}):ba.push({type:"elem",elem:ip,shift:El})}x=R.makeVList({positionType:"individualShift",children:ba},a)}if(rn.length===0)return R.makeSpan(["mord"],[x],a);var ya=R.makeVList({positionType:"individualShift",children:rn},a);return ya=R.makeSpan(["tag"],[ya],a),R.makeFragment([x,ya])},B1={c:"center ",l:"left ",r:"right "},Gt=function(n,a){for(var s=[],c=new K.MathNode("mtd",[],["mtr-glue"]),f=new K.MathNode("mtd",[],["mml-eqn-num"]),g=0;g0){var j=n.cols,J="",te=!1,oe=0,he=j.length;j[0].type==="separator"&&($+="top ",oe=1),j[j.length-1].type==="separator"&&($+="bottom ",he-=1);for(var me=oe;me0?"left ":"",$+=Ie[Ie.length-1].length>0?"right ":"";for(var je=1;je-1?"alignat":"align",f=n.envName==="split",g=gr(n.parser,{cols:s,addJot:!0,autoTag:f?void 0:ia(n.envName),emptySingleRow:!0,colSeparationType:c,maxNumCols:f?2:void 0,leqno:n.parser.settings.leqno},"display"),y,x=0,S={type:"ordgroup",mode:n.mode,body:[]};if(a[0]&&a[0].type==="ordgroup"){for(var z="",I=0;I0&&H&&(te=1),s[j]={type:"align",align:J,pregap:te,postgap:0}}return g.colSeparationType=H?"align":"alignat",g};jt({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(n,a){var s=yi(a[0]),c=s?[a[0]]:xe(a[0],"ordgroup").body,f=c.map(function(y){var x=V0(y),S=x.text;if("lcr".indexOf(S)!==-1)return{type:"align",align:S};if(S==="|")return{type:"separator",separator:"|"};if(S===":")return{type:"separator",separator:":"};throw new l("Unknown column alignment: "+S,y)}),g={cols:f,hskipBeforeAndAfter:!0,maxNumCols:f.length};return gr(n.parser,g,aa(n.envName))},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(n){var a={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[n.envName.replace("*","")],s="c",c={hskipBeforeAndAfter:!1,cols:[{type:"align",align:s}]};if(n.envName.charAt(n.envName.length-1)==="*"){var f=n.parser;if(f.consumeSpaces(),f.fetch().text==="["){if(f.consume(),f.consumeSpaces(),s=f.fetch().text,"lcr".indexOf(s)===-1)throw new l("Expected l or c or r",f.nextToken);f.consume(),f.consumeSpaces(),f.expect("]"),f.consume(),c.cols=[{type:"align",align:s}]}}var g=gr(n.parser,c,aa(n.envName)),y=Math.max.apply(Math,[0].concat(g.body.map(function(x){return x.length})));return g.cols=new Array(y).fill({type:"align",align:s}),a?{type:"leftright",mode:n.mode,body:[g],left:a[0],right:a[1],rightColor:void 0}:g},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(n){var a={arraystretch:.5},s=gr(n.parser,a,"script");return s.colSeparationType="small",s},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["subarray"],props:{numArgs:1},handler:function(n,a){var s=yi(a[0]),c=s?[a[0]]:xe(a[0],"ordgroup").body,f=c.map(function(y){var x=V0(y),S=x.text;if("lc".indexOf(S)!==-1)return{type:"align",align:S};throw new l("Unknown column alignment: "+S,y)});if(f.length>1)throw new l("{subarray} can contain only one column");var g={cols:f,hskipBeforeAndAfter:!1,arraystretch:.5};if(g=gr(n.parser,g,"script"),g.body.length>0&&g.body[0].length>1)throw new l("{subarray} can contain only one column");return g},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(n){var a={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},s=gr(n.parser,a,aa(n.envName));return{type:"leftright",mode:n.mode,body:[s],left:n.envName.indexOf("r")>-1?".":"\\{",right:n.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Gs,htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(n){D.contains(["gather","gather*"],n.envName)&&Si(n);var a={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ia(n.envName),emptySingleRow:!0,leqno:n.parser.settings.leqno};return gr(n.parser,a,"display")},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Gs,htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(n){Si(n);var a={autoTag:ia(n.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:n.parser.settings.leqno};return gr(n.parser,a,"display")},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["CD"],props:{numArgs:0},handler:function(n){return Si(n),v1(n.parser)},htmlBuilder:Ut,mathmlBuilder:Gt}),A("\\nonumber","\\gdef\\@eqnsw{0}"),A("\\notag","\\nonumber"),ne({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(n,a){throw new l(n.funcName+" valid only within array environment")}});var N1=$s,Vs=N1;ne({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];if(f.type!=="ordgroup")throw new l("Invalid environment name",f);for(var g="",y=0;y=V.SCRIPT.id?s.text():V.DISPLAY:n==="text"&&s.size===V.DISPLAY.size?s=V.TEXT:n==="script"?s=V.SCRIPT:n==="scriptscript"&&(s=V.SCRIPTSCRIPT),s},oa=function(n,a){var s=Ks(n.size,a.style),c=s.fracNum(),f=s.fracDen(),g;g=a.havingStyle(c);var y=Me(n.numer,g,a);if(n.continued){var x=8.5/a.fontMetrics().ptPerEm,S=3.5/a.fontMetrics().ptPerEm;y.height=y.height0?J=3*H:J=7*H,te=a.fontMetrics().denom1):($>0?(j=a.fontMetrics().num2,J=H):(j=a.fontMetrics().num3,J=3*H),te=a.fontMetrics().denom2);var oe;if(I){var me=a.fontMetrics().axisHeight;j-y.depth-(me+.5*$)0&&(a=n,a=a==="."?null:a),a};ne({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(n,a){var s=n.parser,c=a[4],f=a[5],g=_i(a[0]),y=g.type==="atom"&&g.family==="open"?Js(g.text):null,x=_i(a[1]),S=x.type==="atom"&&x.family==="close"?Js(x.text):null,z=xe(a[2],"size"),I,$=null;z.isBlank?I=!0:($=z.value,I=$.number>0);var H="auto",j=a[3];if(j.type==="ordgroup"){if(j.body.length>0){var J=xe(j.body[0],"textord");H=Zs[Number(J.text)]}}else j=xe(j,"textord"),H=Zs[Number(j.text)];return{type:"genfrac",mode:s.mode,numer:c,denom:f,continued:!1,hasBarLine:I,barSize:$,leftDelim:y,rightDelim:S,size:H}},htmlBuilder:oa,mathmlBuilder:sa}),ne({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(n,a){var s=n.parser;n.funcName;var c=n.token;return{type:"infix",mode:s.mode,replaceWith:"\\\\abovefrac",size:xe(a[0],"size").value,token:c}}}),ne({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(n,a){var s=n.parser;n.funcName;var c=a[0],f=O(xe(a[1],"infix").size),g=a[2],y=f.number>0;return{type:"genfrac",mode:s.mode,numer:c,denom:g,continued:!1,hasBarLine:y,barSize:f,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:oa,mathmlBuilder:sa});var Qs=function(n,a){var s=a.style,c,f;n.type==="supsub"?(c=n.sup?Me(n.sup,a.havingStyle(s.sup()),a):Me(n.sub,a.havingStyle(s.sub()),a),f=xe(n.base,"horizBrace")):f=xe(n,"horizBrace");var g=Me(f.base,a.havingBaseStyle(V.DISPLAY)),y=rr.svgSpan(f,a),x;if(f.isOver?(x=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:g},{type:"kern",size:.1},{type:"elem",elem:y}]},a),x.children[0].children[0].children[1].classes.push("svg-align")):(x=R.makeVList({positionType:"bottom",positionData:g.depth+.1+y.height,children:[{type:"elem",elem:y},{type:"kern",size:.1},{type:"elem",elem:g}]},a),x.children[0].children[0].children[0].classes.push("svg-align")),c){var S=R.makeSpan(["mord",f.isOver?"mover":"munder"],[x],a);f.isOver?x=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S},{type:"kern",size:.2},{type:"elem",elem:c}]},a):x=R.makeVList({positionType:"bottom",positionData:S.depth+.2+c.height+c.depth,children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:S}]},a)}return R.makeSpan(["mord",f.isOver?"mover":"munder"],[x],a)},D1=function(n,a){var s=rr.mathMLnode(n.label);return new K.MathNode(n.isOver?"mover":"munder",[qe(n.base,a),s])};ne({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(n,a){var s=n.parser,c=n.funcName;return{type:"horizBrace",mode:s.mode,label:c,isOver:/^\\over/.test(c),base:a[0]}},htmlBuilder:Qs,mathmlBuilder:D1}),ne({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(n,a){var s=n.parser,c=a[1],f=xe(a[0],"url").url;return s.settings.isTrusted({command:"\\href",url:f})?{type:"href",mode:s.mode,href:f,body:Ze(c)}:s.formatUnsupportedCmd("\\href")},htmlBuilder:function(n,a){var s=nt(n.body,a,!1);return R.makeAnchor(n.href,[],s,a)},mathmlBuilder:function(n,a){var s=dr(n.body,a);return s instanceof Tt||(s=new Tt("mrow",[s])),s.setAttribute("href",n.href),s}}),ne({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(n,a){var s=n.parser,c=xe(a[0],"url").url;if(!s.settings.isTrusted({command:"\\url",url:c}))return s.formatUnsupportedCmd("\\url");for(var f=[],g=0;g0&&(c=$e(n.totalheight,a)-s);var f=0;n.width.number>0&&(f=$e(n.width,a));var g={height:Q(s+c)};f>0&&(g.width=Q(f)),c>0&&(g.verticalAlign=Q(-c));var y=new Nf(n.src,n.alt,g);return y.height=s,y.depth=c,y},mathmlBuilder:function(n,a){var s=new K.MathNode("mglyph",[]);s.setAttribute("alt",n.alt);var c=$e(n.height,a),f=0;if(n.totalheight.number>0&&(f=$e(n.totalheight,a)-c,s.setAttribute("valign",Q(-f))),s.setAttribute("height",Q(c+f)),n.width.number>0){var g=$e(n.width,a);s.setAttribute("width",Q(g))}return s.setAttribute("src",n.src),s}}),ne({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(n,a){var s=n.parser,c=n.funcName,f=xe(a[0],"size");if(s.settings.strict){var g=c[1]==="m",y=f.value.unit==="mu";g?(y||s.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+c+" supports only mu units, "+("not "+f.value.unit+" units")),s.mode!=="math"&&s.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+c+" works only in math mode")):y&&s.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+c+" doesn't support mu units")}return{type:"kern",mode:s.mode,dimension:f.value}},htmlBuilder:function(n,a){return R.makeGlue(n.dimension,a)},mathmlBuilder:function(n,a){var s=$e(n.dimension,a);return new K.SpaceNode(s)}}),ne({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];return{type:"lap",mode:s.mode,alignment:c.slice(5),body:f}},htmlBuilder:function(n,a){var s;n.alignment==="clap"?(s=R.makeSpan([],[Me(n.body,a)]),s=R.makeSpan(["inner"],[s],a)):s=R.makeSpan(["inner"],[Me(n.body,a)]);var c=R.makeSpan(["fix"],[]),f=R.makeSpan([n.alignment],[s,c],a),g=R.makeSpan(["strut"]);return g.style.height=Q(f.height+f.depth),f.depth&&(g.style.verticalAlign=Q(-f.depth)),f.children.unshift(g),f=R.makeSpan(["thinbox"],[f],a),R.makeSpan(["mord","vbox"],[f],a)},mathmlBuilder:function(n,a){var s=new K.MathNode("mpadded",[qe(n.body,a)]);if(n.alignment!=="rlap"){var c=n.alignment==="llap"?"-1":"-0.5";s.setAttribute("lspace",c+"width")}return s.setAttribute("width","0px"),s}}),ne({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(n,a){var s=n.funcName,c=n.parser,f=c.mode;c.switchMode("math");var g=s==="\\("?"\\)":"$",y=c.parseExpression(!1,g);return c.expect(g),c.switchMode(f),{type:"styling",mode:c.mode,style:"text",body:y}}}),ne({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(n,a){throw new l("Mismatched "+n.funcName)}});var el=function(n,a){switch(a.style.size){case V.DISPLAY.size:return n.display;case V.TEXT.size:return n.text;case V.SCRIPT.size:return n.script;case V.SCRIPTSCRIPT.size:return n.scriptscript;default:return n.text}};ne({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(n,a){var s=n.parser;return{type:"mathchoice",mode:s.mode,display:Ze(a[0]),text:Ze(a[1]),script:Ze(a[2]),scriptscript:Ze(a[3])}},htmlBuilder:function(n,a){var s=el(n,a),c=nt(s,a,!1);return R.makeFragment(c)},mathmlBuilder:function(n,a){var s=el(n,a);return dr(s,a)}});var tl=function(n,a,s,c,f,g,y){n=R.makeSpan([],[n]);var x=s&&D.isCharacterBox(s),S,z;if(a){var I=Me(a,c.havingStyle(f.sup()),c);z={elem:I,kern:Math.max(c.fontMetrics().bigOpSpacing1,c.fontMetrics().bigOpSpacing3-I.depth)}}if(s){var $=Me(s,c.havingStyle(f.sub()),c);S={elem:$,kern:Math.max(c.fontMetrics().bigOpSpacing2,c.fontMetrics().bigOpSpacing4-$.height)}}var H;if(z&&S){var j=c.fontMetrics().bigOpSpacing5+S.elem.height+S.elem.depth+S.kern+n.depth+y;H=R.makeVList({positionType:"bottom",positionData:j,children:[{type:"kern",size:c.fontMetrics().bigOpSpacing5},{type:"elem",elem:S.elem,marginLeft:Q(-g)},{type:"kern",size:S.kern},{type:"elem",elem:n},{type:"kern",size:z.kern},{type:"elem",elem:z.elem,marginLeft:Q(g)},{type:"kern",size:c.fontMetrics().bigOpSpacing5}]},c)}else if(S){var J=n.height-y;H=R.makeVList({positionType:"top",positionData:J,children:[{type:"kern",size:c.fontMetrics().bigOpSpacing5},{type:"elem",elem:S.elem,marginLeft:Q(-g)},{type:"kern",size:S.kern},{type:"elem",elem:n}]},c)}else if(z){var te=n.depth+y;H=R.makeVList({positionType:"bottom",positionData:te,children:[{type:"elem",elem:n},{type:"kern",size:z.kern},{type:"elem",elem:z.elem,marginLeft:Q(g)},{type:"kern",size:c.fontMetrics().bigOpSpacing5}]},c)}else return n;var oe=[H];if(S&&g!==0&&!x){var he=R.makeSpan(["mspace"],[],c);he.style.marginRight=Q(g),oe.unshift(he)}return R.makeSpan(["mop","op-limits"],oe,c)},rl=["\\smallint"],tn=function(n,a){var s,c,f=!1,g;n.type==="supsub"?(s=n.sup,c=n.sub,g=xe(n.base,"op"),f=!0):g=xe(n,"op");var y=a.style,x=!1;y.size===V.DISPLAY.size&&g.symbol&&!D.contains(rl,g.name)&&(x=!0);var S;if(g.symbol){var z=x?"Size2-Regular":"Size1-Regular",I="";if((g.name==="\\oiint"||g.name==="\\oiiint")&&(I=g.name.slice(1),g.name=I==="oiint"?"\\iint":"\\iiint"),S=R.makeSymbol(g.name,z,"math",a,["mop","op-symbol",x?"large-op":"small-op"]),I.length>0){var $=S.italic,H=R.staticSvg(I+"Size"+(x?"2":"1"),a);S=R.makeVList({positionType:"individualShift",children:[{type:"elem",elem:S,shift:0},{type:"elem",elem:H,shift:x?.08:0}]},a),g.name="\\"+I,S.classes.unshift("mop"),S.italic=$}}else if(g.body){var j=nt(g.body,a,!0);j.length===1&&j[0]instanceof Et?(S=j[0],S.classes[0]="mop"):S=R.makeSpan(["mop"],j,a)}else{for(var J=[],te=1;te0){for(var x=g.body.map(function($){var H=$.text;return typeof H=="string"?{type:"textord",mode:$.mode,text:H}:$}),S=nt(x,a.withFont("mathrm"),!0),z=0;z=0?x.setAttribute("height",Q(f)):(x.setAttribute("height",Q(f)),x.setAttribute("depth",Q(-f))),x.setAttribute("voffset",Q(f)),x}});function il(m,n,a){for(var s=nt(m,n,!1),c=n.sizeMultiplier/a.sizeMultiplier,f=0;fs.height+s.depth+y&&(y=(y+H-s.height-s.depth)/2);var j=z.height-s.height-y-I;s.style.paddingLeft=Q($);var J=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:-(s.height+j)},{type:"elem",elem:z},{type:"kern",size:I}]},a);if(n.index){var te=a.havingStyle(V.SCRIPTSCRIPT),oe=Me(n.index,te,a),he=.6*(J.height-J.depth),me=R.makeVList({positionType:"shift",positionData:-he,children:[{type:"elem",elem:oe}]},a),Te=R.makeSpan(["root"],[me]);return R.makeSpan(["mord","sqrt"],[Te,J],a)}else return R.makeSpan(["mord","sqrt"],[J],a)},mathmlBuilder:function(n,a){var s=n.body,c=n.index;return c?new K.MathNode("mroot",[qe(s,a),qe(c,a)]):new K.MathNode("msqrt",[qe(s,a)])}});var ol={display:V.DISPLAY,text:V.TEXT,script:V.SCRIPT,scriptscript:V.SCRIPTSCRIPT};ne({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(n,a){var s=n.breakOnTokenText,c=n.funcName,f=n.parser,g=f.parseExpression(!0,s),y=c.slice(1,c.length-5);return{type:"styling",mode:f.mode,style:y,body:g}},htmlBuilder:function(n,a){var s=ol[n.style],c=a.havingStyle(s).withFont("");return il(n.body,c,a)},mathmlBuilder:function(n,a){var s=ol[n.style],c=a.havingStyle(s),f=gt(n.body,c),g=new K.MathNode("mstyle",f),y={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},x=y[n.style];return g.setAttribute("scriptlevel",x[0]),g.setAttribute("displaystyle",x[1]),g}});var L1=function(n,a){var s=n.base;if(s)if(s.type==="op"){var c=s.limits&&(a.style.size===V.DISPLAY.size||s.alwaysHandleSupSub);return c?tn:null}else if(s.type==="operatorname"){var f=s.alwaysHandleSupSub&&(a.style.size===V.DISPLAY.size||s.limits);return f?nl:null}else{if(s.type==="accent")return D.isCharacterBox(s.base)?X0:null;if(s.type==="horizBrace"){var g=!n.sub;return g===s.isOver?Qs:null}else return null}else return null};Ir({type:"supsub",htmlBuilder:function(n,a){var s=L1(n,a);if(s)return s(n,a);var c=n.base,f=n.sup,g=n.sub,y=Me(c,a),x,S,z=a.fontMetrics(),I=0,$=0,H=c&&D.isCharacterBox(c);if(f){var j=a.havingStyle(a.style.sup());x=Me(f,j,a),H||(I=y.height-j.fontMetrics().supDrop*j.sizeMultiplier/a.sizeMultiplier)}if(g){var J=a.havingStyle(a.style.sub());S=Me(g,J,a),H||($=y.depth+J.fontMetrics().subDrop*J.sizeMultiplier/a.sizeMultiplier)}var te;a.style===V.DISPLAY?te=z.sup1:a.style.cramped?te=z.sup3:te=z.sup2;var oe=a.sizeMultiplier,he=Q(.5/z.ptPerEm/oe),me=null;if(S){var Te=n.base&&n.base.type==="op"&&n.base.name&&(n.base.name==="\\oiint"||n.base.name==="\\oiiint");(y instanceof Et||Te)&&(me=Q(-y.italic))}var ke;if(x&&S){I=Math.max(I,te,x.depth+.25*z.xHeight),$=Math.max($,z.sub2);var De=z.defaultRuleThickness,Ee=4*De;if(I-x.depth-(S.height-$)0&&(I+=Ie,$-=Ie)}var je=[{type:"elem",elem:S,shift:$,marginRight:he,marginLeft:me},{type:"elem",elem:x,shift:-I,marginRight:he}];ke=R.makeVList({positionType:"individualShift",children:je},a)}else if(S){$=Math.max($,z.sub1,S.height-.8*z.xHeight);var ot=[{type:"elem",elem:S,marginLeft:me,marginRight:he}];ke=R.makeVList({positionType:"shift",positionData:$,children:ot},a)}else if(x)I=Math.max(I,te,x.depth+.25*z.xHeight),ke=R.makeVList({positionType:"shift",positionData:-I,children:[{type:"elem",elem:x,marginRight:he}]},a);else throw new Error("supsub must have either sup or sub.");var At=$0(y,"right")||"mord";return R.makeSpan([At],[y,R.makeSpan(["msupsub"],[ke])],a)},mathmlBuilder:function(n,a){var s=!1,c,f;n.base&&n.base.type==="horizBrace"&&(f=!!n.sup,f===n.base.isOver&&(s=!0,c=n.base.isOver)),n.base&&(n.base.type==="op"||n.base.type==="operatorname")&&(n.base.parentIsSupSub=!0);var g=[qe(n.base,a)];n.sub&&g.push(qe(n.sub,a)),n.sup&&g.push(qe(n.sup,a));var y;if(s)y=c?"mover":"munder";else if(n.sub)if(n.sup){var z=n.base;z&&z.type==="op"&&z.limits&&a.style===V.DISPLAY||z&&z.type==="operatorname"&&z.alwaysHandleSupSub&&(a.style===V.DISPLAY||z.limits)?y="munderover":y="msubsup"}else{var S=n.base;S&&S.type==="op"&&S.limits&&(a.style===V.DISPLAY||S.alwaysHandleSupSub)||S&&S.type==="operatorname"&&S.alwaysHandleSupSub&&(S.limits||a.style===V.DISPLAY)?y="munder":y="msub"}else{var x=n.base;x&&x.type==="op"&&x.limits&&(a.style===V.DISPLAY||x.alwaysHandleSupSub)||x&&x.type==="operatorname"&&x.alwaysHandleSupSub&&(x.limits||a.style===V.DISPLAY)?y="mover":y="msup"}return new K.MathNode(y,g)}}),Ir({type:"atom",htmlBuilder:function(n,a){return R.mathsym(n.text,n.mode,a,["m"+n.family])},mathmlBuilder:function(n,a){var s=new K.MathNode("mo",[Ct(n.text,n.mode)]);if(n.family==="bin"){var c=G0(n,a);c==="bold-italic"&&s.setAttribute("mathvariant",c)}else n.family==="punct"?s.setAttribute("separator","true"):(n.family==="open"||n.family==="close")&&s.setAttribute("stretchy","false");return s}});var sl={mi:"italic",mn:"normal",mtext:"normal"};Ir({type:"mathord",htmlBuilder:function(n,a){return R.makeOrd(n,a,"mathord")},mathmlBuilder:function(n,a){var s=new K.MathNode("mi",[Ct(n.text,n.mode,a)]),c=G0(n,a)||"italic";return c!==sl[s.type]&&s.setAttribute("mathvariant",c),s}}),Ir({type:"textord",htmlBuilder:function(n,a){return R.makeOrd(n,a,"textord")},mathmlBuilder:function(n,a){var s=Ct(n.text,n.mode,a),c=G0(n,a)||"normal",f;return n.mode==="text"?f=new K.MathNode("mtext",[s]):/[0-9]/.test(n.text)?f=new K.MathNode("mn",[s]):n.text==="\\prime"?f=new K.MathNode("mo",[s]):f=new K.MathNode("mi",[s]),c!==sl[f.type]&&f.setAttribute("mathvariant",c),f}});var ca={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ua={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ir({type:"spacing",htmlBuilder:function(n,a){if(ua.hasOwnProperty(n.text)){var s=ua[n.text].className||"";if(n.mode==="text"){var c=R.makeOrd(n,a,"textord");return c.classes.push(s),c}else return R.makeSpan(["mspace",s],[R.mathsym(n.text,n.mode,a)],a)}else{if(ca.hasOwnProperty(n.text))return R.makeSpan(["mspace",ca[n.text]],[],a);throw new l('Unknown type of space "'+n.text+'"')}},mathmlBuilder:function(n,a){var s;if(ua.hasOwnProperty(n.text))s=new K.MathNode("mtext",[new K.TextNode(" ")]);else{if(ca.hasOwnProperty(n.text))return new K.MathNode("mspace");throw new l('Unknown type of space "'+n.text+'"')}return s}});var ll=function(){var n=new K.MathNode("mtd",[]);return n.setAttribute("width","50%"),n};Ir({type:"tag",mathmlBuilder:function(n,a){var s=new K.MathNode("mtable",[new K.MathNode("mtr",[ll(),new K.MathNode("mtd",[dr(n.body,a)]),ll(),new K.MathNode("mtd",[dr(n.tag,a)])])]);return s.setAttribute("width","100%"),s}});var cl={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ul={"\\textbf":"textbf","\\textmd":"textmd"},q1={"\\textit":"textit","\\textup":"textup"},hl=function(n,a){var s=n.font;return s?cl[s]?a.withTextFontFamily(cl[s]):ul[s]?a.withTextFontWeight(ul[s]):a.withTextFontShape(q1[s]):a};ne({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];return{type:"text",mode:s.mode,body:Ze(f),font:c}},htmlBuilder:function(n,a){var s=hl(n,a),c=nt(n.body,s,!0);return R.makeSpan(["mord","text"],c,s)},mathmlBuilder:function(n,a){var s=hl(n,a);return dr(n.body,s)}}),ne({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(n,a){var s=n.parser;return{type:"underline",mode:s.mode,body:a[0]}},htmlBuilder:function(n,a){var s=Me(n.body,a),c=R.makeLineSpan("underline-line",a),f=a.fontMetrics().defaultRuleThickness,g=R.makeVList({positionType:"top",positionData:s.height,children:[{type:"kern",size:f},{type:"elem",elem:c},{type:"kern",size:3*f},{type:"elem",elem:s}]},a);return R.makeSpan(["mord","underline"],[g],a)},mathmlBuilder:function(n,a){var s=new K.MathNode("mo",[new K.TextNode("‾")]);s.setAttribute("stretchy","true");var c=new K.MathNode("munder",[qe(n.body,a),s]);return c.setAttribute("accentunder","true"),c}}),ne({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(n,a){var s=n.parser;return{type:"vcenter",mode:s.mode,body:a[0]}},htmlBuilder:function(n,a){var s=Me(n.body,a),c=a.fontMetrics().axisHeight,f=.5*(s.height-c-(s.depth+c));return R.makeVList({positionType:"shift",positionData:f,children:[{type:"elem",elem:s}]},a)},mathmlBuilder:function(n,a){return new K.MathNode("mpadded",[qe(n.body,a)],["vcenter"])}}),ne({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(n,a,s){throw new l("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(n,a){for(var s=fl(n),c=[],f=a.havingStyle(a.style.text()),g=0;g=5?n=0:m>=3?n=1:n=2,!It[n]){var a=It[n]={cssEmPerMu:Nr.quad[n]/18};for(var s in Nr)Nr.hasOwnProperty(s)&&(a[s]=Nr[s][n])}return It[n]}var An=[[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]],re=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],le=function(n,a){return a.size<2?n:An[n-1][a.size-1]},ye=function(){function m(a){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=a.style,this.color=a.color,this.size=a.size||m.BASESIZE,this.textSize=a.textSize||this.size,this.phantom=!!a.phantom,this.font=a.font||"",this.fontFamily=a.fontFamily||"",this.fontWeight=a.fontWeight||"",this.fontShape=a.fontShape||"",this.sizeMultiplier=re[this.size-1],this.maxSize=a.maxSize,this.minRuleThickness=a.minRuleThickness,this._fontMetrics=void 0}var n=m.prototype;return n.extend=function(s){var c={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};for(var f in s)s.hasOwnProperty(f)&&(c[f]=s[f]);return new m(c)},n.havingStyle=function(s){return this.style===s?this:this.extend({style:s,size:le(this.textSize,s)})},n.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},n.havingSize=function(s){return this.size===s&&this.textSize===s?this:this.extend({style:this.style.text(),size:s,textSize:s,sizeMultiplier:re[s-1]})},n.havingBaseStyle=function(s){s=s||this.style.text();var c=le(m.BASESIZE,s);return this.size===c&&this.textSize===m.BASESIZE&&this.style===s?this:this.extend({style:s,size:c})},n.havingBaseSizing=function(){var s;switch(this.style.id){case 4:case 5:s=3;break;case 6:case 7:s=1;break;default:s=6}return this.extend({style:this.style.text(),size:s})},n.withColor=function(s){return this.extend({color:s})},n.withPhantom=function(){return this.extend({phantom:!0})},n.withFont=function(s){return this.extend({font:s})},n.withTextFontFamily=function(s){return this.extend({fontFamily:s,font:""})},n.withTextFontWeight=function(s){return this.extend({fontWeight:s,font:""})},n.withTextFontShape=function(s){return this.extend({fontShape:s,font:""})},n.sizingClasses=function(s){return s.size!==this.size?["sizing","reset-size"+s.size,"size"+this.size]:[]},n.baseSizingClasses=function(){return this.size!==m.BASESIZE?["sizing","reset-size"+this.size,"size"+m.BASESIZE]:[]},n.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=kn(this.size)),this._fontMetrics},n.getColor=function(){return this.phantom?"transparent":this.color},m}();ye.BASESIZE=6;var Ce=ye,Qe={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},Rt={ex:!0,em:!0,mu:!0},si=function(n){return typeof n!="string"&&(n=n.unit),n in Qe||n in Rt||n==="ex"},$e=function(n,a){var s;if(n.unit in Qe)s=Qe[n.unit]/a.fontMetrics().ptPerEm/a.sizeMultiplier;else if(n.unit==="mu")s=a.fontMetrics().cssEmPerMu;else{var c;if(a.style.isTight()?c=a.havingStyle(a.style.text()):c=a,n.unit==="ex")s=c.fontMetrics().xHeight;else if(n.unit==="em")s=c.fontMetrics().quad;else throw new l("Invalid unit: '"+n.unit+"'");c!==a&&(s*=c.sizeMultiplier/a.sizeMultiplier)}return Math.min(n.number*s,a.maxSize)},Q=function(n){return+n.toFixed(4)+"em"},hr=function(n){return n.filter(function(a){return a}).join(" ")},rs=function(n,a,s){if(this.classes=n||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=s||{},a){a.style.isTight()&&this.classes.push("mtight");var c=a.getColor();c&&(this.style.color=c)}},ns=function(n){var a=document.createElement(n);a.className=hr(this.classes);for(var s in this.style)this.style.hasOwnProperty(s)&&(a.style[s]=this.style[s]);for(var c in this.attributes)this.attributes.hasOwnProperty(c)&&a.setAttribute(c,this.attributes[c]);for(var f=0;f",a},Sn=function(){function m(a,s,c,f){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,rs.call(this,a,c,f),this.children=s||[]}var n=m.prototype;return n.setAttribute=function(s,c){this.attributes[s]=c},n.hasClass=function(s){return D.contains(this.classes,s)},n.toNode=function(){return ns.call(this,"span")},n.toMarkup=function(){return is.call(this,"span")},m}(),O0=function(){function m(a,s,c,f){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,rs.call(this,s,f),this.children=c||[],this.setAttribute("href",a)}var n=m.prototype;return n.setAttribute=function(s,c){this.attributes[s]=c},n.hasClass=function(s){return D.contains(this.classes,s)},n.toNode=function(){return ns.call(this,"a")},n.toMarkup=function(){return is.call(this,"a")},m}(),Nf=function(){function m(a,s,c){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=s,this.src=a,this.classes=["mord"],this.style=c}var n=m.prototype;return n.hasClass=function(s){return D.contains(this.classes,s)},n.toNode=function(){var s=document.createElement("img");s.src=this.src,s.alt=this.alt,s.className="mord";for(var c in this.style)this.style.hasOwnProperty(c)&&(s.style[c]=this.style[c]);return s},n.toMarkup=function(){var s=""+this.alt+"0&&(c=document.createElement("span"),c.style.marginRight=Q(this.italic)),this.classes.length>0&&(c=c||document.createElement("span"),c.className=hr(this.classes));for(var f in this.style)this.style.hasOwnProperty(f)&&(c=c||document.createElement("span"),c.style[f]=this.style[f]);return c?(c.appendChild(s),c):s},n.toMarkup=function(){var s=!1,c="0&&(f+="margin-right:"+this.italic+"em;");for(var g in this.style)this.style.hasOwnProperty(g)&&(f+=D.hyphenate(g)+":"+this.style[g]+";");f&&(s=!0,c+=' style="'+D.escape(f)+'"');var y=D.escape(this.text);return s?(c+=">",c+=y,c+="",c):y},m}(),Jt=function(){function m(a,s){this.children=void 0,this.attributes=void 0,this.children=a||[],this.attributes=s||{}}var n=m.prototype;return n.toNode=function(){var s="http://www.w3.org/2000/svg",c=document.createElementNS(s,"svg");for(var f in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,f)&&c.setAttribute(f,this.attributes[f]);for(var g=0;g":""},m}(),I0=function(){function m(a){this.attributes=void 0,this.attributes=a||{}}var n=m.prototype;return n.toNode=function(){var s="http://www.w3.org/2000/svg",c=document.createElementNS(s,"line");for(var f in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,f)&&c.setAttribute(f,this.attributes[f]);return c},n.toMarkup=function(){var s=" but got "+String(m)+".")}var If={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Rf={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},li={math:{},text:{}},Xe=li;function p(m,n,a,s,c,f){li[m][c]={font:n,group:a,replace:s},f&&s&&(li[m][s]=li[m][c])}var v="math",Y="text",w="main",T="ams",Ve="accent-token",ie="bin",ut="close",en="inner",ge="mathord",et="op-token",kt="open",ci="punct",C="rel",Qt="spacing",N="textord";p(v,w,C,"≡","\\equiv",!0),p(v,w,C,"≺","\\prec",!0),p(v,w,C,"≻","\\succ",!0),p(v,w,C,"∼","\\sim",!0),p(v,w,C,"⊥","\\perp"),p(v,w,C,"⪯","\\preceq",!0),p(v,w,C,"⪰","\\succeq",!0),p(v,w,C,"≃","\\simeq",!0),p(v,w,C,"∣","\\mid",!0),p(v,w,C,"≪","\\ll",!0),p(v,w,C,"≫","\\gg",!0),p(v,w,C,"≍","\\asymp",!0),p(v,w,C,"∥","\\parallel"),p(v,w,C,"⋈","\\bowtie",!0),p(v,w,C,"⌣","\\smile",!0),p(v,w,C,"⊑","\\sqsubseteq",!0),p(v,w,C,"⊒","\\sqsupseteq",!0),p(v,w,C,"≐","\\doteq",!0),p(v,w,C,"⌢","\\frown",!0),p(v,w,C,"∋","\\ni",!0),p(v,w,C,"∝","\\propto",!0),p(v,w,C,"⊢","\\vdash",!0),p(v,w,C,"⊣","\\dashv",!0),p(v,w,C,"∋","\\owns"),p(v,w,ci,".","\\ldotp"),p(v,w,ci,"⋅","\\cdotp"),p(v,w,N,"#","\\#"),p(Y,w,N,"#","\\#"),p(v,w,N,"&","\\&"),p(Y,w,N,"&","\\&"),p(v,w,N,"ℵ","\\aleph",!0),p(v,w,N,"∀","\\forall",!0),p(v,w,N,"ℏ","\\hbar",!0),p(v,w,N,"∃","\\exists",!0),p(v,w,N,"∇","\\nabla",!0),p(v,w,N,"♭","\\flat",!0),p(v,w,N,"ℓ","\\ell",!0),p(v,w,N,"♮","\\natural",!0),p(v,w,N,"♣","\\clubsuit",!0),p(v,w,N,"℘","\\wp",!0),p(v,w,N,"♯","\\sharp",!0),p(v,w,N,"♢","\\diamondsuit",!0),p(v,w,N,"ℜ","\\Re",!0),p(v,w,N,"♡","\\heartsuit",!0),p(v,w,N,"ℑ","\\Im",!0),p(v,w,N,"♠","\\spadesuit",!0),p(v,w,N,"§","\\S",!0),p(Y,w,N,"§","\\S"),p(v,w,N,"¶","\\P",!0),p(Y,w,N,"¶","\\P"),p(v,w,N,"†","\\dag"),p(Y,w,N,"†","\\dag"),p(Y,w,N,"†","\\textdagger"),p(v,w,N,"‡","\\ddag"),p(Y,w,N,"‡","\\ddag"),p(Y,w,N,"‡","\\textdaggerdbl"),p(v,w,ut,"⎱","\\rmoustache",!0),p(v,w,kt,"⎰","\\lmoustache",!0),p(v,w,ut,"⟯","\\rgroup",!0),p(v,w,kt,"⟮","\\lgroup",!0),p(v,w,ie,"∓","\\mp",!0),p(v,w,ie,"⊖","\\ominus",!0),p(v,w,ie,"⊎","\\uplus",!0),p(v,w,ie,"⊓","\\sqcap",!0),p(v,w,ie,"∗","\\ast"),p(v,w,ie,"⊔","\\sqcup",!0),p(v,w,ie,"◯","\\bigcirc",!0),p(v,w,ie,"∙","\\bullet",!0),p(v,w,ie,"‡","\\ddagger"),p(v,w,ie,"≀","\\wr",!0),p(v,w,ie,"⨿","\\amalg"),p(v,w,ie,"&","\\And"),p(v,w,C,"⟵","\\longleftarrow",!0),p(v,w,C,"⇐","\\Leftarrow",!0),p(v,w,C,"⟸","\\Longleftarrow",!0),p(v,w,C,"⟶","\\longrightarrow",!0),p(v,w,C,"⇒","\\Rightarrow",!0),p(v,w,C,"⟹","\\Longrightarrow",!0),p(v,w,C,"↔","\\leftrightarrow",!0),p(v,w,C,"⟷","\\longleftrightarrow",!0),p(v,w,C,"⇔","\\Leftrightarrow",!0),p(v,w,C,"⟺","\\Longleftrightarrow",!0),p(v,w,C,"↦","\\mapsto",!0),p(v,w,C,"⟼","\\longmapsto",!0),p(v,w,C,"↗","\\nearrow",!0),p(v,w,C,"↩","\\hookleftarrow",!0),p(v,w,C,"↪","\\hookrightarrow",!0),p(v,w,C,"↘","\\searrow",!0),p(v,w,C,"↼","\\leftharpoonup",!0),p(v,w,C,"⇀","\\rightharpoonup",!0),p(v,w,C,"↙","\\swarrow",!0),p(v,w,C,"↽","\\leftharpoondown",!0),p(v,w,C,"⇁","\\rightharpoondown",!0),p(v,w,C,"↖","\\nwarrow",!0),p(v,w,C,"⇌","\\rightleftharpoons",!0),p(v,T,C,"≮","\\nless",!0),p(v,T,C,"","\\@nleqslant"),p(v,T,C,"","\\@nleqq"),p(v,T,C,"⪇","\\lneq",!0),p(v,T,C,"≨","\\lneqq",!0),p(v,T,C,"","\\@lvertneqq"),p(v,T,C,"⋦","\\lnsim",!0),p(v,T,C,"⪉","\\lnapprox",!0),p(v,T,C,"⊀","\\nprec",!0),p(v,T,C,"⋠","\\npreceq",!0),p(v,T,C,"⋨","\\precnsim",!0),p(v,T,C,"⪹","\\precnapprox",!0),p(v,T,C,"≁","\\nsim",!0),p(v,T,C,"","\\@nshortmid"),p(v,T,C,"∤","\\nmid",!0),p(v,T,C,"⊬","\\nvdash",!0),p(v,T,C,"⊭","\\nvDash",!0),p(v,T,C,"⋪","\\ntriangleleft"),p(v,T,C,"⋬","\\ntrianglelefteq",!0),p(v,T,C,"⊊","\\subsetneq",!0),p(v,T,C,"","\\@varsubsetneq"),p(v,T,C,"⫋","\\subsetneqq",!0),p(v,T,C,"","\\@varsubsetneqq"),p(v,T,C,"≯","\\ngtr",!0),p(v,T,C,"","\\@ngeqslant"),p(v,T,C,"","\\@ngeqq"),p(v,T,C,"⪈","\\gneq",!0),p(v,T,C,"≩","\\gneqq",!0),p(v,T,C,"","\\@gvertneqq"),p(v,T,C,"⋧","\\gnsim",!0),p(v,T,C,"⪊","\\gnapprox",!0),p(v,T,C,"⊁","\\nsucc",!0),p(v,T,C,"⋡","\\nsucceq",!0),p(v,T,C,"⋩","\\succnsim",!0),p(v,T,C,"⪺","\\succnapprox",!0),p(v,T,C,"≆","\\ncong",!0),p(v,T,C,"","\\@nshortparallel"),p(v,T,C,"∦","\\nparallel",!0),p(v,T,C,"⊯","\\nVDash",!0),p(v,T,C,"⋫","\\ntriangleright"),p(v,T,C,"⋭","\\ntrianglerighteq",!0),p(v,T,C,"","\\@nsupseteqq"),p(v,T,C,"⊋","\\supsetneq",!0),p(v,T,C,"","\\@varsupsetneq"),p(v,T,C,"⫌","\\supsetneqq",!0),p(v,T,C,"","\\@varsupsetneqq"),p(v,T,C,"⊮","\\nVdash",!0),p(v,T,C,"⪵","\\precneqq",!0),p(v,T,C,"⪶","\\succneqq",!0),p(v,T,C,"","\\@nsubseteqq"),p(v,T,ie,"⊴","\\unlhd"),p(v,T,ie,"⊵","\\unrhd"),p(v,T,C,"↚","\\nleftarrow",!0),p(v,T,C,"↛","\\nrightarrow",!0),p(v,T,C,"⇍","\\nLeftarrow",!0),p(v,T,C,"⇏","\\nRightarrow",!0),p(v,T,C,"↮","\\nleftrightarrow",!0),p(v,T,C,"⇎","\\nLeftrightarrow",!0),p(v,T,C,"△","\\vartriangle"),p(v,T,N,"ℏ","\\hslash"),p(v,T,N,"▽","\\triangledown"),p(v,T,N,"◊","\\lozenge"),p(v,T,N,"Ⓢ","\\circledS"),p(v,T,N,"®","\\circledR"),p(Y,T,N,"®","\\circledR"),p(v,T,N,"∡","\\measuredangle",!0),p(v,T,N,"∄","\\nexists"),p(v,T,N,"℧","\\mho"),p(v,T,N,"Ⅎ","\\Finv",!0),p(v,T,N,"⅁","\\Game",!0),p(v,T,N,"‵","\\backprime"),p(v,T,N,"▲","\\blacktriangle"),p(v,T,N,"▼","\\blacktriangledown"),p(v,T,N,"■","\\blacksquare"),p(v,T,N,"⧫","\\blacklozenge"),p(v,T,N,"★","\\bigstar"),p(v,T,N,"∢","\\sphericalangle",!0),p(v,T,N,"∁","\\complement",!0),p(v,T,N,"ð","\\eth",!0),p(Y,w,N,"ð","ð"),p(v,T,N,"╱","\\diagup"),p(v,T,N,"╲","\\diagdown"),p(v,T,N,"□","\\square"),p(v,T,N,"□","\\Box"),p(v,T,N,"◊","\\Diamond"),p(v,T,N,"¥","\\yen",!0),p(Y,T,N,"¥","\\yen",!0),p(v,T,N,"✓","\\checkmark",!0),p(Y,T,N,"✓","\\checkmark"),p(v,T,N,"ℶ","\\beth",!0),p(v,T,N,"ℸ","\\daleth",!0),p(v,T,N,"ℷ","\\gimel",!0),p(v,T,N,"ϝ","\\digamma",!0),p(v,T,N,"ϰ","\\varkappa"),p(v,T,kt,"┌","\\@ulcorner",!0),p(v,T,ut,"┐","\\@urcorner",!0),p(v,T,kt,"└","\\@llcorner",!0),p(v,T,ut,"┘","\\@lrcorner",!0),p(v,T,C,"≦","\\leqq",!0),p(v,T,C,"⩽","\\leqslant",!0),p(v,T,C,"⪕","\\eqslantless",!0),p(v,T,C,"≲","\\lesssim",!0),p(v,T,C,"⪅","\\lessapprox",!0),p(v,T,C,"≊","\\approxeq",!0),p(v,T,ie,"⋖","\\lessdot"),p(v,T,C,"⋘","\\lll",!0),p(v,T,C,"≶","\\lessgtr",!0),p(v,T,C,"⋚","\\lesseqgtr",!0),p(v,T,C,"⪋","\\lesseqqgtr",!0),p(v,T,C,"≑","\\doteqdot"),p(v,T,C,"≓","\\risingdotseq",!0),p(v,T,C,"≒","\\fallingdotseq",!0),p(v,T,C,"∽","\\backsim",!0),p(v,T,C,"⋍","\\backsimeq",!0),p(v,T,C,"⫅","\\subseteqq",!0),p(v,T,C,"⋐","\\Subset",!0),p(v,T,C,"⊏","\\sqsubset",!0),p(v,T,C,"≼","\\preccurlyeq",!0),p(v,T,C,"⋞","\\curlyeqprec",!0),p(v,T,C,"≾","\\precsim",!0),p(v,T,C,"⪷","\\precapprox",!0),p(v,T,C,"⊲","\\vartriangleleft"),p(v,T,C,"⊴","\\trianglelefteq"),p(v,T,C,"⊨","\\vDash",!0),p(v,T,C,"⊪","\\Vvdash",!0),p(v,T,C,"⌣","\\smallsmile"),p(v,T,C,"⌢","\\smallfrown"),p(v,T,C,"≏","\\bumpeq",!0),p(v,T,C,"≎","\\Bumpeq",!0),p(v,T,C,"≧","\\geqq",!0),p(v,T,C,"⩾","\\geqslant",!0),p(v,T,C,"⪖","\\eqslantgtr",!0),p(v,T,C,"≳","\\gtrsim",!0),p(v,T,C,"⪆","\\gtrapprox",!0),p(v,T,ie,"⋗","\\gtrdot"),p(v,T,C,"⋙","\\ggg",!0),p(v,T,C,"≷","\\gtrless",!0),p(v,T,C,"⋛","\\gtreqless",!0),p(v,T,C,"⪌","\\gtreqqless",!0),p(v,T,C,"≖","\\eqcirc",!0),p(v,T,C,"≗","\\circeq",!0),p(v,T,C,"≜","\\triangleq",!0),p(v,T,C,"∼","\\thicksim"),p(v,T,C,"≈","\\thickapprox"),p(v,T,C,"⫆","\\supseteqq",!0),p(v,T,C,"⋑","\\Supset",!0),p(v,T,C,"⊐","\\sqsupset",!0),p(v,T,C,"≽","\\succcurlyeq",!0),p(v,T,C,"⋟","\\curlyeqsucc",!0),p(v,T,C,"≿","\\succsim",!0),p(v,T,C,"⪸","\\succapprox",!0),p(v,T,C,"⊳","\\vartriangleright"),p(v,T,C,"⊵","\\trianglerighteq"),p(v,T,C,"⊩","\\Vdash",!0),p(v,T,C,"∣","\\shortmid"),p(v,T,C,"∥","\\shortparallel"),p(v,T,C,"≬","\\between",!0),p(v,T,C,"⋔","\\pitchfork",!0),p(v,T,C,"∝","\\varpropto"),p(v,T,C,"◀","\\blacktriangleleft"),p(v,T,C,"∴","\\therefore",!0),p(v,T,C,"∍","\\backepsilon"),p(v,T,C,"▶","\\blacktriangleright"),p(v,T,C,"∵","\\because",!0),p(v,T,C,"⋘","\\llless"),p(v,T,C,"⋙","\\gggtr"),p(v,T,ie,"⊲","\\lhd"),p(v,T,ie,"⊳","\\rhd"),p(v,T,C,"≂","\\eqsim",!0),p(v,w,C,"⋈","\\Join"),p(v,T,C,"≑","\\Doteq",!0),p(v,T,ie,"∔","\\dotplus",!0),p(v,T,ie,"∖","\\smallsetminus"),p(v,T,ie,"⋒","\\Cap",!0),p(v,T,ie,"⋓","\\Cup",!0),p(v,T,ie,"⩞","\\doublebarwedge",!0),p(v,T,ie,"⊟","\\boxminus",!0),p(v,T,ie,"⊞","\\boxplus",!0),p(v,T,ie,"⋇","\\divideontimes",!0),p(v,T,ie,"⋉","\\ltimes",!0),p(v,T,ie,"⋊","\\rtimes",!0),p(v,T,ie,"⋋","\\leftthreetimes",!0),p(v,T,ie,"⋌","\\rightthreetimes",!0),p(v,T,ie,"⋏","\\curlywedge",!0),p(v,T,ie,"⋎","\\curlyvee",!0),p(v,T,ie,"⊝","\\circleddash",!0),p(v,T,ie,"⊛","\\circledast",!0),p(v,T,ie,"⋅","\\centerdot"),p(v,T,ie,"⊺","\\intercal",!0),p(v,T,ie,"⋒","\\doublecap"),p(v,T,ie,"⋓","\\doublecup"),p(v,T,ie,"⊠","\\boxtimes",!0),p(v,T,C,"⇢","\\dashrightarrow",!0),p(v,T,C,"⇠","\\dashleftarrow",!0),p(v,T,C,"⇇","\\leftleftarrows",!0),p(v,T,C,"⇆","\\leftrightarrows",!0),p(v,T,C,"⇚","\\Lleftarrow",!0),p(v,T,C,"↞","\\twoheadleftarrow",!0),p(v,T,C,"↢","\\leftarrowtail",!0),p(v,T,C,"↫","\\looparrowleft",!0),p(v,T,C,"⇋","\\leftrightharpoons",!0),p(v,T,C,"↶","\\curvearrowleft",!0),p(v,T,C,"↺","\\circlearrowleft",!0),p(v,T,C,"↰","\\Lsh",!0),p(v,T,C,"⇈","\\upuparrows",!0),p(v,T,C,"↿","\\upharpoonleft",!0),p(v,T,C,"⇃","\\downharpoonleft",!0),p(v,w,C,"⊶","\\origof",!0),p(v,w,C,"⊷","\\imageof",!0),p(v,T,C,"⊸","\\multimap",!0),p(v,T,C,"↭","\\leftrightsquigarrow",!0),p(v,T,C,"⇉","\\rightrightarrows",!0),p(v,T,C,"⇄","\\rightleftarrows",!0),p(v,T,C,"↠","\\twoheadrightarrow",!0),p(v,T,C,"↣","\\rightarrowtail",!0),p(v,T,C,"↬","\\looparrowright",!0),p(v,T,C,"↷","\\curvearrowright",!0),p(v,T,C,"↻","\\circlearrowright",!0),p(v,T,C,"↱","\\Rsh",!0),p(v,T,C,"⇊","\\downdownarrows",!0),p(v,T,C,"↾","\\upharpoonright",!0),p(v,T,C,"⇂","\\downharpoonright",!0),p(v,T,C,"⇝","\\rightsquigarrow",!0),p(v,T,C,"⇝","\\leadsto"),p(v,T,C,"⇛","\\Rrightarrow",!0),p(v,T,C,"↾","\\restriction"),p(v,w,N,"‘","`"),p(v,w,N,"$","\\$"),p(Y,w,N,"$","\\$"),p(Y,w,N,"$","\\textdollar"),p(v,w,N,"%","\\%"),p(Y,w,N,"%","\\%"),p(v,w,N,"_","\\_"),p(Y,w,N,"_","\\_"),p(Y,w,N,"_","\\textunderscore"),p(v,w,N,"∠","\\angle",!0),p(v,w,N,"∞","\\infty",!0),p(v,w,N,"′","\\prime"),p(v,w,N,"△","\\triangle"),p(v,w,N,"Γ","\\Gamma",!0),p(v,w,N,"Δ","\\Delta",!0),p(v,w,N,"Θ","\\Theta",!0),p(v,w,N,"Λ","\\Lambda",!0),p(v,w,N,"Ξ","\\Xi",!0),p(v,w,N,"Π","\\Pi",!0),p(v,w,N,"Σ","\\Sigma",!0),p(v,w,N,"Υ","\\Upsilon",!0),p(v,w,N,"Φ","\\Phi",!0),p(v,w,N,"Ψ","\\Psi",!0),p(v,w,N,"Ω","\\Omega",!0),p(v,w,N,"A","Α"),p(v,w,N,"B","Β"),p(v,w,N,"E","Ε"),p(v,w,N,"Z","Ζ"),p(v,w,N,"H","Η"),p(v,w,N,"I","Ι"),p(v,w,N,"K","Κ"),p(v,w,N,"M","Μ"),p(v,w,N,"N","Ν"),p(v,w,N,"O","Ο"),p(v,w,N,"P","Ρ"),p(v,w,N,"T","Τ"),p(v,w,N,"X","Χ"),p(v,w,N,"¬","\\neg",!0),p(v,w,N,"¬","\\lnot"),p(v,w,N,"⊤","\\top"),p(v,w,N,"⊥","\\bot"),p(v,w,N,"∅","\\emptyset"),p(v,T,N,"∅","\\varnothing"),p(v,w,ge,"α","\\alpha",!0),p(v,w,ge,"β","\\beta",!0),p(v,w,ge,"γ","\\gamma",!0),p(v,w,ge,"δ","\\delta",!0),p(v,w,ge,"ϵ","\\epsilon",!0),p(v,w,ge,"ζ","\\zeta",!0),p(v,w,ge,"η","\\eta",!0),p(v,w,ge,"θ","\\theta",!0),p(v,w,ge,"ι","\\iota",!0),p(v,w,ge,"κ","\\kappa",!0),p(v,w,ge,"λ","\\lambda",!0),p(v,w,ge,"μ","\\mu",!0),p(v,w,ge,"ν","\\nu",!0),p(v,w,ge,"ξ","\\xi",!0),p(v,w,ge,"ο","\\omicron",!0),p(v,w,ge,"π","\\pi",!0),p(v,w,ge,"ρ","\\rho",!0),p(v,w,ge,"σ","\\sigma",!0),p(v,w,ge,"τ","\\tau",!0),p(v,w,ge,"υ","\\upsilon",!0),p(v,w,ge,"ϕ","\\phi",!0),p(v,w,ge,"χ","\\chi",!0),p(v,w,ge,"ψ","\\psi",!0),p(v,w,ge,"ω","\\omega",!0),p(v,w,ge,"ε","\\varepsilon",!0),p(v,w,ge,"ϑ","\\vartheta",!0),p(v,w,ge,"ϖ","\\varpi",!0),p(v,w,ge,"ϱ","\\varrho",!0),p(v,w,ge,"ς","\\varsigma",!0),p(v,w,ge,"φ","\\varphi",!0),p(v,w,ie,"∗","*",!0),p(v,w,ie,"+","+"),p(v,w,ie,"−","-",!0),p(v,w,ie,"⋅","\\cdot",!0),p(v,w,ie,"∘","\\circ",!0),p(v,w,ie,"÷","\\div",!0),p(v,w,ie,"±","\\pm",!0),p(v,w,ie,"×","\\times",!0),p(v,w,ie,"∩","\\cap",!0),p(v,w,ie,"∪","\\cup",!0),p(v,w,ie,"∖","\\setminus",!0),p(v,w,ie,"∧","\\land"),p(v,w,ie,"∨","\\lor"),p(v,w,ie,"∧","\\wedge",!0),p(v,w,ie,"∨","\\vee",!0),p(v,w,N,"√","\\surd"),p(v,w,kt,"⟨","\\langle",!0),p(v,w,kt,"∣","\\lvert"),p(v,w,kt,"∥","\\lVert"),p(v,w,ut,"?","?"),p(v,w,ut,"!","!"),p(v,w,ut,"⟩","\\rangle",!0),p(v,w,ut,"∣","\\rvert"),p(v,w,ut,"∥","\\rVert"),p(v,w,C,"=","="),p(v,w,C,":",":"),p(v,w,C,"≈","\\approx",!0),p(v,w,C,"≅","\\cong",!0),p(v,w,C,"≥","\\ge"),p(v,w,C,"≥","\\geq",!0),p(v,w,C,"←","\\gets"),p(v,w,C,">","\\gt",!0),p(v,w,C,"∈","\\in",!0),p(v,w,C,"","\\@not"),p(v,w,C,"⊂","\\subset",!0),p(v,w,C,"⊃","\\supset",!0),p(v,w,C,"⊆","\\subseteq",!0),p(v,w,C,"⊇","\\supseteq",!0),p(v,T,C,"⊈","\\nsubseteq",!0),p(v,T,C,"⊉","\\nsupseteq",!0),p(v,w,C,"⊨","\\models"),p(v,w,C,"←","\\leftarrow",!0),p(v,w,C,"≤","\\le"),p(v,w,C,"≤","\\leq",!0),p(v,w,C,"<","\\lt",!0),p(v,w,C,"→","\\rightarrow",!0),p(v,w,C,"→","\\to"),p(v,T,C,"≱","\\ngeq",!0),p(v,T,C,"≰","\\nleq",!0),p(v,w,Qt," ","\\ "),p(v,w,Qt," ","\\space"),p(v,w,Qt," ","\\nobreakspace"),p(Y,w,Qt," ","\\ "),p(Y,w,Qt," "," "),p(Y,w,Qt," ","\\space"),p(Y,w,Qt," ","\\nobreakspace"),p(v,w,Qt,null,"\\nobreak"),p(v,w,Qt,null,"\\allowbreak"),p(v,w,ci,",",","),p(v,w,ci,";",";"),p(v,T,ie,"⊼","\\barwedge",!0),p(v,T,ie,"⊻","\\veebar",!0),p(v,w,ie,"⊙","\\odot",!0),p(v,w,ie,"⊕","\\oplus",!0),p(v,w,ie,"⊗","\\otimes",!0),p(v,w,N,"∂","\\partial",!0),p(v,w,ie,"⊘","\\oslash",!0),p(v,T,ie,"⊚","\\circledcirc",!0),p(v,T,ie,"⊡","\\boxdot",!0),p(v,w,ie,"△","\\bigtriangleup"),p(v,w,ie,"▽","\\bigtriangledown"),p(v,w,ie,"†","\\dagger"),p(v,w,ie,"⋄","\\diamond"),p(v,w,ie,"⋆","\\star"),p(v,w,ie,"◃","\\triangleleft"),p(v,w,ie,"▹","\\triangleright"),p(v,w,kt,"{","\\{"),p(Y,w,N,"{","\\{"),p(Y,w,N,"{","\\textbraceleft"),p(v,w,ut,"}","\\}"),p(Y,w,N,"}","\\}"),p(Y,w,N,"}","\\textbraceright"),p(v,w,kt,"{","\\lbrace"),p(v,w,ut,"}","\\rbrace"),p(v,w,kt,"[","\\lbrack",!0),p(Y,w,N,"[","\\lbrack",!0),p(v,w,ut,"]","\\rbrack",!0),p(Y,w,N,"]","\\rbrack",!0),p(v,w,kt,"(","\\lparen",!0),p(v,w,ut,")","\\rparen",!0),p(Y,w,N,"<","\\textless",!0),p(Y,w,N,">","\\textgreater",!0),p(v,w,kt,"⌊","\\lfloor",!0),p(v,w,ut,"⌋","\\rfloor",!0),p(v,w,kt,"⌈","\\lceil",!0),p(v,w,ut,"⌉","\\rceil",!0),p(v,w,N,"\\","\\backslash"),p(v,w,N,"∣","|"),p(v,w,N,"∣","\\vert"),p(Y,w,N,"|","\\textbar",!0),p(v,w,N,"∥","\\|"),p(v,w,N,"∥","\\Vert"),p(Y,w,N,"∥","\\textbardbl"),p(Y,w,N,"~","\\textasciitilde"),p(Y,w,N,"\\","\\textbackslash"),p(Y,w,N,"^","\\textasciicircum"),p(v,w,C,"↑","\\uparrow",!0),p(v,w,C,"⇑","\\Uparrow",!0),p(v,w,C,"↓","\\downarrow",!0),p(v,w,C,"⇓","\\Downarrow",!0),p(v,w,C,"↕","\\updownarrow",!0),p(v,w,C,"⇕","\\Updownarrow",!0),p(v,w,et,"∐","\\coprod"),p(v,w,et,"⋁","\\bigvee"),p(v,w,et,"⋀","\\bigwedge"),p(v,w,et,"⨄","\\biguplus"),p(v,w,et,"⋂","\\bigcap"),p(v,w,et,"⋃","\\bigcup"),p(v,w,et,"∫","\\int"),p(v,w,et,"∫","\\intop"),p(v,w,et,"∬","\\iint"),p(v,w,et,"∭","\\iiint"),p(v,w,et,"∏","\\prod"),p(v,w,et,"∑","\\sum"),p(v,w,et,"⨂","\\bigotimes"),p(v,w,et,"⨁","\\bigoplus"),p(v,w,et,"⨀","\\bigodot"),p(v,w,et,"∮","\\oint"),p(v,w,et,"∯","\\oiint"),p(v,w,et,"∰","\\oiiint"),p(v,w,et,"⨆","\\bigsqcup"),p(v,w,et,"∫","\\smallint"),p(Y,w,en,"…","\\textellipsis"),p(v,w,en,"…","\\mathellipsis"),p(Y,w,en,"…","\\ldots",!0),p(v,w,en,"…","\\ldots",!0),p(v,w,en,"⋯","\\@cdots",!0),p(v,w,en,"⋱","\\ddots",!0),p(v,w,N,"⋮","\\varvdots"),p(v,w,Ve,"ˊ","\\acute"),p(v,w,Ve,"ˋ","\\grave"),p(v,w,Ve,"¨","\\ddot"),p(v,w,Ve,"~","\\tilde"),p(v,w,Ve,"ˉ","\\bar"),p(v,w,Ve,"˘","\\breve"),p(v,w,Ve,"ˇ","\\check"),p(v,w,Ve,"^","\\hat"),p(v,w,Ve,"⃗","\\vec"),p(v,w,Ve,"˙","\\dot"),p(v,w,Ve,"˚","\\mathring"),p(v,w,ge,"","\\@imath"),p(v,w,ge,"","\\@jmath"),p(v,w,N,"ı","ı"),p(v,w,N,"ȷ","ȷ"),p(Y,w,N,"ı","\\i",!0),p(Y,w,N,"ȷ","\\j",!0),p(Y,w,N,"ß","\\ss",!0),p(Y,w,N,"æ","\\ae",!0),p(Y,w,N,"œ","\\oe",!0),p(Y,w,N,"ø","\\o",!0),p(Y,w,N,"Æ","\\AE",!0),p(Y,w,N,"Œ","\\OE",!0),p(Y,w,N,"Ø","\\O",!0),p(Y,w,Ve,"ˊ","\\'"),p(Y,w,Ve,"ˋ","\\`"),p(Y,w,Ve,"ˆ","\\^"),p(Y,w,Ve,"˜","\\~"),p(Y,w,Ve,"ˉ","\\="),p(Y,w,Ve,"˘","\\u"),p(Y,w,Ve,"˙","\\."),p(Y,w,Ve,"¸","\\c"),p(Y,w,Ve,"˚","\\r"),p(Y,w,Ve,"ˇ","\\v"),p(Y,w,Ve,"¨",'\\"'),p(Y,w,Ve,"˝","\\H"),p(Y,w,Ve,"◯","\\textcircled");var os={"--":!0,"---":!0,"``":!0,"''":!0};p(Y,w,N,"–","--",!0),p(Y,w,N,"–","\\textendash"),p(Y,w,N,"—","---",!0),p(Y,w,N,"—","\\textemdash"),p(Y,w,N,"‘","`",!0),p(Y,w,N,"‘","\\textquoteleft"),p(Y,w,N,"’","'",!0),p(Y,w,N,"’","\\textquoteright"),p(Y,w,N,"“","``",!0),p(Y,w,N,"“","\\textquotedblleft"),p(Y,w,N,"”","''",!0),p(Y,w,N,"”","\\textquotedblright"),p(v,w,N,"°","\\degree",!0),p(Y,w,N,"°","\\degree"),p(Y,w,N,"°","\\textdegree",!0),p(v,w,N,"£","\\pounds"),p(v,w,N,"£","\\mathsterling",!0),p(Y,w,N,"£","\\pounds"),p(Y,w,N,"£","\\textsterling",!0),p(v,T,N,"✠","\\maltese"),p(Y,T,N,"✠","\\maltese");for(var ss='0123456789/@."',R0=0;R00)return Ft(f,S,c,a,g.concat(z));if(k){var $,H;if(k==="boldsymbol"){var j=qf(f,c,a,g,s);$=j.fontName,H=[j.fontClass]}else y?($=ds[k].fontName,H=[k]):($=mi(k,a.fontWeight,a.fontShape),H=[k,a.fontWeight,a.fontShape]);if(di(f,$,c).metrics)return Ft(f,$,c,a,g.concat(H));if(os.hasOwnProperty(f)&&$.slice(0,10)==="Typewriter"){for(var J=[],te=0;tea&&(a=g.height),g.depth>s&&(s=g.depth),g.maxFontSize>c&&(c=g.maxFontSize)}n.height=a,n.depth=s,n.maxFontSize=c},mt=function(n,a,s,c){var f=new Sn(n,a,s,c);return H0(f),f},fs=function(n,a,s,c){return new Sn(n,a,s,c)},jf=function(n,a,s){var c=mt([n],[],a);return c.height=Math.max(s||a.fontMetrics().defaultRuleThickness,a.minRuleThickness),c.style.borderBottomWidth=Q(c.height),c.maxFontSize=1,c},Uf=function(n,a,s,c){var f=new O0(n,a,s,c);return H0(f),f},ps=function(n){var a=new Zt(n);return H0(a),a},Gf=function(n,a){return n instanceof Zt?mt([],[n],a):n},Vf=function(n){if(n.positionType==="individualShift"){for(var a=n.children,s=[a[0]],c=-a[0].shift-a[0].elem.depth,f=c,g=1;g0&&(f.push(bi(g,n)),g=[]),f.push(s[y]));g.length>0&&f.push(bi(g,n));var S;a?(S=bi(nt(a,n,!0)),S.classes=["tag"],f.push(S)):c&&f.push(c);var z=tr(["katex-html"],f);if(z.setAttribute("aria-hidden","true"),S){var I=S.children[0];I.style.height=Q(z.height+z.depth),z.depth&&(I.style.verticalAlign=Q(-z.depth))}return z}function bs(m){return new Zt(m)}var Tt=function(){function m(a,s,c){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=a,this.attributes={},this.children=s||[],this.classes=c||[]}var n=m.prototype;return n.setAttribute=function(s,c){this.attributes[s]=c},n.getAttribute=function(s){return this.attributes[s]},n.toNode=function(){var s=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&s.setAttribute(c,this.attributes[c]);this.classes.length>0&&(s.className=hr(this.classes));for(var f=0;f0&&(s+=' class ="'+D.escape(hr(this.classes))+'"'),s+=">";for(var f=0;f",s},n.toText=function(){return this.children.map(function(s){return s.toText()}).join("")},m}(),En=function(){function m(a){this.text=void 0,this.text=a}var n=m.prototype;return n.toNode=function(){return document.createTextNode(this.text)},n.toMarkup=function(){return D.escape(this.toText())},n.toText=function(){return this.text},m}(),n1=function(){function m(a){this.width=void 0,this.character=void 0,this.width=a,a>=.05555&&a<=.05556?this.character=" ":a>=.1666&&a<=.1667?this.character=" ":a>=.2222&&a<=.2223?this.character=" ":a>=.2777&&a<=.2778?this.character="  ":a>=-.05556&&a<=-.05555?this.character=" ⁣":a>=-.1667&&a<=-.1666?this.character=" ⁣":a>=-.2223&&a<=-.2222?this.character=" ⁣":a>=-.2778&&a<=-.2777?this.character=" ⁣":this.character=null}var n=m.prototype;return n.toNode=function(){if(this.character)return document.createTextNode(this.character);var s=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return s.setAttribute("width",Q(this.width)),s},n.toMarkup=function(){return this.character?""+this.character+"":''},n.toText=function(){return this.character?this.character:" "},m}(),K={MathNode:Tt,TextNode:En,SpaceNode:n1,newDocumentFragment:bs},Ct=function(n,a,s){return Xe[a][n]&&Xe[a][n].replace&&n.charCodeAt(0)!==55349&&!(os.hasOwnProperty(n)&&s&&(s.fontFamily&&s.fontFamily.slice(4,6)==="tt"||s.font&&s.font.slice(4,6)==="tt"))&&(n=Xe[a][n].replace),new K.TextNode(n)},U0=function(n){return n.length===1?n[0]:new K.MathNode("mrow",n)},G0=function(n,a){if(a.fontFamily==="texttt")return"monospace";if(a.fontFamily==="textsf")return a.fontShape==="textit"&&a.fontWeight==="textbf"?"sans-serif-bold-italic":a.fontShape==="textit"?"sans-serif-italic":a.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(a.fontShape==="textit"&&a.fontWeight==="textbf")return"bold-italic";if(a.fontShape==="textit")return"italic";if(a.fontWeight==="textbf")return"bold";var s=a.font;if(!s||s==="mathnormal")return null;var c=n.mode;if(s==="mathit")return"italic";if(s==="boldsymbol")return n.type==="textord"?"bold":"bold-italic";if(s==="mathbf")return"bold";if(s==="mathbb")return"double-struck";if(s==="mathfrak")return"fraktur";if(s==="mathscr"||s==="mathcal")return"script";if(s==="mathsf")return"sans-serif";if(s==="mathtt")return"monospace";var f=n.text;if(D.contains(["\\imath","\\jmath"],f))return null;Xe[c][f]&&Xe[c][f].replace&&(f=Xe[c][f].replace);var g=R.fontMap[s].fontName;return ur(f,g,c)?R.fontMap[s].variant:null},gt=function(n,a,s){if(n.length===1){var c=qe(n[0],a);return s&&c instanceof Tt&&c.type==="mo"&&(c.setAttribute("lspace","0em"),c.setAttribute("rspace","0em")),[c]}for(var f=[],g,y=0;y0&&(j.text=j.text.slice(0,1)+"̸"+j.text.slice(1),f.pop())}}}f.push(k),g=k}return f},dr=function(n,a,s){return U0(gt(n,a,s))},qe=function(n,a){if(!n)return new K.MathNode("mrow");if(vi[n.type]){var s=vi[n.type](n,a);return s}else throw new l("Got group of unknown type: '"+n.type+"'")};function ys(m,n,a,s,c){var f=gt(m,a),g;f.length===1&&f[0]instanceof Tt&&D.contains(["mrow","mtable"],f[0].type)?g=f[0]:g=new K.MathNode("mrow",f);var y=new K.MathNode("annotation",[new K.TextNode(n)]);y.setAttribute("encoding","application/x-tex");var k=new K.MathNode("semantics",[g,y]),S=new K.MathNode("math",[k]);S.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),s&&S.setAttribute("display","block");var z=c?"katex":"katex-mathml";return R.makeSpan([z],[S])}var ws=function(n){return new Ce({style:n.displayMode?V.DISPLAY:V.TEXT,maxSize:n.maxSize,minRuleThickness:n.minRuleThickness})},xs=function(n,a){if(a.displayMode){var s=["katex-display"];a.leqno&&s.push("leqno"),a.fleqn&&s.push("fleqn"),n=R.makeSpan(s,[n])}return n},i1=function(n,a,s){var c=ws(s),f;if(s.output==="mathml")return ys(n,a,c,s.displayMode,!0);if(s.output==="html"){var g=j0(n,c);f=R.makeSpan(["katex"],[g])}else{var y=ys(n,a,c,s.displayMode,!1),k=j0(n,c);f=R.makeSpan(["katex"],[y,k])}return xs(f,s)},a1=function(n,a,s){var c=ws(s),f=j0(n,c),g=R.makeSpan(["katex"],[f]);return xs(g,s)},o1={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",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":"="},s1=function(n){var a=new K.MathNode("mo",[new K.TextNode(o1[n.replace(/^\\/,"")])]);return a.setAttribute("stretchy","true"),a},l1={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],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]},c1=function(n){return n.type==="ordgroup"?n.body.length:1},u1=function(n,a){function s(){var k=4e5,S=n.label.slice(1);if(D.contains(["widehat","widecheck","widetilde","utilde"],S)){var z=n,I=c1(z.base),$,H,j;if(I>5)S==="widehat"||S==="widecheck"?($=420,k=2364,j=.42,H=S+"4"):($=312,k=2340,j=.34,H="tilde4");else{var J=[1,1,2,2,3,3][I];S==="widehat"||S==="widecheck"?(k=[0,1062,2364,2364,2364][J],$=[0,239,300,360,420][J],j=[0,.24,.3,.3,.36,.42][J],H=S+J):(k=[0,600,1033,2339,2340][J],$=[0,260,286,306,312][J],j=[0,.26,.286,.3,.306,.34][J],H="tilde"+J)}var te=new fr(H),oe=new Jt([te],{width:"100%",height:Q(j),viewBox:"0 0 "+k+" "+$,preserveAspectRatio:"none"});return{span:R.makeSvgSpan([],[oe],a),minWidth:0,height:j}}else{var he=[],me=l1[S],Te=me[0],ke=me[1],De=me[2],Ee=De/1e3,Ie=Te.length,je,ot;if(Ie===1){var At=me[3];je=["hide-tail"],ot=[At]}else if(Ie===2)je=["halfarrow-left","halfarrow-right"],ot=["xMinYMin","xMaxYMin"];else if(Ie===3)je=["brace-left","brace-center","brace-right"],ot=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+Ie+" children.");for(var We=0;We0&&(f.style.minWidth=Q(g)),f},h1=function(n,a,s,c,f){var g,y=n.height+n.depth+s+c;if(/fbox|color|angl/.test(a)){if(g=R.makeSpan(["stretchy",a],[],f),a==="fbox"){var k=f.color&&f.getColor();k&&(g.style.borderColor=k)}}else{var S=[];/^[bx]cancel$/.test(a)&&S.push(new I0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&S.push(new I0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var z=new Jt(S,{width:"100%",height:Q(y)});g=R.makeSvgSpan([],[z],f)}return g.height=y,g.style.height=Q(y),g},rr={encloseSpan:h1,mathMLnode:s1,svgSpan:u1};function xe(m,n){if(!m||m.type!==n)throw new Error("Expected node of type "+n+", but got "+(m?"node of type "+m.type:String(m)));return m}function V0(m){var n=yi(m);if(!n)throw new Error("Expected node of symbol group type, but got "+(m?"node of type "+m.type:String(m)));return n}function yi(m){return m&&(m.type==="atom"||Rf.hasOwnProperty(m.type))?m:null}var X0=function(n,a){var s,c,f;n&&n.type==="supsub"?(c=xe(n.base,"accent"),s=c.base,n.base=s,f=Of(Me(n,a)),n.base=c):(c=xe(n,"accent"),s=c.base);var g=Me(s,a.havingCrampedStyle()),y=c.isShifty&&D.isCharacterBox(s),k=0;if(y){var S=D.getBaseElem(s),z=Me(S,a.havingCrampedStyle());k=as(z).skew}var I=c.label==="\\c",$=I?g.height+g.depth:Math.min(g.height,a.fontMetrics().xHeight),H;if(c.isStretchy)H=rr.svgSpan(c,a),H=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:g},{type:"elem",elem:H,wrapperClasses:["svg-align"],wrapperStyle:k>0?{width:"calc(100% - "+Q(2*k)+")",marginLeft:Q(2*k)}:void 0}]},a);else{var j,J;c.label==="\\vec"?(j=R.staticSvg("vec",a),J=R.svgData.vec[1]):(j=R.makeOrd({mode:c.mode,text:c.label},a,"textord"),j=as(j),j.italic=0,J=j.width,I&&($+=j.depth)),H=R.makeSpan(["accent-body"],[j]);var te=c.label==="\\textcircled";te&&(H.classes.push("accent-full"),$=g.height);var oe=k;te||(oe-=J/2),H.style.left=Q(oe),c.label==="\\textcircled"&&(H.style.top=".2em"),H=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:g},{type:"kern",size:-$},{type:"elem",elem:H}]},a)}var he=R.makeSpan(["mord","accent"],[H],a);return f?(f.children[0]=he,f.height=Math.max(he.height,f.height),f.classes[0]="mord",f):he},ks=function(n,a){var s=n.isStretchy?rr.mathMLnode(n.label):new K.MathNode("mo",[Ct(n.label,n.mode)]),c=new K.MathNode("mover",[qe(n.base,a),s]);return c.setAttribute("accent","true"),c},f1=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(m){return"\\"+m}).join("|"));ne({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:function(n,a){var s=_i(a[0]),c=!f1.test(n.funcName),f=!c||n.funcName==="\\widehat"||n.funcName==="\\widetilde"||n.funcName==="\\widecheck";return{type:"accent",mode:n.parser.mode,label:n.funcName,isStretchy:c,isShifty:f,base:s}},htmlBuilder:X0,mathmlBuilder:ks}),ne({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(n,a){var s=a[0],c=n.parser.mode;return c==="math"&&(n.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+n.funcName+" works only in text mode"),c="text"),{type:"accent",mode:c,label:n.funcName,isStretchy:!1,isShifty:!0,base:s}},htmlBuilder:X0,mathmlBuilder:ks}),ne({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];return{type:"accentUnder",mode:s.mode,label:c,base:f}},htmlBuilder:function(n,a){var s=Me(n.base,a),c=rr.svgSpan(n,a),f=n.label==="\\utilde"?.12:0,g=R.makeVList({positionType:"top",positionData:s.height,children:[{type:"elem",elem:c,wrapperClasses:["svg-align"]},{type:"kern",size:f},{type:"elem",elem:s}]},a);return R.makeSpan(["mord","accentunder"],[g],a)},mathmlBuilder:function(n,a){var s=rr.mathMLnode(n.label),c=new K.MathNode("munder",[qe(n.base,a),s]);return c.setAttribute("accentunder","true"),c}});var wi=function(n){var a=new K.MathNode("mpadded",n?[n]:[]);return a.setAttribute("width","+0.6em"),a.setAttribute("lspace","0.3em"),a};ne({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:function(n,a,s){var c=n.parser,f=n.funcName;return{type:"xArrow",mode:c.mode,label:f,body:a[0],below:s[0]}},htmlBuilder:function(n,a){var s=a.style,c=a.havingStyle(s.sup()),f=R.wrapFragment(Me(n.body,c,a),a),g=n.label.slice(0,2)==="\\x"?"x":"cd";f.classes.push(g+"-arrow-pad");var y;n.below&&(c=a.havingStyle(s.sub()),y=R.wrapFragment(Me(n.below,c,a),a),y.classes.push(g+"-arrow-pad"));var k=rr.svgSpan(n,a),S=-a.fontMetrics().axisHeight+.5*k.height,z=-a.fontMetrics().axisHeight-.5*k.height-.111;(f.depth>.25||n.label==="\\xleftequilibrium")&&(z-=f.depth);var I;if(y){var $=-a.fontMetrics().axisHeight+y.height+.5*k.height+.111;I=R.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:z},{type:"elem",elem:k,shift:S},{type:"elem",elem:y,shift:$}]},a)}else I=R.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:z},{type:"elem",elem:k,shift:S}]},a);return I.children[0].children[0].children[1].classes.push("svg-align"),R.makeSpan(["mrel","x-arrow"],[I],a)},mathmlBuilder:function(n,a){var s=rr.mathMLnode(n.label);s.setAttribute("minsize",n.label.charAt(0)==="x"?"1.75em":"3.0em");var c;if(n.body){var f=wi(qe(n.body,a));if(n.below){var g=wi(qe(n.below,a));c=new K.MathNode("munderover",[s,g,f])}else c=new K.MathNode("mover",[s,f])}else if(n.below){var y=wi(qe(n.below,a));c=new K.MathNode("munder",[s,y])}else c=wi(),c=new K.MathNode("mover",[s,c]);return c}});var p1=R.makeSpan;function As(m,n){var a=nt(m.body,n,!0);return p1([m.mclass],a,n)}function Ss(m,n){var a,s=gt(m.body,n);return m.mclass==="minner"?a=new K.MathNode("mpadded",s):m.mclass==="mord"?m.isCharacterBox?(a=s[0],a.type="mi"):a=new K.MathNode("mi",s):(m.isCharacterBox?(a=s[0],a.type="mo"):a=new K.MathNode("mo",s),m.mclass==="mbin"?(a.attributes.lspace="0.22em",a.attributes.rspace="0.22em"):m.mclass==="mpunct"?(a.attributes.lspace="0em",a.attributes.rspace="0.17em"):m.mclass==="mopen"||m.mclass==="mclose"?(a.attributes.lspace="0em",a.attributes.rspace="0em"):m.mclass==="minner"&&(a.attributes.lspace="0.0556em",a.attributes.width="+0.1111em")),a}ne({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];return{type:"mclass",mode:s.mode,mclass:"m"+c.slice(5),body:Ze(f),isCharacterBox:D.isCharacterBox(f)}},htmlBuilder:As,mathmlBuilder:Ss});var xi=function(n){var a=n.type==="ordgroup"&&n.body.length?n.body[0]:n;return a.type==="atom"&&(a.family==="bin"||a.family==="rel")?"m"+a.family:"mord"};ne({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(n,a){var s=n.parser;return{type:"mclass",mode:s.mode,mclass:xi(a[0]),body:Ze(a[1]),isCharacterBox:D.isCharacterBox(a[1])}}}),ne({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[1],g=a[0],y;c!=="\\stackrel"?y=xi(f):y="mrel";var k={type:"op",mode:f.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:c!=="\\stackrel",body:Ze(f)},S={type:"supsub",mode:g.mode,base:k,sup:c==="\\underset"?null:g,sub:c==="\\underset"?g:null};return{type:"mclass",mode:s.mode,mclass:y,body:[S],isCharacterBox:D.isCharacterBox(S)}},htmlBuilder:As,mathmlBuilder:Ss}),ne({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(n,a){var s=n.parser;return{type:"pmb",mode:s.mode,mclass:xi(a[0]),body:Ze(a[0])}},htmlBuilder:function(n,a){var s=nt(n.body,a,!0),c=R.makeSpan([n.mclass],s,a);return c.style.textShadow="0.02em 0.01em 0.04px",c},mathmlBuilder:function(n,a){var s=gt(n.body,a),c=new K.MathNode("mstyle",s);return c.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),c}});var d1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ms=function(){return{type:"styling",body:[],mode:"math",style:"display"}},Es=function(n){return n.type==="textord"&&n.text==="@"},m1=function(n,a){return(n.type==="mathord"||n.type==="atom")&&n.text===a};function g1(m,n,a){var s=d1[m];switch(s){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return a.callFunction(s,[n[0]],[n[1]]);case"\\uparrow":case"\\downarrow":{var c=a.callFunction("\\\\cdleft",[n[0]],[]),f={type:"atom",text:s,mode:"math",family:"rel"},g=a.callFunction("\\Big",[f],[]),y=a.callFunction("\\\\cdright",[n[1]],[]),k={type:"ordgroup",mode:"math",body:[c,g,y]};return a.callFunction("\\\\cdparent",[k],[])}case"\\\\cdlongequal":return a.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var S={type:"textord",text:"\\Vert",mode:"math"};return a.callFunction("\\Big",[S],[])}default:return{type:"textord",text:" ",mode:"math"}}}function v1(m){var n=[];for(m.gullet.beginGroup(),m.gullet.macros.set("\\cr","\\\\\\relax"),m.gullet.beginGroup();;){n.push(m.parseExpression(!1,"\\\\")),m.gullet.endGroup(),m.gullet.beginGroup();var a=m.fetch().text;if(a==="&"||a==="\\\\")m.consume();else if(a==="\\end"){n[n.length-1].length===0&&n.pop();break}else throw new l("Expected \\\\ or \\cr or \\end",m.nextToken)}for(var s=[],c=[s],f=0;f-1))if("<>AV".indexOf(S)>-1)for(var I=0;I<2;I++){for(var $=!0,H=k+1;HAV=|." after @',g[k]);var j=g1(S,z,m),J={type:"styling",body:[j],mode:"math",style:"display"};s.push(J),y=Ms()}f%2===0?s.push(y):s.shift(),s=[],c.push(s)}m.gullet.endGroup(),m.gullet.endGroup();var te=new Array(c[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:c,arraystretch:1,addJot:!0,rowGaps:[null],cols:te,colSeparationType:"CD",hLinesBeforeRow:new Array(c.length+1).fill([])}}ne({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(n,a){var s=n.parser,c=n.funcName;return{type:"cdlabel",mode:s.mode,side:c.slice(4),label:a[0]}},htmlBuilder:function(n,a){var s=a.havingStyle(a.style.sup()),c=R.wrapFragment(Me(n.label,s,a),a);return c.classes.push("cd-label-"+n.side),c.style.bottom=Q(.8-c.depth),c.height=0,c.depth=0,c},mathmlBuilder:function(n,a){var s=new K.MathNode("mrow",[qe(n.label,a)]);return s=new K.MathNode("mpadded",[s]),s.setAttribute("width","0"),n.side==="left"&&s.setAttribute("lspace","-1width"),s.setAttribute("voffset","0.7em"),s=new K.MathNode("mstyle",[s]),s.setAttribute("displaystyle","false"),s.setAttribute("scriptlevel","1"),s}}),ne({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(n,a){var s=n.parser;return{type:"cdlabelparent",mode:s.mode,fragment:a[0]}},htmlBuilder:function(n,a){var s=R.wrapFragment(Me(n.fragment,a),a);return s.classes.push("cd-vert-arrow"),s},mathmlBuilder:function(n,a){return new K.MathNode("mrow",[qe(n.fragment,a)])}}),ne({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(n,a){for(var s=n.parser,c=xe(a[0],"ordgroup"),f=c.body,g="",y=0;y=1114111)throw new l("\\@char with invalid code point "+g);return S<=65535?z=String.fromCharCode(S):(S-=65536,z=String.fromCharCode((S>>10)+55296,(S&1023)+56320)),{type:"textord",mode:s.mode,text:z}}});var Ts=function(n,a){var s=nt(n.body,a.withColor(n.color),!1);return R.makeFragment(s)},Cs=function(n,a){var s=gt(n.body,a.withColor(n.color)),c=new K.MathNode("mstyle",s);return c.setAttribute("mathcolor",n.color),c};ne({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(n,a){var s=n.parser,c=xe(a[0],"color-token").color,f=a[1];return{type:"color",mode:s.mode,color:c,body:Ze(f)}},htmlBuilder:Ts,mathmlBuilder:Cs}),ne({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(n,a){var s=n.parser,c=n.breakOnTokenText,f=xe(a[0],"color-token").color;s.gullet.macros.set("\\current@color",f);var g=s.parseExpression(!0,c);return{type:"color",mode:s.mode,color:f,body:g}},htmlBuilder:Ts,mathmlBuilder:Cs}),ne({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(n,a,s){var c=n.parser,f=c.gullet.future().text==="["?c.parseSizeGroup(!0):null,g=!c.settings.displayMode||!c.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:c.mode,newLine:g,size:f&&xe(f,"size").value}},htmlBuilder:function(n,a){var s=R.makeSpan(["mspace"],[],a);return n.newLine&&(s.classes.push("newline"),n.size&&(s.style.marginTop=Q($e(n.size,a)))),s},mathmlBuilder:function(n,a){var s=new K.MathNode("mspace");return n.newLine&&(s.setAttribute("linebreak","newline"),n.size&&s.setAttribute("height",Q($e(n.size,a)))),s}});var Y0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},zs=function(n){var a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new l("Expected a control sequence",n);return a},_1=function(n){var a=n.gullet.popToken();return a.text==="="&&(a=n.gullet.popToken(),a.text===" "&&(a=n.gullet.popToken())),a},Bs=function(n,a,s,c){var f=n.gullet.macros.get(s.text);f==null&&(s.noexpand=!0,f={tokens:[s],numArgs:0,unexpandable:!n.gullet.isExpandable(s.text)}),n.gullet.macros.set(a,f,c)};ne({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(n){var a=n.parser,s=n.funcName;a.consumeSpaces();var c=a.fetch();if(Y0[c.text])return(s==="\\global"||s==="\\\\globallong")&&(c.text=Y0[c.text]),xe(a.parseFunction(),"internal");throw new l("Invalid token after macro prefix",c)}}),ne({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(n){var a=n.parser,s=n.funcName,c=a.gullet.popToken(),f=c.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(f))throw new l("Expected a control sequence",c);for(var g=0,y,k=[[]];a.gullet.future().text!=="{";)if(c=a.gullet.popToken(),c.text==="#"){if(a.gullet.future().text==="{"){y=a.gullet.future(),k[g].push("{");break}if(c=a.gullet.popToken(),!/^[1-9]$/.test(c.text))throw new l('Invalid argument number "'+c.text+'"');if(parseInt(c.text)!==g+1)throw new l('Argument number "'+c.text+'" out of order');g++,k.push([])}else{if(c.text==="EOF")throw new l("Expected a macro definition");k[g].push(c.text)}var S=a.gullet.consumeArg(),z=S.tokens;return y&&z.unshift(y),(s==="\\edef"||s==="\\xdef")&&(z=a.gullet.expandTokens(z),z.reverse()),a.gullet.macros.set(f,{tokens:z,numArgs:g,delimiters:k},s===Y0[s]),{type:"internal",mode:a.mode}}}),ne({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(n){var a=n.parser,s=n.funcName,c=zs(a.gullet.popToken());a.gullet.consumeSpaces();var f=_1(a);return Bs(a,c,f,s==="\\\\globallet"),{type:"internal",mode:a.mode}}}),ne({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(n){var a=n.parser,s=n.funcName,c=zs(a.gullet.popToken()),f=a.gullet.popToken(),g=a.gullet.popToken();return Bs(a,c,g,s==="\\\\globalfuture"),a.gullet.pushToken(g),a.gullet.pushToken(f),{type:"internal",mode:a.mode}}});var Tn=function(n,a,s){var c=Xe.math[n]&&Xe.math[n].replace,f=ur(c||n,a,s);if(!f)throw new Error("Unsupported symbol "+n+" and font size "+a+".");return f},W0=function(n,a,s,c){var f=s.havingBaseStyle(a),g=R.makeSpan(c.concat(f.sizingClasses(s)),[n],s),y=f.sizeMultiplier/s.sizeMultiplier;return g.height*=y,g.depth*=y,g.maxFontSize=f.sizeMultiplier,g},Ns=function(n,a,s){var c=a.havingBaseStyle(s),f=(1-a.sizeMultiplier/c.sizeMultiplier)*a.fontMetrics().axisHeight;n.classes.push("delimcenter"),n.style.top=Q(f),n.height-=f,n.depth+=f},b1=function(n,a,s,c,f,g){var y=R.makeSymbol(n,"Main-Regular",f,c),k=W0(y,a,c,g);return s&&Ns(k,c,a),k},y1=function(n,a,s,c){return R.makeSymbol(n,"Size"+a+"-Regular",s,c)},Ds=function(n,a,s,c,f,g){var y=y1(n,a,f,c),k=W0(R.makeSpan(["delimsizing","size"+a],[y],c),V.TEXT,c,g);return s&&Ns(k,c,V.TEXT),k},K0=function(n,a,s){var c;a==="Size1-Regular"?c="delim-size1":c="delim-size4";var f=R.makeSpan(["delimsizinginner",c],[R.makeSpan([],[R.makeSymbol(n,a,s)])]);return{type:"elem",elem:f}},Z0=function(n,a,s){var c=pe["Size4-Regular"][n.charCodeAt(0)]?pe["Size4-Regular"][n.charCodeAt(0)][4]:pe["Size1-Regular"][n.charCodeAt(0)][4],f=new fr("inner",oi(n,Math.round(1e3*a))),g=new Jt([f],{width:Q(c),height:Q(a),style:"width:"+Q(c),viewBox:"0 0 "+1e3*c+" "+Math.round(1e3*a),preserveAspectRatio:"xMinYMin"}),y=R.makeSvgSpan([],[g],s);return y.height=a,y.style.height=Q(a),y.style.width=Q(c),{type:"elem",elem:y}},J0=.008,ki={type:"kern",size:-1*J0},w1=["|","\\lvert","\\rvert","\\vert"],x1=["\\|","\\lVert","\\rVert","\\Vert"],Os=function(n,a,s,c,f,g){var y,k,S,z,I="",$=0;y=S=z=n,k=null;var H="Size1-Regular";n==="\\uparrow"?S=z="⏐":n==="\\Uparrow"?S=z="‖":n==="\\downarrow"?y=S="⏐":n==="\\Downarrow"?y=S="‖":n==="\\updownarrow"?(y="\\uparrow",S="⏐",z="\\downarrow"):n==="\\Updownarrow"?(y="\\Uparrow",S="‖",z="\\Downarrow"):D.contains(w1,n)?(S="∣",I="vert",$=333):D.contains(x1,n)?(S="∥",I="doublevert",$=556):n==="["||n==="\\lbrack"?(y="⎡",S="⎢",z="⎣",H="Size4-Regular",I="lbrack",$=667):n==="]"||n==="\\rbrack"?(y="⎤",S="⎥",z="⎦",H="Size4-Regular",I="rbrack",$=667):n==="\\lfloor"||n==="⌊"?(S=y="⎢",z="⎣",H="Size4-Regular",I="lfloor",$=667):n==="\\lceil"||n==="⌈"?(y="⎡",S=z="⎢",H="Size4-Regular",I="lceil",$=667):n==="\\rfloor"||n==="⌋"?(S=y="⎥",z="⎦",H="Size4-Regular",I="rfloor",$=667):n==="\\rceil"||n==="⌉"?(y="⎤",S=z="⎥",H="Size4-Regular",I="rceil",$=667):n==="("||n==="\\lparen"?(y="⎛",S="⎜",z="⎝",H="Size4-Regular",I="lparen",$=875):n===")"||n==="\\rparen"?(y="⎞",S="⎟",z="⎠",H="Size4-Regular",I="rparen",$=875):n==="\\{"||n==="\\lbrace"?(y="⎧",k="⎨",z="⎩",S="⎪",H="Size4-Regular"):n==="\\}"||n==="\\rbrace"?(y="⎫",k="⎬",z="⎭",S="⎪",H="Size4-Regular"):n==="\\lgroup"||n==="⟮"?(y="⎧",z="⎩",S="⎪",H="Size4-Regular"):n==="\\rgroup"||n==="⟯"?(y="⎫",z="⎭",S="⎪",H="Size4-Regular"):n==="\\lmoustache"||n==="⎰"?(y="⎧",z="⎭",S="⎪",H="Size4-Regular"):(n==="\\rmoustache"||n==="⎱")&&(y="⎫",z="⎩",S="⎪",H="Size4-Regular");var j=Tn(y,H,f),J=j.height+j.depth,te=Tn(S,H,f),oe=te.height+te.depth,he=Tn(z,H,f),me=he.height+he.depth,Te=0,ke=1;if(k!==null){var De=Tn(k,H,f);Te=De.height+De.depth,ke=2}var Ee=J+me+Te,Ie=Math.max(0,Math.ceil((a-Ee)/(ke*oe))),je=Ee+Ie*ke*oe,ot=c.fontMetrics().axisHeight;s&&(ot*=c.sizeMultiplier);var At=je/2-ot,We=[];if(I.length>0){var Rr=je-J-me,zt=Math.round(je*1e3),ft=D0(I,Math.round(Rr*1e3)),_r=new fr(I,ft),rn=($/1e3).toFixed(3)+"em",nn=(zt/1e3).toFixed(3)+"em",va=new Jt([_r],{width:rn,height:nn,viewBox:"0 0 "+$+" "+zt}),br=R.makeSvgSpan([],[va],c);br.height=zt/1e3,br.style.width=rn,br.style.height=nn,We.push({type:"elem",elem:br})}else{if(We.push(K0(z,H,f)),We.push(ki),k===null){var yr=je-J-me+2*J0;We.push(Z0(S,yr,c))}else{var Bt=(je-J-me-Te)/2+2*J0;We.push(Z0(S,Bt,c)),We.push(ki),We.push(K0(k,H,f)),We.push(ki),We.push(Z0(S,Bt,c))}We.push(ki),We.push(K0(y,H,f))}var Bn=c.havingBaseStyle(V.TEXT),_a=R.makeVList({positionType:"bottom",positionData:At,children:We},Bn);return W0(R.makeSpan(["delimsizing","mult"],[_a],Bn),V.TEXT,c,g)},Q0=80,ea=.08,ta=function(n,a,s,c,f){var g=Qr(n,c,s),y=new fr(n,g),k=new Jt([y],{width:"400em",height:Q(a),viewBox:"0 0 400000 "+s,preserveAspectRatio:"xMinYMin slice"});return R.makeSvgSpan(["hide-tail"],[k],f)},k1=function(n,a){var s=a.havingBaseSizing(),c=Ls("\\surd",n*s.sizeMultiplier,Fs,s),f=s.sizeMultiplier,g=Math.max(0,a.minRuleThickness-a.fontMetrics().sqrtRuleThickness),y,k=0,S=0,z=0,I;return c.type==="small"?(z=1e3+1e3*g+Q0,n<1?f=1:n<1.4&&(f=.7),k=(1+g+ea)/f,S=(1+g)/f,y=ta("sqrtMain",k,z,g,a),y.style.minWidth="0.853em",I=.833/f):c.type==="large"?(z=(1e3+Q0)*Cn[c.size],S=(Cn[c.size]+g)/f,k=(Cn[c.size]+g+ea)/f,y=ta("sqrtSize"+c.size,k,z,g,a),y.style.minWidth="1.02em",I=1/f):(k=n+g+ea,S=n+g,z=Math.floor(1e3*n+g)+Q0,y=ta("sqrtTall",k,z,g,a),y.style.minWidth="0.742em",I=1.056),y.height=S,y.style.height=Q(k),{span:y,advanceWidth:I,ruleWidth:(a.fontMetrics().sqrtRuleThickness+g)*f}},Is=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],A1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Rs=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Cn=[0,1.2,1.8,2.4,3],S1=function(n,a,s,c,f){if(n==="<"||n==="\\lt"||n==="⟨"?n="\\langle":(n===">"||n==="\\gt"||n==="⟩")&&(n="\\rangle"),D.contains(Is,n)||D.contains(Rs,n))return Ds(n,a,!1,s,c,f);if(D.contains(A1,n))return Os(n,Cn[a],!1,s,c,f);throw new l("Illegal delimiter: '"+n+"'")},M1=[{type:"small",style:V.SCRIPTSCRIPT},{type:"small",style:V.SCRIPT},{type:"small",style:V.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],E1=[{type:"small",style:V.SCRIPTSCRIPT},{type:"small",style:V.SCRIPT},{type:"small",style:V.TEXT},{type:"stack"}],Fs=[{type:"small",style:V.SCRIPTSCRIPT},{type:"small",style:V.SCRIPT},{type:"small",style:V.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],T1=function(n){if(n.type==="small")return"Main-Regular";if(n.type==="large")return"Size"+n.size+"-Regular";if(n.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+n.type+"' here.")},Ls=function(n,a,s,c){for(var f=Math.min(2,3-c.style.size),g=f;ga)return s[g]}return s[s.length-1]},qs=function(n,a,s,c,f,g){n==="<"||n==="\\lt"||n==="⟨"?n="\\langle":(n===">"||n==="\\gt"||n==="⟩")&&(n="\\rangle");var y;D.contains(Rs,n)?y=M1:D.contains(Is,n)?y=Fs:y=E1;var k=Ls(n,a,y,c);return k.type==="small"?b1(n,k.style,s,c,f,g):k.type==="large"?Ds(n,k.size,s,c,f,g):Os(n,a,s,c,f,g)},C1=function(n,a,s,c,f,g){var y=c.fontMetrics().axisHeight*c.sizeMultiplier,k=901,S=5/c.fontMetrics().ptPerEm,z=Math.max(a-y,s+y),I=Math.max(z/500*k,2*z-S);return qs(n,I,!0,c,f,g)},nr={sqrtImage:k1,sizedDelim:S1,sizeToMaxHeight:Cn,customSizedDelim:qs,leftRightDelim:C1},Ps={"\\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}},z1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Ai(m,n){var a=yi(m);if(a&&D.contains(z1,a.text))return a;throw a?new l("Invalid delimiter '"+a.text+"' after '"+n.funcName+"'",m):new l("Invalid delimiter type '"+m.type+"'",m)}ne({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:function(n,a){var s=Ai(a[0],n);return{type:"delimsizing",mode:n.parser.mode,size:Ps[n.funcName].size,mclass:Ps[n.funcName].mclass,delim:s.text}},htmlBuilder:function(n,a){return n.delim==="."?R.makeSpan([n.mclass]):nr.sizedDelim(n.delim,n.size,a,n.mode,[n.mclass])},mathmlBuilder:function(n){var a=[];n.delim!=="."&&a.push(Ct(n.delim,n.mode));var s=new K.MathNode("mo",a);n.mclass==="mopen"||n.mclass==="mclose"?s.setAttribute("fence","true"):s.setAttribute("fence","false"),s.setAttribute("stretchy","true");var c=Q(nr.sizeToMaxHeight[n.size]);return s.setAttribute("minsize",c),s.setAttribute("maxsize",c),s}});function Hs(m){if(!m.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ne({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(n,a){var s=n.parser.gullet.macros.get("\\current@color");if(s&&typeof s!="string")throw new l("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:n.parser.mode,delim:Ai(a[0],n).text,color:s}}}),ne({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(n,a){var s=Ai(a[0],n),c=n.parser;++c.leftrightDepth;var f=c.parseExpression(!1);--c.leftrightDepth,c.expect("\\right",!1);var g=xe(c.parseFunction(),"leftright-right");return{type:"leftright",mode:c.mode,body:f,left:s.text,right:g.delim,rightColor:g.color}},htmlBuilder:function(n,a){Hs(n);for(var s=nt(n.body,a,!0,["mopen","mclose"]),c=0,f=0,g=!1,y=0;y-1?"mpadded":"menclose",[qe(n.body,a)]);switch(n.label){case"\\cancel":c.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":c.setAttribute("notation","downdiagonalstrike");break;case"\\phase":c.setAttribute("notation","phasorangle");break;case"\\sout":c.setAttribute("notation","horizontalstrike");break;case"\\fbox":c.setAttribute("notation","box");break;case"\\angl":c.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(s=a.fontMetrics().fboxsep*a.fontMetrics().ptPerEm,c.setAttribute("width","+"+2*s+"pt"),c.setAttribute("height","+"+2*s+"pt"),c.setAttribute("lspace",s+"pt"),c.setAttribute("voffset",s+"pt"),n.label==="\\fcolorbox"){var f=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness);c.setAttribute("style","border: "+f+"em solid "+String(n.borderColor))}break;case"\\xcancel":c.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return n.backgroundColor&&c.setAttribute("mathbackground",n.backgroundColor),c};ne({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(n,a,s){var c=n.parser,f=n.funcName,g=xe(a[0],"color-token").color,y=a[1];return{type:"enclose",mode:c.mode,label:f,backgroundColor:g,body:y}},htmlBuilder:ra,mathmlBuilder:na}),ne({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(n,a,s){var c=n.parser,f=n.funcName,g=xe(a[0],"color-token").color,y=xe(a[1],"color-token").color,k=a[2];return{type:"enclose",mode:c.mode,label:f,backgroundColor:y,borderColor:g,body:k}},htmlBuilder:ra,mathmlBuilder:na}),ne({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(n,a){var s=n.parser;return{type:"enclose",mode:s.mode,label:"\\fbox",body:a[0]}}}),ne({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];return{type:"enclose",mode:s.mode,label:c,body:f}},htmlBuilder:ra,mathmlBuilder:na}),ne({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(n,a){var s=n.parser;return{type:"enclose",mode:s.mode,label:"\\angl",body:a[0]}}});var $s={};function jt(m){for(var n=m.type,a=m.names,s=m.props,c=m.handler,f=m.htmlBuilder,g=m.mathmlBuilder,y={type:n,numArgs:s.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:c},k=0;k1||!z)&&J.pop(),oe.length0&&(me+=.25),S.push({pos:me,isDashed:Ci[zi]})}for(Te(g[0]),s=0;s0&&(At+=he,Ee=y)){var on=void 0;(c>0||n.hskipBeforeAndAfter)&&(on=D.deflt(Bt.pregap,$),on!==0&&(ft=R.makeSpan(["arraycolsep"],[]),ft.style.width=Q(on),zt.push(ft)));var sn=[];for(s=0;s0){for(var ip=R.makeLineSpan("hline",a,z),ap=R.makeLineSpan("hdashline",a,z),ba=[{type:"elem",elem:k,shift:0}];S.length>0;){var Ml=S.pop(),El=Ml.pos-We;Ml.isDashed?ba.push({type:"elem",elem:ap,shift:El}):ba.push({type:"elem",elem:ip,shift:El})}k=R.makeVList({positionType:"individualShift",children:ba},a)}if(rn.length===0)return R.makeSpan(["mord"],[k],a);var ya=R.makeVList({positionType:"individualShift",children:rn},a);return ya=R.makeSpan(["tag"],[ya],a),R.makeFragment([k,ya])},B1={c:"center ",l:"left ",r:"right "},Gt=function(n,a){for(var s=[],c=new K.MathNode("mtd",[],["mtr-glue"]),f=new K.MathNode("mtd",[],["mml-eqn-num"]),g=0;g0){var j=n.cols,J="",te=!1,oe=0,he=j.length;j[0].type==="separator"&&($+="top ",oe=1),j[j.length-1].type==="separator"&&($+="bottom ",he-=1);for(var me=oe;me0?"left ":"",$+=Ie[Ie.length-1].length>0?"right ":"";for(var je=1;je-1?"alignat":"align",f=n.envName==="split",g=gr(n.parser,{cols:s,addJot:!0,autoTag:f?void 0:ia(n.envName),emptySingleRow:!0,colSeparationType:c,maxNumCols:f?2:void 0,leqno:n.parser.settings.leqno},"display"),y,k=0,S={type:"ordgroup",mode:n.mode,body:[]};if(a[0]&&a[0].type==="ordgroup"){for(var z="",I=0;I0&&H&&(te=1),s[j]={type:"align",align:J,pregap:te,postgap:0}}return g.colSeparationType=H?"align":"alignat",g};jt({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(n,a){var s=yi(a[0]),c=s?[a[0]]:xe(a[0],"ordgroup").body,f=c.map(function(y){var k=V0(y),S=k.text;if("lcr".indexOf(S)!==-1)return{type:"align",align:S};if(S==="|")return{type:"separator",separator:"|"};if(S===":")return{type:"separator",separator:":"};throw new l("Unknown column alignment: "+S,y)}),g={cols:f,hskipBeforeAndAfter:!0,maxNumCols:f.length};return gr(n.parser,g,aa(n.envName))},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(n){var a={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[n.envName.replace("*","")],s="c",c={hskipBeforeAndAfter:!1,cols:[{type:"align",align:s}]};if(n.envName.charAt(n.envName.length-1)==="*"){var f=n.parser;if(f.consumeSpaces(),f.fetch().text==="["){if(f.consume(),f.consumeSpaces(),s=f.fetch().text,"lcr".indexOf(s)===-1)throw new l("Expected l or c or r",f.nextToken);f.consume(),f.consumeSpaces(),f.expect("]"),f.consume(),c.cols=[{type:"align",align:s}]}}var g=gr(n.parser,c,aa(n.envName)),y=Math.max.apply(Math,[0].concat(g.body.map(function(k){return k.length})));return g.cols=new Array(y).fill({type:"align",align:s}),a?{type:"leftright",mode:n.mode,body:[g],left:a[0],right:a[1],rightColor:void 0}:g},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(n){var a={arraystretch:.5},s=gr(n.parser,a,"script");return s.colSeparationType="small",s},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["subarray"],props:{numArgs:1},handler:function(n,a){var s=yi(a[0]),c=s?[a[0]]:xe(a[0],"ordgroup").body,f=c.map(function(y){var k=V0(y),S=k.text;if("lc".indexOf(S)!==-1)return{type:"align",align:S};throw new l("Unknown column alignment: "+S,y)});if(f.length>1)throw new l("{subarray} can contain only one column");var g={cols:f,hskipBeforeAndAfter:!1,arraystretch:.5};if(g=gr(n.parser,g,"script"),g.body.length>0&&g.body[0].length>1)throw new l("{subarray} can contain only one column");return g},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(n){var a={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},s=gr(n.parser,a,aa(n.envName));return{type:"leftright",mode:n.mode,body:[s],left:n.envName.indexOf("r")>-1?".":"\\{",right:n.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Gs,htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(n){D.contains(["gather","gather*"],n.envName)&&Si(n);var a={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ia(n.envName),emptySingleRow:!0,leqno:n.parser.settings.leqno};return gr(n.parser,a,"display")},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Gs,htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(n){Si(n);var a={autoTag:ia(n.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:n.parser.settings.leqno};return gr(n.parser,a,"display")},htmlBuilder:Ut,mathmlBuilder:Gt}),jt({type:"array",names:["CD"],props:{numArgs:0},handler:function(n){return Si(n),v1(n.parser)},htmlBuilder:Ut,mathmlBuilder:Gt}),A("\\nonumber","\\gdef\\@eqnsw{0}"),A("\\notag","\\nonumber"),ne({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(n,a){throw new l(n.funcName+" valid only within array environment")}});var N1=$s,Vs=N1;ne({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];if(f.type!=="ordgroup")throw new l("Invalid environment name",f);for(var g="",y=0;y=V.SCRIPT.id?s.text():V.DISPLAY:n==="text"&&s.size===V.DISPLAY.size?s=V.TEXT:n==="script"?s=V.SCRIPT:n==="scriptscript"&&(s=V.SCRIPTSCRIPT),s},oa=function(n,a){var s=Ks(n.size,a.style),c=s.fracNum(),f=s.fracDen(),g;g=a.havingStyle(c);var y=Me(n.numer,g,a);if(n.continued){var k=8.5/a.fontMetrics().ptPerEm,S=3.5/a.fontMetrics().ptPerEm;y.height=y.height0?J=3*H:J=7*H,te=a.fontMetrics().denom1):($>0?(j=a.fontMetrics().num2,J=H):(j=a.fontMetrics().num3,J=3*H),te=a.fontMetrics().denom2);var oe;if(I){var me=a.fontMetrics().axisHeight;j-y.depth-(me+.5*$)0&&(a=n,a=a==="."?null:a),a};ne({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(n,a){var s=n.parser,c=a[4],f=a[5],g=_i(a[0]),y=g.type==="atom"&&g.family==="open"?Js(g.text):null,k=_i(a[1]),S=k.type==="atom"&&k.family==="close"?Js(k.text):null,z=xe(a[2],"size"),I,$=null;z.isBlank?I=!0:($=z.value,I=$.number>0);var H="auto",j=a[3];if(j.type==="ordgroup"){if(j.body.length>0){var J=xe(j.body[0],"textord");H=Zs[Number(J.text)]}}else j=xe(j,"textord"),H=Zs[Number(j.text)];return{type:"genfrac",mode:s.mode,numer:c,denom:f,continued:!1,hasBarLine:I,barSize:$,leftDelim:y,rightDelim:S,size:H}},htmlBuilder:oa,mathmlBuilder:sa}),ne({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(n,a){var s=n.parser;n.funcName;var c=n.token;return{type:"infix",mode:s.mode,replaceWith:"\\\\abovefrac",size:xe(a[0],"size").value,token:c}}}),ne({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(n,a){var s=n.parser;n.funcName;var c=a[0],f=O(xe(a[1],"infix").size),g=a[2],y=f.number>0;return{type:"genfrac",mode:s.mode,numer:c,denom:g,continued:!1,hasBarLine:y,barSize:f,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:oa,mathmlBuilder:sa});var Qs=function(n,a){var s=a.style,c,f;n.type==="supsub"?(c=n.sup?Me(n.sup,a.havingStyle(s.sup()),a):Me(n.sub,a.havingStyle(s.sub()),a),f=xe(n.base,"horizBrace")):f=xe(n,"horizBrace");var g=Me(f.base,a.havingBaseStyle(V.DISPLAY)),y=rr.svgSpan(f,a),k;if(f.isOver?(k=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:g},{type:"kern",size:.1},{type:"elem",elem:y}]},a),k.children[0].children[0].children[1].classes.push("svg-align")):(k=R.makeVList({positionType:"bottom",positionData:g.depth+.1+y.height,children:[{type:"elem",elem:y},{type:"kern",size:.1},{type:"elem",elem:g}]},a),k.children[0].children[0].children[0].classes.push("svg-align")),c){var S=R.makeSpan(["mord",f.isOver?"mover":"munder"],[k],a);f.isOver?k=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S},{type:"kern",size:.2},{type:"elem",elem:c}]},a):k=R.makeVList({positionType:"bottom",positionData:S.depth+.2+c.height+c.depth,children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:S}]},a)}return R.makeSpan(["mord",f.isOver?"mover":"munder"],[k],a)},D1=function(n,a){var s=rr.mathMLnode(n.label);return new K.MathNode(n.isOver?"mover":"munder",[qe(n.base,a),s])};ne({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(n,a){var s=n.parser,c=n.funcName;return{type:"horizBrace",mode:s.mode,label:c,isOver:/^\\over/.test(c),base:a[0]}},htmlBuilder:Qs,mathmlBuilder:D1}),ne({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(n,a){var s=n.parser,c=a[1],f=xe(a[0],"url").url;return s.settings.isTrusted({command:"\\href",url:f})?{type:"href",mode:s.mode,href:f,body:Ze(c)}:s.formatUnsupportedCmd("\\href")},htmlBuilder:function(n,a){var s=nt(n.body,a,!1);return R.makeAnchor(n.href,[],s,a)},mathmlBuilder:function(n,a){var s=dr(n.body,a);return s instanceof Tt||(s=new Tt("mrow",[s])),s.setAttribute("href",n.href),s}}),ne({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(n,a){var s=n.parser,c=xe(a[0],"url").url;if(!s.settings.isTrusted({command:"\\url",url:c}))return s.formatUnsupportedCmd("\\url");for(var f=[],g=0;g0&&(c=$e(n.totalheight,a)-s);var f=0;n.width.number>0&&(f=$e(n.width,a));var g={height:Q(s+c)};f>0&&(g.width=Q(f)),c>0&&(g.verticalAlign=Q(-c));var y=new Nf(n.src,n.alt,g);return y.height=s,y.depth=c,y},mathmlBuilder:function(n,a){var s=new K.MathNode("mglyph",[]);s.setAttribute("alt",n.alt);var c=$e(n.height,a),f=0;if(n.totalheight.number>0&&(f=$e(n.totalheight,a)-c,s.setAttribute("valign",Q(-f))),s.setAttribute("height",Q(c+f)),n.width.number>0){var g=$e(n.width,a);s.setAttribute("width",Q(g))}return s.setAttribute("src",n.src),s}}),ne({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(n,a){var s=n.parser,c=n.funcName,f=xe(a[0],"size");if(s.settings.strict){var g=c[1]==="m",y=f.value.unit==="mu";g?(y||s.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+c+" supports only mu units, "+("not "+f.value.unit+" units")),s.mode!=="math"&&s.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+c+" works only in math mode")):y&&s.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+c+" doesn't support mu units")}return{type:"kern",mode:s.mode,dimension:f.value}},htmlBuilder:function(n,a){return R.makeGlue(n.dimension,a)},mathmlBuilder:function(n,a){var s=$e(n.dimension,a);return new K.SpaceNode(s)}}),ne({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];return{type:"lap",mode:s.mode,alignment:c.slice(5),body:f}},htmlBuilder:function(n,a){var s;n.alignment==="clap"?(s=R.makeSpan([],[Me(n.body,a)]),s=R.makeSpan(["inner"],[s],a)):s=R.makeSpan(["inner"],[Me(n.body,a)]);var c=R.makeSpan(["fix"],[]),f=R.makeSpan([n.alignment],[s,c],a),g=R.makeSpan(["strut"]);return g.style.height=Q(f.height+f.depth),f.depth&&(g.style.verticalAlign=Q(-f.depth)),f.children.unshift(g),f=R.makeSpan(["thinbox"],[f],a),R.makeSpan(["mord","vbox"],[f],a)},mathmlBuilder:function(n,a){var s=new K.MathNode("mpadded",[qe(n.body,a)]);if(n.alignment!=="rlap"){var c=n.alignment==="llap"?"-1":"-0.5";s.setAttribute("lspace",c+"width")}return s.setAttribute("width","0px"),s}}),ne({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(n,a){var s=n.funcName,c=n.parser,f=c.mode;c.switchMode("math");var g=s==="\\("?"\\)":"$",y=c.parseExpression(!1,g);return c.expect(g),c.switchMode(f),{type:"styling",mode:c.mode,style:"text",body:y}}}),ne({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(n,a){throw new l("Mismatched "+n.funcName)}});var el=function(n,a){switch(a.style.size){case V.DISPLAY.size:return n.display;case V.TEXT.size:return n.text;case V.SCRIPT.size:return n.script;case V.SCRIPTSCRIPT.size:return n.scriptscript;default:return n.text}};ne({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(n,a){var s=n.parser;return{type:"mathchoice",mode:s.mode,display:Ze(a[0]),text:Ze(a[1]),script:Ze(a[2]),scriptscript:Ze(a[3])}},htmlBuilder:function(n,a){var s=el(n,a),c=nt(s,a,!1);return R.makeFragment(c)},mathmlBuilder:function(n,a){var s=el(n,a);return dr(s,a)}});var tl=function(n,a,s,c,f,g,y){n=R.makeSpan([],[n]);var k=s&&D.isCharacterBox(s),S,z;if(a){var I=Me(a,c.havingStyle(f.sup()),c);z={elem:I,kern:Math.max(c.fontMetrics().bigOpSpacing1,c.fontMetrics().bigOpSpacing3-I.depth)}}if(s){var $=Me(s,c.havingStyle(f.sub()),c);S={elem:$,kern:Math.max(c.fontMetrics().bigOpSpacing2,c.fontMetrics().bigOpSpacing4-$.height)}}var H;if(z&&S){var j=c.fontMetrics().bigOpSpacing5+S.elem.height+S.elem.depth+S.kern+n.depth+y;H=R.makeVList({positionType:"bottom",positionData:j,children:[{type:"kern",size:c.fontMetrics().bigOpSpacing5},{type:"elem",elem:S.elem,marginLeft:Q(-g)},{type:"kern",size:S.kern},{type:"elem",elem:n},{type:"kern",size:z.kern},{type:"elem",elem:z.elem,marginLeft:Q(g)},{type:"kern",size:c.fontMetrics().bigOpSpacing5}]},c)}else if(S){var J=n.height-y;H=R.makeVList({positionType:"top",positionData:J,children:[{type:"kern",size:c.fontMetrics().bigOpSpacing5},{type:"elem",elem:S.elem,marginLeft:Q(-g)},{type:"kern",size:S.kern},{type:"elem",elem:n}]},c)}else if(z){var te=n.depth+y;H=R.makeVList({positionType:"bottom",positionData:te,children:[{type:"elem",elem:n},{type:"kern",size:z.kern},{type:"elem",elem:z.elem,marginLeft:Q(g)},{type:"kern",size:c.fontMetrics().bigOpSpacing5}]},c)}else return n;var oe=[H];if(S&&g!==0&&!k){var he=R.makeSpan(["mspace"],[],c);he.style.marginRight=Q(g),oe.unshift(he)}return R.makeSpan(["mop","op-limits"],oe,c)},rl=["\\smallint"],tn=function(n,a){var s,c,f=!1,g;n.type==="supsub"?(s=n.sup,c=n.sub,g=xe(n.base,"op"),f=!0):g=xe(n,"op");var y=a.style,k=!1;y.size===V.DISPLAY.size&&g.symbol&&!D.contains(rl,g.name)&&(k=!0);var S;if(g.symbol){var z=k?"Size2-Regular":"Size1-Regular",I="";if((g.name==="\\oiint"||g.name==="\\oiiint")&&(I=g.name.slice(1),g.name=I==="oiint"?"\\iint":"\\iiint"),S=R.makeSymbol(g.name,z,"math",a,["mop","op-symbol",k?"large-op":"small-op"]),I.length>0){var $=S.italic,H=R.staticSvg(I+"Size"+(k?"2":"1"),a);S=R.makeVList({positionType:"individualShift",children:[{type:"elem",elem:S,shift:0},{type:"elem",elem:H,shift:k?.08:0}]},a),g.name="\\"+I,S.classes.unshift("mop"),S.italic=$}}else if(g.body){var j=nt(g.body,a,!0);j.length===1&&j[0]instanceof Et?(S=j[0],S.classes[0]="mop"):S=R.makeSpan(["mop"],j,a)}else{for(var J=[],te=1;te0){for(var k=g.body.map(function($){var H=$.text;return typeof H=="string"?{type:"textord",mode:$.mode,text:H}:$}),S=nt(k,a.withFont("mathrm"),!0),z=0;z=0?k.setAttribute("height",Q(f)):(k.setAttribute("height",Q(f)),k.setAttribute("depth",Q(-f))),k.setAttribute("voffset",Q(f)),k}});function il(m,n,a){for(var s=nt(m,n,!1),c=n.sizeMultiplier/a.sizeMultiplier,f=0;fs.height+s.depth+y&&(y=(y+H-s.height-s.depth)/2);var j=z.height-s.height-y-I;s.style.paddingLeft=Q($);var J=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:-(s.height+j)},{type:"elem",elem:z},{type:"kern",size:I}]},a);if(n.index){var te=a.havingStyle(V.SCRIPTSCRIPT),oe=Me(n.index,te,a),he=.6*(J.height-J.depth),me=R.makeVList({positionType:"shift",positionData:-he,children:[{type:"elem",elem:oe}]},a),Te=R.makeSpan(["root"],[me]);return R.makeSpan(["mord","sqrt"],[Te,J],a)}else return R.makeSpan(["mord","sqrt"],[J],a)},mathmlBuilder:function(n,a){var s=n.body,c=n.index;return c?new K.MathNode("mroot",[qe(s,a),qe(c,a)]):new K.MathNode("msqrt",[qe(s,a)])}});var ol={display:V.DISPLAY,text:V.TEXT,script:V.SCRIPT,scriptscript:V.SCRIPTSCRIPT};ne({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(n,a){var s=n.breakOnTokenText,c=n.funcName,f=n.parser,g=f.parseExpression(!0,s),y=c.slice(1,c.length-5);return{type:"styling",mode:f.mode,style:y,body:g}},htmlBuilder:function(n,a){var s=ol[n.style],c=a.havingStyle(s).withFont("");return il(n.body,c,a)},mathmlBuilder:function(n,a){var s=ol[n.style],c=a.havingStyle(s),f=gt(n.body,c),g=new K.MathNode("mstyle",f),y={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},k=y[n.style];return g.setAttribute("scriptlevel",k[0]),g.setAttribute("displaystyle",k[1]),g}});var L1=function(n,a){var s=n.base;if(s)if(s.type==="op"){var c=s.limits&&(a.style.size===V.DISPLAY.size||s.alwaysHandleSupSub);return c?tn:null}else if(s.type==="operatorname"){var f=s.alwaysHandleSupSub&&(a.style.size===V.DISPLAY.size||s.limits);return f?nl:null}else{if(s.type==="accent")return D.isCharacterBox(s.base)?X0:null;if(s.type==="horizBrace"){var g=!n.sub;return g===s.isOver?Qs:null}else return null}else return null};Ir({type:"supsub",htmlBuilder:function(n,a){var s=L1(n,a);if(s)return s(n,a);var c=n.base,f=n.sup,g=n.sub,y=Me(c,a),k,S,z=a.fontMetrics(),I=0,$=0,H=c&&D.isCharacterBox(c);if(f){var j=a.havingStyle(a.style.sup());k=Me(f,j,a),H||(I=y.height-j.fontMetrics().supDrop*j.sizeMultiplier/a.sizeMultiplier)}if(g){var J=a.havingStyle(a.style.sub());S=Me(g,J,a),H||($=y.depth+J.fontMetrics().subDrop*J.sizeMultiplier/a.sizeMultiplier)}var te;a.style===V.DISPLAY?te=z.sup1:a.style.cramped?te=z.sup3:te=z.sup2;var oe=a.sizeMultiplier,he=Q(.5/z.ptPerEm/oe),me=null;if(S){var Te=n.base&&n.base.type==="op"&&n.base.name&&(n.base.name==="\\oiint"||n.base.name==="\\oiiint");(y instanceof Et||Te)&&(me=Q(-y.italic))}var ke;if(k&&S){I=Math.max(I,te,k.depth+.25*z.xHeight),$=Math.max($,z.sub2);var De=z.defaultRuleThickness,Ee=4*De;if(I-k.depth-(S.height-$)0&&(I+=Ie,$-=Ie)}var je=[{type:"elem",elem:S,shift:$,marginRight:he,marginLeft:me},{type:"elem",elem:k,shift:-I,marginRight:he}];ke=R.makeVList({positionType:"individualShift",children:je},a)}else if(S){$=Math.max($,z.sub1,S.height-.8*z.xHeight);var ot=[{type:"elem",elem:S,marginLeft:me,marginRight:he}];ke=R.makeVList({positionType:"shift",positionData:$,children:ot},a)}else if(k)I=Math.max(I,te,k.depth+.25*z.xHeight),ke=R.makeVList({positionType:"shift",positionData:-I,children:[{type:"elem",elem:k,marginRight:he}]},a);else throw new Error("supsub must have either sup or sub.");var At=$0(y,"right")||"mord";return R.makeSpan([At],[y,R.makeSpan(["msupsub"],[ke])],a)},mathmlBuilder:function(n,a){var s=!1,c,f;n.base&&n.base.type==="horizBrace"&&(f=!!n.sup,f===n.base.isOver&&(s=!0,c=n.base.isOver)),n.base&&(n.base.type==="op"||n.base.type==="operatorname")&&(n.base.parentIsSupSub=!0);var g=[qe(n.base,a)];n.sub&&g.push(qe(n.sub,a)),n.sup&&g.push(qe(n.sup,a));var y;if(s)y=c?"mover":"munder";else if(n.sub)if(n.sup){var z=n.base;z&&z.type==="op"&&z.limits&&a.style===V.DISPLAY||z&&z.type==="operatorname"&&z.alwaysHandleSupSub&&(a.style===V.DISPLAY||z.limits)?y="munderover":y="msubsup"}else{var S=n.base;S&&S.type==="op"&&S.limits&&(a.style===V.DISPLAY||S.alwaysHandleSupSub)||S&&S.type==="operatorname"&&S.alwaysHandleSupSub&&(S.limits||a.style===V.DISPLAY)?y="munder":y="msub"}else{var k=n.base;k&&k.type==="op"&&k.limits&&(a.style===V.DISPLAY||k.alwaysHandleSupSub)||k&&k.type==="operatorname"&&k.alwaysHandleSupSub&&(k.limits||a.style===V.DISPLAY)?y="mover":y="msup"}return new K.MathNode(y,g)}}),Ir({type:"atom",htmlBuilder:function(n,a){return R.mathsym(n.text,n.mode,a,["m"+n.family])},mathmlBuilder:function(n,a){var s=new K.MathNode("mo",[Ct(n.text,n.mode)]);if(n.family==="bin"){var c=G0(n,a);c==="bold-italic"&&s.setAttribute("mathvariant",c)}else n.family==="punct"?s.setAttribute("separator","true"):(n.family==="open"||n.family==="close")&&s.setAttribute("stretchy","false");return s}});var sl={mi:"italic",mn:"normal",mtext:"normal"};Ir({type:"mathord",htmlBuilder:function(n,a){return R.makeOrd(n,a,"mathord")},mathmlBuilder:function(n,a){var s=new K.MathNode("mi",[Ct(n.text,n.mode,a)]),c=G0(n,a)||"italic";return c!==sl[s.type]&&s.setAttribute("mathvariant",c),s}}),Ir({type:"textord",htmlBuilder:function(n,a){return R.makeOrd(n,a,"textord")},mathmlBuilder:function(n,a){var s=Ct(n.text,n.mode,a),c=G0(n,a)||"normal",f;return n.mode==="text"?f=new K.MathNode("mtext",[s]):/[0-9]/.test(n.text)?f=new K.MathNode("mn",[s]):n.text==="\\prime"?f=new K.MathNode("mo",[s]):f=new K.MathNode("mi",[s]),c!==sl[f.type]&&f.setAttribute("mathvariant",c),f}});var ca={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ua={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ir({type:"spacing",htmlBuilder:function(n,a){if(ua.hasOwnProperty(n.text)){var s=ua[n.text].className||"";if(n.mode==="text"){var c=R.makeOrd(n,a,"textord");return c.classes.push(s),c}else return R.makeSpan(["mspace",s],[R.mathsym(n.text,n.mode,a)],a)}else{if(ca.hasOwnProperty(n.text))return R.makeSpan(["mspace",ca[n.text]],[],a);throw new l('Unknown type of space "'+n.text+'"')}},mathmlBuilder:function(n,a){var s;if(ua.hasOwnProperty(n.text))s=new K.MathNode("mtext",[new K.TextNode(" ")]);else{if(ca.hasOwnProperty(n.text))return new K.MathNode("mspace");throw new l('Unknown type of space "'+n.text+'"')}return s}});var ll=function(){var n=new K.MathNode("mtd",[]);return n.setAttribute("width","50%"),n};Ir({type:"tag",mathmlBuilder:function(n,a){var s=new K.MathNode("mtable",[new K.MathNode("mtr",[ll(),new K.MathNode("mtd",[dr(n.body,a)]),ll(),new K.MathNode("mtd",[dr(n.tag,a)])])]);return s.setAttribute("width","100%"),s}});var cl={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ul={"\\textbf":"textbf","\\textmd":"textmd"},q1={"\\textit":"textit","\\textup":"textup"},hl=function(n,a){var s=n.font;return s?cl[s]?a.withTextFontFamily(cl[s]):ul[s]?a.withTextFontWeight(ul[s]):a.withTextFontShape(q1[s]):a};ne({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(n,a){var s=n.parser,c=n.funcName,f=a[0];return{type:"text",mode:s.mode,body:Ze(f),font:c}},htmlBuilder:function(n,a){var s=hl(n,a),c=nt(n.body,s,!0);return R.makeSpan(["mord","text"],c,s)},mathmlBuilder:function(n,a){var s=hl(n,a);return dr(n.body,s)}}),ne({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(n,a){var s=n.parser;return{type:"underline",mode:s.mode,body:a[0]}},htmlBuilder:function(n,a){var s=Me(n.body,a),c=R.makeLineSpan("underline-line",a),f=a.fontMetrics().defaultRuleThickness,g=R.makeVList({positionType:"top",positionData:s.height,children:[{type:"kern",size:f},{type:"elem",elem:c},{type:"kern",size:3*f},{type:"elem",elem:s}]},a);return R.makeSpan(["mord","underline"],[g],a)},mathmlBuilder:function(n,a){var s=new K.MathNode("mo",[new K.TextNode("‾")]);s.setAttribute("stretchy","true");var c=new K.MathNode("munder",[qe(n.body,a),s]);return c.setAttribute("accentunder","true"),c}}),ne({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(n,a){var s=n.parser;return{type:"vcenter",mode:s.mode,body:a[0]}},htmlBuilder:function(n,a){var s=Me(n.body,a),c=a.fontMetrics().axisHeight,f=.5*(s.height-c-(s.depth+c));return R.makeVList({positionType:"shift",positionData:f,children:[{type:"elem",elem:s}]},a)},mathmlBuilder:function(n,a){return new K.MathNode("mpadded",[qe(n.body,a)],["vcenter"])}}),ne({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(n,a,s){throw new l("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(n,a){for(var s=fl(n),c=[],f=a.havingStyle(a.style.text()),g=0;g0;)this.endGroup()},n.has=function(s){return this.current.hasOwnProperty(s)||this.builtins.hasOwnProperty(s)},n.get=function(s){return this.current.hasOwnProperty(s)?this.current[s]:this.builtins[s]},n.set=function(s,c,f){if(f===void 0&&(f=!1),f){for(var g=0;g0&&(this.undefStack[this.undefStack.length-1][s]=c)}else{var y=this.undefStack[this.undefStack.length-1];y&&!y.hasOwnProperty(s)&&(y[s]=this.current[s])}c==null?delete this.current[s]:this.current[s]=c},m}(),Y1=js,W1=Y1;A("\\noexpand",function(m){var n=m.popToken();return m.isExpandable(n.text)&&(n.noexpand=!0,n.treatAsRelax=!0),{tokens:[n],numArgs:0}}),A("\\expandafter",function(m){var n=m.popToken();return m.expandOnce(!0),{tokens:[n],numArgs:0}}),A("\\@firstoftwo",function(m){var n=m.consumeArgs(2);return{tokens:n[0],numArgs:0}}),A("\\@secondoftwo",function(m){var n=m.consumeArgs(2);return{tokens:n[1],numArgs:0}}),A("\\@ifnextchar",function(m){var n=m.consumeArgs(3);m.consumeSpaces();var a=m.future();return n[0].length===1&&n[0][0].text===a.text?{tokens:n[1],numArgs:0}:{tokens:n[2],numArgs:0}}),A("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),A("\\TextOrMath",function(m){var n=m.consumeArgs(2);return m.mode==="text"?{tokens:n[0],numArgs:0}:{tokens:n[1],numArgs:0}});var ml={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};A("\\char",function(m){var n=m.popToken(),a,s="";if(n.text==="'")a=8,n=m.popToken();else if(n.text==='"')a=16,n=m.popToken();else if(n.text==="`")if(n=m.popToken(),n.text[0]==="\\")s=n.text.charCodeAt(1);else{if(n.text==="EOF")throw new l("\\char` missing argument");s=n.text.charCodeAt(0)}else a=10;if(a){if(s=ml[n.text],s==null||s>=a)throw new l("Invalid base-"+a+" digit "+n.text);for(var c;(c=ml[m.future().text])!=null&&c":"\\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"};A("\\dots",function(m){var n="\\dotso",a=m.expandAfterFuture().text;return a in gl?n=gl[a]:(a.slice(0,4)==="\\not"||a in Xe.math&&D.contains(["bin","rel"],Xe.math[a].group))&&(n="\\dotsb"),n});var pa={")":!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};A("\\dotso",function(m){var n=m.future().text;return n in pa?"\\ldots\\,":"\\ldots"}),A("\\dotsc",function(m){var n=m.future().text;return n in pa&&n!==","?"\\ldots\\,":"\\ldots"}),A("\\cdots",function(m){var n=m.future().text;return n in pa?"\\@cdots\\,":"\\@cdots"}),A("\\dotsb","\\cdots"),A("\\dotsm","\\cdots"),A("\\dotsi","\\!\\cdots"),A("\\dotsx","\\ldots\\,"),A("\\DOTSI","\\relax"),A("\\DOTSB","\\relax"),A("\\DOTSX","\\relax"),A("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),A("\\,","\\tmspace+{3mu}{.1667em}"),A("\\thinspace","\\,"),A("\\>","\\mskip{4mu}"),A("\\:","\\tmspace+{4mu}{.2222em}"),A("\\medspace","\\:"),A("\\;","\\tmspace+{5mu}{.2777em}"),A("\\thickspace","\\;"),A("\\!","\\tmspace-{3mu}{.1667em}"),A("\\negthinspace","\\!"),A("\\negmedspace","\\tmspace-{4mu}{.2222em}"),A("\\negthickspace","\\tmspace-{5mu}{.277em}"),A("\\enspace","\\kern.5em "),A("\\enskip","\\hskip.5em\\relax"),A("\\quad","\\hskip1em\\relax"),A("\\qquad","\\hskip2em\\relax"),A("\\tag","\\@ifstar\\tag@literal\\tag@paren"),A("\\tag@paren","\\tag@literal{({#1})}"),A("\\tag@literal",function(m){if(m.macros.get("\\df@tag"))throw new l("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),A("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),A("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),A("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),A("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),A("\\newline","\\\\\\relax"),A("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var vl=Q(pe["Main-Regular"]["T".charCodeAt(0)][1]-.7*pe["Main-Regular"]["A".charCodeAt(0)][1]);A("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+vl+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),A("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+vl+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),A("\\hspace","\\@ifstar\\@hspacer\\@hspace"),A("\\@hspace","\\hskip #1\\relax"),A("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),A("\\ordinarycolon",":"),A("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),A("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),A("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),A("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),A("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),A("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),A("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),A("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),A("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),A("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),A("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),A("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),A("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),A("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),A("∷","\\dblcolon"),A("∹","\\eqcolon"),A("≔","\\coloneqq"),A("≕","\\eqqcolon"),A("⩴","\\Coloneqq"),A("\\ratio","\\vcentcolon"),A("\\coloncolon","\\dblcolon"),A("\\colonequals","\\coloneqq"),A("\\coloncolonequals","\\Coloneqq"),A("\\equalscolon","\\eqqcolon"),A("\\equalscoloncolon","\\Eqqcolon"),A("\\colonminus","\\coloneq"),A("\\coloncolonminus","\\Coloneq"),A("\\minuscolon","\\eqcolon"),A("\\minuscoloncolon","\\Eqcolon"),A("\\coloncolonapprox","\\Colonapprox"),A("\\coloncolonsim","\\Colonsim"),A("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),A("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),A("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),A("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),A("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),A("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),A("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),A("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),A("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),A("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),A("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),A("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),A("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),A("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),A("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),A("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),A("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),A("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),A("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),A("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),A("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),A("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),A("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),A("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),A("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),A("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),A("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),A("\\imath","\\html@mathml{\\@imath}{ı}"),A("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),A("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),A("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),A("⟦","\\llbracket"),A("⟧","\\rrbracket"),A("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),A("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),A("⦃","\\lBrace"),A("⦄","\\rBrace"),A("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),A("⦵","\\minuso"),A("\\darr","\\downarrow"),A("\\dArr","\\Downarrow"),A("\\Darr","\\Downarrow"),A("\\lang","\\langle"),A("\\rang","\\rangle"),A("\\uarr","\\uparrow"),A("\\uArr","\\Uparrow"),A("\\Uarr","\\Uparrow"),A("\\N","\\mathbb{N}"),A("\\R","\\mathbb{R}"),A("\\Z","\\mathbb{Z}"),A("\\alef","\\aleph"),A("\\alefsym","\\aleph"),A("\\Alpha","\\mathrm{A}"),A("\\Beta","\\mathrm{B}"),A("\\bull","\\bullet"),A("\\Chi","\\mathrm{X}"),A("\\clubs","\\clubsuit"),A("\\cnums","\\mathbb{C}"),A("\\Complex","\\mathbb{C}"),A("\\Dagger","\\ddagger"),A("\\diamonds","\\diamondsuit"),A("\\empty","\\emptyset"),A("\\Epsilon","\\mathrm{E}"),A("\\Eta","\\mathrm{H}"),A("\\exist","\\exists"),A("\\harr","\\leftrightarrow"),A("\\hArr","\\Leftrightarrow"),A("\\Harr","\\Leftrightarrow"),A("\\hearts","\\heartsuit"),A("\\image","\\Im"),A("\\infin","\\infty"),A("\\Iota","\\mathrm{I}"),A("\\isin","\\in"),A("\\Kappa","\\mathrm{K}"),A("\\larr","\\leftarrow"),A("\\lArr","\\Leftarrow"),A("\\Larr","\\Leftarrow"),A("\\lrarr","\\leftrightarrow"),A("\\lrArr","\\Leftrightarrow"),A("\\Lrarr","\\Leftrightarrow"),A("\\Mu","\\mathrm{M}"),A("\\natnums","\\mathbb{N}"),A("\\Nu","\\mathrm{N}"),A("\\Omicron","\\mathrm{O}"),A("\\plusmn","\\pm"),A("\\rarr","\\rightarrow"),A("\\rArr","\\Rightarrow"),A("\\Rarr","\\Rightarrow"),A("\\real","\\Re"),A("\\reals","\\mathbb{R}"),A("\\Reals","\\mathbb{R}"),A("\\Rho","\\mathrm{P}"),A("\\sdot","\\cdot"),A("\\sect","\\S"),A("\\spades","\\spadesuit"),A("\\sub","\\subset"),A("\\sube","\\subseteq"),A("\\supe","\\supseteq"),A("\\Tau","\\mathrm{T}"),A("\\thetasym","\\vartheta"),A("\\weierp","\\wp"),A("\\Zeta","\\mathrm{Z}"),A("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),A("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),A("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),A("\\bra","\\mathinner{\\langle{#1}|}"),A("\\ket","\\mathinner{|{#1}\\rangle}"),A("\\braket","\\mathinner{\\langle{#1}\\rangle}"),A("\\Bra","\\left\\langle#1\\right|"),A("\\Ket","\\left|#1\\right\\rangle");var _l=function(n){return function(a){var s=a.consumeArg().tokens,c=a.consumeArg().tokens,f=a.consumeArg().tokens,g=a.consumeArg().tokens,y=a.macros.get("|"),x=a.macros.get("\\|");a.macros.beginGroup();var S=function(H){return function(j){n&&(j.macros.set("|",y),f.length&&j.macros.set("\\|",x));var J=H;if(!H&&f.length){var te=j.future();te.text==="|"&&(j.popToken(),J=!0)}return{tokens:J?f:c,numArgs:0}}};a.macros.set("|",S(!1)),f.length&&a.macros.set("\\|",S(!0));var z=a.consumeArg().tokens,I=a.expandTokens([].concat(g,z,s));return a.macros.endGroup(),{tokens:I.reverse(),numArgs:0}}};A("\\bra@ket",_l(!1)),A("\\bra@set",_l(!0)),A("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),A("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),A("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),A("\\angln","{\\angl n}"),A("\\blue","\\textcolor{##6495ed}{#1}"),A("\\orange","\\textcolor{##ffa500}{#1}"),A("\\pink","\\textcolor{##ff00af}{#1}"),A("\\red","\\textcolor{##df0030}{#1}"),A("\\green","\\textcolor{##28ae7b}{#1}"),A("\\gray","\\textcolor{gray}{#1}"),A("\\purple","\\textcolor{##9d38bd}{#1}"),A("\\blueA","\\textcolor{##ccfaff}{#1}"),A("\\blueB","\\textcolor{##80f6ff}{#1}"),A("\\blueC","\\textcolor{##63d9ea}{#1}"),A("\\blueD","\\textcolor{##11accd}{#1}"),A("\\blueE","\\textcolor{##0c7f99}{#1}"),A("\\tealA","\\textcolor{##94fff5}{#1}"),A("\\tealB","\\textcolor{##26edd5}{#1}"),A("\\tealC","\\textcolor{##01d1c1}{#1}"),A("\\tealD","\\textcolor{##01a995}{#1}"),A("\\tealE","\\textcolor{##208170}{#1}"),A("\\greenA","\\textcolor{##b6ffb0}{#1}"),A("\\greenB","\\textcolor{##8af281}{#1}"),A("\\greenC","\\textcolor{##74cf70}{#1}"),A("\\greenD","\\textcolor{##1fab54}{#1}"),A("\\greenE","\\textcolor{##0d923f}{#1}"),A("\\goldA","\\textcolor{##ffd0a9}{#1}"),A("\\goldB","\\textcolor{##ffbb71}{#1}"),A("\\goldC","\\textcolor{##ff9c39}{#1}"),A("\\goldD","\\textcolor{##e07d10}{#1}"),A("\\goldE","\\textcolor{##a75a05}{#1}"),A("\\redA","\\textcolor{##fca9a9}{#1}"),A("\\redB","\\textcolor{##ff8482}{#1}"),A("\\redC","\\textcolor{##f9685d}{#1}"),A("\\redD","\\textcolor{##e84d39}{#1}"),A("\\redE","\\textcolor{##bc2612}{#1}"),A("\\maroonA","\\textcolor{##ffbde0}{#1}"),A("\\maroonB","\\textcolor{##ff92c6}{#1}"),A("\\maroonC","\\textcolor{##ed5fa6}{#1}"),A("\\maroonD","\\textcolor{##ca337c}{#1}"),A("\\maroonE","\\textcolor{##9e034e}{#1}"),A("\\purpleA","\\textcolor{##ddd7ff}{#1}"),A("\\purpleB","\\textcolor{##c6b9fc}{#1}"),A("\\purpleC","\\textcolor{##aa87ff}{#1}"),A("\\purpleD","\\textcolor{##7854ab}{#1}"),A("\\purpleE","\\textcolor{##543b78}{#1}"),A("\\mintA","\\textcolor{##f5f9e8}{#1}"),A("\\mintB","\\textcolor{##edf2df}{#1}"),A("\\mintC","\\textcolor{##e0e5cc}{#1}"),A("\\grayA","\\textcolor{##f6f7f7}{#1}"),A("\\grayB","\\textcolor{##f0f1f2}{#1}"),A("\\grayC","\\textcolor{##e3e5e6}{#1}"),A("\\grayD","\\textcolor{##d6d8da}{#1}"),A("\\grayE","\\textcolor{##babec2}{#1}"),A("\\grayF","\\textcolor{##888d93}{#1}"),A("\\grayG","\\textcolor{##626569}{#1}"),A("\\grayH","\\textcolor{##3b3e40}{#1}"),A("\\grayI","\\textcolor{##21242c}{#1}"),A("\\kaBlue","\\textcolor{##314453}{#1}"),A("\\kaGreen","\\textcolor{##71B307}{#1}");var bl={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},K1=function(){function m(a,s,c){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=s,this.expansionCount=0,this.feed(a),this.macros=new X1(W1,s.macros),this.mode=c,this.stack=[]}var n=m.prototype;return n.feed=function(s){this.lexer=new dl(s,this.settings)},n.switchMode=function(s){this.mode=s},n.beginGroup=function(){this.macros.beginGroup()},n.endGroup=function(){this.macros.endGroup()},n.endGroups=function(){this.macros.endGroups()},n.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},n.popToken=function(){return this.future(),this.stack.pop()},n.pushToken=function(s){this.stack.push(s)},n.pushTokens=function(s){var c;(c=this.stack).push.apply(c,s)},n.scanArgument=function(s){var c,f,g;if(s){if(this.consumeSpaces(),this.future().text!=="[")return null;c=this.popToken();var y=this.consumeArg(["]"]);g=y.tokens,f=y.end}else{var x=this.consumeArg();g=x.tokens,c=x.start,f=x.end}return this.pushToken(new mr("EOF",f.loc)),this.pushTokens(g),c.range(f,"")},n.consumeSpaces=function(){for(;;){var s=this.future();if(s.text===" ")this.stack.pop();else break}},n.consumeArg=function(s){var c=[],f=s&&s.length>0;f||this.consumeSpaces();var g=this.future(),y,x=0,S=0;do{if(y=this.popToken(),c.push(y),y.text==="{")++x;else if(y.text==="}"){if(--x,x===-1)throw new l("Extra }",y)}else if(y.text==="EOF")throw new l("Unexpected end of input in a macro argument, expected '"+(s&&f?s[S]:"}")+"'",y);if(s&&f)if((x===0||x===1&&s[S]==="{")&&y.text===s[S]){if(++S,S===s.length){c.splice(-S,S);break}}else S=0}while(x!==0||f);return g.text==="{"&&c[c.length-1].text==="}"&&(c.pop(),c.shift()),c.reverse(),{tokens:c,start:g,end:y}},n.consumeArgs=function(s,c){if(c){if(c.length!==s+1)throw new l("The length of delimiters doesn't match the number of args!");for(var f=c[0],g=0;gthis.settings.maxExpand)throw new l("Too many expansions: infinite loop or need to increase maxExpand setting");var y=g.tokens,x=this.consumeArgs(g.numArgs,g.delimiters);if(g.numArgs){y=y.slice();for(var S=y.length-1;S>=0;--S){var z=y[S];if(z.text==="#"){if(S===0)throw new l("Incomplete placeholder at end of macro body",z);if(z=y[--S],z.text==="#")y.splice(S+1,1);else if(/^[1-9]$/.test(z.text)){var I;(I=y).splice.apply(I,[S,2].concat(x[+z.text-1]))}else throw new l("Not a valid argument number",z)}}}return this.pushTokens(y),y.length},n.expandAfterFuture=function(){return this.expandOnce(),this.future()},n.expandNextToken=function(){for(;;)if(this.expandOnce()===!1){var s=this.stack.pop();return s.treatAsRelax&&(s.text="\\relax"),s}throw new Error},n.expandMacro=function(s){return this.macros.has(s)?this.expandTokens([new mr(s)]):void 0},n.expandTokens=function(s){var c=[],f=this.stack.length;for(this.pushTokens(s);this.stack.length>f;)if(this.expandOnce(!0)===!1){var g=this.stack.pop();g.treatAsRelax&&(g.noexpand=!1,g.treatAsRelax=!1),c.push(g)}return c},n.expandMacroAsText=function(s){var c=this.expandMacro(s);return c&&c.map(function(f){return f.text}).join("")},n._getExpansion=function(s){var c=this.macros.get(s);if(c==null)return c;if(s.length===1){var f=this.lexer.catcodes[s];if(f!=null&&f!==13)return}var g=typeof c=="function"?c(this):c;if(typeof g=="string"){var y=0;if(g.indexOf("#")!==-1)for(var x=g.replace(/##/g,"");x.indexOf("#"+(y+1))!==-1;)++y;for(var S=new dl(g,this.settings),z=[],I=S.lex();I.text!=="EOF";)z.push(I),I=S.lex();z.reverse();var $={tokens:z,numArgs:y};return $}return g},n.isDefined=function(s){return this.macros.has(s)||vr.hasOwnProperty(s)||Xe.math.hasOwnProperty(s)||Xe.text.hasOwnProperty(s)||bl.hasOwnProperty(s)},n.isExpandable=function(s){var c=this.macros.get(s);return c!=null?typeof c=="string"||typeof c=="function"||!c.unexpandable:vr.hasOwnProperty(s)&&!vr[s].primitive},m}(),yl=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Mi=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),da={"́":{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"}},wl={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},xl=function(){function m(a,s){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 K1(a,s,this.mode),this.settings=s,this.leftrightDepth=0}var n=m.prototype;return n.expect=function(s,c){if(c===void 0&&(c=!0),this.fetch().text!==s)throw new l("Expected '"+s+"', got '"+this.fetch().text+"'",this.fetch());c&&this.consume()},n.consume=function(){this.nextToken=null},n.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},n.switchMode=function(s){this.mode=s,this.gullet.switchMode(s)},n.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var s=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),s}finally{this.gullet.endGroups()}},n.subparse=function(s){var c=this.nextToken;this.consume(),this.gullet.pushToken(new mr("}")),this.gullet.pushTokens(s);var f=this.parseExpression(!1);return this.expect("}"),this.nextToken=c,f},n.parseExpression=function(s,c){for(var f=[];;){this.mode==="math"&&this.consumeSpaces();var g=this.fetch();if(m.endOfExpression.indexOf(g.text)!==-1||c&&g.text===c||s&&vr[g.text]&&vr[g.text].infix)break;var y=this.parseAtom(c);if(y){if(y.type==="internal")continue}else break;f.push(y)}return this.mode==="text"&&this.formLigatures(f),this.handleInfixNodes(f)},n.handleInfixNodes=function(s){for(var c=-1,f,g=0;g=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+c[0]+'" used in math mode',s);var S=Xe[this.mode][c].group,z=Lt.range(s),I;if(If.hasOwnProperty(S)){var $=S;I={type:"atom",mode:this.mode,family:$,loc:z,text:c}}else I={type:S,mode:this.mode,loc:z,text:c};x=I}else if(c.charCodeAt(0)>=128)this.settings.strict&&(Be(c.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+c[0]+'" used in math mode',s):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+c[0]+'"'+(" ("+c.charCodeAt(0)+")"),s)),x={type:"textord",mode:"text",loc:Lt.range(s),text:c};else return null;if(this.consume(),y)for(var H=0;H{const r="\\",i="$",l=(t||{}).delimiter||i;if(l.length!==1)throw new Error("invalid delimiter");const u=U$(),h=(_,k)=>u.renderToString(_,{displayMode:k,throwOnError:!1}),d=(_,k,M)=>{let E=!1,B=_.bMarks[k]+_.tShift[k],O=_.eMarks[k];if(B+1>O)return!1;const P=_.src.charAt(B);if(P!==l)return!1;let D=B;B=_.skipChars(B,P);let W=B-D;if(W!==2)return!1;let ce=k;for(;++ce,!(ce>=M||(B=D=_.bMarks[ce]+_.tShift[ce],O=_.eMarks[ce],B=4)&&(B=_.skipChars(B,P),!(B-D{const M=_.pos,E=_.posMax;let B=M;if(_.src.charAt(B)!==l)return!1;for(++B;B2)return!1;const P=B;let D=0;for(;B1,level:_.level})}return _.pos=ue,!0}}B+=1}return k||(_.pending+=O),_.pos+=O.length,!0};e.inline.ruler.push("katex",b,t),e.block.ruler.push("katex",d,t),e.renderer.rules.katex=(_,k)=>h(_[k].content,_[k].block),e.renderer.rules.katex.delimiter=l};var V$=G$;const X$=Mo(V$),Y$=` +`,this.tokenRegex.lastIndex);return y===-1?(this.tokenRegex.lastIndex=s.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=y+1,this.lex()}return new mr(g,new Lt(this,c,this.tokenRegex.lastIndex))},m}(),X1=function(){function m(a,s){a===void 0&&(a={}),s===void 0&&(s={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=s,this.builtins=a,this.undefStack=[]}var n=m.prototype;return n.beginGroup=function(){this.undefStack.push({})},n.endGroup=function(){if(this.undefStack.length===0)throw new l("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var s=this.undefStack.pop();for(var c in s)s.hasOwnProperty(c)&&(s[c]==null?delete this.current[c]:this.current[c]=s[c])},n.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},n.has=function(s){return this.current.hasOwnProperty(s)||this.builtins.hasOwnProperty(s)},n.get=function(s){return this.current.hasOwnProperty(s)?this.current[s]:this.builtins[s]},n.set=function(s,c,f){if(f===void 0&&(f=!1),f){for(var g=0;g0&&(this.undefStack[this.undefStack.length-1][s]=c)}else{var y=this.undefStack[this.undefStack.length-1];y&&!y.hasOwnProperty(s)&&(y[s]=this.current[s])}c==null?delete this.current[s]:this.current[s]=c},m}(),Y1=js,W1=Y1;A("\\noexpand",function(m){var n=m.popToken();return m.isExpandable(n.text)&&(n.noexpand=!0,n.treatAsRelax=!0),{tokens:[n],numArgs:0}}),A("\\expandafter",function(m){var n=m.popToken();return m.expandOnce(!0),{tokens:[n],numArgs:0}}),A("\\@firstoftwo",function(m){var n=m.consumeArgs(2);return{tokens:n[0],numArgs:0}}),A("\\@secondoftwo",function(m){var n=m.consumeArgs(2);return{tokens:n[1],numArgs:0}}),A("\\@ifnextchar",function(m){var n=m.consumeArgs(3);m.consumeSpaces();var a=m.future();return n[0].length===1&&n[0][0].text===a.text?{tokens:n[1],numArgs:0}:{tokens:n[2],numArgs:0}}),A("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),A("\\TextOrMath",function(m){var n=m.consumeArgs(2);return m.mode==="text"?{tokens:n[0],numArgs:0}:{tokens:n[1],numArgs:0}});var ml={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};A("\\char",function(m){var n=m.popToken(),a,s="";if(n.text==="'")a=8,n=m.popToken();else if(n.text==='"')a=16,n=m.popToken();else if(n.text==="`")if(n=m.popToken(),n.text[0]==="\\")s=n.text.charCodeAt(1);else{if(n.text==="EOF")throw new l("\\char` missing argument");s=n.text.charCodeAt(0)}else a=10;if(a){if(s=ml[n.text],s==null||s>=a)throw new l("Invalid base-"+a+" digit "+n.text);for(var c;(c=ml[m.future().text])!=null&&c":"\\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"};A("\\dots",function(m){var n="\\dotso",a=m.expandAfterFuture().text;return a in gl?n=gl[a]:(a.slice(0,4)==="\\not"||a in Xe.math&&D.contains(["bin","rel"],Xe.math[a].group))&&(n="\\dotsb"),n});var pa={")":!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};A("\\dotso",function(m){var n=m.future().text;return n in pa?"\\ldots\\,":"\\ldots"}),A("\\dotsc",function(m){var n=m.future().text;return n in pa&&n!==","?"\\ldots\\,":"\\ldots"}),A("\\cdots",function(m){var n=m.future().text;return n in pa?"\\@cdots\\,":"\\@cdots"}),A("\\dotsb","\\cdots"),A("\\dotsm","\\cdots"),A("\\dotsi","\\!\\cdots"),A("\\dotsx","\\ldots\\,"),A("\\DOTSI","\\relax"),A("\\DOTSB","\\relax"),A("\\DOTSX","\\relax"),A("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),A("\\,","\\tmspace+{3mu}{.1667em}"),A("\\thinspace","\\,"),A("\\>","\\mskip{4mu}"),A("\\:","\\tmspace+{4mu}{.2222em}"),A("\\medspace","\\:"),A("\\;","\\tmspace+{5mu}{.2777em}"),A("\\thickspace","\\;"),A("\\!","\\tmspace-{3mu}{.1667em}"),A("\\negthinspace","\\!"),A("\\negmedspace","\\tmspace-{4mu}{.2222em}"),A("\\negthickspace","\\tmspace-{5mu}{.277em}"),A("\\enspace","\\kern.5em "),A("\\enskip","\\hskip.5em\\relax"),A("\\quad","\\hskip1em\\relax"),A("\\qquad","\\hskip2em\\relax"),A("\\tag","\\@ifstar\\tag@literal\\tag@paren"),A("\\tag@paren","\\tag@literal{({#1})}"),A("\\tag@literal",function(m){if(m.macros.get("\\df@tag"))throw new l("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),A("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),A("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),A("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),A("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),A("\\newline","\\\\\\relax"),A("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var vl=Q(pe["Main-Regular"]["T".charCodeAt(0)][1]-.7*pe["Main-Regular"]["A".charCodeAt(0)][1]);A("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+vl+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),A("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+vl+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),A("\\hspace","\\@ifstar\\@hspacer\\@hspace"),A("\\@hspace","\\hskip #1\\relax"),A("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),A("\\ordinarycolon",":"),A("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),A("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),A("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),A("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),A("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),A("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),A("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),A("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),A("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),A("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),A("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),A("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),A("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),A("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),A("∷","\\dblcolon"),A("∹","\\eqcolon"),A("≔","\\coloneqq"),A("≕","\\eqqcolon"),A("⩴","\\Coloneqq"),A("\\ratio","\\vcentcolon"),A("\\coloncolon","\\dblcolon"),A("\\colonequals","\\coloneqq"),A("\\coloncolonequals","\\Coloneqq"),A("\\equalscolon","\\eqqcolon"),A("\\equalscoloncolon","\\Eqqcolon"),A("\\colonminus","\\coloneq"),A("\\coloncolonminus","\\Coloneq"),A("\\minuscolon","\\eqcolon"),A("\\minuscoloncolon","\\Eqcolon"),A("\\coloncolonapprox","\\Colonapprox"),A("\\coloncolonsim","\\Colonsim"),A("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),A("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),A("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),A("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),A("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),A("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),A("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),A("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),A("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),A("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),A("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),A("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),A("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),A("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),A("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),A("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),A("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),A("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),A("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),A("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),A("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),A("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),A("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),A("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),A("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),A("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),A("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),A("\\imath","\\html@mathml{\\@imath}{ı}"),A("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),A("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),A("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),A("⟦","\\llbracket"),A("⟧","\\rrbracket"),A("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),A("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),A("⦃","\\lBrace"),A("⦄","\\rBrace"),A("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),A("⦵","\\minuso"),A("\\darr","\\downarrow"),A("\\dArr","\\Downarrow"),A("\\Darr","\\Downarrow"),A("\\lang","\\langle"),A("\\rang","\\rangle"),A("\\uarr","\\uparrow"),A("\\uArr","\\Uparrow"),A("\\Uarr","\\Uparrow"),A("\\N","\\mathbb{N}"),A("\\R","\\mathbb{R}"),A("\\Z","\\mathbb{Z}"),A("\\alef","\\aleph"),A("\\alefsym","\\aleph"),A("\\Alpha","\\mathrm{A}"),A("\\Beta","\\mathrm{B}"),A("\\bull","\\bullet"),A("\\Chi","\\mathrm{X}"),A("\\clubs","\\clubsuit"),A("\\cnums","\\mathbb{C}"),A("\\Complex","\\mathbb{C}"),A("\\Dagger","\\ddagger"),A("\\diamonds","\\diamondsuit"),A("\\empty","\\emptyset"),A("\\Epsilon","\\mathrm{E}"),A("\\Eta","\\mathrm{H}"),A("\\exist","\\exists"),A("\\harr","\\leftrightarrow"),A("\\hArr","\\Leftrightarrow"),A("\\Harr","\\Leftrightarrow"),A("\\hearts","\\heartsuit"),A("\\image","\\Im"),A("\\infin","\\infty"),A("\\Iota","\\mathrm{I}"),A("\\isin","\\in"),A("\\Kappa","\\mathrm{K}"),A("\\larr","\\leftarrow"),A("\\lArr","\\Leftarrow"),A("\\Larr","\\Leftarrow"),A("\\lrarr","\\leftrightarrow"),A("\\lrArr","\\Leftrightarrow"),A("\\Lrarr","\\Leftrightarrow"),A("\\Mu","\\mathrm{M}"),A("\\natnums","\\mathbb{N}"),A("\\Nu","\\mathrm{N}"),A("\\Omicron","\\mathrm{O}"),A("\\plusmn","\\pm"),A("\\rarr","\\rightarrow"),A("\\rArr","\\Rightarrow"),A("\\Rarr","\\Rightarrow"),A("\\real","\\Re"),A("\\reals","\\mathbb{R}"),A("\\Reals","\\mathbb{R}"),A("\\Rho","\\mathrm{P}"),A("\\sdot","\\cdot"),A("\\sect","\\S"),A("\\spades","\\spadesuit"),A("\\sub","\\subset"),A("\\sube","\\subseteq"),A("\\supe","\\supseteq"),A("\\Tau","\\mathrm{T}"),A("\\thetasym","\\vartheta"),A("\\weierp","\\wp"),A("\\Zeta","\\mathrm{Z}"),A("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),A("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),A("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),A("\\bra","\\mathinner{\\langle{#1}|}"),A("\\ket","\\mathinner{|{#1}\\rangle}"),A("\\braket","\\mathinner{\\langle{#1}\\rangle}"),A("\\Bra","\\left\\langle#1\\right|"),A("\\Ket","\\left|#1\\right\\rangle");var _l=function(n){return function(a){var s=a.consumeArg().tokens,c=a.consumeArg().tokens,f=a.consumeArg().tokens,g=a.consumeArg().tokens,y=a.macros.get("|"),k=a.macros.get("\\|");a.macros.beginGroup();var S=function(H){return function(j){n&&(j.macros.set("|",y),f.length&&j.macros.set("\\|",k));var J=H;if(!H&&f.length){var te=j.future();te.text==="|"&&(j.popToken(),J=!0)}return{tokens:J?f:c,numArgs:0}}};a.macros.set("|",S(!1)),f.length&&a.macros.set("\\|",S(!0));var z=a.consumeArg().tokens,I=a.expandTokens([].concat(g,z,s));return a.macros.endGroup(),{tokens:I.reverse(),numArgs:0}}};A("\\bra@ket",_l(!1)),A("\\bra@set",_l(!0)),A("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),A("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),A("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),A("\\angln","{\\angl n}"),A("\\blue","\\textcolor{##6495ed}{#1}"),A("\\orange","\\textcolor{##ffa500}{#1}"),A("\\pink","\\textcolor{##ff00af}{#1}"),A("\\red","\\textcolor{##df0030}{#1}"),A("\\green","\\textcolor{##28ae7b}{#1}"),A("\\gray","\\textcolor{gray}{#1}"),A("\\purple","\\textcolor{##9d38bd}{#1}"),A("\\blueA","\\textcolor{##ccfaff}{#1}"),A("\\blueB","\\textcolor{##80f6ff}{#1}"),A("\\blueC","\\textcolor{##63d9ea}{#1}"),A("\\blueD","\\textcolor{##11accd}{#1}"),A("\\blueE","\\textcolor{##0c7f99}{#1}"),A("\\tealA","\\textcolor{##94fff5}{#1}"),A("\\tealB","\\textcolor{##26edd5}{#1}"),A("\\tealC","\\textcolor{##01d1c1}{#1}"),A("\\tealD","\\textcolor{##01a995}{#1}"),A("\\tealE","\\textcolor{##208170}{#1}"),A("\\greenA","\\textcolor{##b6ffb0}{#1}"),A("\\greenB","\\textcolor{##8af281}{#1}"),A("\\greenC","\\textcolor{##74cf70}{#1}"),A("\\greenD","\\textcolor{##1fab54}{#1}"),A("\\greenE","\\textcolor{##0d923f}{#1}"),A("\\goldA","\\textcolor{##ffd0a9}{#1}"),A("\\goldB","\\textcolor{##ffbb71}{#1}"),A("\\goldC","\\textcolor{##ff9c39}{#1}"),A("\\goldD","\\textcolor{##e07d10}{#1}"),A("\\goldE","\\textcolor{##a75a05}{#1}"),A("\\redA","\\textcolor{##fca9a9}{#1}"),A("\\redB","\\textcolor{##ff8482}{#1}"),A("\\redC","\\textcolor{##f9685d}{#1}"),A("\\redD","\\textcolor{##e84d39}{#1}"),A("\\redE","\\textcolor{##bc2612}{#1}"),A("\\maroonA","\\textcolor{##ffbde0}{#1}"),A("\\maroonB","\\textcolor{##ff92c6}{#1}"),A("\\maroonC","\\textcolor{##ed5fa6}{#1}"),A("\\maroonD","\\textcolor{##ca337c}{#1}"),A("\\maroonE","\\textcolor{##9e034e}{#1}"),A("\\purpleA","\\textcolor{##ddd7ff}{#1}"),A("\\purpleB","\\textcolor{##c6b9fc}{#1}"),A("\\purpleC","\\textcolor{##aa87ff}{#1}"),A("\\purpleD","\\textcolor{##7854ab}{#1}"),A("\\purpleE","\\textcolor{##543b78}{#1}"),A("\\mintA","\\textcolor{##f5f9e8}{#1}"),A("\\mintB","\\textcolor{##edf2df}{#1}"),A("\\mintC","\\textcolor{##e0e5cc}{#1}"),A("\\grayA","\\textcolor{##f6f7f7}{#1}"),A("\\grayB","\\textcolor{##f0f1f2}{#1}"),A("\\grayC","\\textcolor{##e3e5e6}{#1}"),A("\\grayD","\\textcolor{##d6d8da}{#1}"),A("\\grayE","\\textcolor{##babec2}{#1}"),A("\\grayF","\\textcolor{##888d93}{#1}"),A("\\grayG","\\textcolor{##626569}{#1}"),A("\\grayH","\\textcolor{##3b3e40}{#1}"),A("\\grayI","\\textcolor{##21242c}{#1}"),A("\\kaBlue","\\textcolor{##314453}{#1}"),A("\\kaGreen","\\textcolor{##71B307}{#1}");var bl={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},K1=function(){function m(a,s,c){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=s,this.expansionCount=0,this.feed(a),this.macros=new X1(W1,s.macros),this.mode=c,this.stack=[]}var n=m.prototype;return n.feed=function(s){this.lexer=new dl(s,this.settings)},n.switchMode=function(s){this.mode=s},n.beginGroup=function(){this.macros.beginGroup()},n.endGroup=function(){this.macros.endGroup()},n.endGroups=function(){this.macros.endGroups()},n.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},n.popToken=function(){return this.future(),this.stack.pop()},n.pushToken=function(s){this.stack.push(s)},n.pushTokens=function(s){var c;(c=this.stack).push.apply(c,s)},n.scanArgument=function(s){var c,f,g;if(s){if(this.consumeSpaces(),this.future().text!=="[")return null;c=this.popToken();var y=this.consumeArg(["]"]);g=y.tokens,f=y.end}else{var k=this.consumeArg();g=k.tokens,c=k.start,f=k.end}return this.pushToken(new mr("EOF",f.loc)),this.pushTokens(g),c.range(f,"")},n.consumeSpaces=function(){for(;;){var s=this.future();if(s.text===" ")this.stack.pop();else break}},n.consumeArg=function(s){var c=[],f=s&&s.length>0;f||this.consumeSpaces();var g=this.future(),y,k=0,S=0;do{if(y=this.popToken(),c.push(y),y.text==="{")++k;else if(y.text==="}"){if(--k,k===-1)throw new l("Extra }",y)}else if(y.text==="EOF")throw new l("Unexpected end of input in a macro argument, expected '"+(s&&f?s[S]:"}")+"'",y);if(s&&f)if((k===0||k===1&&s[S]==="{")&&y.text===s[S]){if(++S,S===s.length){c.splice(-S,S);break}}else S=0}while(k!==0||f);return g.text==="{"&&c[c.length-1].text==="}"&&(c.pop(),c.shift()),c.reverse(),{tokens:c,start:g,end:y}},n.consumeArgs=function(s,c){if(c){if(c.length!==s+1)throw new l("The length of delimiters doesn't match the number of args!");for(var f=c[0],g=0;gthis.settings.maxExpand)throw new l("Too many expansions: infinite loop or need to increase maxExpand setting");var y=g.tokens,k=this.consumeArgs(g.numArgs,g.delimiters);if(g.numArgs){y=y.slice();for(var S=y.length-1;S>=0;--S){var z=y[S];if(z.text==="#"){if(S===0)throw new l("Incomplete placeholder at end of macro body",z);if(z=y[--S],z.text==="#")y.splice(S+1,1);else if(/^[1-9]$/.test(z.text)){var I;(I=y).splice.apply(I,[S,2].concat(k[+z.text-1]))}else throw new l("Not a valid argument number",z)}}}return this.pushTokens(y),y.length},n.expandAfterFuture=function(){return this.expandOnce(),this.future()},n.expandNextToken=function(){for(;;)if(this.expandOnce()===!1){var s=this.stack.pop();return s.treatAsRelax&&(s.text="\\relax"),s}throw new Error},n.expandMacro=function(s){return this.macros.has(s)?this.expandTokens([new mr(s)]):void 0},n.expandTokens=function(s){var c=[],f=this.stack.length;for(this.pushTokens(s);this.stack.length>f;)if(this.expandOnce(!0)===!1){var g=this.stack.pop();g.treatAsRelax&&(g.noexpand=!1,g.treatAsRelax=!1),c.push(g)}return c},n.expandMacroAsText=function(s){var c=this.expandMacro(s);return c&&c.map(function(f){return f.text}).join("")},n._getExpansion=function(s){var c=this.macros.get(s);if(c==null)return c;if(s.length===1){var f=this.lexer.catcodes[s];if(f!=null&&f!==13)return}var g=typeof c=="function"?c(this):c;if(typeof g=="string"){var y=0;if(g.indexOf("#")!==-1)for(var k=g.replace(/##/g,"");k.indexOf("#"+(y+1))!==-1;)++y;for(var S=new dl(g,this.settings),z=[],I=S.lex();I.text!=="EOF";)z.push(I),I=S.lex();z.reverse();var $={tokens:z,numArgs:y};return $}return g},n.isDefined=function(s){return this.macros.has(s)||vr.hasOwnProperty(s)||Xe.math.hasOwnProperty(s)||Xe.text.hasOwnProperty(s)||bl.hasOwnProperty(s)},n.isExpandable=function(s){var c=this.macros.get(s);return c!=null?typeof c=="string"||typeof c=="function"||!c.unexpandable:vr.hasOwnProperty(s)&&!vr[s].primitive},m}(),yl=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Mi=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),da={"́":{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"}},wl={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},xl=function(){function m(a,s){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 K1(a,s,this.mode),this.settings=s,this.leftrightDepth=0}var n=m.prototype;return n.expect=function(s,c){if(c===void 0&&(c=!0),this.fetch().text!==s)throw new l("Expected '"+s+"', got '"+this.fetch().text+"'",this.fetch());c&&this.consume()},n.consume=function(){this.nextToken=null},n.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},n.switchMode=function(s){this.mode=s,this.gullet.switchMode(s)},n.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var s=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),s}finally{this.gullet.endGroups()}},n.subparse=function(s){var c=this.nextToken;this.consume(),this.gullet.pushToken(new mr("}")),this.gullet.pushTokens(s);var f=this.parseExpression(!1);return this.expect("}"),this.nextToken=c,f},n.parseExpression=function(s,c){for(var f=[];;){this.mode==="math"&&this.consumeSpaces();var g=this.fetch();if(m.endOfExpression.indexOf(g.text)!==-1||c&&g.text===c||s&&vr[g.text]&&vr[g.text].infix)break;var y=this.parseAtom(c);if(y){if(y.type==="internal")continue}else break;f.push(y)}return this.mode==="text"&&this.formLigatures(f),this.handleInfixNodes(f)},n.handleInfixNodes=function(s){for(var c=-1,f,g=0;g=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+c[0]+'" used in math mode',s);var S=Xe[this.mode][c].group,z=Lt.range(s),I;if(If.hasOwnProperty(S)){var $=S;I={type:"atom",mode:this.mode,family:$,loc:z,text:c}}else I={type:S,mode:this.mode,loc:z,text:c};k=I}else if(c.charCodeAt(0)>=128)this.settings.strict&&(Be(c.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+c[0]+'" used in math mode',s):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+c[0]+'"'+(" ("+c.charCodeAt(0)+")"),s)),k={type:"textord",mode:"text",loc:Lt.range(s),text:c};else return null;if(this.consume(),y)for(var H=0;H{const r="\\",i="$",l=(t||{}).delimiter||i;if(l.length!==1)throw new Error("invalid delimiter");const u=U$(),h=(_,x)=>u.renderToString(_,{displayMode:x,throwOnError:!1}),d=(_,x,M)=>{let E=!1,B=_.bMarks[x]+_.tShift[x],O=_.eMarks[x];if(B+1>O)return!1;const P=_.src.charAt(B);if(P!==l)return!1;let D=B;B=_.skipChars(B,P);let W=B-D;if(W!==2)return!1;let ce=x;for(;++ce,!(ce>=M||(B=D=_.bMarks[ce]+_.tShift[ce],O=_.eMarks[ce],B=4)&&(B=_.skipChars(B,P),!(B-D{const M=_.pos,E=_.posMax;let B=M;if(_.src.charAt(B)!==l)return!1;for(++B;B2)return!1;const P=B;let D=0;for(;B1,level:_.level})}return _.pos=ue,!0}}B+=1}return x||(_.pending+=O),_.pos+=O.length,!0};e.inline.ruler.push("katex",b,t),e.block.ruler.push("katex",d,t),e.renderer.rules.katex=(_,x)=>h(_[x].content,_[x].block),e.renderer.rules.katex.delimiter=l};var V$=G$;const X$=Mo(V$),Y$=` @@ -353,11 +353,11 @@ l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, -`,W$=["d3@7.8.5/dist/d3.min.js","markmap-view@0.15.8/dist/browser/index.js"],Ia="katex",K$=["katex@0.16.8/dist/katex.min.js"].map(e=>A0(e)),Hh=A0("webfontloader@1.6.28/webfontloader.js");Hh.data.defer=!0;const Z$=["katex@0.16.8/dist/katex.min.css"].map(e=>Ph(e)),J$={versions:{katex:"0.16.8",webfontloader:"1.6.28"},preloadScripts:K$,scripts:[{type:"iife",data:{fn:e=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{e().refreshHook.call()}}},getParams({getMarkmap:e}){return[e]}}},Hh],styles:Z$};function Q$(e,t,r){return e.map(i=>{if(typeof i=="string"&&!i.includes("://")){i.startsWith("npm:")||(i=`npm:${i}`);const o=4+t.length;i.startsWith(`npm:${t}/`)&&(i=`${i.slice(0,o)}@${r}${i.slice(o)}`)}return i})}function Go(e,t){return t.type==="script"&&t.data.src?{...t,data:{...t.data,src:e.getFullUrl(t.data.src)}}:t}function ej(e,t){return t.type==="stylesheet"&&t.data.href?{...t,data:{...t.data,href:e.getFullUrl(t.data.href)}}:t}function tj(e){return{transformer:e,parser:new $r,beforeParse:new $r,afterParse:new $r,htmltag:new $r,retransform:new $r}}const Ln={name:Ia,config:J$,transform(e){var t,r,i,o;let l;const u=((r=(t=Ln.config)==null?void 0:t.preloadScripts)==null?void 0:r.map(_=>Go(e.transformer.urlBuilder,_)))||[],h=()=>(l||(l=Uo(u)),l),d=(_,k)=>{const{katex:M}=window;return M?M.renderToString(_,{displayMode:k,throwOnError:!1}):(h().then(()=>{e.retransform.call()}),_)};let b=jn;return e.parser.tap(_=>{_.use(X$),_.renderer.rules.katex=(k,M)=>(b(),d(k[M].content,!!k[M].block))}),e.beforeParse.tap((_,k)=>{b=()=>{k.features[Ia]=!0}}),e.afterParse.tap((_,k)=>{var M;const E=(M=k.frontmatter)==null?void 0:M.markmap;E&&["extraJs","extraCss"].forEach(B=>{var O,P;const D=E[B];D&&(E[B]=Q$(D,Ia,((P=(O=Ln.config)==null?void 0:O.versions)==null?void 0:P.katex)||""))})}),{styles:(i=Ln.config)==null?void 0:i.styles,scripts:(o=Ln.config)==null?void 0:o.scripts}}},rj="frontmatter",nj={name:rj,transform(e){return e.beforeParse.tap((t,r)=>{const{content:i}=r;if(!/^---\r?\n/.test(i))return;const o=/\n---\r?\n/.exec(i);if(!o)return;const l=i.slice(4,o.index);let u;try{u=dh.load(l),u!=null&&u.markmap&&(u.markmap=ij(u.markmap))}catch{return}r.frontmatter=u,r.content=i.slice(o.index+o[0].length),r.contentLineOffset=i.slice(0,o.index).split(` -`).length+1}),{}}};function ij(e){if(e)return["color","extraJs","extraCss"].forEach(t=>{e[t]!=null&&(e[t]=aj(e[t]))}),["duration","maxWidth","initialExpandLevel"].forEach(t=>{e[t]!=null&&(e[t]=oj(e[t]))}),e}function aj(e){let t;return typeof e=="string"?t=[e]:Array.isArray(e)&&(t=e.filter(r=>r&&typeof r=="string")),t!=null&&t.length?t:void 0}function oj(e){if(!isNaN(+e))return+e}const sj="npmUrl",lj={name:sj,transform(e){return e.afterParse.tap((t,r)=>{const{frontmatter:i}=r,o=i==null?void 0:i.markmap;o&&["extraJs","extraCss"].forEach(l=>{const u=o[l];u&&(o[l]=u.map(h=>h.startsWith("npm:")?e.transformer.urlBuilder.getFullUrl(h.slice(4)):h))})}),{}}},Dc="hljs",cj=["@highlightjs/cdn-assets@11.8.0/highlight.min.js"].map(e=>A0(e)),uj=["@highlightjs/cdn-assets@11.8.0/styles/default.min.css"].map(e=>Ph(e)),hj={versions:{hljs:"11.8.0"},preloadScripts:cj,styles:uj},oo={name:Dc,config:hj,transform(e){var t,r,i;let o;const l=((r=(t=oo.config)==null?void 0:t.preloadScripts)==null?void 0:r.map(d=>Go(e.transformer.urlBuilder,d)))||[],u=()=>(o||(o=Uo(l)),o);let h=jn;return e.parser.tap(d=>{d.set({highlight:(b,_)=>{h();const{hljs:k}=window;return k?k.highlightAuto(b,_?[_]:void 0).value:(u().then(()=>{e.retransform.call()}),b)}})}),e.beforeParse.tap((d,b)=>{h=()=>{b.features[Dc]=!0}}),{styles:(i=oo.config)==null?void 0:i.styles}}},fj=[nj,Ln,oo,lj];function $h(e){var t,r;if(e.type==="heading")e.children=e.children.filter(i=>i.type!=="paragraph");else if(e.type==="list_item")e.children=e.children.filter(i=>["paragraph","fence"].includes(i.type)?(e.content||(e.content=i.content,e.payload={...e.payload,...i.payload}),!1):!0),((t=e.payload)==null?void 0:t.index)!=null&&(e.content=`${e.payload.index}. ${e.content}`);else if(e.type==="ordered_list"){let i=((r=e.payload)==null?void 0:r.startIndex)??1;e.children.forEach(o=>{o.type==="list_item"&&(o.payload={...o.payload,index:i},i+=1)})}e.children.length>0&&(e.children.forEach(i=>$h(i)),e.children.length===1&&!e.children[0].content&&(e.children=e.children[0].children))}function jh(e,t=0){e.depth=t,e.children.forEach(r=>{jh(r,t+1)})}class pj{constructor(t=fj){this.assetsMap={},this.urlBuilder=new d$,this.hooks=tj(this),this.plugins=t.map(o=>typeof o=="function"?o():o);const r={};for(const{name:o,transform:l}of this.plugins)r[o]=l(this.hooks);this.assetsMap=r;const i=new Br("full",{html:!0,breaks:!0,maxNesting:1/0});i.renderer.rules.htmltag=A$(i.renderer.rules.htmltag,(o,...l)=>{const u=o(...l);return this.hooks.htmltag.call({args:l,result:u}),u}),this.md=i,this.hooks.parser.call(i)}buildTree(t){const{md:r}=this,i={type:"root",depth:0,content:"",children:[],payload:{}},o=[i];let l=0;for(const u of t){const h={};u.lines&&(h.lines=u.lines);let d=o[o.length-1];if(u.type.endsWith("_open")){const b=u.type.slice(0,-5);if(b==="heading")for(l=u.hLevel;(d==null?void 0:d.depth)>=l;)o.pop(),d=o[o.length-1];else l=Math.max(l,(d==null?void 0:d.depth)||0)+1,b==="ordered_list"&&(h.startIndex=u.order);const _={type:b,depth:l,payload:h,content:"",children:[]};d.children.push(_),o.push(_)}else if(d){if(u.type===`${d.type}_close`)d.type==="heading"?l=d.depth:(o.pop(),l=0);else if(u.type==="inline"){const b=this.hooks.htmltag.tap(k=>{var M;const E=(M=k.result)==null?void 0:M.match(/^$/),B=E==null?void 0:E[1].trim().split(" ");(B==null?void 0:B[0])==="fold"&&(d.payload={...d.payload,fold:["all","recursively"].includes(B[1])?2:1},k.result="")}),_=r.renderer.render([u],r.options,{});b(),d.content=`${d.content||""}${_}`}else if(u.type==="fence"){const b=r.renderer.render([u],r.options,{});d.children.push({type:u.type,depth:l+1,content:b,children:[],payload:h})}}else continue}return i}transform(t){var r;const i={content:t,features:{},contentLineOffset:0};this.hooks.beforeParse.call(this.md,i);const o=this.md.parse(i.content,{});this.hooks.afterParse.call(this.md,i);let l=this.buildTree(o);return $h(l),((r=l.children)==null?void 0:r.length)===1&&(l=l.children[0]),jh(l),{...i,root:l}}getAssets(t){const r=[],i=[];t??(t=this.plugins.map(o=>o.name));for(const o of t.map(l=>this.assetsMap[l]))o&&(o.styles&&r.push(...o.styles),o.scripts&&i.push(...o.scripts));return{styles:r.map(o=>ej(this.urlBuilder,o)),scripts:i.map(o=>Go(this.urlBuilder,o))}}getUsedAssets(t){const r=this.plugins.map(i=>i.name).filter(i=>t[i]);return this.getAssets(r)}fillTemplate(t,r,i){i={...i},i.baseJs??(i.baseJs=W$.map(_=>this.urlBuilder.getFullUrl(_)).map(_=>A0(_)));const{scripts:o,styles:l}=r,u=[...l?y$(l):[]],h={getMarkmap:()=>window.markmap,getOptions:i.getOptions,jsonOptions:i.jsonOptions,root:t},d=[...b$([...i.baseJs,...o||[],{type:"iife",data:{fn:(_,k,M,E)=>{const B=_();window.mm=B.Markmap.create("svg#mindmap",(k||B.deriveOptions)(E),M)},getParams:({getMarkmap:_,getOptions:k,root:M,jsonOptions:E})=>[_,k,M,E]}}],h)];return Y$.replace("",()=>u.join("")).replace("",()=>d.join(""))}}class Oc extends Map{constructor(t,r=gj){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[i,o]of t)this.set(i,o)}get(t){return super.get(Ic(this,t))}has(t){return super.has(Ic(this,t))}set(t,r){return super.set(dj(this,t),r)}delete(t){return super.delete(mj(this,t))}}function Ic({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):r}function dj({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):(e.set(i,r),r)}function mj({_intern:e,_key:t},r){const i=t(r);return e.has(i)&&(r=e.get(i),e.delete(i)),r}function gj(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Rc(e,t){let r;if(t===void 0)for(const i of e)i!=null&&(r=i)&&(r=i);else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(r=o)&&(r=o)}return r}function Fc(e,t){let r;if(t===void 0)for(const i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function vj(e,t){let r,i=-1,o=-1;if(t===void 0)for(const l of e)++o,l!=null&&(r>l||r===void 0&&l>=l)&&(r=l,i=o);else for(let l of e)(l=t(l,++o,e))!=null&&(r>l||r===void 0&&l>=l)&&(r=l,i=o);return i}var _j={value:()=>{}};function Vo(){for(var e=0,t=arguments.length,r={},i;e=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}$i.prototype=Vo.prototype={constructor:$i,on:function(e,t){var r=this._,i=bj(e+"",r),o,l=-1,u=i.length;if(arguments.length<2){for(;++l0)for(var r=new Array(o),i=0,o,l;i=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),qc.hasOwnProperty(t)?{space:qc[t],local:e}:e}function wj(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===so&&t.documentElement.namespaceURI===so?t.createElement(e):t.createElementNS(r,e)}}function xj(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Uh(e){var t=S0(e);return(t.local?xj:wj)(t)}function kj(){}function Xo(e){return e==null?kj:function(){return this.querySelector(e)}}function Aj(e){typeof e!="function"&&(e=Xo(e));for(var t=this._groups,r=t.length,i=new Array(r),o=0;o=ce&&(ce=W+1);!(Z=P[ce])&&++ce=0;)(u=i[o])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function Wj(e){e||(e=Kj);function t(k,M){return k&&M?e(k.__data__,M.__data__):!k-!M}for(var r=this._groups,i=r.length,o=new Array(i),l=0;lt?1:e>=t?0:NaN}function Zj(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Jj(){return Array.from(this)}function Qj(){for(var e=this._groups,t=0,r=e.length;t1?this.each((t==null?uU:typeof t=="function"?fU:hU)(e,t,r??"")):yn(this.node(),e)}function yn(e,t){return e.style.getPropertyValue(t)||Wh(e).getComputedStyle(e,null).getPropertyValue(t)}function dU(e){return function(){delete this[e]}}function mU(e,t){return function(){this[e]=t}}function gU(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function vU(e,t){return arguments.length>1?this.each((t==null?dU:typeof t=="function"?gU:mU)(e,t)):this.node()[e]}function Kh(e){return e.trim().split(/^|\s+/)}function Yo(e){return e.classList||new Zh(e)}function Zh(e){this._node=e,this._names=Kh(e.getAttribute("class")||"")}Zh.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Jh(e,t){for(var r=Yo(e),i=-1,o=t.length;++i=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function GU(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,o=t.length,l;r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Fi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Fi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=nG.exec(e))?new yt(t[1],t[2],t[3],1):(t=iG.exec(e))?new yt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aG.exec(e))?Fi(t[1],t[2],t[3],t[4]):(t=oG.exec(e))?Fi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sG.exec(e))?Vc(t[1],t[2]/100,t[3]/100,1):(t=lG.exec(e))?Vc(t[1],t[2]/100,t[3]/100,t[4]):Pc.hasOwnProperty(e)?jc(Pc[e]):e==="transparent"?new yt(NaN,NaN,NaN,0):null}function jc(e){return new yt(e>>16&255,e>>8&255,e&255,1)}function Fi(e,t,r,i){return i<=0&&(e=t=r=NaN),new yt(e,t,r,i)}function hG(e){return e instanceof ai||(e=ei(e)),e?(e=e.rgb(),new yt(e.r,e.g,e.b,e.opacity)):new yt}function uo(e,t,r,i){return arguments.length===1?hG(e):new yt(e,t,r,i??1)}function yt(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}Wo(yt,uo,rf(ai,{brighter(e){return e=e==null?u0:Math.pow(u0,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Math.pow(Jn,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yt(Vr(this.r),Vr(this.g),Vr(this.b),h0(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Uc,formatHex:Uc,formatHex8:fG,formatRgb:Gc,toString:Gc}));function Uc(){return`#${jr(this.r)}${jr(this.g)}${jr(this.b)}`}function fG(){return`#${jr(this.r)}${jr(this.g)}${jr(this.b)}${jr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gc(){const e=h0(this.opacity);return`${e===1?"rgb(":"rgba("}${Vr(this.r)}, ${Vr(this.g)}, ${Vr(this.b)}${e===1?")":`, ${e})`}`}function h0(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function jr(e){return e=Vr(e),(e<16?"0":"")+e.toString(16)}function Vc(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new qt(e,t,r,i)}function nf(e){if(e instanceof qt)return new qt(e.h,e.s,e.l,e.opacity);if(e instanceof ai||(e=ei(e)),!e)return new qt;if(e instanceof qt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,o=Math.min(t,r,i),l=Math.max(t,r,i),u=NaN,h=l-o,d=(l+o)/2;return h?(t===l?u=(r-i)/h+(r0&&d<1?0:u,new qt(u,h,d,e.opacity)}function pG(e,t,r,i){return arguments.length===1?nf(e):new qt(e,t,r,i??1)}function qt(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}Wo(qt,pG,rf(ai,{brighter(e){return e=e==null?u0:Math.pow(u0,e),new qt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Math.pow(Jn,e),new qt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,o=2*r-i;return new yt(Ra(e>=240?e-240:e+120,o,i),Ra(e,o,i),Ra(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new qt(Xc(this.h),Li(this.s),Li(this.l),h0(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=h0(this.opacity);return`${e===1?"hsl(":"hsla("}${Xc(this.h)}, ${Li(this.s)*100}%, ${Li(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Xc(e){return e=(e||0)%360,e<0?e+360:e}function Li(e){return Math.max(0,Math.min(1,e||0))}function Ra(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const af=e=>()=>e;function dG(e,t){return function(r){return e+r*t}}function mG(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function gG(e){return(e=+e)==1?of:function(t,r){return r-t?mG(t,r,e):af(isNaN(t)?r:t)}}function of(e,t){var r=t-e;return r?dG(e,r):af(isNaN(e)?t:e)}const Yc=function e(t){var r=gG(t);function i(o,l){var u=r((o=uo(o)).r,(l=uo(l)).r),h=r(o.g,l.g),d=r(o.b,l.b),b=of(o.opacity,l.opacity);return function(_){return o.r=u(_),o.g=h(_),o.b=d(_),o.opacity=b(_),o+""}}return i.gamma=e,i}(1);function wr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var ho=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fa=new RegExp(ho.source,"g");function vG(e){return function(){return e}}function _G(e){return function(t){return e(t)+""}}function bG(e,t){var r=ho.lastIndex=Fa.lastIndex=0,i,o,l,u=-1,h=[],d=[];for(e=e+"",t=t+"";(i=ho.exec(e))&&(o=Fa.exec(t));)(l=o.index)>r&&(l=t.slice(r,l),h[u]?h[u]+=l:h[++u]=l),(i=i[0])===(o=o[0])?h[u]?h[u]+=o:h[++u]=o:(h[++u]=null,d.push({i:u,x:wr(i,o)})),r=Fa.lastIndex;return r180?_+=360:_-b>180&&(b+=360),M.push({i:k.push(o(k)+"rotate(",null,i)-2,x:wr(b,_)})):_&&k.push(o(k)+"rotate("+_+i)}function h(b,_,k,M){b!==_?M.push({i:k.push(o(k)+"skewX(",null,i)-2,x:wr(b,_)}):_&&k.push(o(k)+"skewX("+_+i)}function d(b,_,k,M,E,B){if(b!==k||_!==M){var O=E.push(o(E)+"scale(",null,",",null,")");B.push({i:O-4,x:wr(b,k)},{i:O-2,x:wr(_,M)})}else(k!==1||M!==1)&&E.push(o(E)+"scale("+k+","+M+")")}return function(b,_){var k=[],M=[];return b=e(b),_=e(_),l(b.translateX,b.translateY,_.translateX,_.translateY,k,M),u(b.rotate,_.rotate,k,M),h(b.skewX,_.skewX,k,M),d(b.scaleX,b.scaleY,_.scaleX,_.scaleY,k,M),b=_=null,function(E){for(var B=-1,O=M.length,P;++B=0&&e._call.call(void 0,t),e=e._next;--wn}function Zc(){Yr=(p0=ti.now())+M0,wn=qn=0;try{CG()}finally{wn=0,BG(),Yr=0}}function zG(){var e=ti.now(),t=e-p0;t>cf&&(M0-=t,p0=e)}function BG(){for(var e,t=f0,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:f0=r);Pn=e,po(i)}function po(e){if(!wn){qn&&(qn=clearTimeout(qn));var t=e-Yr;t>24?(e<1/0&&(qn=setTimeout(Zc,e-ti.now()-M0)),Dn&&(Dn=clearInterval(Dn))):(Dn||(p0=ti.now(),Dn=setInterval(zG,cf)),wn=1,uf(Zc))}}function Jc(e,t,r){var i=new d0;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,r),i}var NG=Vo("start","end","cancel","interrupt"),DG=[],ff=0,Qc=1,mo=2,ji=3,eu=4,go=5,Ui=6;function E0(e,t,r,i,o,l){var u=e.__transition;if(!u)e.__transition={};else if(r in u)return;OG(e,r,{name:t,index:i,group:o,on:NG,tween:DG,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:ff})}function Zo(e,t){var r=Ht(e,t);if(r.state>ff)throw new Error("too late; already scheduled");return r}function Kt(e,t){var r=Ht(e,t);if(r.state>ji)throw new Error("too late; already running");return r}function Ht(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function OG(e,t,r){var i=e.__transition,o;i[t]=r,r.timer=hf(l,0,r.time);function l(b){r.state=Qc,r.timer.restart(u,r.delay,r.time),r.delay<=b&&u(b-r.delay)}function u(b){var _,k,M,E;if(r.state!==Qc)return d();for(_ in i)if(E=i[_],E.name===r.name){if(E.state===ji)return Jc(u);E.state===eu?(E.state=Ui,E.timer.stop(),E.on.call("interrupt",e,e.__data__,E.index,E.group),delete i[_]):+_mo&&i.state=0&&(t=t.slice(0,r)),!t||t==="start"})}function uV(e,t,r){var i,o,l=cV(t)?Zo:Kt;return function(){var u=l(this,e),h=u.on;h!==i&&(o=(i=h).copy()).on(t,r),u.on=o}}function hV(e,t){var r=this._id;return arguments.length<2?Ht(this.node(),r).on.on(e):this.each(uV(r,e,t))}function fV(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function pV(){return this.on("end.remove",fV(this._id))}function dV(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Xo(e));for(var i=this._groups,o=i.length,l=new Array(o),u=0;u=0))throw new Error(`invalid digits: ${e}`);if(t>15)return gf;const r=10**t;return function(i){this._+=i[0];for(let o=1,l=i.length;oqr)if(!(Math.abs(k*d-b*_)>qr)||!l)this._append`L${this._x1=t},${this._y1=r}`;else{let E=i-u,B=o-h,O=d*d+b*b,P=E*E+B*B,D=Math.sqrt(O),W=Math.sqrt(M),ce=l*Math.tan((vo-Math.acos((O+M-P)/(2*D*W)))/2),ue=ce/W,Z=ce/D;Math.abs(ue-1)>qr&&this._append`L${t+ue*_},${r+ue*k}`,this._append`A${l},${l},0,0,${+(k*E>_*B)},${this._x1=t+Z*d},${this._y1=r+Z*b}`}}arc(t,r,i,o,l,u){if(t=+t,r=+r,i=+i,u=!!u,i<0)throw new Error(`negative radius: ${i}`);let h=i*Math.cos(o),d=i*Math.sin(o),b=t+h,_=r+d,k=1^u,M=u?o-l:l-o;this._x1===null?this._append`M${b},${_}`:(Math.abs(this._x1-b)>qr||Math.abs(this._y1-_)>qr)&&this._append`L${b},${_}`,i&&(M<0&&(M=M%_o+_o),M>qV?this._append`A${i},${i},0,1,${k},${t-h},${r-d}A${i},${i},0,1,${k},${this._x1=b},${this._y1=_}`:M>qr&&this._append`A${i},${i},0,${+(M>=vo)},${k},${this._x1=t+i*Math.cos(l)},${this._y1=r+i*Math.sin(l)}`)}rect(t,r,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function $V(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const tu=Symbol("implicit");function Qo(){var e=new Oc,t=[],r=[],i=tu;function o(l){let u=e.get(l);if(u===void 0){if(i!==tu)return i;e.set(l,u=t.push(l)-1)}return r[u%r.length]}return o.domain=function(l){if(!arguments.length)return t.slice();t=[],e=new Oc;for(const u of l)e.has(u)||e.set(u,t.push(u)-1);return o},o.range=function(l){return arguments.length?(r=Array.from(l),o):r.slice()},o.unknown=function(l){return arguments.length?(i=l,o):i},o.copy=function(){return Qo(t,r).unknown(i)},$V.apply(o,arguments),o}function jV(e){for(var t=e.length/6|0,r=new Array(t),i=0;i=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new HV(t)}var VV=Array.prototype.slice;function XV(e){return e[0]}function YV(e){return e[1]}class WV{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function KV(e){return new WV(e,!0)}function ZV(e){return e.source}function JV(e){return e.target}function QV(e){let t=ZV,r=JV,i=XV,o=YV,l=null,u=null,h=GV(d);function d(){let b;const _=VV.call(arguments),k=t.apply(this,_),M=r.apply(this,_);if(l==null&&(u=e(b=h())),u.lineStart(),_[0]=k,u.point(+i.apply(this,_),+o.apply(this,_)),_[0]=M,u.point(+i.apply(this,_),+o.apply(this,_)),u.lineEnd(),b)return u=null,b+""||null}return d.source=function(b){return arguments.length?(t=b,d):t},d.target=function(b){return arguments.length?(r=b,d):r},d.x=function(b){return arguments.length?(i=typeof b=="function"?b:ru(+b),d):i},d.y=function(b){return arguments.length?(o=typeof b=="function"?b:ru(+b),d):o},d.context=function(b){return arguments.length?(b==null?l=u=null:u=e(l=b),d):l},d}function eX(){return QV(KV)}const Pi=e=>()=>e;function tX(e,{sourceEvent:t,target:r,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function ar(e,t,r){this.k=e,this.x=t,this.y=r}ar.prototype={constructor:ar,scale:function(e){return e===1?this:new ar(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ar(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var T0=new ar(1,0,0);Vi.prototype=ar.prototype;function Vi(e){for(;!e.__zoom;)if(!(e=e.parentNode))return T0;return e.__zoom}function La(e){e.stopImmediatePropagation()}function On(e){e.preventDefault(),e.stopImmediatePropagation()}function rX(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function nX(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function nu(){return this.__zoom||T0}function iX(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function aX(){return navigator.maxTouchPoints||"ontouchstart"in this}function oX(e,t,r){var i=e.invertX(t[0][0])-r[0][0],o=e.invertX(t[1][0])-r[1][0],l=e.invertY(t[0][1])-r[0][1],u=e.invertY(t[1][1])-r[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function sX(){var e=rX,t=nX,r=oX,i=iX,o=aX,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],h=250,d=EG,b=Vo("start","zoom","end"),_,k,M,E=500,B=150,O=0,P=10;function D(L){L.property("__zoom",nu).on("wheel.zoom",He,{passive:!1}).on("mousedown.zoom",Se).on("dblclick.zoom",Ge).filter(o).on("touchstart.zoom",q).on("touchmove.zoom",de).on("touchend.zoom touchcancel.zoom",Ae).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}D.transform=function(L,U,G,F){var X=L.selection?L.selection():L;X.property("__zoom",nu),L!==X?Z(L,U,G,F):X.interrupt().each(function(){_e(this,arguments).event(F).start().zoom(null,typeof U=="function"?U.apply(this,arguments):U).end()})},D.scaleBy=function(L,U,G,F){D.scaleTo(L,function(){var X=this.__zoom.k,ee=typeof U=="function"?U.apply(this,arguments):U;return X*ee},G,F)},D.scaleTo=function(L,U,G,F){D.transform(L,function(){var X=t.apply(this,arguments),ee=this.__zoom,ae=G==null?ue(X):typeof G=="function"?G.apply(this,arguments):G,V=ee.invert(ae),we=typeof U=="function"?U.apply(this,arguments):U;return r(ce(W(ee,we),ae,V),X,u)},G,F)},D.translateBy=function(L,U,G,F){D.transform(L,function(){return r(this.__zoom.translate(typeof U=="function"?U.apply(this,arguments):U,typeof G=="function"?G.apply(this,arguments):G),t.apply(this,arguments),u)},null,F)},D.translateTo=function(L,U,G,F,X){D.transform(L,function(){var ee=t.apply(this,arguments),ae=this.__zoom,V=F==null?ue(ee):typeof F=="function"?F.apply(this,arguments):F;return r(T0.translate(V[0],V[1]).scale(ae.k).translate(typeof U=="function"?-U.apply(this,arguments):-U,typeof G=="function"?-G.apply(this,arguments):-G),ee,u)},F,X)};function W(L,U){return U=Math.max(l[0],Math.min(l[1],U)),U===L.k?L:new ar(U,L.x,L.y)}function ce(L,U,G){var F=U[0]-G[0]*L.k,X=U[1]-G[1]*L.k;return F===L.x&&X===L.y?L:new ar(L.k,F,X)}function ue(L){return[(+L[0][0]+ +L[1][0])/2,(+L[0][1]+ +L[1][1])/2]}function Z(L,U,G,F){L.on("start.zoom",function(){_e(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){_e(this,arguments).event(F).end()}).tween("zoom",function(){var X=this,ee=arguments,ae=_e(X,ee).event(F),V=t.apply(X,ee),we=G==null?ue(V):typeof G=="function"?G.apply(X,ee):G,Fe=Math.max(V[1][0]-V[0][0],V[1][1]-V[0][1]),ze=X.__zoom,Be=typeof U=="function"?U.apply(X,ee):U,Ne=d(ze.invert(we).concat(Fe/ze.k),Be.invert(we).concat(Fe/Be.k));return function(rt){if(rt===1)rt=Be;else{var ct=Ne(rt),$t=Fe/ct[2];rt=new ar($t,we[0]-ct[0]*$t,we[1]-ct[1]*$t)}ae.zoom(null,rt)}})}function _e(L,U,G){return!G&&L.__zooming||new be(L,U)}function be(L,U){this.that=L,this.args=U,this.active=0,this.sourceEvent=null,this.extent=t.apply(L,U),this.taps=0}be.prototype={event:function(L){return L&&(this.sourceEvent=L),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(L,U){return this.mouse&&L!=="mouse"&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&L!=="touch"&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&L!=="touch"&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(L){var U=xr(this.that).datum();b.call(L,this.that,new tX(L,{sourceEvent:this.sourceEvent,target:D,type:L,transform:this.that.__zoom,dispatch:b}),U)}};function He(L,...U){if(!e.apply(this,arguments))return;var G=_e(this,U).event(L),F=this.__zoom,X=Math.max(l[0],Math.min(l[1],F.k*Math.pow(2,i.apply(this,arguments)))),ee=Fr(L);if(G.wheel)(G.mouse[0][0]!==ee[0]||G.mouse[0][1]!==ee[1])&&(G.mouse[1]=F.invert(G.mouse[0]=ee)),clearTimeout(G.wheel);else{if(F.k===X)return;G.mouse=[ee,F.invert(ee)],Gi(this),G.start()}On(L),G.wheel=setTimeout(ae,B),G.zoom("mouse",r(ce(W(F,X),G.mouse[0],G.mouse[1]),G.extent,u));function ae(){G.wheel=null,G.end()}}function Se(L,...U){if(M||!e.apply(this,arguments))return;var G=L.currentTarget,F=_e(this,U,!0).event(L),X=xr(L.view).on("mousemove.zoom",we,!0).on("mouseup.zoom",Fe,!0),ee=Fr(L,G),ae=L.clientX,V=L.clientY;eG(L.view),La(L),F.mouse=[ee,this.__zoom.invert(ee)],Gi(this),F.start();function we(ze){if(On(ze),!F.moved){var Be=ze.clientX-ae,Ne=ze.clientY-V;F.moved=Be*Be+Ne*Ne>O}F.event(ze).zoom("mouse",r(ce(F.that.__zoom,F.mouse[0]=Fr(ze,G),F.mouse[1]),F.extent,u))}function Fe(ze){X.on("mousemove.zoom mouseup.zoom",null),tG(ze.view,F.moved),On(ze),F.event(ze).end()}}function Ge(L,...U){if(e.apply(this,arguments)){var G=this.__zoom,F=Fr(L.changedTouches?L.changedTouches[0]:L,this),X=G.invert(F),ee=G.k*(L.shiftKey?.5:2),ae=r(ce(W(G,ee),F,X),t.apply(this,U),u);On(L),h>0?xr(this).transition().duration(h).call(Z,ae,F,L):xr(this).call(D.transform,ae,F,L)}}function q(L,...U){if(e.apply(this,arguments)){var G=L.touches,F=G.length,X=_e(this,U,L.changedTouches.length===F).event(L),ee,ae,V,we;for(La(L),ae=0;aetypeof e=="string"||typeof e=="number",hX=e=>(e==null?void 0:e.vtype)===vf,fX=e=>(e==null?void 0:e.vtype)===_f;function Hi(e,t){let r;if(typeof e=="string")r=vf;else if(typeof e=="function")r=_f;else throw new Error("Invalid VNode type");return{vtype:r,type:e,props:t}}function pX(e){return e.children}const dX={isSvg:!1};function iu(e,t){Array.isArray(t)||(t=[t]),t=t.filter(Boolean),t.length&&e.append(...t)}function mX(e,t,r){for(const i in t)if(!(i==="key"||i==="children"||i==="ref"))if(i==="dangerouslySetInnerHTML")e.innerHTML=t[i].__html;else if(i==="innerHTML"||i==="textContent"||i==="innerText"||i==="value"&&["textarea","select"].includes(e.tagName)){const o=t[i];o!=null&&(e[i]=o)}else i.startsWith("on")?e[i.toLowerCase()]=t[i]:vX(e,i,t[i],r.isSvg)}const gX={className:"class",labelFor:"for"};function vX(e,t,r,i){if(t=gX[t]||t,r===!0)e.setAttribute(t,"");else if(r===!1)e.removeAttribute(t);else{const o=i?cX[t]:void 0;o!==void 0?e.setAttributeNS(o,t,r):e.setAttribute(t,r)}}function _X(e){return e.reduce((t,r)=>t.concat(r),[])}function bo(e,t){return Array.isArray(e)?_X(e.map(r=>bo(r,t))):es(e,t)}function es(e,t=dX){if(e==null||typeof e=="boolean")return null;if(e instanceof Node)return e;if(fX(e)){const{type:r,props:i}=e;if(r===pX){const l=document.createDocumentFragment();if(i.children){const u=bo(i.children,t);iu(l,u)}return l}const o=r(i);return es(o,t)}if(uX(e))return document.createTextNode(`${e}`);if(hX(e)){let r;const{type:i,props:o}=e;if(!t.isSvg&&i==="svg"&&(t=Object.assign({},t,{isSvg:!0})),t.isSvg?r=document.createElementNS(lX,i):r=document.createElement(i),mX(r,o,t),o.children){let u=t;t.isSvg&&i==="foreignObject"&&(u=Object.assign({},u,{isSvg:!1}));const h=bo(o.children,u);h!=null&&iu(r,h)}const{ref:l}=o;return typeof l=="function"&&l(r),r}throw new Error("mount: Invalid Vnode!")}function Pa(e){return es(e)}function bX(e){var t=0,r=e.children,i=r&&r.length;if(!i)t=1;else for(;--i>=0;)t+=r[i].value;e.value=t}function yX(){return this.eachAfter(bX)}function wX(e){var t=this,r,i=[t],o,l,u;do for(r=i.reverse(),i=[];t=r.pop();)if(e(t),o=t.children,o)for(l=0,u=o.length;l=0;--o)r.push(i[o]);return this}function kX(e){for(var t=this,r=[t],i=[],o,l,u;t=r.pop();)if(i.push(t),o=t.children,o)for(l=0,u=o.length;l=0;)r+=i[o].value;t.value=r})}function SX(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function MX(e){for(var t=this,r=EX(t,e),i=[t];t!==r;)t=t.parent,i.push(t);for(var o=i.length;e!==r;)i.splice(o,0,e),e=e.parent;return i}function EX(e,t){if(e===t)return e;var r=e.ancestors(),i=t.ancestors(),o=null;for(e=r.pop(),t=i.pop();e===t;)o=e,e=r.pop(),t=i.pop();return o}function TX(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function CX(){var e=[];return this.each(function(t){e.push(t)}),e}function zX(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function BX(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function ts(e,t){var r=new m0(e),i=+e.value&&(r.value=e.value),o,l=[r],u,h,d,b;for(t==null&&(t=DX);o=l.pop();)if(i&&(o.value=+o.data.value),(h=t(o.data))&&(b=h.length))for(o.children=new Array(b),d=b-1;d>=0;--d)l.push(u=o.children[d]=new m0(h[d])),u.parent=o,u.depth=o.depth+1;return r.eachBefore(IX)}function NX(){return ts(this).eachBefore(OX)}function DX(e){return e.children}function OX(e){e.data=e.data.data}function IX(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function m0(e){this.data=e,this.depth=this.height=0,this.parent=null}m0.prototype=ts.prototype={constructor:m0,count:yX,each:wX,eachAfter:kX,eachBefore:xX,sum:AX,sort:SX,path:MX,ancestors:TX,descendants:CX,leaves:zX,links:BX,copy:NX};const RX="d3-flextree",FX="2.1.2",LX="build/d3-flextree.js",qX="index",PX={name:"Chris Maloney",url:"http://chrismaloney.org"},HX="Flexible tree layout algorithm that allows for variable node sizes.",$X=["d3","d3-module","layout","tree","hierarchy","d3-hierarchy","plugin","d3-plugin","infovis","visualization","2d"],jX="https://github.com/klortho/d3-flextree",UX="WTFPL",GX={type:"git",url:"https://github.com/klortho/d3-flextree.git"},VX={clean:"rm -rf build demo test","build:demo":"rollup -c --environment BUILD:demo","build:dev":"rollup -c --environment BUILD:dev","build:prod":"rollup -c --environment BUILD:prod","build:test":"rollup -c --environment BUILD:test",build:"rollup -c",lint:"eslint index.js src","test:main":"node test/bundle.js","test:browser":"node test/browser-tests.js",test:"npm-run-all test:*",prepare:"npm-run-all clean build lint test"},XX={"d3-hierarchy":"^1.1.5"},YX={"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015-rollup":"^3.0.0",d3:"^4.13.0","d3-selection-multi":"^1.0.1",eslint:"^4.19.1",jsdom:"^11.6.2","npm-run-all":"^4.1.2",rollup:"^0.55.3","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-copy":"^0.2.3","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.2","rollup-plugin-uglify":"^3.0.0","uglify-es":"^3.3.9"},WX={name:RX,version:FX,main:LX,module:qX,"jsnext:main":"index",author:PX,description:HX,keywords:$X,homepage:jX,license:UX,repository:GX,scripts:VX,dependencies:XX,devDependencies:YX},{version:KX}=WX,ZX=Object.freeze({children:e=>e.children,nodeSize:e=>e.data.size,spacing:0});function yf(e){const t=Object.assign({},ZX,e);function r(h){const d=t[h];return typeof d=="function"?d:()=>d}function i(h){const d=u(l(),h,b=>b.children);return d.update(),d.data}function o(){const h=r("nodeSize"),d=r("spacing");return class bf extends ts.prototype.constructor{constructor(_){super(_)}copy(){const _=u(this.constructor,this,k=>k.children);return _.each(k=>k.data=k.data.data),_}get size(){return h(this)}spacing(_){return d(this,_)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const _=this.ancestors();return _[_.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return this.children===null}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce((_,k)=>bf.maxExtents(_,k.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(_,k){return{top:Math.min(_.top,k.top),bottom:Math.max(_.bottom,k.bottom),left:Math.min(_.left,k.left),right:Math.max(_.right,k.right)}}}}function l(){const h=o(),d=r("nodeSize"),b=r("spacing");return class extends h{constructor(_){super(_),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return d(this.data)}spacing(_){return b(this.data,_.data)}get x(){return this.data.x}set x(_){this.data.x=_}get y(){return this.data.y}set y(_){this.data.y=_}update(){return wf(this),xf(this),this}}}function u(h,d,b){const _=(k,M)=>{const E=new h(k);Object.assign(E,{parent:M,depth:M===null?0:M.depth+1,height:0,length:1});const B=b(k)||[];return E.children=B.length===0?null:B.map(O=>_(O,E)),E.children&&Object.assign(E,E.children.reduce((O,P)=>({height:Math.max(O.height,P.height+1),length:O.length+P.length}),E)),E};return _(d,null)}return Object.assign(i,{nodeSize(h){return arguments.length?(t.nodeSize=h,i):t.nodeSize},spacing(h){return arguments.length?(t.spacing=h,i):t.spacing},children(h){return arguments.length?(t.children=h,i):t.children},hierarchy(h,d){const b=typeof d>"u"?t.children:d;return u(o(),h,b)},dump(h){const d=r("nodeSize"),b=_=>k=>{const M=_+" ",E=_+" ",{x:B,y:O}=k,P=d(k),D=k.children||[],W=D.length===0?" ":`,${M}children: [${E}${D.map(b(E)).join(E)}${M}],${_}`;return`{ size: [${P.join(", ")}],${M}x: ${B}, y: ${O}${W}},`};return b(` -`)(h)}}),i}yf.version=KX;const wf=(e,t=0)=>(e.y=t,(e.children||[]).reduce((r,i)=>{const[o,l]=r;wf(i,e.y+e.ySize);const u=(o===0?i.lExt:i.rExt).bottom;o!==0&&QX(e,o,l);const h=sY(u,o,l);return[o+1,h]},[0,null]),JX(e),oY(e),e),xf=(e,t,r)=>{typeof t>"u"&&(t=-e.relX-e.prelim,r=0);const i=t+e.relX;return e.relX=i+e.prelim-r,e.prelim=0,e.x=r+e.relX,(e.children||[]).forEach(o=>xf(o,i,e.x)),e},JX=e=>{(e.children||[]).reduce((t,r)=>{const[i,o]=t,l=i+r.shift,u=o+l+r.change;return r.relX+=u,[l,u]},[0,0])},QX=(e,t,r)=>{const i=e.children[t-1],o=e.children[t];let l=i,u=i.relX,h=o,d=o.relX,b=!0;for(;l&&h;){l.bottom>r.lowY&&(r=r.next);const _=u+l.prelim-(d+h.prelim)+l.xSize/2+h.xSize/2+l.spacing(h);(_>0||_<0&&b)&&(d+=_,eY(o,_),tY(e,t,r.index,_)),b=!1;const k=l.bottom,M=h.bottom;k<=M&&(l=nY(l),l&&(u+=l.relX)),k>=M&&(h=rY(h),h&&(d+=h.relX))}!l&&h?iY(e,t,h,d):l&&!h&&aY(e,t,l,u)},eY=(e,t)=>{e.relX+=t,e.lExtRelX+=t,e.rExtRelX+=t},tY=(e,t,r,i)=>{const o=e.children[t],l=t-r;if(l>1){const u=i/l;e.children[r+1].shift+=u,o.shift-=u,o.change-=i-u}},rY=e=>e.hasChildren?e.firstChild:e.lThr,nY=e=>e.hasChildren?e.lastChild:e.rThr,iY=(e,t,r,i)=>{const o=e.firstChild,l=o.lExt,u=e.children[t];l.lThr=r;const h=i-r.relX-o.lExtRelX;l.relX+=h,l.prelim-=h,o.lExt=u.lExt,o.lExtRelX=u.lExtRelX},aY=(e,t,r,i)=>{const o=e.children[t],l=o.rExt,u=e.children[t-1];l.rThr=r;const h=i-r.relX-o.rExtRelX;l.relX+=h,l.prelim-=h,o.rExt=u.rExt,o.rExtRelX=u.rExtRelX},oY=e=>{if(e.hasChildren){const t=e.firstChild,r=e.lastChild,i=(t.prelim+t.relX-t.xSize/2+r.relX+r.prelim+r.xSize/2)/2;Object.assign(e,{prelim:i,lExt:t.lExt,lExtRelX:t.lExtRelX,rExt:r.rExt,rExtRelX:r.rExtRelX})}},sY=(e,t,r)=>{for(;r!==null&&e>=r.lowY;)r=r.next;return{lowY:e,index:t,next:r}},kf=".markmap{font:300 16px/20px sans-serif}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign a{color:#0097e6}.markmap-foreign a:hover{color:#00a8ff}.markmap-foreign code{padding:.25em;font-size:calc(1em - 2px);color:#555;background-color:#f0f0f0;border-radius:2px}.markmap-foreign pre{margin:0}.markmap-foreign pre>code{display:block}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:700}.markmap-foreign mark{background:#ffeaa7}",lY=".markmap-container{position:absolute;width:0;height:0;top:-100px;left:-100px;overflow:hidden}.markmap-container>.markmap-foreign{display:inline-block}.markmap-container>.markmap-foreign>div:last-child,.markmap-container>.markmap-foreign>div:last-child :not(pre){white-space:nowrap}.markmap-container>.markmap-foreign>div:last-child code{white-space:inherit}",cY=kf;function au(e){const t=e.data;return Math.max(4-2*t.depth,1.5)}function ou(e,t){const r=vj(e,t);return e[r]}function Ha(e){e.stopPropagation()}function uY(){return{transformHtml:new $r}}const Af=new $r,Sf=Qo(UV),Mf=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh"),Ef=class yo{constructor(t,r){this.options=yo.defaultOptions,this.revokers=[],this.handleZoom=i=>{const{transform:o}=i;this.g.attr("transform",o)},this.handlePan=i=>{i.preventDefault();const o=Vi(this.svg.node()),l=o.translate(-i.deltaX/o.k,-i.deltaY/o.k);this.svg.call(this.zoom.transform,l)},this.handleClick=(i,o)=>{let l=this.options.toggleRecursively;(Mf?i.metaKey:i.ctrlKey)&&(l=!l),this.toggleNode(o.data,l)},this.viewHooks=uY(),this.svg=t.datum?t:xr(t),this.styleNode=this.svg.append("style"),this.zoom=sX().filter(i=>this.options.scrollForPan&&i.type==="wheel"?i.ctrlKey&&!i.button:(!i.ctrlKey||i.type==="wheel")&&!i.button).on("zoom",this.handleZoom),this.setOptions(r),this.state={id:this.options.id||this.svg.attr("id")||x$(),minX:0,maxX:0,minY:0,maxY:0},this.g=this.svg.append("g"),this.revokers.push(Af.tap(()=>{this.setData()}))}getStyleContent(){const{style:t}=this.options,{id:r}=this.state,i=typeof t=="function"?t(r):"";return[this.options.embedGlobalCSS&&kf,i].filter(Boolean).join(` +`,W$=["d3@7.8.5/dist/d3.min.js","markmap-view@0.15.8/dist/browser/index.js"],Ia="katex",K$=["katex@0.16.8/dist/katex.min.js"].map(e=>A0(e)),Hh=A0("webfontloader@1.6.28/webfontloader.js");Hh.data.defer=!0;const Z$=["katex@0.16.8/dist/katex.min.css"].map(e=>Ph(e)),J$={versions:{katex:"0.16.8",webfontloader:"1.6.28"},preloadScripts:K$,scripts:[{type:"iife",data:{fn:e=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{e().refreshHook.call()}}},getParams({getMarkmap:e}){return[e]}}},Hh],styles:Z$};function Q$(e,t,r){return e.map(i=>{if(typeof i=="string"&&!i.includes("://")){i.startsWith("npm:")||(i=`npm:${i}`);const o=4+t.length;i.startsWith(`npm:${t}/`)&&(i=`${i.slice(0,o)}@${r}${i.slice(o)}`)}return i})}function Go(e,t){return t.type==="script"&&t.data.src?{...t,data:{...t.data,src:e.getFullUrl(t.data.src)}}:t}function ej(e,t){return t.type==="stylesheet"&&t.data.href?{...t,data:{...t.data,href:e.getFullUrl(t.data.href)}}:t}function tj(e){return{transformer:e,parser:new $r,beforeParse:new $r,afterParse:new $r,htmltag:new $r,retransform:new $r}}const Ln={name:Ia,config:J$,transform(e){var t,r,i,o;let l;const u=((r=(t=Ln.config)==null?void 0:t.preloadScripts)==null?void 0:r.map(_=>Go(e.transformer.urlBuilder,_)))||[],h=()=>(l||(l=Uo(u)),l),d=(_,x)=>{const{katex:M}=window;return M?M.renderToString(_,{displayMode:x,throwOnError:!1}):(h().then(()=>{e.retransform.call()}),_)};let b=jn;return e.parser.tap(_=>{_.use(X$),_.renderer.rules.katex=(x,M)=>(b(),d(x[M].content,!!x[M].block))}),e.beforeParse.tap((_,x)=>{b=()=>{x.features[Ia]=!0}}),e.afterParse.tap((_,x)=>{var M;const E=(M=x.frontmatter)==null?void 0:M.markmap;E&&["extraJs","extraCss"].forEach(B=>{var O,P;const D=E[B];D&&(E[B]=Q$(D,Ia,((P=(O=Ln.config)==null?void 0:O.versions)==null?void 0:P.katex)||""))})}),{styles:(i=Ln.config)==null?void 0:i.styles,scripts:(o=Ln.config)==null?void 0:o.scripts}}},rj="frontmatter",nj={name:rj,transform(e){return e.beforeParse.tap((t,r)=>{const{content:i}=r;if(!/^---\r?\n/.test(i))return;const o=/\n---\r?\n/.exec(i);if(!o)return;const l=i.slice(4,o.index);let u;try{u=dh.load(l),u!=null&&u.markmap&&(u.markmap=ij(u.markmap))}catch{return}r.frontmatter=u,r.content=i.slice(o.index+o[0].length),r.contentLineOffset=i.slice(0,o.index).split(` +`).length+1}),{}}};function ij(e){if(e)return["color","extraJs","extraCss"].forEach(t=>{e[t]!=null&&(e[t]=aj(e[t]))}),["duration","maxWidth","initialExpandLevel"].forEach(t=>{e[t]!=null&&(e[t]=oj(e[t]))}),e}function aj(e){let t;return typeof e=="string"?t=[e]:Array.isArray(e)&&(t=e.filter(r=>r&&typeof r=="string")),t!=null&&t.length?t:void 0}function oj(e){if(!isNaN(+e))return+e}const sj="npmUrl",lj={name:sj,transform(e){return e.afterParse.tap((t,r)=>{const{frontmatter:i}=r,o=i==null?void 0:i.markmap;o&&["extraJs","extraCss"].forEach(l=>{const u=o[l];u&&(o[l]=u.map(h=>h.startsWith("npm:")?e.transformer.urlBuilder.getFullUrl(h.slice(4)):h))})}),{}}},Dc="hljs",cj=["@highlightjs/cdn-assets@11.8.0/highlight.min.js"].map(e=>A0(e)),uj=["@highlightjs/cdn-assets@11.8.0/styles/default.min.css"].map(e=>Ph(e)),hj={versions:{hljs:"11.8.0"},preloadScripts:cj,styles:uj},oo={name:Dc,config:hj,transform(e){var t,r,i;let o;const l=((r=(t=oo.config)==null?void 0:t.preloadScripts)==null?void 0:r.map(d=>Go(e.transformer.urlBuilder,d)))||[],u=()=>(o||(o=Uo(l)),o);let h=jn;return e.parser.tap(d=>{d.set({highlight:(b,_)=>{h();const{hljs:x}=window;return x?x.highlightAuto(b,_?[_]:void 0).value:(u().then(()=>{e.retransform.call()}),b)}})}),e.beforeParse.tap((d,b)=>{h=()=>{b.features[Dc]=!0}}),{styles:(i=oo.config)==null?void 0:i.styles}}},fj=[nj,Ln,oo,lj];function $h(e){var t,r;if(e.type==="heading")e.children=e.children.filter(i=>i.type!=="paragraph");else if(e.type==="list_item")e.children=e.children.filter(i=>["paragraph","fence"].includes(i.type)?(e.content||(e.content=i.content,e.payload={...e.payload,...i.payload}),!1):!0),((t=e.payload)==null?void 0:t.index)!=null&&(e.content=`${e.payload.index}. ${e.content}`);else if(e.type==="ordered_list"){let i=((r=e.payload)==null?void 0:r.startIndex)??1;e.children.forEach(o=>{o.type==="list_item"&&(o.payload={...o.payload,index:i},i+=1)})}e.children.length>0&&(e.children.forEach(i=>$h(i)),e.children.length===1&&!e.children[0].content&&(e.children=e.children[0].children))}function jh(e,t=0){e.depth=t,e.children.forEach(r=>{jh(r,t+1)})}class pj{constructor(t=fj){this.assetsMap={},this.urlBuilder=new d$,this.hooks=tj(this),this.plugins=t.map(o=>typeof o=="function"?o():o);const r={};for(const{name:o,transform:l}of this.plugins)r[o]=l(this.hooks);this.assetsMap=r;const i=new Br("full",{html:!0,breaks:!0,maxNesting:1/0});i.renderer.rules.htmltag=A$(i.renderer.rules.htmltag,(o,...l)=>{const u=o(...l);return this.hooks.htmltag.call({args:l,result:u}),u}),this.md=i,this.hooks.parser.call(i)}buildTree(t){const{md:r}=this,i={type:"root",depth:0,content:"",children:[],payload:{}},o=[i];let l=0;for(const u of t){const h={};u.lines&&(h.lines=u.lines);let d=o[o.length-1];if(u.type.endsWith("_open")){const b=u.type.slice(0,-5);if(b==="heading")for(l=u.hLevel;(d==null?void 0:d.depth)>=l;)o.pop(),d=o[o.length-1];else l=Math.max(l,(d==null?void 0:d.depth)||0)+1,b==="ordered_list"&&(h.startIndex=u.order);const _={type:b,depth:l,payload:h,content:"",children:[]};d.children.push(_),o.push(_)}else if(d){if(u.type===`${d.type}_close`)d.type==="heading"?l=d.depth:(o.pop(),l=0);else if(u.type==="inline"){const b=this.hooks.htmltag.tap(x=>{var M;const E=(M=x.result)==null?void 0:M.match(/^$/),B=E==null?void 0:E[1].trim().split(" ");(B==null?void 0:B[0])==="fold"&&(d.payload={...d.payload,fold:["all","recursively"].includes(B[1])?2:1},x.result="")}),_=r.renderer.render([u],r.options,{});b(),d.content=`${d.content||""}${_}`}else if(u.type==="fence"){const b=r.renderer.render([u],r.options,{});d.children.push({type:u.type,depth:l+1,content:b,children:[],payload:h})}}else continue}return i}transform(t){var r;const i={content:t,features:{},contentLineOffset:0};this.hooks.beforeParse.call(this.md,i);const o=this.md.parse(i.content,{});this.hooks.afterParse.call(this.md,i);let l=this.buildTree(o);return $h(l),((r=l.children)==null?void 0:r.length)===1&&(l=l.children[0]),jh(l),{...i,root:l}}getAssets(t){const r=[],i=[];t??(t=this.plugins.map(o=>o.name));for(const o of t.map(l=>this.assetsMap[l]))o&&(o.styles&&r.push(...o.styles),o.scripts&&i.push(...o.scripts));return{styles:r.map(o=>ej(this.urlBuilder,o)),scripts:i.map(o=>Go(this.urlBuilder,o))}}getUsedAssets(t){const r=this.plugins.map(i=>i.name).filter(i=>t[i]);return this.getAssets(r)}fillTemplate(t,r,i){i={...i},i.baseJs??(i.baseJs=W$.map(_=>this.urlBuilder.getFullUrl(_)).map(_=>A0(_)));const{scripts:o,styles:l}=r,u=[...l?y$(l):[]],h={getMarkmap:()=>window.markmap,getOptions:i.getOptions,jsonOptions:i.jsonOptions,root:t},d=[...b$([...i.baseJs,...o||[],{type:"iife",data:{fn:(_,x,M,E)=>{const B=_();window.mm=B.Markmap.create("svg#mindmap",(x||B.deriveOptions)(E),M)},getParams:({getMarkmap:_,getOptions:x,root:M,jsonOptions:E})=>[_,x,M,E]}}],h)];return Y$.replace("",()=>u.join("")).replace("",()=>d.join(""))}}class Oc extends Map{constructor(t,r=gj){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[i,o]of t)this.set(i,o)}get(t){return super.get(Ic(this,t))}has(t){return super.has(Ic(this,t))}set(t,r){return super.set(dj(this,t),r)}delete(t){return super.delete(mj(this,t))}}function Ic({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):r}function dj({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):(e.set(i,r),r)}function mj({_intern:e,_key:t},r){const i=t(r);return e.has(i)&&(r=e.get(i),e.delete(i)),r}function gj(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Rc(e,t){let r;if(t===void 0)for(const i of e)i!=null&&(r=i)&&(r=i);else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(r=o)&&(r=o)}return r}function Fc(e,t){let r;if(t===void 0)for(const i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function vj(e,t){let r,i=-1,o=-1;if(t===void 0)for(const l of e)++o,l!=null&&(r>l||r===void 0&&l>=l)&&(r=l,i=o);else for(let l of e)(l=t(l,++o,e))!=null&&(r>l||r===void 0&&l>=l)&&(r=l,i=o);return i}var _j={value:()=>{}};function Vo(){for(var e=0,t=arguments.length,r={},i;e=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}$i.prototype=Vo.prototype={constructor:$i,on:function(e,t){var r=this._,i=bj(e+"",r),o,l=-1,u=i.length;if(arguments.length<2){for(;++l0)for(var r=new Array(o),i=0,o,l;i=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),qc.hasOwnProperty(t)?{space:qc[t],local:e}:e}function wj(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===so&&t.documentElement.namespaceURI===so?t.createElement(e):t.createElementNS(r,e)}}function xj(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Uh(e){var t=S0(e);return(t.local?xj:wj)(t)}function kj(){}function Xo(e){return e==null?kj:function(){return this.querySelector(e)}}function Aj(e){typeof e!="function"&&(e=Xo(e));for(var t=this._groups,r=t.length,i=new Array(r),o=0;o=ce&&(ce=W+1);!(Z=P[ce])&&++ce=0;)(u=i[o])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function Wj(e){e||(e=Kj);function t(x,M){return x&&M?e(x.__data__,M.__data__):!x-!M}for(var r=this._groups,i=r.length,o=new Array(i),l=0;lt?1:e>=t?0:NaN}function Zj(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Jj(){return Array.from(this)}function Qj(){for(var e=this._groups,t=0,r=e.length;t1?this.each((t==null?uU:typeof t=="function"?fU:hU)(e,t,r??"")):yn(this.node(),e)}function yn(e,t){return e.style.getPropertyValue(t)||Wh(e).getComputedStyle(e,null).getPropertyValue(t)}function dU(e){return function(){delete this[e]}}function mU(e,t){return function(){this[e]=t}}function gU(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function vU(e,t){return arguments.length>1?this.each((t==null?dU:typeof t=="function"?gU:mU)(e,t)):this.node()[e]}function Kh(e){return e.trim().split(/^|\s+/)}function Yo(e){return e.classList||new Zh(e)}function Zh(e){this._node=e,this._names=Kh(e.getAttribute("class")||"")}Zh.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Jh(e,t){for(var r=Yo(e),i=-1,o=t.length;++i=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function GU(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,o=t.length,l;r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Fi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Fi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=nG.exec(e))?new yt(t[1],t[2],t[3],1):(t=iG.exec(e))?new yt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aG.exec(e))?Fi(t[1],t[2],t[3],t[4]):(t=oG.exec(e))?Fi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sG.exec(e))?Vc(t[1],t[2]/100,t[3]/100,1):(t=lG.exec(e))?Vc(t[1],t[2]/100,t[3]/100,t[4]):Pc.hasOwnProperty(e)?jc(Pc[e]):e==="transparent"?new yt(NaN,NaN,NaN,0):null}function jc(e){return new yt(e>>16&255,e>>8&255,e&255,1)}function Fi(e,t,r,i){return i<=0&&(e=t=r=NaN),new yt(e,t,r,i)}function hG(e){return e instanceof ai||(e=ei(e)),e?(e=e.rgb(),new yt(e.r,e.g,e.b,e.opacity)):new yt}function uo(e,t,r,i){return arguments.length===1?hG(e):new yt(e,t,r,i??1)}function yt(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}Wo(yt,uo,rf(ai,{brighter(e){return e=e==null?u0:Math.pow(u0,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Math.pow(Jn,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yt(Vr(this.r),Vr(this.g),Vr(this.b),h0(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Uc,formatHex:Uc,formatHex8:fG,formatRgb:Gc,toString:Gc}));function Uc(){return`#${jr(this.r)}${jr(this.g)}${jr(this.b)}`}function fG(){return`#${jr(this.r)}${jr(this.g)}${jr(this.b)}${jr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gc(){const e=h0(this.opacity);return`${e===1?"rgb(":"rgba("}${Vr(this.r)}, ${Vr(this.g)}, ${Vr(this.b)}${e===1?")":`, ${e})`}`}function h0(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function jr(e){return e=Vr(e),(e<16?"0":"")+e.toString(16)}function Vc(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new qt(e,t,r,i)}function nf(e){if(e instanceof qt)return new qt(e.h,e.s,e.l,e.opacity);if(e instanceof ai||(e=ei(e)),!e)return new qt;if(e instanceof qt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,o=Math.min(t,r,i),l=Math.max(t,r,i),u=NaN,h=l-o,d=(l+o)/2;return h?(t===l?u=(r-i)/h+(r0&&d<1?0:u,new qt(u,h,d,e.opacity)}function pG(e,t,r,i){return arguments.length===1?nf(e):new qt(e,t,r,i??1)}function qt(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}Wo(qt,pG,rf(ai,{brighter(e){return e=e==null?u0:Math.pow(u0,e),new qt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Math.pow(Jn,e),new qt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,o=2*r-i;return new yt(Ra(e>=240?e-240:e+120,o,i),Ra(e,o,i),Ra(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new qt(Xc(this.h),Li(this.s),Li(this.l),h0(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=h0(this.opacity);return`${e===1?"hsl(":"hsla("}${Xc(this.h)}, ${Li(this.s)*100}%, ${Li(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Xc(e){return e=(e||0)%360,e<0?e+360:e}function Li(e){return Math.max(0,Math.min(1,e||0))}function Ra(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const af=e=>()=>e;function dG(e,t){return function(r){return e+r*t}}function mG(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function gG(e){return(e=+e)==1?of:function(t,r){return r-t?mG(t,r,e):af(isNaN(t)?r:t)}}function of(e,t){var r=t-e;return r?dG(e,r):af(isNaN(e)?t:e)}const Yc=function e(t){var r=gG(t);function i(o,l){var u=r((o=uo(o)).r,(l=uo(l)).r),h=r(o.g,l.g),d=r(o.b,l.b),b=of(o.opacity,l.opacity);return function(_){return o.r=u(_),o.g=h(_),o.b=d(_),o.opacity=b(_),o+""}}return i.gamma=e,i}(1);function wr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var ho=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fa=new RegExp(ho.source,"g");function vG(e){return function(){return e}}function _G(e){return function(t){return e(t)+""}}function bG(e,t){var r=ho.lastIndex=Fa.lastIndex=0,i,o,l,u=-1,h=[],d=[];for(e=e+"",t=t+"";(i=ho.exec(e))&&(o=Fa.exec(t));)(l=o.index)>r&&(l=t.slice(r,l),h[u]?h[u]+=l:h[++u]=l),(i=i[0])===(o=o[0])?h[u]?h[u]+=o:h[++u]=o:(h[++u]=null,d.push({i:u,x:wr(i,o)})),r=Fa.lastIndex;return r180?_+=360:_-b>180&&(b+=360),M.push({i:x.push(o(x)+"rotate(",null,i)-2,x:wr(b,_)})):_&&x.push(o(x)+"rotate("+_+i)}function h(b,_,x,M){b!==_?M.push({i:x.push(o(x)+"skewX(",null,i)-2,x:wr(b,_)}):_&&x.push(o(x)+"skewX("+_+i)}function d(b,_,x,M,E,B){if(b!==x||_!==M){var O=E.push(o(E)+"scale(",null,",",null,")");B.push({i:O-4,x:wr(b,x)},{i:O-2,x:wr(_,M)})}else(x!==1||M!==1)&&E.push(o(E)+"scale("+x+","+M+")")}return function(b,_){var x=[],M=[];return b=e(b),_=e(_),l(b.translateX,b.translateY,_.translateX,_.translateY,x,M),u(b.rotate,_.rotate,x,M),h(b.skewX,_.skewX,x,M),d(b.scaleX,b.scaleY,_.scaleX,_.scaleY,x,M),b=_=null,function(E){for(var B=-1,O=M.length,P;++B=0&&e._call.call(void 0,t),e=e._next;--wn}function Zc(){Yr=(p0=ti.now())+M0,wn=qn=0;try{CG()}finally{wn=0,BG(),Yr=0}}function zG(){var e=ti.now(),t=e-p0;t>cf&&(M0-=t,p0=e)}function BG(){for(var e,t=f0,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:f0=r);Pn=e,po(i)}function po(e){if(!wn){qn&&(qn=clearTimeout(qn));var t=e-Yr;t>24?(e<1/0&&(qn=setTimeout(Zc,e-ti.now()-M0)),Dn&&(Dn=clearInterval(Dn))):(Dn||(p0=ti.now(),Dn=setInterval(zG,cf)),wn=1,uf(Zc))}}function Jc(e,t,r){var i=new d0;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,r),i}var NG=Vo("start","end","cancel","interrupt"),DG=[],ff=0,Qc=1,mo=2,ji=3,eu=4,go=5,Ui=6;function E0(e,t,r,i,o,l){var u=e.__transition;if(!u)e.__transition={};else if(r in u)return;OG(e,r,{name:t,index:i,group:o,on:NG,tween:DG,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:ff})}function Zo(e,t){var r=Ht(e,t);if(r.state>ff)throw new Error("too late; already scheduled");return r}function Kt(e,t){var r=Ht(e,t);if(r.state>ji)throw new Error("too late; already running");return r}function Ht(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function OG(e,t,r){var i=e.__transition,o;i[t]=r,r.timer=hf(l,0,r.time);function l(b){r.state=Qc,r.timer.restart(u,r.delay,r.time),r.delay<=b&&u(b-r.delay)}function u(b){var _,x,M,E;if(r.state!==Qc)return d();for(_ in i)if(E=i[_],E.name===r.name){if(E.state===ji)return Jc(u);E.state===eu?(E.state=Ui,E.timer.stop(),E.on.call("interrupt",e,e.__data__,E.index,E.group),delete i[_]):+_mo&&i.state=0&&(t=t.slice(0,r)),!t||t==="start"})}function uV(e,t,r){var i,o,l=cV(t)?Zo:Kt;return function(){var u=l(this,e),h=u.on;h!==i&&(o=(i=h).copy()).on(t,r),u.on=o}}function hV(e,t){var r=this._id;return arguments.length<2?Ht(this.node(),r).on.on(e):this.each(uV(r,e,t))}function fV(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function pV(){return this.on("end.remove",fV(this._id))}function dV(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Xo(e));for(var i=this._groups,o=i.length,l=new Array(o),u=0;u=0))throw new Error(`invalid digits: ${e}`);if(t>15)return gf;const r=10**t;return function(i){this._+=i[0];for(let o=1,l=i.length;oqr)if(!(Math.abs(x*d-b*_)>qr)||!l)this._append`L${this._x1=t},${this._y1=r}`;else{let E=i-u,B=o-h,O=d*d+b*b,P=E*E+B*B,D=Math.sqrt(O),W=Math.sqrt(M),ce=l*Math.tan((vo-Math.acos((O+M-P)/(2*D*W)))/2),ue=ce/W,Z=ce/D;Math.abs(ue-1)>qr&&this._append`L${t+ue*_},${r+ue*x}`,this._append`A${l},${l},0,0,${+(x*E>_*B)},${this._x1=t+Z*d},${this._y1=r+Z*b}`}}arc(t,r,i,o,l,u){if(t=+t,r=+r,i=+i,u=!!u,i<0)throw new Error(`negative radius: ${i}`);let h=i*Math.cos(o),d=i*Math.sin(o),b=t+h,_=r+d,x=1^u,M=u?o-l:l-o;this._x1===null?this._append`M${b},${_}`:(Math.abs(this._x1-b)>qr||Math.abs(this._y1-_)>qr)&&this._append`L${b},${_}`,i&&(M<0&&(M=M%_o+_o),M>qV?this._append`A${i},${i},0,1,${x},${t-h},${r-d}A${i},${i},0,1,${x},${this._x1=b},${this._y1=_}`:M>qr&&this._append`A${i},${i},0,${+(M>=vo)},${x},${this._x1=t+i*Math.cos(l)},${this._y1=r+i*Math.sin(l)}`)}rect(t,r,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function $V(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const tu=Symbol("implicit");function Qo(){var e=new Oc,t=[],r=[],i=tu;function o(l){let u=e.get(l);if(u===void 0){if(i!==tu)return i;e.set(l,u=t.push(l)-1)}return r[u%r.length]}return o.domain=function(l){if(!arguments.length)return t.slice();t=[],e=new Oc;for(const u of l)e.has(u)||e.set(u,t.push(u)-1);return o},o.range=function(l){return arguments.length?(r=Array.from(l),o):r.slice()},o.unknown=function(l){return arguments.length?(i=l,o):i},o.copy=function(){return Qo(t,r).unknown(i)},$V.apply(o,arguments),o}function jV(e){for(var t=e.length/6|0,r=new Array(t),i=0;i=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new HV(t)}var VV=Array.prototype.slice;function XV(e){return e[0]}function YV(e){return e[1]}class WV{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function KV(e){return new WV(e,!0)}function ZV(e){return e.source}function JV(e){return e.target}function QV(e){let t=ZV,r=JV,i=XV,o=YV,l=null,u=null,h=GV(d);function d(){let b;const _=VV.call(arguments),x=t.apply(this,_),M=r.apply(this,_);if(l==null&&(u=e(b=h())),u.lineStart(),_[0]=x,u.point(+i.apply(this,_),+o.apply(this,_)),_[0]=M,u.point(+i.apply(this,_),+o.apply(this,_)),u.lineEnd(),b)return u=null,b+""||null}return d.source=function(b){return arguments.length?(t=b,d):t},d.target=function(b){return arguments.length?(r=b,d):r},d.x=function(b){return arguments.length?(i=typeof b=="function"?b:ru(+b),d):i},d.y=function(b){return arguments.length?(o=typeof b=="function"?b:ru(+b),d):o},d.context=function(b){return arguments.length?(b==null?l=u=null:u=e(l=b),d):l},d}function eX(){return QV(KV)}const Pi=e=>()=>e;function tX(e,{sourceEvent:t,target:r,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function ar(e,t,r){this.k=e,this.x=t,this.y=r}ar.prototype={constructor:ar,scale:function(e){return e===1?this:new ar(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ar(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var T0=new ar(1,0,0);Vi.prototype=ar.prototype;function Vi(e){for(;!e.__zoom;)if(!(e=e.parentNode))return T0;return e.__zoom}function La(e){e.stopImmediatePropagation()}function On(e){e.preventDefault(),e.stopImmediatePropagation()}function rX(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function nX(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function nu(){return this.__zoom||T0}function iX(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function aX(){return navigator.maxTouchPoints||"ontouchstart"in this}function oX(e,t,r){var i=e.invertX(t[0][0])-r[0][0],o=e.invertX(t[1][0])-r[1][0],l=e.invertY(t[0][1])-r[0][1],u=e.invertY(t[1][1])-r[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function sX(){var e=rX,t=nX,r=oX,i=iX,o=aX,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],h=250,d=EG,b=Vo("start","zoom","end"),_,x,M,E=500,B=150,O=0,P=10;function D(L){L.property("__zoom",nu).on("wheel.zoom",He,{passive:!1}).on("mousedown.zoom",Se).on("dblclick.zoom",Ge).filter(o).on("touchstart.zoom",q).on("touchmove.zoom",de).on("touchend.zoom touchcancel.zoom",Ae).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}D.transform=function(L,U,G,F){var X=L.selection?L.selection():L;X.property("__zoom",nu),L!==X?Z(L,U,G,F):X.interrupt().each(function(){_e(this,arguments).event(F).start().zoom(null,typeof U=="function"?U.apply(this,arguments):U).end()})},D.scaleBy=function(L,U,G,F){D.scaleTo(L,function(){var X=this.__zoom.k,ee=typeof U=="function"?U.apply(this,arguments):U;return X*ee},G,F)},D.scaleTo=function(L,U,G,F){D.transform(L,function(){var X=t.apply(this,arguments),ee=this.__zoom,ae=G==null?ue(X):typeof G=="function"?G.apply(this,arguments):G,V=ee.invert(ae),we=typeof U=="function"?U.apply(this,arguments):U;return r(ce(W(ee,we),ae,V),X,u)},G,F)},D.translateBy=function(L,U,G,F){D.transform(L,function(){return r(this.__zoom.translate(typeof U=="function"?U.apply(this,arguments):U,typeof G=="function"?G.apply(this,arguments):G),t.apply(this,arguments),u)},null,F)},D.translateTo=function(L,U,G,F,X){D.transform(L,function(){var ee=t.apply(this,arguments),ae=this.__zoom,V=F==null?ue(ee):typeof F=="function"?F.apply(this,arguments):F;return r(T0.translate(V[0],V[1]).scale(ae.k).translate(typeof U=="function"?-U.apply(this,arguments):-U,typeof G=="function"?-G.apply(this,arguments):-G),ee,u)},F,X)};function W(L,U){return U=Math.max(l[0],Math.min(l[1],U)),U===L.k?L:new ar(U,L.x,L.y)}function ce(L,U,G){var F=U[0]-G[0]*L.k,X=U[1]-G[1]*L.k;return F===L.x&&X===L.y?L:new ar(L.k,F,X)}function ue(L){return[(+L[0][0]+ +L[1][0])/2,(+L[0][1]+ +L[1][1])/2]}function Z(L,U,G,F){L.on("start.zoom",function(){_e(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){_e(this,arguments).event(F).end()}).tween("zoom",function(){var X=this,ee=arguments,ae=_e(X,ee).event(F),V=t.apply(X,ee),we=G==null?ue(V):typeof G=="function"?G.apply(X,ee):G,Fe=Math.max(V[1][0]-V[0][0],V[1][1]-V[0][1]),ze=X.__zoom,Be=typeof U=="function"?U.apply(X,ee):U,Ne=d(ze.invert(we).concat(Fe/ze.k),Be.invert(we).concat(Fe/Be.k));return function(rt){if(rt===1)rt=Be;else{var ct=Ne(rt),$t=Fe/ct[2];rt=new ar($t,we[0]-ct[0]*$t,we[1]-ct[1]*$t)}ae.zoom(null,rt)}})}function _e(L,U,G){return!G&&L.__zooming||new be(L,U)}function be(L,U){this.that=L,this.args=U,this.active=0,this.sourceEvent=null,this.extent=t.apply(L,U),this.taps=0}be.prototype={event:function(L){return L&&(this.sourceEvent=L),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(L,U){return this.mouse&&L!=="mouse"&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&L!=="touch"&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&L!=="touch"&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(L){var U=xr(this.that).datum();b.call(L,this.that,new tX(L,{sourceEvent:this.sourceEvent,target:D,type:L,transform:this.that.__zoom,dispatch:b}),U)}};function He(L,...U){if(!e.apply(this,arguments))return;var G=_e(this,U).event(L),F=this.__zoom,X=Math.max(l[0],Math.min(l[1],F.k*Math.pow(2,i.apply(this,arguments)))),ee=Fr(L);if(G.wheel)(G.mouse[0][0]!==ee[0]||G.mouse[0][1]!==ee[1])&&(G.mouse[1]=F.invert(G.mouse[0]=ee)),clearTimeout(G.wheel);else{if(F.k===X)return;G.mouse=[ee,F.invert(ee)],Gi(this),G.start()}On(L),G.wheel=setTimeout(ae,B),G.zoom("mouse",r(ce(W(F,X),G.mouse[0],G.mouse[1]),G.extent,u));function ae(){G.wheel=null,G.end()}}function Se(L,...U){if(M||!e.apply(this,arguments))return;var G=L.currentTarget,F=_e(this,U,!0).event(L),X=xr(L.view).on("mousemove.zoom",we,!0).on("mouseup.zoom",Fe,!0),ee=Fr(L,G),ae=L.clientX,V=L.clientY;eG(L.view),La(L),F.mouse=[ee,this.__zoom.invert(ee)],Gi(this),F.start();function we(ze){if(On(ze),!F.moved){var Be=ze.clientX-ae,Ne=ze.clientY-V;F.moved=Be*Be+Ne*Ne>O}F.event(ze).zoom("mouse",r(ce(F.that.__zoom,F.mouse[0]=Fr(ze,G),F.mouse[1]),F.extent,u))}function Fe(ze){X.on("mousemove.zoom mouseup.zoom",null),tG(ze.view,F.moved),On(ze),F.event(ze).end()}}function Ge(L,...U){if(e.apply(this,arguments)){var G=this.__zoom,F=Fr(L.changedTouches?L.changedTouches[0]:L,this),X=G.invert(F),ee=G.k*(L.shiftKey?.5:2),ae=r(ce(W(G,ee),F,X),t.apply(this,U),u);On(L),h>0?xr(this).transition().duration(h).call(Z,ae,F,L):xr(this).call(D.transform,ae,F,L)}}function q(L,...U){if(e.apply(this,arguments)){var G=L.touches,F=G.length,X=_e(this,U,L.changedTouches.length===F).event(L),ee,ae,V,we;for(La(L),ae=0;aetypeof e=="string"||typeof e=="number",hX=e=>(e==null?void 0:e.vtype)===vf,fX=e=>(e==null?void 0:e.vtype)===_f;function Hi(e,t){let r;if(typeof e=="string")r=vf;else if(typeof e=="function")r=_f;else throw new Error("Invalid VNode type");return{vtype:r,type:e,props:t}}function pX(e){return e.children}const dX={isSvg:!1};function iu(e,t){Array.isArray(t)||(t=[t]),t=t.filter(Boolean),t.length&&e.append(...t)}function mX(e,t,r){for(const i in t)if(!(i==="key"||i==="children"||i==="ref"))if(i==="dangerouslySetInnerHTML")e.innerHTML=t[i].__html;else if(i==="innerHTML"||i==="textContent"||i==="innerText"||i==="value"&&["textarea","select"].includes(e.tagName)){const o=t[i];o!=null&&(e[i]=o)}else i.startsWith("on")?e[i.toLowerCase()]=t[i]:vX(e,i,t[i],r.isSvg)}const gX={className:"class",labelFor:"for"};function vX(e,t,r,i){if(t=gX[t]||t,r===!0)e.setAttribute(t,"");else if(r===!1)e.removeAttribute(t);else{const o=i?cX[t]:void 0;o!==void 0?e.setAttributeNS(o,t,r):e.setAttribute(t,r)}}function _X(e){return e.reduce((t,r)=>t.concat(r),[])}function bo(e,t){return Array.isArray(e)?_X(e.map(r=>bo(r,t))):es(e,t)}function es(e,t=dX){if(e==null||typeof e=="boolean")return null;if(e instanceof Node)return e;if(fX(e)){const{type:r,props:i}=e;if(r===pX){const l=document.createDocumentFragment();if(i.children){const u=bo(i.children,t);iu(l,u)}return l}const o=r(i);return es(o,t)}if(uX(e))return document.createTextNode(`${e}`);if(hX(e)){let r;const{type:i,props:o}=e;if(!t.isSvg&&i==="svg"&&(t=Object.assign({},t,{isSvg:!0})),t.isSvg?r=document.createElementNS(lX,i):r=document.createElement(i),mX(r,o,t),o.children){let u=t;t.isSvg&&i==="foreignObject"&&(u=Object.assign({},u,{isSvg:!1}));const h=bo(o.children,u);h!=null&&iu(r,h)}const{ref:l}=o;return typeof l=="function"&&l(r),r}throw new Error("mount: Invalid Vnode!")}function Pa(e){return es(e)}function bX(e){var t=0,r=e.children,i=r&&r.length;if(!i)t=1;else for(;--i>=0;)t+=r[i].value;e.value=t}function yX(){return this.eachAfter(bX)}function wX(e){var t=this,r,i=[t],o,l,u;do for(r=i.reverse(),i=[];t=r.pop();)if(e(t),o=t.children,o)for(l=0,u=o.length;l=0;--o)r.push(i[o]);return this}function kX(e){for(var t=this,r=[t],i=[],o,l,u;t=r.pop();)if(i.push(t),o=t.children,o)for(l=0,u=o.length;l=0;)r+=i[o].value;t.value=r})}function SX(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function MX(e){for(var t=this,r=EX(t,e),i=[t];t!==r;)t=t.parent,i.push(t);for(var o=i.length;e!==r;)i.splice(o,0,e),e=e.parent;return i}function EX(e,t){if(e===t)return e;var r=e.ancestors(),i=t.ancestors(),o=null;for(e=r.pop(),t=i.pop();e===t;)o=e,e=r.pop(),t=i.pop();return o}function TX(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function CX(){var e=[];return this.each(function(t){e.push(t)}),e}function zX(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function BX(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function ts(e,t){var r=new m0(e),i=+e.value&&(r.value=e.value),o,l=[r],u,h,d,b;for(t==null&&(t=DX);o=l.pop();)if(i&&(o.value=+o.data.value),(h=t(o.data))&&(b=h.length))for(o.children=new Array(b),d=b-1;d>=0;--d)l.push(u=o.children[d]=new m0(h[d])),u.parent=o,u.depth=o.depth+1;return r.eachBefore(IX)}function NX(){return ts(this).eachBefore(OX)}function DX(e){return e.children}function OX(e){e.data=e.data.data}function IX(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function m0(e){this.data=e,this.depth=this.height=0,this.parent=null}m0.prototype=ts.prototype={constructor:m0,count:yX,each:wX,eachAfter:kX,eachBefore:xX,sum:AX,sort:SX,path:MX,ancestors:TX,descendants:CX,leaves:zX,links:BX,copy:NX};const RX="d3-flextree",FX="2.1.2",LX="build/d3-flextree.js",qX="index",PX={name:"Chris Maloney",url:"http://chrismaloney.org"},HX="Flexible tree layout algorithm that allows for variable node sizes.",$X=["d3","d3-module","layout","tree","hierarchy","d3-hierarchy","plugin","d3-plugin","infovis","visualization","2d"],jX="https://github.com/klortho/d3-flextree",UX="WTFPL",GX={type:"git",url:"https://github.com/klortho/d3-flextree.git"},VX={clean:"rm -rf build demo test","build:demo":"rollup -c --environment BUILD:demo","build:dev":"rollup -c --environment BUILD:dev","build:prod":"rollup -c --environment BUILD:prod","build:test":"rollup -c --environment BUILD:test",build:"rollup -c",lint:"eslint index.js src","test:main":"node test/bundle.js","test:browser":"node test/browser-tests.js",test:"npm-run-all test:*",prepare:"npm-run-all clean build lint test"},XX={"d3-hierarchy":"^1.1.5"},YX={"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015-rollup":"^3.0.0",d3:"^4.13.0","d3-selection-multi":"^1.0.1",eslint:"^4.19.1",jsdom:"^11.6.2","npm-run-all":"^4.1.2",rollup:"^0.55.3","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-copy":"^0.2.3","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.2","rollup-plugin-uglify":"^3.0.0","uglify-es":"^3.3.9"},WX={name:RX,version:FX,main:LX,module:qX,"jsnext:main":"index",author:PX,description:HX,keywords:$X,homepage:jX,license:UX,repository:GX,scripts:VX,dependencies:XX,devDependencies:YX},{version:KX}=WX,ZX=Object.freeze({children:e=>e.children,nodeSize:e=>e.data.size,spacing:0});function yf(e){const t=Object.assign({},ZX,e);function r(h){const d=t[h];return typeof d=="function"?d:()=>d}function i(h){const d=u(l(),h,b=>b.children);return d.update(),d.data}function o(){const h=r("nodeSize"),d=r("spacing");return class bf extends ts.prototype.constructor{constructor(_){super(_)}copy(){const _=u(this.constructor,this,x=>x.children);return _.each(x=>x.data=x.data.data),_}get size(){return h(this)}spacing(_){return d(this,_)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const _=this.ancestors();return _[_.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return this.children===null}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce((_,x)=>bf.maxExtents(_,x.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(_,x){return{top:Math.min(_.top,x.top),bottom:Math.max(_.bottom,x.bottom),left:Math.min(_.left,x.left),right:Math.max(_.right,x.right)}}}}function l(){const h=o(),d=r("nodeSize"),b=r("spacing");return class extends h{constructor(_){super(_),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return d(this.data)}spacing(_){return b(this.data,_.data)}get x(){return this.data.x}set x(_){this.data.x=_}get y(){return this.data.y}set y(_){this.data.y=_}update(){return wf(this),xf(this),this}}}function u(h,d,b){const _=(x,M)=>{const E=new h(x);Object.assign(E,{parent:M,depth:M===null?0:M.depth+1,height:0,length:1});const B=b(x)||[];return E.children=B.length===0?null:B.map(O=>_(O,E)),E.children&&Object.assign(E,E.children.reduce((O,P)=>({height:Math.max(O.height,P.height+1),length:O.length+P.length}),E)),E};return _(d,null)}return Object.assign(i,{nodeSize(h){return arguments.length?(t.nodeSize=h,i):t.nodeSize},spacing(h){return arguments.length?(t.spacing=h,i):t.spacing},children(h){return arguments.length?(t.children=h,i):t.children},hierarchy(h,d){const b=typeof d>"u"?t.children:d;return u(o(),h,b)},dump(h){const d=r("nodeSize"),b=_=>x=>{const M=_+" ",E=_+" ",{x:B,y:O}=x,P=d(x),D=x.children||[],W=D.length===0?" ":`,${M}children: [${E}${D.map(b(E)).join(E)}${M}],${_}`;return`{ size: [${P.join(", ")}],${M}x: ${B}, y: ${O}${W}},`};return b(` +`)(h)}}),i}yf.version=KX;const wf=(e,t=0)=>(e.y=t,(e.children||[]).reduce((r,i)=>{const[o,l]=r;wf(i,e.y+e.ySize);const u=(o===0?i.lExt:i.rExt).bottom;o!==0&&QX(e,o,l);const h=sY(u,o,l);return[o+1,h]},[0,null]),JX(e),oY(e),e),xf=(e,t,r)=>{typeof t>"u"&&(t=-e.relX-e.prelim,r=0);const i=t+e.relX;return e.relX=i+e.prelim-r,e.prelim=0,e.x=r+e.relX,(e.children||[]).forEach(o=>xf(o,i,e.x)),e},JX=e=>{(e.children||[]).reduce((t,r)=>{const[i,o]=t,l=i+r.shift,u=o+l+r.change;return r.relX+=u,[l,u]},[0,0])},QX=(e,t,r)=>{const i=e.children[t-1],o=e.children[t];let l=i,u=i.relX,h=o,d=o.relX,b=!0;for(;l&&h;){l.bottom>r.lowY&&(r=r.next);const _=u+l.prelim-(d+h.prelim)+l.xSize/2+h.xSize/2+l.spacing(h);(_>0||_<0&&b)&&(d+=_,eY(o,_),tY(e,t,r.index,_)),b=!1;const x=l.bottom,M=h.bottom;x<=M&&(l=nY(l),l&&(u+=l.relX)),x>=M&&(h=rY(h),h&&(d+=h.relX))}!l&&h?iY(e,t,h,d):l&&!h&&aY(e,t,l,u)},eY=(e,t)=>{e.relX+=t,e.lExtRelX+=t,e.rExtRelX+=t},tY=(e,t,r,i)=>{const o=e.children[t],l=t-r;if(l>1){const u=i/l;e.children[r+1].shift+=u,o.shift-=u,o.change-=i-u}},rY=e=>e.hasChildren?e.firstChild:e.lThr,nY=e=>e.hasChildren?e.lastChild:e.rThr,iY=(e,t,r,i)=>{const o=e.firstChild,l=o.lExt,u=e.children[t];l.lThr=r;const h=i-r.relX-o.lExtRelX;l.relX+=h,l.prelim-=h,o.lExt=u.lExt,o.lExtRelX=u.lExtRelX},aY=(e,t,r,i)=>{const o=e.children[t],l=o.rExt,u=e.children[t-1];l.rThr=r;const h=i-r.relX-o.rExtRelX;l.relX+=h,l.prelim-=h,o.rExt=u.rExt,o.rExtRelX=u.rExtRelX},oY=e=>{if(e.hasChildren){const t=e.firstChild,r=e.lastChild,i=(t.prelim+t.relX-t.xSize/2+r.relX+r.prelim+r.xSize/2)/2;Object.assign(e,{prelim:i,lExt:t.lExt,lExtRelX:t.lExtRelX,rExt:r.rExt,rExtRelX:r.rExtRelX})}},sY=(e,t,r)=>{for(;r!==null&&e>=r.lowY;)r=r.next;return{lowY:e,index:t,next:r}},kf=".markmap{font:300 16px/20px sans-serif}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign a{color:#0097e6}.markmap-foreign a:hover{color:#00a8ff}.markmap-foreign code{padding:.25em;font-size:calc(1em - 2px);color:#555;background-color:#f0f0f0;border-radius:2px}.markmap-foreign pre{margin:0}.markmap-foreign pre>code{display:block}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:700}.markmap-foreign mark{background:#ffeaa7}",lY=".markmap-container{position:absolute;width:0;height:0;top:-100px;left:-100px;overflow:hidden}.markmap-container>.markmap-foreign{display:inline-block}.markmap-container>.markmap-foreign>div:last-child,.markmap-container>.markmap-foreign>div:last-child :not(pre){white-space:nowrap}.markmap-container>.markmap-foreign>div:last-child code{white-space:inherit}",cY=kf;function au(e){const t=e.data;return Math.max(4-2*t.depth,1.5)}function ou(e,t){const r=vj(e,t);return e[r]}function Ha(e){e.stopPropagation()}function uY(){return{transformHtml:new $r}}const Af=new $r,Sf=Qo(UV),Mf=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh"),Ef=class yo{constructor(t,r){this.options=yo.defaultOptions,this.revokers=[],this.handleZoom=i=>{const{transform:o}=i;this.g.attr("transform",o)},this.handlePan=i=>{i.preventDefault();const o=Vi(this.svg.node()),l=o.translate(-i.deltaX/o.k,-i.deltaY/o.k);this.svg.call(this.zoom.transform,l)},this.handleClick=(i,o)=>{let l=this.options.toggleRecursively;(Mf?i.metaKey:i.ctrlKey)&&(l=!l),this.toggleNode(o.data,l)},this.viewHooks=uY(),this.svg=t.datum?t:xr(t),this.styleNode=this.svg.append("style"),this.zoom=sX().filter(i=>this.options.scrollForPan&&i.type==="wheel"?i.ctrlKey&&!i.button:(!i.ctrlKey||i.type==="wheel")&&!i.button).on("zoom",this.handleZoom),this.setOptions(r),this.state={id:this.options.id||this.svg.attr("id")||x$(),minX:0,maxX:0,minY:0,maxY:0},this.g=this.svg.append("g"),this.revokers.push(Af.tap(()=>{this.setData()}))}getStyleContent(){const{style:t}=this.options,{id:r}=this.state,i=typeof t=="function"?t(r):"";return[this.options.embedGlobalCSS&&kf,i].filter(Boolean).join(` `)}updateStyle(){this.svg.attr("class",k$(this.svg.attr("class"),"markmap",this.state.id));const t=this.getStyleContent();this.styleNode.text(t)}toggleNode(t,r=!1){var i,o;const l=(i=t.payload)!=null&&i.fold?0:1;r?Na(t,(u,h)=>{u.payload={...u.payload,fold:l},h()}):t.payload={...t.payload,fold:(o=t.payload)!=null&&o.fold?0:1},this.renderData(t)}initializeData(t){let r=0;const{color:i,nodeMinHeight:o,maxWidth:l,initialExpandLevel:u}=this.options,{id:h}=this.state,d=Pa(Hi("div",{className:`markmap-container markmap ${h}-g`})),b=Pa(Hi("style",{children:[this.getStyleContent(),lY].join(` -`)}));document.body.append(d,b);const _=l?`max-width: ${l}px`:"";let k=0;Na(t,(E,B,O)=>{var P,D,W;E.children=(P=E.children)==null?void 0:P.map(Z=>({...Z})),r+=1;const ce=Pa(Hi("div",{className:"markmap-foreign",style:_,children:Hi("div",{dangerouslySetInnerHTML:{__html:E.content}})}));d.append(ce),E.state={...E.state,id:r,el:ce.firstChild},E.state.path=[(D=O==null?void 0:O.state)==null?void 0:D.path,E.state.id].filter(Boolean).join("."),i(E);const ue=((W=E.payload)==null?void 0:W.fold)===2;ue?k+=1:(k||u>=0&&E.depth>=u)&&(E.payload={...E.payload,fold:1}),B(),ue&&(k-=1)});const M=Array.from(d.childNodes).map(E=>E.firstChild);this.viewHooks.transformHtml.call(this,M),M.forEach(E=>{var B;(B=E.parentNode)==null||B.append(E.cloneNode(!0))}),Na(t,(E,B,O)=>{var P;const D=E.state,W=D.el.getBoundingClientRect();E.content=D.el.innerHTML,D.size=[Math.ceil(W.width)+1,Math.max(Math.ceil(W.height),o)],D.key=[(P=O==null?void 0:O.state)==null?void 0:P.id,D.id].filter(Boolean).join(".")+E.content,B()}),d.remove(),b.remove()}setOptions(t){this.options={...this.options,...t},this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.options.pan?this.svg.on("wheel",this.handlePan):this.svg.on("wheel",null)}setData(t,r){r&&this.setOptions(r),t&&(this.state.data=t),this.state.data&&(this.initializeData(this.state.data),this.updateStyle(),this.renderData())}renderData(t){if(!this.state.data)return;const{spacingHorizontal:r,paddingX:i,spacingVertical:o,autoFit:l,color:u}=this.options,h=yf({}).children(q=>{var de;if(!((de=q.payload)!=null&&de.fold))return q.children}).nodeSize(q=>{const[de,Ae]=q.data.state.size;return[Ae,de+(de?i*2:0)+r]}).spacing((q,de)=>q.parent===de.parent?o:o*2),d=h.hierarchy(this.state.data);h(d);const b=d.descendants().reverse(),_=d.links(),k=eX(),M=Fc(b,q=>q.x-q.xSize/2),E=Rc(b,q=>q.x+q.xSize/2),B=Fc(b,q=>q.y),O=Rc(b,q=>q.y+q.ySize-r);Object.assign(this.state,{minX:M,maxX:E,minY:B,maxY:O}),l&&this.fit();const P=t&&b.find(q=>q.data===t)||d,D=P.data.state.x0??P.x,W=P.data.state.y0??P.y,ce=this.g.selectAll(hn("g")).data(b,q=>q.data.state.key),ue=ce.enter().append("g").attr("data-depth",q=>q.data.depth).attr("data-path",q=>q.data.state.path).attr("transform",q=>`translate(${W+P.ySize-q.ySize},${D+P.xSize/2-q.xSize})`),Z=this.transition(ce.exit());Z.select("line").attr("x1",q=>q.ySize-r).attr("x2",q=>q.ySize-r),Z.select("foreignObject").style("opacity",0),Z.attr("transform",q=>`translate(${P.y+P.ySize-q.ySize},${P.x+P.xSize/2-q.xSize})`).remove();const _e=ce.merge(ue).attr("class",q=>{var de;return["markmap-node",((de=q.data.payload)==null?void 0:de.fold)&&"markmap-fold"].filter(Boolean).join(" ")});this.transition(_e).attr("transform",q=>`translate(${q.y},${q.x-q.xSize/2})`);const be=_e.selectAll(hn("line")).data(q=>[q],q=>q.data.state.key).join(q=>q.append("line").attr("x1",de=>de.ySize-r).attr("x2",de=>de.ySize-r),q=>q,q=>q.remove());this.transition(be).attr("x1",-1).attr("x2",q=>q.ySize-r+2).attr("y1",q=>q.xSize).attr("y2",q=>q.xSize).attr("stroke",q=>u(q.data)).attr("stroke-width",au);const He=_e.selectAll(hn("circle")).data(q=>{var de;return(de=q.data.children)!=null&&de.length?[q]:[]},q=>q.data.state.key).join(q=>q.append("circle").attr("stroke-width","1.5").attr("cx",de=>de.ySize-r).attr("cy",de=>de.xSize).attr("r",0).on("click",(de,Ae)=>this.handleClick(de,Ae)).on("mousedown",Ha),q=>q,q=>q.remove());this.transition(He).attr("r",6).attr("cx",q=>q.ySize-r).attr("cy",q=>q.xSize).attr("stroke",q=>u(q.data)).attr("fill",q=>{var de;return(de=q.data.payload)!=null&&de.fold&&q.data.children?u(q.data):"#fff"});const Se=_e.selectAll(hn("foreignObject")).data(q=>[q],q=>q.data.state.key).join(q=>{const de=q.append("foreignObject").attr("class","markmap-foreign").attr("x",i).attr("y",0).style("opacity",0).on("mousedown",Ha).on("dblclick",Ha);return de.append("xhtml:div").select(function(Ae){const L=Ae.data.state.el.cloneNode(!0);return this.replaceWith(L),L}).attr("xmlns","http://www.w3.org/1999/xhtml"),de},q=>q,q=>q.remove()).attr("width",q=>Math.max(0,q.ySize-r-i*2)).attr("height",q=>q.xSize);this.transition(Se).style("opacity",1);const Ge=this.g.selectAll(hn("path")).data(_,q=>q.target.data.state.key).join(q=>{const de=[W+P.ySize-r,D+P.xSize/2];return q.insert("path","g").attr("class","markmap-link").attr("data-depth",Ae=>Ae.target.data.depth).attr("data-path",Ae=>Ae.target.data.state.path).attr("d",k({source:de,target:de}))},q=>q,q=>{const de=[P.y+P.ySize-r,P.x+P.xSize/2];return this.transition(q).attr("d",k({source:de,target:de})).remove()});this.transition(Ge).attr("stroke",q=>u(q.target.data)).attr("stroke-width",q=>au(q.target)).attr("d",q=>{const de=q.source,Ae=q.target,L=[de.y+de.ySize-r,de.x+de.xSize/2],U=[Ae.y,Ae.x+Ae.xSize/2];return k({source:L,target:U})}),b.forEach(q=>{q.data.state.x0=q.x,q.data.state.y0=q.y})}transition(t){const{duration:r}=this.options;return t.transition().duration(r)}async fit(){const t=this.svg.node(),{width:r,height:i}=t.getBoundingClientRect(),{fitRatio:o}=this.options,{minX:l,maxX:u,minY:h,maxY:d}=this.state,b=d-h,_=u-l,k=Math.min(r/b*o,i/_*o,2),M=T0.translate((r-b*k)/2-h*k,(i-_*k)/2-l*k).scale(k);return this.transition(this.svg).call(this.zoom.transform,M).end().catch(jn)}async ensureView(t,r){let i;if(this.g.selectAll(hn("g")).each(function(D){D.data===t&&(i=D)}),!i)return;const o=this.svg.node(),{spacingHorizontal:l}=this.options,u=o.getBoundingClientRect(),h=Vi(o),[d,b]=[i.y,i.y+i.ySize-l+2].map(D=>D*h.k+h.x),[_,k]=[i.x-i.xSize/2,i.x+i.xSize/2].map(D=>D*h.k+h.y),M={left:0,right:0,top:0,bottom:0,...r},E=[M.left-d,u.width-M.right-b],B=[M.top-_,u.height-M.bottom-k],O=E[0]*E[1]>0?ou(E,Math.abs)/h.k:0,P=B[0]*B[1]>0?ou(B,Math.abs)/h.k:0;if(O||P){const D=h.translate(O,P);return this.transition(this.svg).call(this.zoom.transform,D).end().catch(jn)}}async rescale(t){const r=this.svg.node(),{width:i,height:o}=r.getBoundingClientRect(),l=i/2,u=o/2,h=Vi(r),d=h.translate((l-h.x)*(1-t)/h.k,(u-h.y)*(1-t)/h.k).scale(t);return this.transition(this.svg).call(this.zoom.transform,d).end().catch(jn)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this.revokers.forEach(t=>{t()})}static create(t,r,i=null){const o=new yo(t,r);return i&&(o.setData(i),o.fit()),o}};Ef.defaultOptions={autoFit:!1,color:e=>{var t;return Sf(`${((t=e.state)==null?void 0:t.path)||""}`)},duration:500,embedGlobalCSS:!0,fitRatio:.95,maxWidth:0,nodeMinHeight:16,paddingX:8,scrollForPan:Mf,spacingHorizontal:80,spacingVertical:5,initialExpandLevel:-1,zoom:!0,pan:!0,toggleRecursively:!1};let Tf=Ef;function Cf(e){const t={},r={...e},{color:i,colorFreezeLevel:o}=r;if((i==null?void 0:i.length)===1){const l=i[0];t.color=()=>l}else if(i!=null&&i.length){const l=Qo(i);t.color=u=>l(`${u.state.path}`)}if(o){const l=t.color||Tf.defaultOptions.color;t.color=u=>(u={...u,state:{...u.state,path:u.state.path.split(".").slice(0,o).join(".")}},l(u))}return["duration","maxWidth","initialExpandLevel"].forEach(l=>{const u=r[l];typeof u=="number"&&(t[l]=u)}),["zoom","pan"].forEach(l=>{const u=r[l];u!=null&&(t[l]=!!u)}),t}const su=Object.freeze(Object.defineProperty({__proto__:null,Markmap:Tf,defaultColorFn:Sf,deriveOptions:Cf,globalCSS:cY,loadCSS:j$,loadJS:Uo,refreshHook:Af},Symbol.toStringTag,{value:"Module"}));function hY(e){let t,r,i,o,l;return{c(){t=vt("div"),r=up("svg"),this.h()},l(u){t=_t(u,"DIV",{style:!0});var h=pt(t);r=hp(h,"svg",{id:!0,xmlns:!0,"xmlns:xlink":!0,style:!0,class:!0});var d=pt(r);d.forEach(Pe),h.forEach(Pe),this.h()},h(){Re(r,"id","markmap"),Re(r,"xmlns","http://www.w3.org/2000/svg"),Re(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),Bi(r,"width","100%"),Bi(r,"height","100%"),Re(r,"class","svelte-1gzn36p"),Bi(t,"width","98vw"),Bi(t,"height","98vh"),Ao(()=>e[16].call(t))},m(u,h){Ot(u,t,h),it(t,r),e[15](r),i=fp(t,e[16].bind(t)),o||(l=[Pt(window,"keydown",e[4]),Pt(r,"click",e[3])],o=!0)},p:Er,i:Er,o:Er,d(u){u&&Pe(t),e[15](null),i(),o=!1,ko(l)}}}function fY(e){const{x:t,y:r,width:i,height:o}=e.getBBox();return{x:t,y:r,w:i,h:o}}function pY(e,t,r){let i,o,l,u;Dt(e,$n,U=>r(24,i=U)),Dt(e,to,U=>r(12,o=U)),Dt(e,eo,U=>r(13,l=U)),Dt(e,Sr,U=>r(14,u=U));let{source:h}=t,{maxWidth:d}=t,{style:b}=t,{title:_}=t,{colorFreezeLevel:k}=t,{initialExpandLevel:M}=t,{openLinksInNewTab:E}=t,B,O,P,D,W="",ce,ue,Z=!0;So(()=>{Z=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)});let _e,be;pp(()=>{const U=new pj,{root:G,features:F}=U.transform(h),{styles:X,scripts:ee}=U.getUsedAssets(F),{Markmap:ae,loadCSS:V,loadJS:we}=su;X&&V(X),ee&&we(ee,{getMarkmap:()=>su});const Fe={duration:0,maxWidth:d,spacingVertical:15,paddingX:20,autoFit:!1,initialExpandLevel:M},ze=Cf({color:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#8c564b","#e377c2","#17becf","#bcbd22"],colorFreezeLevel:k}),Be=k>0?{...Fe,...ze}:Fe;r(2,B.innerHTML="",B),be=G,ce=document.createElement("title"),ce.innerHTML=_,B.appendChild(ce);const Ne="svg div{margin-top:-4px;} svg a {text-decoration:none} svg foreignObject {overflow:visible;} svg strong{color:#333; font-size:0.98em!important; font-weight:500!important;} svg .hide, svg .hide *{color:transparent!important} svg .hide {background-color:#FFFFEC} svg .hide img {opacity:0} svg img[alt=h-25]{height:25px} svg img[alt=h-50]{height:50px} svg img[alt=h-75]{height:75px} svg img[alt=h-100]{height:100px} svg img[alt=h-125]{height:125px} svg img[alt=h-150]{height:150px} svg img[alt=h-175]{height:175px} svg img[alt=h-200]{height:200px} svg blockquote {width:"+D+"px!important; white-space: normal; text-align:justify; font-size:0.8em; line-height:1em; border:1px solid #aaa; padding:10px; border-radius:4px;"+W+"} svg aside{font-size: 0.8em; display: inline-block!important; font-weight:normal;vertical-align: top} svg cite {font-style:inherit; font-family:serif; font-size:0.97em}"+b,rt=document.createElement("style");rt.innerHTML=Ne,B.appendChild(rt),_e=ae.create("#markmap",Be,G),E&&B.querySelectorAll("a").forEach($t=>{$t.setAttribute("target","_blank")})});function He(U){let G=U.target;const F=G.tagName;let X=0;if(F!="SVG"){{if(F=="circle"&&U.altKey){const ae=G.parentElement.getAttribute("data-depth"),V=B.querySelectorAll('g[data-depth="'+ae+'"]:not(.markmap-fold)');for(const we of V){const Fe=we.querySelector("circle");Fe&&Fe.dispatchEvent(new MouseEvent("click"))}G.dispatchEvent(new MouseEvent("click"));return}for(;G&&G.tagName!=="DIV"&&X<5;)G=G.parentElement,X++}G.tagName=="DIV"&&(U.altKey?G.classList.toggle("hide"):G.classList.remove("hide")),Z&&_e.fit()}}function Se(U){const G=fY(B);return U=U.replace(/
    /g,"
    "),U=U.replace(/\n/g," "),U=''+_+""+ue.replace(/&/g,"&").replace(//g,"<")+""+U.replace(/.*<\/title>/,"")+"",U}function Ge(){const U=new File([Se(B.innerHTML)],"mindmap.svg",{type:"text/plain;charset=utf-8"});saveAs(U)}function q(){const U=JSON.stringify(be);let G=''+_+''+_+""+ue.replace(/&/g,"&").replace(//g,"<")+'