Files
wxmp/static/js/main.9c113e1d.js

342 lines
1.7 MiB

/*! For license information please see main.9c113e1d.js.LICENSE.txt */
(()=>{var e={752:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});const r="undefined"==typeof Symbol?"__\u037c":Symbol.for("\u037c"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class s{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,o,s){let a=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let s=t[n];if(/&/.test(n))i(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),s,o);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),s,a,c)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+s+";")}(a.length||c)&&o.push((!n||l||s?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let o in e)i(r(o),e[o],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[r]||1;return o[r]=e+1,"\u037c"+e.toString(36)}static mount(e,t,n){let r=e[i],o=n&&n.nonce;r?o&&r.setNonce(o):r=new l(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let a=new Map;class l{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=a.get(n);if(t)return e[i]=t;this.sheet=new r.CSSStyleSheet,a.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[i]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let o=0;o<e.length;o++){let t=e[o],s=this.modules.indexOf(t);if(s<i&&s>-1&&(this.modules.splice(s,1),i--,s=-1),-1==s){if(this.modules.splice(i++,0,t),n)for(let e=0;e<t.rules.length;e++)n.insertRule(t.rules[e],r++)}else{for(;i<s;)r+=this.modules[i++].rules.length;r+=t.rules.length,i++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let n=t.head||t;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}},945:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var h=1,d=1;function p(e){var t=e.match(n);t&&(h+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:h,column:d};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:h,column:d},this.source=l.source}m.prototype.content=e;var g=[];function O(t){var n=new Error(l.source+":"+h+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=h,n.column=d,n.source=e,!l.silent)throw n;g.push(n)}function b(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){b(r)}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return O("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function k(){var e=f(),n=b(i);if(n){if(x(),!b(o))return O("property missing ':'");var r=b(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return b(a),l}}return v(),function(){var e,t=[];for(y(t);e=k();)!1!==e&&(t.push(e),y(t));return t}()}},1345:(e,t,n)=>{"use strict";n.d(t,{DM:()=>d,_A:()=>_,az:()=>h,pn:()=>l,vw:()=>o});var r=n(4450);let i=0;class o{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=i++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let n="string"==typeof e?e:"?";if(e instanceof o&&(t=e),null===t||void 0===t?void 0:t.base)throw new Error("Can not derive from a modified tag");let r=new o(n,[],null,[]);if(r.set.push(r),t)for(let i of t.set)r.set.push(i);return r}static defineModifier(e){let t=new a(e);return e=>e.modified.indexOf(t)>-1?e:a.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}let s=0;class a{constructor(e){this.name=e,this.instances=[],this.id=s++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every((e,t)=>e==i[t]));var r,i});if(n)return n;let r=[],i=new o(e.name,r,e,t);for(let o of t)o.instances.push(i);let s=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((e,t)=>t.length-e.length)}(t);for(let o of e.set)if(!o.modified.length)for(let e of s)r.push(a.get(o,e));return i}}function l(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){i=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw new RangeError("Invalid path: "+e);let l=new u(r,i,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return c.add(t)}const c=new r.uY;class u{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function h(e,t){let n=Object.create(null);for(let o of e)if(Array.isArray(o.tag))for(let e of o.tag)n[e.id]=o.class;else n[o.tag.id]=o.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function d(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length,o=new p(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}u.empty=new u([],2,null);class p{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,o){let{type:s,from:a,to:l}=e;if(a>=n||l<=t)return;s.isTop&&(o=this.highlighters.filter(e=>!e.scope||e.scope(s)));let h=i,d=function(e){let t=e.type.prop(c);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||u.empty,p=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(o,d.tags);if(p&&(h&&(h+=" "),h+=p,1==d.mode&&(i+=(i?" ":"")+p)),this.startSpan(Math.max(t,a),h),d.opaque)return;let f=e.tree&&e.tree.prop(r.uY.mounted);if(f&&f.overlay){let r=e.node.enter(f.overlay[0].from+a,1),s=this.highlighters.filter(e=>!e.scope||e.scope(f.tree.type)),c=e.firstChild();for(let u=0,d=a;;u++){let p=u<f.overlay.length?f.overlay[u]:null,m=p?p.from+a:l,g=Math.max(t,d),O=Math.min(n,m);if(g<O&&c)for(;e.from<O&&(this.highlightRange(e,g,O,i,o),this.startSpan(Math.min(O,e.to),h),!(e.to>=m)&&e.nextSibling()););if(!p||m>n)break;d=p.to+a,d>t&&(this.highlightRange(r.cursor(),Math.max(t,p.from+a),Math.min(n,d),"",s),this.startSpan(Math.min(n,d),h))}c&&e.parent()}else if(e.firstChild()){f&&(i="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,o),this.startSpan(Math.min(n,e.to),h)}}while(e.nextSibling());e.parent()}}}const f=o.define,m=f(),g=f(),O=f(g),b=f(g),v=f(),y=f(v),x=f(v),k=f(),S=f(k),w=f(),A=f(),T=f(),E=f(T),C=f(),_={comment:m,lineComment:f(m),blockComment:f(m),docComment:f(m),name:g,variableName:f(g),typeName:O,tagName:f(O),propertyName:b,attributeName:f(b),className:f(g),labelName:f(g),namespace:f(g),macroName:f(g),literal:v,string:y,docString:f(y),character:f(y),attributeValue:f(y),number:x,integer:f(x),float:f(x),bool:f(v),regexp:f(v),escape:f(v),color:f(v),url:f(v),keyword:w,self:f(w),null:f(w),atom:f(w),unit:f(w),modifier:f(w),operatorKeyword:f(w),controlKeyword:f(w),definitionKeyword:f(w),moduleKeyword:f(w),operator:A,derefOperator:f(A),arithmeticOperator:f(A),logicOperator:f(A),bitwiseOperator:f(A),compareOperator:f(A),updateOperator:f(A),definitionOperator:f(A),typeOperator:f(A),controlOperator:f(A),punctuation:T,separator:f(T),bracket:E,angleBracket:f(E),squareBracket:f(E),paren:f(E),brace:f(E),content:k,heading:S,heading1:f(S),heading2:f(S),heading3:f(S),heading4:f(S),heading5:f(S),heading6:f(S),contentSeparator:f(k),list:f(k),quote:f(k),emphasis:f(k),strong:f(k),link:f(k),monospace:f(k),strikethrough:f(k),inserted:f(),deleted:f(),changed:f(),invalid:f(),meta:C,documentMeta:f(C),annotation:f(C),processingInstruction:f(C),definition:o.defineModifier("definition"),constant:o.defineModifier("constant"),function:o.defineModifier("function"),standard:o.defineModifier("standard"),local:o.defineModifier("local"),special:o.defineModifier("special")};for(let P in _){let e=_[P];e instanceof o&&(e.name=P)}h([{tag:_.link,class:"tok-link"},{tag:_.heading,class:"tok-heading"},{tag:_.emphasis,class:"tok-emphasis"},{tag:_.strong,class:"tok-strong"},{tag:_.keyword,class:"tok-keyword"},{tag:_.atom,class:"tok-atom"},{tag:_.bool,class:"tok-bool"},{tag:_.url,class:"tok-url"},{tag:_.labelName,class:"tok-labelName"},{tag:_.inserted,class:"tok-inserted"},{tag:_.deleted,class:"tok-deleted"},{tag:_.literal,class:"tok-literal"},{tag:_.string,class:"tok-string"},{tag:_.number,class:"tok-number"},{tag:[_.regexp,_.escape,_.special(_.string)],class:"tok-string2"},{tag:_.variableName,class:"tok-variableName"},{tag:_.local(_.variableName),class:"tok-variableName tok-local"},{tag:_.definition(_.variableName),class:"tok-variableName tok-definition"},{tag:_.special(_.variableName),class:"tok-variableName2"},{tag:_.definition(_.propertyName),class:"tok-propertyName tok-definition"},{tag:_.typeName,class:"tok-typeName"},{tag:_.namespace,class:"tok-namespace"},{tag:_.className,class:"tok-className"},{tag:_.macroName,class:"tok-macroName"},{tag:_.propertyName,class:"tok-propertyName"},{tag:_.operator,class:"tok-operator"},{tag:_.comment,class:"tok-comment"},{tag:_.meta,class:"tok-meta"},{tag:_.invalid,class:"tok-invalid"},{tag:_.punctuation,class:"tok-punctuation"}])},1462:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]},1784:()=>{const e=document,t="_dark_mode_theme_",n="permanent",r="colorschemechange",i="light",o="dark",s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;Object.defineProperty(e,n,{enumerable:!0,get(){const e=this.getAttribute(t);return null===e?"":e},set(e){this.setAttribute(t,e)}})};class a extends HTMLElement{static get observedAttributes(){return["mode",i,o,n]}LOCAL_NANE=(()=>t)();constructor(){super(),this.t()}connectedCallback(){s(this,"mode"),s(this,o),s(this,i),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;Object.defineProperty(e,n,{enumerable:!0,get(){return this.hasAttribute(t)},set(e){e?this.setAttribute(t,""):this.removeAttribute(t)}})}(this,n);const a=localStorage.getItem(t);a&&[i,o].includes(a)&&(this.mode=a,this.permanent=!0),this.permanent&&!a&&localStorage.setItem(t,this.mode);const l=[i,o].includes(a);this.permanent&&a?this.o():(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(this.mode=o,this.o()),window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches&&(this.mode=i,this.o())),this.permanent||l||(window.matchMedia("(prefers-color-scheme: light)").onchange=e=>{this.mode=e.matches?i:o,this.o()},window.matchMedia("(prefers-color-scheme: dark)").onchange=e=>{this.mode=e.matches?o:i,this.o()});new MutationObserver((n,i)=>{this.mode=e.documentElement.dataset.colorMode,this.permanent&&l&&(localStorage.setItem(t,this.mode),this.i("permanentcolorscheme",{permanent:this.permanent})),this.h(),this.i(r,{colorScheme:this.mode})}).observe(e.documentElement,{attributes:!0}),this.i(r,{colorScheme:this.mode}),this.h()}attributeChangedCallback(e,n,r){if("mode"===e&&n!==r&&[i,o].includes(r)){const e=localStorage.getItem(t);this.mode===e?(this.mode=r,this.h(),this.o()):this.mode&&this.mode!==e&&(this.h(),this.o())}else e!==i&&e!==o||n===r||this.h();"permanent"===e&&"boolean"===typeof this.permanent&&(this.permanent?localStorage.setItem(t,this.mode):localStorage.removeItem(t))}o(){e.documentElement.setAttribute("data-color-mode",this.mode)}h(){this.icon.textContent=this.mode===i?"\ud83c\udf12":"\ud83c\udf1e",this.text.textContent=this.mode===i?this.getAttribute(o):this.getAttribute(i),!this.text.textContent&&this.text.parentElement&&this.text&&this.text.parentElement.removeChild(this.text)}t(){var n=this.attachShadow({mode:"open"});this.label=e.createElement("span"),this.label.setAttribute("class","wrapper"),this.label.onclick=()=>{this.mode=this.mode===i?o:i,this.permanent&&localStorage.setItem(t,this.mode),this.o(),this.h()},n.appendChild(this.label),this.icon=e.createElement("span"),this.icon.part="icon",this.label.appendChild(this.icon),this.text=e.createElement("span"),this.text.part="text",this.label.appendChild(this.text);const r="_dark_mode_style_";if(!e.getElementById(r)){var s=e.createElement("style");s.id=r,s.textContent="\n[data-color-mode*='dark'], [data-color-mode*='dark'] body {\n color-scheme: dark;\n --color-theme-bg: #0d1117;\n --color-theme-text: #c9d1d9;\n background-color: var(--color-theme-bg);\n color: var(--color-theme-text);\n}\n\n[data-color-mode*='light'], [data-color-mode*='light'] body {\n color-scheme: light;\n --color-theme-bg: #fff;\n --color-theme-text: #24292f;\n background-color: var(--color-theme-bg);\n color: var(--color-theme-text);\n}",e.head.appendChild(s)}var a=e.createElement("style");a.textContent="\n .wrapper { cursor: pointer; user-select: none; position: relative; }\n .wrapper > span + span { margin-left: .4rem; }\n ",n.appendChild(a)}i(e,t){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:t}))}}customElements.define("dark-mode",a)},1886:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,h=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"===typeof h&&(f=h,h=arguments[1]||{},d=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=l(h,n),h!==(i=l(t,n))&&(f&&i&&(s(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},a(h,{name:n,newValue:e(f,u,i)})):"undefined"!==typeof i&&a(h,{name:n,newValue:i}));return h}},2400:(e,t,n)=>{"use strict";n.d(t,{YH:()=>ge,Gu:()=>D,VR:()=>M,Je:()=>Ee,OF:()=>B,$t:()=>De,sj:()=>H,iR:()=>P,Nb:()=>ne,om:()=>Le,vB:()=>Fe,FB:()=>Ne,Pe:()=>ve,sU:()=>G,EY:()=>m,ZX:()=>ye,vS:()=>T,Fh:()=>C,QR:()=>Me,y$:()=>Ve,zK:()=>A,kn:()=>Ge,MK:()=>E});let r=[],i=[];function o(e){if(e<768)return!1;for(let t=0,n=r.length;;){let o=t+n>>1;if(e<r[o])n=o;else{if(!(e>=i[o]))return!0;t=o+1}if(t==n)return!1}}function s(e){return e>=127462&&e<=127487}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?i:r).push(n+=e[t])})();const a=8205;function l(e,t){return(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?c:u)(e,t,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function c(e,t,n){if(t==e.length)return t;t&&d(e.charCodeAt(t))&&p(e.charCodeAt(t-1))&&t--;let r=h(e,t);for(t+=f(r);t<e.length;){let i=h(e,t);if(r==a||i==a||n&&o(i))t+=f(i),r=i;else{if(!s(i))break;{let n=0,r=t-2;for(;r>=0&&s(h(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function u(e,t,n){for(;t>0;){let r=c(e,t-2,n);if(r<t)return r;t--}return 0}function h(e,t){let n=e.charCodeAt(t);if(!p(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return d(r)?r-56320+(n-55296<<10)+65536:n}function d(e){return e>=56320&&e<57344}function p(e){return e>=55296&&e<56320}function f(e){return e<65536?1:2}class m{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=w(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),O.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;[e,t]=w(this,e,t);let n=[];return this.decompose(e,t,n,0),O.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new y(this),i=new y(e);for(let o=t,s=t;;){if(r.next(o),i.next(o),o=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(s+=r.value.length,r.done||s>=n)return!0}}iter(){return new y(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}iterRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new x(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new k(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new g(e):O.from(g.split(e,[])):m.empty}}class g extends m{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e);super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],s=r+o.length;if((t?n:s)>=e)return new S(r,s,n,o);r=s+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new g(v(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=b(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new g(t,e.length+i.length));else{let e=t.length>>1;n.push(new g(t.slice(0,e)),new g(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof g))return super.replace(e,t,n);[e,t]=w(this,e,t);let r=b(this.text,b(n.text,v(this.text,0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new g(r,i):O.from(g.split(r,[]),i)}sliceString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";[e,t]=w(this,e,t);let r="";for(let i=0,o=0;i<=t&&o<this.text.length;o++){let s=this.text[o],a=i+s.length;i>e&&o&&(r+=n),e<a&&t>i&&(r+=s.slice(Math.max(0,e-i),t-i)),i=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new g(n,r)),n=[],r=-1);return r>-1&&t.push(new g(n,r)),t}}class O extends m{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],s=r+o.length,a=n+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,n,r);r=s+1,n=a+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i<this.children.length;i++){let s=this.children[i],a=o+s.length;if(e<=a&&t>=o){let i=r&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!i?n.push(s):s.decompose(e-o,t-o,n,i)}o=a+1}}replace(e,t,n){if([e,t]=w(this,e,t),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let o=this.children[r],s=i+o.length;if(e>=i&&t<=s){let a=o.replace(e-i,t-i,n),l=this.lines-o.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let i=this.children.slice();return i[r]=a,new O(i,this.length-(t-e)+n.length)}return super.replace(i,s,a)}i=s+1}return super.replace(e,t,n)}sliceString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";[e,t]=w(this,e,t);let r="";for(let i=0,o=0;i<this.children.length&&o<=t;i++){let s=this.children[i],a=o+s.length;o>e&&i&&(r+=n),e<a&&t>o&&(r+=s.sliceString(e-o,t-o,n)),o=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof O))return 0;let n=0,[r,i,o,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==o||i==s)return n;let a=this.children[r],l=e.children[i];if(a!=l)return n+a.scanIdentical(l,t);n+=a.length+1}}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.reduce((e,t)=>e+t.length+1,-1),n=0;for(let d of e)n+=d.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new g(n,t)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,s=[],a=0,l=-1,c=[];function u(e){let t;if(e.lines>i&&e instanceof O)for(let n of e.children)u(n);else e.lines>o&&(a>o||!a)?(h(),s.push(e)):e instanceof g&&a&&(t=c[c.length-1])instanceof g&&e.lines+t.lines<=32?(a+=e.lines,l+=e.length+1,c[c.length-1]=new g(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>r&&h(),a+=e.lines,l+=e.length+1,c.push(e))}function h(){0!=a&&(s.push(1==c.length?c[0]:O.from(c,l)),l=-1,a=c.length=0)}for(let d of e)u(d);return h(),1==s.length?s[0]:new O(s,t)}}function b(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9;for(let i=0,o=0,s=!0;o<e.length&&i<=r;o++){let a=e[o],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),s?(t[t.length-1]+=a,s=!1):t.push(a)),i=l+1}return t}function v(e,t,n){return b(e,[""],t,n)}m.empty=new g([""],0);class y{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof g?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,s=r instanceof g?r.text.length:r.children.length;if(o==(t>0?s:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof g){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof g?i.text.length:i.children.length)<<1))}}}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class x{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new y(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class k{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(m.prototype[Symbol.iterator]=function(){return this.iter()},y.prototype[Symbol.iterator]=x.prototype[Symbol.iterator]=k.prototype[Symbol.iterator]=function(){return this});class S{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function w(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function A(e,t){return l(e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2],!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function T(e,t){let n=e.charCodeAt(t);if(!((r=n)>=55296&&r<56320)||t+1==e.length)return n;var r;let i=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(i)?i-56320+(n-55296<<10)+65536:n}function E(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function C(e){return e<65536?1:2}const _=/\r\n?|\n/;var P=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(P||(P={}));class D{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],o=this.sections[t++];o<0?(e(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(e){Q(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new D(e)}composeDesc(e){return this.empty?e:e.empty?this:L(this,e)}mapDesc(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:I(this,e,t)}mapPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.Simple,r=0,i=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],a=this.sections[o++],l=r+s;if(a<0){if(l>e)return i+(e-r);i+=s}else{if(n!=P.Simple&&l>=e&&(n==P.TrackDel&&r<e&&l>e||n==P.TrackBefore&&r<e||n==P.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!s)return e==r||t<0?i:i+a;i+=a}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=r+this.sections[n++];if(this.sections[n++]>=0&&r<=t&&i>=e)return!(r<e&&i>t)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeDesc");return new D(e)}static create(e){return new D(e)}}class M extends D{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Q(this,(t,n,r,i,o)=>e=e.replace(r,r+(n-t),o),!1),e}mapDesc(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r<t.length;r+=2){let o=t[r],s=t[r+1];if(s>=0){t[r]=s,t[r+1]=o;let a=r>>1;for(;n.length<a;)n.push(m.empty);n.push(o?e.slice(i,i+o):m.empty)}i+=o}return new M(t,n)}compose(e){return this.empty?e:e.empty?this:L(this,e,!0)}map(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:I(this,e,t,!0)}iterChanges(e){Q(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}get desc(){return D.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new F(this);e:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];for(;s<a||s==a&&0==i.len;){if(i.done)break e;let e=Math.min(i.len,a-s);N(r,e,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;N(t,e,o),o>0&&R(n,t,i.text),i.forward(e),s+=e}let l=e[o++];for(;s<l;){if(i.done)break e;let e=Math.min(i.len,l-s);N(t,e,-1),N(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),s+=e}}return{changes:new M(t,n),filtered:D.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],o=0,s=null;function a(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&!r.length)return;o<t&&N(r,t-o,-1);let e=new M(r,i);s=s?s.compose(e.map(s)):e,r=[],i=[],o=0}return function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof M){if(l.length!=t)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);a(),s=s?s.compose(l.map(s)):l}else{let{from:e,to:s=e,insert:c}=l;if(e>s||e<0||s>t)throw new RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let u=c?"string"==typeof c?m.of(c.split(n||_)):c:m.empty,h=u.length;if(e==s&&0==h)return;e<o&&a(),e>o&&N(r,e-o,-1),N(r,s-e,h),R(i,r,u),o=s}}(e),a(!s),s}static empty(e){return new M(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if("number"==typeof i)t.push(i,-1);else{if(!Array.isArray(i)||"number"!=typeof i[0]||i.some((e,t)=>t&&"string"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)t.push(i[0],0);else{for(;n.length<r;)n.push(m.empty);n[r]=m.of(i.slice(1)),t.push(i[0],n[r].length)}}}return new M(t,n)}static createSet(e,t){return new M(e,t)}}function N(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function R(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(m.empty);e.push(n)}}function Q(e,t,n){let r=e.inserted;for(let i=0,o=0,s=0;s<e.sections.length;){let a=e.sections[s++],l=e.sections[s++];if(l<0)i+=a,o+=a;else{let c=i,u=o,h=m.empty;for(;c+=a,u+=l,l&&r&&(h=h.append(r[s-2>>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)a=e.sections[s++],l=e.sections[s++];t(i,c,o,u,h),i=c,o=u}}}function I(e,t,n){let r=[],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,o=new F(e),s=new F(t);for(let a=-1;;){if(o.done&&s.len||s.done&&o.len)throw new Error("Mismatched change set lengths");if(-1==o.ins&&-1==s.ins){let e=Math.min(o.len,s.len);N(r,e,-1),o.forward(e),s.forward(e)}else if(s.ins>=0&&(o.ins<0||a==o.i||0==o.off&&(s.len<o.len||s.len==o.len&&!n))){let e=s.len;for(N(r,s.ins,-1);e;){let t=Math.min(o.len,e);o.ins>=0&&a<o.i&&o.len<=t&&(N(r,0,o.ins),i&&R(i,r,o.text),a=o.i),o.forward(t),e-=t}s.next()}else{if(!(o.ins>=0)){if(o.done&&s.done)return i?M.createSet(r,i):D.create(r);throw new Error("Mismatched change set lengths")}{let e=0,t=o.len;for(;t;)if(-1==s.ins){let n=Math.min(t,s.len);e+=n,t-=n,s.forward(n)}else{if(!(0==s.ins&&s.len<t))break;t-=s.len,s.next()}N(r,e,a<o.i?o.ins:0),i&&a<o.i&&R(i,r,o.text),a=o.i,o.forward(o.len-t)}}}}function L(e,t){let n=[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?[]:null,i=new F(e),o=new F(t);for(let s=!1;;){if(i.done&&o.done)return r?M.createSet(n,r):D.create(n);if(0==i.ins)N(n,i.len,0,s),i.next();else if(0!=o.len||o.done){if(i.done||o.done)throw new Error("Mismatched change set lengths");{let e=Math.min(i.len2,o.len),t=n.length;if(-1==i.ins){let t=-1==o.ins?-1:o.off?0:o.ins;N(n,e,t,s),r&&t&&R(r,n,o.text)}else-1==o.ins?(N(n,i.off?0:i.len,e,s),r&&R(r,n,i.textBit(e))):(N(n,i.off?0:i.len,o.off?0:o.ins,s),r&&!o.off&&R(r,n,o.text));s=(i.ins>e||o.ins>=0&&o.len>e)&&(s||n.length>t),i.forward2(e),o.forward(e)}}else N(n,0,o.ins,s),r&&R(r,n,o.text),o.next()}}class F{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?m.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?m.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ${constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this.empty?t=n=e.mapPos(this.from,r):(t=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),t==this.from&&n==this.to?this:new $(t,n,this.flags)}extend(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e<=this.anchor&&t>=this.anchor)return B.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return B.range(this.anchor,n)}eq(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return B.range(e.anchor,e.head)}static create(e,t,n){return new $(e,t,n)}}class B{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.empty?this:B.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new B([this.main],0)}addRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return B.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,n=this.ranges.slice();return n[t]=e,B.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new B(e.ranges.map(e=>$.fromJSON(e)),e.main)}static single(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new B([B.range(e,t)],0)}static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return B.normalized(e.slice(),t);n=i.to}return new B(e,t)}static cursor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return $.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!==r&&void 0!==r?r:16777215)<<6)}static range(e,t,n,r){let i=(null!==n&&void 0!==n?n:16777215)<<6|(null==r?7:Math.min(6,r));return t<e?$.create(t,e,48|i):$.create(e,t,(t>e?8:0)|i)}static normalized(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let r=1;r<e.length;r++){let n=e[r],i=e[r-1];if(n.empty?n.from<=i.to:n.from<i.to){let o=i.from,s=Math.max(n.to,i.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?B.range(s,o):B.range(o,s))}}return new B(e,t)}}function z(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let q=0;class H{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=q++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new H(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:U),!!e.static,e.enables)}of(e){return new X([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new X(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new X(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function U(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class X{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=q++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,s=2==this.type,a=!1,l=!1,c=[];for(let u of this.dependencies)"doc"==u?a=!0:"selection"==u?l=!0:0==(1&(null!==(t=e[u.id])&&void 0!==t?t:1))&&c.push(e[u.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||Z(e,c)){let t=n(e);if(s?!j(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[i];if(null!=l){let i=le(t,l);if(this.dependencies.every(n=>n instanceof H?t.facet(n)===e.facet(n):!(n instanceof G)||t.field(n,!1)==e.field(n,!1))||(s?j(a=n(e),i,r):r(a=n(e),i)))return e.values[o]=i,0}else a=n(e);return e.values[o]=a,1}}}}function j(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Z(e,t){let n=!1;for(let r of t)1&ae(e,r)&&(n=!0);return n}function Y(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),o=r.filter(e=>!(1&e)),s=e[t.id]>>1;function a(e){let n=[];for(let t=0;t<r.length;t++){let o=le(e,r[t]);if(2==i[t])for(let e of o)n.push(e);else n.push(o)}return t.combine(n)}return{create(e){for(let t of r)ae(e,t);return e.values[s]=a(e),1},update(e,n){if(!Z(e,o))return 0;let r=a(e);return t.compare(r,e.values[s])?0:(e.values[s]=r,1)},reconfigure(e,i){let o=Z(e,r),l=i.config.facets[t.id],c=i.facet(t);if(l&&!o&&U(n,l))return e.values[s]=c,0;let u=a(e);return t.compare(u,c)?(e.values[s]=c,0):(e.values[s]=u,1)}}}const V=H.define({static:!0});class G{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new G(q++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(V).find(e=>e.field==this);return((null===t||void 0===t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r,i=e.facet(V),o=n.facet(V);return(r=i.find(e=>e.field==this))&&r!=o.find(e=>e.field==this)?(e.values[t]=r.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,V.of({field:this,create:e})]}get extension(){return this}}const W=4,K=3,J=2,ee=1;function te(e){return t=>new re(t,e)}const ne={highest:te(0),high:te(ee),default:te(J),low:te(K),lowest:te(W)};class re{constructor(e,t){this.inner=e,this.prec=t}}class ie{of(e){return new oe(this,e)}reconfigure(e){return ie.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class oe{constructor(e,t){this.compartment=e,this.inner=t}}class se{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let h of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(e,s){let a=i.get(e);if(null!=a){if(a<=s)return;let t=r[a].indexOf(e);t>-1&&r[a].splice(t,1),e instanceof oe&&n.delete(e.compartment)}if(i.set(e,s),Array.isArray(e))for(let t of e)o(t,s);else if(e instanceof oe){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),o(r,s)}else if(e instanceof re)o(e.inner,e.prec);else if(e instanceof G)r[s].push(e),e.provides&&o(e.provides,s);else if(e instanceof X)r[s].push(e),e.facet.extensions&&o(e.facet.extensions,J);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(t,s)}}return o(e,J),r.reduce((e,t)=>e.concat(t))}(e,t,o))h instanceof G?r.push(h):(i[h.facet.id]||(i[h.facet.id]=[])).push(h);let s=Object.create(null),a=[],l=[];for(let h of r)s[h.id]=l.length<<1,l.push(e=>h.slot(e));let c=null===n||void 0===n?void 0:n.config.facets;for(let h in i){let e=i[h],t=e[0].facet,r=c&&c[h]||[];if(e.every(e=>0==e.type))if(s[t.id]=a.length<<1|1,U(r,e))a.push(n.facet(t));else{let r=t.combine(e.map(e=>e.value));a.push(n&&t.compare(r,n.facet(t))?n.facet(t):r)}else{for(let t of e)0==t.type?(s[t.id]=a.length<<1|1,a.push(t.value)):(s[t.id]=l.length<<1,l.push(e=>t.dynamicSlot(e)));s[t.id]=l.length<<1,l.push(n=>Y(n,t,e))}}let u=l.map(e=>e(s));return new se(e,o,u,s,a,i)}}function ae(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function le(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const ce=H.define(),ue=H.define({combine:e=>e.some(e=>e),static:!0}),he=H.define({combine:e=>e.length?e[0]:void 0,static:!0}),de=H.define(),pe=H.define(),fe=H.define(),me=H.define({combine:e=>!!e.length&&e[0]});class ge{constructor(e,t){this.type=e,this.value=t}static define(){return new Oe}}class Oe{of(e){return new ge(this,e)}}class be{constructor(e){this.map=e}of(e){return new ve(this,e)}}class ve{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ve(this.type,t)}is(e){return this.type==e}static define(){return new be((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}ve.reconfigure=ve.define(),ve.appendConfig=ve.define();class ye{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&z(n,t.newLength),i.some(e=>e.type==ye.time)||(this.annotations=i.concat(ye.time.of(Date.now())))}static create(e,t,n,r,i,o){return new ye(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ye.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function xe(e,t){let n=[];for(let r=0,i=0;;){let o,s;if(r<e.length&&(i==t.length||t[i]>=e[r]))o=e[r++],s=e[r++];else{if(!(i<t.length))return n;o=t[i++],s=t[i++]}!n.length||n[n.length-1]<o?n.push(o,s):n[n.length-1]<s&&(n[n.length-1]=s)}}function ke(e,t,n){var r;let i,o,s;return n?(i=t.changes,o=M.empty(t.changes.length),s=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(i)),{changes:s,selection:t.selection?t.selection.map(o):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:ve.mapEffects(e.effects,i).concat(ve.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function Se(e,t,n){let r=t.selection,i=Te(t.annotations);return t.userEvent&&(i=i.concat(ye.userEvent.of(t.userEvent))),{changes:t.changes instanceof M?t.changes:M.of(t.changes||[],n,e.facet(he)),selection:r&&(r instanceof B?r:B.single(r.anchor,r.head)),effects:Te(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function we(e,t,n){let r=Se(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(let o=1;o<t.length;o++){!1===t[o].filter&&(n=!1);let i=!!t[o].sequential;r=ke(r,Se(e,t[o],i?r.changes.newLength:e.doc.length),i)}let i=ye.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(e){let t=e.startState,n=t.facet(fe),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=ke(r,Se(t,o,e.changes.newLength),!0))}return r==e?e:ye.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(de)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:xe(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=M.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=ye.create(t,r,e.selection&&e.selection.map(i),ve.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(pe);for(let i=r.length-1;i>=0;i--){let n=r[i](e);e=n instanceof ye?n:Array.isArray(n)&&1==n.length&&n[0]instanceof ye?n[0]:we(t,Te(n),!1)}return e}(i):i)}ye.time=ge.define(),ye.userEvent=ge.define(),ye.addToHistory=ge.define(),ye.remote=ge.define();const Ae=[];function Te(e){return null==e?Ae:Array.isArray(e)?e:[e]}var Ee=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Ee||(Ee={}));const Ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let _e;try{_e=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(We){}function Pe(e){return t=>{if(!/\S/.test(t))return Ee.Space;if(function(e){if(_e)return _e.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||Ce.test(n)))return!0}return!1}(t))return Ee.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return Ee.Word;return Ee.Other}}class De{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)ae(this,s<<1);this.computeSlot=null}field(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.config.address[e.id];if(null!=n)return ae(this,n),le(this,n);if(t)throw new RangeError("Field is not present in this state")}update(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return we(this,t,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let s of e.effects)s.is(ie.reconfigure)?(n&&(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),n=null),i.set(s.value.compartment,s.value.extension)):s.is(ve.reconfigure)?(n=null,r=s.value):s.is(ve.appendConfig)&&(n=null,r=Te(r).concat(s.value));if(n)t=e.startState.values.slice();else{n=se.resolve(r,i,this),t=new De(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values}let o=e.startState.facet(ue)?e.newSelection:e.newSelection.asSingle();new De(n,e.newDoc,o,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:B.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=Te(n.effects);for(let s=1;s<t.ranges.length;s++){let n=e(t.ranges[s]),a=this.changes(n.changes),l=a.map(r);for(let e=0;e<s;e++)i[e]=i[e].map(l);let c=r.mapDesc(a,!0);i.push(n.range.map(c)),r=r.compose(l),o=ve.mapEffects(o,l).concat(ve.mapEffects(Te(n.effects),c))}return{changes:r,selection:B.create(i,t.mainIndex),effects:o}}changes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e instanceof M?e:M.of(e,this.doc.length,this.facet(De.lineSeparator))}toText(e){return m.of(e.split(this.facet(De.lineSeparator)||_))}sliceDoc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(ae(this,t),le(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof G&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let i in n)if(Object.prototype.hasOwnProperty.call(e,i)){let t=n[i],o=e[i];r.push(t.init(e=>t.spec.fromJSON(o,e)))}return De.create({doc:e.doc,selection:B.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=se.resolve(e.extensions||[],new Map),n=e.doc instanceof m?e.doc:m.of((e.doc||"").split(t.staticFacet(De.lineSeparator)||_)),r=e.selection?e.selection instanceof B?e.selection:B.single(e.selection.anchor,e.selection.head):B.single(0);return z(r,n.length),t.staticFacet(ue)||(r=r.asSingle()),new De(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(De.tabSize)}get lineBreak(){return this.facet(De.lineSeparator)||"\n"}get readOnly(){return this.facet(me)}phrase(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(let i of this.facet(De.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(e,t)=>{if("$"==t)return"$";let r=+(t||1);return!r||r>n.length?e:n[r-1]})),e}languageDataAt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[];for(let i of this.facet(ce))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return Pe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let e=A(t,o,!1);if(i(t.slice(e,o))!=Ee.Word)break;o=e}for(;s<r;){let e=A(t,s);if(i(t.slice(s,e))!=Ee.Word)break;s=e}return o==s?null:B.range(o+n,s+n)}}function Me(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};for(let i of e)for(let e of Object.keys(i)){let t=i[e],o=r[e];if(void 0===o)r[e]=t;else if(o===t||void 0===t);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);r[e]=n[e](o,t)}}for(let i in t)void 0===r[i]&&(r[i]=t[i]);return r}De.allowMultipleSelections=ue,De.tabSize=H.define({combine:e=>e.length?e[0]:4}),De.lineSeparator=he,De.readOnly=me,De.phrases=H.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),De.languageData=ce,De.changeFilter=de,De.transactionFilter=pe,De.transactionExtender=fe,ie.reconfigure=ve.define();class Ne{eq(e){return this==e}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Re.create(e,t,this)}}Ne.prototype.startSide=Ne.prototype.endSide=0,Ne.prototype.point=!1,Ne.prototype.mapMode=P.TrackDel;class Re{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Re(e,t,n)}}function Qe(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Ie{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n?this.to:this.from;for(let o=r,s=i.length;;){if(o==s)return o;let r=o+s>>1,a=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return a>=0?o:s;a>=0?s=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let n=[],r=[],i=[],o=-1,s=-1;for(let a=0;a<this.value.length;a++){let l,c,u=this.value[a],h=this.from[a]+e,d=this.to[a]+e;if(h==d){let e=t.mapPos(h,u.startSide,u.mapMode);if(null==e)continue;if(l=c=e,u.startSide!=u.endSide&&(c=t.mapPos(h,u.endSide),c<l))continue}else if(l=t.mapPos(h,u.startSide),c=t.mapPos(d,u.endSide),l>c||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(o<0&&(o=l),u.point&&(s=Math.max(s,c-l)),n.push(u),r.push(l-o),i.push(c-o))}return{mapped:n.length?new Ie(r,i,n,s):null,pos:o}}}class Le{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Le(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Qe)),this.isEmpty)return t.length?Le.of(t):this;let s=new Be(this,null,-1).goto(0),a=0,l=[],c=new Fe;for(;s.value||a<t.length;)if(a<t.length&&(s.from-t[a].from||s.startSide-t[a].value.startSide)>=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(s.chunkIndex)<t[a].from)&&(!o||r>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||r>s.to||i<s.from||o(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||l.push(Re.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?Le.empty:this.nextLayer.update({add:l,filter:o,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let o=0;o<this.chunk.length;o++){let i=this.chunkPos[o],s=this.chunk[o],a=e.touchesRange(i,i+s.length);if(!1===a)r=Math.max(r,s.maxPoint),t.push(s),n.push(e.mapPos(i));else if(!0===a){let{mapped:o,pos:a}=s.map(i,e);o&&(r=Math.max(r,o.maxPoint),t.push(o),n.push(a))}}let i=this.nextLayer.map(e);return 0==t.length?i:new Le(n,t,i||Le.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(t>=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return ze.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ze.from(e).goto(t)}static compare(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),a=$e(o,s,n),l=new He(o,a,i),c=new He(s,a,i);n.iterGaps((e,t,n)=>Ue(l,e,c,t,n,r)),n.empty&&0==n.length&&Ue(l,0,c,0,0,r)}static eq(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);let i=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0),o=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0);if(i.length!=o.length)return!1;if(!i.length)return!0;let s=$e(i,o),a=new He(i,s,0).goto(n),l=new He(o,s,0).goto(n);for(;;){if(a.to!=l.to||!Xe(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>r)return!0;a.next(),l.next()}}static spans(e,t,n,r){let i=new He(e,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(t),o=t,s=i.openStart;for(;;){let e=Math.min(i.to,n);if(i.point){let n=i.activeForPoint(i.to),a=i.pointFrom<t?n.length+1:i.point.startSide<0?n.length:Math.min(n.length,s);r.point(o,e,i.point,n,a,i.pointRank),s=Math.min(i.openEnd(e),n.length)}else e>o&&(r.span(o,e,i.active,s),s=i.openEnd(e));if(i.to>n)return s+(i.point&&i.to>n?1:0);o=i.to,i.next()}}static of(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Fe;for(let r of e instanceof Re?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(Qe(t,r)>0)return e.slice().sort(Qe);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return Le.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=Le.empty;r=r.nextLayer)t=new Le(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}Le.empty=new Le([],[],null,-1),Le.empty.nextLayer=Le.empty;class Fe{finishChunk(e){this.chunks.push(new Ie(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Fe)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Le.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Le.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function $e(e,t,n){let r=new Map;for(let o of e)for(let e=0;e<o.chunk.length;e++)o.chunk[e].maxPoint<=0&&r.set(o.chunk[e],o.chunkPos[e]);let i=new Set;for(let o of t)for(let e=0;e<o.chunk.length;e++){let t=r.get(o.chunk[e]);null==t||(n?n.mapPos(t):t)!=o.chunkPos[e]||(null===n||void 0===n?void 0:n.touchesRange(t,t+o.chunk[e].length))||i.add(o.chunk[e])}return i}class Be{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class ze{constructor(e){this.heap=e}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new Be(o,t,n,i));return 1==r.length?r[0]:new ze(r)}get startSide(){return this.value?this.value.startSide:0}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)qe(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)qe(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),qe(this.heap,0)}}}function qe(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class He{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=ze.from(e,t,n)}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){je(this.active,e),je(this.activeTo,e),je(this.activeRank,e),this.minActive=Ye(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&(i-this.activeRank[t]||r-this.activeTo[t])>0;)t++;Ze(this.active,t,n),Ze(this.activeTo,t,r),Ze(this.activeRank,t,i),e&&Ze(e,t,this.cursor.from),this.minActive=Ye(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&je(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Ue(e,t,n,r,i,o){e.goto(t),n.goto(r);let s=r+i,a=r,l=r-t;for(;;){let t=e.to+l-n.to,r=t||e.endSide-n.endSide,i=r<0?e.to+l:n.to,c=Math.min(i,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Xe(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(a,c,e.point,n.point):c>a&&!Xe(e.active,n.active)&&o.compareRange(a,c,e.active,n.active),i>s)break;(t||e.openEnd!=n.openEnd)&&o.boundChange&&o.boundChange(i),a=i,r<=0&&e.next(),r>=0&&n.next()}}function Xe(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function je(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function Ze(e,t,n){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function Ye(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)(t[i]-r||e[i].endSide-e[n].endSide)<0&&(n=i,r=t[i]);return n}function Ve(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=0;for(let i=0;i<n&&i<e.length;)9==e.charCodeAt(i)?(r+=t-r%t,i++):(r++,i=A(e,i));return r}function Ge(e,t,n,r){for(let i=0,o=0;;){if(o>=t)return i;if(i==e.length)break;o+=9==e.charCodeAt(i)?n-o%n:1,i=A(e,i)}return!0===r?-1:e.length}},2609:(e,t,n)=>{var r=n(8161);t.encode=function(e){var t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var i,o,s=e.length,a=0,l=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&o),a+=(o&=31)<<l,l+=5}while(i);n.value=function(e){var t=e>>1;return 1===(1&e)?-t:t}(a),n.rest=t}},2840:(e,t,n)=>{var r=n(4006),i=Object.prototype.hasOwnProperty,o="undefined"!==typeof Map;function s(){this._array=[],this._set=o?new Map:Object.create(null)}s.fromArray=function(e,t){for(var n=new s,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},s.prototype.size=function(){return o?this._set.size:Object.getOwnPropertyNames(this._set).length},s.prototype.add=function(e,t){var n=o?e:r.toSetString(e),s=o?this.has(e):i.call(this._set,n),a=this._array.length;s&&!t||this._array.push(e),s||(o?this._set.set(e,a):this._set[n]=a)},s.prototype.has=function(e){if(o)return this._set.has(e);var t=r.toSetString(e);return i.call(this._set,t)},s.prototype.indexOf=function(e){if(o){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(i.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},s.prototype.toArray=function(){return this._array.slice()},t.C=s},3789:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});const r=document.createElement("i");function i(e){const t="&"+e+";";r.innerHTML=t;const n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}},3827:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{boolean:()=>mh,booleanish:()=>gh,commaOrSpaceSeparated:()=>xh,commaSeparated:()=>yh,number:()=>bh,overloadedBoolean:()=>Oh,spaceSeparated:()=>vh});var i={};n.r(i),n.d(i,{boolean:()=>tf,booleanish:()=>nf,commaOrSpaceSeparated:()=>lf,commaSeparated:()=>af,number:()=>of,overloadedBoolean:()=>rf,spaceSeparated:()=>sf});var o={};n.r(o),n.d(o,{attentionMarkers:()=>Bv,contentInitial:()=>Rv,disable:()=>zv,document:()=>Nv,flow:()=>Iv,flowInitial:()=>Qv,insideSpan:()=>$v,string:()=>Lv,text:()=>Fv});var s={};n.r(s),n.d(s,{safe:()=>DT,spec:()=>PT});var a={};n.r(a),n.d(a,{angle:()=>_E,decibel:()=>RE,flex:()=>NE,frequency:()=>DE,length:()=>CE,resolution:()=>ME,semitones:()=>QE,time:()=>PE});var l={};n.r(l),n.d(l,{getTrace:()=>xC,isKeyword:()=>wC,isProperty:()=>SC,isType:()=>kC});var c={};n.r(c),n.d(c,{generate:()=>n_,name:()=>JC,parse:()=>t_,structure:()=>e_});var u={};n.r(u),n.d(u,{generate:()=>c_,name:()=>o_,parse:()=>l_,structure:()=>a_,walkContext:()=>s_});var h={};n.r(h),n.d(h,{generate:()=>f_,name:()=>u_,parse:()=>p_,structure:()=>d_,walkContext:()=>h_});var d={};n.r(d),n.d(d,{generate:()=>T_,name:()=>S_,parse:()=>A_,structure:()=>w_});var p={};n.r(p),n.d(p,{generate:()=>I_,name:()=>M_,parse:()=>Q_,structure:()=>R_,walkContext:()=>N_});var f={};n.r(f),n.d(f,{generate:()=>B_,name:()=>L_,parse:()=>$_,structure:()=>F_});var m={};n.r(m),n.d(m,{generate:()=>U_,name:()=>z_,parse:()=>H_,structure:()=>q_});var g={};n.r(g),n.d(g,{generate:()=>Y_,name:()=>X_,parse:()=>Z_,structure:()=>j_});var O={};n.r(O),n.d(O,{generate:()=>J_,name:()=>G_,parse:()=>K_,structure:()=>W_});var b={};n.r(b),n.d(b,{generate:()=>aP,name:()=>iP,parse:()=>sP,structure:()=>oP});var v={};n.r(v),n.d(v,{generate:()=>pP,name:()=>uP,parse:()=>dP,structure:()=>hP});var y={};n.r(y),n.d(y,{generate:()=>CP,name:()=>wP,parse:()=>EP,structure:()=>TP,walkContext:()=>AP});var x={};n.r(x),n.d(x,{generate:()=>IP,name:()=>NP,parse:()=>QP,structure:()=>RP});var k={};n.r(k),n.d(k,{generate:()=>BP,name:()=>LP,parse:()=>$P,structure:()=>FP});var S={};n.r(S),n.d(S,{generate:()=>XP,name:()=>zP,parse:()=>UP,structure:()=>HP,walkContext:()=>qP});var w={};n.r(w),n.d(w,{generate:()=>GP,name:()=>ZP,parse:()=>VP,structure:()=>YP,xxx:()=>jP});var A={};n.r(A),n.d(A,{generate:()=>eD,name:()=>WP,parse:()=>JP,structure:()=>KP});var T={};n.r(T),n.d(T,{generate:()=>iD,name:()=>tD,parse:()=>rD,structure:()=>nD});var E={};n.r(E),n.d(E,{generate:()=>lD,name:()=>oD,parse:()=>aD,structure:()=>sD});var C={};n.r(C),n.d(C,{generate:()=>dD,name:()=>cD,parse:()=>hD,structure:()=>uD});var _={};n.r(_),n.d(_,{generate:()=>gD,name:()=>pD,parse:()=>mD,structure:()=>fD});var P={};n.r(P),n.d(P,{generate:()=>xD,name:()=>bD,parse:()=>yD,structure:()=>vD});var D={};n.r(D),n.d(D,{generate:()=>AD,name:()=>kD,parse:()=>wD,structure:()=>SD});var M={};n.r(M),n.d(M,{generate:()=>_D,name:()=>TD,parse:()=>CD,structure:()=>ED});var N={};n.r(N),n.d(N,{generate:()=>ND,name:()=>PD,parse:()=>MD,structure:()=>DD});var R={};n.r(R),n.d(R,{generate:()=>LD,name:()=>RD,parse:()=>ID,structure:()=>QD});var Q={};n.r(Q),n.d(Q,{generate:()=>zD,name:()=>FD,parse:()=>BD,structure:()=>$D});var I={};n.r(I),n.d(I,{generate:()=>jD,name:()=>qD,parse:()=>XD,structure:()=>UD,walkContext:()=>HD});var L={};n.r(L),n.d(L,{generate:()=>WD,name:()=>ZD,parse:()=>GD,structure:()=>VD,walkContext:()=>YD});var F={};n.r(F),n.d(F,{generate:()=>iM,name:()=>tM,parse:()=>rM,structure:()=>nM});var $={};n.r($),n.d($,{generate:()=>cM,name:()=>sM,parse:()=>lM,structure:()=>aM});var B={};n.r(B),n.d(B,{generate:()=>gM,name:()=>dM,parse:()=>mM,structure:()=>fM,walkContext:()=>pM});var z={};n.r(z),n.d(z,{generate:()=>yM,name:()=>OM,parse:()=>vM,structure:()=>bM});var q={};n.r(q),n.d(q,{generate:()=>AM,name:()=>xM,parse:()=>wM,structure:()=>SM,walkContext:()=>kM});var H={};n.r(H),n.d(H,{generate:()=>NM,name:()=>PM,parse:()=>MM,structure:()=>DM});var U={};n.r(U),n.d(U,{generate:()=>BM,name:()=>IM,parse:()=>$M,structure:()=>FM,walkContext:()=>LM});var X={};n.r(X),n.d(X,{generate:()=>ZM,name:()=>UM,parse:()=>jM,structure:()=>XM});var j={};n.r(j),n.d(j,{generate:()=>iN,name:()=>tN,parse:()=>rN,structure:()=>nN});var Z={};n.r(Z),n.d(Z,{generate:()=>fN,name:()=>hN,parse:()=>pN,structure:()=>dN});var Y={};n.r(Y),n.d(Y,{generate:()=>bN,name:()=>mN,parse:()=>ON,structure:()=>gN});var V={};n.r(V),n.d(V,{generate:()=>SN,name:()=>yN,parse:()=>kN,structure:()=>xN});var G={};n.r(G),n.d(G,{AnPlusB:()=>c,Atrule:()=>u,AtrulePrelude:()=>h,AttributeSelector:()=>d,Block:()=>p,Brackets:()=>f,CDC:()=>m,CDO:()=>g,ClassSelector:()=>O,Combinator:()=>b,Comment:()=>v,Declaration:()=>y,DeclarationList:()=>x,Dimension:()=>k,Function:()=>S,Hash:()=>w,IdSelector:()=>T,Identifier:()=>A,MediaFeature:()=>E,MediaQuery:()=>C,MediaQueryList:()=>_,NestingSelector:()=>P,Nth:()=>D,Number:()=>M,Operator:()=>N,Parentheses:()=>R,Percentage:()=>Q,PseudoClassSelector:()=>I,PseudoElementSelector:()=>L,Ratio:()=>F,Raw:()=>$,Rule:()=>B,Selector:()=>z,SelectorList:()=>q,String:()=>H,StyleSheet:()=>U,TypeSelector:()=>X,UnicodeRange:()=>j,Url:()=>Z,Value:()=>Y,WhiteSpace:()=>V});var W={};n.r(W),n.d(W,{AtrulePrelude:()=>TN,Selector:()=>EN,Value:()=>_N});var K={};n.r(K),n.d(K,{AnPlusB:()=>t_,Atrule:()=>l_,AtrulePrelude:()=>p_,AttributeSelector:()=>A_,Block:()=>Q_,Brackets:()=>$_,CDC:()=>H_,CDO:()=>Z_,ClassSelector:()=>K_,Combinator:()=>sP,Comment:()=>dP,Declaration:()=>EP,DeclarationList:()=>QP,Dimension:()=>$P,Function:()=>UP,Hash:()=>VP,IdSelector:()=>rD,Identifier:()=>JP,MediaFeature:()=>aD,MediaQuery:()=>hD,MediaQueryList:()=>mD,NestingSelector:()=>yD,Nth:()=>wD,Number:()=>CD,Operator:()=>MD,Parentheses:()=>ID,Percentage:()=>BD,PseudoClassSelector:()=>XD,PseudoElementSelector:()=>GD,Ratio:()=>rM,Raw:()=>lM,Rule:()=>mM,Selector:()=>vM,SelectorList:()=>wM,String:()=>MM,StyleSheet:()=>$M,TypeSelector:()=>jM,UnicodeRange:()=>rN,Url:()=>pN,Value:()=>ON,WhiteSpace:()=>kN});var J,ee=n(905),te=n.t(ee,2),ne=n(8721),re=n(4824),ie=n.t(re,2);function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(J||(J={}));const se="popstate";function ae(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function le(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function ce(e,t){return{usr:e.state,key:e.key,idx:t}}function ue(e,t,n,r){return void 0===n&&(n=null),oe({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?de(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function he(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function de(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function pe(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=J.Pop,l=null,c=u();function u(){return(s.state||{idx:null}).idx}function h(){a=J.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:a,location:p.location,delta:t})}function d(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:he(e);return n=n.replace(/ $/,"%20"),ae(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,s.replaceState(oe({},s.state,{idx:c}),""));let p={get action(){return a},get location(){return e(i,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(se,h),l=e,()=>{i.removeEventListener(se,h),l=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){a=J.Push;let r=ue(p.location,e,t);n&&n(r,e),c=u()+1;let h=ce(r,c),d=p.createHref(r);try{s.pushState(h,"",d)}catch(f){if(f instanceof DOMException&&"DataCloneError"===f.name)throw f;i.location.assign(d)}o&&l&&l({action:a,location:p.location,delta:1})},replace:function(e,t){a=J.Replace;let r=ue(p.location,e,t);n&&n(r,e),c=u();let i=ce(r,c),h=p.createHref(r);s.replaceState(i,"",h),o&&l&&l({action:a,location:p.location,delta:0})},go:e=>s.go(e)};return p}var fe;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(fe||(fe={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function me(e,t,n){return void 0===n&&(n="/"),ge(e,t,n,!1)}function ge(e,t,n,r){let i=Pe(("string"===typeof t?de(t):t).pathname||"/",n);if(null==i)return null;let o=Oe(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let s=null;for(let a=0;null==s&&a<o.length;++a){let e=_e(i);s=Ee(o[a],e,r)}return s}function Oe(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(ae(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let a=Qe([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(ae(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),Oe(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:Te(a,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of be(e.path))i(e,t,r);else i(e,t)}),t}function be(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=be(r.join("/")),a=[];return a.push(...s.map(e=>""===e?o:[o,e].join("/"))),i&&a.push(...s),a.map(t=>e.startsWith("/")&&""===t?"/":t)}const ve=/^:[\w-]+$/,ye=3,xe=2,ke=1,Se=10,we=-2,Ae=e=>"*"===e;function Te(e,t){let n=e.split("/"),r=n.length;return n.some(Ae)&&(r+=we),t&&(r+=xe),n.filter(e=>!Ae(e)).reduce((e,t)=>e+(ve.test(t)?ye:""===t?ke:Se),r)}function Ee(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a<r.length;++a){let e=r[a],l=a===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=Ce({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),h=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=Ce({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),s.push({params:i,pathname:Qe([o,u.pathname]),pathnameBase:Ie(Qe([o,u.pathnameBase])),route:h}),"/"!==u.pathnameBase&&(o=Qe([o,u.pathnameBase]))}return s}function Ce(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);le("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1),l=r.reduce((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=a[n]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:o,pathnameBase:s,pattern:e}}function _e(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return le(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Pe(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function De(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Me(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function Ne(e,t){let n=Me(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function Re(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=de(e):(i=oe({},e),ae(!i.pathname||!i.pathname.includes("?"),De("?","pathname","search",i)),ae(!i.pathname||!i.pathname.includes("#"),De("#","pathname","hash",i)),ae(!i.search||!i.search.includes("#"),De("#","search","hash",i)));let o,s=""===e||""===i.pathname,a=s?"/":i.pathname;if(null==a)o=n;else{let e=t.length-1;if(!r&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?de(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:Le(r),hash:Fe(i)}}(i,o),c=a&&"/"!==a&&a.endsWith("/"),u=(s||"."===a)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Qe=e=>e.join("/").replace(/\/\/+/g,"/"),Ie=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Le=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Fe=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function $e(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const Be=["post","put","patch","delete"],ze=(new Set(Be),["get",...Be]);new Set(ze),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qe.apply(this,arguments)}const He=ee.createContext(null);const Ue=ee.createContext(null);const Xe=ee.createContext(null);const je=ee.createContext(null);const Ze=ee.createContext({outlet:null,matches:[],isDataRoute:!1});const Ye=ee.createContext(null);function Ve(){return null!=ee.useContext(je)}function Ge(){return Ve()||ae(!1),ee.useContext(je).location}function We(e){ee.useContext(Xe).static||ee.useLayoutEffect(e)}function Ke(){let{isDataRoute:e}=ee.useContext(Ze);return e?function(){let{router:e}=ct(at.UseNavigateStable),t=ht(lt.UseNavigateStable),n=ee.useRef(!1);We(()=>{n.current=!0});let r=ee.useCallback(function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,qe({fromRouteId:t},i)))},[e,t]);return r}():function(){Ve()||ae(!1);let e=ee.useContext(He),{basename:t,future:n,navigator:r}=ee.useContext(Xe),{matches:i}=ee.useContext(Ze),{pathname:o}=Ge(),s=JSON.stringify(Ne(i,n.v7_relativeSplatPath)),a=ee.useRef(!1);We(()=>{a.current=!0});let l=ee.useCallback(function(n,i){if(void 0===i&&(i={}),!a.current)return;if("number"===typeof n)return void r.go(n);let l=Re(n,JSON.parse(s),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Qe([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)},[t,r,s,o,e]);return l}()}const Je=ee.createContext(null);function et(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=ee.useContext(Xe),{matches:i}=ee.useContext(Ze),{pathname:o}=Ge(),s=JSON.stringify(Ne(i,r.v7_relativeSplatPath));return ee.useMemo(()=>Re(e,JSON.parse(s),o,"path"===n),[e,s,o,n])}function tt(e,t,n,r){Ve()||ae(!1);let{navigator:i}=ee.useContext(Xe),{matches:o}=ee.useContext(Ze),s=o[o.length-1],a=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let c,u=Ge();if(t){var h;let e="string"===typeof t?de(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||ae(!1),c=e}else c=u;let d=c.pathname||"/",p=d;if("/"!==l){let e=l.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=me(e,{pathname:p});let m=st(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:Qe([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Qe([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,n,r);return t&&m?ee.createElement(je.Provider,{value:{location:qe({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:J.Pop}},m):m}function nt(){let e=function(){var e;let t=ee.useContext(Ye),n=ut(lt.UseRouteError),r=ht(lt.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=$e(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return ee.createElement(ee.Fragment,null,ee.createElement("h2",null,"Unexpected Application Error!"),ee.createElement("h3",{style:{fontStyle:"italic"}},t),n?ee.createElement("pre",{style:i},n):null,null)}const rt=ee.createElement(nt,null);class it extends ee.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?ee.createElement(Ze.Provider,{value:this.props.routeContext},ee.createElement(Ye.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ot(e){let{routeContext:t,match:n,children:r}=e,i=ee.useContext(He);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),ee.createElement(Ze.Provider,{value:t},r)}function st(e,t,n,r){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,a=null==(i=n)?void 0:i.errors;if(null!=a){let e=s.findIndex(e=>e.route.id&&void 0!==(null==a?void 0:a[e.route.id]));e>=0||ae(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<s.length;u++){let e=s[u];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=u),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){l=!0,s=c>=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight((e,r,i)=>{let o,u=!1,h=null,d=null;n&&(o=a&&r.route.id?a[r.route.id]:void 0,h=r.route.errorElement||rt,l&&(c<0&&0===i?(!function(e,t){t||dt[e]||(dt[e]=!0)}("route-fallback",!1),u=!0,d=null):c===i&&(u=!0,d=r.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,i+1)),f=()=>{let t;return t=o?h:u?d:r.route.Component?ee.createElement(r.route.Component,null):r.route.element?r.route.element:e,ee.createElement(ot,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?ee.createElement(it,{location:n.location,revalidation:n.revalidation,component:h,error:o,children:f(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):f()},null)}var at=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(at||{}),lt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(lt||{});function ct(e){let t=ee.useContext(He);return t||ae(!1),t}function ut(e){let t=ee.useContext(Ue);return t||ae(!1),t}function ht(e){let t=function(){let e=ee.useContext(Ze);return e||ae(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||ae(!1),n.route.id}const dt={};function pt(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}te.startTransition;function ft(e){return function(e){let t=ee.useContext(Ze).outlet;return t?ee.createElement(Je.Provider,{value:e},t):t}(e.context)}function mt(e){ae(!1)}function gt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=J.Pop,navigator:o,static:s=!1,future:a}=e;Ve()&&ae(!1);let l=t.replace(/^\/*/,"/"),c=ee.useMemo(()=>({basename:l,navigator:o,static:s,future:qe({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);"string"===typeof r&&(r=de(r));let{pathname:u="/",search:h="",hash:d="",state:p=null,key:f="default"}=r,m=ee.useMemo(()=>{let e=Pe(u,l);return null==e?null:{location:{pathname:e,search:h,hash:d,state:p,key:f},navigationType:i}},[l,u,h,d,p,f,i]);return null==m?null:ee.createElement(Xe.Provider,{value:c},ee.createElement(je.Provider,{children:n,value:m}))}function Ot(e){let{children:t,location:n}=e;return tt(bt(t),n)}new Promise(()=>{});ee.Component;function bt(e,t){void 0===t&&(t=[]);let n=[];return ee.Children.forEach(e,(e,r)=>{if(!ee.isValidElement(e))return;let i=[...t,r];if(e.type===ee.Fragment)return void n.push.apply(n,bt(e.props.children,i));e.type!==mt&&ae(!1),e.props.index&&e.props.children&&ae(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=bt(e.props.children,i)),n.push(o)}),n}function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vt.apply(this,arguments)}function yt(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function xt(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const kt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],St=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(mz){}const wt=ee.createContext({isTransitioning:!1});new Map;const At=te.startTransition;ie.flushSync,te.useId;function Tt(e){let{basename:t,children:n,future:r,window:i}=e,o=ee.useRef();var s;null==o.current&&(o.current=(void 0===(s={window:i,v5Compat:!0})&&(s={}),pe(function(e,t){let{pathname:n="/",search:r="",hash:i=""}=de(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),ue("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:he(t))},function(e,t){le("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},s)));let a=o.current,[l,c]=ee.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},h=ee.useCallback(e=>{u&&At?At(()=>c(e)):c(e)},[c,u]);return ee.useLayoutEffect(()=>a.listen(h),[a,h]),ee.useEffect(()=>pt(r),[r]),ee.createElement(gt,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const Et="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Ct=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_t=ee.forwardRef(function(e,t){let n,{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:h}=e,d=yt(e,kt),{basename:p}=ee.useContext(Xe),f=!1;if("string"===typeof c&&Ct.test(c)&&(n=c,Et))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=Pe(t.pathname,p);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:f=!0}catch(mz){}let m=function(e,t){let{relative:n}=void 0===t?{}:t;Ve()||ae(!1);let{basename:r,navigator:i}=ee.useContext(Xe),{hash:o,pathname:s,search:a}=et(e,{relative:n}),l=s;return"/"!==r&&(l="/"===s?r:Qe([r,s])),i.createHref({pathname:l,search:a,hash:o})}(c,{relative:i}),g=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=void 0===t?{}:t,l=Ke(),c=Ge(),u=et(e,{relative:s});return ee.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:he(c)===he(u);l(e,{replace:n,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,u,r,i,n,e,o,s,a])}(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:h});return ee.createElement("a",vt({},d,{href:n||m,onClick:f||o?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:l}))});const Pt=ee.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:o=!1,style:s,to:a,viewTransition:l,children:c}=e,u=yt(e,St),h=et(a,{relative:u.relative}),d=Ge(),p=ee.useContext(Ue),{navigator:f,basename:m}=ee.useContext(Xe),g=null!=p&&function(e,t){void 0===t&&(t={});let n=ee.useContext(wt);null==n&&ae(!1);let{basename:r}=Nt(Dt.useViewTransitionState),i=et(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Pe(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Pe(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=Ce(i.pathname,s)||null!=Ce(i.pathname,o)}(h)&&!0===l,O=f.encodeLocation?f.encodeLocation(h).pathname:h.pathname,b=d.pathname,v=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(b=b.toLowerCase(),v=v?v.toLowerCase():null,O=O.toLowerCase()),v&&m&&(v=Pe(v,m)||v);const y="/"!==O&&O.endsWith("/")?O.length-1:O.length;let x,k=b===O||!o&&b.startsWith(O)&&"/"===b.charAt(y),S=null!=v&&(v===O||!o&&v.startsWith(O)&&"/"===v.charAt(O.length)),w={isActive:k,isPending:S,isTransitioning:g},A=k?n:void 0;x="function"===typeof i?i(w):[i,k?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let T="function"===typeof s?s(w):s;return ee.createElement(_t,vt({},u,{"aria-current":A,className:x,ref:t,style:T,to:a,viewTransition:l}),"function"===typeof c?c(w):c)});var Dt,Mt;function Nt(e){let t=ee.useContext(He);return t||ae(!1),t}function Rt(e){let t=ee.useRef(xt(e)),n=ee.useRef(!1),r=Ge(),i=ee.useMemo(()=>function(e,t){let n=xt(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),o=Ke(),s=ee.useCallback((e,t)=>{const r=xt("function"===typeof e?e(i):e);n.current=!0,o("?"+r,t)},[o,i]);return[i,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Dt||(Dt={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Mt||(Mt={}));function Qt(){return Qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qt.apply(null,arguments)}function It(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Lt=n(8557),Ft=["className","prefixCls","element","top","size","strokeWidth","smooth","hideProgress","children"],$t={position:"sticky",bottom:15,right:15,visibility:"visible",opacity:0,transition:"visibility 0.3s linear 0s, opacity 0.3s linear 0s",cursor:"pointer",userSelect:"none"},Bt={display:"block",transform:"rotate(-90deg)"},zt={transition:"stroke-dashoffset 0.3s linear 0s"},qt={position:"absolute",top:0,display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:12},Ht=document.documentElement;function Ut(e){void 0===e&&(e={});var{className:t,prefixCls:n="w-back-to-up",element:r=Ht,top:i=120,size:o=35,strokeWidth:s=3,smooth:a=!0,hideProgress:l=!1,children:c}=e,u=It(e,Ft),h=(0,ee.useRef)(null),d=[t,n].filter(Boolean).join(" "),p=Object.assign({},$t,{position:r===Ht?"fixed":"sticky"},u.style,{width:o,height:o,opacity:0===i?1:0}),f=(0,ee.useMemo)(()=>o/2,[o]),m=(0,ee.useMemo)(()=>o/2-s/2,[o,s]),g=(0,ee.useMemo)(()=>Math.PI*m*2,[m]),[O,b]=(0,ee.useState)(g||0),v=e=>{var{clientHeight:t,scrollHeight:n,scrollTop:o}=r||Ht;b(g-g*(o/(n-t))||0),h.current&&i>0&&(h.current.style.opacity=o>i?"1":"0")};(0,ee.useEffect)(()=>{var e=r===Ht?document:r;return e&&e.addEventListener("scroll",v,{passive:!0}),()=>{e&&e.removeEventListener("scroll",v)}},[r]);return(0,Lt.jsxs)("div",Qt({className:d,ref:h},u,{onClick:e=>{r.scrollTo({top:0,behavior:a?"smooth":"auto"})},style:p,children:[!l&&(0,Lt.jsxs)("svg",{viewBox:"0 0 "+o+" "+o,width:o,height:o,focusable:"false",style:Bt,children:[(0,Lt.jsx)("circle",{fill:"rgb(0 0 0 / 75%)",stroke:"rgb(200 200 200 / 85%)",strokeWidth:s,r:m,cx:f,cy:f}),(0,Lt.jsx)("circle",{fill:"none",stroke:"rgb(0 0 0 / 50%)",strokeWidth:s,r:m,cx:f,cy:f,strokeDasharray:g,strokeDashoffset:O||0,style:zt})]}),c&&(0,Lt.jsx)("div",{style:qt,children:c})]}))}let Xt={data:""},jt=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Xt,Zt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Yt=/\/\*[^]*?\*\/| +/g,Vt=/\n+/g,Gt=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+s+";":r+="f"==o[1]?Gt(s,o):o+"{"+Gt(s,"k"==o[1]?"":t)+"}":"object"==typeof s?r+=Gt(s,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Gt.p?Gt.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Wt={},Kt=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Kt(e[n]);return t}return e},Jt=(e,t,n,r,i)=>{let o=Kt(e),s=Wt[o]||(Wt[o]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(o));if(!Wt[s]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=Zt.exec(e.replace(Yt,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Vt," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Vt," ").trim();return r[0]})(e);Wt[s]=Gt(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&Wt.g?Wt.g:null;return n&&(Wt.g=Wt[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Wt[s],t,r,a),s};function en(e){let t=this||{},n=e.call?e(t.p):e;return Jt(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":Gt(e,""):!1===e?"":e}return e+r+(null==o?"":o)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,jt(t.target),t.g,t.o,t.k)}en.bind({g:1});let tn,nn,rn,on=en.bind({k:1});function sn(e,t){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),l=a.className||i.className;n.p=Object.assign({theme:nn&&nn()},a),n.o=/ *go\d+/.test(l),a.className=en.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let c=e;return e[0]&&(c=a.as||e,delete a.as),rn&&c[0]&&rn(a),tn(c,a)}return t?t(i):i}}var an=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,ln=(()=>{let e=0;return()=>(++e).toString()})(),cn=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),un=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return un(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},hn=[],dn={toasts:[],pausedAt:void 0},pn=e=>{dn=un(dn,e),hn.forEach(e=>{e(dn)})},fn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},mn=e=>(t,n)=>{let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||ln()}}(t,e,n);return pn({type:2,toast:r}),r.id},gn=(e,t)=>mn("blank")(e,t);gn.error=mn("error"),gn.success=mn("success"),gn.loading=mn("loading"),gn.custom=mn("custom"),gn.dismiss=e=>{pn({type:3,toastId:e})},gn.remove=e=>pn({type:4,toastId:e}),gn.promise=(e,t,n)=>{let r=gn.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let i=t.success?an(t.success,e):void 0;return i?gn.success(i,{id:r,...n,...null==n?void 0:n.success}):gn.dismiss(r),e}).catch(e=>{let i=t.error?an(t.error,e):void 0;i?gn.error(i,{id:r,...n,...null==n?void 0:n.error}):gn.dismiss(r)}),e};var On=(e,t)=>{pn({type:1,toast:{id:e,height:t}})},bn=()=>{pn({type:5,time:Date.now()})},vn=new Map,yn=e=>{let{toasts:t,pausedAt:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,ee.useState)(dn),r=(0,ee.useRef)(dn);(0,ee.useEffect)(()=>(r.current!==dn&&n(dn),hn.push(n),()=>{let e=hn.indexOf(n);e>-1&&hn.splice(e,1)}),[]);let i=t.toasts.map(t=>{var n,r,i;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||fn[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}});return{...t,toasts:i}}(e);(0,ee.useEffect)(()=>{if(n)return;let e=Date.now(),r=t.map(t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout(()=>gn.dismiss(t.id),n);t.visible&&gn.dismiss(t.id)});return()=>{r.forEach(e=>e&&clearTimeout(e))}},[t,n]);let r=(0,ee.useCallback)(()=>{n&&pn({type:6,time:Date.now()})},[n]),i=(0,ee.useCallback)((e,n)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=n||{},s=t.filter(t=>(t.position||o)===(e.position||o)&&t.height),a=s.findIndex(t=>t.id===e.id),l=s.filter((e,t)=>t<a&&e.visible).length;return s.filter(e=>e.visible).slice(...r?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+i,0)},[t]);return(0,ee.useEffect)(()=>{t.forEach(e=>{if(e.dismissed)!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(vn.has(e))return;let n=setTimeout(()=>{vn.delete(e),pn({type:4,toastId:e})},t);vn.set(e,n)}(e.id,e.removeDelay);else{let t=vn.get(e.id);t&&(clearTimeout(t),vn.delete(e.id))}})},[t]),{toasts:t,handlers:{updateHeight:On,startPause:bn,endPause:r,calculateOffset:i}}},xn=on`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,kn=on`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`,Sn=on`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`,wn=sn("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
animation: ${xn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${kn} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${e=>e.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${Sn} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`,An=on`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,Tn=sn("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${e=>e.secondary||"#e0e0e0"};
border-right-color: ${e=>e.primary||"#616161"};
animation: ${An} 1s linear infinite;
`,En=on`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,Cn=on`
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
}`,_n=sn("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
animation: ${En} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
animation: ${Cn} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${e=>e.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
`,Pn=sn("div")`
position: absolute;
`,Dn=sn("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
`,Mn=on`
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}`,Nn=sn("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
animation: ${Mn} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
`,Rn=e=>{let{toast:t}=e,{icon:n,type:r,iconTheme:i}=t;return void 0!==n?"string"==typeof n?ee.createElement(Nn,null,n):n:"blank"===r?null:ee.createElement(Dn,null,ee.createElement(Tn,{...i}),"loading"!==r&&ee.createElement(Pn,null,"error"===r?ee.createElement(wn,{...i}):ee.createElement(_n,{...i})))},Qn=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,In=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,Ln=sn("div")`
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
`,Fn=sn("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
`,$n=ee.memo(e=>{let{toast:t,position:n,style:r,children:i}=e,o=t.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,i]=cn()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Qn(n),In(n)];return{animation:t?`${on(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${on(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(t.position||n||"top-center",t.visible):{opacity:0},s=ee.createElement(Rn,{toast:t}),a=ee.createElement(Fn,{...t.ariaProps},an(t.message,t));return ee.createElement(Ln,{className:t.className,style:{...o,...r,...t.style}},"function"==typeof i?i({icon:s,message:a}):ee.createElement(ee.Fragment,null,s,a))});!function(e,t,n,r){Gt.p=t,tn=e,nn=n,rn=r}(ee.createElement);var Bn=e=>{let{id:t,className:n,style:r,onHeightUpdate:i,children:o}=e,s=ee.useCallback(e=>{if(e){let n=()=>{let n=e.getBoundingClientRect().height;i(t,n)};n(),new MutationObserver(n).observe(e,{subtree:!0,childList:!0,characterData:!0})}},[t,i]);return ee.createElement("div",{ref:s,className:n,style:r},o)},zn=en`
z-index: 9999;
> * {
pointer-events: auto;
}
`,qn=e=>{let{reverseOrder:t,position:n="top-center",toastOptions:r,gutter:i,children:o,containerStyle:s,containerClassName:a}=e,{toasts:l,handlers:c}=yn(r);return ee.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:a,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map(e=>{let r=e.position||n,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:cn()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}})(r,c.calculateOffset(e,{reverseOrder:t,gutter:i,defaultPosition:n}));return ee.createElement(Bn,{id:e.id,key:e.id,onHeightUpdate:c.updateHeight,className:e.visible?zn:"",style:s},"custom"===e.type?an(e.message,e):o?o(e):ee.createElement($n,{toast:e,position:r}))}))},Hn=gn;var Un=function(){return Un=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Un.apply(this,arguments)};Object.create;function Xn(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var jn=n(4866),Zn=n.n(jn),Yn="-ms-",Vn="-moz-",Gn="-webkit-",Wn="comm",Kn="rule",Jn="decl",er="@keyframes",tr=Math.abs,nr=String.fromCharCode,rr=Object.assign;function ir(e){return e.trim()}function or(e,t){return(e=t.exec(e))?e[0]:e}function sr(e,t,n){return e.replace(t,n)}function ar(e,t,n){return e.indexOf(t,n)}function lr(e,t){return 0|e.charCodeAt(t)}function cr(e,t,n){return e.slice(t,n)}function ur(e){return e.length}function hr(e){return e.length}function dr(e,t){return t.push(e),e}function pr(e,t){return e.filter(function(e){return!or(e,t)})}var fr=1,mr=1,gr=0,Or=0,br=0,vr="";function yr(e,t,n,r,i,o,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:fr,column:mr,length:s,return:"",siblings:a}}function xr(e,t){return rr(yr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function kr(e){for(;e.root;)e=xr(e.root,{children:[e]});dr(e,e.siblings)}function Sr(){return br=Or>0?lr(vr,--Or):0,mr--,10===br&&(mr=1,fr--),br}function wr(){return br=Or<gr?lr(vr,Or++):0,mr++,10===br&&(mr=1,fr++),br}function Ar(){return lr(vr,Or)}function Tr(){return Or}function Er(e,t){return cr(vr,e,t)}function Cr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _r(e){return fr=mr=1,gr=ur(vr=e),Or=0,[]}function Pr(e){return vr="",e}function Dr(e){return ir(Er(Or-1,Rr(91===e?e+2:40===e?e+1:e)))}function Mr(e){for(;(br=Ar())&&br<33;)wr();return Cr(e)>2||Cr(br)>3?"":" "}function Nr(e,t){for(;--t&&wr()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return Er(e,Tr()+(t<6&&32==Ar()&&32==wr()))}function Rr(e){for(;wr();)switch(br){case e:return Or;case 34:case 39:34!==e&&39!==e&&Rr(br);break;case 40:41===e&&Rr(e);break;case 92:wr()}return Or}function Qr(e,t){for(;wr()&&e+br!==57&&(e+br!==84||47!==Ar()););return"/*"+Er(t,Or-1)+"*"+nr(47===e?e:wr())}function Ir(e){for(;!Cr(Ar());)wr();return Er(e,Or)}function Lr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Fr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Jn:return e.return=e.return||e.value;case Wn:return"";case er:return e.return=e.value+"{"+Lr(e.children,r)+"}";case Kn:if(!ur(e.value=e.props.join(",")))return""}return ur(n=Lr(e.children,r))?e.return=e.value+"{"+n+"}":""}function $r(e,t,n){switch(function(e,t){return 45^lr(e,0)?(((t<<2^lr(e,0))<<2^lr(e,1))<<2^lr(e,2))<<2^lr(e,3):0}(e,t)){case 5103:return Gn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Gn+e+e;case 4789:return Vn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Gn+e+Vn+e+Yn+e+e;case 5936:switch(lr(e,t+11)){case 114:return Gn+e+Yn+sr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gn+e+Yn+sr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gn+e+Yn+sr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Gn+e+Yn+e+e;case 6165:return Gn+e+Yn+"flex-"+e+e;case 5187:return Gn+e+sr(e,/(\w+).+(:[^]+)/,Gn+"box-$1$2"+Yn+"flex-$1$2")+e;case 5443:return Gn+e+Yn+"flex-item-"+sr(e,/flex-|-self/g,"")+(or(e,/flex-|baseline/)?"":Yn+"grid-row-"+sr(e,/flex-|-self/g,""))+e;case 4675:return Gn+e+Yn+"flex-line-pack"+sr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Gn+e+Yn+sr(e,"shrink","negative")+e;case 5292:return Gn+e+Yn+sr(e,"basis","preferred-size")+e;case 6060:return Gn+"box-"+sr(e,"-grow","")+Gn+e+Yn+sr(e,"grow","positive")+e;case 4554:return Gn+sr(e,/([^-])(transform)/g,"$1"+Gn+"$2")+e;case 6187:return sr(sr(sr(e,/(zoom-|grab)/,Gn+"$1"),/(image-set)/,Gn+"$1"),e,"")+e;case 5495:case 3959:return sr(e,/(image-set\([^]*)/,Gn+"$1$`$1");case 4968:return sr(sr(e,/(.+:)(flex-)?(.*)/,Gn+"box-pack:$3"+Yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Gn+e+e;case 4200:if(!or(e,/flex-|baseline/))return Yn+"grid-column-align"+cr(e,t)+e;break;case 2592:case 3360:return Yn+sr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,or(e.props,/grid-\w+-end/)})?~ar(e+(n=n[t].value),"span",0)?e:Yn+sr(e,"-start","")+e+Yn+"grid-row-span:"+(~ar(n,"span",0)?or(n,/\d+/):+or(n,/\d+/)-+or(e,/\d+/))+";":Yn+sr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return or(e.props,/grid-\w+-start/)})?e:Yn+sr(sr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return sr(e,/(.+)-inline(.+)/,Gn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ur(e)-1-t>6)switch(lr(e,t+1)){case 109:if(45!==lr(e,t+4))break;case 102:return sr(e,/(.+:)(.+)-([^]+)/,"$1"+Gn+"$2-$3$1"+Vn+(108==lr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ar(e,"stretch",0)?$r(sr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return sr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,o,s,a){return Yn+n+":"+r+a+(i?Yn+n+"-span:"+(o?s:+s-+r)+a:"")+e});case 4949:if(121===lr(e,t+6))return sr(e,":",":"+Gn)+e;break;case 6444:switch(lr(e,45===lr(e,14)?18:11)){case 120:return sr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Gn+(45===lr(e,14)?"inline-":"")+"box$3$1"+Gn+"$2$3$1"+Yn+"$2box$3")+e;case 100:return sr(e,":",":"+Yn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return sr(e,"scroll-","scroll-snap-")+e}return e}function Br(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Jn:return void(e.return=$r(e.value,e.length,n));case er:return Lr([xr(e,{value:sr(e.value,"@","@"+Gn)})],r);case Kn:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(or(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":kr(xr(e,{props:[sr(t,/:(read-\w+)/,":-moz-$1")]})),kr(xr(e,{props:[t]})),rr(e,{props:pr(n,r)});break;case"::placeholder":kr(xr(e,{props:[sr(t,/:(plac\w+)/,":"+Gn+"input-$1")]})),kr(xr(e,{props:[sr(t,/:(plac\w+)/,":-moz-$1")]})),kr(xr(e,{props:[sr(t,/:(plac\w+)/,Yn+"input-$1")]})),kr(xr(e,{props:[t]})),rr(e,{props:pr(n,r)})}return""})}}function zr(e){return Pr(qr("",null,null,null,[""],e=_r(e),0,[0],e))}function qr(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,h=s,d=0,p=0,f=0,m=1,g=1,O=1,b=0,v="",y=i,x=o,k=r,S=v;g;)switch(f=b,b=wr()){case 40:if(108!=f&&58==lr(S,h-1)){-1!=ar(S+=sr(Dr(b),"&","&\f"),"&\f",tr(c?a[c-1]:0))&&(O=-1);break}case 34:case 39:case 91:S+=Dr(b);break;case 9:case 10:case 13:case 32:S+=Mr(f);break;case 92:S+=Nr(Tr()-1,7);continue;case 47:switch(Ar()){case 42:case 47:dr(Ur(Qr(wr(),Tr()),t,n,l),l);break;default:S+="/"}break;case 123*m:a[c++]=ur(S)*O;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==O&&(S=sr(S,/\f/g,"")),p>0&&ur(S)-h&&dr(p>32?Xr(S+";",r,n,h-1,l):Xr(sr(S," ","")+";",r,n,h-2,l),l);break;case 59:S+=";";default:if(dr(k=Hr(S,t,n,c,u,i,a,v,y=[],x=[],h,o),o),123===b)if(0===u)qr(S,t,k,k,y,o,h,a,x);else switch(99===d&&110===lr(S,3)?100:d){case 100:case 108:case 109:case 115:qr(e,k,k,r&&dr(Hr(e,k,k,0,0,i,a,v,i,y=[],h,x),x),i,x,h,a,r?y:x);break;default:qr(S,k,k,k,[""],x,0,a,x)}}c=u=p=0,m=O=1,v=S="",h=s;break;case 58:h=1+ur(S),p=f;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Sr())continue;switch(S+=nr(b),b*m){case 38:O=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(ur(S)-1)*O,O=1;break;case 64:45===Ar()&&(S+=Dr(wr())),d=Ar(),u=h=ur(v=S+=Ir(Tr())),b++;break;case 45:45===f&&2==ur(S)&&(m=0)}}return o}function Hr(e,t,n,r,i,o,s,a,l,c,u,h){for(var d=i-1,p=0===i?o:[""],f=hr(p),m=0,g=0,O=0;m<r;++m)for(var b=0,v=cr(e,d+1,d=tr(g=s[m])),y=e;b<f;++b)(y=ir(g>0?p[b]+" "+v:sr(v,/&\f/g,p[b])))&&(l[O++]=y);return yr(e,t,n,0===i?Kn:a,l,c,u,h)}function Ur(e,t,n,r){return yr(e,t,n,Wn,nr(br),cr(e,2,-2),0,r)}function Xr(e,t,n,r,i){return yr(e,t,n,Jn,cr(e,0,r),cr(e,r+1,-1),r,i)}var jr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zr=n(5683),Yr="undefined"!=typeof Zr&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",Vr="active",Gr="data-styled-version",Wr="6.1.19",Kr="/*!sc*/\n",Jr="undefined"!=typeof window&&"undefined"!=typeof document,ei=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof Zr&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof Zr&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)),ti={},ni=(new Set,Object.freeze([])),ri=Object.freeze({});function ii(e,t,n){return void 0===n&&(n=ri),e.theme!==n.theme&&e.theme||t||n.theme}var oi=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),si=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ai=/(^-|-$)/g;function li(e){return e.replace(si,"-").replace(ai,"")}var ci=/(a)(d)/gi,ui=function(e){return String.fromCharCode(e+(e>25?39:97))};function hi(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ui(t%52)+n;return(ui(t%52)+n).replace(ci,"$1-$2")}var di,pi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},fi=function(e){return pi(5381,e)};function mi(e){return hi(fi(e)>>>0)}function gi(e){return e.displayName||e.name||"Component"}function Oi(e){return"string"==typeof e&&!0}var bi="function"==typeof Symbol&&Symbol.for,vi=bi?Symbol.for("react.memo"):60115,yi=bi?Symbol.for("react.forward_ref"):60112,xi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ki={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Si={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wi=((di={})[yi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},di[vi]=Si,di);function Ai(e){return("type"in(t=e)&&t.type.$$typeof)===vi?Si:"$$typeof"in e?wi[e.$$typeof]:xi;var t}var Ti=Object.defineProperty,Ei=Object.getOwnPropertyNames,Ci=Object.getOwnPropertySymbols,_i=Object.getOwnPropertyDescriptor,Pi=Object.getPrototypeOf,Di=Object.prototype;function Mi(e,t,n){if("string"!=typeof t){if(Di){var r=Pi(t);r&&r!==Di&&Mi(e,r,n)}var i=Ei(t);Ci&&(i=i.concat(Ci(t)));for(var o=Ai(e),s=Ai(t),a=0;a<i.length;++a){var l=i[a];if(!(l in ki||n&&n[l]||s&&l in s||o&&l in o)){var c=_i(t,l);try{Ti(e,l,c)}catch(e){}}}}return e}function Ni(e){return"function"==typeof e}function Ri(e){return"object"==typeof e&&"styledComponentId"in e}function Qi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ii(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Li(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Fi(e,t,n){if(void 0===n&&(n=!1),!n&&!Li(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Fi(e[r],t[r]);else if(Li(t))for(var r in t)e[r]=Fi(e[r],t[r]);return e}function $i(e,t){Object.defineProperty(e,"toString",{value:t})}function Bi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var zi=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw Bi(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(e+1),a=(o=0,t.length);o<a;o++)this.tag.insertRule(s,t[o])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(Kr);return t},e}(),qi=new Map,Hi=new Map,Ui=1,Xi=function(e){if(qi.has(e))return qi.get(e);for(;Hi.has(Ui);)Ui++;var t=Ui++;return qi.set(e,t),Hi.set(t,e),t},ji=function(e,t){Ui=t+1,qi.set(e,t),Hi.set(t,e)},Zi="style[".concat(Yr,"][").concat(Gr,'="').concat(Wr,'"]'),Yi=new RegExp("^".concat(Yr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Vi=function(e,t,n){for(var r,i=n.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&e.registerName(t,r)},Gi=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Kr),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var l=a.match(Yi);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(ji(u,c),Vi(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(a)}}},Wi=function(e){for(var t=document.querySelectorAll(Zi),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Yr)!==Vr&&(Gi(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function Ki(){return n.nc}var Ji=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Yr,"]")));return t[t.length-1]}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(Yr,Vr),r.setAttribute(Gr,Wr);var s=Ki();return s&&r.setAttribute("nonce",s),n.insertBefore(r,o),r},eo=function(){function e(e){this.element=Ji(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw Bi(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),to=function(){function e(e){this.element=Ji(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),no=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ro=Jr,io={isServer:!Jr,useCSSOMInjection:!ei},oo=function(){function e(e,t,n){void 0===e&&(e=ri),void 0===t&&(t={});var r=this;this.options=Un(Un({},io),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Jr&&ro&&(ro=!1,Wi(this)),$i(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return Hi.get(e)}(n);if(void 0===i)return"continue";var o=e.names.get(i),s=t.getGroup(n);if(void 0===o||!o.size||0===s.length)return"continue";var a="".concat(Yr,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(l,'"}').concat(Kr)},o=0;o<n;o++)i(o);return r}(r)})}return e.registerId=function(e){return Xi(e)},e.prototype.rehydrate=function(){!this.server&&Jr&&Wi(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Un(Un({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new no(n):t?new eo(n):new to(n)}(this.options),new zi(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Xi(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Xi(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Xi(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),so=/&/g,ao=/^\s*\/\/.*$/gm;function lo(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=lo(e.children,t)),e})}function co(e){var t,n,r,i=void 0===e?ri:e,o=i.options,s=void 0===o?ri:o,a=i.plugins,l=void 0===a?ni:a,c=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push(function(e){e.type===Kn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(so,n).replace(r,c))}),s.prefix&&u.push(Br),u.push(Fr);var h=function(e,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(ao,""),c=zr(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);s.namespace&&(c=lo(c,s.namespace));var h,d=[];return Lr(c,function(e){var t=hr(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}(u.concat((h=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&h(e)})))),d};return h.hash=l.length?l.reduce(function(e,t){return t.name||Bi(15),pi(e,t.name)},5381).toString():"",h}var uo=new oo,ho=co(),po=ee.createContext({shouldForwardProp:void 0,styleSheet:uo,stylis:ho}),fo=(po.Consumer,ee.createContext(void 0));function mo(){return(0,ee.useContext)(po)}function go(e){var t=(0,ee.useState)(e.stylisPlugins),n=t[0],r=t[1],i=mo().styleSheet,o=(0,ee.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),s=(0,ee.useMemo)(function(){return co({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,ee.useEffect)(function(){Zn()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var a=(0,ee.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:o,stylis:s}},[e.shouldForwardProp,o,s]);return ee.createElement(po.Provider,{value:a},ee.createElement(fo.Provider,{value:s},e.children))}var Oo=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ho);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,$i(this,function(){throw Bi(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=ho),this.name+e.hash},e}(),bo=function(e){return e>="A"&&e<="Z"};function vo(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;bo(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var yo=function(e){return null==e||!1===e||""===e},xo=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!yo(o)&&(Array.isArray(o)&&o.isCss||Ni(o)?r.push("".concat(vo(i),":"),o,";"):Li(o)?r.push.apply(r,Xn(Xn(["".concat(i," {")],xo(o),!1),["}"],!1)):r.push("".concat(vo(i),": ").concat((t=i,null==(n=o)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in jr||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ko(e,t,n,r){return yo(e)?[]:Ri(e)?[".".concat(e.styledComponentId)]:Ni(e)?!Ni(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:ko(e(t),t,n,r):e instanceof Oo?n?(e.inject(n,r),[e.getName(r)]):[e]:Li(e)?xo(e):Array.isArray(e)?Array.prototype.concat.apply(ni,e.map(function(e){return ko(e,t,n,r)})):[e.toString()];var i}function So(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ni(n)&&!Ri(n))return!1}return!0}var wo=fi(Wr),Ao=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&So(e),this.componentId=t,this.baseHash=pi(wo,t),this.baseStyle=n,oo.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Qi(r,this.staticRulesId);else{var i=Ii(ko(this.rules,e,t,n)),o=hi(pi(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var s=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,s)}r=Qi(r,o),this.staticRulesId=o}else{for(var a=pi(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var h=Ii(ko(u,e,t,n));a=pi(a,h+c),l+=h}}if(l){var d=hi(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=Qi(r,d)}}return r},e}(),To=ee.createContext(void 0);To.Consumer;var Eo={};new Set;function Co(e,t,n){var r=Ri(e),i=e,o=!Oi(e),s=t.attrs,a=void 0===s?ni:s,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":li(e);Eo[n]=(Eo[n]||0)+1;var r="".concat(n,"-").concat(mi(Wr+n+Eo[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,u=t.displayName,h=void 0===u?function(e){return Oi(e)?"styled.".concat(e):"Styled(".concat(gi(e),")")}(e):u,d=t.displayName&&t.componentId?"".concat(li(t.displayName),"-").concat(t.componentId):t.componentId||c,p=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,f=t.shouldForwardProp;if(r&&i.shouldForwardProp){var m=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;f=function(e,t){return m(e,t)&&g(e,t)}}else f=m}var O=new Ao(n,d,r?i.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,i=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,a=e.styledComponentId,l=e.target,c=ee.useContext(To),u=mo(),h=e.shouldForwardProp||u.shouldForwardProp,d=ii(t,c,o)||ri,p=function(e,t,n){for(var r,i=Un(Un({},t),{className:void 0,theme:n}),o=0;o<e.length;o+=1){var s=Ni(r=e[o])?r(i):r;for(var a in s)i[a]="className"===a?Qi(i[a],s[a]):"style"===a?Un(Un({},i[a]),s[a]):s[a]}return t.className&&(i.className=Qi(i.className,t.className)),i}(r,t,d),f=p.as||l,m={};for(var g in p)void 0===p[g]||"$"===g[0]||"as"===g||"theme"===g&&p.theme===d||("forwardedAs"===g?m.as=p.forwardedAs:h&&!h(g,f)||(m[g]=p[g]));var O=function(e,t){var n=mo();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(i,p),b=Qi(s,a);return O&&(b+=" "+O),p.className&&(b+=" "+p.className),m[Oi(f)&&!oi.has(f)?"class":"className"]=b,n&&(m.ref=n),(0,ee.createElement)(f,m)}(v,e,t)}b.displayName=h;var v=ee.forwardRef(b);return v.attrs=p,v.componentStyle=O,v.displayName=h,v.shouldForwardProp=f,v.foldedComponentIds=r?Qi(i.foldedComponentIds,i.styledComponentId):"",v.styledComponentId=d,v.target=r?i.target:e,Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)Fi(e,i[r],!0);return e}({},i.defaultProps,e):e}}),$i(v,function(){return".".concat(v.styledComponentId)}),o&&Mi(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),v}function _o(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var Po=function(e){return Object.assign(e,{isCss:!0})};function Do(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ni(e)||Li(e))return Po(ko(_o(ni,Xn([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?ko(r):Po(ko(_o(r,t)))}function Mo(e,t,n){if(void 0===n&&(n=ri),!t)throw Bi(1,t);var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return e(t,n,Do.apply(void 0,Xn([r],i,!1)))};return r.attrs=function(r){return Mo(e,t,Un(Un({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Mo(e,t,Un(Un({},n),r))},r}var No=function(e){return Mo(Co,e)},Ro=No;oi.forEach(function(e){Ro[e]=No(e)});var Qo=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=So(e),oo.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(Ii(ko(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&oo.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Ki(),r=Ii([n&&'nonce="'.concat(n,'"'),"".concat(Yr,'="true"'),"".concat(Gr,'="').concat(Wr,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Bi(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Bi(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[Yr]="",t[Gr]=Wr,t.dangerouslySetInnerHTML={__html:n},t),i=Ki();return i&&(r.nonce=i),[ee.createElement("style",Un({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new oo({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Bi(2);return ee.createElement(go,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Bi(3)}})(),"__sc-".concat(Yr,"__");const Io="undefined"===typeof window||"Deno"in window;function Lo(){}function Fo(e){return"number"===typeof e&&e>=0&&e!==1/0}function $o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Bo(e,t,n){return Jo(e)?"function"===typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function zo(e,t,n){return Jo(e)?[{...t,queryKey:e},n]:[e||{},t]}function qo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(Jo(s))if(r){if(t.queryHash!==Uo(s,t.options))return!1}else if(!jo(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof a||t.isStale()===a)&&(("undefined"===typeof i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Ho(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Jo(o)){if(!t.options.mutationKey)return!1;if(n){if(Xo(t.options.mutationKey)!==Xo(o))return!1}else if(!jo(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function Uo(e,t){return((null==t?void 0:t.queryKeyHashFn)||Xo)(e)}function Xo(e){return JSON.stringify(e,(e,t)=>Wo(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function jo(e,t){return Zo(e,t)}function Zo(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some(n=>!Zo(e[n],t[n])))}function Yo(e,t){if(e===t)return e;const n=Go(e)&&Go(t);if(n||Wo(e)&&Wo(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let a=0;for(let l=0;l<o;l++){const r=n?l:i[l];s[r]=Yo(e[r],t[r]),s[r]===e[r]&&a++}return r===o&&a===r?e:s}return t}function Vo(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Go(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wo(e){if(!Ko(e))return!1;const t=e.constructor;if("undefined"===typeof t)return!0;const n=t.prototype;return!!Ko(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Ko(e){return"[object Object]"===Object.prototype.toString.call(e)}function Jo(e){return Array.isArray(e)}function es(e){return new Promise(t=>{setTimeout(t,e)})}function ts(e){es(0).then(e)}function ns(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Yo(e,t):t}const rs=console;const is=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const i=r=>{t?e.push(r):ts(()=>{n(r)})},o=()=>{const t=e;e=[],t.length&&ts(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i(()=>{e(...n)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class os{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const ss=new class extends os{constructor(){super(),this.setup=e=>{if(!Io&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(e=>{let{listener:t}=e;t()})}isFocused(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},as=["online","offline"];const ls=new class extends os{constructor(){super(),this.setup=e=>{if(!Io&&window.addEventListener){const t=()=>e();return as.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{as.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"===typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(e=>{let{listener:t}=e;t()})}isOnline(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}};function cs(e){return Math.min(1e3*2**e,3e4)}function us(e){return"online"!==(null!=e?e:"online")||ls.isOnline()}class hs{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function ds(e){return e instanceof hs}function ps(e){let t,n,r,i=!1,o=0,s=!1;const a=new Promise((e,t)=>{n=e,r=t}),l=()=>!ss.isFocused()||"always"!==e.networkMode&&!ls.isOnline(),c=r=>{s||(s=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},h=()=>new Promise(n=>{t=e=>{const t=s||!l();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,s||null==e.onContinue||e.onContinue()}),d=()=>{if(s)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(c).catch(t=>{var n,r;if(s)return;const a=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:cs,p="function"===typeof c?c(o,t):c,f=!0===a||"number"===typeof a&&o<a||"function"===typeof a&&a(o,t);!i&&f?(o++,null==e.onFail||e.onFail(o,t),es(p).then(()=>{if(l())return h()}).then(()=>{i?u(t):d()})):u(t)})};return us(e.networkMode)?d():h().then(d),{promise:a,cancel:t=>{s||(u(new hs(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class fs{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fo(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Io?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ms extends fs{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||rs,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=ns(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Lo).catch(Lo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!$o(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const o=function(){if("function"===typeof AbortController)return new AbortController}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};a(s);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(a(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=l.fetchOptions)?void 0:c.meta});const u=e=>{var t,n,r,i;(ds(e)&&e.silent||this.dispatch({type:"error",error:e}),ds(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=ps({fn:l.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;"undefined"!==typeof e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:us(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return ds(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),is.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class gs extends os{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,o=null!=(r=t.queryHash)?r:Uo(i,t);let s=this.get(o);return s||(s=new ms({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){is.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=zo(e,t);return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find(e=>qo(n,e))}findAll(e,t){const[n]=zo(e,t);return Object.keys(n).length>0?this.queries.filter(e=>qo(n,e)):this.queries}notify(e){is.batch(()=>{this.listeners.forEach(t=>{let{listener:n}=t;n(e)})})}onFocus(){is.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){is.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class Os extends fs{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||rs,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=ps({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,i,o,s,a,l,c;if(!t){var u,h,d,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(h=this.mutationCache.config).onMutate)?void 0:u.call(h,this.state.variables,this));const e=await(null==(d=(p=this.options).onMutate)?void 0:d.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,f,this.state.variables,this.state.context)),await(null==(s=(a=this.mutationCache.config).onSettled)?void 0:s.call(a,f,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(k){try{var f,m,g,O,b,v,y,x;throw await(null==(f=(m=this.mutationCache.config).onError)?void 0:f.call(m,k,this.state.variables,this.state.context,this)),await(null==(g=(O=this.options).onError)?void 0:g.call(O,k,this.state.variables,this.state.context)),await(null==(b=(v=this.mutationCache.config).onSettled)?void 0:b.call(v,void 0,k,this.state.variables,this.state.context,this)),await(null==(y=(x=this.options).onSettled)?void 0:y.call(x,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!us(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),is.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}class bs extends os{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new Os({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){is.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find(t=>Ho(e,t))}findAll(e){return this.mutations.filter(t=>Ho(e,t))}notify(e){is.batch(()=>{this.listeners.forEach(t=>{let{listener:n}=t;n(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return is.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Lo)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function vs(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,s;const a=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,c=null==l?void 0:l.pageParam,u="forward"===(null==l?void 0:l.direction),h="backward"===(null==l?void 0:l.direction),d=(null==(o=e.state.data)?void 0:o.pages)||[],p=(null==(s=e.state.data)?void 0:s.pageParams)||[];let f=p,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),O=(e,t,n,r)=>(f=r?[t,...f]:[...f,t],r?[n,...e]:[...e,n]),b=(t,n,r,i)=>{if(m)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{m=!0}),e.signal}});const a=g(o),l=Promise.resolve(a).then(e=>O(t,r,e,i));return l};let v;if(d.length)if(u){const t="undefined"!==typeof c,n=t?c:ys(e.options,d);v=b(d,t,n)}else if(h){const t="undefined"!==typeof c,n=t?c:xs(e.options,d);v=b(d,t,n,!0)}else{f=[];const t="undefined"===typeof e.options.getNextPageParam;v=!a||!d[0]||a(d[0],0,d)?b([],t,p[0]):Promise.resolve(O([],p[0],d[0]));for(let n=1;n<d.length;n++)v=v.then(r=>{if(!a||!d[n]||a(d[n],n,d)){const i=t?p[n]:ys(e.options,r);return b(r,t,i)}return Promise.resolve(O(r,p[n],d[n]))})}else v=b([]);return v.then(e=>({pages:e,pageParams:f}))}}}}function ys(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function xs(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}const ks=ee.createContext(void 0),Ss=ee.createContext(!1);function ws(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ks),window.ReactQueryClientContext):ks)}const As=e=>{let{client:t,children:n,context:r,contextSharing:i=!1}=e;ee.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);const o=ws(r,i);return ee.createElement(Ss.Provider,{value:!r&&i},ee.createElement(o.Provider,{value:t},n))};var Ts;n(1784);function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Es.apply(null,arguments)}function Cs(e,t){let{title:n,titleId:r,...i}=e;return ee.createElement("svg",Es({xmlns:"http://www.w3.org/2000/svg",fill:"#1aad1a",viewBox:"0 0 1024 1024",height:"1em",width:"1em",ref:t,"aria-labelledby":r},i),n?ee.createElement("title",{id:r},n):null,Ts||(Ts=ee.createElement("path",{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z"})))}const _s=ee.forwardRef(Cs);n.p;var Ps;function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ds.apply(null,arguments)}function Ms(e,t){let{title:n,titleId:r,...i}=e;return ee.createElement("svg",Ds({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 1024 1024",height:"1em",width:"1em",ref:t,"aria-labelledby":r},i),n?ee.createElement("title",{id:r},n):null,Ps||(Ps=ee.createElement("path",{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"})))}const Ns=ee.forwardRef(Ms);n.p;var Rs,Qs,Is,Ls,Fs,$s,Bs,zs,qs;function Hs(){return Hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hs.apply(null,arguments)}function Us(e,t){let{title:n,titleId:r,...i}=e;return ee.createElement("svg",Hs({xmlns:"http://www.w3.org/2000/svg",width:13,height:13,viewBox:"0 0 105 105",fill:"currentColor",ref:t,"aria-labelledby":r},i),n?ee.createElement("title",{id:r},n):null,Rs||(Rs=ee.createElement("circle",{cx:12.5,cy:12.5,r:12.5},ee.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),Qs||(Qs=ee.createElement("circle",{cx:12.5,cy:52.5,r:12.5,fillOpacity:.5},ee.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),Is||(Is=ee.createElement("circle",{cx:52.5,cy:12.5,r:12.5},ee.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),Ls||(Ls=ee.createElement("circle",{cx:52.5,cy:52.5,r:12.5},ee.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),Fs||(Fs=ee.createElement("circle",{cx:92.5,cy:12.5,r:12.5},ee.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),$s||($s=ee.createElement("circle",{cx:92.5,cy:52.5,r:12.5},ee.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),Bs||(Bs=ee.createElement("circle",{cx:12.5,cy:92.5,r:12.5},ee.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),zs||(zs=ee.createElement("circle",{cx:52.5,cy:92.5,r:12.5},ee.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),qs||(qs=ee.createElement("circle",{cx:92.5,cy:92.5,r:12.5},ee.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))))}const Xs=ee.forwardRef(Us);n.p;var js=n(7469),Zs=n(4859);function Ys(e){return new Zs.Yy(Zs.Tg.define(e))}function Vs(e){return n.e(8694).then(n.bind(n,8694)).then(t=>t.sql({dialect:t[e]}))}const Gs=[Zs.t$.of({name:"C",extensions:["c","h","ino"],load:()=>n.e(2266).then(n.bind(n,2266)).then(e=>e.cpp())}),Zs.t$.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>n.e(2266).then(n.bind(n,2266)).then(e=>e.cpp())}),Zs.t$.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>Vs("Cassandra")}),Zs.t$.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(n.bind(n,8244)).then(e=>e.css())}),Zs.t$.of({name:"Go",extensions:["go"],load:()=>n.e(6769).then(n.bind(n,6769)).then(e=>e.go())}),Zs.t$.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(n.bind(n,5221)).then(e=>e.html())}),Zs.t$.of({name:"Java",extensions:["java"],load:()=>n.e(9e3).then(n.bind(n,6619)).then(e=>e.java())}),Zs.t$.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(n.bind(n,4013)).then(e=>e.javascript())}),Zs.t$.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>n.e(9407).then(n.bind(n,9407)).then(e=>e.json())}),Zs.t$.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(n.bind(n,4013)).then(e=>e.javascript({jsx:!0}))}),Zs.t$.of({name:"LESS",extensions:["less"],load:()=>n.e(8615).then(n.bind(n,8615)).then(e=>e.less())}),Zs.t$.of({name:"Liquid",extensions:["liquid"],load:()=>n.e(4).then(n.bind(n,4)).then(e=>e.liquid())}),Zs.t$.of({name:"MariaDB SQL",load:()=>Vs("MariaSQL")}),Zs.t$.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(n.bind(n,7469)).then(e=>e.markdown())}),Zs.t$.of({name:"MS SQL",load:()=>Vs("MSSQL")}),Zs.t$.of({name:"MySQL",load:()=>Vs("MySQL")}),Zs.t$.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>n.e(9188).then(n.bind(n,9188)).then(e=>e.php())}),Zs.t$.of({name:"PLSQL",extensions:["pls"],load:()=>Vs("PLSQL")}),Zs.t$.of({name:"PostgreSQL",load:()=>Vs("PostgreSQL")}),Zs.t$.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>n.e(9223).then(n.bind(n,9223)).then(e=>e.python())}),Zs.t$.of({name:"Rust",extensions:["rs"],load:()=>n.e(4089).then(n.bind(n,4089)).then(e=>e.rust())}),Zs.t$.of({name:"Sass",extensions:["sass"],load:()=>n.e(3450).then(n.bind(n,3450)).then(e=>e.sass({indented:!0}))}),Zs.t$.of({name:"SCSS",extensions:["scss"],load:()=>n.e(3450).then(n.bind(n,3450)).then(e=>e.sass())}),Zs.t$.of({name:"SQL",extensions:["sql"],load:()=>Vs("StandardSQL")}),Zs.t$.of({name:"SQLite",load:()=>Vs("SQLite")}),Zs.t$.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(n.bind(n,4013)).then(e=>e.javascript({jsx:!0,typescript:!0}))}),Zs.t$.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load:()=>Promise.resolve().then(n.bind(n,4013)).then(e=>e.javascript({typescript:!0}))}),Zs.t$.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>n.e(7873).then(n.bind(n,7873)).then(e=>e.wast())}),Zs.t$.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>n.e(1994).then(n.bind(n,1994)).then(e=>e.xml())}),Zs.t$.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>n.e(6576).then(n.bind(n,6576)).then(e=>e.yaml())}),Zs.t$.of({name:"APL",extensions:["dyalog","apl"],load:()=>n.e(6175).then(n.bind(n,8556)).then(e=>Ys(e.apl))}),Zs.t$.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>n.e(9468).then(n.bind(n,9468)).then(e=>Ys(e.asciiArmor))}),Zs.t$.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>n.e(2007).then(n.bind(n,2007)).then(e=>Ys(e.asn1({})))}),Zs.t$.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>n.e(866).then(n.bind(n,866)).then(e=>Ys(e.asterisk))}),Zs.t$.of({name:"Brainfuck",extensions:["b","bf"],load:()=>n.e(6339).then(n.bind(n,6339)).then(e=>Ys(e.brainfuck))}),Zs.t$.of({name:"Cobol",extensions:["cob","cpy"],load:()=>n.e(6547).then(n.bind(n,6547)).then(e=>Ys(e.cobol))}),Zs.t$.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>Ys(e.csharp))}),Zs.t$.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>n.e(3368).then(n.bind(n,3368)).then(e=>Ys(e.clojure))}),Zs.t$.of({name:"ClojureScript",extensions:["cljs"],load:()=>n.e(3368).then(n.bind(n,3368)).then(e=>Ys(e.clojure))}),Zs.t$.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>n.e(2463).then(n.bind(n,2463)).then(e=>Ys(e.gss))}),Zs.t$.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>n.e(935).then(n.bind(n,935)).then(e=>Ys(e.cmake))}),Zs.t$.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>n.e(5473).then(n.bind(n,5473)).then(e=>Ys(e.coffeeScript))}),Zs.t$.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>n.e(7607).then(n.bind(n,7607)).then(e=>Ys(e.commonLisp))}),Zs.t$.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>n.e(4269).then(n.bind(n,4269)).then(e=>Ys(e.cypher))}),Zs.t$.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>n.e(4884).then(n.bind(n,4884)).then(e=>Ys(e.cython))}),Zs.t$.of({name:"Crystal",extensions:["cr"],load:()=>n.e(8130).then(n.bind(n,8130)).then(e=>Ys(e.crystal))}),Zs.t$.of({name:"D",extensions:["d"],load:()=>n.e(8448).then(n.bind(n,8448)).then(e=>Ys(e.d))}),Zs.t$.of({name:"Dart",extensions:["dart"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>Ys(e.dart))}),Zs.t$.of({name:"diff",extensions:["diff","patch"],load:()=>n.e(4829).then(n.bind(n,4829)).then(e=>Ys(e.diff))}),Zs.t$.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>n.e(5912).then(n.bind(n,5912)).then(e=>Ys(e.dockerFile))}),Zs.t$.of({name:"DTD",extensions:["dtd"],load:()=>n.e(6736).then(n.bind(n,6736)).then(e=>Ys(e.dtd))}),Zs.t$.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>n.e(8898).then(n.bind(n,8898)).then(e=>Ys(e.dylan))}),Zs.t$.of({name:"EBNF",load:()=>n.e(6013).then(n.bind(n,6013)).then(e=>Ys(e.ebnf))}),Zs.t$.of({name:"ECL",extensions:["ecl"],load:()=>n.e(3212).then(n.bind(n,3212)).then(e=>Ys(e.ecl))}),Zs.t$.of({name:"edn",extensions:["edn"],load:()=>n.e(3368).then(n.bind(n,3368)).then(e=>Ys(e.clojure))}),Zs.t$.of({name:"Eiffel",extensions:["e"],load:()=>n.e(4989).then(n.bind(n,4989)).then(e=>Ys(e.eiffel))}),Zs.t$.of({name:"Elm",extensions:["elm"],load:()=>n.e(5208).then(n.bind(n,5208)).then(e=>Ys(e.elm))}),Zs.t$.of({name:"Erlang",extensions:["erl"],load:()=>n.e(7717).then(n.bind(n,7717)).then(e=>Ys(e.erlang))}),Zs.t$.of({name:"Esper",load:()=>n.e(1188).then(n.bind(n,1188)).then(e=>Ys(e.esper))}),Zs.t$.of({name:"Factor",extensions:["factor"],load:()=>n.e(9553).then(n.bind(n,9553)).then(e=>Ys(e.factor))}),Zs.t$.of({name:"FCL",load:()=>n.e(6193).then(n.bind(n,6193)).then(e=>Ys(e.fcl))}),Zs.t$.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>n.e(1899).then(n.bind(n,1899)).then(e=>Ys(e.forth))}),Zs.t$.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>n.e(3726).then(n.bind(n,3726)).then(e=>Ys(e.fortran))}),Zs.t$.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>n.e(3492).then(n.bind(n,3492)).then(e=>Ys(e.fSharp))}),Zs.t$.of({name:"Gas",extensions:["s"],load:()=>n.e(685).then(n.bind(n,685)).then(e=>Ys(e.gas))}),Zs.t$.of({name:"Gherkin",extensions:["feature"],load:()=>n.e(2678).then(n.bind(n,2678)).then(e=>Ys(e.gherkin))}),Zs.t$.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>n.e(4388).then(n.bind(n,4388)).then(e=>Ys(e.groovy))}),Zs.t$.of({name:"Haskell",extensions:["hs"],load:()=>n.e(5692).then(n.bind(n,5692)).then(e=>Ys(e.haskell))}),Zs.t$.of({name:"Haxe",extensions:["hx"],load:()=>n.e(9354).then(n.bind(n,9354)).then(e=>Ys(e.haxe))}),Zs.t$.of({name:"HXML",extensions:["hxml"],load:()=>n.e(9354).then(n.bind(n,9354)).then(e=>Ys(e.hxml))}),Zs.t$.of({name:"HTTP",load:()=>n.e(3790).then(n.bind(n,3790)).then(e=>Ys(e.http))}),Zs.t$.of({name:"IDL",extensions:["pro"],load:()=>n.e(8219).then(n.bind(n,8219)).then(e=>Ys(e.idl))}),Zs.t$.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>n.e(8437).then(n.bind(n,8437)).then(e=>Ys(e.jsonld))}),Zs.t$.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>n.e(7316).then(n.bind(n,7316)).then(e=>Ys(e.jinja2))}),Zs.t$.of({name:"Julia",extensions:["jl"],load:()=>n.e(7485).then(n.bind(n,7485)).then(e=>Ys(e.julia))}),Zs.t$.of({name:"Kotlin",extensions:["kt","kts"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>Ys(e.kotlin))}),Zs.t$.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>n.e(8063).then(n.bind(n,8063)).then(e=>Ys(e.liveScript))}),Zs.t$.of({name:"Lua",extensions:["lua"],load:()=>n.e(2682).then(n.bind(n,2682)).then(e=>Ys(e.lua))}),Zs.t$.of({name:"mIRC",extensions:["mrc"],load:()=>n.e(5039).then(n.bind(n,5039)).then(e=>Ys(e.mirc))}),Zs.t$.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>n.e(5516).then(n.bind(n,5516)).then(e=>Ys(e.mathematica))}),Zs.t$.of({name:"Modelica",extensions:["mo"],load:()=>n.e(1086).then(n.bind(n,1086)).then(e=>Ys(e.modelica))}),Zs.t$.of({name:"MUMPS",extensions:["mps"],load:()=>n.e(3640).then(n.bind(n,3640)).then(e=>Ys(e.mumps))}),Zs.t$.of({name:"Mbox",extensions:["mbox"],load:()=>n.e(9986).then(n.bind(n,9986)).then(e=>Ys(e.mbox))}),Zs.t$.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>n.e(5188).then(n.bind(n,5188)).then(e=>Ys(e.nginx))}),Zs.t$.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>n.e(1677).then(n.bind(n,1677)).then(e=>Ys(e.nsis))}),Zs.t$.of({name:"NTriples",extensions:["nt","nq"],load:()=>n.e(8945).then(n.bind(n,8945)).then(e=>Ys(e.ntriples))}),Zs.t$.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>Ys(e.objectiveC))}),Zs.t$.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>Ys(e.objectiveCpp))}),Zs.t$.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>n.e(3492).then(n.bind(n,3492)).then(e=>Ys(e.oCaml))}),Zs.t$.of({name:"Octave",extensions:["m"],load:()=>n.e(9750).then(n.bind(n,9750)).then(e=>Ys(e.octave))}),Zs.t$.of({name:"Oz",extensions:["oz"],load:()=>n.e(5395).then(n.bind(n,5395)).then(e=>Ys(e.oz))}),Zs.t$.of({name:"Pascal",extensions:["p","pas"],load:()=>n.e(4374).then(n.bind(n,4374)).then(e=>Ys(e.pascal))}),Zs.t$.of({name:"Perl",extensions:["pl","pm"],load:()=>n.e(1615).then(n.bind(n,1615)).then(e=>Ys(e.perl))}),Zs.t$.of({name:"Pig",extensions:["pig"],load:()=>n.e(1140).then(n.bind(n,1140)).then(e=>Ys(e.pig))}),Zs.t$.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>n.e(1839).then(n.bind(n,1839)).then(e=>Ys(e.powerShell))}),Zs.t$.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>n.e(5323).then(n.bind(n,5323)).then(e=>Ys(e.properties))}),Zs.t$.of({name:"ProtoBuf",extensions:["proto"],load:()=>n.e(2433).then(n.bind(n,2433)).then(e=>Ys(e.protobuf))}),Zs.t$.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load:()=>n.e(3632).then(n.bind(n,3632)).then(e=>Ys(e.pug))}),Zs.t$.of({name:"Puppet",extensions:["pp"],load:()=>n.e(9484).then(n.bind(n,9484)).then(e=>Ys(e.puppet))}),Zs.t$.of({name:"Q",extensions:["q"],load:()=>n.e(3171).then(n.bind(n,3171)).then(e=>Ys(e.q))}),Zs.t$.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>n.e(6054).then(n.bind(n,6054)).then(e=>Ys(e.r))}),Zs.t$.of({name:"RPM Changes",load:()=>n.e(1993).then(n.bind(n,1993)).then(e=>Ys(e.rpmChanges))}),Zs.t$.of({name:"RPM Spec",extensions:["spec"],load:()=>n.e(1993).then(n.bind(n,1993)).then(e=>Ys(e.rpmSpec))}),Zs.t$.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load:()=>n.e(4702).then(n.bind(n,4702)).then(e=>Ys(e.ruby))}),Zs.t$.of({name:"SAS",extensions:["sas"],load:()=>n.e(4505).then(n.bind(n,4505)).then(e=>Ys(e.sas))}),Zs.t$.of({name:"Scala",extensions:["scala"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>Ys(e.scala))}),Zs.t$.of({name:"Scheme",extensions:["scm","ss"],load:()=>n.e(2565).then(n.bind(n,2565)).then(e=>Ys(e.scheme))}),Zs.t$.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>n.e(8226).then(n.bind(n,8226)).then(e=>Ys(e.shell))}),Zs.t$.of({name:"Sieve",extensions:["siv","sieve"],load:()=>n.e(642).then(n.bind(n,642)).then(e=>Ys(e.sieve))}),Zs.t$.of({name:"Smalltalk",extensions:["st"],load:()=>n.e(5381).then(n.bind(n,5381)).then(e=>Ys(e.smalltalk))}),Zs.t$.of({name:"Solr",load:()=>n.e(9562).then(n.bind(n,9562)).then(e=>Ys(e.solr))}),Zs.t$.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>n.e(3492).then(n.bind(n,3492)).then(e=>Ys(e.sml))}),Zs.t$.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>n.e(5311).then(n.bind(n,5311)).then(e=>Ys(e.sparql))}),Zs.t$.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>n.e(3498).then(n.bind(n,3498)).then(e=>Ys(e.spreadsheet))}),Zs.t$.of({name:"Squirrel",extensions:["nut"],load:()=>n.e(2146).then(n.bind(n,2146)).then(e=>Ys(e.squirrel))}),Zs.t$.of({name:"Stylus",extensions:["styl"],load:()=>n.e(7164).then(n.bind(n,7164)).then(e=>Ys(e.stylus))}),Zs.t$.of({name:"Swift",extensions:["swift"],load:()=>n.e(7743).then(n.bind(n,7743)).then(e=>Ys(e.swift))}),Zs.t$.of({name:"sTeX",load:()=>n.e(3884).then(n.bind(n,3884)).then(e=>Ys(e.stex))}),Zs.t$.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>n.e(3884).then(n.bind(n,3884)).then(e=>Ys(e.stex))}),Zs.t$.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>n.e(7062).then(n.bind(n,7062)).then(e=>Ys(e.verilog))}),Zs.t$.of({name:"Tcl",extensions:["tcl"],load:()=>n.e(6555).then(n.bind(n,6555)).then(e=>Ys(e.tcl))}),Zs.t$.of({name:"Textile",extensions:["textile"],load:()=>n.e(8373).then(n.bind(n,8373)).then(e=>Ys(e.textile))}),Zs.t$.of({name:"TiddlyWiki",load:()=>n.e(2290).then(n.bind(n,2290)).then(e=>Ys(e.tiddlyWiki))}),Zs.t$.of({name:"Tiki wiki",load:()=>n.e(4517).then(n.bind(n,4517)).then(e=>Ys(e.tiki))}),Zs.t$.of({name:"TOML",extensions:["toml"],load:()=>n.e(7534).then(n.bind(n,7534)).then(e=>Ys(e.toml))}),Zs.t$.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>n.e(3743).then(n.bind(n,3743)).then(e=>Ys(e.troff))}),Zs.t$.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>n.e(1947).then(n.bind(n,1947)).then(e=>Ys(e.ttcn))}),Zs.t$.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>n.e(588).then(n.bind(n,588)).then(e=>Ys(e.ttcnCfg))}),Zs.t$.of({name:"Turtle",extensions:["ttl"],load:()=>n.e(7628).then(n.bind(n,7628)).then(e=>Ys(e.turtle))}),Zs.t$.of({name:"Web IDL",extensions:["webidl"],load:()=>n.e(8047).then(n.bind(n,8047)).then(e=>Ys(e.webIDL))}),Zs.t$.of({name:"VB.NET",extensions:["vb"],load:()=>n.e(9978).then(n.bind(n,9978)).then(e=>Ys(e.vb))}),Zs.t$.of({name:"VBScript",extensions:["vbs"],load:()=>n.e(6881).then(n.bind(n,6881)).then(e=>Ys(e.vbScript))}),Zs.t$.of({name:"Velocity",extensions:["vtl"],load:()=>n.e(9557).then(n.bind(n,9557)).then(e=>Ys(e.velocity))}),Zs.t$.of({name:"Verilog",extensions:["v"],load:()=>n.e(7062).then(n.bind(n,7062)).then(e=>Ys(e.verilog))}),Zs.t$.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>n.e(7472).then(n.bind(n,7472)).then(e=>Ys(e.vhdl))}),Zs.t$.of({name:"XQuery",extensions:["xy","xquery"],load:()=>n.e(854).then(n.bind(n,854)).then(e=>Ys(e.xQuery))}),Zs.t$.of({name:"Yacas",extensions:["ys"],load:()=>n.e(3067).then(n.bind(n,3067)).then(e=>Ys(e.yacas))}),Zs.t$.of({name:"Z80",extensions:["z80"],load:()=>n.e(8206).then(n.bind(n,8206)).then(e=>Ys(e.z80))}),Zs.t$.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>n.e(5251).then(n.bind(n,5251)).then(e=>Ys(e.mscgen))}),Zs.t$.of({name:"X\xf9",extensions:["xu"],load:()=>n.e(5251).then(n.bind(n,5251)).then(e=>Ys(e.xu))}),Zs.t$.of({name:"MsGenny",extensions:["msgenny"],load:()=>n.e(5251).then(n.bind(n,5251)).then(e=>Ys(e.msgenny))}),Zs.t$.of({name:"Vue",extensions:["vue"],load:()=>n.e(2066).then(n.bind(n,2066)).then(e=>e.vue())}),Zs.t$.of({name:"Angular Template",load:()=>n.e(624).then(n.bind(n,624)).then(e=>e.angular())})];var Ws=n(4563);function Ks(e){var{type:t="scroll",events:n,props:r}=e;return Ws.Z9.fromClass(class{constructor(e){(this.dom=void 0,this.view=void 0,this.view=e,this.dom="dom"===t?e.dom:"content"===t?e.contentDOM:e.scrollDOM,this.dom&&r)&&Object.keys(r).forEach(e=>{this.dom[e]=r[e]});Object.keys(n||{}).forEach(e=>{n&&n[e]&&this.dom&&this.dom.addEventListener(e,n[e])})}destroy(){Object.keys(n||{}).forEach(e=>{n&&n[e]&&this.dom&&this.dom.removeEventListener(e,n[e])})}})}var Js=n(2400),ea=n(4450);function ta(e,t){return n=>{let{state:r,dispatch:i}=n;if(r.readOnly)return!1;let o=e(t,r);return!!o&&(i(r.update(o)),!0)}}const na=ta(la,0),ra=ta(aa,0),ia=ta((e,t)=>aa(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t)),0);function oa(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}const sa=50;function aa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map(e=>oa(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>function(e,t,n,r){let i,o,{open:s,close:a}=t,l=e.sliceDoc(n-sa,n),c=e.sliceDoc(r,r+sa),u=/\s*$/.exec(l)[0].length,h=/^\s*/.exec(c)[0].length,d=l.length-u;if(l.slice(d-s.length,d)==s&&c.slice(h,h+a.length)==a)return{open:{pos:n-u,margin:u&&1},close:{pos:r+h,margin:h&&1}};r-n<=2*sa?i=o=e.sliceDoc(n,r):(i=e.sliceDoc(n,n+sa),o=e.sliceDoc(r-sa,r));let p=/^\s*/.exec(i)[0].length,f=/\s*$/.exec(o)[0].length,m=o.length-f-a.length;return i.slice(p,p+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:n+p+s.length,margin:/\s/.test(i.charAt(p+s.length))?1:0},close:{pos:r-f-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(t,r[n],e.from,e.to));if(2!=e&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]))};if(1!=e&&i.some(e=>e)){let e=[];for(let t,n=0;n<i.length;n++)if(t=i[n]){let i=r[n],{open:o,close:s}=t;e.push({from:o.pos-i.open.length,to:o.pos+o.margin},{from:s.pos-s.margin,to:s.pos+i.close.length})}return{changes:e}}return null}function la(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=[],i=-1;for(let{from:o,to:s}of n){let e=r.length,n=1e9,a=oa(t,o).line;if(a){for(let e=o;e<=s;){let l=t.doc.lineAt(e);if(l.from>i&&(o==s||s>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,o=l.text.slice(e,e+a.length)==a?e:-1;e<l.text.length&&e<n&&(n=e),r.push({line:l,comment:o,token:a,indent:e,empty:t,single:!1})}e=l.to+1}if(n<1e9)for(let t=e;t<r.length;t++)r[t].indent<r[t].line.text.length&&(r[t].indent=n);r.length==e+1&&(r[e].single=!0)}}if(2!=e&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:i,indent:o,empty:s,single:a}of r)!a&&s||e.push({from:t.from+o,insert:i+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const ca=Js.YH.define(),ua=Js.YH.define(),ha=Js.sj.define(),da=Js.sj.define({combine:e=>(0,Js.QR)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),pa=Js.sU.define({create:()=>_a.empty,update(e,t){let n=t.state.facet(da),r=t.annotation(ca);if(r){let i=va.fromTransaction(t,r.selection),o=r.side,s=0==o?e.undone:e.done;return s=i?ya(s,s.length,n.minDepth,i):wa(s,t.startState.selection),new _a(0==o?r.rest:s,0==o?s:r.rest)}let i=t.annotation(ua);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(Js.ZX.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=va.fromTransaction(t),s=t.annotation(Js.ZX.time),a=t.annotation(Js.ZX.userEvent);return o?e=e.addChanges(o,s,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,a,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new _a(e.done.map(va.fromJSON),e.undone.map(va.fromJSON))});function fa(e,t){return function(n){let{state:r,dispatch:i}=n;if(!t&&r.readOnly)return!1;let o=r.field(pa,!1);if(!o)return!1;let s=o.pop(e,r,t);return!!s&&(i(s),!0)}}const ma=fa(0,!1),ga=fa(1,!1),Oa=fa(0,!0),ba=fa(1,!0);class va{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new va(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new va(e.changes&&Js.VR.fromJSON(e.changes),[],e.mapped&&Js.Gu.fromJSON(e.mapped),e.startSelection&&Js.OF.fromJSON(e.startSelection),e.selectionsAfter.map(Js.OF.fromJSON))}static fromTransaction(e,t){let n=ka;for(let r of e.startState.facet(ha)){let t=r(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new va(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,ka)}static selection(e){return new va(void 0,ka,void 0,void 0,e)}}function ya(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function xa(e,t){return e.length?t.length?e.concat(t):e:t}const ka=[],Sa=200;function wa(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Sa));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),ya(e,e.length-1,1e9,n.setSelAfter(r)))}return[va.selection([t])]}function Aa(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Ta(e,t){if(!e.length)return e;let n=e.length,r=ka;for(;n;){let i=Ea(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[va.selection(r)]:ka}function Ea(e,t,n){let r=xa(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):ka,n);if(!e.changes)return va.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new va(i,Js.Pe.mapEffects(e.effects,t),s,e.startSelection.map(o),r)}const Ca=/^(input\.type|delete)($|\.)/;class _a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new _a(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||Ca.test(n))&&(!s.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(i,function(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,o)=>{for(let s=0;s<n.length;){let e=n[s++],t=n[s++];o>=e&&i<=t&&(r=!0)}}),r}(s.changes,e.changes))||"input.type.compose"==n)?ya(o,o.length-1,r.minDepth,new va(e.changes.compose(s.changes),xa(Js.Pe.mapEffects(e.effects,s.changes),s.effects),s.mapped,s.startSelection,ka)):ya(o,o.length,r.minDepth,e),new _a(o,ka,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:ka;return i.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&function(e,t){return e.ranges.length==t.ranges.length&&0===e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length}(i[i.length-1],e)?this:new _a(wa(this.done,e),this.undone,t,n)}addMapping(e){return new _a(Ta(this.done,e),Ta(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||t.selection;if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:ca.of({side:e,rest:Aa(r),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?ka:r.slice(0,r.length-1);return i.mapped&&(n=Ta(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:ca.of({side:e,rest:n,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}_a.empty=new _a(ka,ka);const Pa=[{key:"Mod-z",run:ma,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:ga,preventDefault:!0},{linux:"Ctrl-Shift-z",run:ga,preventDefault:!0},{key:"Mod-u",run:Oa,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:ba,preventDefault:!0}];function Da(e,t){return Js.OF.create(e.ranges.map(t),e.mainIndex)}function Ma(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Na(e,t){let{state:n,dispatch:r}=e,i=Da(n.selection,t);return!i.eq(n.selection,!0)&&(r(Ma(n,i)),!0)}function Ra(e,t){return Js.OF.cursor(t?e.to:e.from)}function Qa(e,t){return Na(e,n=>n.empty?e.moveByChar(n,t):Ra(n,t))}function Ia(e){return e.textDirectionAt(e.state.selection.main.head)==Ws.OP.LTR}const La=e=>Qa(e,!Ia(e)),Fa=e=>Qa(e,Ia(e));function $a(e,t){return Na(e,n=>n.empty?e.moveByGroup(n,t):Ra(n,t))}"undefined"!=typeof Intl&&Intl.Segmenter;function Ba(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function za(e,t,n){let r,i,o=(0,Zs.mv)(e).resolveInner(t.head),s=n?ea.uY.closedBy:ea.uY.openedBy;for(let a=t.head;;){let t=n?o.childAfter(a):o.childBefore(a);if(!t)break;Ba(e,t,s)?o=t:a=n?t.to:t.from}return i=o.type.prop(s)&&(r=n?(0,Zs.jU)(e,o.from,1):(0,Zs.jU)(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,Js.OF.cursor(i,n?-1:1)}function qa(e,t){return Na(e,n=>{if(!n.empty)return Ra(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const Ha=e=>qa(e,!1),Ua=e=>qa(e,!0);function Xa(e){let t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,i=0;if(n){for(let t of e.state.facet(Ws.Lz.scrollMargins)){let n=t(e);(null===n||void 0===n?void 0:n.top)&&(r=Math.max(null===n||void 0===n?void 0:n.top,r)),(null===n||void 0===n?void 0:n.bottom)&&(i=Math.max(null===n||void 0===n?void 0:n.bottom,i))}t=e.scrollDOM.clientHeight-r-i}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:i,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function ja(e,t){let n,r=Xa(e),{state:i}=e,o=Da(i.selection,n=>n.empty?e.moveVertically(n,t,r.height):Ra(n,t));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),a=s.top+r.marginTop,l=s.bottom-r.marginBottom;t&&t.top>a&&t.bottom<l&&(n=Ws.Lz.scrollIntoView(o.main.head,{y:"start",yMargin:t.top-a}))}return e.dispatch(Ma(i,o),{effects:n}),!0}const Za=e=>ja(e,!1),Ya=e=>ja(e,!0);function Va(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=Js.OF.cursor(r.from+n))}return i}function Ga(e,t,n){let r=!1,i=Da(e.selection,t=>{let i=(0,Zs.jU)(e,t.head,-1)||(0,Zs.jU)(e,t.head,1)||t.head>0&&(0,Zs.jU)(e,t.head-1,1)||t.head<e.doc.length&&(0,Zs.jU)(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let o=i.start.from==t.head?i.end.to:i.end.from;return n?Js.OF.range(t.anchor,o):Js.OF.cursor(o)});return!!r&&(t(Ma(e,i)),!0)}function Wa(e,t){let n=Da(e.state.selection,e=>{let n=t(e);return Js.OF.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!n.eq(e.state.selection)&&(e.dispatch(Ma(e.state,n)),!0)}function Ka(e,t){return Wa(e,n=>e.moveByChar(n,t))}const Ja=e=>Ka(e,!Ia(e)),el=e=>Ka(e,Ia(e));function tl(e,t){return Wa(e,n=>e.moveByGroup(n,t))}function nl(e,t){return Wa(e,n=>e.moveVertically(n,t))}const rl=e=>nl(e,!1),il=e=>nl(e,!0);function ol(e,t){return Wa(e,n=>e.moveVertically(n,t,Xa(e).height))}const sl=e=>ol(e,!1),al=e=>ol(e,!0),ll=e=>{let{state:t,dispatch:n}=e;return n(Ma(t,{anchor:0})),!0},cl=e=>{let{state:t,dispatch:n}=e;return n(Ma(t,{anchor:t.doc.length})),!0},ul=e=>{let{state:t,dispatch:n}=e;return n(Ma(t,{anchor:t.selection.main.anchor,head:0})),!0},hl=e=>{let{state:t,dispatch:n}=e;return n(Ma(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0};function dl(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:o}=r;if(i==o){let s=t(r);s<i?(n="delete.backward",s=pl(e,s,!1)):s>i&&(n="delete.forward",s=pl(e,s,!0)),i=Math.min(i,s),o=Math.max(o,s)}else i=pl(e,i,!1),o=pl(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:Js.OF.cursor(i,i<r.head?-1:1)}});return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?Ws.Lz.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function pl(e,t,n){if(e instanceof Ws.Lz)for(let r of e.state.facet(Ws.Lz.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}const fl=(e,t,n)=>dl(e,r=>{let i,o,s=r.from,{state:a}=e,l=a.doc.lineAt(s);if(n&&!t&&s>l.from&&s<l.from+200&&!/[^ \t]/.test(i=l.text.slice(0,s-l.from))){if("\t"==i[i.length-1])return s-1;let e=(0,Js.y$)(i,a.tabSize)%(0,Zs.tp)(a)||(0,Zs.tp)(a);for(let t=0;t<e&&" "==i[i.length-1-t];t++)s--;o=s}else o=(0,Js.zK)(l.text,s-l.from,t,t)+l.from,o==s&&l.number!=(t?a.doc.lines:1)?o+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(l.text.slice(o-l.from,s-l.from))&&(o=(0,Js.zK)(l.text,o-l.from,!1,!1)+l.from);return o}),ml=e=>fl(e,!1,!0),gl=e=>fl(e,!0,!1),Ol=(e,t)=>dl(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),s=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let a=(0,Js.zK)(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,a)-o.from,Math.max(r,a)-o.from),c=s(l);if(null!=e&&c!=e)break;" "==l&&r==n.head||(e=c),r=a}return r}),bl=e=>Ol(e,!1);function vl(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function yl(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of vl(e)){if(n?o.to==e.doc.length:0==o.from)continue;let t=e.doc.lineAt(n?o.to+1:o.from-1),s=t.length+1;if(n){r.push({from:o.to,to:t.to},{from:o.from,insert:t.text+e.lineBreak});for(let t of o.ranges)i.push(Js.OF.range(Math.min(e.doc.length,t.anchor+s),Math.min(e.doc.length,t.head+s)))}else{r.push({from:t.from,to:o.from},{from:o.to,insert:e.lineBreak+t.text});for(let e of o.ranges)i.push(Js.OF.range(e.anchor-s,e.head-s))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:Js.OF.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function xl(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of vl(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const kl=wl(!1),Sl=wl(!0);function wl(e){return t=>{let{state:n,dispatch:r}=t;if(n.readOnly)return!1;let i=n.changeByRange(t=>{let{from:r,to:i}=t,o=n.doc.lineAt(r),s=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,Zs.mv)(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(ea.uY.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}(n,r);e&&(r=i=(i<=o.to?o:n.doc.lineAt(i)).to);let a=new Zs.KB(n,{simulateBreak:r,simulateDoubleBreak:!!s}),l=(0,Zs._v)(a,r);for(null==l&&(l=(0,Js.y$)(/^\s*/.exec(n.doc.lineAt(r).text)[0],n.tabSize));i<o.to&&/\s/.test(o.text[i-o.from]);)i++;s?({from:r,to:i}=s):r>o.from&&r<o.from+100&&!/\S/.test(o.text.slice(0,r))&&(r=o.from);let c=["",(0,Zs.EI)(n,l)];return s&&c.push((0,Zs.EI)(n,a.lineIndent(o.from,-1))),{changes:{from:r,to:i,insert:Js.EY.of(c)},range:Js.OF.cursor(r+1+c[1].length)}});return r(n.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function Al(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let o=e.changes(i);return{changes:i,range:Js.OF.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const Tl=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(Al(t,(e,n)=>{n.push({from:e.from,insert:t.facet(Zs.Xt)})}),{userEvent:"input.indent"})),!0)},El=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(Al(t,(e,n)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let i=(0,Js.y$)(r,t.tabSize),o=0,s=(0,Zs.EI)(t,Math.max(0,i-(0,Zs.tp)(t)));for(;o<r.length&&o<s.length&&r.charCodeAt(o)==s.charCodeAt(o);)o++;n.push({from:e.from+o,to:e.from+r.length,insert:s.slice(o)})}),{userEvent:"delete.dedent"})),!0)},Cl=[{key:"Ctrl-b",run:La,shift:Ja,preventDefault:!0},{key:"Ctrl-f",run:Fa,shift:el},{key:"Ctrl-p",run:Ha,shift:rl},{key:"Ctrl-n",run:Ua,shift:il},{key:"Ctrl-a",run:e=>Na(e,t=>Js.OF.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>Wa(e,t=>Js.OF.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>Na(e,t=>Js.OF.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>Wa(e,t=>Js.OF.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:gl},{key:"Ctrl-h",run:ml},{key:"Ctrl-k",run:e=>dl(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})},{key:"Ctrl-Alt-h",run:bl},{key:"Ctrl-o",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=t.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:Js.EY.of(["",""])},range:Js.OF.cursor(e.from)}));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=t.changeByRange(e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,r=t.doc.lineAt(n),i=n==r.from?n-1:(0,Js.zK)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,Js.zK)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:t.doc.slice(n,o).append(t.doc.slice(i,n))},range:Js.OF.cursor(o)}});return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Ya}],_l=[{key:"ArrowLeft",run:La,shift:Ja,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>$a(e,!Ia(e)),shift:e=>tl(e,!Ia(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>Na(e,t=>Va(e,t,!Ia(e))),shift:e=>Wa(e,t=>Va(e,t,!Ia(e))),preventDefault:!0},{key:"ArrowRight",run:Fa,shift:el,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>$a(e,Ia(e)),shift:e=>tl(e,Ia(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>Na(e,t=>Va(e,t,Ia(e))),shift:e=>Wa(e,t=>Va(e,t,Ia(e))),preventDefault:!0},{key:"ArrowUp",run:Ha,shift:rl,preventDefault:!0},{mac:"Cmd-ArrowUp",run:ll,shift:ul},{mac:"Ctrl-ArrowUp",run:Za,shift:sl},{key:"ArrowDown",run:Ua,shift:il,preventDefault:!0},{mac:"Cmd-ArrowDown",run:cl,shift:hl},{mac:"Ctrl-ArrowDown",run:Ya,shift:al},{key:"PageUp",run:Za,shift:sl},{key:"PageDown",run:Ya,shift:al},{key:"Home",run:e=>Na(e,t=>Va(e,t,!1)),shift:e=>Wa(e,t=>Va(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:ll,shift:ul},{key:"End",run:e=>Na(e,t=>Va(e,t,!0)),shift:e=>Wa(e,t=>Va(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:cl,shift:hl},{key:"Enter",run:kl,shift:kl},{key:"Mod-a",run:e=>{let{state:t,dispatch:n}=e;return n(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:ml,shift:ml},{key:"Delete",run:gl},{key:"Mod-Backspace",mac:"Alt-Backspace",run:bl},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Ol(e,!0)},{mac:"Mod-Backspace",run:e=>dl(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)})},{mac:"Mod-Delete",run:e=>dl(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})}].concat(Cl.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),Pl=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>Na(e,t=>za(e.state,t,!Ia(e))),shift:e=>Wa(e,t=>za(e.state,t,!Ia(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>Na(e,t=>za(e.state,t,Ia(e))),shift:e=>Wa(e,t=>za(e.state,t,Ia(e)))},{key:"Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return yl(t,n,!1)}},{key:"Shift-Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return xl(t,n,!1)}},{key:"Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return yl(t,n,!0)}},{key:"Shift-Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return xl(t,n,!0)}},{key:"Escape",run:e=>{let{state:t,dispatch:n}=e,r=t.selection,i=null;return r.ranges.length>1?i=Js.OF.create([r.main]):r.main.empty||(i=Js.OF.create([Js.OF.cursor(r.main.head)])),!!i&&(n(Ma(t,i)),!0)}},{key:"Mod-Enter",run:Sl},{key:"Alt-l",mac:"Ctrl-l",run:e=>{let{state:t,dispatch:n}=e,r=vl(t).map(e=>{let{from:n,to:r}=e;return Js.OF.range(n,Math.min(r+1,t.doc.length))});return n(t.update({selection:Js.OF.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:e=>{let{state:t,dispatch:n}=e,r=Da(t.selection,e=>{let n=(0,Zs.mv)(t),r=n.resolveStack(e.from,1);if(e.empty){let t=n.resolveStack(e.from,-1);t.node.from>=r.node.from&&t.node.to<=r.node.to&&(r=t)}for(let t=r;t;t=t.next){let{node:n}=t;if((n.from<e.from&&n.to>=e.to||n.to>e.to&&n.from<=e.from)&&t.next)return Js.OF.range(n.to,n.from)}return e});return!r.eq(t.selection)&&(n(Ma(t,r)),!0)},preventDefault:!0},{key:"Mod-[",run:El},{key:"Mod-]",run:Tl},{key:"Mod-Alt-\\",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=Object.create(null),i=new Zs.KB(t,{overrideIndentation:e=>{let t=r[e];return null==t?-1:t}}),o=Al(t,(e,n,o)=>{let s=(0,Zs._v)(i,e.from);if(null==s)return;/\S/.test(e.text)||(s=0);let a=/^\s*/.exec(e.text)[0],l=(0,Zs.EI)(t,s);(a!=l||o.from<e.from+a.length)&&(r[e.from]=s,n.push({from:e.from,to:e.from+a.length,insert:l}))});return o.changes.empty||n(t.update(o,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(vl(t).map(e=>{let{from:n,to:r}=e;return n>0?n--:r<t.doc.length&&r++,{from:n,to:r}})),r=Da(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:e=>{let{state:t,dispatch:n}=e;return Ga(t,n,!1)}},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=oa(e.state,n.from);return r.line?na(e):!!r.block&&ia(e)}},{key:"Alt-A",run:ra},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat(_l),Dl={key:"Tab",run:Tl,shift:El};function Ml(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;t<arguments.length;t++)Nl(e,arguments[t]);return e}function Nl(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)Nl(e,t[n])}}const Rl="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class Ql{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(Rl(e)):Rl,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,Js.vS)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,Js.MK)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,Js.Fh)(e);let r=this.normalize(t);if(r.length)for(let i=0,o=n;;i++){let e=r.charCodeAt(i),s=this.match(e,o,this.bufferPos+this.bufferStart);if(i==r.length-1){if(s)return this.value=s,this;break}o==n&&i<t.length&&t.charCodeAt(i)==e&&o++}}}match(e,t,n){let r=null;for(let i=0;i<this.matches.length;i+=2){let t=this.matches[i],o=!1;this.query.charCodeAt(t)==e&&(t==this.query.length-1?r={from:this.matches[i+1],to:n}:(this.matches[i]++,o=!0)),o||(this.matches.splice(i,2),i-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?r={from:t,to:n}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}"undefined"!=typeof Symbol&&(Ql.prototype[Symbol.iterator]=function(){return this});const Il={from:-1,to:-1,match:/.*/.exec("")},Ll="gm"+(null==/x/.unicode?"":"u");class Fl{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length;if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=Il,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new zl(e,t,n,r,i);this.re=new RegExp(t,Ll+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=ql(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=ql(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const $l=new WeakMap;class Bl{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let r=$l.get(e);if(!r||r.from>=n||r.to<=t){let r=new Bl(t,e.sliceString(t,n));return $l.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to<n&&(i+=e.sliceString(r.to,n)),$l.set(e,new Bl(o,i)),new Bl(t,i.slice(t-o,n-o))}}class zl{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=Il,this.matchPos=ql(e,r),this.re=new RegExp(t,Ll+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.flat=Bl.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=ql(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Bl.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function ql(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t<r.to&&(n=r.text.charCodeAt(t-r.from))>=56320&&n<57344;)t++;return t}function Hl(e){let t=Ml("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:r}=e,i=r.doc.lineAt(r.selection.main.head),[,o,s,a,l]=n,c=a?+a.slice(1):0,u=s?+s:i.number;if(s&&l){let e=u/100;o&&(e=e*("-"==o?-1:1)+i.number/r.doc.lines),u=Math.round(r.doc.lines*e)}else s&&o&&(u=u*("-"==o?-1:1)+i.number);let h=r.doc.line(Math.max(1,Math.min(r.doc.lines,u))),d=Js.OF.cursor(h.from+Math.max(0,Math.min(c,h.length)));e.dispatch({effects:[Ul.of(!1),Ws.Lz.scrollIntoView(d.from,{y:"center"})],selection:d}),e.focus()}return{dom:Ml("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:Ul.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},Ml("label",e.state.phrase("Go to line"),": ",t)," ",Ml("button",{class:"cm-button",type:"submit"},e.state.phrase("go")),Ml("button",{name:"close",onclick:()=>{e.dispatch({effects:Ul.of(!1)}),e.focus()},"aria-label":e.state.phrase("close"),type:"button"},["\xd7"]))}}"undefined"!=typeof Symbol&&(Fl.prototype[Symbol.iterator]=zl.prototype[Symbol.iterator]=function(){return this});const Ul=Js.Pe.define(),Xl=Js.sU.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(Ul)&&(e=n.value);return e},provide:e=>Ws.S7.from(e,e=>e?Hl:null)}),jl=Ws.Lz.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),Zl={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Yl=Js.sj.define({combine:e=>(0,Js.QR)(e,Zl,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});const Vl=Ws.NZ.mark({class:"cm-selectionMatch"}),Gl=Ws.NZ.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Wl(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=Js.Je.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Js.Je.Word)}const Kl=Ws.Z9.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Yl),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Ws.NZ.none;let i,o=r.main,s=null;if(o.empty){if(!t.highlightWordAroundCursor)return Ws.NZ.none;let e=n.wordAt(o.head);if(!e)return Ws.NZ.none;s=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e<t.minSelectionLength||e>200)return Ws.NZ.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),s=n.charCategorizer(o.head),!Wl(s,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==Js.Je.Word&&e(t.sliceDoc(r-1,r))==Js.Je.Word}(s,n,o.from,o.to))return Ws.NZ.none}else if(i=n.sliceDoc(o.from,o.to),!i)return Ws.NZ.none}let a=[];for(let l of e.visibleRanges){let e=new Ql(n.doc,i,l.from,l.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!s||Wl(s,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?a.push(Gl.range(r,i)):(r>=o.to||i<=o.from)&&a.push(Vl.range(r,i)),a.length>t.maxMatches))return Ws.NZ.none}}return Ws.NZ.set(a)}},{decorations:e=>e.decorations}),Jl=Ws.Lz.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const ec=Js.sj.define({combine:e=>(0,Js.QR)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new _c(e),scrollToMatch:e=>Ws.Lz.scrollIntoView(e)})});class tc{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Ll),!0}catch(em){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new lc(this):new ic(this)}getCursor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=e.doc?e:Js.$t.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?oc(this,r,t,n):rc(this,r,t,n)}}class nc{constructor(e){this.spec=e}}function rc(e,t,n,r){return new Ql(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(i=t.doc,o=t.charCategorizer(t.selection.main.head),(e,t,n,r)=>((r>e||r+n.length<t)&&(r=Math.max(0,e-2),n=i.sliceString(r,Math.min(i.length,t+2))),(o(sc(n,e-r))!=Js.Je.Word||o(ac(n,e-r))!=Js.Je.Word)&&(o(ac(n,t-r))!=Js.Je.Word||o(sc(n,t-r))!=Js.Je.Word))):void 0);var i,o}class ic extends nc{constructor(e){super(e)}nextMatch(e,t,n){let r=rc(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=rc(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=rc(this.spec,e,n,r),o=null;for(;!i.nextOverlapping().done;)o=i.value;if(o)return o;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),!r||r.from==t&&r.to==n?null:r}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=rc(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=rc(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function oc(e,t,n,r){return new Fl(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(i(sc(n.input,n.index))!=Js.Je.Word||i(ac(n.input,n.index))!=Js.Je.Word)&&(i(ac(n.input,n.index+n[0].length))!=Js.Je.Word||i(sc(n.input,n.index+n[0].length))!=Js.Je.Word)):void 0},n,r);var i}function sc(e,t){return e.slice((0,Js.zK)(e,t,!1),t)}function ac(e,t){return e.slice(t,(0,Js.zK)(e,t))}class lc extends nc{nextMatch(e,t,n){let r=oc(this.spec,e,n,e.doc.length).next();return r.done&&(r=oc(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=oc(this.spec,e,i,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==t||s.from>i+10))return s;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let r=n.length;r>0;r--){let t=+n.slice(0,r);if(t>0&&t<e.match.length)return e.match[t]+n.slice(r)}return t})}matchAll(e,t){let n=oc(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=oc(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const cc=Js.Pe.define(),uc=Js.Pe.define(),hc=Js.sU.define({create:e=>new dc(Sc(e).create(),null),update(e,t){for(let n of t.effects)n.is(cc)?e=new dc(n.value.create(),e.panel):n.is(uc)&&(e=new dc(e.query,n.value?kc:null));return e},provide:e=>Ws.S7.from(e,e=>e.panel)});class dc{constructor(e,t){this.query=e,this.panel=t}}const pc=Ws.NZ.mark({class:"cm-searchMatch"}),fc=Ws.NZ.mark({class:"cm-searchMatch cm-searchMatch-selected"}),mc=Ws.Z9.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(hc))}update(e){let t=e.state.field(hc);(t!=e.startState.field(hc)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight(e){let{query:t,panel:n}=e;if(!n||!t.spec.valid)return Ws.NZ.none;let{view:r}=this,i=new Js.vB;for(let o=0,s=r.visibleRanges,a=s.length;o<a;o++){let{from:e,to:n}=s[o];for(;o<a-1&&n>s[o+1].from-500;)n=s[++o].to;t.highlight(r.state,e,n,(e,t)=>{let n=r.state.selection.ranges.some(n=>n.from==e&&n.to==t);i.add(e,t,n?fc:pc)})}return i.finish()}},{decorations:e=>e.decorations});function gc(e){return t=>{let n=t.state.field(hc,!1);return n&&n.query.spec.valid?e(t,n):Tc(t)}}const Oc=gc((e,t)=>{let{query:n}=t,{to:r}=e.state.selection.main,i=n.nextMatch(e.state,r,r);if(!i)return!1;let o=Js.OF.single(i.from,i.to),s=e.state.facet(ec);return e.dispatch({selection:o,effects:[Nc(e,i),s.scrollToMatch(o.main,e)],userEvent:"select.search"}),Ac(e),!0}),bc=gc((e,t)=>{let{query:n}=t,{state:r}=e,{from:i}=r.selection.main,o=n.prevMatch(r,i,i);if(!o)return!1;let s=Js.OF.single(o.from,o.to),a=e.state.facet(ec);return e.dispatch({selection:s,effects:[Nc(e,o),a.scrollToMatch(s.main,e)],userEvent:"select.search"}),Ac(e),!0}),vc=gc((e,t)=>{let{query:n}=t,r=n.matchAll(e.state,1e3);return!(!r||!r.length)&&(e.dispatch({selection:Js.OF.create(r.map(e=>Js.OF.range(e.from,e.to))),userEvent:"select.search.matches"}),!0)}),yc=gc((e,t)=>{let{query:n}=t,{state:r}=e,{from:i,to:o}=r.selection.main;if(r.readOnly)return!1;let s=n.nextMatch(r,i,i);if(!s)return!1;let a,l,c=s,u=[],h=[];c.from==i&&c.to==o&&(l=r.toText(n.getReplacement(c)),u.push({from:c.from,to:c.to,insert:l}),c=n.nextMatch(r,c.from,c.to),h.push(Ws.Lz.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(i).number)+".")));let d=e.state.changes(u);return c&&(a=Js.OF.single(c.from,c.to).map(d),h.push(Nc(e,c)),h.push(r.facet(ec).scrollToMatch(a.main,e))),e.dispatch({changes:d,selection:a,effects:h,userEvent:"input.replace"}),!0}),xc=gc((e,t)=>{let{query:n}=t;if(e.state.readOnly)return!1;let r=n.matchAll(e.state,1e9).map(e=>{let{from:t,to:r}=e;return{from:t,to:r,insert:n.getReplacement(e)}});if(!r.length)return!1;let i=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:Ws.Lz.announce.of(i),userEvent:"input.replace.all"}),!0});function kc(e){return e.state.facet(ec).createPanel(e)}function Sc(e,t){var n,r,i,o,s;let a=e.selection.main,l=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!l)return t;let c=e.facet(ec);return new tc({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==r?r:c.caseSensitive,literal:null!==(i=null===t||void 0===t?void 0:t.literal)&&void 0!==i?i:c.literal,regexp:null!==(o=null===t||void 0===t?void 0:t.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(s=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==s?s:c.wholeWord})}function wc(e){let t=(0,Ws.ld)(e,kc);return t&&t.dom.querySelector("[main-field]")}function Ac(e){let t=wc(e);t&&t==e.root.activeElement&&t.select()}const Tc=e=>{let t=e.state.field(hc,!1);if(t&&t.panel){let n=wc(e);if(n&&n!=e.root.activeElement){let r=Sc(e.state,t.query.spec);r.valid&&e.dispatch({effects:cc.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[uc.of(!0),t?cc.of(Sc(e.state,t.query.spec)):Js.Pe.appendConfig.of(Qc)]});return!0},Ec=e=>{let t=e.state.field(hc,!1);if(!t||!t.panel)return!1;let n=(0,Ws.ld)(e,kc);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:uc.of(!1)}),!0},Cc=[{key:"Mod-f",run:Tc,scope:"editor search-panel"},{key:"F3",run:Oc,shift:bc,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Oc,shift:bc,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Ec,scope:"editor search-panel"},{key:"Mod-Shift-l",run:e=>{let{state:t,dispatch:n}=e,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;let{from:i,to:o}=r.main,s=[],a=0;for(let l=new Ql(t.doc,t.sliceDoc(i,o));!l.next().done;){if(s.length>1e3)return!1;l.value.from==i&&(a=s.length),s.push(Js.OF.range(l.value.from,l.value.to))}return n(t.update({selection:Js.OF.create(s,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=(0,Ws.ld)(e,Hl);if(!t){let n=[Ul.of(!0)];null==e.state.field(Xl,!1)&&n.push(Js.Pe.appendConfig.of([Xl,jl])),e.dispatch({effects:n}),t=(0,Ws.ld)(e,Hl)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:e=>{let{state:t,dispatch:n}=e,{ranges:r}=t.selection;if(r.some(e=>e.from===e.to))return(e=>{let{state:t,dispatch:n}=e,{selection:r}=t,i=Js.OF.create(r.ranges.map(e=>t.wordAt(e.head)||Js.OF.cursor(e.head)),r.mainIndex);return!i.eq(r)&&(n(t.update({selection:i})),!0)})({state:t,dispatch:n});let i=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some(e=>t.sliceDoc(e.from,e.to)!=i))return!1;let o=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let s=!1,a=new Ql(e.doc,t,r[r.length-1].to);;){if(a.next(),!a.done){if(s&&r.some(e=>e.from==a.value.from))continue;if(o){let t=e.wordAt(a.value.from);if(!t||t.from!=a.value.from||t.to!=a.value.to)continue}return a.value}if(s)return null;a=new Ql(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}}(t,i);return!!o&&(n(t.update({selection:t.selection.addRange(Js.OF.range(o.from,o.to),!1),effects:Ws.Lz.scrollIntoView(o.to)})),!0)},preventDefault:!0}];class _c{constructor(e){this.view=e;let t=this.query=e.state.field(hc).query.spec;function n(e,t,n){return Ml("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=Ml("input",{value:t.search,placeholder:Pc(e,"Find"),"aria-label":Pc(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ml("input",{value:t.replace,placeholder:Pc(e,"Replace"),"aria-label":Pc(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ml("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Ml("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Ml("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=Ml("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",()=>Oc(e),[Pc(e,"next")]),n("prev",()=>bc(e),[Pc(e,"previous")]),n("select",()=>vc(e),[Pc(e,"all")]),Ml("label",null,[this.caseField,Pc(e,"match case")]),Ml("label",null,[this.reField,Pc(e,"regexp")]),Ml("label",null,[this.wordField,Pc(e,"by word")]),...e.state.readOnly?[]:[Ml("br"),this.replaceField,n("replace",()=>yc(e),[Pc(e,"replace")]),n("replaceAll",()=>xc(e),[Pc(e,"replace all")])],Ml("button",{name:"close",onclick:()=>Ec(e),"aria-label":Pc(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new tc({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:cc.of(e)}))}keydown(e){(0,Ws.TS)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?bc:Oc)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),yc(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(cc)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ec).top}}function Pc(e,t){return e.state.phrase(t)}const Dc=30,Mc=/[\s\.,:;?!]/;function Nc(e,t){let{from:n,to:r}=t,i=e.state.doc.lineAt(n),o=e.state.doc.lineAt(r).to,s=Math.max(i.from,n-Dc),a=Math.min(o,r+Dc),l=e.state.sliceDoc(s,a);if(s!=i.from)for(let c=0;c<Dc;c++)if(!Mc.test(l[c+1])&&Mc.test(l[c])){l=l.slice(c);break}if(a!=o)for(let c=l.length-1;c>l.length-Dc;c--)if(!Mc.test(l[c-1])&&Mc.test(l[c])){l=l.slice(0,c);break}return Ws.Lz.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${i.number}.`)}const Rc=Ws.Lz.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Qc=[hc,Js.Nb.low(mc),Rc];var Ic=n(5045);class Lc{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class Fc{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=n.facet(Wc).markerFilter;r&&(e=r(e,n));let i=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to),o=new Js.vB,s=[],a=0;for(let c=0;;){let e,t,r=c==i.length?null:i[c];if(!r&&!s.length)break;for(s.length?(e=a,t=s.reduce((e,t)=>Math.min(e,t.to),r&&r.from>e?r.from:1e8)):(e=r.from,t=r.to,s.push(r),c++);c<i.length;){let n=i[c];if(n.from!=e||!(n.to>n.from||n.to==e)){t=Math.min(n.from,t);break}s.push(n),c++,t=Math.min(n.to,t)}let l=au(s);if(s.some(e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from))o.add(e,e,Ws.NZ.widget({widget:new eu(l),diagnostics:s.slice()}));else{let n=s.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");o.add(e,t,Ws.NZ.mark({class:"cm-lintRange cm-lintRange-"+l+n,diagnostics:s.slice(),inclusiveEnd:s.some(e=>e.to>t)}))}a=t;for(let n=0;n<s.length;n++)s[n].to<=a&&s.splice(n--,1)}let l=o.finish();return new Fc(l,t,$c(l))}}function $c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,1e9,(e,n,i)=>{let{spec:o}=i;if(!(t&&o.diagnostics.indexOf(t)<0))if(r){if(o.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new Lc(r.from,n,r.diagnostic)}else r=new Lc(e,n,t||o.diagnostics[0])}),r}function Bc(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(Wc).hideOn(e,n,r);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!(!e.effects.some(e=>e.is(qc))&&!e.changes.touchesRange(o.from,Math.max(o.to,r)))}function zc(e,t){return e.field(Xc,!1)?t:t.concat(Js.Pe.appendConfig.of(lu))}const qc=Js.Pe.define(),Hc=Js.Pe.define(),Uc=Js.Pe.define(),Xc=Js.sU.define({create:()=>new Fc(Ws.NZ.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=$c(n,e.selected.diagnostic,i)||$c(n,null,i)}!n.size&&i&&t.state.facet(Wc).autoPanel&&(i=null),e=new Fc(n,i,r)}for(let n of t.effects)if(n.is(qc)){let r=t.state.facet(Wc).autoPanel?n.value.length?nu.open:null:e.panel;e=Fc.init(n.value,r,t.state)}else n.is(Hc)?e=new Fc(e.diagnostics,n.value?nu.open:null,e.selected):n.is(Uc)&&(e=new Fc(e.diagnostics,e.panel,n.value));return e},provide:e=>[Ws.S7.from(e,e=>e.panel),Ws.Lz.decorations.from(e,e=>e.diagnostics)]});const jc=Ws.NZ.mark({class:"cm-lintRange cm-lintRange-active"});function Zc(e,t,n){let r,{diagnostics:i}=e.state.field(Xc),o=-1,s=-1;i.between(t-(n<0?1:0),t+(n>0?1:0),(e,i,a)=>{let{spec:l}=a;if(t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t<i||n<0)))return r=l.diagnostics,o=e,s=i,!1});let a=e.state.facet(Wc).tooltipFilter;return r&&a&&(r=a(r,e.state)),r?{pos:o,end:s,above:e.state.doc.lineAt(o).to<s,create:()=>({dom:Yc(e,r)})}:null}function Yc(e,t){return Ml("ul",{class:"cm-tooltip-lint"},t.map(t=>Jc(e,t,!1)))}const Vc=e=>{let t=e.state.field(Xc,!1);return!(!t||!t.panel)&&(e.dispatch({effects:Hc.of(!1)}),!0)},Gc=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Xc,!1);t&&t.panel||e.dispatch({effects:zc(e.state,[Hc.of(!0)])});let n=(0,Ws.ld)(e,nu.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(Xc,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}];const Wc=Js.sj.define({combine:e=>Object.assign({sources:e.map(e=>e.source).filter(e=>null!=e)},(0,Js.QR)(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function Kc(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some(e=>e.toLowerCase()==r.toLowerCase())){t.push(r);continue e}}t.push("")}return t}function Jc(e,t,n){var r;let i=n?Kc(t.actions):[];return Ml("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Ml("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map((n,r)=>{let o=!1,s=r=>{if(r.preventDefault(),o)return;o=!0;let i=$c(e.state.field(Xc).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:a}=n,l=i[r]?a.indexOf(i[r]):-1,c=l<0?a:[a.slice(0,l),Ml("u",a.slice(l,l+1)),a.slice(l+1)];return Ml("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${a}${l<0?"":` (access key "${i[r]})"`}.`},c)}),t.source&&Ml("div",{class:"cm-diagnosticSource"},t.source))}class eu extends Ws.xO{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return Ml("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class tu{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Jc(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class nu{constructor(e){this.view=e,this.items=[];this.list=Ml("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)Vc(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=Kc(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=$c(this.view.state.field(Xc).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=Ml("div",{class:"cm-panel-lint"},this.list,Ml("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Vc(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(Xc).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Xc),n=0,r=!1,i=null,o=new Set;for(e.between(0,this.view.state.doc.length,(e,s,a)=>{let{spec:l}=a;for(let c of l.diagnostics){if(o.has(c))continue;o.add(c);let e,s=-1;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==c){s=t;break}s<0?(e=new tu(this.view,c),this.items.splice(n,0,e),r=!0):(e=this.items[s],s>n&&(this.items.splice(n,s-n),r=!0)),t&&e.diagnostic==t.diagnostic?e.dom.hasAttribute("aria-selected")||(e.dom.setAttribute("aria-selected","true"),i=e):e.dom.hasAttribute("aria-selected")&&e.dom.removeAttribute("aria-selected"),n++}});n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();0==this.items.length&&(this.items.push(new tu(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:e=>{let{sel:t,panel:n}=e,r=n.height/this.list.offsetHeight;t.top<n.top?this.list.scrollTop-=(n.top-t.top)/r:t.bottom>n.bottom&&(this.list.scrollTop+=(t.bottom-n.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=$c(this.view.state.field(Xc).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Uc.of(t)})}static open(e){return new nu(e)}}function ru(e){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${arguments.length>1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"'}>${encodeURIComponent(e)}</svg>')`}function iu(e){return ru(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const ou=Ws.Lz.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:iu("#d11")},".cm-lintRange-warning":{backgroundImage:iu("orange")},".cm-lintRange-info":{backgroundImage:iu("#999")},".cm-lintRange-hint":{backgroundImage:iu("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function su(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}function au(e){let t="hint",n=1;for(let r of e){let e=su(r.severity);e>n&&(n=e,t=r.severity)}return t}Ws.wJ;const lu=[Xc,Ws.Lz.decorations.compute([Xc],e=>{let{selected:t,panel:n}=e.field(Xc);return t&&n&&t.from!=t.to?Ws.NZ.set([jc.range(t.from,t.to)]):Ws.NZ.none}),(0,Ws.Ux)(Zc,{hideOn:Bc}),ou];var cu=function(e){void 0===e&&(e={});var{crosshairCursor:t=!1}=e,n=[];!1!==e.closeBracketsKeymap&&(n=n.concat(Ic.Bc)),!1!==e.defaultKeymap&&(n=n.concat(Pl)),!1!==e.searchKeymap&&(n=n.concat(Cc)),!1!==e.historyKeymap&&(n=n.concat(Pa)),!1!==e.foldKeymap&&(n=n.concat(Zs.f7)),!1!==e.completionKeymap&&(n=n.concat(Ic.OO)),!1!==e.lintKeymap&&(n=n.concat(Gc));var r=[];return!1!==e.lineNumbers&&r.push((0,Ws.$K)()),!1!==e.highlightActiveLineGutter&&r.push((0,Ws.Wu)()),!1!==e.highlightSpecialChars&&r.push((0,Ws.N$)()),!1!==e.history&&r.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[pa,da.of(e),Ws.Lz.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?ma:"historyRedo"==e.inputType?ga:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&r.push((0,Zs.Lv)()),!1!==e.drawSelection&&r.push((0,Ws.VH)()),!1!==e.dropCursor&&r.push((0,Ws.A)()),!1!==e.allowMultipleSelections&&r.push(Js.$t.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&r.push((0,Zs.WD)()),!1!==e.syntaxHighlighting&&r.push((0,Zs.y9)(Zs.Zt,{fallback:!0})),!1!==e.bracketMatching&&r.push((0,Zs.SG)()),!1!==e.closeBrackets&&r.push((0,Ic.wm)()),!1!==e.autocompletion&&r.push((0,Ic.yU)()),!1!==e.rectangularSelection&&r.push((0,Ws.D4)()),!1!==t&&r.push((0,Ws.HJ)()),!1!==e.highlightActiveLine&&r.push((0,Ws.dz)()),!1!==e.highlightSelectionMatches&&r.push(function(e){let t=[Jl,Kl];return e&&t.push(Yl.of(e)),t}()),e.tabSize&&"number"===typeof e.tabSize&&r.push(Zs.Xt.of(" ".repeat(e.tabSize))),r.concat([Ws.w4.of(n.flat())]).filter(Boolean)},uu=n(1345);const hu="#e5c07b",du="#e06c75",pu="#56b6c2",fu="#ffffff",mu="#abb2bf",gu="#7d8799",Ou="#61afef",bu="#98c379",vu="#d19a66",yu="#c678dd",xu="#21252b",ku="#2c313a",Su="#282c34",wu="#353a42",Au="#3E4451",Tu="#528bff",Eu=Ws.Lz.theme({"&":{color:mu,backgroundColor:Su},".cm-content":{caretColor:Tu},".cm-cursor, .cm-dropCursor":{borderLeftColor:Tu},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Au},".cm-panels":{backgroundColor:xu,color:mu},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Su,color:gu,border:"none"},".cm-activeLineGutter":{backgroundColor:ku},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:wu},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:wu,borderBottomColor:wu},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:ku,color:mu}}},{dark:!0}),Cu=Zs.cr.define([{tag:uu._A.keyword,color:yu},{tag:[uu._A.name,uu._A.deleted,uu._A.character,uu._A.propertyName,uu._A.macroName],color:du},{tag:[uu._A.function(uu._A.variableName),uu._A.labelName],color:Ou},{tag:[uu._A.color,uu._A.constant(uu._A.name),uu._A.standard(uu._A.name)],color:vu},{tag:[uu._A.definition(uu._A.name),uu._A.separator],color:mu},{tag:[uu._A.typeName,uu._A.className,uu._A.number,uu._A.changed,uu._A.annotation,uu._A.modifier,uu._A.self,uu._A.namespace],color:hu},{tag:[uu._A.operator,uu._A.operatorKeyword,uu._A.url,uu._A.escape,uu._A.regexp,uu._A.link,uu._A.special(uu._A.string)],color:pu},{tag:[uu._A.meta,uu._A.comment],color:gu},{tag:uu._A.strong,fontWeight:"bold"},{tag:uu._A.emphasis,fontStyle:"italic"},{tag:uu._A.strikethrough,textDecoration:"line-through"},{tag:uu._A.link,color:gu,textDecoration:"underline"},{tag:uu._A.heading,fontWeight:"bold",color:du},{tag:[uu._A.atom,uu._A.bool,uu._A.special(uu._A.variableName)],color:vu},{tag:[uu._A.processingInstruction,uu._A.string,uu._A.inserted],color:bu},{tag:uu._A.invalid,color:fu}]),_u=[Eu,(0,Zs.y9)(Cu)];var Pu=Ws.Lz.theme({"&":{backgroundColor:"#fff"}},{dark:!1});class Du{constructor(e,t){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=t,this.timeoutMS=t,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(e=>{try{e()}catch(t){console.error("TimeoutLatch callback error:",t)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class Mu{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),0===this.latches.size&&this.stop()}start(){null===this.interval&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){null!==this.interval&&(clearInterval(this.interval),this.interval=null)}}var Nu=null,Ru=Js.YH.define(),Qu=[];function Iu(e){var{value:t,selection:n,onChange:r,onStatistics:i,onCreateEditor:o,onUpdate:s,extensions:a=Qu,autoFocus:l,theme:c="light",height:u=null,minHeight:h=null,maxHeight:d=null,width:p=null,minWidth:f=null,maxWidth:m=null,placeholder:g="",editable:O=!0,readOnly:b=!1,indentWithTab:v=!0,basicSetup:y=!0,root:x,initialState:k}=e,[S,w]=(0,ee.useState)(),[A,T]=(0,ee.useState)(),[E,C]=(0,ee.useState)(),_=(0,ee.useState)(()=>({current:null}))[0],P=(0,ee.useState)(()=>({current:null}))[0],D=Ws.Lz.theme({"&":{height:u,minHeight:h,maxHeight:d,width:p,minWidth:f,maxWidth:m},"& .cm-scroller":{height:"100% !important"}}),M=Ws.Lz.updateListener.of(e=>{if(e.docChanged&&"function"===typeof r&&!e.transactions.some(e=>e.annotation(Ru))){_.current?_.current.reset():(_.current=new Du(()=>{if(P.current){var e=P.current;P.current=null,e()}_.current=null},200),("undefined"===typeof window?new Mu:(Nu||(Nu=new Mu),Nu)).add(_.current));var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(e=>!e.empty)}))(e))}),N=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:r=!1,theme:i="light",placeholder:o="",basicSetup:s=!0}=e,a=[];switch(t&&a.unshift(Ws.w4.of([Dl])),s&&("boolean"===typeof s?a.unshift(cu()):a.unshift(cu(s))),o&&a.unshift((0,Ws.qf)(o)),i){case"light":a.push(Pu);break;case"dark":a.push(_u);break;case"none":break;default:a.push(i)}return!1===n&&a.push(Ws.Lz.editable.of(!1)),r&&a.push(Js.$t.readOnly.of(!0)),[...a]}({theme:c,editable:O,readOnly:b,placeholder:g,indentWithTab:v,basicSetup:y}),R=[M,D,...N];return s&&"function"===typeof s&&R.push(Ws.Lz.updateListener.of(s)),R=R.concat(a),(0,ee.useLayoutEffect)(()=>{if(S&&!E){var e={doc:t,selection:n,extensions:R},r=k?Js.$t.fromJSON(k.json,e,k.fields):Js.$t.create(e);if(C(r),!A){var i=new Ws.Lz({state:r,parent:S,root:x});T(i),o&&o(i,r)}}return()=>{A&&(C(void 0),T(void 0))}},[S,E]),(0,ee.useEffect)(()=>{e.container&&w(e.container)},[e.container]),(0,ee.useEffect)(()=>()=>{A&&(A.destroy(),T(void 0)),_.current&&(_.current.cancel(),_.current=null)},[A]),(0,ee.useEffect)(()=>{l&&A&&A.focus()},[l,A]),(0,ee.useEffect)(()=>{A&&A.dispatch({effects:Js.Pe.reconfigure.of(R)})},[c,a,u,h,d,p,f,m,g,O,b,v,y,r,s]),(0,ee.useEffect)(()=>{if(void 0!==t){var e=A?A.state.doc.toString():"";if(A&&t!==e){var n=()=>{A&&t!==A.state.doc.toString()&&A.dispatch({changes:{from:0,to:A.state.doc.toString().length,insert:t||""},annotations:[Ru.of(!0)]})};_.current&&!_.current.isDone?P.current=n:n()}}},[t,A]),{state:E,setState:C,view:A,setView:T,container:S,setContainer:w}}var Lu=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Fu=(0,ee.forwardRef)((e,t)=>{var{className:n,value:r="",selection:i,extensions:o=[],onChange:s,onStatistics:a,onCreateEditor:l,onUpdate:c,autoFocus:u,theme:h="light",height:d,minHeight:p,maxHeight:f,width:m,minWidth:g,maxWidth:O,basicSetup:b,placeholder:v,indentWithTab:y,editable:x,readOnly:k,root:S,initialState:w}=e,A=It(e,Lu),T=(0,ee.useRef)(null),{state:E,view:C,container:_,setContainer:P}=Iu({root:S,value:r,autoFocus:u,theme:h,height:d,minHeight:p,maxHeight:f,width:m,minWidth:g,maxWidth:O,basicSetup:b,placeholder:v,indentWithTab:y,editable:x,readOnly:k,selection:i,onChange:s,onStatistics:a,onCreateEditor:l,onUpdate:c,extensions:o,initialState:w});(0,ee.useImperativeHandle)(t,()=>({editor:T.current,state:E,view:C}),[T,_,E,C]);var D=(0,ee.useCallback)(e=>{T.current=e,P(e)},[P]);if("string"!==typeof r)throw new Error("value must be typeof string but got "+typeof r);var M="string"===typeof h?"cm-theme-"+h:"cm-theme";return(0,Lt.jsx)("div",Qt({ref:D,className:M+(n?" "+n:"")},A))});Fu.displayName="CodeMirror";const $u=Fu,Bu=function(e){if(null===e||void 0===e)return qu;if("function"===typeof e)return zu(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Bu(e[n]);return zu(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++e<t.length;)if(t[e].apply(this,r))return!0;return!1}}(e):function(e){const t=e;return zu(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"===typeof e)return function(e){return zu(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function zu(e){return function(t,n,r){return Boolean(Hu(t)&&e.call(this,t,"number"===typeof n?n:void 0,r||void 0))}}function qu(){return!0}function Hu(e){return null!==e&&"object"===typeof e&&"type"in e}const Uu=[],Xu=!0,ju=!1,Zu="skip";function Yu(e,t,n,r){let i;"function"===typeof t&&"function"!==typeof n?(r=n,n=t):i=t;const o=Bu(i),s=r?-1:1;!function e(i,a,l){const c=i&&"object"===typeof i?i:{};if("string"===typeof c.type){const e="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,h,d=Uu;if((!t||o(i,a,l[l.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[Xu,e];return null===e||void 0===e?Uu:[e]}(n(i,l)),d[0]===ju))return d;if("children"in i&&i.children){const t=i;if(t.children&&d[0]!==Zu)for(u=(r?t.children.length:-1)+s,h=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,h)(),c[0]===ju)return c;u="number"===typeof c[1]?c[1]:u+s}}return d}}(e,void 0,[])()}function Vu(e,t,n,r){let i,o,s;"function"===typeof t&&"function"!==typeof n?(o=void 0,s=t,i=n):(o=t,s=n,i=r),Yu(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},i)}function Gu(e){return"children"in e?Ku(e):"value"in e?e.value:""}function Wu(e){return"text"===e.type?e.value:"children"in e?Ku(e):""}function Ku(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=Wu(e.children[t]);return n.join("")}const Ju={}.hasOwnProperty;function eh(e,t,n){const r=Bu(n||t),i=t&&"object"===typeof t&&"cascade"in t?t.cascade:void 0,o=void 0===i||null===i||i;return function e(t,n,i){const s=[];if(!r(t,n,i))return;if(function(e){return"children"in e&&void 0!==e.children}(t)){let n=-1;for(;++n<t.children.length;){const r=e(t.children[n],n,t);r&&s.push(r)}if(o&&t.children.length>0&&0===s.length)return}const a={};let l;for(l in t)Ju.call(t,l)&&(a[l]="children"===l?s:t[l]);return a}(e)}var th=n(7799),nh=n(5898),rh=n(9885);function ih(){ih=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),oh(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}return t},Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oh(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)}))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)})}return e[Symbol.replace].call(this,n,i)},ih.apply(this,arguments)}function oh(e,t){return oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oh(e,t)}function sh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ah(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return sh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var lh=function(e){return function(t){return void 0===t&&(t={}),function(e,t){if(t&&!e.registered(t))throw new Error('The default language "'+t+'" is not registered with refractor.')}(e,t.defaultLanguage),function(e){Vu(e,"element",n)};function n(n,r,i){var o,s;if(i&&"pre"===i.tagName&&"code"===n.tagName){var a=(null==n||null==(o=n.data)?void 0:o.meta)||(null==n||null==(s=n.properties)?void 0:s.metastring)||"";n.properties.className?"boolean"==typeof n.properties.className?n.properties.className=[]:Array.isArray(n.properties.className)||(n.properties.className=[n.properties.className]):n.properties.className=[];var l,c,u=function(e){for(var t,n=ah(e.properties.className);!(t=n()).done;){var r=t.value;if("language-"===r.slice(0,9))return r.slice(9).toLowerCase()}return null}(n);if(!u&&t.defaultLanguage&&n.properties.className.push("language-"+(u=t.defaultLanguage)),n.properties.className.push("code-highlight"),u)try{var h,d;d=null!=(h=u)&&h.includes("diff-")?u.split("-")[1]:u,l=e.highlight(Gu(n),d),i.properties.className=(i.properties.className||[]).concat("language-"+d)}catch(y){if(!t.ignoreMissing||!/Unknown language/.test(y.message))throw y;l=n}else l=n;l.children=(c=1,function e(t){return t.reduce(function(t,n){if("text"===n.type){var r=n.value,i=(r.match(/\n/g)||"").length;if(0===i)n.position={start:{line:c,column:1},end:{line:c,column:1}},t.push(n);else for(var o,s=r.split("\n"),a=ah(s.entries());!(o=a()).done;){var l=o.value,u=l[0],h=l[1];t.push({type:"text",value:u===s.length-1?h:h+"\n",position:{start:{line:c+u,column:1},end:{line:c+u,column:1}}})}return c+=i,t}if(Object.prototype.hasOwnProperty.call(n,"children")){var d=c;return n.children=e(n.children),t.push(n),n.position={start:{line:d,column:1},end:{line:c,column:1}},t}return t.push(n),t},[])})(l.children),l.position=l.children.length>0?{start:{line:l.children[0].position.start.line,column:0},end:{line:l.children[l.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var p,f=function(e){var t=/{([\d,-]+)}/,n=e.split(",").map(function(e){return e.trim()}).join();if(t.test(n)){var r=t.exec(n)[1],i=th(r);return function(e){return i.includes(e+1)}}return function(){return!1}}(a),m=function(e){var t=ih(/showLineNumbers=(\d+)/i,{lines:1});if(t.test(e)){var n=t.exec(e);return Number(n.groups.lines)}return 1}(a),g=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]={type:"element",tagName:"span",properties:{className:[]},children:[]};return t}(l.position.end.line),O=["showlinenumbers=false",'showlinenumbers="false"',"showlinenumbers={false}"],b=function(){var e,n,r=p.value,i=r[0],o=r[1];o.properties.className=["code-line"];var s=eh(l,function(e){return e.position.start.line<=i+1&&e.position.end.line>=i+1});o.children=s.children,!a.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||O.some(function(e){return a.toLowerCase().includes(e)})||(o.properties.line=[(i+m).toString()],o.properties.className.push("line-number")),f(i)&&o.properties.className.push("highlight-line"),("diff"===u||null!=(e=u)&&e.includes("diff-"))&&"-"===Gu(o).substring(0,1)?o.properties.className.push("deleted"):("diff"===u||null!=(n=u)&&n.includes("diff-"))&&"+"===Gu(o).substring(0,1)&&o.properties.className.push("inserted")},v=ah(g.entries());!(p=v()).done;)b();g.length>0&&""===Gu(g[g.length-1]).trim()&&g.pop(),n.children=g}}}},ch=(lh(nh.L),lh(rh.L));class uh{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function hh(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new uh(n,r,t)}function dh(e){return e.toLowerCase()}uh.prototype.normal={},uh.prototype.property={},uh.prototype.space=void 0;class ph{constructor(e,t){this.attribute=t,this.property=e}}ph.prototype.attribute="",ph.prototype.booleanish=!1,ph.prototype.boolean=!1,ph.prototype.commaOrSpaceSeparated=!1,ph.prototype.commaSeparated=!1,ph.prototype.defined=!1,ph.prototype.mustUseProperty=!1,ph.prototype.number=!1,ph.prototype.overloadedBoolean=!1,ph.prototype.property="",ph.prototype.spaceSeparated=!1,ph.prototype.space=void 0;let fh=0;const mh=kh(),gh=kh(),Oh=kh(),bh=kh(),vh=kh(),yh=kh(),xh=kh();function kh(){return 2**++fh}const Sh=Object.keys(r);class wh extends ph{constructor(e,t,n,i){let o=-1;if(super(e,t),Ah(this,"space",i),"number"===typeof n)for(;++o<Sh.length;){const e=Sh[o];Ah(this,Sh[o],(n&r[e])===r[e])}}}function Ah(e,t,n){n&&(e[t]=n)}function Th(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new wh(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[dh(r)]=r,n[dh(o.attribute)]=r}return new uh(t,n,e.space)}wh.prototype.defined=!0;const Eh=Th({properties:{ariaActiveDescendant:null,ariaAtomic:gh,ariaAutoComplete:null,ariaBusy:gh,ariaChecked:gh,ariaColCount:bh,ariaColIndex:bh,ariaColSpan:bh,ariaControls:vh,ariaCurrent:null,ariaDescribedBy:vh,ariaDetails:null,ariaDisabled:gh,ariaDropEffect:vh,ariaErrorMessage:null,ariaExpanded:gh,ariaFlowTo:vh,ariaGrabbed:gh,ariaHasPopup:null,ariaHidden:gh,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vh,ariaLevel:bh,ariaLive:null,ariaModal:gh,ariaMultiLine:gh,ariaMultiSelectable:gh,ariaOrientation:null,ariaOwns:vh,ariaPlaceholder:null,ariaPosInSet:bh,ariaPressed:gh,ariaReadOnly:gh,ariaRelevant:null,ariaRequired:gh,ariaRoleDescription:vh,ariaRowCount:bh,ariaRowIndex:bh,ariaRowSpan:bh,ariaSelected:gh,ariaSetSize:bh,ariaSort:null,ariaValueMax:bh,ariaValueMin:bh,ariaValueNow:bh,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Ch(e,t){return t in e?e[t]:t}function _h(e,t){return Ch(e,t.toLowerCase())}const Ph=Th({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yh,acceptCharset:vh,accessKey:vh,action:null,allow:null,allowFullScreen:mh,allowPaymentRequest:mh,allowUserMedia:mh,alt:null,as:null,async:mh,autoCapitalize:null,autoComplete:vh,autoFocus:mh,autoPlay:mh,blocking:vh,capture:null,charSet:null,checked:mh,cite:null,className:vh,cols:bh,colSpan:null,content:null,contentEditable:gh,controls:mh,controlsList:vh,coords:bh|yh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:mh,defer:mh,dir:null,dirName:null,disabled:mh,download:Oh,draggable:gh,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:mh,formTarget:null,headers:vh,height:bh,hidden:Oh,high:bh,href:null,hrefLang:null,htmlFor:vh,httpEquiv:vh,id:null,imageSizes:null,imageSrcSet:null,inert:mh,inputMode:null,integrity:null,is:null,isMap:mh,itemId:null,itemProp:vh,itemRef:vh,itemScope:mh,itemType:vh,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:mh,low:bh,manifest:null,max:null,maxLength:bh,media:null,method:null,min:null,minLength:bh,multiple:mh,muted:mh,name:null,nonce:null,noModule:mh,noValidate:mh,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:mh,optimum:bh,pattern:null,ping:vh,placeholder:null,playsInline:mh,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:mh,referrerPolicy:null,rel:vh,required:mh,reversed:mh,rows:bh,rowSpan:bh,sandbox:vh,scope:null,scoped:mh,seamless:mh,selected:mh,shadowRootClonable:mh,shadowRootDelegatesFocus:mh,shadowRootMode:null,shape:null,size:bh,sizes:null,slot:null,span:bh,spellCheck:gh,src:null,srcDoc:null,srcLang:null,srcSet:null,start:bh,step:null,style:null,tabIndex:bh,target:null,title:null,translate:null,type:null,typeMustMatch:mh,useMap:null,value:gh,width:bh,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vh,axis:null,background:null,bgColor:null,border:bh,borderColor:null,bottomMargin:bh,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:mh,declare:mh,event:null,face:null,frame:null,frameBorder:null,hSpace:bh,leftMargin:bh,link:null,longDesc:null,lowSrc:null,marginHeight:bh,marginWidth:bh,noResize:mh,noHref:mh,noShade:mh,noWrap:mh,object:null,profile:null,prompt:null,rev:null,rightMargin:bh,rules:null,scheme:null,scrolling:gh,standby:null,summary:null,text:null,topMargin:bh,valueType:null,version:null,vAlign:null,vLink:null,vSpace:bh,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:mh,disableRemotePlayback:mh,prefix:null,property:null,results:bh,security:null,unselectable:null},space:"html",transform:_h}),Dh=Th({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:xh,accentHeight:bh,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:bh,amplitude:bh,arabicForm:null,ascent:bh,attributeName:null,attributeType:null,azimuth:bh,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:bh,by:null,calcMode:null,capHeight:bh,className:vh,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:bh,diffuseConstant:bh,direction:null,display:null,dur:null,divisor:bh,dominantBaseline:null,download:mh,dx:null,dy:null,edgeMode:null,editable:null,elevation:bh,enableBackground:null,end:null,event:null,exponent:bh,externalResourcesRequired:null,fill:null,fillOpacity:bh,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:yh,g2:yh,glyphName:yh,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:bh,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:bh,horizOriginX:bh,horizOriginY:bh,id:null,ideographic:bh,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:bh,k:bh,k1:bh,k2:bh,k3:bh,k4:bh,kernelMatrix:xh,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:bh,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:bh,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:bh,overlineThickness:bh,paintOrder:null,panose1:null,path:null,pathLength:bh,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vh,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:bh,pointsAtY:bh,pointsAtZ:bh,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xh,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xh,rev:xh,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xh,requiredFeatures:xh,requiredFonts:xh,requiredFormats:xh,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:bh,specularExponent:bh,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:bh,strikethroughThickness:bh,string:null,stroke:null,strokeDashArray:xh,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:bh,strokeOpacity:bh,strokeWidth:null,style:null,surfaceScale:bh,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xh,tabIndex:bh,tableValues:null,target:null,targetX:bh,targetY:bh,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xh,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:bh,underlineThickness:bh,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:bh,values:null,vAlphabetic:bh,vMathematical:bh,vectorEffect:null,vHanging:bh,vIdeographic:bh,version:null,vertAdvY:bh,vertOriginX:bh,vertOriginY:bh,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:bh,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ch}),Mh=Th({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Nh=Th({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_h}),Rh=Th({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Qh=hh([Eh,Ph,Mh,Nh,Rh],"html"),Ih=hh([Eh,Dh,Mh,Nh,Rh],"svg");var Lh={},Fh={};function $h(e,t){for(var n=t,r=0;r<e.length;r++){var i=r===e.length-1,o=e.charAt(r),s=n[o]||(n[o]={chars:{}});i&&(s.self=e),n=s.chars}}function Bh(e){if(0===e.length)return Lh;for(var t={},n=0,r=e;n<r.length;n++){$h(r[n],t)}return t}function zh(e){if(0===e.length)return Fh;for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}var qh={},Hh={type:"String",optional:!0};function Uh(e){var t={type:"NoArgument",optional:!1};function n(e){if(t.type&&t.type!==e&&"NoArgument"!==t.type)throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(e,'".'));t.type=e}for(var r=0,i=e;r<i.length;r++){var o=i[r];"NoArgument"===o&&(t.optional=!0),"Formula"===o&&n("Formula"),"FormulaOfSelector"===o&&(n("Formula"),t.ofSelector=!0),"String"===o&&n("String"),"Selector"===o&&n("Selector")}return t}function Xh(e){for(var t=function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],o=e[i];if(o)for(var s=0,a=o;s<a.length;s++){var l=a[s];(t[l]||(t[l]=[])).push(i)}}return t}(e),n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r],s=t[o];s&&(n[o]=Uh(s))}return n}var jh=function(){return jh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},jh.apply(this,arguments)},Zh={},Yh={wildcard:!0};function Vh(e,t){return function(n,r){return!0===r?e:t(!0===n?e:n,r)}}function Gh(e){return function(t,n){if(!n||!t)return n;if("object"!==typeof n||null===n)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=jh({},t),i=0,o=Object.entries(n);i<o.length;i++){var s=o[i],a=s[0],l=s[1];if("latest"!==a){var c=e[a];r[a]=c(t[a],l)}}return r}}function Wh(e,t){return void 0!==t?t:e}function Kh(e,t){return t?e?e.concat(t):t:e}function Jh(e,t){if(!t)return e;if(!e)return t;for(var n=jh({},e),r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],s=o[0],a=o[1];if(a){var l=e[s];n[s]=l?l.concat(a):a}else delete n[s]}return n}var ed=function(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}(Gh({baseSyntax:Wh,modules:Kh,tag:Vh(Yh,Gh({wildcard:Wh})),ids:Wh,classNames:Wh,namespace:Vh(Yh,Gh({wildcard:Wh})),combinators:Kh,attributes:Gh({operators:Kh,caseSensitivityModifiers:Kh,unknownCaseSensitivityModifiers:Wh}),pseudoClasses:Gh({unknown:Wh,definitions:Jh}),pseudoElements:Gh({unknown:Wh,notation:Wh,definitions:function(e,t){return function(n,r){return t(e(n),e(r))}}(function(e){return Array.isArray(e)?{NoArgument:e}:e},Jh)})})),td={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},nd=ed(td,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),rd=ed(nd,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),id=ed(rd,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),od={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},sd=jh(jh({},id),{modules:Object.entries(od).filter(function(e){return e[1].latest}).map(function(e){return e[0]})}),ad={css1:td,css2:nd,css3:rd,"selectors-3":rd,"selectors-4":id,latest:sd,progressive:ed(sd,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};var ld=function(){for(var e={pseudoClasses:{},pseudoElements:{}},t=0,n=["css1","css2","css3","selectors-3","selectors-4"];t<n.length;t++){var r=n[t],i=ad[r];if(i.pseudoClasses&&"object"===typeof i.pseudoClasses)if(y=i.pseudoClasses.definitions)for(var o=0,s=Object.entries(y);o<s.length;o++)for(var a=0,l=s[o][1];a<l.length;a++){var c=l[a];e.pseudoClasses[c]||(e.pseudoClasses[c]=[]),e.pseudoClasses[c].includes(r)||e.pseudoClasses[c].push(r)}if(i.pseudoElements&&"object"===typeof i.pseudoElements)if(y=i.pseudoElements.definitions)if(Array.isArray(y))for(var u=0,h=y;u<h.length;u++){var d=h[u];e.pseudoElements[d]||(e.pseudoElements[d]=[]),e.pseudoElements[d].includes(r)||e.pseudoElements[d].push(r)}else for(var p=0,f=Object.values(y);p<f.length;p++)for(var m=0,g=f[p];m<g.length;m++){var O=g[m];e.pseudoElements[O]||(e.pseudoElements[O]=[]),e.pseudoElements[O].includes(r)||e.pseudoElements[O].push(r)}}for(var b=0,v=Object.entries(od);b<v.length;b++){var y,x=v[b],k=x[0],S=x[1];if(S.pseudoClasses&&"object"===typeof S.pseudoClasses)if(y=S.pseudoClasses.definitions)for(var w=0,A=Object.values(y);w<A.length;w++)for(var T=0,E=A[w];T<E.length;T++){var C=E[T];e.pseudoClasses[C]||(e.pseudoClasses[C]=[]),e.pseudoClasses[C].includes(k)||e.pseudoClasses[C].push(k)}if(S.pseudoElements&&"object"===typeof S.pseudoElements)if(y=S.pseudoElements.definitions)if(Array.isArray(y))for(var _=0,P=y;_<P.length;_++){var D=P[_];e.pseudoElements[D]||(e.pseudoElements[D]=[]),e.pseudoElements[D].includes(k)||e.pseudoElements[D].push(k)}else for(var M=0,N=Object.values(y);M<N.length;M++)for(var R=0,Q=N[M];R<Q.length;R++){var I=Q[R];e.pseudoElements[I]||(e.pseudoElements[I]=[]),e.pseudoElements[I].includes(k)||e.pseudoElements[I].push(k)}}return e}();function cd(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>="\xa0"}function ud(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>="\xa0"}function hd(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var dd={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},pd={'"':!0,"'":!0},fd={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0};var md="css-selector-parser parse error: ";var gd=function(){return gd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},gd.apply(this,arguments)};function Od(e){return function(t,n){var r;return(r={})[t]=function(t){return gd({type:e},t)},r[n]=function(t){return"object"===typeof t&&null!==t&&t.type===e},r}}gd(gd(gd(gd(gd(gd(gd(gd(gd(gd(gd(gd(gd(gd(gd(gd({},Od("Selector")("selector","isSelector")),Od("Rule")("rule","isRule")),Od("TagName")("tagName","isTagName")),Od("Id")("id","isId")),Od("ClassName")("className","isClassName")),Od("WildcardTag")("wildcardTag","isWildcardTag")),Od("NamespaceName")("namespaceName","isNamespaceName")),Od("WildcardNamespace")("wildcardNamespace","isWildcardNamespace")),Od("NoNamespace")("noNamespace","isNoNamespace")),Od("Attribute")("attribute","isAttribute")),Od("PseudoClass")("pseudoClass","isPseudoClass")),Od("PseudoElement")("pseudoElement","isPseudoElement")),Od("String")("string","isString")),Od("Formula")("formula","isFormula")),Od("FormulaOfSelector")("formulaOfSelector","isFormulaOfSelector")),Od("Substitution")("substitution","isSubstitution"));const bd=function(e){void 0===e&&(e={});var t=e.syntax,n=void 0===t?"latest":t,r=e.substitutes,i=e.strict,o=void 0===i||i,s=e.modules,a="object"===typeof n?n:ad[n];if(a.baseSyntax&&(a=ed(ad[a.baseSyntax],a)),a.modules&&a.modules.length>0)for(var l=0,c=a.modules;l<c.length;l++){var u=c[l];(p=od[u])&&(a=ed(p,a))}if(s&&s.length>0)for(var h=0,d=s;h<d.length;h++){var p,f=d[h];(p=od[f])&&(a=ed(p,a))}var m,g=a.tag?[!0,Boolean((m=a.tag,m?"boolean"===typeof m?Yh:m:Zh).wildcard)]:[!1,!1],O=g[0],b=g[1],v=Boolean(a.ids),y=Boolean(a.classNames),x=Boolean(a.namespace),k=a.namespace&&(!0===a.namespace||!0===a.namespace.wildcard);if(x&&!O)throw new Error("".concat(md,"Namespaces cannot be enabled while tags are disabled."));var S=Boolean(r),w=a.combinators?Bh(a.combinators):Lh,A=a.attributes?[!0,a.attributes.operators?Bh(a.attributes.operators):Lh,a.attributes.caseSensitivityModifiers?zh(a.attributes.caseSensitivityModifiers):Fh,"accept"===a.attributes.unknownCaseSensitivityModifiers]:[!1,Lh,Fh,!1],T=A[0],E=A[1],C=A[2],_=A[3],P=_||Object.keys(C).length>0,D=a.pseudoClasses?[!0,a.pseudoClasses.definitions?Xh(a.pseudoClasses.definitions):qh,"accept"===a.pseudoClasses.unknown]:[!1,qh,!1],M=D[0],N=D[1],R=D[2],Q=a.pseudoElements?[!0,"singleColon"===a.pseudoElements.notation||"both"===a.pseudoElements.notation,!a.pseudoElements.notation||"doubleColon"===a.pseudoElements.notation||"both"===a.pseudoElements.notation,a.pseudoElements.definitions?Xh(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):qh,"accept"===a.pseudoElements.unknown]:[!1,!1,!1,qh,!1],I=Q[0],L=Q[1],F=Q[2],$=Q[3],B=Q[4],z="",q=z.length,H=0,U="",X=function(e){return U===e},j=function(){return X("*")||cd(U)},Z=function(e){H=e,U=z.charAt(H)},Y=function(){H++,U=z.charAt(H)},V=function(){var e=U;return H++,U=z.charAt(H),e};function G(e){var t=Math.min(q-1,H),n=new Error("".concat(md).concat(e," Pos: ").concat(t,"."));throw n.position=t,n.name="ParserError",n}function W(e,t){if(!e)return G(t)}var K=function(){W(H<q,"Unexpected end of input.")},J=function(){return H>=q},ee=function(e){W(H<q,'Expected "'.concat(e,'" but end of input reached.')),W(U===e,'Expected "'.concat(e,'" but "').concat(U,'" found.')),H++,U=z.charAt(H)};function te(e){var t=ne(e,H);if(t)return H+=t.length,U=z.charAt(H),t}function ne(e,t){var n=e[z.charAt(t)];if(n){var r=ne(n.chars,t+1);if(r)return r;if(n.self)return n.self}}function re(){for(var e=V(),t=1;hd(U)&&t<6;)e+=V(),t++;return function(){if(" "===U||"\t"===U||"\f"===U||"\n"===U)return void Y();"\r"===U&&Y();"\n"===U&&Y()}(),String.fromCharCode(parseInt(e,16))}function ie(e){var t="";for(ee(e);H<q;){if(X(e))return Y(),t;X("\\")?(Y(),X(e)?(t+=e,Y()):"\n"===U||"\f"===U?Y():"\r"===U?(Y(),X("\n")&&Y()):hd(U)?t+=re():(t+=U,Y())):(t+=U,Y())}return t}function oe(){if(!cd(U))return null;for(var e="";X("-");)e+=U,Y();for("-"!==e||ud(U)||X("\\")||G("Identifiers cannot consist of a single hyphen."),o&&e.length>=2&&G("Identifiers cannot start with two hyphens with strict mode on."),fd[U]&&G("Identifiers cannot start with hyphens followed by digits.");H<q;)if(ud(U))e+=V();else{if(!X("\\"))break;Y(),K(),hd(U)?e+=re():e+=V()}return e}function se(){for(var e="";H<q&&!X(")");)if(X("\\")){if(Y(),J()&&!o)return(e+"\\").trim();K(),hd(U)?e+=re():e+=V()}else e+=V();return e.trim()}function ae(){for(;dd[U];)Y()}function le(e){void 0===e&&(e=!1),ae();for(var t=[me(e)];X(",");)Y(),ae(),t.push(me(e));return{type:"Selector",rules:t}}function ce(){var e;if(ee("["),ae(),X("|")){W(x,"Namespaces are not enabled."),Y();var t=oe();W(t,"Expected attribute name."),e={type:"Attribute",name:t,namespace:{type:"NoNamespace"}}}else if(X("*")){W(x,"Namespaces are not enabled."),W(k,"Wildcard namespace is not enabled."),Y(),ee("|");var n=oe();W(n,"Expected attribute name."),e={type:"Attribute",name:n,namespace:{type:"WildcardNamespace"}}}else{var r=oe();if(W(r,"Expected attribute name."),e={type:"Attribute",name:r},X("|")){var i=H;if(Y(),cd(U)){W(x,"Namespaces are not enabled.");var s=oe();W(s,"Expected attribute name."),e={type:"Attribute",name:s,namespace:{type:"NamespaceName",name:r}}}else Z(i)}}if(W(e.name,"Expected attribute name."),ae(),J()&&!o)return e;if(X("]"))Y();else{if(e.operator=te(E),W(e.operator,"Expected a valid attribute selector operator."),ae(),K(),pd[U])e.value={type:"String",value:ie(U)};else if(S&&X("$")){Y();var a=oe();W(a,"Expected substitute name."),e.value={type:"Substitution",name:a}}else{var l=oe();W(l,"Expected attribute value."),e.value={type:"String",value:l}}if(ae(),J()&&!o)return e;if(!X("]")){var c=oe();if(W(c,"Expected end of attribute selector."),e.caseSensitivityModifier=c,W(P,"Attribute case sensitivity modifiers are not enabled."),W(_||C[e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),ae(),J()&&!o)return e}ee("]")}return e}function ue(){for(var e="";fd[U];)e+=V();return W(""!==e,"Formula parse error."),parseInt(e)}var he=function(){return X("-")||X("+")||fd[U]};function de(e,t,n){var r;if(X("(")){if(Y(),ae(),S&&X("$")){Y();var i=oe();W(i,"Expected substitute name."),r={type:"Substitution",name:i}}else if("String"===n.type)W((r={type:"String",value:se()}).value,"Expected ".concat(t," argument value."));else if("Selector"===n.type)r=le(!0);else{if("Formula"!==n.type)return G("Invalid ".concat(t," signature."));var s=function(){if(X("e")||X("o")){var e=oe();if("even"===e)return ae(),[2,0];if("odd"===e)return ae(),[2,1]}var t,n=null,r=1;if(X("-")&&(Y(),r=-1),he()&&(X("+")&&Y(),n=ue(),!X("\\")&&!X("n")))return[0,n*r];if(null===n&&(n=1),n*=r,X("\\")?(Y(),t=hd(U)?re():V()):t=V(),W("n"===t,'Formula parse error: expected "n".'),ae(),X("+")||X("-")){var i=X("+")?1:-1;return Y(),ae(),[n,i*ue()]}return[n,0]}(),a=s[0],l=s[1];r={type:"Formula",a:a,b:l},n.ofSelector&&(ae(),(X("o")||X("\\"))&&(W("of"===oe(),"Formula of selector parse error."),ae(),r={type:"FormulaOfSelector",a:a,b:l,selector:me()}))}if(ae(),J()&&!o)return r;ee(")")}else W(n.optional,"Argument is required for ".concat(t,' "').concat(e,'".'));return r}function pe(){if(X("*"))return W(b,"Wildcard tag name is not enabled."),Y(),{type:"WildcardTag"};if(cd(U)){W(O,"Tag names are not enabled.");var e=oe();return W(e,"Expected tag name."),{type:"TagName",name:e}}return G("Expected tag name.")}function fe(){if(X("*")){var e=H;return Y(),X("|")?(Y(),j()?(W(x,"Namespaces are not enabled."),W(k,"Wildcard namespace is not enabled."),(n=pe()).namespace={type:"WildcardNamespace"},n):(Z(e),pe())):(Z(e),pe())}if(X("|"))return W(x,"Namespaces are not enabled."),Y(),(n=pe()).namespace={type:"NoNamespace"},n;if(cd(U)){var t=oe();if(W(t,"Expected tag name."),!X("|"))return W(O,"Tag names are not enabled."),{type:"TagName",name:t};var n;e=H;return Y(),j()?(W(x,"Namespaces are not enabled."),(n=pe()).namespace={type:"NamespaceName",name:t},n):(Z(e),{type:"TagName",name:t})}return G("Expected tag name.")}function me(e){var t,n;void 0===e&&(e=!1);var r={type:"Rule",items:[]};e&&((m=te(w))&&(r.combinator=m,ae()));for(;H<q;)if(j())W(0===r.items.length,"Unexpected tag/namespace start."),r.items.push(fe());else if(X("|")){var i=H;if(Y(),!j()){Z(i);break}W(0===r.items.length,"Unexpected tag/namespace start."),Z(i),r.items.push(fe())}else if(X(".")){W(y,"Class names are not enabled."),Y();var o=oe();W(o,"Expected class name."),r.items.push({type:"ClassName",name:o})}else if(X("#")){W(v,"IDs are not enabled."),Y();var s=oe();W(s,"Expected ID name."),r.items.push({type:"Id",name:s})}else if(X("["))W(T,"Attributes are not enabled."),r.items.push(ce());else{if(!X(":"))break;var a=!1;Y(),X(":")&&(W(I,"Pseudo elements are not enabled."),W(F,"Pseudo elements double colon notation is not enabled."),a=!0,Y());var l=oe();if(W(a||l,"Expected pseudo-class name."),W(!a||l,"Expected pseudo-element name."),W(l,"Expected pseudo-class name."),!a||B||Object.prototype.hasOwnProperty.call($,l));else{var c=ld.pseudoElements[l],u='Unknown pseudo-element "'.concat(l,'"');c&&c.length>0&&(u+=". It is defined in: ".concat(c.join(", "))),G(u+".")}if(I&&(a||!a&&L&&Object.prototype.hasOwnProperty.call($,l))){var h={type:"PseudoElement",name:l};(p=de(l,"pseudo-element",d=null!==(t=$[l])&&void 0!==t?t:B&&Hh))&&(W("Formula"!==p.type&&"FormulaOfSelector"!==p.type,"Pseudo-elements cannot have formula argument."),h.argument=p),r.items.push(h)}else{var d;if(W(M,"Pseudo-classes are not enabled."),d=null!==(n=N[l])&&void 0!==n?n:R&&Hh);else{c=ld.pseudoClasses[l],u='Unknown pseudo-class: "'.concat(l,'"');c&&c.length>0&&(u+=". It is defined in: ".concat(c.join(", "))),G(u+".")}var p,f={type:"PseudoClass",name:l};(p=de(l,"pseudo-class",d))&&(f.argument=p),r.items.push(f)}}if(0===r.items.length)return J()?G("Expected rule but end of input reached."):G('Expected rule but "'.concat(U,'" found.'));if(ae(),!J()&&!X(",")&&!X(")")){var m=te(w);ae(),r.nestedRule=me(),r.nestedRule.combinator=m}return r}return function(e){if("string"!==typeof e)throw new Error("".concat(md,"Expected string input."));return q=(z=e).length,H=0,U=z.charAt(0),le()}}({syntax:"selectors-4"});function vd(e){if("string"!==typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return bd(e)}const yd="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",xd="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",kd=new RegExp("^[^"+xd+"]*["+yd+"]"),Sd=new RegExp("^[^"+yd+"]*["+xd+"]");function wd(e){const t=function(e){const t=String(e||"");return kd.test(t)?"rtl":Sd.test(t)?"ltr":"neutral"}(e);return"neutral"===t?void 0:t}function Ad(e){const t="element"===e.type&&"string"===typeof e.properties.dir?e.properties.dir.toLowerCase():void 0;return"auto"===t||"ltr"===t||"rtl"===t?t:void 0}var Td=n(8461);function Ed(){}function Cd(){}const _d=/[A-Z]/g,Pd=/-[a-z]/g,Dd=/^data[-\w.:]+$/i;function Md(e,t){const n=dh(t);let r=t,i=ph;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Dd.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Pd,Rd);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Pd.test(e)){let n=e.replace(_d,Nd);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=wh}return new i(r,t)}function Nd(e){return"-"+e.toLowerCase()}function Rd(e){return e.charAt(1).toUpperCase()}var Qd=n(4818);function Id(e,t,n){const r=Md(n,e.name);let i=function(e,t){if(null===e||void 0===e);else if("boolean"===typeof e){if(e)return t.attribute}else{if(!Array.isArray(e))return String(e);if(e.length>0)return(t.commaSeparated?Td.A:Qd.A)(e)}}(t.properties[r.property],r);if(!e.value)return void 0!==i;e.value.type;let o=e.value.value;if("i"===e.caseSensitivityModifier&&(o=o.toLowerCase(),i&&(i=i.toLowerCase())),void 0!==i)switch(e.operator){case"=":return o===i;case"$=":return o===i.slice(-o.length);case"*=":return i.includes(o);case"^=":return o===i.slice(0,o.length);case"|=":return o===i||o===i.slice(0,o.length)&&"-"===i.charAt(o.length);case"~=":return o===i||Qd.q(i).includes(o)}return!1}const Ld=[];function Fd(e,t){return(t.properties.className||Ld).includes(e.name)}function $d(e,t){return t.properties.id===e.name}function Bd(e,t){return e.name===t.tagName}function zd(e,t){return function(n,r){let i=Hd(n,"tag");const o=Hd(null===r||void 0===r?"*":r,"range"),s=[];let a=-1;for(;++a<o.length;){const n=o[a].toLowerCase();if(!t&&"*"===n)continue;let r=-1;const l=[];for(;++r<i.length;)if(e(i[r].toLowerCase(),n)){if(!t)return i[r];s.push(i[r])}else l.push(i[r]);i=l}return t?s:void 0}}zd(function(e,t){return"*"===t||e===t||e.includes(t+"-")},!0);const qd=zd(function(e,t){const n=e.split("-"),r=t.split("-");let i=0,o=0;if("*"!==r[o]&&n[i]!==r[o])return!1;for(i++,o++;o<r.length;)if("*"!==r[o]){if(!n[i])return!1;if(n[i]!==r[o]){if(1===n[i].length)return!1;i++}else i++,o++}else o++;return!0},!0);zd(function(e,t){let n=t;for(;;){if("*"===n||e===n)return!0;let t=n.lastIndexOf("-");if(t<0)return!1;"-"===n.charAt(t-2)&&(t-=2),n=n.slice(0,t)}},!1);function Hd(e,t){const n=e&&"string"===typeof e?[e]:e;if(!n||"object"!==typeof n||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const Ud={}.hasOwnProperty;function Xd(e,t){const n="element"===e.type&&Ud.call(e.properties,t)&&e.properties[t];return null!==n&&void 0!==n&&!1!==n}const jd=/[ \t\n\f\r]/g;function Zd(e){return"object"===typeof e?"text"===e.type&&Yd(e.value):Yd(e)}function Yd(e){return""===e.replace(jd,"")}const Vd=new Set([9,10,12,13,32]),Gd="0".charCodeAt(0),Wd="9".charCodeAt(0);var Kd=n(4603);function Jd(e){return function(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return Kd.falseFunc;if(-1===t)return e=>e<=n;if(0===t)return e=>e===n;if(1===t)return n<0?Kd.trueFunc:e=>e>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?e=>e>=n&&e%r===i:e=>e<=n&&e%r===i}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,n=0,r=o(),i=s();if(t<e.length&&"n"===e.charAt(t)&&(t++,n=r*(null!==i&&void 0!==i?i:1),a(),t<e.length?(r=o(),a(),i=s()):r=i=0),null===i||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*i];function o(){return"-"===e.charAt(t)?(t++,-1):("+"===e.charAt(t)&&t++,1)}function s(){const n=t;let r=0;for(;t<e.length&&e.charCodeAt(t)>=Gd&&e.charCodeAt(t)<=Wd;)r=10*r+(e.charCodeAt(t)-Gd),t++;return t===n?null:r}function a(){for(;t<e.length&&Vd.has(e.charCodeAt(t));)t++}}(e))}const ep={}.hasOwnProperty;function tp(e,t){const n=t||{};function r(t){let n=r.invalid;const i=r.handlers;if(t&&ep.call(t,e)){const o=String(t[e]);n=ep.call(i,o)?i[o]:r.unknown}if(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return n.call(this,t,...s)}}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const np=Jd.default||Jd,rp=tp("name",{handlers:{"any-link":function(e,t){return("a"===t.tagName||"area"===t.tagName||"link"===t.tagName)&&Xd(t,"href")},blank:function(e,t){return!up(t,function(e){return"element"===e.type||"text"===e.type&&!Zd(e)})},checked:function(e,t){if("input"===t.tagName||"menuitem"===t.tagName)return Boolean(("checkbox"===t.properties.type||"radio"===t.properties.type)&&Xd(t,"checked"));if("option"===t.tagName)return Xd(t,"selected");return!1},dir:function(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value},disabled:op,empty:function(e,t){return!up(t,function(e){return"element"===e.type||"text"===e.type})},enabled:function(e,t){return!op(e,t)},"first-child":function(e,t,n,r,i){return ip(i,e),0===i.elementIndex},"first-of-type":function(e,t,n,r,i){return ip(i,e),0===i.typeIndex},has:function(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return pp(o,{type:"root",children:t.children}),o.results.length>0},is:ap,lang:function(e,t,n,r,i){return e.argument,e.argument.type,""!==i.language&&void 0!==i.language&&qd(i.language,(0,Td.q)(e.argument.value)).length>0},"last-child":function(e,t,n,r,i){return ip(i,e),Boolean(i.elementCount&&i.elementIndex===i.elementCount-1)},"last-of-type":function(e,t,n,r,i){return ip(i,e),"number"===typeof i.typeIndex&&"number"===typeof i.typeCount&&i.typeIndex===i.typeCount-1},not:function(e,t,n,r,i){return!ap(e,t,n,r,i)},"nth-child":function(e,t,n,r,i){const o=sp(e);return ip(i,e),"number"===typeof i.elementIndex&&o(i.elementIndex)},"nth-last-child":function(e,t,n,r,i){const o=sp(e);return ip(i,e),Boolean("number"===typeof i.elementCount&&"number"===typeof i.elementIndex&&o(i.elementCount-i.elementIndex-1))},"nth-last-of-type":function(e,t,n,r,i){const o=sp(e);return ip(i,e),"number"===typeof i.typeCount&&"number"===typeof i.typeIndex&&o(i.typeCount-1-i.typeIndex)},"nth-of-type":function(e,t,n,r,i){const o=sp(e);return ip(i,e),"number"===typeof i.typeIndex&&o(i.typeIndex)},"only-child":function(e,t,n,r,i){return ip(i,e),1===i.elementCount},"only-of-type":function(e,t,n,r,i){return ip(i,e),1===i.typeCount},optional:function(e,t){return!cp(e,t)},"read-only":function(e,t,n,r,i){return!lp(e,t,n,r,i)},"read-write":lp,required:cp,root:function(e,t,n,r,i){return Boolean((!r||"root"===r.type)&&i.schema&&("html"===i.schema.space||"svg"===i.schema.space)&&("html"===t.tagName||"svg"===t.tagName))},scope:function(e,t,n,r,i){return i.scopeElements.includes(t)}},invalid:function(){},unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")}});function ip(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function op(e,t){return("button"===t.tagName||"input"===t.tagName||"select"===t.tagName||"textarea"===t.tagName||"optgroup"===t.tagName||"option"===t.tagName||"menuitem"===t.tagName||"fieldset"===t.tagName)&&Xd(t,"disabled")}function sp(e){let t=e._cachedFn;if(!t){const n=e.argument;if("Formula"!==n.type)throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=np(n.a+"n+"+n.b),e._cachedFn=t}return t}function ap(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return pp(o,t),o.results[0]===t}function lp(e,t,n,r,i){return"input"===t.tagName||"textarea"===t.tagName?!Xd(t,"readOnly")&&!Xd(t,"disabled"):Boolean(i.editableOrEditingHost)}function cp(e,t){return("input"===t.tagName||"textarea"===t.tagName||"select"===t.tagName)&&Xd(t,"required")}function up(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function hp(e,t,n,r,i){for(const o of e.items)if("Attribute"===o.type){if(!Id(o,t,i.schema))return!1}else if("Id"===o.type){if(!$d(o,t))return!1}else if("ClassName"===o.type){if(!Fd(o,t))return!1}else if("PseudoClass"===o.type){if(!rp(o,t,n,r,i))return!1}else{if("PseudoElement"===o.type)throw new Error("Invalid selector: `::"+o.name+"`");if("TagName"===o.type&&!Bd(o,t))return!1}return!0}const dp=[];function pp(e,t){t&&Op(e,[],t,void 0,void 0,t)}function fp(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function mp(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:dp}function gp(e,t){if("element"===t.type){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function Op(e,t,n,r,i,o){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const a=function(e,t){const n=e.schema,r=e.language,i=e.direction,o=e.editableOrEditingHost;let s;if("element"===t.type){const r=t.properties.xmlLang||t.properties.lang,i=t.properties.type||"text",o=Ad(t);null!==r&&void 0!==r&&(e.language=String(r)),n&&"html"===n.space?("true"===t.properties.contentEditable&&(e.editableOrEditingHost=!0),"svg"===t.tagName&&(e.schema=Ih),"rtl"===o?s=o:"ltr"===o||"auto"!==o&&"html"===t.tagName||"auto"!==o&&"input"===t.tagName&&"tel"===i?s="ltr":"auto"!==o&&"bdi"!==t.tagName||("textarea"===t.tagName?s=wd(Gu(t)):"input"!==t.tagName||"email"!==i&&"search"!==i&&"tel"!==i&&"text"!==i?Vu(t,function(e){return"text"===e.type?(s=wd(e.value),s?ju:void 0):e===t||"element"!==e.type||"bdi"!==e.tagName&&"script"!==e.tagName&&"style"!==e.tagName&&"textare"!==e.tagName&&!Ad(e)?void 0:Zu}):s=t.properties.value?wd(String(t.properties.value)):"ltr"),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return function(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=o}}(e,n);if("element"===n.type){let a=e.rootQuery.rules;i&&i!==o&&(a=e.rootQuery.rules.filter(e=>void 0===e.combinator||">"===e.combinator&&i===o)),s=function(e,t,n,r,i){const o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let s=-1;for(;++s<t.length;){const a=t[s];if(e.one&&e.found)break;if(e.shallow&&a.nestedRule)throw new Error("Expected selector without nesting");if(hp(a,n,r,i,e)){const t=a.nestedRule;t?fp(o,"+"===t.combinator?"adjacentSibling":"~"===t.combinator?"generalSibling":">"===t.combinator?"directChild":"descendant",t):(e.found=!0,e.results.includes(n)||e.results.push(n))}void 0===a.combinator?fp(o,"descendant",a):"~"===a.combinator&&fp(o,"generalSibling",a)}return o}(e,mp(t,a),n,r,i)}return!("children"in n)||e.shallow||e.one&&e.found||function(e,t,n,r){const i=mp(t.descendant,t.directChild);let o,s=-1;const a={count:0,types:new Map},l={count:0,types:new Map};for(;++s<n.children.length;)gp(a,n.children[s]);for(s=-1;++s<n.children.length;){const t=n.children[s],c="element"===t.type?t.tagName.toUpperCase():void 0;if(e.elementIndex=l.count,e.typeIndex=c&&l.types.get(c)||0,e.elementCount=a.count,e.typeCount=c?a.types.get(c):0,"children"in t){const t=Op(e,mp(i,o),n.children[s],s,n,r);o=mp(t.generalSibling,t.adjacentSibling)}if(e.one&&e.found)break;gp(l,n.children[s])}}(e,s,n,o),a(),s}function bp(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:vd(e),schema:"svg"===n?Ih:Qh,scopeElements:t?"root"===t.type?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const vp=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(t=>{"text"===t.type?e+=t.value:"element"===t.type&&t.children&&Array.isArray(t.children)&&(e+=vp(t.children))}),e},yp=e=>{const{selector:t,rewrite:n}=e||{};return e=>{if(n&&"function"===typeof n){if(t&&"string"===typeof t){const r=function(e,t,n){const r=bp(e,t,n);return pp(r,t||void 0),r.results}(t,e);return void(r&&r.length>0&&Vu(e,r,(e,t,r)=>{n(e,t,r)}))}Vu(e,(e,t,r)=>{n(e,t,r)})}}},xp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>1?arguments[1]:void 0;for(;r<e.length;)if(r++,t){const n=e[r];if(n&&n.value&&""!==n.value.replace(/(\n|\s)/g,"")||e[r]&&"element"===e[r].type)return n.tagName===t?n:void 0}else{const t=e[r];if(!t||"element"===t.type)return;if("text"===t.type&&""!==t.value.replace(/(\n|\s)/g,""))return;if(t.type&&/^(comment|raw)$/gi.test(t.type)){if(t.value&&!/^rehype:/.test(t.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||""))return;if(n){if(xp(e,r,"pre",n))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},kp=e=>{let{value:t=""}=e;const n=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e),{})}(t.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(n).forEach(e=>{"true"===n[e]&&(n[e]=!0),"false"===n[e]&&(n[e]=!1),"string"!==typeof n[e]||/^0/.test(n[e])||isNaN(+n[e])||(n[e]=+n[e])}),n},Sp=(e,t,n)=>"string"===n?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:"attr"===n?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},wp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{properties:t="data",codeBlockParames:n=!0}=e;return e=>{Vu(e,"element",(e,r,i)=>{if(n&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&i&&Array.isArray(i.children)&&i.children.length>1){const n=e.children[0];if(n&&"code"===n.tagName&&"number"===typeof r){const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(;t>-1;){if(t--,!e[t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(i.children,r);if(o){const r=kp(o);Object.keys(r).length>0&&(e.properties={...e.properties,"data-type":"rehyp"},n.properties=Sp(n.properties,r,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&i&&Array.isArray(i.children)&&"number"===typeof r){const o=xp(i.children,r,"",n);if(o){const n=kp(o);Object.keys(n).length>0&&(e.properties=Sp(e.properties,n,t))}}})}},Ap="object"===typeof self?self:globalThis,Tp=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case 0:case-1:return n(s,i);case 1:{const e=n([],i);for(const t of s)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{const{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of s)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of s)e.add(r(t));return e}case 7:{const{name:e,message:t}=s;return n(new Ap[e](t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new Ap[o](s),i)};return r})(new Map,e)(0),Ep="",{toString:Cp}={},{keys:_p}=Object,Pp=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Cp.call(e).slice(8,-1);switch(n){case"Array":return[1,Ep];case"Object":return[2,Ep];case"Date":return[3,Ep];case"RegExp":return[4,Ep];case"Map":return[5,Ep];case"Set":return[6,Ep];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Dp=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},Mp=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[s,a]=Pp(r);switch(s){case 0:{let t=r;switch(a){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([s,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}const e=[],t=i([s,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([s,n],r);for(const t of _p(r))!e&&Dp(Pp(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([s,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([s,{source:e,flags:t}],r)}case 5:{const t=[],n=i([s,t],r);for(const[i,s]of r)(e||!Dp(Pp(i))&&!Dp(Pp(s)))&&t.push([o(i),o(s)]);return n}case 6:{const t=[],n=i([s,t],r);for(const i of r)!e&&Dp(Pp(i))||t.push(o(i));return n}}const{message:l}=r;return i([s,{name:a,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},Np="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Tp(Mp(e,t)):structuredClone(e):(e,t)=>Tp(Mp(e,t)),Rp=/[#.]/g;function Qp(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i){let o;for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l<s;l++)a[l-2]=arguments[l];if(null===n||void 0===n){o={type:"root",children:[]};const e=i;a.unshift(e)}else{o=function(e,t){const n=e||"",r={};let i,o,s=0;for(;s<n.length;){Rp.lastIndex=s;const e=Rp.exec(n),t=n.slice(s,e?e.index:n.length);t&&(i?"#"===i?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,s+=t.length),e&&(i=e[0],s++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t);const s=o.tagName.toLowerCase(),l=r?r.get(s):void 0;if(o.tagName=l||s,function(e){if(null===e||"object"!==typeof e||Array.isArray(e))return!0;if("string"!==typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"===typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!==typeof e&&"string"!==typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(i))a.unshift(i);else for(const[t,n]of Object.entries(i))Ip(e,o.properties,t,n)}for(const e of a)Lp(o.children,e);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function Ip(e,t,n,r){const i=Md(e,n);let o;if(null!==r&&void 0!==r){if("number"===typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"===typeof r?r:"string"===typeof r?i.spaceSeparated?(0,Qd.q)(r):i.commaSeparated?(0,Td.q)(r):i.commaOrSpaceSeparated?(0,Qd.q)((0,Td.q)(r).join(" ")):Fp(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(const t of o)e.push(Fp(i,i.property,t));o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function Lp(e,t){if(null===t||void 0===t);else if("number"===typeof t||"string"===typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Lp(e,n);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Lp(e,t.children):e.push(t)}}function Fp(e,t,n){if("string"===typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||dh(n)===dh(t)))return!0}return n}const $p=Qp(Qh,"div"),Bp=Qp(Ih,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function zp(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const qp={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Hp={}.hasOwnProperty,Up=Object.prototype;function Xp(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Zp(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:jp(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"===typeof e.line&&"number"===typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=zp(t,e),i=-1===r?t.length+1:r+1;if(e===i)break;n.push(i)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"===typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(void 0===i){const e=zp(t,n[r-1]);i=-1===e?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),i=r.toPoint(0),o=r.toPoint(t.length);n.position={start:i,end:o}}return n}case"#documentType":return n={type:"doctype"},Zp(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},Zp(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===qp.svg?Ih:Qh;let r=-1;const i={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;Hp.call(Up,n)||(i[n]=e.value)}const o="svg"===e.schema.space?Bp:$p,s=o(t.tagName,i,jp(e,t.childNodes));if(Zp(e,t,s),"template"===s.tagName){const n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&Yp(r.startTag),o=r&&r.endTag&&Yp(r.endTag),a=Xp(e,n.content);i&&o&&e.file&&(a.position={start:i.end,end:o.start}),s.content=a}return e.schema=n,s}(e,t),n}}function jp(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Xp(e,t[n]);r.push(i)}return r}function Zp(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=Yp(n);if("element"===t.type){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const r={};let i;if(n.attrs)for(i in n.attrs)Hp.call(n.attrs,i)&&(r[Md(e.schema,i).property]=Yp(n.attrs[i]));n.startTag;const o=Yp(n.startTag),s=n.endTag?Yp(n.endTag):void 0,a={opening:o};s&&(a.closing=s),a.properties=r,t.data={position:a}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Yp(e){const t=Vp({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Vp({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Vp(e){return e.line&&e.column?e:void 0}class Gp{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Wp(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Gp(n,r,t)}function Kp(e){return e.toLowerCase()}Gp.prototype.property={},Gp.prototype.normal={},Gp.prototype.space=null;class Jp{constructor(e,t){this.property=e,this.attribute=t}}Jp.prototype.space=null,Jp.prototype.boolean=!1,Jp.prototype.booleanish=!1,Jp.prototype.overloadedBoolean=!1,Jp.prototype.number=!1,Jp.prototype.commaSeparated=!1,Jp.prototype.spaceSeparated=!1,Jp.prototype.commaOrSpaceSeparated=!1,Jp.prototype.mustUseProperty=!1,Jp.prototype.defined=!1;let ef=0;const tf=cf(),nf=cf(),rf=cf(),of=cf(),sf=cf(),af=cf(),lf=cf();function cf(){return 2**++ef}const uf=Object.keys(i);class hf extends Jp{constructor(e,t,n,r){let o=-1;if(super(e,t),df(this,"space",r),"number"===typeof n)for(;++o<uf.length;){const e=uf[o];df(this,uf[o],(n&i[e])===i[e])}}}function df(e,t,n){n&&(e[t]=n)}hf.prototype.defined=!0;const pf={}.hasOwnProperty;function ff(e){const t={},n={};let r;for(r in e.properties)if(pf.call(e.properties,r)){const i=e.properties[r],o=new hf(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Kp(r)]=r,n[Kp(o.attribute)]=r}return new Gp(t,n,e.space)}const mf=ff({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),gf=ff({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Of(e,t){return t in e?e[t]:t}function bf(e,t){return Of(e,t.toLowerCase())}const vf=ff({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:bf,properties:{xmlns:null,xmlnsXLink:null}}),yf=ff({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:nf,ariaAutoComplete:null,ariaBusy:nf,ariaChecked:nf,ariaColCount:of,ariaColIndex:of,ariaColSpan:of,ariaControls:sf,ariaCurrent:null,ariaDescribedBy:sf,ariaDetails:null,ariaDisabled:nf,ariaDropEffect:sf,ariaErrorMessage:null,ariaExpanded:nf,ariaFlowTo:sf,ariaGrabbed:nf,ariaHasPopup:null,ariaHidden:nf,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:sf,ariaLevel:of,ariaLive:null,ariaModal:nf,ariaMultiLine:nf,ariaMultiSelectable:nf,ariaOrientation:null,ariaOwns:sf,ariaPlaceholder:null,ariaPosInSet:of,ariaPressed:nf,ariaReadOnly:nf,ariaRelevant:null,ariaRequired:nf,ariaRoleDescription:sf,ariaRowCount:of,ariaRowIndex:of,ariaRowSpan:of,ariaSelected:nf,ariaSetSize:of,ariaSort:null,ariaValueMax:of,ariaValueMin:of,ariaValueNow:of,ariaValueText:null,role:null}}),xf=ff({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:bf,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:af,acceptCharset:sf,accessKey:sf,action:null,allow:null,allowFullScreen:tf,allowPaymentRequest:tf,allowUserMedia:tf,alt:null,as:null,async:tf,autoCapitalize:null,autoComplete:sf,autoFocus:tf,autoPlay:tf,blocking:sf,capture:null,charSet:null,checked:tf,cite:null,className:sf,cols:of,colSpan:null,content:null,contentEditable:nf,controls:tf,controlsList:sf,coords:of|af,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tf,defer:tf,dir:null,dirName:null,disabled:tf,download:rf,draggable:nf,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tf,formTarget:null,headers:sf,height:of,hidden:tf,high:of,href:null,hrefLang:null,htmlFor:sf,httpEquiv:sf,id:null,imageSizes:null,imageSrcSet:null,inert:tf,inputMode:null,integrity:null,is:null,isMap:tf,itemId:null,itemProp:sf,itemRef:sf,itemScope:tf,itemType:sf,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tf,low:of,manifest:null,max:null,maxLength:of,media:null,method:null,min:null,minLength:of,multiple:tf,muted:tf,name:null,nonce:null,noModule:tf,noValidate:tf,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:tf,optimum:of,pattern:null,ping:sf,placeholder:null,playsInline:tf,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tf,referrerPolicy:null,rel:sf,required:tf,reversed:tf,rows:of,rowSpan:of,sandbox:sf,scope:null,scoped:tf,seamless:tf,selected:tf,shadowRootClonable:tf,shadowRootDelegatesFocus:tf,shadowRootMode:null,shape:null,size:of,sizes:null,slot:null,span:of,spellCheck:nf,src:null,srcDoc:null,srcLang:null,srcSet:null,start:of,step:null,style:null,tabIndex:of,target:null,title:null,translate:null,type:null,typeMustMatch:tf,useMap:null,value:nf,width:of,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:sf,axis:null,background:null,bgColor:null,border:of,borderColor:null,bottomMargin:of,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tf,declare:tf,event:null,face:null,frame:null,frameBorder:null,hSpace:of,leftMargin:of,link:null,longDesc:null,lowSrc:null,marginHeight:of,marginWidth:of,noResize:tf,noHref:tf,noShade:tf,noWrap:tf,object:null,profile:null,prompt:null,rev:null,rightMargin:of,rules:null,scheme:null,scrolling:nf,standby:null,summary:null,text:null,topMargin:of,valueType:null,version:null,vAlign:null,vLink:null,vSpace:of,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tf,disableRemotePlayback:tf,prefix:null,property:null,results:of,security:null,unselectable:null}}),kf=ff({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Of,properties:{about:lf,accentHeight:of,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:of,amplitude:of,arabicForm:null,ascent:of,attributeName:null,attributeType:null,azimuth:of,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:of,by:null,calcMode:null,capHeight:of,className:sf,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:of,diffuseConstant:of,direction:null,display:null,dur:null,divisor:of,dominantBaseline:null,download:tf,dx:null,dy:null,edgeMode:null,editable:null,elevation:of,enableBackground:null,end:null,event:null,exponent:of,externalResourcesRequired:null,fill:null,fillOpacity:of,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:af,g2:af,glyphName:af,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:of,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:of,horizOriginX:of,horizOriginY:of,id:null,ideographic:of,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:of,k:of,k1:of,k2:of,k3:of,k4:of,kernelMatrix:lf,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:of,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:of,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:of,overlineThickness:of,paintOrder:null,panose1:null,path:null,pathLength:of,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:sf,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:of,pointsAtY:of,pointsAtZ:of,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:lf,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:lf,rev:lf,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:lf,requiredFeatures:lf,requiredFonts:lf,requiredFormats:lf,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:of,specularExponent:of,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:of,strikethroughThickness:of,string:null,stroke:null,strokeDashArray:lf,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:of,strokeOpacity:of,strokeWidth:null,style:null,surfaceScale:of,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:lf,tabIndex:of,tableValues:null,target:null,targetX:of,targetY:of,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:lf,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:of,underlineThickness:of,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:of,values:null,vAlphabetic:of,vMathematical:of,vectorEffect:null,vHanging:of,vIdeographic:of,version:null,vertAdvY:of,vertOriginX:of,vertOriginY:of,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:of,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Sf=Wp([gf,mf,vf,yf,xf],"html"),wf=Wp([gf,mf,vf,yf,kf],"svg"),Af=/^data[-\w.:]+$/i,Tf=/-[a-z]/g,Ef=/[A-Z]/g;function Cf(e){return"-"+e.toLowerCase()}function _f(e){return e.charAt(1).toUpperCase()}const Pf={},Df={}.hasOwnProperty,Mf=tp("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Rf(e.children,n,t),Qf(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=wf);const i=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&Df.call(e.properties,o)){const t=Nf(r,o,e.properties[o]);t&&i.push(t)}const s=r.space;const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:qp[s],childNodes:[],parentNode:null};a.childNodes=Rf(e.children,a,r),Qf(e,a),"template"===e.tagName&&e.content&&(a.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Rf(e.children,n,t),Qf(e,n),n}(e.content,r));return a},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Qf(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Qf(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Qf(e,t),t}}});function Nf(e,t,n){const r=function(e,t){const n=Kp(t);let r=t,i=Jp;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Af.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Tf,_f);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Tf.test(e)){let n=e.replace(Ef,Cf);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=hf}return new i(r,t)}(e,t);if(!1===n||null===n||void 0===n||"number"===typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?(0,Td.A)(n):(0,Qd.A)(n));const i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=qp[r.space]}return i}function Rf(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=Mf(e[r],n);o.parentNode=t,i.push(o)}return i}function Qf(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const If=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Lf=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ff="\ufffd";var $f;!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"}($f||($f={}));const Bf="--",zf="[CDATA[",qf="doctype",Hf="script",Uf="public",Xf="system";function jf(e){return e>=55296&&e<=57343}function Zf(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Yf(e){return e>=64976&&e<=65007||Lf.has(e)}var Vf;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(Vf||(Vf={}));class Gf{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:i}=this,o=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$f.EOF;return this._err(Vf.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$f.EOF;const n=this.html.charCodeAt(t);return n===$f.CARRIAGE_RETURN?$f.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$f.EOF;let e=this.html.charCodeAt(this.pos);if(e===$f.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,$f.LINE_FEED;if(e===$f.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,jf(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===$f.LINE_FEED||e===$f.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){Zf(e)?this._err(Vf.controlCharacterInInputStream):Yf(e)&&this._err(Vf.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Wf;function Kf(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(Wf||(Wf={}));const Jf=new Uint16Array('\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c'.split("").map(e=>e.charCodeAt(0)));var em;const tm=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);em=String.fromCodePoint;function nm(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=tm.get(e))&&void 0!==t?t:e}var rm;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(rm||(rm={}));var im,om,sm;function am(e){return e>=rm.ZERO&&e<=rm.NINE}function lm(e){return e>=rm.UPPER_A&&e<=rm.UPPER_F||e>=rm.LOWER_A&&e<=rm.LOWER_F}function cm(e){return e===rm.EQUALS||function(e){return e>=rm.UPPER_A&&e<=rm.UPPER_Z||e>=rm.LOWER_A&&e<=rm.LOWER_Z||am(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(im||(im={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(om||(om={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(sm||(sm={}));class um{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=om.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=sm.Strict}startEntity(e){this.decodeMode=e,this.state=om.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case om.EntityStart:return e.charCodeAt(t)===rm.NUM?(this.state=om.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=om.NamedEntity,this.stateNamedEntity(e,t));case om.NumericStart:return this.stateNumericStart(e,t);case om.NumericDecimal:return this.stateNumericDecimal(e,t);case om.NumericHex:return this.stateNumericHex(e,t);case om.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===rm.LOWER_X?(this.state=om.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=om.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!am(r)&&!lm(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!am(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===rm.SEMI)this.consumed+=1;else if(this.decodeMode===sm.Strict)return 0;return this.emitCodePoint(nm(this.result),this.consumed),this.errors&&(e!==rm.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&im.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=hm(n,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===sm.Attribute&&(0===i||cm(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&im.VALUE_LENGTH)>>14,0!==i){if(o===rm.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==sm.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&im.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~im.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case om.NamedEntity:return 0===this.result||this.decodeMode===sm.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case om.NumericDecimal:return this.emitNumericEntity(0,2);case om.NumericHex:return this.emitNumericEntity(0,3);case om.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case om.EntityStart:return 0}}}function hm(e,t,n,r){const i=(t&im.BRANCH_LENGTH)>>7,o=t&im.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let s=n,a=s+i-1;for(;s<=a;){const t=s+a>>>1,n=e[t];if(n<r)s=t+1;else{if(!(n>r))return e[t+i];a=t-1}}return-1}var dm,pm,fm,mm,gm;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(dm||(dm={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(pm||(pm={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(fm||(fm={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(mm||(mm={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(gm||(gm={}));const Om=new Map([[mm.A,gm.A],[mm.ADDRESS,gm.ADDRESS],[mm.ANNOTATION_XML,gm.ANNOTATION_XML],[mm.APPLET,gm.APPLET],[mm.AREA,gm.AREA],[mm.ARTICLE,gm.ARTICLE],[mm.ASIDE,gm.ASIDE],[mm.B,gm.B],[mm.BASE,gm.BASE],[mm.BASEFONT,gm.BASEFONT],[mm.BGSOUND,gm.BGSOUND],[mm.BIG,gm.BIG],[mm.BLOCKQUOTE,gm.BLOCKQUOTE],[mm.BODY,gm.BODY],[mm.BR,gm.BR],[mm.BUTTON,gm.BUTTON],[mm.CAPTION,gm.CAPTION],[mm.CENTER,gm.CENTER],[mm.CODE,gm.CODE],[mm.COL,gm.COL],[mm.COLGROUP,gm.COLGROUP],[mm.DD,gm.DD],[mm.DESC,gm.DESC],[mm.DETAILS,gm.DETAILS],[mm.DIALOG,gm.DIALOG],[mm.DIR,gm.DIR],[mm.DIV,gm.DIV],[mm.DL,gm.DL],[mm.DT,gm.DT],[mm.EM,gm.EM],[mm.EMBED,gm.EMBED],[mm.FIELDSET,gm.FIELDSET],[mm.FIGCAPTION,gm.FIGCAPTION],[mm.FIGURE,gm.FIGURE],[mm.FONT,gm.FONT],[mm.FOOTER,gm.FOOTER],[mm.FOREIGN_OBJECT,gm.FOREIGN_OBJECT],[mm.FORM,gm.FORM],[mm.FRAME,gm.FRAME],[mm.FRAMESET,gm.FRAMESET],[mm.H1,gm.H1],[mm.H2,gm.H2],[mm.H3,gm.H3],[mm.H4,gm.H4],[mm.H5,gm.H5],[mm.H6,gm.H6],[mm.HEAD,gm.HEAD],[mm.HEADER,gm.HEADER],[mm.HGROUP,gm.HGROUP],[mm.HR,gm.HR],[mm.HTML,gm.HTML],[mm.I,gm.I],[mm.IMG,gm.IMG],[mm.IMAGE,gm.IMAGE],[mm.INPUT,gm.INPUT],[mm.IFRAME,gm.IFRAME],[mm.KEYGEN,gm.KEYGEN],[mm.LABEL,gm.LABEL],[mm.LI,gm.LI],[mm.LINK,gm.LINK],[mm.LISTING,gm.LISTING],[mm.MAIN,gm.MAIN],[mm.MALIGNMARK,gm.MALIGNMARK],[mm.MARQUEE,gm.MARQUEE],[mm.MATH,gm.MATH],[mm.MENU,gm.MENU],[mm.META,gm.META],[mm.MGLYPH,gm.MGLYPH],[mm.MI,gm.MI],[mm.MO,gm.MO],[mm.MN,gm.MN],[mm.MS,gm.MS],[mm.MTEXT,gm.MTEXT],[mm.NAV,gm.NAV],[mm.NOBR,gm.NOBR],[mm.NOFRAMES,gm.NOFRAMES],[mm.NOEMBED,gm.NOEMBED],[mm.NOSCRIPT,gm.NOSCRIPT],[mm.OBJECT,gm.OBJECT],[mm.OL,gm.OL],[mm.OPTGROUP,gm.OPTGROUP],[mm.OPTION,gm.OPTION],[mm.P,gm.P],[mm.PARAM,gm.PARAM],[mm.PLAINTEXT,gm.PLAINTEXT],[mm.PRE,gm.PRE],[mm.RB,gm.RB],[mm.RP,gm.RP],[mm.RT,gm.RT],[mm.RTC,gm.RTC],[mm.RUBY,gm.RUBY],[mm.S,gm.S],[mm.SCRIPT,gm.SCRIPT],[mm.SEARCH,gm.SEARCH],[mm.SECTION,gm.SECTION],[mm.SELECT,gm.SELECT],[mm.SOURCE,gm.SOURCE],[mm.SMALL,gm.SMALL],[mm.SPAN,gm.SPAN],[mm.STRIKE,gm.STRIKE],[mm.STRONG,gm.STRONG],[mm.STYLE,gm.STYLE],[mm.SUB,gm.SUB],[mm.SUMMARY,gm.SUMMARY],[mm.SUP,gm.SUP],[mm.TABLE,gm.TABLE],[mm.TBODY,gm.TBODY],[mm.TEMPLATE,gm.TEMPLATE],[mm.TEXTAREA,gm.TEXTAREA],[mm.TFOOT,gm.TFOOT],[mm.TD,gm.TD],[mm.TH,gm.TH],[mm.THEAD,gm.THEAD],[mm.TITLE,gm.TITLE],[mm.TR,gm.TR],[mm.TRACK,gm.TRACK],[mm.TT,gm.TT],[mm.U,gm.U],[mm.UL,gm.UL],[mm.SVG,gm.SVG],[mm.VAR,gm.VAR],[mm.WBR,gm.WBR],[mm.XMP,gm.XMP]]);function bm(e){var t;return null!==(t=Om.get(e))&&void 0!==t?t:gm.UNKNOWN}const vm=gm,ym={[dm.HTML]:new Set([vm.ADDRESS,vm.APPLET,vm.AREA,vm.ARTICLE,vm.ASIDE,vm.BASE,vm.BASEFONT,vm.BGSOUND,vm.BLOCKQUOTE,vm.BODY,vm.BR,vm.BUTTON,vm.CAPTION,vm.CENTER,vm.COL,vm.COLGROUP,vm.DD,vm.DETAILS,vm.DIR,vm.DIV,vm.DL,vm.DT,vm.EMBED,vm.FIELDSET,vm.FIGCAPTION,vm.FIGURE,vm.FOOTER,vm.FORM,vm.FRAME,vm.FRAMESET,vm.H1,vm.H2,vm.H3,vm.H4,vm.H5,vm.H6,vm.HEAD,vm.HEADER,vm.HGROUP,vm.HR,vm.HTML,vm.IFRAME,vm.IMG,vm.INPUT,vm.LI,vm.LINK,vm.LISTING,vm.MAIN,vm.MARQUEE,vm.MENU,vm.META,vm.NAV,vm.NOEMBED,vm.NOFRAMES,vm.NOSCRIPT,vm.OBJECT,vm.OL,vm.P,vm.PARAM,vm.PLAINTEXT,vm.PRE,vm.SCRIPT,vm.SECTION,vm.SELECT,vm.SOURCE,vm.STYLE,vm.SUMMARY,vm.TABLE,vm.TBODY,vm.TD,vm.TEMPLATE,vm.TEXTAREA,vm.TFOOT,vm.TH,vm.THEAD,vm.TITLE,vm.TR,vm.TRACK,vm.UL,vm.WBR,vm.XMP]),[dm.MATHML]:new Set([vm.MI,vm.MO,vm.MN,vm.MS,vm.MTEXT,vm.ANNOTATION_XML]),[dm.SVG]:new Set([vm.TITLE,vm.FOREIGN_OBJECT,vm.DESC]),[dm.XLINK]:new Set,[dm.XML]:new Set,[dm.XMLNS]:new Set},xm=new Set([vm.H1,vm.H2,vm.H3,vm.H4,vm.H5,vm.H6]);new Set([mm.STYLE,mm.SCRIPT,mm.XMP,mm.IFRAME,mm.NOEMBED,mm.NOFRAMES,mm.PLAINTEXT]);var km;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(km||(km={}));const Sm={DATA:km.DATA,RCDATA:km.RCDATA,RAWTEXT:km.RAWTEXT,SCRIPT_DATA:km.SCRIPT_DATA,PLAINTEXT:km.PLAINTEXT,CDATA_SECTION:km.CDATA_SECTION};function wm(e){return e>=$f.LATIN_CAPITAL_A&&e<=$f.LATIN_CAPITAL_Z}function Am(e){return function(e){return e>=$f.LATIN_SMALL_A&&e<=$f.LATIN_SMALL_Z}(e)||wm(e)}function Tm(e){return Am(e)||function(e){return e>=$f.DIGIT_0&&e<=$f.DIGIT_9}(e)}function Em(e){return e+32}function Cm(e){return e===$f.SPACE||e===$f.LINE_FEED||e===$f.TABULATION||e===$f.FORM_FEED}function _m(e){return Cm(e)||e===$f.SOLIDUS||e===$f.GREATER_THAN_SIGN}class Pm{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=km.DATA,this.returnState=km.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Gf(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new um(Jf,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Vf.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(Vf.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===$f.NULL?Vf.nullCharacterReference:e>1114111?Vf.characterReferenceOutsideUnicodeRange:jf(e)?Vf.surrogateCharacterReference:Yf(e)?Vf.noncharacterCharacterReference:Zf(e)||e===$f.CARRIAGE_RETURN?Vf.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null===e||void 0===e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null===n||void 0===n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Wf.START_TAG,tagName:"",tagID:gm.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Wf.END_TAG,tagName:"",tagID:gm.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Wf.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Wf.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===Kf(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Vf.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=bm(e.tagName),e.type===Wf.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(Vf.endTagWithAttributes),e.selfClosing&&this._err(Vf.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Wf.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Wf.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Wf.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Wf.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=Cm(e)?Wf.WHITESPACE_CHARACTER:e===$f.NULL?Wf.NULL_CHARACTER:Wf.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Wf.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=km.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?sm.Attribute:sm.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===km.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===km.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===km.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case km.DATA:this._stateData(e);break;case km.RCDATA:this._stateRcdata(e);break;case km.RAWTEXT:this._stateRawtext(e);break;case km.SCRIPT_DATA:this._stateScriptData(e);break;case km.PLAINTEXT:this._statePlaintext(e);break;case km.TAG_OPEN:this._stateTagOpen(e);break;case km.END_TAG_OPEN:this._stateEndTagOpen(e);break;case km.TAG_NAME:this._stateTagName(e);break;case km.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case km.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case km.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case km.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case km.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case km.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case km.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case km.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case km.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case km.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case km.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case km.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case km.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case km.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case km.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case km.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case km.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case km.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case km.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case km.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case km.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case km.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case km.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case km.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case km.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case km.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case km.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case km.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case km.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case km.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case km.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case km.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case km.BOGUS_COMMENT:this._stateBogusComment(e);break;case km.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case km.COMMENT_START:this._stateCommentStart(e);break;case km.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case km.COMMENT:this._stateComment(e);break;case km.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case km.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case km.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case km.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case km.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case km.COMMENT_END:this._stateCommentEnd(e);break;case km.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case km.DOCTYPE:this._stateDoctype(e);break;case km.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case km.DOCTYPE_NAME:this._stateDoctypeName(e);break;case km.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case km.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case km.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case km.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case km.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case km.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case km.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case km.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case km.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case km.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case km.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case km.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case km.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case km.CDATA_SECTION:this._stateCdataSection(e);break;case km.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case km.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case km.CHARACTER_REFERENCE:this._stateCharacterReference();break;case km.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case $f.LESS_THAN_SIGN:this.state=km.TAG_OPEN;break;case $f.AMPERSAND:this._startCharacterReference();break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this._emitCodePoint(e);break;case $f.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case $f.AMPERSAND:this._startCharacterReference();break;case $f.LESS_THAN_SIGN:this.state=km.RCDATA_LESS_THAN_SIGN;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this._emitChars(Ff);break;case $f.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case $f.LESS_THAN_SIGN:this.state=km.RAWTEXT_LESS_THAN_SIGN;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this._emitChars(Ff);break;case $f.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case $f.LESS_THAN_SIGN:this.state=km.SCRIPT_DATA_LESS_THAN_SIGN;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this._emitChars(Ff);break;case $f.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case $f.NULL:this._err(Vf.unexpectedNullCharacter),this._emitChars(Ff);break;case $f.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Am(e))this._createStartTagToken(),this.state=km.TAG_NAME,this._stateTagName(e);else switch(e){case $f.EXCLAMATION_MARK:this.state=km.MARKUP_DECLARATION_OPEN;break;case $f.SOLIDUS:this.state=km.END_TAG_OPEN;break;case $f.QUESTION_MARK:this._err(Vf.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=km.BOGUS_COMMENT,this._stateBogusComment(e);break;case $f.EOF:this._err(Vf.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Vf.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=km.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Am(e))this._createEndTagToken(),this.state=km.TAG_NAME,this._stateTagName(e);else switch(e){case $f.GREATER_THAN_SIGN:this._err(Vf.missingEndTagName),this.state=km.DATA;break;case $f.EOF:this._err(Vf.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(Vf.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=km.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:this.state=km.BEFORE_ATTRIBUTE_NAME;break;case $f.SOLIDUS:this.state=km.SELF_CLOSING_START_TAG;break;case $f.GREATER_THAN_SIGN:this.state=km.DATA,this.emitCurrentTagToken();break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),t.tagName+=Ff;break;case $f.EOF:this._err(Vf.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(wm(e)?Em(e):e)}}_stateRcdataLessThanSign(e){e===$f.SOLIDUS?this.state=km.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=km.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Am(e)?(this.state=km.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=km.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=km.BEFORE_ATTRIBUTE_NAME,!1;case $f.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=km.SELF_CLOSING_START_TAG,!1;case $f.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=km.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=km.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===$f.SOLIDUS?this.state=km.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=km.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Am(e)?(this.state=km.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=km.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=km.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case $f.SOLIDUS:this.state=km.SCRIPT_DATA_END_TAG_OPEN;break;case $f.EXCLAMATION_MARK:this.state=km.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=km.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Am(e)?(this.state=km.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=km.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=km.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===$f.HYPHEN_MINUS?(this.state=km.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=km.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===$f.HYPHEN_MINUS?(this.state=km.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=km.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case $f.HYPHEN_MINUS:this.state=km.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case $f.LESS_THAN_SIGN:this.state=km.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this._emitChars(Ff);break;case $f.EOF:this._err(Vf.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case $f.HYPHEN_MINUS:this.state=km.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case $f.LESS_THAN_SIGN:this.state=km.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this.state=km.SCRIPT_DATA_ESCAPED,this._emitChars(Ff);break;case $f.EOF:this._err(Vf.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=km.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case $f.HYPHEN_MINUS:this._emitChars("-");break;case $f.LESS_THAN_SIGN:this.state=km.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case $f.GREATER_THAN_SIGN:this.state=km.SCRIPT_DATA,this._emitChars(">");break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this.state=km.SCRIPT_DATA_ESCAPED,this._emitChars(Ff);break;case $f.EOF:this._err(Vf.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=km.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===$f.SOLIDUS?this.state=km.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Am(e)?(this._emitChars("<"),this.state=km.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=km.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Am(e)?(this.state=km.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=km.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=km.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Hf,!1)&&_m(this.preprocessor.peek(Hf.length))){this._emitCodePoint(e);for(let e=0;e<Hf.length;e++)this._emitCodePoint(this._consume());this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=km.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case $f.HYPHEN_MINUS:this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case $f.LESS_THAN_SIGN:this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this._emitChars(Ff);break;case $f.EOF:this._err(Vf.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case $f.HYPHEN_MINUS:this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case $f.LESS_THAN_SIGN:this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ff);break;case $f.EOF:this._err(Vf.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case $f.HYPHEN_MINUS:this._emitChars("-");break;case $f.LESS_THAN_SIGN:this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case $f.GREATER_THAN_SIGN:this.state=km.SCRIPT_DATA,this._emitChars(">");break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ff);break;case $f.EOF:this._err(Vf.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===$f.SOLIDUS?(this.state=km.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Hf,!1)&&_m(this.preprocessor.peek(Hf.length))){this._emitCodePoint(e);for(let e=0;e<Hf.length;e++)this._emitCodePoint(this._consume());this.state=km.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=km.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:break;case $f.SOLIDUS:case $f.GREATER_THAN_SIGN:case $f.EOF:this.state=km.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case $f.EQUALS_SIGN:this._err(Vf.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=km.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=km.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:case $f.SOLIDUS:case $f.GREATER_THAN_SIGN:case $f.EOF:this._leaveAttrName(),this.state=km.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case $f.EQUALS_SIGN:this._leaveAttrName(),this.state=km.BEFORE_ATTRIBUTE_VALUE;break;case $f.QUOTATION_MARK:case $f.APOSTROPHE:case $f.LESS_THAN_SIGN:this._err(Vf.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this.currentAttr.name+=Ff;break;default:this.currentAttr.name+=String.fromCodePoint(wm(e)?Em(e):e)}}_stateAfterAttributeName(e){switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:break;case $f.SOLIDUS:this.state=km.SELF_CLOSING_START_TAG;break;case $f.EQUALS_SIGN:this.state=km.BEFORE_ATTRIBUTE_VALUE;break;case $f.GREATER_THAN_SIGN:this.state=km.DATA,this.emitCurrentTagToken();break;case $f.EOF:this._err(Vf.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=km.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:break;case $f.QUOTATION_MARK:this.state=km.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case $f.APOSTROPHE:this.state=km.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case $f.GREATER_THAN_SIGN:this._err(Vf.missingAttributeValue),this.state=km.DATA,this.emitCurrentTagToken();break;default:this.state=km.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case $f.QUOTATION_MARK:this.state=km.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case $f.AMPERSAND:this._startCharacterReference();break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this.currentAttr.value+=Ff;break;case $f.EOF:this._err(Vf.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case $f.APOSTROPHE:this.state=km.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case $f.AMPERSAND:this._startCharacterReference();break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this.currentAttr.value+=Ff;break;case $f.EOF:this._err(Vf.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:this._leaveAttrValue(),this.state=km.BEFORE_ATTRIBUTE_NAME;break;case $f.AMPERSAND:this._startCharacterReference();break;case $f.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=km.DATA,this.emitCurrentTagToken();break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this.currentAttr.value+=Ff;break;case $f.QUOTATION_MARK:case $f.APOSTROPHE:case $f.LESS_THAN_SIGN:case $f.EQUALS_SIGN:case $f.GRAVE_ACCENT:this._err(Vf.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case $f.EOF:this._err(Vf.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:this._leaveAttrValue(),this.state=km.BEFORE_ATTRIBUTE_NAME;break;case $f.SOLIDUS:this._leaveAttrValue(),this.state=km.SELF_CLOSING_START_TAG;break;case $f.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=km.DATA,this.emitCurrentTagToken();break;case $f.EOF:this._err(Vf.eofInTag),this._emitEOFToken();break;default:this._err(Vf.missingWhitespaceBetweenAttributes),this.state=km.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case $f.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=km.DATA,this.emitCurrentTagToken();break;case $f.EOF:this._err(Vf.eofInTag),this._emitEOFToken();break;default:this._err(Vf.unexpectedSolidusInTag),this.state=km.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case $f.GREATER_THAN_SIGN:this.state=km.DATA,this.emitCurrentComment(t);break;case $f.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),t.data+=Ff;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(Bf,!0)?(this._createCommentToken(Bf.length+1),this.state=km.COMMENT_START):this._consumeSequenceIfMatch(qf,!1)?(this.currentLocation=this.getCurrentLocation(qf.length+1),this.state=km.DOCTYPE):this._consumeSequenceIfMatch(zf,!0)?this.inForeignNode?this.state=km.CDATA_SECTION:(this._err(Vf.cdataInHtmlContent),this._createCommentToken(zf.length+1),this.currentToken.data="[CDATA[",this.state=km.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Vf.incorrectlyOpenedComment),this._createCommentToken(2),this.state=km.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case $f.HYPHEN_MINUS:this.state=km.COMMENT_START_DASH;break;case $f.GREATER_THAN_SIGN:{this._err(Vf.abruptClosingOfEmptyComment),this.state=km.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=km.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case $f.HYPHEN_MINUS:this.state=km.COMMENT_END;break;case $f.GREATER_THAN_SIGN:this._err(Vf.abruptClosingOfEmptyComment),this.state=km.DATA,this.emitCurrentComment(t);break;case $f.EOF:this._err(Vf.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=km.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case $f.HYPHEN_MINUS:this.state=km.COMMENT_END_DASH;break;case $f.LESS_THAN_SIGN:t.data+="<",this.state=km.COMMENT_LESS_THAN_SIGN;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),t.data+=Ff;break;case $f.EOF:this._err(Vf.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case $f.EXCLAMATION_MARK:t.data+="!",this.state=km.COMMENT_LESS_THAN_SIGN_BANG;break;case $f.LESS_THAN_SIGN:t.data+="<";break;default:this.state=km.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===$f.HYPHEN_MINUS?this.state=km.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=km.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===$f.HYPHEN_MINUS?this.state=km.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=km.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==$f.GREATER_THAN_SIGN&&e!==$f.EOF&&this._err(Vf.nestedComment),this.state=km.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case $f.HYPHEN_MINUS:this.state=km.COMMENT_END;break;case $f.EOF:this._err(Vf.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=km.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case $f.GREATER_THAN_SIGN:this.state=km.DATA,this.emitCurrentComment(t);break;case $f.EXCLAMATION_MARK:this.state=km.COMMENT_END_BANG;break;case $f.HYPHEN_MINUS:t.data+="-";break;case $f.EOF:this._err(Vf.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=km.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case $f.HYPHEN_MINUS:t.data+="--!",this.state=km.COMMENT_END_DASH;break;case $f.GREATER_THAN_SIGN:this._err(Vf.incorrectlyClosedComment),this.state=km.DATA,this.emitCurrentComment(t);break;case $f.EOF:this._err(Vf.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=km.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:this.state=km.BEFORE_DOCTYPE_NAME;break;case $f.GREATER_THAN_SIGN:this.state=km.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case $f.EOF:{this._err(Vf.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(Vf.missingWhitespaceBeforeDoctypeName),this.state=km.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(wm(e))this._createDoctypeToken(String.fromCharCode(Em(e))),this.state=km.DOCTYPE_NAME;else switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),this._createDoctypeToken(Ff),this.state=km.DOCTYPE_NAME;break;case $f.GREATER_THAN_SIGN:{this._err(Vf.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=km.DATA;break}case $f.EOF:{this._err(Vf.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=km.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:this.state=km.AFTER_DOCTYPE_NAME;break;case $f.GREATER_THAN_SIGN:this.state=km.DATA,this.emitCurrentDoctype(t);break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),t.name+=Ff;break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(wm(e)?Em(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:break;case $f.GREATER_THAN_SIGN:this.state=km.DATA,this.emitCurrentDoctype(t);break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(Uf,!1)?this.state=km.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Xf,!1)?this.state=km.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Vf.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=km.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:this.state=km.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case $f.QUOTATION_MARK:this._err(Vf.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=km.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case $f.APOSTROPHE:this._err(Vf.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=km.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case $f.GREATER_THAN_SIGN:this._err(Vf.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=km.DATA,this.emitCurrentDoctype(t);break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Vf.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=km.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:break;case $f.QUOTATION_MARK:t.publicId="",this.state=km.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case $f.APOSTROPHE:t.publicId="",this.state=km.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case $f.GREATER_THAN_SIGN:this._err(Vf.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=km.DATA,this.emitCurrentDoctype(t);break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Vf.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=km.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case $f.QUOTATION_MARK:this.state=km.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),t.publicId+=Ff;break;case $f.GREATER_THAN_SIGN:this._err(Vf.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=km.DATA;break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case $f.APOSTROPHE:this.state=km.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),t.publicId+=Ff;break;case $f.GREATER_THAN_SIGN:this._err(Vf.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=km.DATA;break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:this.state=km.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case $f.GREATER_THAN_SIGN:this.state=km.DATA,this.emitCurrentDoctype(t);break;case $f.QUOTATION_MARK:this._err(Vf.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=km.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $f.APOSTROPHE:this._err(Vf.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=km.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Vf.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=km.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:break;case $f.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=km.DATA;break;case $f.QUOTATION_MARK:t.systemId="",this.state=km.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $f.APOSTROPHE:t.systemId="",this.state=km.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Vf.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=km.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:this.state=km.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case $f.QUOTATION_MARK:this._err(Vf.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=km.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $f.APOSTROPHE:this._err(Vf.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=km.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $f.GREATER_THAN_SIGN:this._err(Vf.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=km.DATA,this.emitCurrentDoctype(t);break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Vf.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=km.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:break;case $f.QUOTATION_MARK:t.systemId="",this.state=km.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $f.APOSTROPHE:t.systemId="",this.state=km.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $f.GREATER_THAN_SIGN:this._err(Vf.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=km.DATA,this.emitCurrentDoctype(t);break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Vf.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=km.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case $f.QUOTATION_MARK:this.state=km.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),t.systemId+=Ff;break;case $f.GREATER_THAN_SIGN:this._err(Vf.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=km.DATA;break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case $f.APOSTROPHE:this.state=km.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter),t.systemId+=Ff;break;case $f.GREATER_THAN_SIGN:this._err(Vf.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=km.DATA;break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case $f.SPACE:case $f.LINE_FEED:case $f.TABULATION:case $f.FORM_FEED:break;case $f.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=km.DATA;break;case $f.EOF:this._err(Vf.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Vf.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=km.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case $f.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=km.DATA;break;case $f.NULL:this._err(Vf.unexpectedNullCharacter);break;case $f.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case $f.RIGHT_SQUARE_BRACKET:this.state=km.CDATA_SECTION_BRACKET;break;case $f.EOF:this._err(Vf.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===$f.RIGHT_SQUARE_BRACKET?this.state=km.CDATA_SECTION_END:(this._emitChars("]"),this.state=km.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case $f.GREATER_THAN_SIGN:this.state=km.DATA;break;case $f.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=km.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference($f.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Tm(this.preprocessor.peek(1))?km.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){Tm(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===$f.SEMICOLON&&this._err(Vf.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const Dm=new Set([gm.DD,gm.DT,gm.LI,gm.OPTGROUP,gm.OPTION,gm.P,gm.RB,gm.RP,gm.RT,gm.RTC]),Mm=new Set([...Dm,gm.CAPTION,gm.COLGROUP,gm.TBODY,gm.TD,gm.TFOOT,gm.TH,gm.THEAD,gm.TR]),Nm=new Set([gm.APPLET,gm.CAPTION,gm.HTML,gm.MARQUEE,gm.OBJECT,gm.TABLE,gm.TD,gm.TEMPLATE,gm.TH]),Rm=new Set([...Nm,gm.OL,gm.UL]),Qm=new Set([...Nm,gm.BUTTON]),Im=new Set([gm.ANNOTATION_XML,gm.MI,gm.MN,gm.MO,gm.MS,gm.MTEXT]),Lm=new Set([gm.DESC,gm.FOREIGN_OBJECT,gm.TITLE]),Fm=new Set([gm.TR,gm.TEMPLATE,gm.HTML]),$m=new Set([gm.TBODY,gm.TFOOT,gm.THEAD,gm.TEMPLATE,gm.HTML]),Bm=new Set([gm.TABLE,gm.TEMPLATE,gm.HTML]),zm=new Set([gm.TD,gm.TH]);class qm{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=gm.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===gm.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===dm.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==dm.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(xm,dm.HTML)}popUntilTableCellPopped(){this.popUntilPopped(zm,dm.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Bm,dm.HTML)}clearBackToTableBodyContext(){this.clearBackTo($m,dm.HTML)}clearBackToTableRowContext(){this.clearBackTo(Fm,dm.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===gm.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===gm.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case dm.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case dm.SVG:if(Lm.has(r))return!1;break;case dm.MATHML:if(Im.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Nm)}hasInListItemScope(e){return this.hasInDynamicScope(e,Rm)}hasInButtonScope(e){return this.hasInDynamicScope(e,Qm)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case dm.HTML:if(xm.has(t))return!0;if(Nm.has(t))return!1;break;case dm.SVG:if(Lm.has(t))return!1;break;case dm.MATHML:if(Im.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===dm.HTML)switch(this.tagIDs[t]){case e:return!0;case gm.TABLE:case gm.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===dm.HTML)switch(this.tagIDs[e]){case gm.TBODY:case gm.THEAD:case gm.TFOOT:return!0;case gm.TABLE:case gm.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===dm.HTML)switch(this.tagIDs[t]){case e:return!0;case gm.OPTION:case gm.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&Dm.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&Mm.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&Mm.has(this.currentTagId);)this.pop()}}var Hm;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(Hm||(Hm={}));const Um={type:Hm.Marker};class Xm{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let s=0;s<this.entries.length;s++){const e=this.entries[s];if(e.type===Hm.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===i&&this.treeAdapter.getNamespaceURI(t)===o){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:s,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map(e=>[e.name,e.value]));let i=0;for(let o=0;o<n.length;o++){const e=n[o];e.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1,i>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(Um)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Hm.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Hm.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Um);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===Hm.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===Hm.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===Hm.Element&&t.element===e)}}const jm={createDocument:()=>({nodeName:"#document",mode:fm.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const i=e.childNodes.find(e=>"#documentType"===e.nodeName);if(i)i.name=t,i.publicId=n,i.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};jm.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(jm.isTextNode(n))return void(n.value+=t)}jm.appendChild(e,jm.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&jm.isTextNode(r)?r.value+=t:jm.insertBefore(e,jm.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Zm="html",Ym=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Vm=[...Ym,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Gm=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Wm=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Km=[...Wm,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Jm(e,t){return t.some(t=>e.startsWith(t))}const eg="text/html",tg="application/xhtml+xml",ng=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),rg=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:dm.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:dm.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:dm.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:dm.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:dm.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:dm.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:dm.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:dm.XML}],["xml:space",{prefix:"xml",name:"space",namespace:dm.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:dm.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:dm.XMLNS}]]),ig=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),og=new Set([gm.B,gm.BIG,gm.BLOCKQUOTE,gm.BODY,gm.BR,gm.CENTER,gm.CODE,gm.DD,gm.DIV,gm.DL,gm.DT,gm.EM,gm.EMBED,gm.H1,gm.H2,gm.H3,gm.H4,gm.H5,gm.H6,gm.HEAD,gm.HR,gm.I,gm.IMG,gm.LI,gm.LISTING,gm.MENU,gm.META,gm.NOBR,gm.OL,gm.P,gm.PRE,gm.RUBY,gm.S,gm.SMALL,gm.SPAN,gm.STRONG,gm.STRIKE,gm.SUB,gm.SUP,gm.TABLE,gm.TT,gm.U,gm.UL,gm.VAR]);function sg(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function ag(e){for(let t=0;t<e.attrs.length;t++){const n=ng.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function lg(e){for(let t=0;t<e.attrs.length;t++){const n=rg.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function cg(e,t,n,r){return(!r||r===dm.HTML)&&function(e,t,n){if(t===dm.MATHML&&e===gm.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===pm.ENCODING){const e=n[r].value.toLowerCase();return e===eg||e===tg}return t===dm.SVG&&(e===gm.FOREIGN_OBJECT||e===gm.DESC||e===gm.TITLE)}(e,t,n)||(!r||r===dm.MATHML)&&function(e,t){return t===dm.MATHML&&(e===gm.MI||e===gm.MO||e===gm.MN||e===gm.MS||e===gm.MTEXT)}(e,t)}var ug;!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(ug||(ug={}));const hg={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},dg=new Set([gm.TABLE,gm.TBODY,gm.TFOOT,gm.THEAD,gm.TR]),pg={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:jm,onParseError:null};class fg{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=ug.INITIAL,this.originalInsertionMode=ug.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...pg,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!==t&&void 0!==t?t:this.treeAdapter.createDocument(),this.tokenizer=new Pm(this.options,this),this.activeFormattingElements=new Xm(this.treeAdapter),this.fragmentContextID=n?bm(this.treeAdapter.getTagName(n)):gm.UNKNOWN,this._setContextModes(null!==n&&void 0!==n?n:this.document,this.fragmentContextID),this.openElements=new qm(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...pg,...t};null!==e&&void 0!==e||(e=n.treeAdapter.createElement(mm.TEMPLATE,dm.HTML,[]));const r=n.treeAdapter.createElement("documentmock",dm.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===gm.TEMPLATE&&i.tmplInsertionModeStack.unshift(ug.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const i=null!==(r=e.location)&&void 0!==r?r:hg,o={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===dm.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,dm.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ug.TEXT}switchToPlaintextParsing(){this.insertionMode=ug.TEXT,this.originalInsertionMode=ug.IN_BODY,this.tokenizer.state=Sm.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===mm.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===dm.HTML)switch(this.fragmentContextID){case gm.TITLE:case gm.TEXTAREA:this.tokenizer.state=Sm.RCDATA;break;case gm.STYLE:case gm.XMP:case gm.IFRAME:case gm.NOEMBED:case gm.NOFRAMES:case gm.NOSCRIPT:this.tokenizer.state=Sm.RAWTEXT;break;case gm.SCRIPT:this.tokenizer.state=Sm.SCRIPT_DATA;break;case gm.PLAINTEXT:this.tokenizer.state=Sm.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!==t&&void 0!==t?t:this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,dm.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,dm.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(mm.HTML,dm.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,gm.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,o=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===Wf.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==gm.SVG||this.treeAdapter.getTagName(t)!==mm.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==dm.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===gm.MGLYPH||e.tagID===gm.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,dm.HTML))}_processToken(e){switch(e.type){case Wf.CHARACTER:this.onCharacter(e);break;case Wf.NULL_CHARACTER:this.onNullCharacter(e);break;case Wf.COMMENT:this.onComment(e);break;case Wf.DOCTYPE:this.onDoctype(e);break;case Wf.START_TAG:this._processStartTag(e);break;case Wf.END_TAG:this.onEndTag(e);break;case Wf.EOF:this.onEof(e);break;case Wf.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return cg(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(e=>e.type===Hm.Marker||this.openElements.contains(e.element));for(let n=-1===t?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ug.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(gm.P),this.openElements.popUntilTagNamePopped(gm.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case gm.TR:return void(this.insertionMode=ug.IN_ROW);case gm.TBODY:case gm.THEAD:case gm.TFOOT:return void(this.insertionMode=ug.IN_TABLE_BODY);case gm.CAPTION:return void(this.insertionMode=ug.IN_CAPTION);case gm.COLGROUP:return void(this.insertionMode=ug.IN_COLUMN_GROUP);case gm.TABLE:return void(this.insertionMode=ug.IN_TABLE);case gm.BODY:return void(this.insertionMode=ug.IN_BODY);case gm.FRAMESET:return void(this.insertionMode=ug.IN_FRAMESET);case gm.SELECT:return void this._resetInsertionModeForSelect(e);case gm.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case gm.HTML:return void(this.insertionMode=this.headElement?ug.AFTER_HEAD:ug.BEFORE_HEAD);case gm.TD:case gm.TH:if(e>0)return void(this.insertionMode=ug.IN_CELL);break;case gm.HEAD:if(e>0)return void(this.insertionMode=ug.IN_HEAD)}this.insertionMode=ug.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===gm.TEMPLATE)break;if(e===gm.TABLE)return void(this.insertionMode=ug.IN_SELECT_IN_TABLE)}this.insertionMode=ug.IN_SELECT}_isElementCausesFosterParenting(e){return dg.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case gm.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===dm.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case gm.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return ym[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case ug.INITIAL:wg(this,e);break;case ug.BEFORE_HTML:Ag(this,e);break;case ug.BEFORE_HEAD:Tg(this,e);break;case ug.IN_HEAD:_g(this,e);break;case ug.IN_HEAD_NO_SCRIPT:Pg(this,e);break;case ug.AFTER_HEAD:Dg(this,e);break;case ug.IN_BODY:case ug.IN_CAPTION:case ug.IN_CELL:case ug.IN_TEMPLATE:Rg(this,e);break;case ug.TEXT:case ug.IN_SELECT:case ug.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case ug.IN_TABLE:case ug.IN_TABLE_BODY:case ug.IN_ROW:Hg(this,e);break;case ug.IN_TABLE_TEXT:Yg(this,e);break;case ug.IN_COLUMN_GROUP:Kg(this,e);break;case ug.AFTER_BODY:aO(this,e);break;case ug.AFTER_AFTER_BODY:lO(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=Ff,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case ug.INITIAL:wg(this,e);break;case ug.BEFORE_HTML:Ag(this,e);break;case ug.BEFORE_HEAD:Tg(this,e);break;case ug.IN_HEAD:_g(this,e);break;case ug.IN_HEAD_NO_SCRIPT:Pg(this,e);break;case ug.AFTER_HEAD:Dg(this,e);break;case ug.TEXT:this._insertCharacters(e);break;case ug.IN_TABLE:case ug.IN_TABLE_BODY:case ug.IN_ROW:Hg(this,e);break;case ug.IN_COLUMN_GROUP:Kg(this,e);break;case ug.AFTER_BODY:aO(this,e);break;case ug.AFTER_AFTER_BODY:lO(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)kg(this,e);else switch(this.insertionMode){case ug.INITIAL:case ug.BEFORE_HTML:case ug.BEFORE_HEAD:case ug.IN_HEAD:case ug.IN_HEAD_NO_SCRIPT:case ug.AFTER_HEAD:case ug.IN_BODY:case ug.IN_TABLE:case ug.IN_CAPTION:case ug.IN_COLUMN_GROUP:case ug.IN_TABLE_BODY:case ug.IN_ROW:case ug.IN_CELL:case ug.IN_SELECT:case ug.IN_SELECT_IN_TABLE:case ug.IN_TEMPLATE:case ug.IN_FRAMESET:case ug.AFTER_FRAMESET:kg(this,e);break;case ug.IN_TABLE_TEXT:Vg(this,e);break;case ug.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case ug.AFTER_AFTER_BODY:case ug.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case ug.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?fm.QUIRKS:function(e){if(e.name!==Zm)return fm.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return fm.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),Gm.has(n))return fm.QUIRKS;let e=null===t?Vm:Ym;if(Jm(n,e))return fm.QUIRKS;if(e=null===t?Wm:Km,Jm(n,e))return fm.LIMITED_QUIRKS}return fm.NO_QUIRKS}(t);(function(e){return e.name===Zm&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,Vf.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=ug.BEFORE_HTML}(this,e);break;case ug.BEFORE_HEAD:case ug.IN_HEAD:case ug.IN_HEAD_NO_SCRIPT:case ug.AFTER_HEAD:this._err(e,Vf.misplacedDoctype);break;case ug.IN_TABLE_TEXT:Vg(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Vf.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===gm.FONT&&e.attrs.some(e=>{let{name:t}=e;return t===pm.COLOR||t===pm.SIZE||t===pm.FACE})||og.has(t)}(t))cO(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===dm.MATHML?sg(t):r===dm.SVG&&(!function(e){const t=ig.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=bm(e.tagName))}(t),ag(t)),lg(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case ug.INITIAL:wg(this,e);break;case ug.BEFORE_HTML:!function(e,t){t.tagID===gm.HTML?(e._insertElement(t,dm.HTML),e.insertionMode=ug.BEFORE_HEAD):Ag(e,t)}(this,e);break;case ug.BEFORE_HEAD:!function(e,t){switch(t.tagID){case gm.HTML:$g(e,t);break;case gm.HEAD:e._insertElement(t,dm.HTML),e.headElement=e.openElements.current,e.insertionMode=ug.IN_HEAD;break;default:Tg(e,t)}}(this,e);break;case ug.IN_HEAD:Eg(this,e);break;case ug.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case gm.HTML:$g(e,t);break;case gm.BASEFONT:case gm.BGSOUND:case gm.HEAD:case gm.LINK:case gm.META:case gm.NOFRAMES:case gm.STYLE:Eg(e,t);break;case gm.NOSCRIPT:e._err(t,Vf.nestedNoscriptInHead);break;default:Pg(e,t)}}(this,e);break;case ug.AFTER_HEAD:!function(e,t){switch(t.tagID){case gm.HTML:$g(e,t);break;case gm.BODY:e._insertElement(t,dm.HTML),e.framesetOk=!1,e.insertionMode=ug.IN_BODY;break;case gm.FRAMESET:e._insertElement(t,dm.HTML),e.insertionMode=ug.IN_FRAMESET;break;case gm.BASE:case gm.BASEFONT:case gm.BGSOUND:case gm.LINK:case gm.META:case gm.NOFRAMES:case gm.SCRIPT:case gm.STYLE:case gm.TEMPLATE:case gm.TITLE:e._err(t,Vf.abandonedHeadElementChild),e.openElements.push(e.headElement,gm.HEAD),Eg(e,t),e.openElements.remove(e.headElement);break;case gm.HEAD:e._err(t,Vf.misplacedStartTagForHeadElement);break;default:Dg(e,t)}}(this,e);break;case ug.IN_BODY:$g(this,e);break;case ug.IN_TABLE:Ug(this,e);break;case ug.IN_TABLE_TEXT:Vg(this,e);break;case ug.IN_CAPTION:!function(e,t){const n=t.tagID;Gg.has(n)?e.openElements.hasInTableScope(gm.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(gm.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ug.IN_TABLE,Ug(e,t)):$g(e,t)}(this,e);break;case ug.IN_COLUMN_GROUP:Wg(this,e);break;case ug.IN_TABLE_BODY:Jg(this,e);break;case ug.IN_ROW:tO(this,e);break;case ug.IN_CELL:!function(e,t){const n=t.tagID;Gg.has(n)?(e.openElements.hasInTableScope(gm.TD)||e.openElements.hasInTableScope(gm.TH))&&(e._closeTableCell(),tO(e,t)):$g(e,t)}(this,e);break;case ug.IN_SELECT:rO(this,e);break;case ug.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===gm.CAPTION||n===gm.TABLE||n===gm.TBODY||n===gm.TFOOT||n===gm.THEAD||n===gm.TR||n===gm.TD||n===gm.TH?(e.openElements.popUntilTagNamePopped(gm.SELECT),e._resetInsertionMode(),e._processStartTag(t)):rO(e,t)}(this,e);break;case ug.IN_TEMPLATE:!function(e,t){switch(t.tagID){case gm.BASE:case gm.BASEFONT:case gm.BGSOUND:case gm.LINK:case gm.META:case gm.NOFRAMES:case gm.SCRIPT:case gm.STYLE:case gm.TEMPLATE:case gm.TITLE:Eg(e,t);break;case gm.CAPTION:case gm.COLGROUP:case gm.TBODY:case gm.TFOOT:case gm.THEAD:e.tmplInsertionModeStack[0]=ug.IN_TABLE,e.insertionMode=ug.IN_TABLE,Ug(e,t);break;case gm.COL:e.tmplInsertionModeStack[0]=ug.IN_COLUMN_GROUP,e.insertionMode=ug.IN_COLUMN_GROUP,Wg(e,t);break;case gm.TR:e.tmplInsertionModeStack[0]=ug.IN_TABLE_BODY,e.insertionMode=ug.IN_TABLE_BODY,Jg(e,t);break;case gm.TD:case gm.TH:e.tmplInsertionModeStack[0]=ug.IN_ROW,e.insertionMode=ug.IN_ROW,tO(e,t);break;default:e.tmplInsertionModeStack[0]=ug.IN_BODY,e.insertionMode=ug.IN_BODY,$g(e,t)}}(this,e);break;case ug.AFTER_BODY:!function(e,t){t.tagID===gm.HTML?$g(e,t):aO(e,t)}(this,e);break;case ug.IN_FRAMESET:!function(e,t){switch(t.tagID){case gm.HTML:$g(e,t);break;case gm.FRAMESET:e._insertElement(t,dm.HTML);break;case gm.FRAME:e._appendElement(t,dm.HTML),t.ackSelfClosing=!0;break;case gm.NOFRAMES:Eg(e,t)}}(this,e);break;case ug.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case gm.HTML:$g(e,t);break;case gm.NOFRAMES:Eg(e,t)}}(this,e);break;case ug.AFTER_AFTER_BODY:!function(e,t){t.tagID===gm.HTML?$g(e,t):lO(e,t)}(this,e);break;case ug.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case gm.HTML:$g(e,t);break;case gm.NOFRAMES:Eg(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===gm.P||t.tagID===gm.BR)return cO(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===dm.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case ug.INITIAL:wg(this,e);break;case ug.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==gm.HTML&&n!==gm.HEAD&&n!==gm.BODY&&n!==gm.BR||Ag(e,t)}(this,e);break;case ug.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===gm.HEAD||n===gm.BODY||n===gm.HTML||n===gm.BR?Tg(e,t):e._err(t,Vf.endTagWithoutMatchingOpenElement)}(this,e);break;case ug.IN_HEAD:!function(e,t){switch(t.tagID){case gm.HEAD:e.openElements.pop(),e.insertionMode=ug.AFTER_HEAD;break;case gm.BODY:case gm.BR:case gm.HTML:_g(e,t);break;case gm.TEMPLATE:Cg(e,t);break;default:e._err(t,Vf.endTagWithoutMatchingOpenElement)}}(this,e);break;case ug.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case gm.NOSCRIPT:e.openElements.pop(),e.insertionMode=ug.IN_HEAD;break;case gm.BR:Pg(e,t);break;default:e._err(t,Vf.endTagWithoutMatchingOpenElement)}}(this,e);break;case ug.AFTER_HEAD:!function(e,t){switch(t.tagID){case gm.BODY:case gm.HTML:case gm.BR:Dg(e,t);break;case gm.TEMPLATE:Cg(e,t);break;default:e._err(t,Vf.endTagWithoutMatchingOpenElement)}}(this,e);break;case ug.IN_BODY:zg(this,e);break;case ug.TEXT:!function(e,t){var n;t.tagID===gm.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case ug.IN_TABLE:Xg(this,e);break;case ug.IN_TABLE_TEXT:Vg(this,e);break;case ug.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case gm.CAPTION:case gm.TABLE:e.openElements.hasInTableScope(gm.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(gm.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ug.IN_TABLE,n===gm.TABLE&&Xg(e,t));break;case gm.BODY:case gm.COL:case gm.COLGROUP:case gm.HTML:case gm.TBODY:case gm.TD:case gm.TFOOT:case gm.TH:case gm.THEAD:case gm.TR:break;default:zg(e,t)}}(this,e);break;case ug.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case gm.COLGROUP:e.openElements.currentTagId===gm.COLGROUP&&(e.openElements.pop(),e.insertionMode=ug.IN_TABLE);break;case gm.TEMPLATE:Cg(e,t);break;case gm.COL:break;default:Kg(e,t)}}(this,e);break;case ug.IN_TABLE_BODY:eO(this,e);break;case ug.IN_ROW:nO(this,e);break;case ug.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case gm.TD:case gm.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ug.IN_ROW);break;case gm.TABLE:case gm.TBODY:case gm.TFOOT:case gm.THEAD:case gm.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),nO(e,t));break;case gm.BODY:case gm.CAPTION:case gm.COL:case gm.COLGROUP:case gm.HTML:break;default:zg(e,t)}}(this,e);break;case ug.IN_SELECT:iO(this,e);break;case ug.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===gm.CAPTION||n===gm.TABLE||n===gm.TBODY||n===gm.TFOOT||n===gm.THEAD||n===gm.TR||n===gm.TD||n===gm.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(gm.SELECT),e._resetInsertionMode(),e.onEndTag(t)):iO(e,t)}(this,e);break;case ug.IN_TEMPLATE:!function(e,t){t.tagID===gm.TEMPLATE&&Cg(e,t)}(this,e);break;case ug.AFTER_BODY:sO(this,e);break;case ug.IN_FRAMESET:!function(e,t){t.tagID!==gm.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===gm.FRAMESET||(e.insertionMode=ug.AFTER_FRAMESET))}(this,e);break;case ug.AFTER_FRAMESET:!function(e,t){t.tagID===gm.HTML&&(e.insertionMode=ug.AFTER_AFTER_FRAMESET)}(this,e);break;case ug.AFTER_AFTER_BODY:lO(this,e)}}onEof(e){switch(this.insertionMode){case ug.INITIAL:wg(this,e);break;case ug.BEFORE_HTML:Ag(this,e);break;case ug.BEFORE_HEAD:Tg(this,e);break;case ug.IN_HEAD:_g(this,e);break;case ug.IN_HEAD_NO_SCRIPT:Pg(this,e);break;case ug.AFTER_HEAD:Dg(this,e);break;case ug.IN_BODY:case ug.IN_TABLE:case ug.IN_CAPTION:case ug.IN_COLUMN_GROUP:case ug.IN_TABLE_BODY:case ug.IN_ROW:case ug.IN_CELL:case ug.IN_SELECT:case ug.IN_SELECT_IN_TABLE:qg(this,e);break;case ug.TEXT:!function(e,t){e._err(t,Vf.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case ug.IN_TABLE_TEXT:Vg(this,e);break;case ug.IN_TEMPLATE:oO(this,e);break;case ug.AFTER_BODY:case ug.IN_FRAMESET:case ug.AFTER_FRAMESET:case ug.AFTER_AFTER_BODY:case ug.AFTER_AFTER_FRAMESET:Sg(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===$f.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case ug.IN_HEAD:case ug.IN_HEAD_NO_SCRIPT:case ug.AFTER_HEAD:case ug.TEXT:case ug.IN_COLUMN_GROUP:case ug.IN_SELECT:case ug.IN_SELECT_IN_TABLE:case ug.IN_FRAMESET:case ug.AFTER_FRAMESET:this._insertCharacters(e);break;case ug.IN_BODY:case ug.IN_CAPTION:case ug.IN_CELL:case ug.IN_TEMPLATE:case ug.AFTER_BODY:case ug.AFTER_AFTER_BODY:case ug.AFTER_AFTER_FRAMESET:Ng(this,e);break;case ug.IN_TABLE:case ug.IN_TABLE_BODY:case ug.IN_ROW:Hg(this,e);break;case ug.IN_TABLE_TEXT:Zg(this,e)}}}function mg(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Bg(e,t),n}function gg(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Og(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,s=i;s!==n;o++,s=i){i=e.openElements.getCommonAncestor(s);const n=e.activeFormattingElements.getElementEntry(s),a=n&&o>=3;!n||a?(a&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=bg(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function bg(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function vg(e,t,n){const r=bm(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===gm.TEMPLATE&&i===dm.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function yg(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function xg(e,t){for(let n=0;n<8;n++){const n=mg(e,t);if(!n)break;const r=gg(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const i=Og(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),o&&vg(e,o,i),yg(e,r,n)}}function kg(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Sg(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function wg(e,t){e._err(t,Vf.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,fm.QUIRKS),e.insertionMode=ug.BEFORE_HTML,e._processToken(t)}function Ag(e,t){e._insertFakeRootElement(),e.insertionMode=ug.BEFORE_HEAD,e._processToken(t)}function Tg(e,t){e._insertFakeElement(mm.HEAD,gm.HEAD),e.headElement=e.openElements.current,e.insertionMode=ug.IN_HEAD,e._processToken(t)}function Eg(e,t){switch(t.tagID){case gm.HTML:$g(e,t);break;case gm.BASE:case gm.BASEFONT:case gm.BGSOUND:case gm.LINK:case gm.META:e._appendElement(t,dm.HTML),t.ackSelfClosing=!0;break;case gm.TITLE:e._switchToTextParsing(t,Sm.RCDATA);break;case gm.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Sm.RAWTEXT):(e._insertElement(t,dm.HTML),e.insertionMode=ug.IN_HEAD_NO_SCRIPT);break;case gm.NOFRAMES:case gm.STYLE:e._switchToTextParsing(t,Sm.RAWTEXT);break;case gm.SCRIPT:e._switchToTextParsing(t,Sm.SCRIPT_DATA);break;case gm.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ug.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ug.IN_TEMPLATE);break;case gm.HEAD:e._err(t,Vf.misplacedStartTagForHeadElement);break;default:_g(e,t)}}function Cg(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==gm.TEMPLATE&&e._err(t,Vf.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(gm.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Vf.endTagWithoutMatchingOpenElement)}function _g(e,t){e.openElements.pop(),e.insertionMode=ug.AFTER_HEAD,e._processToken(t)}function Pg(e,t){const n=t.type===Wf.EOF?Vf.openElementsLeftAfterEof:Vf.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=ug.IN_HEAD,e._processToken(t)}function Dg(e,t){e._insertFakeElement(mm.BODY,gm.BODY),e.insertionMode=ug.IN_BODY,Mg(e,t)}function Mg(e,t){switch(t.type){case Wf.CHARACTER:Rg(e,t);break;case Wf.WHITESPACE_CHARACTER:Ng(e,t);break;case Wf.COMMENT:kg(e,t);break;case Wf.START_TAG:$g(e,t);break;case Wf.END_TAG:zg(e,t);break;case Wf.EOF:qg(e,t)}}function Ng(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Rg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Qg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,dm.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ig(e){const t=Kf(e,pm.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function Lg(e,t){e._switchToTextParsing(t,Sm.RAWTEXT)}function Fg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,dm.HTML)}function $g(e,t){switch(t.tagID){case gm.I:case gm.S:case gm.B:case gm.U:case gm.EM:case gm.TT:case gm.BIG:case gm.CODE:case gm.FONT:case gm.SMALL:case gm.STRIKE:case gm.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,dm.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case gm.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(mm.A);n&&(xg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,dm.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case gm.H1:case gm.H2:case gm.H3:case gm.H4:case gm.H5:case gm.H6:!function(e,t){e.openElements.hasInButtonScope(gm.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&xm.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,dm.HTML)}(e,t);break;case gm.P:case gm.DL:case gm.OL:case gm.UL:case gm.DIV:case gm.DIR:case gm.NAV:case gm.MAIN:case gm.MENU:case gm.ASIDE:case gm.CENTER:case gm.FIGURE:case gm.FOOTER:case gm.HEADER:case gm.HGROUP:case gm.DIALOG:case gm.DETAILS:case gm.ADDRESS:case gm.ARTICLE:case gm.SEARCH:case gm.SECTION:case gm.SUMMARY:case gm.FIELDSET:case gm.BLOCKQUOTE:case gm.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(gm.P)&&e._closePElement(),e._insertElement(t,dm.HTML)}(e,t);break;case gm.LI:case gm.DD:case gm.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===gm.LI&&t===gm.LI||(n===gm.DD||n===gm.DT)&&(t===gm.DD||t===gm.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==gm.ADDRESS&&t!==gm.DIV&&t!==gm.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(gm.P)&&e._closePElement(),e._insertElement(t,dm.HTML)}(e,t);break;case gm.BR:case gm.IMG:case gm.WBR:case gm.AREA:case gm.EMBED:case gm.KEYGEN:Qg(e,t);break;case gm.HR:!function(e,t){e.openElements.hasInButtonScope(gm.P)&&e._closePElement(),e._appendElement(t,dm.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case gm.RB:case gm.RTC:!function(e,t){e.openElements.hasInScope(gm.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,dm.HTML)}(e,t);break;case gm.RT:case gm.RP:!function(e,t){e.openElements.hasInScope(gm.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(gm.RTC),e._insertElement(t,dm.HTML)}(e,t);break;case gm.PRE:case gm.LISTING:!function(e,t){e.openElements.hasInButtonScope(gm.P)&&e._closePElement(),e._insertElement(t,dm.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case gm.XMP:!function(e,t){e.openElements.hasInButtonScope(gm.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Sm.RAWTEXT)}(e,t);break;case gm.SVG:!function(e,t){e._reconstructActiveFormattingElements(),ag(t),lg(t),t.selfClosing?e._appendElement(t,dm.SVG):e._insertElement(t,dm.SVG),t.ackSelfClosing=!0}(e,t);break;case gm.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case gm.BASE:case gm.LINK:case gm.META:case gm.STYLE:case gm.TITLE:case gm.SCRIPT:case gm.BGSOUND:case gm.BASEFONT:case gm.TEMPLATE:Eg(e,t);break;case gm.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case gm.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(gm.P)&&e._closePElement(),e._insertElement(t,dm.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case gm.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(gm.NOBR)&&(xg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,dm.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case gm.MATH:!function(e,t){e._reconstructActiveFormattingElements(),sg(t),lg(t),t.selfClosing?e._appendElement(t,dm.MATHML):e._insertElement(t,dm.MATHML),t.ackSelfClosing=!0}(e,t);break;case gm.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==fm.QUIRKS&&e.openElements.hasInButtonScope(gm.P)&&e._closePElement(),e._insertElement(t,dm.HTML),e.framesetOk=!1,e.insertionMode=ug.IN_TABLE}(e,t);break;case gm.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,dm.HTML),Ig(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case gm.PARAM:case gm.TRACK:case gm.SOURCE:!function(e,t){e._appendElement(t,dm.HTML),t.ackSelfClosing=!0}(e,t);break;case gm.IMAGE:!function(e,t){t.tagName=mm.IMG,t.tagID=gm.IMG,Qg(e,t)}(e,t);break;case gm.BUTTON:!function(e,t){e.openElements.hasInScope(gm.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(gm.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,dm.HTML),e.framesetOk=!1}(e,t);break;case gm.APPLET:case gm.OBJECT:case gm.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,dm.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case gm.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Sm.RAWTEXT)}(e,t);break;case gm.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,dm.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ug.IN_TABLE||e.insertionMode===ug.IN_CAPTION||e.insertionMode===ug.IN_TABLE_BODY||e.insertionMode===ug.IN_ROW||e.insertionMode===ug.IN_CELL?ug.IN_SELECT_IN_TABLE:ug.IN_SELECT}(e,t);break;case gm.OPTION:case gm.OPTGROUP:!function(e,t){e.openElements.currentTagId===gm.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,dm.HTML)}(e,t);break;case gm.NOEMBED:case gm.NOFRAMES:Lg(e,t);break;case gm.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,dm.HTML),e.insertionMode=ug.IN_FRAMESET)}(e,t);break;case gm.TEXTAREA:!function(e,t){e._insertElement(t,dm.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Sm.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ug.TEXT}(e,t);break;case gm.NOSCRIPT:e.options.scriptingEnabled?Lg(e,t):Fg(e,t);break;case gm.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(gm.P)&&e._closePElement(),e._insertElement(t,dm.HTML),e.tokenizer.state=Sm.PLAINTEXT}(e,t);break;case gm.COL:case gm.TH:case gm.TD:case gm.TR:case gm.HEAD:case gm.FRAME:case gm.TBODY:case gm.TFOOT:case gm.THEAD:case gm.CAPTION:case gm.COLGROUP:break;default:Fg(e,t)}}function Bg(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const t=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==gm.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(t,o))break}}function zg(e,t){switch(t.tagID){case gm.A:case gm.B:case gm.I:case gm.S:case gm.U:case gm.EM:case gm.TT:case gm.BIG:case gm.CODE:case gm.FONT:case gm.NOBR:case gm.SMALL:case gm.STRIKE:case gm.STRONG:xg(e,t);break;case gm.P:!function(e){e.openElements.hasInButtonScope(gm.P)||e._insertFakeElement(mm.P,gm.P),e._closePElement()}(e);break;case gm.DL:case gm.UL:case gm.OL:case gm.DIR:case gm.DIV:case gm.NAV:case gm.PRE:case gm.MAIN:case gm.MENU:case gm.ASIDE:case gm.BUTTON:case gm.CENTER:case gm.FIGURE:case gm.FOOTER:case gm.HEADER:case gm.HGROUP:case gm.DIALOG:case gm.ADDRESS:case gm.ARTICLE:case gm.DETAILS:case gm.SEARCH:case gm.SECTION:case gm.SUMMARY:case gm.LISTING:case gm.FIELDSET:case gm.BLOCKQUOTE:case gm.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case gm.LI:!function(e){e.openElements.hasInListItemScope(gm.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(gm.LI),e.openElements.popUntilTagNamePopped(gm.LI))}(e);break;case gm.DD:case gm.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case gm.H1:case gm.H2:case gm.H3:case gm.H4:case gm.H5:case gm.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case gm.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(mm.BR,gm.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case gm.BODY:!function(e,t){if(e.openElements.hasInScope(gm.BODY)&&(e.insertionMode=ug.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case gm.HTML:!function(e,t){e.openElements.hasInScope(gm.BODY)&&(e.insertionMode=ug.AFTER_BODY,sO(e,t))}(e,t);break;case gm.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(gm.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(gm.FORM):n&&e.openElements.remove(n))}(e);break;case gm.APPLET:case gm.OBJECT:case gm.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case gm.TEMPLATE:Cg(e,t);break;default:Bg(e,t)}}function qg(e,t){e.tmplInsertionModeStack.length>0?oO(e,t):Sg(e,t)}function Hg(e,t){if(void 0!==e.openElements.currentTagId&&dg.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ug.IN_TABLE_TEXT,t.type){case Wf.CHARACTER:Yg(e,t);break;case Wf.WHITESPACE_CHARACTER:Zg(e,t)}else jg(e,t)}function Ug(e,t){switch(t.tagID){case gm.TD:case gm.TH:case gm.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(mm.TBODY,gm.TBODY),e.insertionMode=ug.IN_TABLE_BODY,Jg(e,t)}(e,t);break;case gm.STYLE:case gm.SCRIPT:case gm.TEMPLATE:Eg(e,t);break;case gm.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(mm.COLGROUP,gm.COLGROUP),e.insertionMode=ug.IN_COLUMN_GROUP,Wg(e,t)}(e,t);break;case gm.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,dm.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case gm.TABLE:!function(e,t){e.openElements.hasInTableScope(gm.TABLE)&&(e.openElements.popUntilTagNamePopped(gm.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case gm.TBODY:case gm.TFOOT:case gm.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,dm.HTML),e.insertionMode=ug.IN_TABLE_BODY}(e,t);break;case gm.INPUT:!function(e,t){Ig(t)?e._appendElement(t,dm.HTML):jg(e,t),t.ackSelfClosing=!0}(e,t);break;case gm.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,dm.HTML),e.insertionMode=ug.IN_CAPTION}(e,t);break;case gm.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,dm.HTML),e.insertionMode=ug.IN_COLUMN_GROUP}(e,t);break;default:jg(e,t)}}function Xg(e,t){switch(t.tagID){case gm.TABLE:e.openElements.hasInTableScope(gm.TABLE)&&(e.openElements.popUntilTagNamePopped(gm.TABLE),e._resetInsertionMode());break;case gm.TEMPLATE:Cg(e,t);break;case gm.BODY:case gm.CAPTION:case gm.COL:case gm.COLGROUP:case gm.HTML:case gm.TBODY:case gm.TD:case gm.TFOOT:case gm.TH:case gm.THEAD:case gm.TR:break;default:jg(e,t)}}function jg(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Mg(e,t),e.fosterParentingEnabled=n}function Zg(e,t){e.pendingCharacterTokens.push(t)}function Yg(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Vg(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)jg(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Gg=new Set([gm.CAPTION,gm.COL,gm.COLGROUP,gm.TBODY,gm.TD,gm.TFOOT,gm.TH,gm.THEAD,gm.TR]);function Wg(e,t){switch(t.tagID){case gm.HTML:$g(e,t);break;case gm.COL:e._appendElement(t,dm.HTML),t.ackSelfClosing=!0;break;case gm.TEMPLATE:Eg(e,t);break;default:Kg(e,t)}}function Kg(e,t){e.openElements.currentTagId===gm.COLGROUP&&(e.openElements.pop(),e.insertionMode=ug.IN_TABLE,e._processToken(t))}function Jg(e,t){switch(t.tagID){case gm.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,dm.HTML),e.insertionMode=ug.IN_ROW;break;case gm.TH:case gm.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(mm.TR,gm.TR),e.insertionMode=ug.IN_ROW,tO(e,t);break;case gm.CAPTION:case gm.COL:case gm.COLGROUP:case gm.TBODY:case gm.TFOOT:case gm.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ug.IN_TABLE,Ug(e,t));break;default:Ug(e,t)}}function eO(e,t){const n=t.tagID;switch(t.tagID){case gm.TBODY:case gm.TFOOT:case gm.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ug.IN_TABLE);break;case gm.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ug.IN_TABLE,Xg(e,t));break;case gm.BODY:case gm.CAPTION:case gm.COL:case gm.COLGROUP:case gm.HTML:case gm.TD:case gm.TH:case gm.TR:break;default:Xg(e,t)}}function tO(e,t){switch(t.tagID){case gm.TH:case gm.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,dm.HTML),e.insertionMode=ug.IN_CELL,e.activeFormattingElements.insertMarker();break;case gm.CAPTION:case gm.COL:case gm.COLGROUP:case gm.TBODY:case gm.TFOOT:case gm.THEAD:case gm.TR:e.openElements.hasInTableScope(gm.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ug.IN_TABLE_BODY,Jg(e,t));break;default:Ug(e,t)}}function nO(e,t){switch(t.tagID){case gm.TR:e.openElements.hasInTableScope(gm.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ug.IN_TABLE_BODY);break;case gm.TABLE:e.openElements.hasInTableScope(gm.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ug.IN_TABLE_BODY,eO(e,t));break;case gm.TBODY:case gm.TFOOT:case gm.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(gm.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ug.IN_TABLE_BODY,eO(e,t));break;case gm.BODY:case gm.CAPTION:case gm.COL:case gm.COLGROUP:case gm.HTML:case gm.TD:case gm.TH:break;default:Xg(e,t)}}function rO(e,t){switch(t.tagID){case gm.HTML:$g(e,t);break;case gm.OPTION:e.openElements.currentTagId===gm.OPTION&&e.openElements.pop(),e._insertElement(t,dm.HTML);break;case gm.OPTGROUP:e.openElements.currentTagId===gm.OPTION&&e.openElements.pop(),e.openElements.currentTagId===gm.OPTGROUP&&e.openElements.pop(),e._insertElement(t,dm.HTML);break;case gm.HR:e.openElements.currentTagId===gm.OPTION&&e.openElements.pop(),e.openElements.currentTagId===gm.OPTGROUP&&e.openElements.pop(),e._appendElement(t,dm.HTML),t.ackSelfClosing=!0;break;case gm.INPUT:case gm.KEYGEN:case gm.TEXTAREA:case gm.SELECT:e.openElements.hasInSelectScope(gm.SELECT)&&(e.openElements.popUntilTagNamePopped(gm.SELECT),e._resetInsertionMode(),t.tagID!==gm.SELECT&&e._processStartTag(t));break;case gm.SCRIPT:case gm.TEMPLATE:Eg(e,t)}}function iO(e,t){switch(t.tagID){case gm.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===gm.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===gm.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===gm.OPTGROUP&&e.openElements.pop();break;case gm.OPTION:e.openElements.currentTagId===gm.OPTION&&e.openElements.pop();break;case gm.SELECT:e.openElements.hasInSelectScope(gm.SELECT)&&(e.openElements.popUntilTagNamePopped(gm.SELECT),e._resetInsertionMode());break;case gm.TEMPLATE:Cg(e,t)}}function oO(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(gm.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Sg(e,t)}function sO(e,t){var n;if(t.tagID===gm.HTML){if(e.fragmentContext||(e.insertionMode=ug.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===gm.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else aO(e,t)}function aO(e,t){e.insertionMode=ug.IN_BODY,Mg(e,t)}function lO(e,t){e.insertionMode=ug.IN_BODY,Mg(e,t)}function cO(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==dm.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),String.prototype.codePointAt;function uO(e,t){return function(n){let r,i=0,o="";for(;r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]]),new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]),new Set([mm.AREA,mm.BASE,mm.BASEFONT,mm.BGSOUND,mm.BR,mm.COL,mm.EMBED,mm.FRAME,mm.HR,mm.IMG,mm.INPUT,mm.KEYGEN,mm.LINK,mm.META,mm.PARAM,mm.SOURCE,mm.TRACK,mm.WBR]);const hO=pO("end"),dO=pO("start");function pO(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}const fO=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,mO=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),gO={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function OO(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=tp("type",{handlers:{root:vO,element:yO,text:xO,comment:wO,doctype:kO,raw:AO},unknown:TO}),i={parser:n?new fg(gO):fg.getFragmentParser(void 0,gO),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),EO(i,dO());const o=function(e,t){const n=t||{};return Xp({file:n.file||void 0,location:!1,schema:"svg"===n.space?Ih:Qh,verbose:n.verbose||!1},e)}(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&Vu(o,"comment",function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}}),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function bO(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function vO(e,t){bO(e.children,t)}function yO(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Sm.PLAINTEXT)return;EO(t,dO(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:qp.html;i===qp.html&&"svg"===n&&(i=qp.svg);const o=function(e,t){const n=(t||Pf).space;return Mf(e,"svg"===n?wf:Sf)}({...e,children:[]},{space:i===qp.svg?"svg":"html"}),s={type:Wf.START_TAG,tagName:n,tagID:bm(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:_O(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),bO(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&If.includes(n))return;if(t.parser.tokenizer.state===Sm.PLAINTEXT)return;EO(t,hO(e));const r={type:Wf.END_TAG,tagName:n,tagID:bm(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:_O(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==Sm.RCDATA&&t.parser.tokenizer.state!==Sm.RAWTEXT&&t.parser.tokenizer.state!==Sm.SCRIPT_DATA||(t.parser.tokenizer.state=Sm.DATA)}(e,t)}function xO(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Wf.CHARACTER,chars:e.value,location:_O(e)};EO(t,dO(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function kO(e,t){const n={type:Wf.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:_O(e)};EO(t,dO(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function SO(e,t){t.stitches=!0;const n=function(e){return Np("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=OO({type:"root",children:e.children},t.options);n.children=r.children}wO({type:"comment",value:{stitch:n}},t)}function wO(e,t){const n=e.value,r={type:Wf.COMMENT,data:n,location:_O(e)};EO(t,dO(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function AO(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,CO(t,dO(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(fO,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function TO(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw mO.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}SO(n,t)}function EO(e,t){CO(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Sm.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function CO(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function _O(e){const t=dO(e)||{line:void 0,column:void 0,offset:void 0},n=hO(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function PO(e){return function(t,n){return OO(t,{...e,file:n})}}const DO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,MO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NO={};function RO(e,t){return((t||NO).jsx?MO:DO).test(e)}const QO={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var IO=n(9004);function LO(e){return e&&"object"===typeof e?"position"in e||"type"in e?$O(e.position):"start"in e||"end"in e?$O(e):"line"in e||"column"in e?FO(e):"":""}function FO(e){return BO(e&&e.line)+":"+BO(e&&e.column)}function $O(e){return FO(e&&e.start)+"-"+FO(e&&e.end)}function BO(e){return e&&"number"===typeof e?e:1}class zO extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.line:void 0,this.name=LO(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"===typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}zO.prototype.file="",zO.prototype.name="",zO.prototype.reason="",zO.prototype.message="",zO.prototype.stack="",zO.prototype.column=void 0,zO.prototype.line=void 0,zO.prototype.ancestors=void 0,zO.prototype.cause=void 0,zO.prototype.fatal=void 0,zO.prototype.place=void 0,zO.prototype.ruleId=void 0,zO.prototype.source=void 0;const qO={}.hasOwnProperty,HO=new Map,UO=/[A-Z]/g,XO=new Set(["table","tbody","thead","tfoot","tr"]),jO=new Set(["td","th"]),ZO="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function YO(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,i,o){const s=Array.isArray(i.children),a=dO(n);return t(r,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,i,o){const s=Array.isArray(i.children)?n:t;return o?s(r,i,o):s(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Ih:Qh,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=VO(i,e,void 0);return o&&"string"!==typeof o?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function VO(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=Ih,e.schema=i);e.ancestors.push(t);const o=eb(e,t.tagName,!1),s=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&qO.call(t.properties,i)){const o=JO(e,i,t.properties[i]);if(o){const[i,s]=o;e.tableCellAlignToStyle&&"align"===i&&"string"===typeof s&&jO.has(t.tagName)?r=s:n[i]=s}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let a=KO(e,t);XO.has(t.tagName)&&(a=a.filter(function(e){return"string"!==typeof e||!Zd(e)}));return GO(e,s,o,t),WO(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}tb(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=Ih,e.schema=i);e.ancestors.push(t);const o=null===t.name?e.Fragment:eb(e,t.name,!0),s=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];Ed(t.type);const i=t.expression;Ed(i.type);const o=i.properties[0];Ed(o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else tb(e,t.position);else{const i=r.name;let o;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];Ed(t.type),o=e.evaluater.evaluateExpression(t.expression)}else tb(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),a=KO(e,t);return GO(e,s,o,t),WO(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);tb(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return WO(r,KO(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function GO(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function WO(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function KO(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:HO;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=i.get(e)||0;s=e+"-"+t,i.set(e,t+1)}}const a=VO(e,o,s);void 0!==a&&n.push(a)}return n}function JO(e,t,n){const r=Md(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?(0,Td.A)(n):(0,Qd.A)(n)),"style"===r.property){let t="object"===typeof n?n:function(e,t){try{return IO(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new zO("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=ZO+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)qO.call(e,n)&&(t[nb(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?QO[r.property]||r.property:r.attribute,n]}}function eb(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++i<e.length;){const t=RO(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}r=n}else r=RO(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return qO.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);tb(e)}function tb(e,t){const n=new zO("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ZO+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nb(e){let t=e.replace(UO,rb);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function rb(e){return"-"+e.toLowerCase()}const ib={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},ob={};function sb(e,t){const n=t||ob;return ab(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}function ab(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lb(e.children,t,n)}return Array.isArray(e)?lb(e,t,n):""}function lb(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=ab(e[i],t,n);return r.join("")}function cb(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function ub(e,t){return e.length>0?(cb(e,e.length,0,t),e):t}class hb{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null===t||void 0===t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&db(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),db(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),db(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);db(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);db(this.left,t.reverse())}}}function db(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function pb(e){const t={};let n,r,i,o,s,a,l,c=-1;const u=new hb(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(a=n[1]._tokenizer.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,fb(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(o=u.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},s=u.slice(r,c),s.unshift(n),u.splice(r,c-r+1,s))}}return cb(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function fb(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],c={};let u,h,d=-1,p=n,f=0,m=0;const g=[m];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),h&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=n;++d<a.length;)"exit"===a[d][0]&&"enter"===a[d-1][0]&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(m=d+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),d=g.length;d--;){const t=a.slice(g[d],g[d+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),d=-1;++d<l.length;)c[f+l[d][0]]=f+l[d][1],f+=l[d][1]-l[d][0]-1;return c}const mb={}.hasOwnProperty;function gb(e){const t={};let n=-1;for(;++n<e.length;)Ob(t,e[n]);return t}function Ob(e,t){let n;for(n in t){const r=(mb.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){mb.call(r,o)||(r[o]=[]);const e=i[o];bb(r[o],Array.isArray(e)?e:e?[e]:[])}}}function bb(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);cb(e,0,0,r)}const vb=Db(/[A-Za-z]/),yb=Db(/[\dA-Za-z]/),xb=Db(/[#-'*+\--9=?A-Z^-~]/);function kb(e){return null!==e&&(e<32||127===e)}const Sb=Db(/\d/),wb=Db(/[\dA-Fa-f]/),Ab=Db(/[!-/:-@[-`{-~]/);function Tb(e){return null!==e&&e<-2}function Eb(e){return null!==e&&(e<0||32===e)}function Cb(e){return-2===e||-1===e||32===e}const _b=Db(/\p{P}|\p{S}/u),Pb=Db(/\s/);function Db(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Mb(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(Cb(r))return e.enter(n),s(r);return t(r)};function s(r){return Cb(r)&&o++<i?(e.consume(r),s):(e.exit(n),t(r))}}const Nb={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Mb(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Tb(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const Rb={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}O(s);let a=n;for(;a<t.events.length;)t.events[a][1].end={...i},a++;return cb(t.events,o+1,0,t.events.slice(n)),t.events.length=a,c(e)}return a(e)}function c(i){if(s===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Qb,u,h)(i)}function u(e){return r&&b(),O(s),d(e)}function h(e){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,f(e)}function d(n){return t.containerState={},e.attempt(Qb,p,f)(n)}function p(e){return s++,n.push([t.currentConstruct,t.containerState]),d(e)}function f(n){return null===n?(r&&b(),O(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),O(0),void e.consume(n)):Tb(n)?(e.consume(n),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),m)}function g(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,a,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){a=t.events[l][1].end;break}i=!0}for(O(s),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;cb(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function O(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Qb={tokenize:function(e,t,n){return Mb(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Ib={partial:!0,tokenize:function(e,t,n){return function(t){return Cb(t)?Mb(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Tb(e)?t(e):n(e)}}};const Lb={resolve:function(e){return pb(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):Tb(t)?e.check(Fb,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Fb={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Mb(e,i,"linePrefix")};function i(i){if(null===i||Tb(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};const $b={tokenize:function(e){const t=this,n=e.attempt(Ib,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,Mb(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Lb,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Bb={resolveAll:Ub()},zb=Hb("string"),qb=Hb("text");function Hb(e){return{resolveAll:Ub("text"===e?Xb:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Ub(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function Xb(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,l=0;for(;s--;){const e=i[s];if("string"===typeof e){for(a=e.length;32===e.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===e)o=!0,l++;else if(-1!==e){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const jb={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||Tb(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),Cb(t)?Mb(e,o,"whitespace")(t):o(t))}}};const Zb={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ib,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Mb(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!Cb(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Vb,t,s)(n))}function s(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Mb(e,e.attempt(Zb,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Sb(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(jb,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return Sb(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Ib,r.interrupt?n:c,e.attempt(Yb,h,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return Cb(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Yb={partial:!0,tokenize:function(e,t,n){const r=this;return Mb(e,function(e){const i=r.events[r.events.length-1];return!Cb(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Vb={partial:!0,tokenize:function(e,t,n){const r=this;return Mb(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Gb={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Cb(t))return Mb(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(Gb,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Cb(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function Wb(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||32===t||41===t||kb(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(t)};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),h(t)):null===t||60===t||Tb(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(i){return u||null!==i&&41!==i&&!Eb(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||kb(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function Kb(e,t,n,r,i,o){const s=this;let a,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(h){return l>999||null===h||91===h||93===h&&!a||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):Tb(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||Tb(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!Cb(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Jb(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):Tb(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Mb(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||Tb(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function ev(e,t){let n;return function r(i){if(Tb(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(Cb(i))return Mb(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function tv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nv={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return Kb.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=tv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return Eb(t)?ev(e,a)(t):a(t)}function a(t){return Wb(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(rv,c,c)(t)}function c(t){return Cb(t)?Mb(e,u,"whitespace")(t):u(t)}function u(o){return null===o||Tb(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},rv={partial:!0,tokenize:function(e,t,n){return function(t){return Eb(t)?ev(e,r)(t):n(t)};function r(t){return Jb(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Cb(t)?Mb(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Tb(e)?t(e):n(e)}}};const iv={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Mb(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):Tb(t)?e.attempt(ov,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||Tb(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},ov={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Tb(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Mb(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Tb(e)?i(e):n(e)}}};const sv={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},cb(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||Eb(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||Tb(n)?(e.exit("atxHeading"),t(n)):Cb(n)?Mb(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||Eb(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}}};const av={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s;return e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Cb(t)?Mb(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||Tb(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const lv=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],cv=["pre","script","style","textarea"],uv={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),o=!0,p):63===a?(e.consume(a),i=3,r.interrupt?t:R):vb(a)?(e.consume(a),s=String.fromCharCode(a),f):n(a)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a=0,d):vb(o)?(e.consume(o),i=4,r.interrupt?t:R):n(o)}function h(i){return 45===i?(e.consume(i),r.interrupt?t:R):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:T:d):n(i)}function p(t){return vb(t)?(e.consume(t),s=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||Eb(a)){const l=47===a,c=s.toLowerCase();return l||o||!cv.includes(c)?lv.includes(s.toLowerCase())?(i=6,l?(e.consume(a),m):r.interrupt?t(a):T(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?g(a):O(a)):(i=1,r.interrupt?t(a):T(a))}return 45===a||yb(a)?(e.consume(a),s+=String.fromCharCode(a),f):n(a)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:T):n(i)}function g(t){return Cb(t)?(e.consume(t),g):w(t)}function O(t){return 47===t?(e.consume(t),w):58===t||95===t||vb(t)?(e.consume(t),b):Cb(t)?(e.consume(t),O):w(t)}function b(t){return 45===t||46===t||58===t||95===t||yb(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),y):Cb(t)?(e.consume(t),v):O(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):Cb(t)?(e.consume(t),y):k(t)}function x(t){return t===l?(e.consume(t),l=null,S):null===t||Tb(t)?n(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Eb(t)?v(t):(e.consume(t),k)}function S(e){return 47===e||62===e||Cb(e)?O(e):n(e)}function w(t){return 62===t?(e.consume(t),A):n(t)}function A(t){return null===t||Tb(t)?T(t):Cb(t)?(e.consume(t),A):n(t)}function T(t){return 45===t&&2===i?(e.consume(t),P):60===t&&1===i?(e.consume(t),D):62===t&&4===i?(e.consume(t),Q):63===t&&3===i?(e.consume(t),R):93===t&&5===i?(e.consume(t),N):!Tb(t)||6!==i&&7!==i?null===t||Tb(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(hv,I,E)(t))}function E(t){return e.check(dv,C,I)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_}function _(t){return null===t||Tb(t)?E(t):(e.enter("htmlFlowData"),T(t))}function P(t){return 45===t?(e.consume(t),R):T(t)}function D(t){return 47===t?(e.consume(t),s="",M):T(t)}function M(t){if(62===t){const n=s.toLowerCase();return cv.includes(n)?(e.consume(t),Q):T(t)}return vb(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),M):T(t)}function N(t){return 93===t?(e.consume(t),R):T(t)}function R(t){return 62===t?(e.consume(t),Q):45===t&&2===i?(e.consume(t),R):T(t)}function Q(t){return null===t||Tb(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),Q)}function I(n){return e.exit("htmlFlow"),t(n)}}},hv={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ib,t,n)}}},dv={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Tb(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const pv={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},fv={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Cb(t)?Mb(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=a?(e.exit("codeFencedFenceSequence"),Cb(t)?Mb(e,h,"whitespace")(t):h(t)):n(t)}function h(r){return null===r||Tb(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),Cb(t)?Mb(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Tb(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(pv,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Tb(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Cb(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Mb(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function h(t){return null===t||Tb(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||Tb(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),d)}function p(t){return e.attempt(i,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&Cb(t)?Mb(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||Tb(t)?e.check(pv,p,b)(t):(e.enter("codeFlowValue"),O(t))}function O(t){return null===t||Tb(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),O)}function b(n){return e.exit("codeFenced"),t(n)}}};var mv=n(3789);const gv={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=yb,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=wb,c):(e.enter("characterReferenceValue"),i=7,o=Sb,c(t))}function c(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==yb||(0,mv.s)(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++<i?(e.consume(a),c):n(a)}}};const Ov={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Ab(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const bv={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Mb(e,t,"linePrefix")}}};function vv(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const yv={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&cb(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=ub(o,e.slice(r+1,r+a+3)),o=ub(o,[["enter",u,t]]),o=ub(o,vv(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=ub(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=ub(o,e.slice(i+1)),o=ub(o,[["exit",l,t]]),cb(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(t){if(!i)return n(t);if(i._inactive)return u(t);return o=r.parser.defined.includes(tv(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(xv,c,o?c:u)(t):91===t?e.attempt(kv,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(Sv,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}}},xv={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Eb(t)?ev(e,i)(t):i(t)}function i(t){return 41===t?c(t):Wb(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Eb(t)?ev(e,a)(t):c(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?Jb(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Eb(t)?ev(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},kv={tokenize:function(e,t,n){const r=this;return function(t){return Kb.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Sv={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const wv={name:"labelStartImage",resolveAll:yv.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function Av(e){return null===e||Eb(e)||Pb(e)?1:_b(e)?2:void 0}const Tv={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,a,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h={...e[n][1].end},d={...e[u][1].start};Ev(h,-a),Ev(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:d},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ub(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ub(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=ub(l,vv(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=ub(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=ub(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,cb(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Av(r);let o;return function(t){return o=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===o)return e.consume(a),s;const l=e.exit("attentionSequence"),c=Av(a),u=!c||2===c&&i||n.includes(a),h=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!h)),l._close=Boolean(42===o?h:h&&(c||!u)),t(a)}}};function Ev(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Cv={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return vb(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||yb(e)?(r=1,s(e)):l(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||yb(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||kb(r)?n(r):(e.consume(r),a)}function l(t){return 64===t?(e.consume(t),c):xb(t)?(e.consume(t),l):n(t)}function c(e){return yb(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):h(n)}function h(t){if((45===t||yb(t))&&r++<63){const n=45===t?h:u;return e.consume(t),n}return n(t)}}};const _v={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),y):63===t?(e.consume(t),b):vb(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,p):vb(t)?(e.consume(t),O):n(t)}function c(t){return 45===t?(e.consume(t),d):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):Tb(t)?(s=u,M(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),d):u(t)}function d(e){return 62===e?D(e):45===e?h(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):Tb(t)?(s=f,M(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?D(t):93===t?(e.consume(t),g):f(t)}function O(t){return null===t||62===t?D(t):Tb(t)?(s=O,M(t)):(e.consume(t),O)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):Tb(t)?(s=b,M(t)):(e.consume(t),b)}function v(e){return 62===e?D(e):b(e)}function y(t){return vb(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||yb(t)?(e.consume(t),x):k(t)}function k(t){return Tb(t)?(s=k,M(t)):Cb(t)?(e.consume(t),k):D(t)}function S(t){return 45===t||yb(t)?(e.consume(t),S):47===t||62===t||Eb(t)?w(t):n(t)}function w(t){return 47===t?(e.consume(t),D):58===t||95===t||vb(t)?(e.consume(t),A):Tb(t)?(s=w,M(t)):Cb(t)?(e.consume(t),w):D(t)}function A(t){return 45===t||46===t||58===t||95===t||yb(t)?(e.consume(t),A):T(t)}function T(t){return 61===t?(e.consume(t),E):Tb(t)?(s=T,M(t)):Cb(t)?(e.consume(t),T):w(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,C):Tb(t)?(s=E,M(t)):Cb(t)?(e.consume(t),E):(e.consume(t),_)}function C(t){return t===i?(e.consume(t),i=void 0,P):null===t?n(t):Tb(t)?(s=C,M(t)):(e.consume(t),C)}function _(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Eb(t)?w(t):(e.consume(t),_)}function P(e){return 47===e||62===e||Eb(e)?w(e):n(e)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return Cb(t)?Mb(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),s(t)}}};const Pv={name:"labelStartLink",resolveAll:yv.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Dv={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Tb(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Mv={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),o++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):Tb(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Tb(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}}};const Nv={42:Zb,43:Zb,45:Zb,48:Zb,49:Zb,50:Zb,51:Zb,52:Zb,53:Zb,54:Zb,55:Zb,56:Zb,57:Zb,62:Gb},Rv={91:nv},Qv={[-2]:iv,[-1]:iv,32:iv},Iv={35:sv,42:jb,45:[av,jb],60:uv,61:av,95:jb,96:fv,126:fv},Lv={38:gv,92:Ov},Fv={[-5]:bv,[-4]:bv,[-3]:bv,33:wv,38:gv,42:Tv,60:[Cv,_v],91:Pv,92:[Dv,Ov],93:yv,95:Tv,96:Mv},$v={null:[Tv,Bb]},Bv={null:[42,95]},zv={null:[]};function qv(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[],l=!0;const c={attempt:b(function(e,t){v(e,t.from)}),check:b(O),consume:function(e){Tb(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:b(O,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,y()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if("string"===typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(p(e),t)},sliceStream:p,write:function(e){if(s=ub(s,e),m(),null!==s[s.length-1])return[];return v(t,0),u.events=vv(o,u.events,u),u.events}};let h,d=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const e=s[0];"string"===typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function m(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,h=e,d=d(e)}function O(e,t){t.restore()}function b(e,t){return function(n,i,o){let s,h,d,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return s=e,h=0,0===e.length?o:g(e[h])}function g(e){return function(n){p=function(){const e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(a);return{from:i,restore:s};function s(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,a=o,y()}}(),d=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return b(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,O,b)(n)}}function O(t){return l=!0,e(d,p),i}function b(e){return l=!0,p.restore(),++h<s.length?g(s[h]):o}}}function v(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&cb(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const Hv=/[\0\t\n\r]/g;function Uv(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const Xv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jv(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Uv(n.slice(t?2:1),t?16:10)}return(0,mv.s)(n)||e}const Zv={}.hasOwnProperty;function Yv(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:A,autolinkEmail:A,atxHeading:o(W),blockQuote:o(j),characterEscape:A,characterReference:A,codeFenced:o(Z),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Z,s),codeText:o(Y,s),codeTextData:A,data:A,codeFlowValue:A,definition:o(V),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(G),hardBreakEscape:o(K),hardBreakTrailing:o(K),htmlFlow:o(J,s),htmlFlowData:A,htmlText:o(J,s),htmlTextData:A,image:o(ee),label:s,link:o(te),listItem:o(re),listItemValue:d,listOrdered:o(ne,h),listUnordered:o(ne),paragraph:o(ie),reference:$,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(W),strong:o(oe),thematicBreak:o(ae)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:X,autolinkProtocol:U,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:q,characterReference:H,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:f,codeFlowValue:T,codeIndented:l(O),codeText:l(D),codeTextData:T,data:T,definition:l(),definitionDestinationString:y,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(C),hardBreakTrailing:l(C),htmlFlow:l(_),htmlFlowData:T,htmlText:l(P),htmlTextData:T,image:l(N),label:Q,labelText:R,lineEnding:E,link:l(M),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:F,setextHeading:l(w),setextHeadingLineSequence:S,setextHeadingText:k,strong:l(),thematicBreak:l()}};Gv(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:n},l=[];let h=-1;for(;++h<e.length;)if("listOrdered"===e[h][1].type||"listUnordered"===e[h][1].type)if("enter"===e[h][0])l.push(h);else{h=i(e,l.pop(),h)}for(h=-1;++h<e.length;){const n=t[e[h][0]];Zv.call(n,e[h][1].type)&&n[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},o),e[h][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||Kv).call(o,void 0,e[0])}for(r.position={start:Vv(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Vv(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<t.transforms.length;)r=t.transforms[h](r)||r;return r}function i(e,t,n){let r,i,o,s,a=t-1,l=-1,c=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(i=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,s=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Vv(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+LO({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Kv).call(this,e,r[0])}n.position.end=Vv(e.end)}function u(){return sb(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tv(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function y(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function S(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function A(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=se(),n.position={start:Vv(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Vv(e.end)}function E(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Vv(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(A.call(this,e),T.call(this,e))}function C(){this.data.atHardBreak=!0}function _(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Xv,jv)}(t),n.identifier=tv(t).toLowerCase()}function Q(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function I(){const e=this.resume();this.stack[this.stack.length-1].url=e}function L(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function $(){this.data.referenceType="collapsed"}function B(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tv(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function q(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Uv(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=(0,mv.s)(t)}this.stack[this.stack.length-1].value+=r}function H(e){this.stack.pop().position.end=Vv(e.end)}function U(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function X(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function j(){return{type:"blockquote",children:[]}}function Z(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function V(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function W(){return{type:"heading",depth:0,children:[]}}function K(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(n)(function(e){for(;!pb(e););return e}(function(e){const t={constructs:gb([o,...(e||{}).extensions||[]]),content:n(Nb),defined:[],document:n(Rb),flow:n($b),lazy:{},string:n(zb),text:n(qb)};return t;function n(e){return function(n){return qv(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,s){const a=[];let l,c,u,h,d;for(i=n+("string"===typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(Hv.lastIndex=u,l=Hv.exec(i),h=l&&void 0!==l.index?l.index:i.length,d=i.charCodeAt(h),!l){n=i.slice(u);break}if(10===d&&u===h&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),u<h&&(a.push(i.slice(u,h)),t+=h-u),d){case 0:a.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),a.push(-2);t++<c;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function Vv(e){return{line:e.line,column:e.column,offset:e.offset}}function Gv(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Gv(e,r):Wv(e,r)}}function Wv(e,t){let n;for(n in t)if(Zv.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Kv(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+LO({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+LO({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+LO({start:t.start,end:t.end})+") is still open")}function Jv(e){const t=this;t.parser=function(n){return Yv(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ey(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(37===o&&yb(e.charCodeAt(n+1))&&yb(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="\ufffd"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ty(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ny(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ry(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function iy(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function oy(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(sy(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(sy(t.slice(i),i>0,!1)),o.join("")}function sy(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const ay={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ey(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ry(e,t);const i={src:ey(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:ey(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ry(e,t);const i={href:ey(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:ey(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=iy(n[r])}return t}(n):iy(t),o={},s=[];if("boolean"===typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=dO(t.children[1]),s=hO(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const l=[];for(;++a<s;){const n=t.children[a],r={},s=o?o[a]:void 0;s&&(r.align=s);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:oy(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ly,yaml:ly,definition:ly,footnoteDefinition:ly};function ly(){}const cy={}.hasOwnProperty,uy={};function hy(e,t){e.position&&(t.position=function(e){const t=dO(e),n=hO(e);if(t&&n)return{start:t,end:n}}(e))}function dy(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"===typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&i&&Object.assign(n.properties,Np(i)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function py(e,t){const n=t.data||{},r=!("value"in t)||cy.call(n,"hProperties")||cy.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function fy(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function my(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function gy(e,t){const n=function(e,t){const n=t||uy,r=new Map,i=new Map,o=new Map,s={...ay,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=my(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=my(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:dy,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:function(e,t){const n=e.type,r=a.handlers[n];if(cy.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Np(n);return r.children=a.all(e),r}return Np(e)}return(a.options.unknownHandler||py)(a,e,t)},options:n,patch:hy,wrap:fy};return Vu(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){const t="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ty,r=e.options.footnoteBackLabel||ny,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const o=e.all(i),s=String(i.identifier).toUpperCase(),c=ey(s.toLowerCase());let u=0;const h=[],d=e.footnoteCounts.get(s);for(;void 0!==d&&++u<=d;){h.length>0&&h.push({type:"text",value:" "});let e="string"===typeof n?n:n(l,u);"string"===typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...h)}else o.push(...h);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,f),a.push(f)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Np(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function Oy(e,t){return e&&"run"in e?async function(n,r){const i=gy(n,{file:r,...t});await e.run(i,r)}:function(n,r){return gy(n,{file:r,...e||t})}}function by(e){if(e)throw e}var vy=n(1886);function yy(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function xy(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=-1;const o=n.pop();if("function"!==typeof o)throw new TypeError("Expected function as last argument, not "+o);!function t(r){const s=e[++i];let a=-1;if(r)o(r);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(;++a<n.length;)null!==c[a]&&void 0!==c[a]||(c[a]=n[a]);n=c,s?function(e,t){let n;return i;function i(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];const l=e.length>i.length;let c;l&&i.push(o);try{c=e.apply(this,i)}catch(r){if(l&&n)throw r;return o(r)}l||(c&&c.then&&"function"===typeof c.then?c.then(s,o):c instanceof Error?o(c):s(c))}function o(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t(e,...i)}}function s(e){o(null,e)}}(s,t)(...c):o(null,...c)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const ky={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');Sy(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(Sy(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Sy(e);let t,n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++t<r.length;)Sy(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){Sy(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,s=-1,a=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(s===l-1||1===a);else if(s!==l-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=l,a=0;continue}}else if(i.length>0){i="",o=0,s=l,a=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),o=l-s-1;s=l,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function Sy(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wy={cwd:function(){return"/"}};function Ay(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Ty(e){if("string"===typeof e)e=new URL(e);else if(!Ay(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Ey=["history","path","basename","stem","extname","dirname"];class Cy{constructor(e){let t;t=e?Ay(e)?{path:e}:"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":wy.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Ey.length;){const e=Ey[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Ey.includes(n)||(this[n]=t[n])}get basename(){return"string"===typeof this.path?ky.basename(this.path):void 0}set basename(e){Py(e,"basename"),_y(e,"basename"),this.path=ky.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?ky.dirname(this.path):void 0}set dirname(e){Dy(this.basename,"dirname"),this.path=ky.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?ky.extname(this.path):void 0}set extname(e){if(_y(e,"extname"),Dy(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ky.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Ay(e)&&(e=Ty(e)),Py(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?ky.basename(this.path,this.extname):void 0}set stem(e){Py(e,"stem"),_y(e,"stem"),this.path=ky.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new zO(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function _y(e,t){if(e&&e.includes(ky.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ky.sep+"`")}function Py(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Dy(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const My=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Ny={}.hasOwnProperty;class Ry extends My{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=xy()}copy(){const e=new Ry;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(vy(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(Fy("data",this.frozen),this.namespace[e]=t,this):Ny.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Fy("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"===typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=zy(e),n=this.parser||this.Parser;return Iy("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Iy("process",this.parser||this.Parser),Ly("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=zy(e),s=n.parse(o);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(s,o,function(e,t,r){if(e||!t||!r)return a(e);const i=t,o=n.stringify(i,r);!function(e){return"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(o)?r.result=o:r.value=o,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Iy("processSync",this.parser||this.Parser),Ly("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,by(e),t=r}),By("processSync","process",n),t}run(e,t,n){$y(e),this.freeze();const r=this.transformers;return n||"function"!==typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const s=zy(t);r.run(e,s,function(t,r,s){const a=r||e;t?o(t):i?i(a):n(void 0,a,s)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){by(e),n=t,r=!0}),By("runSync","run",r),n}stringify(e,t){this.freeze();const n=zy(t),r=this.compiler||this.Compiler;return Ly("stringify",r),$y(e),r(e,n)}use(e){const t=this.attachers,n=this.namespace;if(Fy("use",this.frozen),null===e||void 0===e);else if("function"===typeof e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];c(e,i)}else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):a(e)}return this;function s(e){if("function"===typeof e)c(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(n.settings=vy(!0,n.settings,e.settings))}function l(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){s(e[t])}}}function c(e,n){let r=-1,i=-1;for(;++r<t.length;)if(t[r][0]===e){i=r;break}if(-1===i)t.push([e,...n]);else if(n.length>0){let[r,...o]=n;const s=t[i][1];yy(s)&&yy(r)&&(r=vy(!0,s,r)),t[i]=[e,r,...o]}}}}const Qy=(new Ry).freeze();function Iy(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Ly(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Fy(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $y(e){if(!yy(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function By(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function zy(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Cy(e)}const qy=[],Hy={allowDangerousHtml:!0},Uy=/^(https?|ircs?|mailto|xmpp)$/i,Xy=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function jy(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||qy,l=e.remarkPlugins||qy,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Hy}:Hy,u=e.skipHtml,h=e.unwrapDisallowed,d=e.urlTransform||Zy,p=Qy().use(Jv).use(l).use(Oy,c).use(a),f=new Cy;"string"===typeof r&&(f.value=r);for(const O of Xy)Object.hasOwn(e,O.from)&&Cd((O.from,O.to&&O.to,O.id));const m=p.parse(f);let g=p.runSync(m,f);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:"root"===g.type?g.children:[g]}),Vu(g,function(e,r,i){if("raw"===e.type&&i&&"number"===typeof r)return u?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in ib)if(Object.hasOwn(ib,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=ib[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!s&&s.includes(e.tagName);if(!o&&n&&"number"===typeof r&&(o=!n(e,r,i)),o&&i&&"number"===typeof r)return h&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}}),YO(g,{Fragment:Lt.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Lt.jsx,jsxs:Lt.jsxs,passKeys:!0,passNode:!0})}function Zy(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||Uy.test(e.slice(0,t))?e:""}function Yy(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function Vy(e,t,n){const r=Bu((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Gy(e[0]),Wy(e[1])])}return t}(t);let o=-1;for(;++o<i.length;)Yu(e,"text",s);function s(e,t){let n,s=-1;for(;++s<t.length;){const e=t[s],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[o][0],s=i[o][1];let a=0;const l=n.children,c=l.indexOf(e);let u=!1,h=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,i={index:d.index,input:d.input,stack:[...t,e]};let o=s(...d,i);if("string"===typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&h.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?h.push(...o):o&&h.push(o),a=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}u?(a<e.value.length&&h.push({type:"text",value:e.value.slice(a)}),n.children.splice(c,1,...h)):h=[e];return c+h.length}(e,t)}}function Gy(e){return"string"===typeof e?new RegExp(function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Wy(e){return"function"===typeof e?e:function(){return e}}const Ky="phrasing",Jy=["autolink","link","image","label"];function ex(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function tx(e){this.config.enter.autolinkProtocol.call(this,e)}function nx(e){this.config.exit.autolinkProtocol.call(this,e)}function rx(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ix(e){this.config.exit.autolinkEmail.call(this,e)}function ox(e){this.exit(e)}function sx(e){Vy(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ax],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,lx]],{ignore:["link","linkReference"]})}function ax(e,t,n,r,i){let o="";if(!cx(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Yy(e,"(");let o=Yy(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function lx(e,t,n,r){return!(!cx(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function cx(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Pb(n)||_b(n))&&(!t||47!==n)}function ux(){this.buffer()}function hx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function dx(){this.buffer()}function px(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function fx(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tv(this.sliceSerialize(e)).toLowerCase(),n.label=t}function mx(e){this.exit(e)}function gx(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tv(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ox(e){this.exit(e)}function bx(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=i.move("]"),o}function vx(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){const o=r.createTracker(i);let s=o.move("[^");const a=r.enter("footnoteDefinition"),l=r.enter("label");s+=o.move(r.safe(r.associationId(e),{before:s,after:"]"})),l(),s+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),s+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?xx:yx)));return a(),s},footnoteReference:bx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function yx(e,t,n){return 0===t?e:xx(e,t,n)}function xx(e,t,n){return(n?"":" ")+e}bx.peek=function(){return"["};const kx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Sx(e){this.enter({type:"delete",children:[]},e)}function wx(e){this.exit(e)}function Ax(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function Tx(e){return e.length}function Ex(e){return null===e||void 0===e?"":String(e)}function Cx(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function _x(e,t,n){return">"+(n?"":" ")+e}function Px(e,t){return Dx(e,t.inConstruct,!0)&&!Dx(e,t.notInConstruct,!1)}function Dx(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Mx(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&Px(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function Nx(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}function Rx(e,t,n){return(n?"":" ")+e}function Qx(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ix(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Lx(e,t,n){const r=Av(e),i=Av(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Fx(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=l.charCodeAt(0),u=Lx(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Ix(c)+l.slice(1));const h=l.charCodeAt(l.length-1),d=Lx(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+Ix(h));const p=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},a+l+p}function $x(e){return e.value||""}function Bx(e,t,n,r){const i=Qx(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function zx(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function qx(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function Hx(e,t){const n=sb(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Ux(e,t,n,r){const i=Qx(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(Hx(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),a(),c}function Xx(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function jx(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Zx(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Ax.peek=function(){return"~"},Fx.peek=function(e,t,n){return n.options.emphasis||"*"},$x.peek=function(){return"<"},Bx.peek=function(){return"!"},zx.peek=function(){return"!"},qx.peek=function(){return"`"},Ux.peek=function(e,t,n){return Hx(e,n)?"<":"["},Xx.peek=function(){return"["};const Yx=Bu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Vx(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=l.charCodeAt(0),u=Lx(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Ix(c)+l.slice(1));const h=l.charCodeAt(l.length-1),d=Lx(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+Ix(h));const p=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},a+l+p}Vx.peek=function(e,t,n){return n.options.strong||"*"};const Gx={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),_x);return i(),s},break:Mx,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,Rx);return e(),t}const a=n.createTracker(r),l=i.repeat(Math.max(Nx(o,i)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const t=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),o&&(u+=a.move(o+"\n")),u+=a.move(l),c(),u},definition:function(e,t,n,r){const i=Qx(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c},emphasis:Fx,hardBreak:Mx,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return Vu(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,ju}),Boolean((!e.depth||e.depth<3)&&sb(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=Ix(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),a(),c},html:$x,image:Bx,imageReference:zx,inlineCode:qx,link:Ux,linkReference:Xx,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):jx(n);const a=e.ordered?"."===s?")":".":function(e){const t=jx(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Zx(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||jx(n);t&&"list"===t.type&&t.ordered&&(o=("number"===typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e});return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){const i=e.children.some(function(e){return Yx(e)});return(i?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Vx,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Zx(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Wx(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Kx(e){this.exit(e),this.data.inTable=void 0}function Jx(e){this.enter({type:"tableRow",children:[]},e)}function ek(e){this.exit(e)}function tk(e){this.enter({type:"tableCell",children:[]},e)}function nk(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rk));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function rk(e,t){return"|"===t?t:e}function ik(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Gx.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return s(),o}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){const i=l(e,n,r),o=a([i]);return o.slice(0,o.indexOf("\n"))}}};function s(e,t,n,r){const i=n.enter("tableCell"),s=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:o,after:o});return s(),i(),a}function a(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Tx,o=[],s=[],a=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const s=Ex(e[u][o]);if(!1!==n.alignDelimiters){const e=i(s);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(s)}s[u]=t,a[u]=r}let h=-1;if("object"===typeof r&&"length"in r)for(;++h<c;)o[h]=Cx(r[h]);else{const e=Cx(r);for(;++h<c;)o[h]=e}h=-1;const d=[],p=[];for(;++h<c;){const e=o[h];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[h]-t.length-r.length);const s=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=t.length+i+r.length,i>l[h]&&(l[h]=i),p[h]=i),d[h]=s}s.splice(1,0,d),a.splice(1,0,p),u=-1;const f=[];for(;++u<s.length;){const e=s[u],t=a[u];h=-1;const r=[];for(;++h<c;){const i=e[h]||"";let s="",a="";if(!1!==n.alignDelimiters){const e=l[h]-(t[h]||0),n=o[h];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):(s=" ".repeat(e/2),a=s):a=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===i||!1===n.delimiterStart&&!h||r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&h===c-1||r.push("|")}f.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=s(r[i],0,t,n);return a(),o}}function ok(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function sk(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"===typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function ak(e,t,n,r){const i=e.children[0],o="boolean"===typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let l=Gx.listItem(e,t,n,{...r,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),l}const lk={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),i;return n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},ck={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(hk,l,a)(t):null===t||Eb(t)||Pb(t)||45!==t&&_b(t)?l(t):(o=!0,e.consume(t),s)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},uk={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(hk,t,o)(s):null===s||Eb(s)||Pb(s)?t(s):(e.consume(s),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},hk={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),o):93===s?(e.consume(s),i):60===s||null===s||Eb(s)||Pb(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||Eb(e)||Pb(e)?t(e):r(e)}function o(e){return vb(e)?s(e):n(e)}function s(t){return 59===t?(e.consume(t),r):vb(t)?(e.consume(t),s):n(t)}},partial:!0},dk={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return yb(e)?n(e):t(e)}},partial:!0},pk={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!bk.call(r,r.previous)||kk(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(lk,e.attempt(ck,e.attempt(uk,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:bk},fk={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){if((72===t||104===t)&&vk.call(r,r.previous)&&!kk(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s;return n(t)};function s(t){if(vb(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),o?l:(o=!0,a)):n(t)}function l(t){return null===t||kb(t)||Eb(t)||Pb(t)||_b(t)?n(t):e.attempt(ck,e.attempt(uk,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:vk},mk={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,o;return function(t){if(!xk(t)||!yk.call(r,r.previous)||kk(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)};function s(t){return xk(t)?(e.consume(t),s):64===t?(e.consume(t),a):n(t)}function a(t){return 46===t?e.check(dk,c,l)(t):45===t||95===t||yb(t)?(o=!0,e.consume(t),a):c(t)}function l(t){return e.consume(t),i=!0,a}function c(s){return o&&i&&vb(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:yk},gk={};let Ok=48;for(;Ok<123;)gk[Ok]=mk,Ok++,58===Ok?Ok=65:91===Ok&&(Ok=97);function bk(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Eb(e)}function vk(e){return!vb(e)}function yk(e){return!(47===e||xk(e))}function xk(e){return 43===e||45===e||46===e||95===e||yb(e)}function kk(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}gk[43]=mk,gk[45]=mk,gk[46]=mk,gk[95]=mk,gk[72]=[mk,fk],gk[104]=[mk,fk],gk[87]=[mk,pk],gk[119]=[mk,pk];const Sk={tokenize:function(e,t,n){const r=this;return Mb(e,function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function wk(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s._balanced)return n(i);const a=tv(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function Ak(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function Tk(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(a){if(s>999||93===a&&!o||null===a||91===a||Eb(a))return n(a);if(93===a){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(tv(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return Eb(a)||(o=!0),s++,e.consume(a),92===a?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function Ek(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!s||null===t||91===t||Eb(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=tv(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Eb(t)||(s=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),Mb(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function Ck(e,t,n){return e.check(Ib,t,e.attempt(Sk,t,n))}function _k(e){e.exit("gfmFootnoteDefinition")}function Pk(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const l=Av(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=Av(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&cb(s,s.length,0,vv(a,e.slice(r+1,n),t)),cb(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),cb(e,r-1,n-r+3,s),n=r+s.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null!==t&&void 0!==t||(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Dk{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0===n&&0===r.length)return;for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function Mk(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function Nk(e,t,n){const r=this;let i,o=0,s=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?y:a;if(o===y&&r.parser.lazy[r.now().line])return n(e);return o(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,s+=1,l(e)}(t)}function l(t){return null===t?n(t):Tb(t)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):Cb(t)?Mb(e,l,"whitespace")(t):(s+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Eb(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,Cb(t)?Mb(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?f(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):v(t)}function p(t){return Cb(t)?Mb(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||Tb(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):v(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(t))}function O(t){return Cb(t)?Mb(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?d(n):(null===n||Tb(n))&&i&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function y(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||Tb(n)?(e.exit("tableRow"),t(n)):Cb(n)?Mb(e,x,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||Eb(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?S:k)}function S(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function Rk(e,t){let n,r,i,o=-1,s=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const d=new Dk;for(;++o<e.length;){const p=e[o],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==h&&(Ik(d,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(s=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(o,0,[["enter",r,t]])),a="tableDelimiterRow"===f.type?2:r?3:1):!a||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(s?s=!1:(0!==l[1]&&(c[0]=c[1],i=Qk(d,t,l,a,void 0,i)),l=c,c=[l[1],o,0,0])):(s=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Qk(d,t,l,a,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,h=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(h=o,0!==l[1]?(c[0]=c[1],i=Qk(d,t,l,a,o,i)):0!==c[1]&&(i=Qk(d,t,c,a,o,i)),a=0):!a||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==h&&Ik(d,t,h,n,r),d.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Mk(t.events,o))}return e}function Qk(e,t,n,r,i,o){const s=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},Lk(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Lk(t.events,n[1]);if(o={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=Lk(t.events,n[2]),o=Lk(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},Lk(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Ik(e,t,n,r,i){const o=[],s=Lk(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Lk(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Fk={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return Eb(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return Tb(r)?t(r):Cb(r)?e.check({tokenize:$k},t,n)(r):n(r)}}};function $k(e,t,n){return Mb(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Bk={};function zk(e){const t=e||Bk,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return gb([{text:gk},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ek,continuation:{tokenize:Ck},exit:_k}},text:{91:{name:"gfmFootnoteCall",tokenize:Tk},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:wk,resolveTo:Ak}}},Pk(e),{flow:{null:{name:"table",tokenize:Nk,resolveAll:Rk}}},{text:{91:Fk}}])}(t)),i.push([{transforms:[sx],enter:{literalAutolink:ex,literalAutolinkEmail:tx,literalAutolinkHttp:tx,literalAutolinkWww:tx},exit:{literalAutolink:ox,literalAutolinkEmail:ix,literalAutolinkHttp:nx,literalAutolinkWww:rx}},{enter:{gfmFootnoteCallString:ux,gfmFootnoteCall:hx,gfmFootnoteDefinitionLabelString:dx,gfmFootnoteDefinition:px},exit:{gfmFootnoteCallString:fx,gfmFootnoteCall:mx,gfmFootnoteDefinitionLabelString:gx,gfmFootnoteDefinition:Ox}},{canContainEols:["delete"],enter:{strikethrough:Sx},exit:{strikethrough:wx}},{enter:{table:Wx,tableData:tk,tableHeader:tk,tableRow:Jx},exit:{codeText:nk,table:Kx,tableData:ek,tableHeader:ek,tableRow:ek}},{exit:{taskListCheckValueChecked:ok,taskListCheckValueUnchecked:ok,paragraph:sk}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ky,notInConstruct:Jy},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ky,notInConstruct:Jy},{character:":",before:"[ps]",after:"\\/",inConstruct:Ky,notInConstruct:Jy}]},vx(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:kx}],handlers:{delete:Ax}},ik(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ak}}]}}(t))}const qk=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Hk=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,Uk=function(){let{legacyTitle:e=!1,tagName:t="div"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n=>{Vu(n,"blockquote",(n,r,i)=>{let o="",s="",a=!0,l=n.children.map(t=>{if(a&&"paragraph"===t.type){const n=t.children[0],r="text"===n.type?n.value:"",i=e?Hk:qk,l=r.match(i);if(l&&(a=!1,o=l[1].toLocaleLowerCase(),s=e&&l[2]||o.toLocaleUpperCase(),r.includes("\n")&&(t.children[0]={type:"text",value:r.replace(i,"").replace(/^\n+/,"")}),!r.includes("\n"))){const e=[];t.children.forEach((t,n)=>{0!=n&&(1==n&&"break"===t.type||e.push(t))}),t.children=[...e]}}return t});o&&(n.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${o}`,dir:"auto"}},l.unshift({type:"paragraph",children:[Xk(o),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),n.children=[...l]})}};function Xk(e){return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:jk[e]??""}},children:[]}]}}const jk={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};var Zk=n(7323),Yk=n.n(Zk);function Vk(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Vk(t.parentElement):null}function Gk(e){var t=e=>{var t=Vk(e.target);t&&(t.classList.add("active"),Yk()(t.dataset.code,function(){setTimeout(()=>{t.classList.remove("active")},2e3)}))};(0,ee.useEffect)(()=>{var n,r;return null==(n=e.current)||n.removeEventListener("click",t,!1),null==(r=e.current)||r.addEventListener("click",t,!1),()=>{var n;null==(n=e.current)||n.removeEventListener("click",t,!1)}},[e])}var Wk=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Kk=e=>e;const Jk=ee.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:s=!1,skipHtml:a=!0,onScroll:l,onMouseOver:c,pluginsFilter:u,wrapperElement:h={},warpperElement:d={},urlTransform:p}=e,f=It(e,Wk),m=ee.useRef(null);(0,ee.useImperativeHandle)(t,()=>Qt({},e,{mdp:m}),[m,e]);var g=(n||"")+" "+(r||"");Gk(m);var O=[...f.rehypePlugins||[]],b={allowElement:(e,t,n)=>f.allowElement?f.allowElement(e,t,n):/^[A-Za-z0-9]+$/.test(e.tagName)};a||O.push(PO);var v=[Uk,...f.remarkPlugins||[],zk],y=Qt({},d,h);return(0,Lt.jsx)("div",Qt({ref:m,onScroll:l,onMouseOver:c},y,{className:g,style:o,children:(0,Lt.jsx)(jy,Qt({},b,f,{skipHtml:!a,urlTransform:p||Kk,rehypePlugins:u?u("rehype",O):O,remarkPlugins:u?u("remark",v):v,children:i||""}))}))});var eS=function(e){return void 0===e&&(e={}),e=>{Vu(e,e=>{"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=Qt({},e.properties,{"data-meta":String(e.data.meta)}))})}},tS=function(e){return void 0===e&&(e={}),e=>{Vu(e,e=>{if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.dataMeta){e.data||(e.data={});var t=e.properties.dataMeta;"string"===typeof t&&(e.data.meta=t),delete e.properties.dataMeta}})}};const nS=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,rS=Object.hasOwnProperty;function iS(e){const t="element"===e.type?e.tagName.toLowerCase():"",n=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const oS={},sS=new class{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let r=function(e,t){if("string"!==typeof e)return"";t||(e=e.toLowerCase());return e.replace(nS,"").replace(/ /g,"-")}(e,!0===t);const i=r;for(;rS.call(n.occurrences,r);)n.occurrences[i]++,r=i+"-"+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};const aS=function(e){if(null===e||void 0===e)return cS;if("string"===typeof e)return function(e){return lS(t);function t(t){return t.tagName===e}}(e);if("object"===typeof e)return function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=aS(e[n]);return lS(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++e<t.length;)if(t[e].apply(this,r))return!0;return!1}}(e);if("function"===typeof e)return lS(e);throw new Error("Expected function, string, or array as `test`")};function lS(e){return function(t,n,r){return Boolean(uS(t)&&e.call(this,t,"number"===typeof n?n:void 0,r||void 0))}}function cS(e){return Boolean(e&&"object"===typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"===typeof e.tagName)}function uS(e){return null!==e&&"object"===typeof e&&"type"in e&&"tagName"in e}const hS={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},dS={};function pS(e){return Np(e)}function fS(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function mS(e,t){const n=gS(e,t);return Array.isArray(n)?n:[n]}function gS(e,t){return"function"===typeof e?e(t):pS(e)}function OS(e,t){return"function"===typeof e?e(t):e?pS(e):{}}const bS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return e=>{Vu(e,(e,r,i)=>{if("element"===e.type||"root"===e.type){let r=!1;e.children=e.children.filter(e=>{if("raw"===e.type||"comment"===e.type){let i=(e.value||"").trim();if(i=i.replace(/^<!--(.*?)-->/,"$1"),i===t)return r=!0,!1;if(i===n)return r=!1,!1}return!r})}})}};var vS={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};var yS=[function(e){const t=(e||oS).prefix||"";return function(e){sS.reset(),Vu(e,"element",function(e){iS(e)&&!e.properties.id&&(e.properties.id=t+sS.slug(Gu(e)))})}},function(e){const t=e||dS;let n=t.properties;const r=t.headingProperties,i=t.behavior||"prepend",o=t.content,s=t.group,a=aS(t.test);let l;return"after"===i||"before"===i?l=function(e,t,r){if("number"!==typeof t||!r)return;const a=mS(o||hS,e),l=fS(e,OS(n,e),a);let c="before"===i?[l,e]:[e,l];if(s){const t=gS(s,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=c,c=[t])}return r.children.splice(t,1,...c),[Zu,t+c.length]}:"wrap"===i?l=function(e){let t=e.children,r=[];"function"===typeof o?(t=[],r=o(e)):o&&(r=pS(o));return e.children=[fS(e,OS(n,e),Array.isArray(r)?[...t,...r]:[...t,r])],[Zu]}:(l=function(e){const t=mS(o||hS,e);return e.children["prepend"===i?"unshift":"push"](fS(e,OS(n,e),t)),[Zu]},n||(n={ariaHidden:"true",tabIndex:-1})),function(e){Vu(e,"element",function(e,t,n){if(iS(e)&&e.properties.id&&a(e,t,n))return Object.assign(e.properties,OS(r,e)),l(e,t,n)})}},bS];const xS=ee.forwardRef((e,t)=>{var n,r,i,o=[eS,PO,tS,...yS,[yp,{rewrite:(r=null!=(n=e.disableCopy)&&n,i=e.rehypeRewrite,(e,t,n)=>{if("element"===e.type&&n&&"root"===n.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var o=e.children&&e.children[0];o&&o.properties&&"true"===o.properties.ariaHidden&&(o.properties=Qt({class:"anchor"},o.properties),o.children=[vS])}if("element"===e.type&&"pre"===e.tagName&&!r){var s=vp(e.children);e.children.push((void 0===(a=s)&&(a=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":a},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var a;i&&i(e,null===t?void 0:t,null===n?void 0:n)})}],[wp,{properties:"attr"}],...e.rehypePlugins||[],[ch,{ignoreMissing:!0}]];return(0,Lt.jsx)(Jk,Qt({},e,{rehypePlugins:o,ref:t}))});var kS={name:"bold",keyCommand:"bold",button:{"aria-label":"Add bold text"},icon:(0,Lt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 384 512",children:(0,Lt.jsx)("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange(e=>({changes:[{from:e.from,insert:"**"},{from:e.to,insert:"**"}],range:Js.OF.range(e.from+2,e.to+2)})))}},SS={name:"code",keyCommand:"code",button:{"aria-label":"Insert code"},icon:(0,Lt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,Lt.jsx)("path",{d:"M16 13 4 25.432 16 37m16-24 12 12.432L32 37",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Lt.jsx)("path",{d:"m28 4-7 40",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"})]}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange(e=>({changes:[{from:e.from,insert:"`"},{from:e.to,insert:"`"}],range:Js.OF.range(e.from+1,e.to+1)})))}},wS={name:"codeBlock",keyCommand:"codeBlock",button:{"aria-label":"Insert Code Block"},icon:(0,Lt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,Lt.jsx)("path",{d:"M21 6H9a3 3 0 0 0-3 3v22a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V21M24 34v8",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Lt.jsx)("path",{d:"m32 6-4 4 4 4m6-8 4 4-4 4M14 42h20",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"```js\n"+i+"\n```"},selection:Js.OF.range(r.from+3,r.from+5)})}}},AS={name:"italic",keyCommand:"italic",button:{"aria-label":"Add italic text"},icon:(0,Lt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 320 512",children:(0,Lt.jsx)("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange(e=>({changes:[{from:e.from,insert:"*"},{from:e.to,insert:"*"}],range:Js.OF.range(e.from+1,e.to+1)})))}},TS={name:"header",keyCommand:"header",button:{"aria-label":"Add header text"},icon:(0,Lt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Lt.jsx)("path",{d:"M448 448c0 17.69-14.33 32-32 32h-96c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V272H112v144h16c17.67 0 32 14.31 32 32s-14.33 32-32 32H32c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V96H32C14.33 96 0 81.69 0 64s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v112h224V96h-16c-17.67 0-32-14.31-32-32s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v320h16c17.7 0 32 14.3 32 32z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="#",o=r.text.match(/^#+/);if(o&&o[0]){var s=o[0];s.length<6&&(i=s+"#")}i.length>6&&(i="#");var a=r.text.replace(/^#+/,"");n.dispatch({changes:{from:r.from,to:r.to,insert:i+" "+a},selection:{anchor:r.from+i.length+1}})}}},ES={name:"strike",keyCommand:"strike",button:{"aria-label":"Add strike text"},icon:(0,Lt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Lt.jsx)("path",{d:"M332.2 319.9c17.22 12.17 22.33 26.51 18.61 48.21-3.031 17.59-10.88 29.34-24.72 36.99-35.44 19.75-108.5 11.96-186-19.68-16.34-6.686-35.03 1.156-41.72 17.53s1.188 35.05 17.53 41.71c31.75 12.93 95.69 35.37 157.6 35.37 29.62 0 58.81-5.156 83.72-18.96 30.81-17.09 50.44-45.46 56.72-82.11 3.998-23.27 2.168-42.58-3.488-59.05H332.2zm155.8-80-176.5-.03c-15.85-5.614-31.83-10.34-46.7-14.62-85.47-24.62-110.9-39.05-103.7-81.33 2.5-14.53 10.16-25.96 22.72-34.03 20.47-13.15 64.06-23.84 155.4.343 17.09 4.53 34.59-5.654 39.13-22.74 4.531-17.09-5.656-34.59-22.75-39.12-91.31-24.18-160.7-21.62-206.3 7.654C121.8 73.72 103.6 101.1 98.09 133.1c-8.83 51.4 9.81 84.2 39.11 106.8H24c-13.25 0-24 10.75-24 23.1 0 13.25 10.75 23.1 24 23.1h464c13.25 0 24-10.75 24-23.1 0-12.3-10.7-23.1-24-23.1z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange(e=>({changes:[{from:e.from,insert:"~~"},{from:e.to,insert:"~~"}],range:Js.OF.range(e.from+2,e.to+2)})))}},CS={name:"underline",keyCommand:"underline",button:{"aria-label":"Add underline text"},icon:(0,Lt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Lt.jsx)("path",{d:"M416 448H32c-17.69 0-32 14.31-32 32s14.31 32 32 32h384c17.69 0 32-14.31 32-32s-14.3-32-32-32zM48 64.01h16v160c0 88.22 71.78 159.1 160 159.1s160-71.78 160-159.1v-160h16c17.69 0 32-14.32 32-32S417.69.91 400 .91l-96-.005c-17.69 0-32 14.32-32 32s14.31 32 32 32h16v160c0 52.94-43.06 95.1-96 95.1S128 276.1 128 224V64h16c17.69 0 32-14.31 32-32S161.69 0 144 0L48 .005c-17.69 0-32 14.31-32 31.1S30.31 64.01 48 64.01z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange(e=>({changes:[{from:e.from,insert:"<u>"},{from:e.to,insert:"</u>"}],range:Js.OF.range(e.from+3,e.to+3)})))}},_S={name:"olist",keyCommand:"olist",button:{"aria-label":"Add olist text"},icon:(0,Lt.jsx)("svg",{viewBox:"0 0 576 512",height:"14",width:"14",children:(0,Lt.jsx)("path",{fill:"currentColor",d:"M55.1 56.04c0-13.26 11.64-24 24-24h32c14.2 0 24 10.74 24 24V176h16c14.2 0 24 10.8 24 24 0 13.3-9.8 24-24 24h-80c-12.36 0-24-10.7-24-24 0-13.2 11.64-24 24-24h16V80.04h-8c-12.36 0-24-10.75-24-24zm63.6 285.16c-6.6-7.4-18.3-6.9-24.05 1.2l-11.12 15.5c-7.7 10.8-22.69 13.3-33.48 5.6-10.79-7.7-13.28-22.7-5.58-33.4l11.12-15.6c23.74-33.3 72.31-35.7 99.21-4.9 21.3 23.5 20.8 60.9-1.1 84.7L118.8 432H152c13.3 0 24 10.7 24 24s-10.7 24-24 24H64c-9.53 0-18.16-5.6-21.98-14.4-3.83-8.7-2.12-18.9 4.34-25.9l72.04-78c5.3-5.8 5.4-14.6.3-20.5zM512 64c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="1. ",o=r.text.match(/^1\./);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},PS={name:"ulist",keyCommand:"ulist",button:{"aria-label":"Add ulist text"},icon:(0,Lt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Lt.jsx)("path",{fill:"currentColor",d:"M88 48c13.3 0 24 10.75 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24V72c0-13.25 10.75-24 24-24h48zm392 16c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zM16 232c0-13.3 10.75-24 24-24h48c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48zm72 136c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48c0-13.3 10.75-24 24-24h48z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- ",o=r.text.match(/^-/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},DS={name:"quote",keyCommand:"quote",button:{"aria-label":"Add quote text"},icon:(0,Lt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Lt.jsx)("path",{d:"M96 96c-53.02 0-96 42.1-96 96s42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96c0-53.9-43-96-96-96zm352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="> ",o=r.text.match(/^>\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},MS={name:"link",keyCommand:"link",button:{"aria-label":"Add link text"},icon:(0,Lt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 640 512",height:"16",width:"16",children:(0,Lt.jsx)("path",{d:"M172.5 131.1c55.6-55.59 148-55.59 203.6 0 50 50 57.4 129.7 16.3 187.2l-1.1 1.6c-10.3 14.3-30.3 17.7-44.6 7.4-14.4-10.3-17.8-30.3-7.5-44.6l1.1-1.6c22.9-32.1 19.3-76-8.6-103.9-31.4-31.4-82.5-31.4-114 0L105.5 289.5c-31.51 30.6-31.51 82.5 0 114 27.8 27.9 71.8 31.5 103.8 8.6l1.6-2c14.4-9.4 34.4-6.1 44.6 8.3 10.3 14.4 7 34.4-7.4 44.7l-1.6 1.1c-58.4 41.1-136.3 34.5-186.29-15.4-56.469-56.5-56.469-148.1 0-204.5L172.5 131.1zm295 248.9c-56.5 56.5-148 56.5-204.5 0-50-50-56.5-128.8-15.4-186.3l1.1-1.6c9.4-14.3 29.4-17.7 44.6-7.4 14.4 9.4 17.8 29.4 7.5 44.6l-1.1 1.6c-22.9 31.2-19.3 76 8.6 103.9 31.4 31.4 82.5 31.4 114 0l112.2-112.3c31.5-31.5 31.5-83.4 0-114-27.8-27.87-71.8-31.51-103.8-8.6l-1.6 1.1c-14.4 10.3-34.4 6.1-44.6-7.42-10.3-14.38-7-34.37 7.4-44.64l1.6-1.12C451 6.731 529.8 13.25 579.8 63.24c56.5 56.46 56.5 148.06 0 204.46L467.5 380z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n&&t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"["+i+"]()"},selection:Js.OF.range(r.from+3+i.length,r.to+3)})}}},NS={name:"todo",keyCommand:"todo",button:{"aria-label":"Add todo List"},icon:(0,Lt.jsx)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:(0,Lt.jsx)("path",{d:"m5 10 3 3 6-6M5 24l3 3 6-6M5 38l3 3 6-6m7-11h22M21 38h22M21 10h22",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- [ ] ",o=r.text.match(/^-\s\[\s\]\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},RS={name:"image",keyCommand:"image",button:{"aria-label":"Add image text"},icon:(0,Lt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"14",width:"14",children:(0,Lt.jsx)("path",{fillRule:"evenodd",d:"M1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h.94a.76.76 0 0 1 .03-.03l6.077-6.078a1.75 1.75 0 0 1 2.412-.06L14.5 10.31V2.75a.25.25 0 0 0-.25-.25H1.75zm12.5 11H4.81l5.048-5.047a.25.25 0 0 1 .344-.009l4.298 3.889v.917a.25.25 0 0 1-.25.25zm1.75-.25V2.75A1.75 1.75 0 0 0 14.25 1H1.75A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25zM5.5 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM7 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"![]("+i+")"},selection:Js.OF.range(r.from+4,r.to+4)})}}},QS={name:"redo",keyCommand:"redo",button:{"aria-label":"redo text"},icon:(0,Lt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Lt.jsx)("path",{fill:"currentColor",d:"M58.79,439.13A16,16,0,0,1,48,424c0-73.1,14.68-131.56,43.65-173.77,35-51,90.21-78.46,164.35-81.87V88a16,16,0,0,1,27.05-11.57l176,168a16,16,0,0,1,0,23.14l-176,168A16,16,0,0,1,256,424V344.23c-45,1.36-79,8.65-106.07,22.64-29.25,15.12-50.46,37.71-73.32,67a16,16,0,0,1-17.82,5.28Z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&ga(n)}},IS={name:"undo",keyCommand:"undo",button:{"aria-label":"undo text"},icon:(0,Lt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Lt.jsx)("path",{fill:"currentColor",d:"M448,440a16,16,0,0,1-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335,352.88,301,345.59,256,344.23V424A16,16,0,0,1,229,435.57l-176-168a16,16,0,0,1,0-23.14l176-168A16,16,0,0,1,256,88v80.36c74.14,3.41,129.38,30.91,164.35,81.87C449.32,292.44,464,350.9,464,424a16,16,0,0,1-16,16Z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&ma(n)}},LS=["editorProps","command","onClick"],FS=e=>{var{editorProps:t,command:n,onClick:r}=e,i=It(e,LS),o=(0,ee.useRef)(0),[s,a]=(0,ee.useState)(!1),l=(0,ee.useRef)(s),c=e=>{var n;for(var r of e){var i;o.current||(o.current=r.target.clientHeight),null!=(i=t.editor)&&null!=(i=i.current)&&null!=(i=i.view)&&i.dom&&(l.current?t.editor.current.view.dom.style.height=r.target.clientHeight+"px":t.editor.current.view.dom.removeAttribute("style"))}null==(n=u.current)||n.disconnect(),u.current=void 0},u=(0,ee.useRef)(new ResizeObserver(c));(0,ee.useEffect)(()=>{if(u.current||(u.current=new ResizeObserver(c)),t.containerEditor&&t.containerEditor.current&&t.containerEditor.current.parentElement&&u.current){var e=t.containerEditor.current.parentElement;u.current.observe(e)}return()=>{u.current&&(u.current.disconnect(),u.current=void 0)}},[t.containerEditor,c,t.editor,s,u]),(0,ee.useEffect)(()=>{if(document&&t&&t.container&&t.container.current&&t.editor){var e=t.container.current;document.body.style.overflow=s?"hidden":"initial",s?document.body.classList.add(t.prefixCls+"-fullscreen"):document.body.classList.remove(t.prefixCls+"-fullscreen"),e&&s?(e.style.zIndex="999",e.style.position="fixed",e.style.top="0px",e.style.bottom="0px",e.style.left="0px",e.style.right="0px"):e&&(e.style.position="initial",e.style.top="initial",e.style.bottom="initial",e.style.left="initial",e.style.right="initial")}},[s,t]);return(0,Lt.jsx)("button",Qt({},i,{onClick:e=>{var t=!s;l.current=t,a(t),null==r||r(e,t)},type:"button",className:s?"active":"",children:n.icon}))},$S={name:"fullscreen",keyCommand:"fullscreen",button:(e,t,n)=>(0,Lt.jsx)(FS,{command:e,editorProps:Qt({},t,n)}),icon:(0,Lt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Lt.jsx)("path",{d:"M128 32H32C14.31 32 0 46.31 0 64v96c0 17.69 14.31 32 32 32s32-14.31 32-32V96h64c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288 0h-96c-17.69 0-32 14.31-32 32s14.31 32 32 32h64v64c0 17.69 14.31 32 32 32s32-14.31 32-32V64c0-17.69-14.3-32-32-32zM128 416H64v-64c0-17.69-14.31-32-32-32S0 334.31 0 352v96c0 17.69 14.31 32 32 32h96c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288-96c-17.69 0-32 14.31-32 32v64h-64c-17.69 0-32 14.31-32 32s14.31 32 32 32h96c17.69 0 32-14.31 32-32v-96c0-17.7-14.3-32-32-32z"})})},BS=e=>{var{editorProps:t}=e,{containerEditor:n,preview:r,previewWidth:i="50%",enablePreview:o=!0}=t,[s,a]=(0,ee.useState)(e.editorProps.visible);if((0,ee.useEffect)(()=>a(e.editorProps.visible),[e.editorProps.visible]),(0,ee.useEffect)(()=>{if(r.current){var e=r.current;r&&(e.style.borderBottomRightRadius="3px"),e&&s?(e.style.width=i,e.style.overflow="auto","100%"!==i&&(e.style.borderLeft="1px solid var(--color-border-muted)"),e.style.padding="20px",n.current&&(n.current.style.width="calc(100% - "+i+")")):e&&(e.style.width="0%",e.style.overflow="hidden",e.style.borderLeft="0px",e.style.padding="0",n.current&&(n.current.style.width="100%"))}},[s,n,r,i]),o){return(0,Lt.jsx)("button",{onClick:()=>{t.onPreviewMode&&t.onPreviewMode(!s),a(!s)},type:"button",className:s?"active":"",children:e.command.icon})}},zS={name:"preview",keyCommand:"preview",button:(e,t,n)=>(0,Lt.jsx)(BS,{command:e,editorProps:Qt({},t,n)}),icon:(0,Lt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 576 512",height:"16",width:"16",children:(0,Lt.jsx)("path",{d:"M279.6 160.4c2.8-.3 5.6-.4 8.4-.4 53 0 96 42.1 96 96 0 53-43 96-96 96-53.9 0-96-43-96-96 0-2.8.1-5.6.4-8.4 9.3 4.5 20.1 8.4 31.6 8.4 35.3 0 64-28.7 64-64 0-11.5-3.9-22.3-8.4-31.6zm201-47.8c46.8 43.4 78.1 94.5 92.9 131.1 3.3 7.9 3.3 16.7 0 24.6-14.8 35.7-46.1 86.8-92.9 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.58-80.6C48.62 355.1 17.34 304 2.461 268.3a31.967 31.967 0 0 1 0-24.6C17.34 207.1 48.62 156 95.42 112.6 142.5 68.84 207.2 32 288 32c80.8 0 145.5 36.84 192.6 80.6zM288 112c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"})})},qS={undo:IS,redo:QS,bold:kS,italic:AS,header:TS,strike:ES,underline:CS,quote:DS,olist:_S,ulist:PS,todo:NS,link:MS,image:RS,code:SS,codeBlock:wS,fullscreen:$S,preview:zS},HS=()=>Object.keys(qS).filter(e=>!/^(fullscreen|preview)/.test(e)).map(e=>qS[e]),US=()=>[zS,$S],XS=["prefixCls","className","onClick","toolbars","editor","mode","preview","container","containerEditor","editorProps"];function jS(e){var{prefixCls:t="md-editor",className:n,toolbars:r=[],editor:i,mode:o,preview:s,container:a,containerEditor:l,editorProps:c={}}=e,u=It(e,XS);if(!r||0===r.length)return null;return c.prefixCls=t,(0,Lt.jsx)("div",Qt({className:t+"-toolbar "+(n||"")+" "+(o?t+"-toolbar-mode":"")},u,{children:[...r].map((e,t)=>{var n={type:"button"},r="string"===typeof e?qS[e]:e;if(!r)return null;if(n.children=r.icon,n.onClick=()=>{var e;(e=r.execute)&&i&&i&&e(i.current)},r.button&&"object"===typeof r.button){var o=r.button;Object.keys(o).forEach(e=>{n[e]=o[e]})}else if("function"===typeof r.button){var u=r.button(r,c,{preview:s,container:a,containerEditor:l,editor:i,editorProps:c});return(0,Lt.jsx)(ee.Fragment,{children:u},t)}return(0,ee.createElement)("button",Qt({},n,{key:t}))})}))}var ZS=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),n.fontSize&&(o.fontSize=n.fontSize),(n.background||n.foreground)&&(i["&"]=o),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=Ws.Lz.theme(i,{dark:"dark"===t}),l=Zs.cr.define(r);return[a,(0,Zs.y9)(l)]};var YS=ZS({theme:"light",settings:{background:"var(--color-canvas-subtle)",foreground:"var(--color-fg-default)",caret:"var(--color-fg-default)",selection:"var(--color-border-default)",selectionMatch:"var(--color-border-muted)",lineHighlight:"var(--color-neutral-muted)",gutterBackground:"var(--color-canvas-subtle)",gutterForeground:"var(--color-fg-muted)",gutterBorder:"var(--color-border-muted)"},styles:[{tag:uu._A.comment,color:"var(--color-prettylights-syntax-comment)"},{tag:uu._A.variableName,color:"var(--color-prettylights-syntax-variable)"},{tag:[uu._A.string,uu._A.special(uu._A.brace)],color:"var(--color-prettylights-syntax-entity)"},{tag:uu._A.number,color:"var(--color-prettylights-syntax-variable)"},{tag:[uu._A.bool,uu._A.null],color:"var(--color-prettylights-syntax-entity)"},{tag:uu._A.keyword,color:"var(--color-prettylights-syntax-keyword)",fontWeight:"bold"},{tag:uu._A.string,color:"var(--color-prettylights-syntax-string)"},{tag:uu._A.operator,color:"var(--color-accent-emphasis)"},{tag:uu._A.deleted,color:"var(--color-prettylights-syntax-markup-deleted-bg)"},{tag:uu._A.deleted,color:"red"},{tag:uu._A.className,color:"var(--color-prettylights-syntax-variable)"},{tag:uu._A.definition(uu._A.typeName),color:"var(--color-prettylights-syntax-entity)"},{tag:uu._A.typeName,color:"var(--color-prettylights-syntax-entity)"},{tag:uu._A.list,color:"var(--color-prettylights-syntax-markup-list)"},{tag:uu._A.heading,color:"var(--color-prettylights-syntax-markup-heading)",fontWeight:"bold"},{tag:uu._A.regexp,color:"var(--color-prettylights-syntax-string-regexp)"},{tag:uu._A.literal,color:"var(--color-prettylights-syntax-markup-italic)"},{tag:uu._A.link,color:"var(--color-prettylights-syntax-constant-other-reference-link)",textDecoration:"underline"},{tag:uu._A.angleBracket,color:"var(--color-fg-default)"},{tag:uu._A.tagName,color:"var(--color-prettylights-syntax-entity-tag)"},{tag:uu._A.attributeName,color:"var(--color-prettylights-syntax-constant)"}]}),VS=["prefixCls","className","onChange","toolbars","toolbarsMode","toolbarsFilter","visible","renderPreview","visibleEditor","hideToolbar","showToolbar","toolbarBottom","enableScroll","enablePreview","previewProps","extensions","previewWidth","reExtensions","onPreviewMode"],GS=Ws.Lz.theme({"&.cm-editor, & .cm-scroller":{borderBottomRightRadius:"3px",borderBottomLeftRadius:"3px"}}),WS=ee.forwardRef(JS);WS.Markdown=xS;const KS=WS;function JS(e,t){var{prefixCls:n="md-editor",className:r,onChange:i,toolbars:o=HS(),toolbarsMode:s=US(),toolbarsFilter:a,visible:l=!0,renderPreview:c,visibleEditor:u=!0,hideToolbar:h,showToolbar:d=!0,toolbarBottom:p=!1,enableScroll:f=!0,enablePreview:m=!0,previewProps:g={},extensions:O=[],previewWidth:b="50%",reExtensions:v}=e,y=It(e,VS),[x,k]=(0,ee.useState)(e.value||""),S=(0,ee.useRef)(null),w=(0,ee.useRef)(null),A=(0,ee.useRef)(null),T=(0,ee.useRef)(null),E=(0,ee.useRef)("editor");(0,ee.useImperativeHandle)(t,()=>({editor:S,preview:T}),[S]);var C={prefixCls:n,preview:T,editor:S,container:w,containerEditor:A,editorProps:Qt({},e,{previewWidth:b})},_="number"===typeof y.height?y.height+"px":y.height,P=e.value;(0,ee.useEffect)(()=>k(null!=P?P:""),[P]);var D=(0,ee.useCallback)(e=>{if(f){var t=e.target,n=t.scrollTop/t.scrollHeight;if("editor"===E.current&&T.current){var r,i=(null==(r=T.current)?void 0:r.scrollHeight)||0;T.current.scrollTop=i*n}else if(S.current&&S.current.view){var o=S.current.view.scrollDOM,s=S.current.view.scrollDOM.scrollHeight||0;o.scrollTop=s*n}}},[f]),M=()=>E.current="preview",N=()=>E.current="editor";(0,ee.useEffect)(()=>{var e=T.current;return e&&f&&(e.addEventListener("mouseover",M,!1),e.addEventListener("mouseleave",N,!1),e.addEventListener("scroll",D,!1)),()=>{e&&f&&(e.removeEventListener("mouseover",M),e.removeEventListener("mouseleave",M),e.addEventListener("mouseleave",D,!1))}},[T,f,D]);var R=Ks({type:"scroll",events:{scroll:D}}),Q=v||[(0,js.markdown)({base:js.markdownLanguage,codeLanguages:Gs}),GS,...O];f&&Q.push(R);var I=n+"-preview",L=[n,"wmde-markdown-var",r].filter(Boolean).join(" ");g.source=x;var F=(0,Lt.jsxs)("div",{className:n+"-content",style:{height:y.height},children:[(0,Lt.jsx)("div",{className:n+"-content-editor",ref:A,children:u&&(0,Lt.jsx)($u,Qt({theme:YS},y,{className:n+"-inner",extensions:Q,height:_,ref:S,onChange:(e,t)=>{k(e),i&&i(e,t)}}))}),m&&(0,Lt.jsx)("div",{className:I,ref:T,children:c?c(g,!!l):(0,Lt.jsx)(xS,Qt({},g,{"data-visible":!!l}))})]}),$=[n&&n+"-toolbar-warp",n&&p&&n+"-toolbar-bottom"].filter(Boolean).join(" "),B=a?o.filter(a):o,z=a?s.filter(a):s,q=(null!=h?h:d)&&(0,Lt.jsxs)("div",{className:$,children:[(0,Lt.jsx)(jS,Qt({},C,{toolbars:B})),(0,Lt.jsx)(jS,Qt({},C,{toolbars:z,mode:!0}))]}),H=p?(0,Lt.jsxs)(ee.Fragment,{children:[F,q]}):(0,Lt.jsxs)(ee.Fragment,{children:[q,F]});return(0,Lt.jsx)("div",{className:L,ref:w,children:H})}var ew={background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#0a6bcb3d"},tw=[{tag:uu._A.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:uu._A.atom,color:"#77F"},{tag:uu._A.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:uu._A.number,color:"violet"},{tag:uu._A.definition(uu._A.variableName),color:"#fffabc"},{tag:uu._A.variableName,color:"#abcdef"},{tag:uu._A.function(uu._A.variableName),color:"#fffabc"},{tag:uu._A.typeName,color:"#FFDD44"},{tag:uu._A.tagName,color:"#def"},{tag:uu._A.string,color:"#2b4"},{tag:uu._A.meta,color:"#C9F"},{tag:uu._A.bracket,color:"#8a8a8a"},{tag:uu._A.attributeName,color:"#DDFF00"},{tag:uu._A.heading,color:"aquamarine",fontWeight:"bold"},{tag:uu._A.link,color:"blueviolet",fontWeight:"bold"}],nw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},ew,n),styles:[...tw,...r]})})(),rw={background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#4e5254",selectionMatch:"#4e5254",lineHighlight:"#7f85891f"},iw=[{tag:[uu._A.keyword,uu._A.deleted,uu._A.className],color:"#cc7832"},{tag:[uu._A.number,uu._A.literal,uu._A.derefOperator],color:"#6897bb"},{tag:[uu._A.link,uu._A.variableName],color:"#629755"},{tag:[uu._A.comment,uu._A.quote],color:"grey"},{tag:[uu._A.meta,uu._A.documentMeta],color:"#bbb529"},{tag:[uu._A.string,uu._A.propertyName,uu._A.attributeValue],color:"#6a8759"},{tag:[uu._A.heading,uu._A.typeName],color:"#ffc66d"},{tag:[uu._A.attributeName],color:"#a9b7c6"},{tag:[uu._A.emphasis],fontStyle:"italic"}],ow=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},rw,n),styles:[...iw,...r]})})(),sw={background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#3d4c64",selectionMatch:"#3d4c64",gutterBackground:"#272C35",gutterForeground:"#465063",gutterBorder:"transparent",lineHighlight:"#2e3f5940"},aw=[{tag:[uu._A.function(uu._A.variableName),uu._A.function(uu._A.propertyName),uu._A.url,uu._A.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[uu._A.tagName,uu._A.heading],color:"#e06c75"},{tag:uu._A.comment,color:"#54636D"},{tag:[uu._A.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[uu._A.attributeName,uu._A.number],color:"hsl( 29, 54%, 61%)"},{tag:uu._A.className,color:"hsl( 39, 67%, 69%)"},{tag:uu._A.keyword,color:"hsl(286, 60%, 67%)"},{tag:[uu._A.string,uu._A.regexp,uu._A.special(uu._A.propertyName)],color:"#98c379"}],lw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},sw,n),styles:[...aw,...r]})})(),cw={background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},uw=[{tag:[uu._A.meta,uu._A.comment],color:"#804000"},{tag:[uu._A.keyword,uu._A.strong],color:"#0000FF"},{tag:[uu._A.number],color:"#FF0080"},{tag:[uu._A.string],color:"#FF0080"},{tag:[uu._A.variableName],color:"#006600"},{tag:[uu._A.escape],color:"#33CC33"},{tag:[uu._A.tagName],color:"#1C02FF"},{tag:[uu._A.heading],color:"#0C07FF"},{tag:[uu._A.quote],color:"#000000"},{tag:[uu._A.list],color:"#B90690"},{tag:[uu._A.documentMeta],color:"#888888"},{tag:[uu._A.function(uu._A.variableName)],color:"#0000A2"},{tag:[uu._A.definition(uu._A.typeName),uu._A.typeName],color:"#6D79DE"}],hw=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},cw,n),styles:[...uw,...r]})})(),dw={background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#4f382b",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"#ffffff1a"},pw=[{tag:[uu._A.atom,uu._A.number,uu._A.link,uu._A.bool],color:"#9b859d"},{tag:uu._A.comment,color:"#937121"},{tag:[uu._A.keyword,uu._A.tagName],color:"#cf6a4c"},{tag:uu._A.string,color:"#f9ee98"},{tag:uu._A.bracket,color:"#9d9b97"},{tag:[uu._A.variableName],color:"#5ea6ea"},{tag:uu._A.definition(uu._A.variableName),color:"#cf7d34"},{tag:[uu._A.function(uu._A.variableName),uu._A.className],color:"#cf7d34"},{tag:[uu._A.propertyName,uu._A.attributeName],color:"#54be0d"}],fw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},dw,n),styles:[...pw,...r]})})(),mw={background:"#2B2B2B",foreground:"#f8f8f2",caret:"#FFFFFF",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"rgba(255, 255, 255, 0.1)",gutterForeground:"#999",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},gw=[{tag:[uu._A.atom,uu._A.number],color:"#bd93f9"},{tag:[uu._A.comment],color:"#61A151"},{tag:[uu._A.string],color:"#6A8759"},{tag:[uu._A.variableName,uu._A.operator],color:"#A9B7C6"},{tag:[uu._A.meta,uu._A.className],color:"#A9B7C6"},{tag:[uu._A.propertyName],color:"#FFC66D"},{tag:[uu._A.keyword],color:"#CC7832"},{tag:[uu._A.tagName],color:"#ff79c6"},{tag:[uu._A.typeName],color:"#ffb86c"}],Ow=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},mw,n),styles:[...gw,...r]})})(),bw={background:"#282a36",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"#282a36",gutterForeground:"#6D8A88",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},vw=[{tag:uu._A.comment,color:"#6272a4"},{tag:uu._A.string,color:"#f1fa8c"},{tag:uu._A.atom,color:"#bd93f9"},{tag:uu._A.meta,color:"#f8f8f2"},{tag:[uu._A.keyword,uu._A.operator,uu._A.tagName],color:"#ff79c6"},{tag:[uu._A.function(uu._A.propertyName),uu._A.propertyName],color:"#66d9ef"},{tag:[uu._A.definition(uu._A.variableName),uu._A.function(uu._A.variableName),uu._A.className,uu._A.attributeName],color:"#50fa7b"},{tag:uu._A.atom,color:"#bd93f9"}],yw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},bw,n),styles:[...vw,...r]})})(),xw={background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",gutterBorder:"transparent",lineHighlight:"#ddceb154"},kw=[{tag:[uu._A.comment,uu._A.bracket],color:"#b6ad9a"},{tag:[uu._A.atom,uu._A.number,uu._A.keyword,uu._A.link,uu._A.attributeName,uu._A.quote],color:"#063289"},{tag:[uu._A.emphasis,uu._A.heading,uu._A.tagName,uu._A.propertyName,uu._A.variableName],color:"#2d2006"},{tag:[uu._A.typeName,uu._A.url,uu._A.string],color:"#896724"},{tag:[uu._A.operator,uu._A.string],color:"#1659df"},{tag:[uu._A.propertyName],color:"#b29762"},{tag:[uu._A.unit,uu._A.punctuation],color:"#063289"}],Sw=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},xw,n),styles:[...kw,...r]})})(),ww={background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"#91ff6c26",selectionMatch:"#91ff6c26",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},Aw=[{tag:[uu._A.comment,uu._A.bracket],color:"#6c6783"},{tag:[uu._A.atom,uu._A.number,uu._A.keyword,uu._A.link,uu._A.attributeName,uu._A.quote],color:"#ffcc99"},{tag:[uu._A.emphasis,uu._A.heading,uu._A.tagName,uu._A.propertyName,uu._A.className,uu._A.variableName],color:"#eeebff"},{tag:[uu._A.typeName,uu._A.url],color:"#7a63ee"},{tag:uu._A.operator,color:"#ffad5c"},{tag:uu._A.string,color:"#ffb870"},{tag:[uu._A.propertyName],color:"#9a86fd"},{tag:[uu._A.unit,uu._A.punctuation],color:"#e09142"}],Tw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},ww,n),styles:[...Aw,...r]})})(),Ew={background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#006fff1c",gutterBorder:"transparent"},Cw=[{tag:[uu._A.comment],color:"#3F7F5F"},{tag:[uu._A.documentMeta],color:"#FF1717"},{tag:uu._A.keyword,color:"#7F0055",fontWeight:"bold"},{tag:uu._A.atom,color:"#00f"},{tag:uu._A.number,color:"#164"},{tag:uu._A.propertyName,color:"#164"},{tag:[uu._A.variableName,uu._A.definition(uu._A.variableName)],color:"#0000C0"},{tag:uu._A.function(uu._A.variableName),color:"#0000C0"},{tag:uu._A.string,color:"#2A00FF"},{tag:uu._A.operator,color:"black"},{tag:uu._A.tagName,color:"#170"},{tag:uu._A.attributeName,color:"#00c"},{tag:uu._A.link,color:"#219"}],_w=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},Ew,n),styles:[...Cw,...r]})})(),Pw={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},Dw=[{tag:[uu._A.standard(uu._A.tagName),uu._A.tagName],color:"#116329"},{tag:[uu._A.comment,uu._A.bracket],color:"#6a737d"},{tag:[uu._A.className,uu._A.propertyName],color:"#6f42c1"},{tag:[uu._A.variableName,uu._A.attributeName,uu._A.number,uu._A.operator],color:"#005cc5"},{tag:[uu._A.keyword,uu._A.typeName,uu._A.typeOperator,uu._A.typeName],color:"#d73a49"},{tag:[uu._A.string,uu._A.meta,uu._A.regexp],color:"#032f62"},{tag:[uu._A.name,uu._A.quote],color:"#22863a"},{tag:[uu._A.heading,uu._A.strong],color:"#24292e",fontWeight:"bold"},{tag:[uu._A.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[uu._A.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[uu._A.atom,uu._A.bool,uu._A.special(uu._A.variableName)],color:"#e36209"},{tag:[uu._A.url,uu._A.escape,uu._A.regexp,uu._A.link],color:"#032f62"},{tag:uu._A.link,textDecoration:"underline"},{tag:uu._A.strikethrough,textDecoration:"line-through"},{tag:uu._A.invalid,color:"#cb2431"}],Mw=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},Pw,n),styles:[...Dw,...r]})})(),Nw={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},Rw=[{tag:[uu._A.standard(uu._A.tagName),uu._A.tagName],color:"#7ee787"},{tag:[uu._A.comment,uu._A.bracket],color:"#8b949e"},{tag:[uu._A.className,uu._A.propertyName],color:"#d2a8ff"},{tag:[uu._A.variableName,uu._A.attributeName,uu._A.number,uu._A.operator],color:"#79c0ff"},{tag:[uu._A.keyword,uu._A.typeName,uu._A.typeOperator,uu._A.typeName],color:"#ff7b72"},{tag:[uu._A.string,uu._A.meta,uu._A.regexp],color:"#a5d6ff"},{tag:[uu._A.name,uu._A.quote],color:"#7ee787"},{tag:[uu._A.heading,uu._A.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[uu._A.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[uu._A.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[uu._A.atom,uu._A.bool,uu._A.special(uu._A.variableName)],color:"#ffab70"},{tag:uu._A.link,textDecoration:"underline"},{tag:uu._A.strikethrough,textDecoration:"line-through"},{tag:uu._A.invalid,color:"#f97583"}],Qw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},Nw,n),styles:[...Rw,...r]})})(),Iw={background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#0000003b"},Lw=[{tag:[uu._A.comment,uu._A.documentMeta],color:"#8292a2"},{tag:[uu._A.number,uu._A.bool,uu._A.null,uu._A.atom],color:"#ae81ff"},{tag:[uu._A.attributeValue,uu._A.className,uu._A.name],color:"#e6db74"},{tag:[uu._A.propertyName,uu._A.attributeName],color:"#a6e22e"},{tag:[uu._A.variableName],color:"#9effff"},{tag:[uu._A.squareBracket],color:"#bababa"},{tag:[uu._A.string,uu._A.special(uu._A.brace)],color:"#e6db74"},{tag:[uu._A.regexp,uu._A.className,uu._A.typeName,uu._A.definition(uu._A.typeName)],color:"#66d9ef"},{tag:[uu._A.definition(uu._A.variableName),uu._A.definition(uu._A.propertyName),uu._A.function(uu._A.variableName)],color:"#fd971f"},{tag:[uu._A.keyword,uu._A.definitionKeyword,uu._A.modifier,uu._A.tagName,uu._A.angleBracket],color:"#f92672"}],Fw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},Iw,n),styles:[...Lw,...r]})})(),$w={background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},Bw=[{tag:[uu._A.meta,uu._A.comment],color:"#A2A9B5"},{tag:[uu._A.attributeName,uu._A.keyword],color:"#B78FBA"},{tag:uu._A.function(uu._A.variableName),color:"#5AB0B0"},{tag:[uu._A.string,uu._A.regexp,uu._A.attributeValue],color:"#99C592"},{tag:uu._A.operator,color:"#f47954"},{tag:[uu._A.tagName,uu._A.modifier],color:"#E35F63"},{tag:[uu._A.number,uu._A.definition(uu._A.tagName),uu._A.className,uu._A.definition(uu._A.variableName)],color:"#fbac52"},{tag:[uu._A.atom,uu._A.bool,uu._A.special(uu._A.variableName)],color:"#E35F63"},{tag:uu._A.variableName,color:"#539ac4"},{tag:[uu._A.propertyName,uu._A.typeName],color:"#629ccd"},{tag:uu._A.propertyName,color:"#36b7b5"}];var zw=function(e){var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},$w,n),styles:[...Bw,...r]})}(),qw={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},Hw=[{tag:[uu._A.comment,uu._A.quote],color:"#707F8D"},{tag:[uu._A.typeName,uu._A.typeOperator],color:"#aa0d91"},{tag:[uu._A.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[uu._A.string,uu._A.meta],color:"#D23423"},{tag:[uu._A.name],color:"#032f62"},{tag:[uu._A.typeName],color:"#522BB2"},{tag:[uu._A.variableName],color:"#23575C"},{tag:[uu._A.definition(uu._A.variableName)],color:"#327A9E"},{tag:[uu._A.regexp,uu._A.link],color:"#0e0eff"}];var Uw=function(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},qw,n),styles:[...Hw,...r]})}(),Xw={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},jw=[{tag:[uu._A.comment,uu._A.quote],color:"#7F8C98"},{tag:[uu._A.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[uu._A.string,uu._A.meta],color:"#FF8170"},{tag:[uu._A.typeName],color:"#DABAFF"},{tag:[uu._A.definition(uu._A.variableName)],color:"#6BDFFF"},{tag:[uu._A.name],color:"#6BAA9F"},{tag:[uu._A.variableName],color:"#ACF2E4"},{tag:[uu._A.regexp,uu._A.link],color:"#FF8170"}],Zw=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ZS({theme:t,settings:Qt({},Xw,n),styles:[...jw,...r]})})();const Yw='<div align="center">\n <h1 align="center">\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668</h1>\n</div>\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![CI](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml)\n[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n[![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n\n[![\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668](https://user-images.githubusercontent.com/1680273/188264183-a6b8cb6a-92e1-4a73-afc5-4f0234b26ed3.png)](https://jaywcjlove.github.io/wxmp)\n\n\u5fae\u4fe1\u516c\u4f17\u53f7\u6587\u7ae0 Markdown \u5728\u7ebf\u7f16\u8f91\u5668\uff0c\u4f7f\u7528 markdown \u8bed\u6cd5\u521b\u5efa\u4e00\u7bc7\u7b80\u4ecb\u7f8e\u89c2\u5927\u65b9\u7684\u5fae\u4fe1\u516c\u4f17\u53f7\u56fe\u6587\u3002\u7531\u4e8e\u53d1\u7248\u672c\u9ebb\u70e6\uff0c\u548c\u4e00\u4e9b\u529f\u80fd\u65e0\u6cd5\u6269\u5c55\u505c\u6ede\u5f00\u53d1\u4e86\uff0c\u672a\u6765\u4e0d\u518d\u5f00\u53d1 Chrome \u7684\u63d2\u4ef6(\u6682\u5b58\u5728 chrome \u5206\u652f)\uff0c\u901a\u8fc7 web \u7248\u672c\u5b9a\u5236\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002\n\n[![Markdown \u7f16\u8f91\u5668\u684c\u9762\u5e94\u7528](https://user-images.githubusercontent.com/1680273/188407235-ead43d61-2ef8-416a-926f-396d8b824b33.png)](https://github.com/jaywcjlove/wxmp/releases)\n\n## \u529f\u80fd\u7279\u6027\n\n\u5f00\u53d1\u8ba1\u5212\u548c\u4e00\u4e9b\u529f\u80fd\u4ecb\u7ecd\uff0c\u6709\u9700\u6c42\u53ef\u4ee5\u5728 issue \u4e2d\u63d0\uff0c\u4f7f\u5f97\u5de5\u5177\u53d8\u5f97\u66f4\u52a0\u5b8c\u5584\u3002\u4e0b\u9762\u793a\u4f8b\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n- [x] \u652f\u6301 Markdown \u6240\u6709\u57fa\u7840\u8bed\u6cd5\n- [x] \u652f\u6301\u81ea\u5b9a\u4e49 CSS \u6837\u5f0f\n- [x] \u652f\u6301\u4e3b\u9898\u9009\u62e9 & \u7f16\u8f91\u9884\u89c8\u3002\n- [x] \u652f\u6301\u660e\u6697\u4e24\u79cd\u4e3b\u9898\u9884\u89c8\u3002\n- [ ] \u652f\u6301\u4ee3\u7801\u5757\u4e3b\u9898\u6837\u5f0f\u9009\u62e9\u3002\n- [x] \u652f\u6301\u8272\u76d8\u53d6\u8272\uff0c\u5feb\u901f\u66ff\u6362\u6587\u7ae0\u6574\u4f53\u8272\u8c03\n- [x] \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\u3002\n- [x] \u652f\u6301 URL \u53c2\u6570\u9009\u62e9\u9884\u89c8\u4e3b\u9898\u3002\n- [x] CI \u81ea\u52a8\u751f\u6210 Electron \u684c\u9762\u5e94\u7528\u3002\n- [ ] ~~\u652f\u6301\u5168\u5c40\u5b57\u53f7\u5927\u5c0f\u9009\u62e9\u3002~~\n\n### \u6570\u5b66\u516c\u5f0f\n\n$\\\\c = \\pm\\sqrt{a^2 + b^2}$ \u548c $C_L$ \u6570\u5b66\u516c\u5f0f\u884c\u5185\u663e\u793a\n\n```math\nL = \\frac{1}{2} \\rho v^2 S C_L\n```\n\n### \u652f\u6301\u4ee3\u7801\u5757\u6837\u5f0f\n\n\u4e0b\u9762\u662f `jsx` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```jsx\nfunction Demo() {\n return <div className="demo">Hello World!</div>\n}\n```\n\n\u4e0b\u9762\u662f `css` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```css\nli {\n font-size: 16px;\n margin: 0;\n line-height: 26px;\n color: rgb(30 41 59);\n font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;\n}\n```\n\n### \u652f\u6301\u5185\u8054\u4ee3\u7801\n\n> \u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\nInline Code `{code: 0}`\n\n### \u652f\u6301\u8868\u683c\n\n\u8868\u683c\u65e0\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u6837\u5f0f\uff0c\u6682\u65f6\u6ca1\u627e\u5230\u89e3\u51b3\u9014\u5f84\n\n| Header 1 | Header 2 |\n| --- | --- |\n| Key 1 | Value 1 |\n| Key 2 | Value 2 |\n| Key 3 | Value 3 |\n\n### \u652f\u6301 GFM \u811a\u6ce8\n\n\u8fd9\u662f\u4e00\u4e2a\u7b80\u5355\u7684 Markdown[^1] \u8bed\u6cd5\u7684\u811a\u6ce8[^2]\u3002 \u9875\u9762\u6700\u540e\u6709\u4e00\u4e9b\u989d\u5916\u7684\u6587\u5b57\u63cf\u8ff0\u3002\u6ce8\u610f\u8fd9\u4e0d\u662f\u5b8c\u6574\u7684\u6ce8\u811a[^3]\u7279\u6027\u3002\n\n[^1]: GitHub \u98ce\u683c\u7684 Markdown \u89c4\u8303 https://github.github.com/gfm/\n[^2]: \u811a\u6ce8 https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/\n[^3]: \u5fae\u4fe1\u6587\u7ae0\u4e0d\u652f\u6301\u951a\u70b9\u8df3\u8f6c\u548c\u6253\u5f00\u7b2c\u4e09\u65b9 URL \u8d85\u94fe\u63a5\uff0c\u6240\u4ee5\u4e0d\u652f\u6301\u5b8c\u6574\u7684\u6ce8\u811a\u7279\u6027\u3002\n\n### \u652f\u6301\u6ce8\u91ca\n\n```html\n<ruby>\n \u6c49 <rt>Han</rt>\n</ruby>\n```\n\n\u6c49\u5b57\u6ce8\u97f3\u6548\u679c\uff1a\n<ruby>\n \u6c49 <rt>Han</rt>\n \u5b57 <rt>zi</rt>\n \u62fc <rt>pin</rt>\n \u97f3 <rt>yin</rt>\n \u6ce8 <rt>zhu</rt>\n \u97f3 <rt>yin</rt>\n</ruby>\n\n### \u652f\u6301\u81ea\u5b9a\u4e49\u6837\u5f0f\n\x3c!--rehype:style=color: red;--\x3e\n\n\u5728 Markdown \u4e2d HTML \u6ce8\u91ca\u4e5f\u53ef\u4ee5\u7528\u5728 markdown \u4e2d\uff0c\u5229\u7528\u8fd9\u4e00\u7279\u70b9\uff0c\u4e3a\u4e00\u4e9b\u5185\u5bb9\u81ea\u5b9a\u4e00\u6837\u5f0f\u3002\u4f7f\u7528 HTML \u6ce8\u91ca `\x3c!--rehype:xxx--\x3e`\x3c!--rehype:style=color: red;background: #ff000033;--\x3e \u8ba9 Markdown \u652f\u6301\u6837\u5f0f\u81ea\u5b9a\u4e49\u3002\n\n```markdown\n## \u5b9a\u4e49\u6807\u9898\u6837\u5f0f\n\x3c!--rehype:style=display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px;--\x3e\n\n\u652f\u6301\u5bf9\u67d0\u4e9b\u6587\u5b57\u53d8\u66f4\u6837\u5f0f\uff0c\u5982_\u6587\u5b57\u989c\u8272_\x3c!--rehype:style=color: red;--\x3e\uff0c\u6587\u5b57\u989c\u8272\u5c06\u88ab\u8bbe\u7f6e\u4e3a\u7ea2\u8272(red)\u3002\n```\n\n\u26a0\ufe0f \u6ce8\u610f\uff1a\u8fd9\u4e00\u7279\u6027\u53ef\u80fd\u9002\u7528\u4e8e\u6709\u4e00\u5b9a css \u524d\u7aef\u57fa\u7840\u77e5\u8bc6\u7684\u7528\u6237\uff0c\u4e0d\u8fc7\u5b83\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u4f7f\u7528 `\x3c!--rehype:style=` \u5f00\u59cb\uff0c`--\x3e` \u7ed3\u675f\uff0c\u4e2d\u95f4\u5305\u88f9 css \u6837\u5f0f\uff0c\u5982 `color: red;` \u8bbe\u7f6e\u6587\u5b57\u7ea2\u8272\u3002\n\n\n### \u6807\u8bb0\u5ffd\u7565\u5185\u5bb9\n\n\u6b64\u7279\u6027\u5229\u7528 HTML \u6ce8\u91ca\u5728 markdown \u4e2d\u88ab\u5ffd\u7565\u7684\u7279\u6027\uff0c\u6807\u8bb0\u9700\u8981\u5ffd\u7565\u7684\u5185\u5bb9\uff0c\u6807\u8bb0\u5f00\u59cb `\x3c!--rehype:ignore:start--\x3e`\uff0c\u6807\u8bb0\u7ed3\u675f `\x3c!--rehype:ignore:end--\x3e`\uff0c\u88ab\u6807\u8bb0\u7684\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\uff0c\u6bd4\u5982 GitHub \u4e2d\u80fd\u5c55\u793a\u3002\n\n```markdown\n# \u6ce8\u91ca\u5ffd\u7565\n\n\x3c!--rehype:ignore:start--\x3e\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\u3002\x3c!--rehype:ignore:end--\x3e\n```\n\n### \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\n\n```\nhttps://<URL>?md=<Markdown \u8d44\u6e90 URL>\n```\n\n\u52a0\u8f7d Markdown \u5185\u5bb9\u7684\u793a\u4f8b URL\uff1a\n\n```\nhttps://jaywcjlove.github.io/wxmp/#/?theme=underscore&md=https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n\nMarkdown URL \u5730\u5740: https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n```\n\n## \u4e3b\u9898\u5b9a\u5236\n\n\u5728\u76ee\u5f55 `website/src/themes` \u4e2d\u5b58\u653e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u5728 `website/src/store/context.tsx` \u4e2d\u914d\u7f6e\u4e3b\u9898\uff0c\u4e3b\u9898\u4f7f\u7528 `css` \u5b9a\u4e49\u6837\u5f0f\uff0c\u4e0d\u652f\u6301\u590d\u6742\u7684\u9009\u62e9\u5668\u3002\u63d0\u4f9b\u5728\u7ebf\u4e3b\u9898\u7f16\u8f91\u5668\uff0c\u6b22\u8fce\u4fee\u6539\u5e76 `PR` \u8fdb\u4ed3\u5e93\u4f9b\u5927\u5bb6\u4f7f\u7528\u3002\n\n```css\n/* 1~6 \u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\nh1 {} h2 {} h3 {} h4 {} h5 {} h6 {}\na { color: red; } /* \u8d85\u94fe\u63a5\u6837\u5f0f\u5b9a\u4e49 */\nstrong {} /* \u52a0\u7c97\u6837\u5f0f\u5b9a\u4e49 */\ndel {} /* \u5220\u9664\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nem {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nu {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\np {} /* \u6bb5\u843d\u6837\u5f0f\u5b9a\u4e49 */\nul {} /* \u65e0\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nol {} /* \u6709\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nli {} /* \u5217\u8868\u6761\u76ee\u6837\u5f0f\u5b9a\u4e49 */\nblockquote {} /* \u5757\u7ea7\u5f15\u7528\u6837\u5f0f\u5b9a\u4e49 */\ntable {}\ntd {}\nth {}\npre {} /* \u6837\u5f0f\u5b9a\u4e49 */\n.code-highlight {} /* \u4ee3\u7801\u5757\u6837\u5f0f\u5b9a\u4e49 */\n.code-line {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n.code-spans {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n\nsup {} /* GFM \u811a\u6ce8\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-title {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-list {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\n\n.image-warpper {} /* \u56fe\u7247\u7236\u8282\u70b9\u6837\u5f0f\u5b9a\u4e49 */\n.image {} /* \u56fe\u7247\u6837\u5f0f\u5b9a\u4e49 */\n\n/* \u90e8\u5206\u4ee3\u7801\u9ad8\u4eae\u6837\u5f0f */\n.comment {}\n.property {}\n.function {}\n.keyword {}\n.punctuation {}\n.unit {}\n.tag {}\n.color {}\n.selector {}\n.quote {}\n.number {}\n.attr-name {}\n.attr-value {}\n```\n\n## \u90e8\u7f72\n\n[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n\n\u8f7b\u677e\u901a\u8fc7 docker \u90e8\u7f72\u300a\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668\u300b\u7f51\u7ad9\u5e94\u7528\u3002\n\n```bash\ndocker pull wcjiang/wxmp\n# Or\ndocker pull ghcr.io/jaywcjlove/wxmp:latest\n```\n\n```bash\ndocker run --name wxmp --rm -d -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 ghcr.io/jaywcjlove/wxmp:latest\n```\n\n\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u4ee5\u4e0b URL\n\n```\nhttp://localhost:96611/\n```\n\n## \u8d21\u732e\u8005\n\n\u4e00\u5982\u65e2\u5f80\uff0c\u611f\u8c22\u6211\u4eec\u51fa\u8272\u7684\u8d21\u732e\u8005\uff01\n\n<a href="https://github.com/jaywcjlove/wxmp/graphs/contributors">\n <img src="https://jaywcjlove.github.io/wxmp/CONTRIBUTORS.svg" />\n</a>\n\n\u4e0a\u56fe\u8d21\u732e\u8005\u5217\u8868\uff0c\u7531 [action-contributors](https://github.com/jaywcjlove/github-action-contributors)[^4] \u81ea\u52a8\u751f\u6210\u8d21\u732e\u8005\u56fe\u7247\u3002\n\n\n[^4]: Action Contributors https://github.com/jaywcjlove/github-action-contributors\n\n## License\n\n\u6839\u636e MIT \u8bb8\u53ef\u8bc1\u83b7\u5f97\u8bb8\u53ef\u3002\n',Vw=Yw,Gw={default:{label:"\u9ed8\u8ba4\u4e3b\u9898",value:YS},abcdef:{label:"Abcdef Theme",value:nw},androidstudio:{label:"Android Studio Theme",value:ow},atomone:{label:"Atomone Theme",value:lw},bbedit:{label:"Bbedit Theme",value:hw},bespin:{label:"Bespin Theme",value:fw},darcula:{label:"Darcula Theme",value:Ow},dracula:{label:"Dracula Theme",value:yw},duotoneLight:{label:"Duotone Light Theme",value:Sw},duotoneDark:{label:"Duotone Dark Theme",value:Tw},eclipse:{label:"Eclipse Theme",value:_w},githubLight:{label:"Github Light Theme",value:Mw},githubDark:{label:"Github Dark Theme",value:Qw},okaidia:{label:"Okaidia Theme",value:Fw},sublime:{label:"Sublime Theme",value:zw},xcodeLight:{label:"Xcode Light Theme",value:Uw},xcodeDark:{label:"Xcode Dark Theme",value:Zw}},Ww={default:{label:"\u7fe1\u7fe0\u7eff",value:"a {\n color: #009874;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #009874;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3em;\n background: #009874;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #009874;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#009874"},simple:{label:"\u7b80\u6d01\u84dd",value:"a {\n color: #0f4c81;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #0f4c81;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3rem;\n background: #0f4c81;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #0f4c81;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #0f4c81;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#0f4c81"},underscore:{label:"\u4e0b\u5212\u7ebf\u9ec4",value:"a {\n color: #ffb11b;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.15;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em 0.3em 1em;\n margin-top: 0;\n box-shadow: inset 0 -0.9rem 0 0 #ffb11b;\n}\n\nh2 {\n display: table;\n line-height: 1.35;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n padding: 0 0.3em;\n margin: 2em 0 1em 0;\n box-shadow: inset 0 -0.7rem 0 0 #ffb11b;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #ffb11b;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n line-height: 1.5em;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#ffb11b"},base:{label:"\u7b80\u6d01",value:"a {\n color: inherit;\n text-decoration: none;\n}\n\nh1 {\n color: inherit;\n font-size: 18px;\n font-weight: bold;\n}\n\nh2 {\n color: inherit;\n margin: 2.5rem 0 1rem 0;\n font-size: 16px;\n font-weight: bold;\n}\n\nh3 {\n color: inherit;\n margin: 1em 0 1em 0;\n font-weight: bold;\n font-size: 14px;\n}\n\nh4 {\n color: inherit;\n margin: 0.6em 0 0.6em 0;\n font-weight: bold;\n font-size: 12px;\n}\n\np {\n color: initial;\n font-size: 16px;\n line-height: 1.5em;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n font-size: 14px;\n line-height: 1.5em;\n}\n\nblockquote {\n font-style: normal;\n border-left: none;\n margin: 1em 0;\n line-height: 1.5em;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-size: 14px;\n font-weight: 400;\n letter-spacing: normal;\n word-spacing: 0px;\n border-radius: 5px;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3rem 0 0.6rem 0;\n padding-left: 0.2rem;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:""}},Kw={underscore:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"box-shadow",value:"inset 0 -0.9rem 0 0 {{color}}"},{select:"h2",name:"box-shadow",value:"inset 0 -0.7rem 0 0 {{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],default:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],simple:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"},{select:".code-spans",name:"color",value:"{{color}}"}],base:[]},Jw=(Object.keys(Ww).map(e=>Ww[e].color),ee.createContext({preColor:"",setPreColor:()=>{},isLoading:!0,setIsLoading:()=>{},markdown:Yw,setMarkdown:()=>{},css:Ww.underscore.value,setCss:()=>{},previewTheme:"underscore",setPreviewTheme:()=>{},theme:"default",setTheme:()=>{}})),eA=Ro.div``,tA=Ro.div`
position: relative;
height: 2.8rem;
`,nA=Ro.header`
-webkit-app-region: drag;
display: flex;
flex-direction: row;
justify-content: space-between;
background: var(--color-canvas-default);
border-bottom: 1px solid var(--color-border-muted);
padding: 0.5rem 0.6rem 0.5rem 0.8rem;
position: fixed;
width: 100%;
z-index: 9;
`,rA=Ro.article`
display: flex;
flex-direction: row;
align-items: center;
gap: 0.6rem;
`,iA=Ro(_s)`
max-width: 3.6rem;
`,oA=Ro.h1`
font-size: 1rem;
margin: 0;
display: flex;
align-items: center;
user-select: none;
sup {
color: var(--color-fg-subtle);
margin-left: 0.4rem;
background-color: var(--color-border-muted);
border-radius: 0.1rem;
padding: 0 0.2rem 0 0.1rem;
font-weight: normal;
font-size: 0.7rem;
letter-spacing: -0.1rem;
}
`,sA=Ro.section`
display: flex;
align-items: center;
gap: 0.5rem;
dark-mode {
font-size: 1.05rem;
display: block;
line-height: 12px;
margin-left: 0.6rem;
}
a svg {
display: block;
}
a {
text-decoration: none;
color: var(--color-theme-text);
padding: 0.1rem 0.3rem;
transition: all 0.3s;
font-size: 0.9rem;
border-radius: 0.2rem;
&.active {
background-color: var(--color-accent-fg);
box-shadow: inset 0 -0.3rem 0 var(--color-accent-fg);
color: #fff;
}
&:hover:not(.active):not(:last-child) {
background-color: var(--color-accent-fg);
color: #fff;
border-radius: 0.2rem;
}
}
`;function aA(){const{isLoading:e}=(0,ee.useContext)(Jw);return(0,Lt.jsxs)(eA,{className:"wmde-markdown-color",children:[(0,Lt.jsx)(tA,{children:(0,Lt.jsxs)(nA,{className:"header",children:[(0,Lt.jsxs)(rA,{className:"logo",children:[(0,Lt.jsx)(iA,{width:28,height:28}),(0,Lt.jsxs)(oA,{children:["\u5fae\u4fe1\u516c\u4f17\u53f7\u6392\u7248\u7f16\u8f91\u5668",(0,Lt.jsxs)("sup",{children:[" v","2.4.1"," "]})]}),e&&(0,Lt.jsx)(Xs,{})]}),(0,Lt.jsxs)(sA,{children:[(0,Lt.jsx)(Pt,{to:"/",children:"\u9996\u9875"}),(0,Lt.jsx)(Pt,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"}),(0,Lt.jsx)(Pt,{to:"/doc",children:"\u6587\u6863"}),(0,Lt.jsx)("dark-mode",{permanent:!0,dark:"Dark",light:"Light"}),(0,Lt.jsx)("a",{href:"https://github.com/jaywcjlove/wxmp",target:"__blank",children:(0,Lt.jsx)(Ns,{width:23,height:23})})]})]})}),(0,Lt.jsx)(ft,{})]})}const lA=1,cA=2,uA=3,hA=4,dA=5,pA=7,fA=9,mA=10,gA=11,OA=12,bA=13,vA=14,yA=15,xA=16,kA=17,SA=18,wA=19,AA=20,TA=21,EA=22,CA=23,_A=24,PA=25,DA=0;function MA(e){return e>=48&&e<=57}function NA(e){return MA(e)||e>=65&&e<=70||e>=97&&e<=102}function RA(e){return e>=65&&e<=90}function QA(e){return function(e){return RA(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function IA(e){return QA(e)||MA(e)||45===e}function LA(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function FA(e){return 10===e||13===e||12===e}function $A(e){return FA(e)||32===e||9===e}function BA(e,t){return 92===e&&(!FA(t)&&t!==DA)}function zA(e,t,n){return 45===e?QA(t)||45===t||BA(t,n):!!QA(e)||92===e&&BA(e,t)}function qA(e,t,n){return 43===e||45===e?MA(t)?2:46===t&&MA(n)?3:0:46===e?MA(t)?2:0:MA(e)?1:0}function HA(e){return 65279===e||65534===e?1:0}const UA=new Array(128),XA=130;for(let gz=0;gz<UA.length;gz++)UA[gz]=($A(gz)?XA:MA(gz)&&131)||QA(gz)&&132||LA(gz)&&133||gz||128;function jA(e){return e<128?UA[e]:132}function ZA(e,t){return t<e.length?e.charCodeAt(t):0}function YA(e,t,n){return 13===n&&10===ZA(e,t+1)?2:1}function VA(e,t,n){let r=e.charCodeAt(t);return RA(r)&&(r|=32),r===n}function GA(e,t,n,r){if(n-t!==r.length)return!1;if(t<0||n>e.length)return!1;for(let i=t;i<n;i++){const n=r.charCodeAt(i-t);let o=e.charCodeAt(i);if(RA(o)&&(o|=32),o!==n)return!1}return!0}function WA(e,t){for(;t<e.length&&$A(e.charCodeAt(t));t++);return t}function KA(e,t){for(;t<e.length&&MA(e.charCodeAt(t));t++);return t}function JA(e,t){if(NA(ZA(e,(t+=2)-1))){for(const r=Math.min(e.length,t+5);t<r&&NA(ZA(e,t));t++);const n=ZA(e,t);$A(n)&&(t+=YA(e,t,n))}return t}function eT(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!IA(n)){if(!BA(n,ZA(e,t+1)))break;t=JA(e,t)-1}}return t}function tT(e,t){let n=e.charCodeAt(t);if(43!==n&&45!==n||(n=e.charCodeAt(t+=1)),MA(n)&&(t=KA(e,t+1),n=e.charCodeAt(t)),46===n&&MA(e.charCodeAt(t+1))&&(t=KA(e,t+=2)),VA(e,t,101)){let r=0;n=e.charCodeAt(t+1),45!==n&&43!==n||(r=1,n=e.charCodeAt(t+2)),MA(n)&&(t=KA(e,t+1+r+1))}return t}function nT(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(41===n){t++;break}BA(n,ZA(e,t+1))&&(t=JA(e,t))}return t}function rT(e){if(1===e.length&&!NA(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(0===t||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}const iT=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];function oT(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return null===e||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function sT(e){const t=e.source,n=t.length,r=t.length>0?HA(t.charCodeAt(0)):0,i=oT(e.lines,n),o=oT(e.columns,n);let s=e.startLine,a=e.startColumn;for(let l=r;l<n;l++){const e=t.charCodeAt(l);i[l]=s,o[l]=a++,10!==e&&13!==e&&12!==e||(13===e&&l+1<n&&10===t.charCodeAt(l+1)&&(l++,i[l]=s,o[l]=a),s++,a=1)}i[n]=s,o[n]=a,e.lines=i,e.columns=o,e.computed=!0}class aT{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||sT(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||sT(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}}const lT=16777215,cT=24,uT=new Map([[cA,EA],[TA,EA],[wA,AA],[CA,_A]]);class hT{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};e=String(e||"");const n=e.length,r=oT(this.offsetAndType,e.length+1),i=oT(this.balance,e.length+1);let o=0,s=0,a=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,(e,t,c)=>{switch(e){default:i[o]=n;break;case s:{let e=a&lT;for(a=i[e],s=a>>cT,i[o]=e,i[e++]=o;e<o;e++)i[e]===n&&(i[e]=o);break}case TA:case cA:case wA:case CA:i[o]=a,s=uT.get(e),a=s<<cT|o}r[o++]=e<<cT|c,-1===l&&(l=t)}),r[o]=0|n,i[o]=n,i[n]=n;0!==a;){const e=a&lT;a=i[e],i[e]=n}this.source=e,this.firstCharOffset=-1===l?0:l,this.tokenCount=o,this.offsetAndType=r,this.balance=i,this.reset(),this.next()}lookupType(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>cT:0}lookupOffset(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&lT:this.source.length}lookupValue(e,t){return(e+=this.tokenIndex)<this.tokenCount&&GA(this.source,this.offsetAndType[e-1]&lT,this.offsetAndType[e]&lT,t)}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&lT:this.offsetAndType[this.tokenCount]&lT:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===fA&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===fA&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&lT,t=this.offsetAndType[t],this.tokenType=t>>cT,this.tokenEnd=t&lT):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>cT,this.tokenEnd=e&lT):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===bA||this.tokenType===PA;)this.next()}skipUntilBalanced(e,t){let n,r,i=e;e:for(;i<this.tokenCount&&(n=this.balance[i],!(n<e));i++)switch(r=i>0?this.offsetAndType[i-1]&lT:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:i++;break e;default:this.balance[n]===i&&(i=n)}this.skip(i-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){const r=n,i=this.offsetAndType[t],o=i&lT;n=o,e(i>>cT,r,o,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken((t,n,r,i)=>{e[i]={idx:i,type:iT[t],chunk:this.source.substring(n,r),balance:this.balance[i]}}),e}}function dT(e,t){function n(t){return t<s?e.charCodeAt(t):0}function r(){return c=tT(e,c),zA(n(c),n(c+1),n(c+2))?(a=OA,void(c=eT(e,c))):37===n(c)?(a=gA,void c++):void(a=mA)}function i(){const t=c;return c=eT(e,c),GA(e,t,c,"url")&&40===n(c)?(c=WA(e,c+1),34===n(c)||39===n(c)?(a=cA,void(c=t+4)):void function(){for(a=pA,c=WA(e,c);c<e.length;c++){const t=e.charCodeAt(c);switch(jA(t)){case 41:return void c++;case XA:return c=WA(e,c),41===n(c)||c>=e.length?void(c<e.length&&c++):(c=nT(e,c),void(a=8));case 34:case 39:case 40:case 133:return c=nT(e,c),void(a=8);case 92:if(BA(t,n(c+1))){c=JA(e,c)-1;break}return c=nT(e,c),void(a=8)}}}()):40===n(c)?(a=cA,void c++):void(a=lA)}function o(t){for(t||(t=n(c++)),a=dA;c<e.length;c++){const r=e.charCodeAt(c);switch(jA(r)){case t:return void c++;case XA:if(FA(r))return c+=YA(e,c,r),void(a=6);break;case 92:if(c===e.length-1)break;const i=n(c+1);FA(i)?c+=YA(e,c+1,i):BA(r,i)&&(c=JA(e,c)-1)}}}const s=(e=String(e||"")).length;let a,l=HA(n(0)),c=l;for(;c<s;){const s=e.charCodeAt(c);switch(jA(s)){case XA:a=bA,c=WA(e,c+1);break;case 34:o();break;case 35:IA(n(c+1))||BA(n(c+1),n(c+2))?(a=hA,c=eT(e,c+1)):(a=fA,c++);break;case 39:o();break;case 40:a=TA,c++;break;case 41:a=EA,c++;break;case 43:qA(s,n(c+1),n(c+2))?r():(a=fA,c++);break;case 44:a=SA,c++;break;case 45:qA(s,n(c+1),n(c+2))?r():45===n(c+1)&&62===n(c+2)?(a=yA,c+=3):zA(s,n(c+1),n(c+2))?i():(a=fA,c++);break;case 46:qA(s,n(c+1),n(c+2))?r():(a=fA,c++);break;case 47:42===n(c+1)?(a=PA,c=e.indexOf("*/",c+2),c=-1===c?e.length:c+2):(a=fA,c++);break;case 58:a=xA,c++;break;case 59:a=kA,c++;break;case 60:33===n(c+1)&&45===n(c+2)&&45===n(c+3)?(a=vA,c+=4):(a=fA,c++);break;case 64:zA(n(c+1),n(c+2),n(c+3))?(a=uA,c=eT(e,c+1)):(a=fA,c++);break;case 91:a=wA,c++;break;case 92:BA(s,n(c+1))?i():(a=fA,c++);break;case 93:a=AA,c++;break;case 123:a=CA,c++;break;case 125:a=_A,c++;break;case 131:r();break;case 132:i();break;default:a=fA,c++}t(a,l,l=c)}}let pT=null;class fT{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return fT.createItem(e)}allocateCursor(e,t){let n;return null!==pT?(n=pT,pT=pT.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=pT,pT=e}updateCursors(e,t,n,r){let{cursor:i}=this;for(;null!==i;)i.prev===e&&(i.prev=t),i.next===n&&(i.next=r),i=i.cursor}*[Symbol.iterator](){for(let e=this.head;null!==e;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;null!==t;t=t.next)e++;return e}get isEmpty(){return null===this.head}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let t=null;this.head=null;for(let n of e){const e=fT.createItem(n);null!==t?t.next=e:this.head=e,e.prev=t,t=e}return this.tail=t,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(null,this.head),o=t;for(;null!==i.next;)n=i.next,i.next=n.next,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}reduceRight(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(this.tail,null),o=t;for(;null!==i.prev;)n=i.prev,i.prev=n.prev,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}some(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new fT;for(let r=this.head;null!==r;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new fT;for(let r=this.head;null!==r;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new fT;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(fT.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(fT.createItem(e))}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(fT.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(fT.createItem(e))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(e){this.prepend(fT.createItem(e))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(void 0!==t&&null!==t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}}function mT(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}const gT=" ";function OT(e,t){let{source:n,line:r,column:i}=e;function o(e,t){return s.slice(e,t).map((t,n)=>String(e+n+1).padStart(c)+" |"+t).join("\n")}const s=n.split(/\r\n?|\n|\f/),a=Math.max(1,r-t)-1,l=Math.min(r+t,s.length+1),c=Math.max(4,String(l).length)+1;let u=0;i+=3*(s[r-1].substr(0,i-1).match(/\t/g)||[]).length,i>100&&(u=i-60+3,i=58);for(let h=a;h<=l;h++)h>=0&&h<s.length&&(s[h]=s[h].replace(/\t/g,gT),s[h]=(u>0&&s[h].length>u?"\u2026":"")+s[h].substr(u,98)+(s[h].length>u+100-1?"\u2026":""));return[o(a,r),new Array(i+c+2).join("-")+"^",o(r,l)].filter(Boolean).join("\n")}function bT(e,t,n,r,i){return Object.assign(mT("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:e=>OT({source:t,line:r,column:i},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+OT({source:t,line:r,column:i},2)}})}function vT(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case PA:this.next();continue;case bA:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(void 0===i)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const yT=()=>{};function xT(e){return function(){return this[e]()}}function kT(e){const t=Object.create(null);for(const n in e){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function ST(e){let t="",n="<unknown>",r=!1,i=yT,o=!1;const s=new aT,a=Object.assign(new hT,function(e){const t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:kT(e.atrule),pseudo:kT(e.pseudo),node:kT(e.node)};for(const n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=xT(e.parseContext[n])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:vT,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>123===e?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>123===e||59===e?1:0,consumeUntilExclamationMarkOrSemicolon:e=>33===e||59===e?1:0,consumeUntilSemicolonIncluded:e=>59===e?2:0,createList:()=>new fT,createSingleNodeList:e=>(new fT).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const n=this.tokenIndex;try{return e.call(this)}catch(mz){if(o)throw mz;const r=t.call(this,n);return o=!0,i(mz,r),o=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==bA)return t}while(0!==t);return 0},charCodeAt:e=>e>=0&&e<t.length?t.charCodeAt(e):0,substring:(e,n)=>t.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>VA(t,e,n),cmpStr:(e,n,r)=>GA(t,e,n,r),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(cA),e},consumeNumber(e){const n=t.substring(this.tokenStart,tT(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){const t=iT[e].slice(0,-6).replace(/-/g," ").replace(/^./,e=>e.toUpperCase());let n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case lA:this.tokenType===cA||this.tokenType===pA?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case hA:this.isDelim(35)&&(this.next(),r++,n="Name is expected");break;case gA:this.tokenType===mA&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===lA&&!1!==this.lookupValue(0,e)||this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?s.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){const t=this.getFirstListNode(e),r=this.getLastListNode(e);return s.getLocationRange(null!==t?t.loc.start.offset-s.startOffset:this.tokenStart,null!==r?r.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(e,n){const r="undefined"!==typeof n&&n<t.length?s.getLocation(n):this.eof?s.getLocation(function(e,t){for(;t>=0&&$A(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):s.getLocation(this.tokenStart);throw new bT(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign(function(e,l){t=e,l=l||{},a.setSource(t,dT),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=Boolean(l.positions),i="function"===typeof l.onParseError?l.onParseError:yT,o=!1,a.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),a.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),a.parseValue=!("parseValue"in l)||Boolean(l.parseValue),a.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);const{context:c="default",onComment:u}=l;if(c in a.context===!1)throw new Error("Unknown context `"+c+"`");"function"===typeof u&&a.forEachToken((e,n,r)=>{if(e===PA){const e=a.getLocation(n,r),i=GA(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(i,e)}});const h=a.context[c].call(a,l);return a.eof||a.error(),h},{SyntaxError:bT,config:a.config})}var wT=n(7428);const AT=new Set(["Atrule","Selector","Declaration"]);const TT=(e,t)=>{if(e===fA&&(e=t),"string"===typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},ET=[[lA,lA],[lA,cA],[lA,pA],[lA,8],[lA,"-"],[lA,mA],[lA,gA],[lA,OA],[lA,yA],[lA,TA],[uA,lA],[uA,cA],[uA,pA],[uA,8],[uA,"-"],[uA,mA],[uA,gA],[uA,OA],[uA,yA],[hA,lA],[hA,cA],[hA,pA],[hA,8],[hA,"-"],[hA,mA],[hA,gA],[hA,OA],[hA,yA],[OA,lA],[OA,cA],[OA,pA],[OA,8],[OA,"-"],[OA,mA],[OA,gA],[OA,OA],[OA,yA],["#",lA],["#",cA],["#",pA],["#",8],["#","-"],["#",mA],["#",gA],["#",OA],["#",yA],["-",lA],["-",cA],["-",pA],["-",8],["-","-"],["-",mA],["-",gA],["-",OA],["-",yA],[mA,lA],[mA,cA],[mA,pA],[mA,8],[mA,mA],[mA,gA],[mA,OA],[mA,"%"],[mA,yA],["@",lA],["@",cA],["@",pA],["@",8],["@","-"],["@",yA],[".",mA],[".",gA],[".",OA],["+",mA],["+",gA],["+",OA],["/","*"]],CT=ET.concat([[lA,hA],[OA,hA],[hA,hA],[uA,TA],[uA,dA],[uA,xA],[gA,gA],[gA,OA],[gA,cA],[gA,"-"],[EA,lA],[EA,cA],[EA,gA],[EA,OA],[EA,hA],[EA,"-"]]);function _T(e){const t=new Set(e.map(e=>{let[t,n]=e;return TT(t)<<16|TT(n)}));return function(e,n,r){const i=TT(n,r),o=r.charCodeAt(0);return(45===o&&n!==lA&&n!==cA&&n!==yA||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",bA,!0),i}}const PT=_T(ET),DT=_T(CT);function MT(e,t){if("function"===typeof t){let n=null;return void e.children.forEach(e=>{null!==n&&t.call(this,n),this.node(e),n=e})}e.children.forEach(this.node,this)}function NT(e){dT(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function RT(e){const t=new Map;for(let n in e.node){const r=e.node[n];"function"===typeof(r.generate||r)&&t.set(n,r.generate||r)}return function(e,n){let r="",i=0,o={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(a,e)},tokenBefore:DT,token(e,t){i=this.tokenBefore(i,e,t),this.emit(t,e,!1),e===fA&&92===t.charCodeAt(0)&&this.emit("\n",bA,!0)},emit(e){r+=e},result:()=>r};n&&("function"===typeof n.decorator&&(o=n.decorator(o)),n.sourceMap&&(o=function(e){const t=new wT.x,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i};let s=1,a=0,l=!1;const c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&AT.has(e.type)){const c=e.loc.start.line,u=e.loc.start.column-1;r.line===c&&r.column===u||(r.line=c,r.column=u,n.line=s,n.column=a,l&&(l=!1,n.line===i.line&&n.column===i.column||t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&AT.has(e.type)&&(i.line=s,i.column=a)};const u=e.emit;e.emit=function(e,t,n){for(let r=0;r<e.length;r++)10===e.charCodeAt(r)?(s++,a=0):a++;u(e,t,n)};const h=e.result;return e.result=function(){return l&&t.addMapping(o),{css:h(),map:t}},e}(o)),n.mode in s&&(o.tokenBefore=s[n.mode]));const a={node:e=>o.node(e),children:MT,token:(e,t)=>o.token(e,t),tokenize:NT};return o.node(e),o.result()}}const{hasOwnProperty:QT}=Object.prototype,IT=function(){};function LT(e){return"function"===typeof e?e:IT}function FT(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function $T(e,t){const n=t.structure,r=[];for(const i in n){if(!1===QT.call(n,i))continue;let e=n[i];const t={name:i,type:!1,nullable:!1};Array.isArray(e)||(e=[e]);for(const n of e)null===n?t.nullable=!0:"string"===typeof n?t.type="node":Array.isArray(n)&&(t.type="list");t.type&&r.push(t)}return r.length?{context:t.walkContext,fields:r}:null}function BT(e,t){const n=e.fields.slice(),r=e.context,i="string"===typeof r;return t&&n.reverse(),function(e,o,s,a){let l;i&&(l=o[r],o[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(a,!1):n.reduce(a,!1))return!0}else if(s(n))return!0}i&&(o[r]=l)}}function zT(e){let{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}=e;return{Atrule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Rule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Declaration:{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}}}function qT(e){const t=function(e){const t={};for(const n in e.node)if(QT.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=$T(0,r)}return t}(e),n={},r={},i=Symbol("break-walk"),o=Symbol("skip-node");for(const c in t)QT.call(t,c)&&null!==t[c]&&(n[c]=BT(t[c],!1),r[c]=BT(t[c],!0));const s=zT(n),a=zT(r),l=function(e,l){function c(e,t,n){const r=u.call(f,e,t,n);return r===i||r!==o&&(!(!d.hasOwnProperty(e.type)||!d[e.type](e,f,c,p))||h.call(f,e,t,n)===i)}let u=IT,h=IT,d=n,p=(e,t,n,r)=>e||c(t,n,r);const f={break:i,skip:o,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"===typeof l)u=l;else if(l&&(u=LT(l.enter),h=LT(l.leave),l.reverse&&(d=r),l.visit)){if(s.hasOwnProperty(l.visit))d=l.reverse?a[l.visit]:s[l.visit];else if(!t.hasOwnProperty(l.visit))throw new Error("Bad value `"+l.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");u=FT(u,l.visit),h=FT(h,l.visit)}if(u===IT&&h===IT)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=i,l.skip=o,l.find=function(e,t){let n=null;return l(e,function(e,r,o){if(t.call(this,e,r,o))return n=e,i}),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,o){if(t.call(this,e,r,o))return n=e,i}}),n},l.findAll=function(e,t){const n=[];return l(e,function(e,r,i){t.call(this,e,r,i)&&n.push(e)}),n},l}function HT(e){return e}function UT(e,t,n,r){let i;switch(e.type){case"Group":i=function(e,t,n,r){const i=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",o=e.terms.map(e=>UT(e,t,n,r)).join(i);return e.explicit||n?(r||","===o[0]?"[":"[ ")+o+(r?"]":" ]"):o}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return UT(e.term,t,n,r)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":i="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-\u221e":e.min)+","+(null===e.max?"\u221e":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function XT(e,t){let n=HT,r=!1,i=!1;return"function"===typeof t?n=t:t&&(r=Boolean(t.forceBraces),i=Boolean(t.compact),"function"===typeof t.decorate&&(n=t.decorate)),UT(e,n,r,i)}const jT={offset:0,line:1,column:1};function ZT(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?YT(n):n:null}function YT(e,t){let{offset:n,line:r,column:i}=e;const o={offset:n,line:r,column:i};if(t){const e=t.split(/\n|\r\n?|\f/);o.offset+=t.length,o.line+=e.length-1,o.column=1===e.length?o.column+t.length:e.pop().length+1}return o}const VT=function(e,t){const n=mT("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},GT=function(e,t,n,r){const i=mT("SyntaxMatchError",e),{css:o,mismatchOffset:s,mismatchLength:a,start:l,end:c}=function(e,t){const n=e.tokens,r=e.longestMatch,i=r<n.length&&n[r].node||null,o=i!==t?i:null;let s,a,l=0,c=0,u=0,h="";for(let d=0;d<n.length;d++){const e=n[d].value;d===r&&(c=e.length,l=h.length),null!==o&&n[d].node===o&&(d<=r?u++:u=0),h+=e}return r===n.length||u>1?(s=ZT(o||t,"end")||YT(jT,h),a=YT(s)):(s=ZT(o,"start")||YT(ZT(t,"start")||jT,h.slice(0,l)),a=ZT(o,"end")||YT(s,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:s,end:a}}(r,n);return i.rawMessage=e,i.syntax=t?XT(t):"<generic>",i.css=o,i.mismatchOffset=s,i.mismatchLength=a,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(o||"<empty string>")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,l),i.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:l,end:c},i},WT=new Map,KT=new Map,JT=45,eE=function(e){if(WT.has(e))return WT.get(e);const t=e.toLowerCase();let n=WT.get(t);if(void 0===n){const e=nE(t,0),r=e?"":rE(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return WT.set(e,n),n},tE=function(e){if(KT.has(e))return KT.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const r=nE(t,n.length);if(!r&&(t=t.toLowerCase(),KT.has(t))){const n=KT.get(t);return KT.set(e,n),n}const i=r?"":rE(t,n.length),o=t.substr(0,n.length+i.length),s=Object.freeze({basename:t.substr(o.length),name:t.substr(n.length),hack:n,vendor:i,prefix:o,custom:r});return KT.set(e,s),s};function nE(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===JT&&e.charCodeAt(t+1)===JT}function rE(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===JT&&e.charCodeAt(t+1)!==JT){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}const iE=["initial","inherit","unset","revert","revert-layer"],oE=45,sE=!0;function aE(e,t){return null!==e&&e.type===fA&&e.value.charCodeAt(0)===t}function lE(e,t,n){for(;null!==e&&(e.type===bA||e.type===PA);)e=n(++t);return t}function cE(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(43===i||i===oE){if(n)return 0;t++}for(;t<e.value.length;t++)if(!MA(e.value.charCodeAt(t)))return 0;return r+1}function uE(e,t,n){let r=!1,i=lE(e,t,n);if(null===(e=n(i)))return t;if(e.type!==mA){if(!aE(e,43)&&!aE(e,oE))return t;if(r=!0,i=lE(n(++i),i,n),null===(e=n(i))||e.type!==mA)return 0}if(!r){const t=e.value.charCodeAt(0);if(43!==t&&t!==oE)return 0}return cE(e,r?0:1,r,i)}function hE(e,t){return null!==e&&e.type===fA&&e.value.charCodeAt(0)===t}function dE(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){const o=e.value.charCodeAt(i);if(45===o&&n&&0!==r)return dE(e,t+r+1,!1),6;if(!NA(o))return 0;if(++r>6)return 0}return r}function pE(e,t,n){if(!e)return 0;for(;hE(n(t),63);){if(++e>6)return 0;t++}return t}const fE=["calc(","-moz-calc(","-webkit-calc("],mE=new Map([[cA,EA],[TA,EA],[wA,AA],[CA,_A]]);function gE(e,t){return t<e.length?e.charCodeAt(t):0}function OE(e,t){return GA(e,0,e.length,t)}function bE(e,t){for(let n=0;n<t.length;n++)if(OE(e,t[n]))return!0;return!1}function vE(e,t){return t===e.length-2&&(92===gE(e,t)&&MA(gE(e,t+1)))}function yE(e,t,n){if(e&&"Range"===e.type){const r=Number(void 0!==n&&n!==t.length?t.substr(0,n):t);if(isNaN(r))return!0;if(null!==e.min&&r<e.min&&"string"!==typeof e.min)return!0;if(null!==e.max&&r>e.max&&"string"!==typeof e.max)return!0}return!1}function xE(e){return function(t,n,r){return null===t?0:t.type===cA&&bE(t.value,fE)?function(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case _A:case EA:case AA:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case cA:case TA:case wA:case CA:r.push(n),n=mE.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function kE(e){return function(t){return null===t||t.type!==e?0:1}}function SE(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==OA)return 0;const i=tT(t.value,0);if(null!==e){const n=t.value.indexOf("\\",i),r=-1!==n&&vE(t.value,n)?t.value.substring(i,n):t.value.substr(i);if(!1===e.has(r.toLowerCase()))return 0}return yE(r,t.value,i)?0:1}}function wE(e){return"function"!==typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===mA&&0===Number(t.value)?1:e(t,n,r)}}const AE={"ident-token":kE(lA),"function-token":kE(cA),"at-keyword-token":kE(uA),"hash-token":kE(hA),"string-token":kE(dA),"bad-string-token":kE(6),"url-token":kE(pA),"bad-url-token":kE(8),"delim-token":kE(fA),"number-token":kE(mA),"percentage-token":kE(gA),"dimension-token":kE(OA),"whitespace-token":kE(bA),"CDO-token":kE(vA),"CDC-token":kE(yA),"colon-token":kE(xA),"semicolon-token":kE(kA),"comma-token":kE(SA),"[-token":kE(wA),"]-token":kE(AA),"(-token":kE(TA),")-token":kE(EA),"{-token":kE(CA),"}-token":kE(_A)},TE={string:kE(dA),ident:kE(lA),percentage:xE(function(e,t,n){return null===e||e.type!==gA||yE(n,e.value,e.value.length-1)?0:1}),zero:wE(),number:xE(function(e,t,n){if(null===e)return 0;const r=tT(e.value,0);return r===e.value.length||vE(e.value,r)?yE(n,e.value,r)?0:1:0}),integer:xE(function(e,t,n){if(null===e||e.type!==mA)return 0;let r=43===gE(e.value,0)||45===gE(e.value,0)?1:0;for(;r<e.value.length;r++)if(!MA(gE(e.value,r)))return 0;return yE(n,e.value,r)?0:1}),"custom-ident":function(e){if(null===e||e.type!==lA)return 0;const t=e.value.toLowerCase();return bE(t,iE)||OE(t,"default")?0:1},"custom-property-name":function(e){return null===e||e.type!==lA||45!==gE(e.value,0)||45!==gE(e.value,1)?0:1},"hex-color":function(e){if(null===e||e.type!==hA)return 0;const t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(let n=1;n<t;n++)if(!NA(gE(e.value,n)))return 0;return 1},"id-selector":function(e){return null===e||e.type!==hA?0:zA(gE(e.value,1),gE(e.value,2),gE(e.value,3))?1:0},"an-plus-b":function(e,t){let n=0;if(!e)return 0;if(e.type===mA)return cE(e,0,false,n);if(e.type===lA&&e.value.charCodeAt(0)===oE){if(!VA(e.value,1,110))return 0;switch(e.value.length){case 2:return uE(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==oE?0:(n=lE(t(++n),n,t),cE(e=t(n),0,sE,n));default:return e.value.charCodeAt(2)!==oE?0:cE(e,3,sE,n)}}else if(e.type===lA||aE(e,43)&&t(n+1).type===lA){if(e.type!==lA&&(e=t(++n)),null===e||!VA(e.value,0,110))return 0;switch(e.value.length){case 1:return uE(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==oE?0:(n=lE(t(++n),n,t),cE(e=t(n),0,sE,n));default:return e.value.charCodeAt(1)!==oE?0:cE(e,2,sE,n)}}else if(e.type===OA){let r=e.value.charCodeAt(0),i=43===r||r===oE?1:0,o=i;for(;o<e.value.length&&MA(e.value.charCodeAt(o));o++);return o===i?0:VA(e.value,o,110)?o+1===e.value.length?uE(t(++n),n,t):e.value.charCodeAt(o+1)!==oE?0:o+2===e.value.length?(n=lE(t(++n),n,t),cE(e=t(n),0,sE,n)):cE(e,o+2,sE,n):0}return 0},urange:function(e,t){let n=0;if(null===e||e.type!==lA||!VA(e.value,0,117))return 0;if(null===(e=t(++n)))return 0;if(hE(e,43))return null===(e=t(++n))?0:e.type===lA?pE(dE(e,0,!0),++n,t):hE(e,63)?pE(1,++n,t):0;if(e.type===mA){const r=dE(e,1,!0);return 0===r?0:null===(e=t(++n))?n:e.type===OA||e.type===mA?function(e,t){return e.value.charCodeAt(0)===t}(e,45)&&dE(e,1,!1)?n+1:0:pE(r,n,t)}return e.type===OA?pE(dE(e,1,!0),++n,t):0},"declaration-value":function(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case 6:case 8:break e;case _A:case EA:case AA:if(e.type!==n)break e;n=r.pop();break;case kA:if(0===n)break e;break;case fA:if(0===n&&"!"===e.value)break e;break;case cA:case TA:case wA:case CA:r.push(n),n=mE.get(e.type)}i++}while(e=t(i));return i},"any-value":function(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case 6:case 8:break e;case _A:case EA:case AA:if(e.type!==n)break e;n=r.pop();break;case cA:case TA:case wA:case CA:r.push(n),n=mE.get(e.type)}i++}while(e=t(i));return i}};function EE(e){const{angle:t,decibel:n,frequency:r,flex:i,length:o,resolution:s,semitones:a,time:l}=e||{};return{dimension:xE(SE(null)),angle:xE(SE(t)),decibel:xE(SE(n)),frequency:xE(SE(r)),flex:xE(SE(i)),length:xE(wE(SE(o))),resolution:xE(SE(s)),semitones:xE(SE(a)),time:xE(SE(l))}}const CE=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],_E=["deg","grad","rad","turn"],PE=["s","ms"],DE=["hz","khz"],ME=["dpi","dpcm","dppx","x"],NE=["fr"],RE=["db"],QE=["st"];function IE(e,t,n){return Object.assign(mT("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((n||t.length)+1).join("-")+"^"})}class LE{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){const t=this.str.charCodeAt(e);if(13!==t&&10!==t&&12!==t&&32!==t&&9!==t)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new IE(e,this.str,this.pos)}}const FE=123,$E=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),BE={" ":1,"&&":2,"||":3,"|":4};function zE(e){return e.substringToPos(e.findWsEnd(e.pos))}function qE(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n>=128||0===$E[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function HE(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function UE(e){const t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function XE(e){let t=null,n=null;return e.eat(FE),t=HE(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(n=HE(e))):n=t,e.eat(125),{min:Number(t),max:n?Number(n):0}}function jE(e,t){const n=function(e){let t=null,n=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,n=!0,e.charCode()===FE?t=XE(e):63===e.charCode()?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case FE:t=XE(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,35===e.charCode()&&43===e.charCodeAt(e.pos-1)?jE(e,n):n):t}function ZE(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function YE(e){let t,n=null;return e.eat(60),t=qE(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(zE(e),n=function(e){let t=null,n=null,r=1;return e.eat(91),45===e.charCode()&&(e.peek(),r=-1),-1==r&&8734===e.charCode()?e.peek():(t=r*Number(HE(e)),0!==$E[e.charCode()]&&(t+=qE(e))),zE(e),e.eat(44),zE(e),8734===e.charCode()?e.peek():(r=1,45===e.charCode()&&(e.peek(),r=-1),n=r*Number(HE(e)),0!==$E[e.charCode()]&&(n+=qE(e))),e.eat(93),{type:"Range",min:t,max:n}}(e)),e.eat(62),jE(e,{type:"Type",name:t,opts:n})}function VE(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((e,t)=>BE[e]-BE[t]);t.length>0;){r=t.shift();let i=0,o=0;for(;i<e.length;i++){const t=e[i];"Combinator"===t.type&&(t.value===r?(-1===o&&(o=i-1),e.splice(i,1),i--):(-1!==o&&i-o>1&&(e.splice(o,i-o,n(e.slice(o,i),r)),i=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,i-o,n(e.slice(o,i),r))}return r}function GE(e){const t=[],n={};let r,i=null,o=e.pos;for(;r=WE(e);)"Spaces"!==r.type&&("Combinator"===r.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),n[r.value]=!0):null!==i&&"Combinator"!==i.type&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),i=r,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:VE(t,n)||" ",disallowEmpty:!1,explicit:!1}}function WE(e){let t=e.charCode();if(t<128&&1===$E[t])return function(e){const t=qE(e);return 40===e.charCode()?(e.pos++,{type:"Function",name:t}):jE(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return jE(e,function(e){let t;return e.eat(91),t=GE(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){let t;return e.eat(60),e.eat(39),t=qE(e),e.eat(39),e.eat(62),jE(e,{type:"Property",name:t})}(e):YE(e);case 124:return{type:"Combinator",value:e.substringToPos(e.pos+(124===e.nextCharCode()?2:1))};case 38:return e.pos++,e.eat(38),{type:"Combinator",value:"&&"};case 44:return e.pos++,{type:"Comma"};case 39:return jE(e,{type:"String",value:UE(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:zE(e)};case 64:return t=e.nextCharCode(),t<128&&1===$E[t]?(e.pos++,{type:"AtKeyword",name:qE(e)}):ZE(e);case 42:case 43:case 63:case 35:case 33:break;case FE:if(t=e.nextCharCode(),t<48||t>57)return ZE(e);break;default:return ZE(e)}}function KE(e){const t=new LE(e),n=GE(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}const JE=function(){};function eC(e){return"function"===typeof e?e:JE}const tC={decorator(e){const t=[];let n=null;return{...e,node(t){const r=n;n=t,e.node.call(this,t),n=r},emit(e,r,i){t.push({type:r,value:e,node:i?null:n})},result:()=>t}}};function nC(e,t){return"string"===typeof e?function(e){const t=[];return dT(e,(n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null})),t}(e):t.generate(e,tC)}const rC={type:"Match"},iC={type:"Mismatch"},oC={type:"DisallowEmpty"};function sC(e,t,n){return t===rC&&n===iC||e===rC&&t===rC&&n===rC?e:("If"===e.type&&e.else===iC&&t===rC&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function aC(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function lC(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&aC(e.name)}function cC(e,t,n){switch(e){case" ":{let e=rC;for(let n=t.length-1;n>=0;n--){e=sC(t[n],e,iC)}return e}case"|":{let e=iC,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];if(lC(i)&&(null===n&&r>0&&lC(t[r-1])&&(n=Object.create(null),e=sC({type:"Enum",map:n},rC,e)),null!==n)){const e=(aC(i.name)?i.name.slice(0,-1):i.name).toLowerCase();if(e in n===!1){n[e]=i;continue}}n=null,e=sC(i,rC,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=iC;for(let r=t.length-1;r>=0;r--){const i=t[r];let o;o=t.length>1?cC(e,t.filter(function(e){return e!==i}),!1):rC,n=sC(i,o,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?rC:iC;for(let n=t.length-1;n>=0;n--){const i=t[n];let o;o=t.length>1?cC(e,t.filter(function(e){return e!==i}),!0):rC,r=sC(i,o,r)}return r}}}function uC(e){if("function"===typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=cC(e.combinator,e.terms.map(uC),!1);return e.disallowEmpty&&(t=sC(t,oC,iC)),t}case"Multiplier":return function(e){let t=rC,n=uC(e.term);if(0===e.max)n=sC(n,oC,iC),t=sC(n,null,iC),t.then=sC(rC,rC,t),e.comma&&(t.then.else=sC({type:"Comma",syntax:e},t,iC));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==rC&&(t=sC({type:"Comma",syntax:e},t,iC)),t=sC(n,sC(rC,rC,t),iC);if(0===e.min)t=sC(rC,rC,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==rC&&(t=sC({type:"Comma",syntax:e},t,iC)),t=sC(n,t,iC);return t}(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return 3===e.value.length?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function hC(e,t){return"string"===typeof e&&(e=KE(e)),{type:"MatchGraph",match:uC(e),syntax:t||null,source:e}}const{hasOwnProperty:dC}=Object.prototype,pC="Match";let fC=0;function mC(e){let t=null,n=null,r=e;for(;null!==r;)n=r.prev,r.prev=t,t=r,r=n;return t}function gC(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let i=e.charCodeAt(n);if(i>=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function OC(e){return null===e||(e.type===SA||e.type===cA||e.type===TA||e.type===wA||e.type===CA||function(e){return e.type===fA&&"?"!==e.value}(e))}function bC(e){return null===e||(e.type===EA||e.type===AA||e.type===_A||e.type===fA&&"/"===e.value)}function vC(e,t,n){function r(){do{b++,O=b<e.length?e[b]:null}while(null!==O&&(O.type===bA||O.type===PA))}function i(t){const n=b+t;return n<e.length?e[n]:null}function o(e,t){return{nextState:e,matchStack:y,syntaxStack:h,thenStack:d,tokenIndex:b,prev:t}}function s(e){d={nextState:e,matchStack:y,syntaxStack:h,prev:d}}function a(e){p=o(e,p)}function l(){y={type:1,syntax:t.syntax,token:O,prev:y},r(),f=null,b>v&&(v=b)}function c(){h={syntax:t.syntax,opts:t.syntax.opts||null!==h&&h.opts||null,prev:h},y={type:2,syntax:t.syntax,token:y.token,prev:y}}function u(){y=2===y.type?y.prev:{type:3,syntax:h.syntax,token:y.token,prev:y},h=h.prev}let h=null,d=null,p=null,f=null,m=0,g=null,O=null,b=-1,v=0,y={type:0,syntax:null,token:null,prev:null};for(r();null===g&&++m<15e3;)switch(t.type){case"Match":if(null===d){if(null!==O&&(b!==e.length-1||"\\0"!==O.value&&"\\9"!==O.value)){t=iC;break}g=pC;break}if((t=d.nextState)===oC){if(d.matchStack===y){t=iC;break}t=rC}for(;d.syntaxStack!==h;)u();d=d.prev;break;case"Mismatch":if(null!==f&&!1!==f)(null===p||b>p.tokenIndex)&&(p=f,f=!1);else if(null===p){g="Mismatch";break}t=p.nextState,d=p.thenStack,h=p.syntaxStack,y=p.matchStack,b=p.tokenIndex,O=b<e.length?e[b]:null,p=p.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==iC&&a(t.else),t.then!==rC&&s(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const e=t.syntax.terms;if(t.index===e.length){if(0===t.mask||t.syntax.all){t=iC;break}t=rC;break}if(t.mask===(1<<e.length)-1){t=rC;break}for(;t.index<e.length;t.index++){const n=1<<t.index;if(0===(t.mask&n)){a(t),s({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|n}),t=e[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==O){let e=O.value.toLowerCase();if(-1!==e.indexOf("\\")&&(e=e.replace(/\\[09].*$/,"")),dC.call(t.map,e)){t=t.map[e];break}}t=iC;break;case"Generic":{const e=null!==h?h.opts:null,n=b+Math.floor(t.fn(O,i,e));if(!isNaN(n)&&n>b){for(;b<n;)l();t=rC}else t=iC;break}case"Type":case"Property":{const e="Type"===t.type?"types":"properties",r=dC.call(n,e)?n[e][t.name]:null;if(!r||!r.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==f&&null!==O&&"Type"===t.type){if("custom-ident"===t.name&&O.type===lA||"length"===t.name&&"0"===O.value){null===f&&(f=o(t,p)),t=iC;break}}c(),t=r.match;break}case"Keyword":{const e=t.name;if(null!==O){let n=O.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),gC(n,e)){l(),t=rC;break}}t=iC;break}case"AtKeyword":case"Function":if(null!==O&&gC(O.value,t.name)){l(),t=rC;break}t=iC;break;case"Token":if(null!==O&&O.value===t.value){l(),t=rC;break}t=iC;break;case"Comma":null!==O&&O.type===SA?OC(y.token)?t=iC:(l(),t=bC(O)?iC:rC):t=OC(y.token)||bC(O)?rC:iC;break;case"String":let r="",m=b;for(;m<e.length&&r.length<t.value.length;m++)r+=e[m].value;if(gC(r,t.value)){for(;b<m;)l();t=rC}else t=iC;break;default:throw new Error("Unknown node type: "+t.type)}switch(fC+=m,g){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),g="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",y=null;break;case pC:for(;null!==h;)u();break;default:y=null}return{tokens:e,reason:g,iterations:m,match:y,longestMatch:v}}function yC(e,t,n){const r=vC(e,t,n||{});if(null===r.match)return r;let i=r.match,o=r.match={syntax:t.syntax||null,match:[]};const s=[o];for(i=mC(i).prev;null!==i;){switch(i.type){case 2:o.match.push(o={syntax:i.syntax,match:[]}),s.push(o);break;case 3:s.pop(),o=s[s.length-1];break;default:o.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r}function xC(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}let n=null;return null!==this.matched&&function r(i){if(Array.isArray(i.match)){for(let e=0;e<i.match.length;e++)if(r(i.match[e]))return t(i.syntax)&&n.unshift(i.syntax),!0}else if(i.node===e)return n=t(i.syntax)?[i.syntax]:[],!0;return!1}(this.matched),n}function kC(e,t){return AC(this,e,e=>"Type"===e.type&&e.name===t)}function SC(e,t){return AC(this,e,e=>"Property"===e.type&&e.name===t)}function wC(e){return AC(this,e,e=>"Keyword"===e.type)}function AC(e,t,n){const r=xC.call(e,t);return null!==r&&r.some(n)}function TC(e){return"node"in e?e.node:TC(e.match[0])}function EC(e){return"node"in e?e.node:EC(e.match[e.match.length-1])}function CC(e,t,n,r,i){const o=[];return null!==n.matched&&function n(s){if(null!==s.syntax&&s.syntax.type===r&&s.syntax.name===i){const n=TC(s),r=EC(s);e.syntax.walk(t,function(e,t,i){if(e===n){const e=new fT;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);o.push({parent:i,nodes:e})}})}Array.isArray(s.match)&&s.match.forEach(n)}(n.matched),o}const{hasOwnProperty:_C}=Object.prototype;function PC(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function DC(e){return Boolean(e)&&PC(e.offset)&&PC(e.line)&&PC(e.column)}function MC(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let i in n){let o=!0;if(!1!==_C.call(n,i)){if("type"===i)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===i){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!==typeof n.loc.source)i+=".source";else if(DC(n.loc.start)){if(DC(n.loc.end))continue;i+=".end"}else i+=".start";o=!1}else if(t.hasOwnProperty(i)){o=!1;for(let e=0;!o&&e<t[i].length;e++){const r=t[i][e];switch(r){case String:o="string"===typeof n[i];break;case Boolean:o="boolean"===typeof n[i];break;case null:o=null===n[i];break;default:"string"===typeof r?o=n[i]&&n[i].type===r:Array.isArray(r)&&(o=n[i]instanceof fT)}}}else r(n,"Unknown field `"+i+"` for "+e+" node type");o||r(n,"Bad value for `"+e+"."+i+"`")}}for(const i in t)_C.call(t,i)&&!1===_C.call(n,i)&&r(n,"Field `"+e+"."+i+"` is missed")}}function NC(e,t){const n=t.structure,r={type:String,loc:!0},i={type:'"'+e+'"'};for(const o in n){if(!1===_C.call(n,o))continue;const t=[],s=r[o]=Array.isArray(n[o])?n[o].slice():[n[o]];for(let n=0;n<s.length;n++){const r=s[n];if(r===String||r===Boolean)t.push(r.name);else if(null===r)t.push("null");else if("string"===typeof r)t.push("<"+r+">");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+o+"` structure definition");t.push("List")}}i[o]=t.join(" | ")}return{docs:i,check:MC(e,r)}}const RC=hC(iE.join(" | "));function QC(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:XT(e[i].syntax,{compact:t}));return r}function IC(e,t,n){const r={};for(const[i,o]of Object.entries(e))r[i]={prelude:o.prelude&&(n?o.prelude.syntax:XT(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&QC(o.descriptors,t,n)};return r}function LC(e,t,n){return{matched:e,iterations:n,error:t,...l}}function FC(e,t,n,r){const i=nC(n,e.syntax);let o;return function(e){for(let t=0;t<e.length;t++)if("var("===e[t].value.toLowerCase())return!0;return!1}(i)?LC(null,new Error("Matching for a tree with var() is not supported")):(r&&(o=yC(i,e.cssWideKeywordsSyntax,e)),r&&o.match||(o=yC(i,t.match,e),o.match)?LC(o.match,null,o.iterations):LC(null,new GT(o.reason,t.syntax,n,o),o.iterations))}class $C{constructor(e,t,n){if(this.cssWideKeywordsSyntax=RC,this.syntax=t,this.generic=!1,this.units={...a},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||function(e){const t={};if(e.node)for(const n in e.node)if(_C.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=NC(n,r)}return t}(e),e){if(e.units)for(const t of Object.keys(a))Array.isArray(e.units[t])&&(this.units[t]=e.units[t]);if(e.types)for(const t in e.types)this.addType_(t,e.types[t]);if(e.generic){this.generic=!0;for(const[e,t]of Object.entries((r=this.units,{...AE,...TE,...EE(r)})))this.addType_(e,t)}if(e.atrules)for(const t in e.atrules)this.addAtrule_(t,e.atrules[t]);if(e.properties)for(const t in e.properties)this.addProperty_(t,e.properties[t])}var r}checkStructure(e){function t(e,t){r.push({node:e,message:t})}const n=this.structure,r=[];return this.syntax.walk(e,function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")}),!!r.length&&r}createDescriptor(e,t,n){const r={type:t,name:n},i={type:t,name:n,parent:arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,serializable:"string"===typeof e||e&&"string"===typeof e.type,syntax:null,match:null};return"function"===typeof e?i.match=hC(e,r):("string"===typeof e?Object.defineProperty(i,"syntax",{get:()=>(Object.defineProperty(i,"syntax",{value:KE(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:hC(i.syntax,r)}),i.match)})),i}addAtrule_(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new VT("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||FC(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e),i=eE(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new VT("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new VT("Unknown property",e)}matchAtrulePrelude(e,t){const n=this.checkAtrulePrelude(e,t);if(n)return LC(null,n);const r=this.getAtrule(e);return r.prelude?FC(this,r.prelude,t||"",!1):LC(null,null)}matchAtruleDescriptor(e,t,n){const r=this.checkAtruleDescriptorName(e,t);if(r)return LC(null,r);const i=this.getAtrule(e),o=eE(t);return FC(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?LC(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(tE(e).custom)return LC(null,new Error("Lexer matching doesn't applicable for custom properties"));const n=this.checkPropertyName(e);return n?LC(null,n):FC(this,this.getProperty(e),t,!0)}matchType(e,t){const n=this.getType(e);return n?FC(this,n,t,!1):LC(null,new VT("Unknown type",e))}match(e,t){return"string"===typeof e||e&&e.type?("string"!==typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),FC(this,e,t,!1)):LC(null,new VT("Bad syntax"))}findValueFragments(e,t,n,r){return CC(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return CC(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=eE(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=tE(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,i,o,s){if(o.has(i))return o.get(i);o.set(i,!1),null!==s.syntax&&function(e,t,n){let r=JE,i=JE;if("function"===typeof t?r=t:t&&(r=eC(t.enter),i=eC(t.leave)),r===JE&&i===JE)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}i.call(n,t)}(e)}(s.syntax,function(s){if("Type"!==s.type&&"Property"!==s.type)return;const a="Type"===s.type?r.types:r.properties,l="Type"===s.type?t:n;hasOwnProperty.call(a,s.name)&&!e(r,s.name,l,a[s.name])||o.set(i,!0)},this)}let t=new Map,n=new Map;for(const r in this.types)e(this,r,t,this.types[r]);for(const r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter(e=>t.get(e)),n=[...n.keys()].filter(e=>n.get(e)),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:QC(this.types,!t,e),properties:QC(this.properties,!t,e),atrules:IC(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}}function BC(e,t){return"string"===typeof t&&/^\s*\|/.test(t)?"string"===typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function zC(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))if(i){n[r]={};for(const e of Object.keys(i))t.includes(e)&&(n[r][e]=i[e])}return n}function qC(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(i);break;case"units":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(const[e,t]of Object.entries(i)){const i=n[r][e]||{},o=n[r][e]={prelude:i.prelude||null,descriptors:{...i.descriptors}};if(t){o.prelude=t.prelude?BC(o.prelude,t.prelude):o.prelude||null;for(const[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?BC(o.descriptors[e],n):null;Object.keys(o.descriptors).length||(o.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=BC(n[r][e],t);break;case"scope":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...i};break;case"atrule":case"pseudo":n[r]={...e[r],...zC(i,["parse"])};break;case"node":n[r]={...e[r],...zC(i,["name","structure","parse","generate","walkContext"])}}return n}function HC(e){const t=ST(e),n=qT(e),r=RT(e),{fromPlainObject:i,toPlainObject:o}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&e.children instanceof fT===!1&&(e.children=(new fT).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof fT&&(e.children=e.children.toArray())}}),t)}}(n),s={lexer:null,createLexer:e=>new $C(e,s,s.lexer.structure),tokenize:dT,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:o,fork(t){const n=qC({},e);return HC("function"===typeof t?t(n,Object.assign):qC(n,t))}};return s.lexer=new $C({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}const UC=43,XC=45,jC=110,ZC=!0,YC=!1;function VC(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==UC&&r!==XC||(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)MA(this.charCodeAt(n))||this.error("Integer is expected",n)}function GC(e){return VC.call(this,0,e)}function WC(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case jC:n="N is expected";break;case XC:n="HyphenMinus is expected"}this.error(n,this.tokenStart+e)}}function KC(){let e=0,t=0,n=this.tokenType;for(;n===bA||n===PA;)n=this.lookupType(++e);if(n!==mA){if(!this.isDelim(UC,e)&&!this.isDelim(XC,e))return null;t=this.isDelim(UC,e)?UC:XC;do{n=this.lookupType(++e)}while(n===bA||n===PA);n!==mA&&(this.skip(e),GC.call(this,ZC))}return e>0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==UC&&n!==XC&&this.error("Number sign is expected")),GC.call(this,0!==t),t===XC?"-"+this.consume(mA):this.consume(mA)}const JC="AnPlusB",e_={a:[String,null],b:[String,null]};function t_(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===mA)GC.call(this,YC),n=this.consume(mA);else if(this.tokenType===lA&&this.cmpChar(this.tokenStart,XC))switch(t="-1",WC.call(this,1,jC),this.tokenEnd-this.tokenStart){case 2:this.next(),n=KC.call(this);break;case 3:WC.call(this,2,XC),this.next(),this.skipSC(),GC.call(this,ZC),n="-"+this.consume(mA);break;default:WC.call(this,2,XC),VC.call(this,3,ZC),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===lA||this.isDelim(UC)&&this.lookupType(1)===lA){let r=0;switch(t="1",this.isDelim(UC)&&(r=1,this.next()),WC.call(this,0,jC),this.tokenEnd-this.tokenStart){case 1:this.next(),n=KC.call(this);break;case 2:WC.call(this,1,XC),this.next(),this.skipSC(),GC.call(this,ZC),n="-"+this.consume(mA);break;default:WC.call(this,1,XC),VC.call(this,2,ZC),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===OA){const r=this.charCodeAt(this.tokenStart),i=r===UC||r===XC;let o=this.tokenStart+i;for(;o<this.tokenEnd&&MA(this.charCodeAt(o));o++);o===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),WC.call(this,o-this.tokenStart,jC),t=this.substring(e,o),o+1===this.tokenEnd?(this.next(),n=KC.call(this)):(WC.call(this,o-this.tokenStart+1,XC),o+2===this.tokenEnd?(this.next(),this.skipSC(),GC.call(this,ZC),n="-"+this.consume(mA)):(VC.call(this,o-this.tokenStart+2,ZC),this.next(),n=this.substrToCursor(o+1)))}else this.error();return null!==t&&t.charCodeAt(0)===UC&&(t=t.substr(1)),null!==n&&n.charCodeAt(0)===UC&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function n_(e){if(e.a){const t=("+1"===e.a||"1"===e.a?"n":"-1"===e.a&&"-n")||e.a+"n";if(e.b){const n="-"===e.b[0]||"+"===e.b[0]?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}function r_(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function i_(){for(let e,t=1;e=this.lookupType(t);t++){if(e===_A)return!0;if(e===CA||e===uA)return!1}return!1}const o_="Atrule",s_="atrule",a_={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function l_(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.tokenStart;let n,r,i=null,o=null;switch(this.eat(uA),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==CA&&this.tokenType!==kA&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),r_):r_.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case kA:this.next();break;case CA:o=hasOwnProperty.call(this.atrule,r)&&"function"===typeof this.atrule[r].block?this.atrule[r].block.call(this,e):this.Block(i_.call(this))}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:o}}function c_(e){this.token(uA,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(kA,";")}const u_="AtrulePrelude",h_="atrulePrelude",d_={children:[[]]};function p_(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"===typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==CA&&this.tokenType!==kA&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function f_(e){this.children(e)}const m_=36,g_=42,O_=61,b_=94,v_=124,y_=126;function x_(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(g_)?(t=!0,this.next()):this.isDelim(v_)||this.eat(lA),this.isDelim(v_)?this.charCodeAt(this.tokenStart+1)!==O_?(this.next(),this.eat(lA)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function k_(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==O_&&t!==y_&&t!==b_&&t!==m_&&t!==g_&&t!==v_&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==O_&&(this.isDelim(O_)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const S_="AttributeSelector",w_={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function A_(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(wA),this.skipSC(),t=x_.call(this),this.skipSC(),this.tokenType!==AA&&(this.tokenType!==lA&&(n=k_.call(this),this.skipSC(),r=this.tokenType===dA?this.String():this.Identifier(),this.skipSC()),this.tokenType===lA&&(i=this.consume(lA),this.skipSC())),this.eat(AA),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function T_(e){this.token(fA,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(lA,e.flags),this.token(fA,"]")}const E_=38;function C_(e){return this.Raw(e,null,!0)}function __(){return this.parseWithFallback(this.Rule,C_)}function P_(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function D_(){if(this.tokenType===kA)return P_.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,P_);return this.tokenType===kA&&this.next(),e}const M_="Block",N_="block",R_={children:[["Atrule","Rule","Declaration"]]};function Q_(e){const t=e?D_:__,n=this.tokenStart;let r=this.createList();this.eat(CA);e:for(;!this.eof;)switch(this.tokenType){case _A:break e;case bA:case PA:this.next();break;case uA:r.push(this.parseWithFallback(this.Atrule.bind(this,e),C_));break;default:e&&this.isDelim(E_)?r.push(__.call(this)):r.push(t.call(this))}return this.eof||this.eat(_A),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function I_(e){this.token(CA,"{"),this.children(e,e=>{"Declaration"===e.type&&this.token(kA,";")}),this.token(_A,"}")}const L_="Brackets",F_={children:[[]]};function $_(e,t){const n=this.tokenStart;let r=null;return this.eat(wA),r=e.call(this,t),this.eof||this.eat(AA),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function B_(e){this.token(fA,"["),this.children(e),this.token(fA,"]")}const z_="CDC",q_=[];function H_(){const e=this.tokenStart;return this.eat(yA),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function U_(){this.token(yA,"--\x3e")}const X_="CDO",j_=[];function Z_(){const e=this.tokenStart;return this.eat(vA),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Y_(){this.token(vA,"\x3c!--")}const V_=46,G_="ClassSelector",W_={name:String};function K_(){return this.eatDelim(V_),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(lA)}}function J_(e){this.token(fA,"."),this.token(lA,e.name)}const eP=43,tP=47,nP=62,rP=126,iP="Combinator",oP={name:String};function sP(){const e=this.tokenStart;let t;switch(this.tokenType){case bA:t=" ";break;case fA:switch(this.charCodeAt(this.tokenStart)){case nP:case eP:case rP:this.next();break;case tP:this.next(),this.eatIdent("deep"),this.eatDelim(tP);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function aP(e){this.tokenize(e.name)}const lP=42,cP=47,uP="Comment",hP={value:String};function dP(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(PA),t-e+2>=2&&this.charCodeAt(t-2)===lP&&this.charCodeAt(t-1)===cP&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function pP(e){this.token(PA,"/*"+e.value+"*/")}const fP=33,mP=35,gP=36,OP=38,bP=42,vP=43,yP=47;function xP(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function kP(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function SP(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==kA&&!1===this.isDelim(fP)&&!1===this.isBalanceEdge(e)&&this.error(),t}const wP="Declaration",AP="declaration",TP={important:[Boolean,String],property:String,value:["Value","Raw"]};function EP(){const e=this.tokenStart,t=this.tokenIndex,n=_P.call(this),r=nE(n),i=r?this.parseCustomProperty:this.parseValue,o=r?kP:xP;let s,a=!1;this.skipSC(),this.eat(xA);const l=this.tokenIndex;if(r||this.skipSC(),s=i?this.parseWithFallback(SP,o):o.call(this,this.tokenIndex),r&&"Value"===s.type&&s.children.isEmpty)for(let c=l-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===bA){s.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(fP)&&(a=PP.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==kA&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:a,property:n,value:s}}function CP(e){this.token(lA,e.property),this.token(xA,":"),this.node(e.value),e.important&&(this.token(fA,"!"),this.token(lA,!0===e.important?"important":e.important))}function _P(){const e=this.tokenStart;if(this.tokenType===fA)switch(this.charCodeAt(this.tokenStart)){case bP:case gP:case vP:case mP:case OP:this.next();break;case yP:this.next(),this.isDelim(yP)&&this.next()}return this.tokenType===hA?this.eat(hA):this.eat(lA),this.substrToCursor(e)}function PP(){this.eat(fA),this.skipSC();const e=this.consume(lA);return"important"===e||e}const DP=38;function MP(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}const NP="DeclarationList",RP={children:[["Declaration","Atrule","Rule"]]};function QP(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case bA:case PA:case kA:this.next();break;case uA:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),MP));break;default:this.isDelim(DP)?e.push(this.parseWithFallback(this.Rule,MP)):e.push(this.parseWithFallback(this.Declaration,MP))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function IP(e){this.children(e,e=>{"Declaration"===e.type&&this.token(kA,";")})}const LP="Dimension",FP={value:String,unit:String};function $P(){const e=this.tokenStart,t=this.consumeNumber(OA);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function BP(e){this.token(OA,e.value+e.unit)}const zP="Function",qP="function",HP={name:String,children:[[]]};function UP(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let o;return o=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(EA),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:o}}function XP(e){this.token(cA,e.name+"("),this.children(e),this.token(EA,")")}const jP="XXX",ZP="Hash",YP={value:String};function VP(){const e=this.tokenStart;return this.eat(hA),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function GP(e){this.token(hA,"#"+e.value)}const WP="Identifier",KP={name:String};function JP(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(lA)}}function eD(e){this.token(lA,e.name)}const tD="IdSelector",nD={name:String};function rD(){const e=this.tokenStart;return this.eat(hA),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function iD(e){this.token(fA,"#"+e.name)}const oD="MediaFeature",sD={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function aD(){const e=this.tokenStart;let t,n=null;if(this.eat(TA),this.skipSC(),t=this.consume(lA),this.skipSC(),this.tokenType!==EA){switch(this.eat(xA),this.skipSC(),this.tokenType){case mA:n=this.lookupNonWSType(1)===fA?this.Ratio():this.Number();break;case OA:n=this.Dimension();break;case lA:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(EA),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function lD(e){this.token(TA,"("),this.token(lA,e.name),null!==e.value&&(this.token(xA,":"),this.node(e.value)),this.token(EA,")")}const cD="MediaQuery",uD={children:[["Identifier","MediaFeature","WhiteSpace"]]};function hD(){const e=this.createList();let t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case PA:case bA:this.next();continue;case lA:t=this.Identifier();break;case TA:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function dD(e){this.children(e)}const pD="MediaQueryList",fD={children:[["MediaQuery"]]};function mD(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===SA);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function gD(e){this.children(e,()=>this.token(SA,","))}const OD=38,bD="NestingSelector",vD={};function yD(){const e=this.tokenStart;return this.eatDelim(OD),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function xD(){this.token(fA,"&")}const kD="Nth",SD={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function wD(){this.skipSC();const e=this.tokenStart;let t,n=e,r=null;return t=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(e,n),nth:t,selector:r}}function AD(e){this.node(e.nth),null!==e.selector&&(this.token(lA,"of"),this.node(e.selector))}const TD="Number",ED={value:String};function CD(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(mA)}}function _D(e){this.token(mA,e.value)}const PD="Operator",DD={value:String};function MD(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function ND(e){this.tokenize(e.value)}const RD="Parentheses",QD={children:[[]]};function ID(e,t){const n=this.tokenStart;let r=null;return this.eat(TA),r=e.call(this,t),this.eof||this.eat(EA),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function LD(e){this.token(TA,"("),this.children(e),this.token(EA,")")}const FD="Percentage",$D={value:String};function BD(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(gA)}}function zD(e){this.token(gA,e.value+"%")}const qD="PseudoClassSelector",HD="function",UD={name:String,children:[["Raw"],null]};function XD(){const e=this.tokenStart;let t,n,r=null;return this.eat(xA),this.tokenType===cA?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(EA)):t=this.consume(lA),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function jD(e){this.token(xA,":"),null===e.children?this.token(lA,e.name):(this.token(cA,e.name+"("),this.children(e),this.token(EA,")"))}const ZD="PseudoElementSelector",YD="function",VD={name:String,children:[["Raw"],null]};function GD(){const e=this.tokenStart;let t,n,r=null;return this.eat(xA),this.eat(xA),this.tokenType===cA?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(EA)):t=this.consume(lA),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function WD(e){this.token(xA,":"),this.token(xA,":"),null===e.children?this.token(lA,e.name):(this.token(cA,e.name+"("),this.children(e),this.token(EA,")"))}const KD=47,JD=46;function eM(){this.skipSC();const e=this.consume(mA);for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);MA(n)||n===JD||this.error("Unsigned number is expected",this.tokenStart-e.length+t)}return 0===Number(e)&&this.error("Zero number is not allowed",this.tokenStart-e.length),e}const tM="Ratio",nM={left:String,right:String};function rM(){const e=this.tokenStart,t=eM.call(this);let n;return this.skipSC(),this.eatDelim(KD),n=eM.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function iM(e){this.token(mA,e.left),this.token(fA,"/"),this.token(mA,e.right)}function oM(){return this.tokenIndex>0&&this.lookupType(-1)===bA?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const sM="Raw",aM={value:String};function lM(e,t,n){const r=this.getTokenStart(e);let i;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),i=n&&this.tokenStart>r?oM.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(r,i),value:this.substring(r,i)}}function cM(e){this.tokenize(e.value)}function uM(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function hM(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==CA&&this.error(),e}const dM="Rule",pM="rule",fM={prelude:["SelectorList","Raw"],block:["Block"]};function mM(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(hM,uM):uM.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function gM(e){this.node(e.prelude),this.node(e.block)}const OM="Selector",bM={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function vM(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function yM(e){this.children(e)}const xM="SelectorList",kM="selector",SM={children:[["Selector","Raw"]]};function wM(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===SA);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function AM(e){this.children(e,()=>this.token(SA,","))}const TM=92,EM=34,CM=39;function _M(e){const t=e.length,n=e.charCodeAt(0),r=n===EM||n===CM?1:0,i=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let o="";for(let s=r;s<=i;s++){let n=e.charCodeAt(s);if(n===TM){if(s===i){s!==t-1&&(o=e.substr(s+1));break}if(n=e.charCodeAt(++s),BA(TM,n)){const t=s-1,n=JA(e,t);s=n-1,o+=rT(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(s+1)&&s++}else o+=e[s]}return o}const PM="String",DM={value:String};function MM(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:_M(this.consume(dA))}}function NM(e){this.token(dA,function(e,t){const n=t?"'":'"',r=t?CM:EM;let i="",o=!1;for(let s=0;s<e.length;s++){const t=e.charCodeAt(s);0!==t?t<=31||127===t?(i+="\\"+t.toString(16),o=!0):t===r||t===TM?(i+="\\"+e.charAt(s),o=!1):(o&&(NA(t)||$A(t))&&(i+=" "),i+=e.charAt(s),o=!1):i+="\ufffd"}return n+i+n}(e.value))}const RM=33;function QM(e){return this.Raw(e,null,!1)}const IM="StyleSheet",LM="stylesheet",FM={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function $M(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case bA:this.next();continue;case PA:if(this.charCodeAt(this.tokenStart+2)!==RM){this.next();continue}n=this.Comment();break;case vA:n=this.CDO();break;case yA:n=this.CDC();break;case uA:n=this.parseWithFallback(this.Atrule,QM);break;default:n=this.parseWithFallback(this.Rule,QM)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function BM(e){this.children(e)}const zM=42,qM=124;function HM(){this.tokenType!==lA&&!1===this.isDelim(zM)&&this.error("Identifier or asterisk is expected"),this.next()}const UM="TypeSelector",XM={name:String};function jM(){const e=this.tokenStart;return this.isDelim(qM)?(this.next(),HM.call(this)):(HM.call(this),this.isDelim(qM)&&(this.next(),HM.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function ZM(e){this.tokenize(e.name)}const YM=43,VM=45,GM=63;function WM(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===VM&&t&&0!==n)return WM.call(this,e+n+1,!1),-1;NA(i)||this.error(t&&0!==n?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function KM(e){let t=0;for(;this.isDelim(GM);)++t>e&&this.error("Too many question marks"),this.next()}function JM(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===YM?"Plus sign":"Hyphen minus")+" is expected")}function eN(){let e=0;switch(this.tokenType){case mA:if(e=WM.call(this,1,!0),this.isDelim(GM)){KM.call(this,6-e);break}if(this.tokenType===OA||this.tokenType===mA){JM.call(this,VM),WM.call(this,1,!1);break}break;case OA:e=WM.call(this,1,!0),e>0&&KM.call(this,6-e);break;default:if(this.eatDelim(YM),this.tokenType===lA){e=WM.call(this,0,!0),e>0&&KM.call(this,6-e);break}if(this.isDelim(GM)){this.next(),KM.call(this,5);break}this.error("Hex digit or question mark is expected")}}const tN="UnicodeRange",nN={value:String};function rN(){const e=this.tokenStart;return this.eatIdent("u"),eN.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function iN(e){this.tokenize(e.value)}const oN=32,sN=92,aN=34,lN=39,cN=40,uN=41;const hN="Url",dN={value:String};function pN(){const e=this.tokenStart;let t;switch(this.tokenType){case pA:t=function(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===uN?t-2:t-1,i="";for(;n<r&&$A(e.charCodeAt(n));)n++;for(;n<r&&$A(e.charCodeAt(r));)r--;for(let o=n;o<=r;o++){let n=e.charCodeAt(o);if(n===sN){if(o===r){o!==t-1&&(i=e.substr(o+1));break}if(n=e.charCodeAt(++o),BA(sN,n)){const t=o-1,n=JA(e,t);o=n-1,i+=rT(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(o+1)&&o++}else i+=e[o]}return i}(this.consume(pA));break;case cA:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(cA),this.skipSC(),t=_M(this.consume(dA)),this.skipSC(),this.eof||this.eat(EA);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function fN(e){this.token(pA,function(e){let t="",n=!1;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);0!==i?i<=31||127===i?(t+="\\"+i.toString(16),n=!0):i===oN||i===sN||i===aN||i===lN||i===cN||i===uN?(t+="\\"+e.charAt(r),n=!1):(n&&NA(i)&&(t+=" "),t+=e.charAt(r),n=!1):t+="\ufffd"}return"url("+t+")"}(e.value))}const mN="Value",gN={children:[[]]};function ON(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function bN(e){this.children(e)}const vN=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),yN="WhiteSpace",xN={value:String};function kN(){return this.eat(bA),vN}function SN(e){this.token(bA,e.value)}const wN={generic:!0,generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,\u221e]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,\u221e]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,\u221e]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,\u221e]> [/ <number [0,\u221e]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,\u221e]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,\u221e]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,\u221e]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"<scroll-timeline-name>||<scroll-timeline-axis>","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},nest:{prelude:"<complex-selector-list>",descriptors:null}},node:G};function AN(e){switch(this.tokenType){case hA:return this.Hash();case SA:return this.Operator();case TA:return this.Parentheses(this.readSequence,e.recognizer);case wA:return this.Brackets(this.readSequence,e.recognizer);case dA:return this.String();case OA:return this.Dimension();case gA:return this.Percentage();case mA:return this.Number();case cA:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case pA:return this.Url();case lA:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case fA:{const e=this.charCodeAt(this.tokenStart);if(47===e||42===e||43===e||45===e)return this.Operator();35===e&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const TN={getNode:AN};const EN={onWhiteSpace:function(e,t){null!==t.last&&"Combinator"!==t.last.type&&null!==e&&"Combinator"!==e.type&&t.push({type:"Combinator",loc:null,name:" "})},getNode:function(){switch(this.tokenType){case wA:return this.AttributeSelector();case hA:return this.IdSelector();case xA:return this.lookupType(1)===xA?this.PseudoElementSelector():this.PseudoClassSelector();case lA:return this.TypeSelector();case mA:case gA:return this.Percentage();case OA:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case fA:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}break}}};function CN(e){return null!==e&&"Operator"===e.type&&("-"===e.value[e.value.length-1]||"+"===e.value[e.value.length-1])}const _N={getNode:AN,onWhiteSpace(e,t){CN(e)&&(e.value=" "+e.value),CN(t.last)&&(t.last.value+=" ")},expression:function(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))},var:function(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===SA){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===n.type&&n.children.isEmpty)for(let e=t-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===bA){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}e.push(n)}return e}};function PN(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function DN(){return this.skipSC(),this.tokenType===lA&&this.lookupNonWSType(1)===xA?this.createSingleNodeList(this.Declaration()):MN.call(this)}function MN(){const e=this.createList();let t;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case PA:case bA:this.next();continue;case cA:t=this.Function(PN,this.scope.AtrulePrelude);break;case lA:t=this.Identifier();break;case TA:t=this.Parentheses(DN,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}const NN={"font-face":{parse:{prelude:null,block(){return this.Block(!0)}}},import:{parse:{prelude(){const e=this.createList();switch(this.skipSC(),this.tokenType){case dA:e.push(this.String());break;case pA:case cA:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.lookupNonWSType(0)!==lA&&this.lookupNonWSType(0)!==TA||e.push(this.MediaQueryList()),e},block:null}},media:{parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.Block(e)}}},nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},supports:{parse:{prelude(){const e=MN.call(this);return null===this.getFirstListNode(e)&&this.error("Condition is expected"),e},block(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.Block(e)}}}},RN={parse(){return this.createSingleNodeList(this.SelectorList())}},QN={parse(){return this.createSingleNodeList(this.Selector())}},IN={parse(){return this.createSingleNodeList(this.Identifier())}},LN={parse(){return this.createSingleNodeList(this.Nth())}},FN={dir:IN,has:RN,lang:IN,matches:RN,is:RN,"-moz-any":RN,"-webkit-any":RN,where:RN,not:RN,"nth-child":LN,"nth-last-child":LN,"nth-last-of-type":LN,"nth-of-type":LN,slotted:QN,host:QN,"host-context":QN},$N=HC(qC({},{...wN,...{parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:W,atrule:NN,pseudo:FN,node:K},...{node:G}}));const{tokenize:BN,parse:zN,generate:qN,lexer:HN,createLexer:UN,walk:XN,find:jN,findLast:ZN,findAll:YN,toPlainObject:VN,fromPlainObject:GN,fork:WN}=$N;const KN={tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),a(t)};function a(t){return 36===t?(e.consume(t),s++,a):s<2?n(t):(e.exit("mathFlowFenceSequence"),Mb(e,l,"whitespace")(t))}function l(t){return null===t||Tb(t)?u(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return null===t||Tb(t)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),u(t)):36===t?n(t):(e.consume(t),c)}function u(n){return e.exit("mathFlowFence"),r.interrupt?t(n):e.attempt(JN,h,m)(n)}function h(t){return e.attempt({tokenize:g,partial:!0},m,d)(t)}function d(t){return(o?Mb(e,p,"linePrefix",o+1):p)(t)}function p(t){return null===t?m(t):Tb(t)?e.attempt(JN,h,m)(t):(e.enter("mathFlowValue"),f(t))}function f(t){return null===t||Tb(t)?(e.exit("mathFlowValue"),p(t)):(e.consume(t),f)}function m(n){return e.exit("mathFlow"),t(n)}function g(e,t,n){let i=0;return Mb(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),o(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(t){return 36===t?(i++,e.consume(t),o):i<s?n(t):(e.exit("mathFlowFenceSequence"),Mb(e,a,"whitespace")(t))}function a(r){return null===r||Tb(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},JN={tokenize:function(e,t,n){const r=this;return function(n){if(null===n)return t(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function eR(e){let t=(e||{}).singleDollarTextMath;return null!==t&&void 0!==t||(t=!0),{tokenize:function(e,n,r){let i,o,s=0;return function(t){return e.enter("mathText"),e.enter("mathTextSequence"),a(t)};function a(n){return 36===n?(e.consume(n),s++,a):s<2&&!t?r(n):(e.exit("mathTextSequence"),l(n))}function l(t){return null===t?r(t):36===t?(o=e.enter("mathTextSequence"),i=0,u(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):Tb(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("mathTextData"),c(t))}function c(t){return null===t||32===t||36===t||Tb(t)?(e.exit("mathTextData"),l(t)):(e.consume(t),c)}function u(t){return 36===t?(e.consume(t),i++,u):i===s?(e.exit("mathTextSequence"),e.exit("mathText"),n(t)):(o.type="mathTextData",c(t))}},resolve:tR,previous:nR,name:"mathText"}}function tR(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function nR(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}const rR={};function iR(e){const t=e||rR,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return{flow:{36:KN},text:{36:eR(e)}}}(t)),i.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){const t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;const r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){const e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e},mathFlowValue:e,mathText:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),o.push(function(e){let t=(e||{}).singleDollarTextMath;return null!==t&&void 0!==t||(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){const i=e.value||"",o=n.createTracker(r),s="$".repeat(Math.max(Nx(i,"$")+1,2)),a=n.enter("mathFlow");let l=o.move(s);if(e.meta){const t=n.enter("mathFlowMeta");l+=o.move(n.safe(e.meta,{after:"\n",before:l,encode:["$"],...o.current()})),t()}return l+=o.move("\n"),i&&(l+=o.move(i+"\n")),l+=o.move(s),a(),l},inlineMath:n}};function n(e,n,r){let i=e.value||"",o=1;for(t||o++;new RegExp("(^|[^$])"+"\\$".repeat(o)+"([^$]|$)").test(i);)o++;const s="$".repeat(o);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let a=-1;for(;++a<r.unsafe.length;){const e=r.unsafe[a];if(!e.atBreak)continue;const t=r.compilePattern(e);let n;for(;n=t.exec(i);){let e=n.index;10===i.codePointAt(e)&&13===i.codePointAt(e-1)&&e--,i=i.slice(0,e)+" "+i.slice(n.index+1)}}return s+i+s}}(t))}function oR(){oR=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),sR(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}return t},Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sR(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)}))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)})}return e[Symbol.replace].call(this,n,i)},oR.apply(this,arguments)}function sR(e,t){return sR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sR(e,t)}function aR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lR(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return aR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aR(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var cR=function(e){return function(t){return void 0===t&&(t={}),function(e,t){if(t&&!e.registered(t))throw new Error('The default language "'+t+'" is not registered with refractor.')}(e,t.defaultLanguage),function(e){Vu(e,"element",n)};function n(n,r,i){var o,s;if(i&&"pre"===i.tagName&&"code"===n.tagName){var a=(null==n||null==(o=n.data)?void 0:o.meta)||(null==n||null==(s=n.properties)?void 0:s.metastring)||"";n.properties.className?"boolean"==typeof n.properties.className?n.properties.className=[]:Array.isArray(n.properties.className)||(n.properties.className=[n.properties.className]):n.properties.className=[];var l,c,u=function(e){for(var t,n=lR(e.properties.className);!(t=n()).done;){var r=t.value;if("language-"===r.slice(0,9))return r.slice(9).toLowerCase()}return null}(n);if(!u&&t.defaultLanguage&&n.properties.className.push("language-"+(u=t.defaultLanguage)),n.properties.className.push("code-highlight"),u)try{var h,d;d=null!=(h=u)&&h.includes("diff-")?u.split("-")[1]:u,l=e.highlight(Gu(n),d),i.properties.className=(i.properties.className||[]).concat("language-"+d)}catch(y){if(!t.ignoreMissing||!/Unknown language/.test(y.message))throw y;l=n}else l=n;l.children=(c=1,function e(t){return t.reduce(function(t,n){if("text"===n.type){var r=n.value,i=(r.match(/\n/g)||"").length;if(0===i)n.position={start:{line:c,column:1},end:{line:c,column:1}},t.push(n);else for(var o,s=r.split("\n"),a=lR(s.entries());!(o=a()).done;){var l=o.value,u=l[0],h=l[1];t.push({type:"text",value:u===s.length-1?h:h+"\n",position:{start:{line:c+u,column:1},end:{line:c+u,column:1}}})}return c+=i,t}if(Object.prototype.hasOwnProperty.call(n,"children")){var d=c;return n.children=e(n.children),t.push(n),n.position={start:{line:d,column:1},end:{line:c,column:1}},t}return t.push(n),t},[])})(l.children),l.position=l.children.length>0?{start:{line:l.children[0].position.start.line,column:0},end:{line:l.children[l.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var p,f=function(e){var t=/{([\d,-]+)}/,n=e.split(",").map(function(e){return e.trim()}).join();if(t.test(n)){var r=t.exec(n)[1],i=th(r);return function(e){return i.includes(e+1)}}return function(){return!1}}(a),m=function(e){var t=oR(/showLineNumbers=(\d+)/i,{lines:1});if(t.test(e)){var n=t.exec(e);return Number(n.groups.lines)}return 1}(a),g=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]={type:"element",tagName:"span",properties:{className:[]},children:[]};return t}(l.position.end.line),O=["showlinenumbers=false",'showlinenumbers="false"',"showlinenumbers={false}"],b=function(){var e,n,r=p.value,i=r[0],o=r[1];o.properties.className=["code-line"];var s=eh(l,function(e){return e.position.start.line<=i+1&&e.position.end.line>=i+1});o.children=s.children,(a.toLowerCase().includes("showLineNumbers".toLowerCase())||!0===t.showLineNumbers||"object"==typeof t.showLineNumbers&&t.showLineNumbers.includes(u))&&!O.some(function(e){return a.toLowerCase().includes(e)})&&(o.properties.line=[(i+m).toString()],o.properties.className.push("line-number")),f(i)&&o.properties.className.push("highlight-line"),("diff"===u||null!=(e=u)&&e.includes("diff-"))&&"-"===Gu(o).substring(0,1)?o.properties.className.push("deleted"):("diff"===u||null!=(n=u)&&n.includes("diff-"))&&"+"===Gu(o).substring(0,1)&&o.properties.className.push("inserted")},v=lR(g.entries());!(p=v()).done;)b();g.length>0&&""===Gu(g[g.length-1]).trim()&&g.pop(),n.children=g}}}},uR=(cR(nh.L),cR(rh.L));function hR(e,t){const n=function(e,t){switch(e.nodeType){case 1:return function(e,t){const n=e.namespaceURI,r=n===qp.svg?Bp:$p,i=n===qp.html?e.tagName.toLowerCase():e.tagName,o=n===qp.html&&"template"===i?e.content:e,s=e.getAttributeNames(),a={};let l=-1;for(;++l<s.length;)a[s[l]]=e.getAttribute(s[l])||"";return r(i,a,pR(o,t))}(e,t);case 3:return function(e){return{type:"text",value:e.nodeValue||""}}(e);case 8:return function(e){return{type:"comment",value:e.nodeValue||""}}(e);case 9:return dR(e,t);case 10:return{type:"doctype"};case 11:return dR(e,t);default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function dR(e,t){return{type:"root",children:pR(e,t)}}function pR(e,t){const n=e.childNodes,r=[];let i=-1;for(;++i<n.length;){const e=hR(n[i],t);void 0!==e&&r.push(e)}return r}const fR=new DOMParser;function mR(e,t){return function(e,t){return hR(e,t||{})||{type:"root",children:[]}}(t?.fragment?function(e){const t=document.createElement("template");return t.innerHTML=e,t.content}(e):fR.parseFromString(e,"text/html"))}const gR=function(e,t,n){const r=Bu(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"===typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},OR=/\n/g,bR=/[\t ]+/g,vR=aS("br"),yR=aS(function(e){return"td"===e.tagName||"th"===e.tagName}),xR=aS("p"),kR=aS("tr"),SR=aS(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),wR=aS(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function AR(e,t,n){return"element"===e.type?function(e,t,n){const r=CR(e,n),i=e.children||[];let o,s,a=-1,l=[];if(SR(e))return l;vR(e)||kR(e)&&gR(t,e,kR)?s="\n":xR(e)?(o=2,s=2):wR(e)&&(o=1,s=1);for(;++a<i.length;)l=l.concat(AR(i[a],e,{whitespace:r,breakBefore:a?void 0:o,breakAfter:a<i.length-1?vR(i[a+1]):s}));yR(e)&&gR(t,e,yR)&&l.push("\t");o&&l.unshift(o);s&&l.push(s);return l}(e,t,n):"text"===e.type?"normal"===n.whitespace?TR(e,n):function(e){return[String(e.value)]}(e):[]}function TR(e,t){const n=String(e.value),r=[],i=[];let o=0;for(;o<=n.length;){OR.lastIndex=o;const e=OR.exec(n),i=e&&"index"in e?e.index:n.length;r.push(ER(n.slice(o,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,i!==n.length||t.breakAfter)),o=i+1}let s,a=-1;for(;++a<r.length;)8203===r[a].charCodeAt(r[a].length-1)||a<r.length-1&&8203===r[a+1].charCodeAt(0)?(i.push(r[a]),s=void 0):r[a]?("number"===typeof s&&i.push(s),i.push(r[a]),s=0):0!==a&&a!==r.length-1||i.push(0);return i}function ER(e,t,n){const r=[];let i,o=0;for(;o<e.length;){bR.lastIndex=o;const n=bR.exec(e);i=n?n.index:e.length,o||i||!n||t||r.push(""),o!==i&&r.push(e.slice(o,i)),o=n?i+n[0].length:i}return o===i||n||r.push(""),r.join(" ")}function CR(e,t){if("element"===e.type){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}class _R{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new _R(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class PR{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new PR(t,_R.range(this,e))}}class DR{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n,r,i="KaTeX parse error: "+e,o=t&&t.loc;if(o&&o.start<=o.end){var s=o.lexer.input;n=o.start,r=o.end,n===s.length?i+=" at end of input: ":i+=" at position "+(n+1)+": ";var a=s.slice(n,r).replace(/[^]/g,"$&\u0332");i+=(n>15?"\u2026"+s.slice(n-15,n):s.slice(0,n))+a+(r+15<s.length?s.slice(r,r+15)+"\u2026":s.slice(r))}var l=new Error(i);return l.name="ParseError",l.__proto__=DR.prototype,l.position=n,null!=n&&null!=r&&(l.length=r-n),l.rawMessage=e,l}}DR.prototype.__proto__=Error.prototype;var MR=/([A-Z])/g,NR={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},RR=/[&><"']/g;var QR=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},IR={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(RR,e=>NR[e])},hyphenate:function(e){return e.replace(MR,"-$1").toLowerCase()},getBaseElem:QR,isCharacterBox:function(e){var t=QR(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},LR={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function FR(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!==typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class $R{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},LR)if(LR.hasOwnProperty(t)){var n=LR[t];this[t]=void 0!==e[t]?n.processor?n.processor(e[t]):e[t]:FR(n)}}reportNonstrict(e,t,n){var r=this.strict;if("function"===typeof r&&(r=r(e,t,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new DR("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===r?"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,n){var r=this.strict;if("function"===typeof r)try{r=r(e,t,n)}catch(i){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r||("warn"===r?("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=IR.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var n="function"===typeof this.trust?this.trust(e):this.trust;return Boolean(n)}}class BR{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return zR[qR[this.id]]}sub(){return zR[HR[this.id]]}fracNum(){return zR[UR[this.id]]}fracDen(){return zR[XR[this.id]]}cramp(){return zR[jR[this.id]]}text(){return zR[ZR[this.id]]}isTight(){return this.size>=2}}var zR=[new BR(0,0,!1),new BR(1,0,!0),new BR(2,1,!1),new BR(3,1,!0),new BR(4,2,!1),new BR(5,2,!0),new BR(6,3,!1),new BR(7,3,!0)],qR=[4,5,4,5,6,7,6,7],HR=[5,5,5,5,7,7,7,7],UR=[2,3,4,5,6,7,6,7],XR=[3,3,5,5,7,7,7,7],jR=[1,1,3,3,5,5,7,7],ZR=[0,1,2,3,2,3,2,3],YR={DISPLAY:zR[0],TEXT:zR[2],SCRIPT:zR[4],SCRIPTSCRIPT:zR[6]},VR=[{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]]}];var GR=[];function WR(e){for(var t=0;t<GR.length;t+=2)if(e>=GR[t]&&e<=GR[t+1])return!0;return!1}VR.forEach(e=>e.blocks.forEach(e=>GR.push(...e)));var KR=80,JR={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class eQ{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return IR.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var tQ={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},nQ={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},rQ={"\xc5":"A","\xd0":"D","\xde":"o","\xe5":"a","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};function iQ(e,t,n){if(!tQ[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=tQ[t][r];if(!i&&e[0]in rQ&&(r=rQ[e[0]].charCodeAt(0),i=tQ[t][r]),i||"text"!==n||WR(r)&&(i=tQ[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var oQ={};var sQ=[[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]],aQ=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],lQ=function(e,t){return t.size<2?e:sQ[e-1][t.size-1]};class cQ{constructor(e){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=e.style,this.color=e.color,this.size=e.size||cQ.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=aQ[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={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 n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return new cQ(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:lQ(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:aQ[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=lQ(cQ.BASESIZE,e);return this.size===t&&this.textSize===cQ.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==cQ.BASESIZE?["sizing","reset-size"+this.size,"size"+cQ.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!oQ[t=e>=5?0:e>=3?1:2]){var n=oQ[t]={cssEmPerMu:nQ.quad[t]/18};for(var r in nQ)nQ.hasOwnProperty(r)&&(n[r]=nQ[r][t])}return oQ[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}cQ.BASESIZE=6;var uQ={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},hQ={ex:!0,em:!0,mu:!0},dQ=function(e){return"string"!==typeof e&&(e=e.unit),e in uQ||e in hQ||"ex"===e},pQ=function(e,t){var n;if(e.unit in uQ)n=uQ[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new DR("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},fQ=function(e){return+e.toFixed(4)+"em"},mQ=function(e){return e.filter(e=>e).join(" ")},gQ=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},OQ=function(e){var t=document.createElement(e);for(var n in t.className=mQ(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},bQ=/[\s"'>/=\x00-\x1f]/,vQ=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+IR.escape(mQ(this.classes))+'"');var n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=IR.hyphenate(r)+":"+this.style[r]+";");for(var i in n&&(t+=' style="'+IR.escape(n)+'"'),this.attributes)if(this.attributes.hasOwnProperty(i)){if(bQ.test(i))throw new DR("Invalid attribute name '"+i+"'");t+=" "+i+'="'+IR.escape(this.attributes[i])+'"'}t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">"};class yQ{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,gQ.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return IR.contains(this.classes,e)}toNode(){return OQ.call(this,"span")}toMarkup(){return vQ.call(this,"span")}}class xQ{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,gQ.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return IR.contains(this.classes,e)}toNode(){return OQ.call(this,"a")}toMarkup(){return vQ.call(this,"a")}}class kQ{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return IR.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+IR.escape(this.src)+'" alt="'+IR.escape(this.alt)+'"',t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=IR.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+IR.escape(t)+'"'),e+="'/>"}}var SQ={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"};class wQ{constructor(e,t,n,r,i,o,s,a){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=o||0,this.classes=s||[],this.style=a||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<VR.length;t++)for(var n=VR[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=SQ[this.text])}hasClass(e){return IR.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=fQ(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=mQ(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=IR.escape(mQ(this.classes)),t+='"');var n="";for(var r in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=IR.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+IR.escape(n)+'"');var i=IR.escape(this.text);return e?(t+=">",t+=i,t+="</span>"):i}}class AQ{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+IR.escape(this.attributes[t])+'"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>"}}class TQ{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",JR[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+IR.escape(this.alternate)+'"/>':'<path d="'+IR.escape(JR[this.pathName])+'"/>'}}class EQ{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+IR.escape(this.attributes[t])+'"');return e+="/>"}}function CQ(e){if(e instanceof wQ)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var _Q={bin:1,close:1,inner:1,open:1,punct:1,rel:1},PQ={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},DQ={math:{},text:{}};function MQ(e,t,n,r,i,o){DQ[e][i]={font:t,group:n,replace:r},o&&r&&(DQ[e][r]=DQ[e][i])}var NQ="math",RQ="text",QQ="main",IQ="ams",LQ="accent-token",FQ="bin",$Q="close",BQ="inner",zQ="mathord",qQ="op-token",HQ="open",UQ="punct",XQ="rel",jQ="spacing",ZQ="textord";MQ(NQ,QQ,XQ,"\u2261","\\equiv",!0),MQ(NQ,QQ,XQ,"\u227a","\\prec",!0),MQ(NQ,QQ,XQ,"\u227b","\\succ",!0),MQ(NQ,QQ,XQ,"\u223c","\\sim",!0),MQ(NQ,QQ,XQ,"\u22a5","\\perp"),MQ(NQ,QQ,XQ,"\u2aaf","\\preceq",!0),MQ(NQ,QQ,XQ,"\u2ab0","\\succeq",!0),MQ(NQ,QQ,XQ,"\u2243","\\simeq",!0),MQ(NQ,QQ,XQ,"\u2223","\\mid",!0),MQ(NQ,QQ,XQ,"\u226a","\\ll",!0),MQ(NQ,QQ,XQ,"\u226b","\\gg",!0),MQ(NQ,QQ,XQ,"\u224d","\\asymp",!0),MQ(NQ,QQ,XQ,"\u2225","\\parallel"),MQ(NQ,QQ,XQ,"\u22c8","\\bowtie",!0),MQ(NQ,QQ,XQ,"\u2323","\\smile",!0),MQ(NQ,QQ,XQ,"\u2291","\\sqsubseteq",!0),MQ(NQ,QQ,XQ,"\u2292","\\sqsupseteq",!0),MQ(NQ,QQ,XQ,"\u2250","\\doteq",!0),MQ(NQ,QQ,XQ,"\u2322","\\frown",!0),MQ(NQ,QQ,XQ,"\u220b","\\ni",!0),MQ(NQ,QQ,XQ,"\u221d","\\propto",!0),MQ(NQ,QQ,XQ,"\u22a2","\\vdash",!0),MQ(NQ,QQ,XQ,"\u22a3","\\dashv",!0),MQ(NQ,QQ,XQ,"\u220b","\\owns"),MQ(NQ,QQ,UQ,".","\\ldotp"),MQ(NQ,QQ,UQ,"\u22c5","\\cdotp"),MQ(NQ,QQ,ZQ,"#","\\#"),MQ(RQ,QQ,ZQ,"#","\\#"),MQ(NQ,QQ,ZQ,"&","\\&"),MQ(RQ,QQ,ZQ,"&","\\&"),MQ(NQ,QQ,ZQ,"\u2135","\\aleph",!0),MQ(NQ,QQ,ZQ,"\u2200","\\forall",!0),MQ(NQ,QQ,ZQ,"\u210f","\\hbar",!0),MQ(NQ,QQ,ZQ,"\u2203","\\exists",!0),MQ(NQ,QQ,ZQ,"\u2207","\\nabla",!0),MQ(NQ,QQ,ZQ,"\u266d","\\flat",!0),MQ(NQ,QQ,ZQ,"\u2113","\\ell",!0),MQ(NQ,QQ,ZQ,"\u266e","\\natural",!0),MQ(NQ,QQ,ZQ,"\u2663","\\clubsuit",!0),MQ(NQ,QQ,ZQ,"\u2118","\\wp",!0),MQ(NQ,QQ,ZQ,"\u266f","\\sharp",!0),MQ(NQ,QQ,ZQ,"\u2662","\\diamondsuit",!0),MQ(NQ,QQ,ZQ,"\u211c","\\Re",!0),MQ(NQ,QQ,ZQ,"\u2661","\\heartsuit",!0),MQ(NQ,QQ,ZQ,"\u2111","\\Im",!0),MQ(NQ,QQ,ZQ,"\u2660","\\spadesuit",!0),MQ(NQ,QQ,ZQ,"\xa7","\\S",!0),MQ(RQ,QQ,ZQ,"\xa7","\\S"),MQ(NQ,QQ,ZQ,"\xb6","\\P",!0),MQ(RQ,QQ,ZQ,"\xb6","\\P"),MQ(NQ,QQ,ZQ,"\u2020","\\dag"),MQ(RQ,QQ,ZQ,"\u2020","\\dag"),MQ(RQ,QQ,ZQ,"\u2020","\\textdagger"),MQ(NQ,QQ,ZQ,"\u2021","\\ddag"),MQ(RQ,QQ,ZQ,"\u2021","\\ddag"),MQ(RQ,QQ,ZQ,"\u2021","\\textdaggerdbl"),MQ(NQ,QQ,$Q,"\u23b1","\\rmoustache",!0),MQ(NQ,QQ,HQ,"\u23b0","\\lmoustache",!0),MQ(NQ,QQ,$Q,"\u27ef","\\rgroup",!0),MQ(NQ,QQ,HQ,"\u27ee","\\lgroup",!0),MQ(NQ,QQ,FQ,"\u2213","\\mp",!0),MQ(NQ,QQ,FQ,"\u2296","\\ominus",!0),MQ(NQ,QQ,FQ,"\u228e","\\uplus",!0),MQ(NQ,QQ,FQ,"\u2293","\\sqcap",!0),MQ(NQ,QQ,FQ,"\u2217","\\ast"),MQ(NQ,QQ,FQ,"\u2294","\\sqcup",!0),MQ(NQ,QQ,FQ,"\u25ef","\\bigcirc",!0),MQ(NQ,QQ,FQ,"\u2219","\\bullet",!0),MQ(NQ,QQ,FQ,"\u2021","\\ddagger"),MQ(NQ,QQ,FQ,"\u2240","\\wr",!0),MQ(NQ,QQ,FQ,"\u2a3f","\\amalg"),MQ(NQ,QQ,FQ,"&","\\And"),MQ(NQ,QQ,XQ,"\u27f5","\\longleftarrow",!0),MQ(NQ,QQ,XQ,"\u21d0","\\Leftarrow",!0),MQ(NQ,QQ,XQ,"\u27f8","\\Longleftarrow",!0),MQ(NQ,QQ,XQ,"\u27f6","\\longrightarrow",!0),MQ(NQ,QQ,XQ,"\u21d2","\\Rightarrow",!0),MQ(NQ,QQ,XQ,"\u27f9","\\Longrightarrow",!0),MQ(NQ,QQ,XQ,"\u2194","\\leftrightarrow",!0),MQ(NQ,QQ,XQ,"\u27f7","\\longleftrightarrow",!0),MQ(NQ,QQ,XQ,"\u21d4","\\Leftrightarrow",!0),MQ(NQ,QQ,XQ,"\u27fa","\\Longleftrightarrow",!0),MQ(NQ,QQ,XQ,"\u21a6","\\mapsto",!0),MQ(NQ,QQ,XQ,"\u27fc","\\longmapsto",!0),MQ(NQ,QQ,XQ,"\u2197","\\nearrow",!0),MQ(NQ,QQ,XQ,"\u21a9","\\hookleftarrow",!0),MQ(NQ,QQ,XQ,"\u21aa","\\hookrightarrow",!0),MQ(NQ,QQ,XQ,"\u2198","\\searrow",!0),MQ(NQ,QQ,XQ,"\u21bc","\\leftharpoonup",!0),MQ(NQ,QQ,XQ,"\u21c0","\\rightharpoonup",!0),MQ(NQ,QQ,XQ,"\u2199","\\swarrow",!0),MQ(NQ,QQ,XQ,"\u21bd","\\leftharpoondown",!0),MQ(NQ,QQ,XQ,"\u21c1","\\rightharpoondown",!0),MQ(NQ,QQ,XQ,"\u2196","\\nwarrow",!0),MQ(NQ,QQ,XQ,"\u21cc","\\rightleftharpoons",!0),MQ(NQ,IQ,XQ,"\u226e","\\nless",!0),MQ(NQ,IQ,XQ,"\ue010","\\@nleqslant"),MQ(NQ,IQ,XQ,"\ue011","\\@nleqq"),MQ(NQ,IQ,XQ,"\u2a87","\\lneq",!0),MQ(NQ,IQ,XQ,"\u2268","\\lneqq",!0),MQ(NQ,IQ,XQ,"\ue00c","\\@lvertneqq"),MQ(NQ,IQ,XQ,"\u22e6","\\lnsim",!0),MQ(NQ,IQ,XQ,"\u2a89","\\lnapprox",!0),MQ(NQ,IQ,XQ,"\u2280","\\nprec",!0),MQ(NQ,IQ,XQ,"\u22e0","\\npreceq",!0),MQ(NQ,IQ,XQ,"\u22e8","\\precnsim",!0),MQ(NQ,IQ,XQ,"\u2ab9","\\precnapprox",!0),MQ(NQ,IQ,XQ,"\u2241","\\nsim",!0),MQ(NQ,IQ,XQ,"\ue006","\\@nshortmid"),MQ(NQ,IQ,XQ,"\u2224","\\nmid",!0),MQ(NQ,IQ,XQ,"\u22ac","\\nvdash",!0),MQ(NQ,IQ,XQ,"\u22ad","\\nvDash",!0),MQ(NQ,IQ,XQ,"\u22ea","\\ntriangleleft"),MQ(NQ,IQ,XQ,"\u22ec","\\ntrianglelefteq",!0),MQ(NQ,IQ,XQ,"\u228a","\\subsetneq",!0),MQ(NQ,IQ,XQ,"\ue01a","\\@varsubsetneq"),MQ(NQ,IQ,XQ,"\u2acb","\\subsetneqq",!0),MQ(NQ,IQ,XQ,"\ue017","\\@varsubsetneqq"),MQ(NQ,IQ,XQ,"\u226f","\\ngtr",!0),MQ(NQ,IQ,XQ,"\ue00f","\\@ngeqslant"),MQ(NQ,IQ,XQ,"\ue00e","\\@ngeqq"),MQ(NQ,IQ,XQ,"\u2a88","\\gneq",!0),MQ(NQ,IQ,XQ,"\u2269","\\gneqq",!0),MQ(NQ,IQ,XQ,"\ue00d","\\@gvertneqq"),MQ(NQ,IQ,XQ,"\u22e7","\\gnsim",!0),MQ(NQ,IQ,XQ,"\u2a8a","\\gnapprox",!0),MQ(NQ,IQ,XQ,"\u2281","\\nsucc",!0),MQ(NQ,IQ,XQ,"\u22e1","\\nsucceq",!0),MQ(NQ,IQ,XQ,"\u22e9","\\succnsim",!0),MQ(NQ,IQ,XQ,"\u2aba","\\succnapprox",!0),MQ(NQ,IQ,XQ,"\u2246","\\ncong",!0),MQ(NQ,IQ,XQ,"\ue007","\\@nshortparallel"),MQ(NQ,IQ,XQ,"\u2226","\\nparallel",!0),MQ(NQ,IQ,XQ,"\u22af","\\nVDash",!0),MQ(NQ,IQ,XQ,"\u22eb","\\ntriangleright"),MQ(NQ,IQ,XQ,"\u22ed","\\ntrianglerighteq",!0),MQ(NQ,IQ,XQ,"\ue018","\\@nsupseteqq"),MQ(NQ,IQ,XQ,"\u228b","\\supsetneq",!0),MQ(NQ,IQ,XQ,"\ue01b","\\@varsupsetneq"),MQ(NQ,IQ,XQ,"\u2acc","\\supsetneqq",!0),MQ(NQ,IQ,XQ,"\ue019","\\@varsupsetneqq"),MQ(NQ,IQ,XQ,"\u22ae","\\nVdash",!0),MQ(NQ,IQ,XQ,"\u2ab5","\\precneqq",!0),MQ(NQ,IQ,XQ,"\u2ab6","\\succneqq",!0),MQ(NQ,IQ,XQ,"\ue016","\\@nsubseteqq"),MQ(NQ,IQ,FQ,"\u22b4","\\unlhd"),MQ(NQ,IQ,FQ,"\u22b5","\\unrhd"),MQ(NQ,IQ,XQ,"\u219a","\\nleftarrow",!0),MQ(NQ,IQ,XQ,"\u219b","\\nrightarrow",!0),MQ(NQ,IQ,XQ,"\u21cd","\\nLeftarrow",!0),MQ(NQ,IQ,XQ,"\u21cf","\\nRightarrow",!0),MQ(NQ,IQ,XQ,"\u21ae","\\nleftrightarrow",!0),MQ(NQ,IQ,XQ,"\u21ce","\\nLeftrightarrow",!0),MQ(NQ,IQ,XQ,"\u25b3","\\vartriangle"),MQ(NQ,IQ,ZQ,"\u210f","\\hslash"),MQ(NQ,IQ,ZQ,"\u25bd","\\triangledown"),MQ(NQ,IQ,ZQ,"\u25ca","\\lozenge"),MQ(NQ,IQ,ZQ,"\u24c8","\\circledS"),MQ(NQ,IQ,ZQ,"\xae","\\circledR"),MQ(RQ,IQ,ZQ,"\xae","\\circledR"),MQ(NQ,IQ,ZQ,"\u2221","\\measuredangle",!0),MQ(NQ,IQ,ZQ,"\u2204","\\nexists"),MQ(NQ,IQ,ZQ,"\u2127","\\mho"),MQ(NQ,IQ,ZQ,"\u2132","\\Finv",!0),MQ(NQ,IQ,ZQ,"\u2141","\\Game",!0),MQ(NQ,IQ,ZQ,"\u2035","\\backprime"),MQ(NQ,IQ,ZQ,"\u25b2","\\blacktriangle"),MQ(NQ,IQ,ZQ,"\u25bc","\\blacktriangledown"),MQ(NQ,IQ,ZQ,"\u25a0","\\blacksquare"),MQ(NQ,IQ,ZQ,"\u29eb","\\blacklozenge"),MQ(NQ,IQ,ZQ,"\u2605","\\bigstar"),MQ(NQ,IQ,ZQ,"\u2222","\\sphericalangle",!0),MQ(NQ,IQ,ZQ,"\u2201","\\complement",!0),MQ(NQ,IQ,ZQ,"\xf0","\\eth",!0),MQ(RQ,QQ,ZQ,"\xf0","\xf0"),MQ(NQ,IQ,ZQ,"\u2571","\\diagup"),MQ(NQ,IQ,ZQ,"\u2572","\\diagdown"),MQ(NQ,IQ,ZQ,"\u25a1","\\square"),MQ(NQ,IQ,ZQ,"\u25a1","\\Box"),MQ(NQ,IQ,ZQ,"\u25ca","\\Diamond"),MQ(NQ,IQ,ZQ,"\xa5","\\yen",!0),MQ(RQ,IQ,ZQ,"\xa5","\\yen",!0),MQ(NQ,IQ,ZQ,"\u2713","\\checkmark",!0),MQ(RQ,IQ,ZQ,"\u2713","\\checkmark"),MQ(NQ,IQ,ZQ,"\u2136","\\beth",!0),MQ(NQ,IQ,ZQ,"\u2138","\\daleth",!0),MQ(NQ,IQ,ZQ,"\u2137","\\gimel",!0),MQ(NQ,IQ,ZQ,"\u03dd","\\digamma",!0),MQ(NQ,IQ,ZQ,"\u03f0","\\varkappa"),MQ(NQ,IQ,HQ,"\u250c","\\@ulcorner",!0),MQ(NQ,IQ,$Q,"\u2510","\\@urcorner",!0),MQ(NQ,IQ,HQ,"\u2514","\\@llcorner",!0),MQ(NQ,IQ,$Q,"\u2518","\\@lrcorner",!0),MQ(NQ,IQ,XQ,"\u2266","\\leqq",!0),MQ(NQ,IQ,XQ,"\u2a7d","\\leqslant",!0),MQ(NQ,IQ,XQ,"\u2a95","\\eqslantless",!0),MQ(NQ,IQ,XQ,"\u2272","\\lesssim",!0),MQ(NQ,IQ,XQ,"\u2a85","\\lessapprox",!0),MQ(NQ,IQ,XQ,"\u224a","\\approxeq",!0),MQ(NQ,IQ,FQ,"\u22d6","\\lessdot"),MQ(NQ,IQ,XQ,"\u22d8","\\lll",!0),MQ(NQ,IQ,XQ,"\u2276","\\lessgtr",!0),MQ(NQ,IQ,XQ,"\u22da","\\lesseqgtr",!0),MQ(NQ,IQ,XQ,"\u2a8b","\\lesseqqgtr",!0),MQ(NQ,IQ,XQ,"\u2251","\\doteqdot"),MQ(NQ,IQ,XQ,"\u2253","\\risingdotseq",!0),MQ(NQ,IQ,XQ,"\u2252","\\fallingdotseq",!0),MQ(NQ,IQ,XQ,"\u223d","\\backsim",!0),MQ(NQ,IQ,XQ,"\u22cd","\\backsimeq",!0),MQ(NQ,IQ,XQ,"\u2ac5","\\subseteqq",!0),MQ(NQ,IQ,XQ,"\u22d0","\\Subset",!0),MQ(NQ,IQ,XQ,"\u228f","\\sqsubset",!0),MQ(NQ,IQ,XQ,"\u227c","\\preccurlyeq",!0),MQ(NQ,IQ,XQ,"\u22de","\\curlyeqprec",!0),MQ(NQ,IQ,XQ,"\u227e","\\precsim",!0),MQ(NQ,IQ,XQ,"\u2ab7","\\precapprox",!0),MQ(NQ,IQ,XQ,"\u22b2","\\vartriangleleft"),MQ(NQ,IQ,XQ,"\u22b4","\\trianglelefteq"),MQ(NQ,IQ,XQ,"\u22a8","\\vDash",!0),MQ(NQ,IQ,XQ,"\u22aa","\\Vvdash",!0),MQ(NQ,IQ,XQ,"\u2323","\\smallsmile"),MQ(NQ,IQ,XQ,"\u2322","\\smallfrown"),MQ(NQ,IQ,XQ,"\u224f","\\bumpeq",!0),MQ(NQ,IQ,XQ,"\u224e","\\Bumpeq",!0),MQ(NQ,IQ,XQ,"\u2267","\\geqq",!0),MQ(NQ,IQ,XQ,"\u2a7e","\\geqslant",!0),MQ(NQ,IQ,XQ,"\u2a96","\\eqslantgtr",!0),MQ(NQ,IQ,XQ,"\u2273","\\gtrsim",!0),MQ(NQ,IQ,XQ,"\u2a86","\\gtrapprox",!0),MQ(NQ,IQ,FQ,"\u22d7","\\gtrdot"),MQ(NQ,IQ,XQ,"\u22d9","\\ggg",!0),MQ(NQ,IQ,XQ,"\u2277","\\gtrless",!0),MQ(NQ,IQ,XQ,"\u22db","\\gtreqless",!0),MQ(NQ,IQ,XQ,"\u2a8c","\\gtreqqless",!0),MQ(NQ,IQ,XQ,"\u2256","\\eqcirc",!0),MQ(NQ,IQ,XQ,"\u2257","\\circeq",!0),MQ(NQ,IQ,XQ,"\u225c","\\triangleq",!0),MQ(NQ,IQ,XQ,"\u223c","\\thicksim"),MQ(NQ,IQ,XQ,"\u2248","\\thickapprox"),MQ(NQ,IQ,XQ,"\u2ac6","\\supseteqq",!0),MQ(NQ,IQ,XQ,"\u22d1","\\Supset",!0),MQ(NQ,IQ,XQ,"\u2290","\\sqsupset",!0),MQ(NQ,IQ,XQ,"\u227d","\\succcurlyeq",!0),MQ(NQ,IQ,XQ,"\u22df","\\curlyeqsucc",!0),MQ(NQ,IQ,XQ,"\u227f","\\succsim",!0),MQ(NQ,IQ,XQ,"\u2ab8","\\succapprox",!0),MQ(NQ,IQ,XQ,"\u22b3","\\vartriangleright"),MQ(NQ,IQ,XQ,"\u22b5","\\trianglerighteq"),MQ(NQ,IQ,XQ,"\u22a9","\\Vdash",!0),MQ(NQ,IQ,XQ,"\u2223","\\shortmid"),MQ(NQ,IQ,XQ,"\u2225","\\shortparallel"),MQ(NQ,IQ,XQ,"\u226c","\\between",!0),MQ(NQ,IQ,XQ,"\u22d4","\\pitchfork",!0),MQ(NQ,IQ,XQ,"\u221d","\\varpropto"),MQ(NQ,IQ,XQ,"\u25c0","\\blacktriangleleft"),MQ(NQ,IQ,XQ,"\u2234","\\therefore",!0),MQ(NQ,IQ,XQ,"\u220d","\\backepsilon"),MQ(NQ,IQ,XQ,"\u25b6","\\blacktriangleright"),MQ(NQ,IQ,XQ,"\u2235","\\because",!0),MQ(NQ,IQ,XQ,"\u22d8","\\llless"),MQ(NQ,IQ,XQ,"\u22d9","\\gggtr"),MQ(NQ,IQ,FQ,"\u22b2","\\lhd"),MQ(NQ,IQ,FQ,"\u22b3","\\rhd"),MQ(NQ,IQ,XQ,"\u2242","\\eqsim",!0),MQ(NQ,QQ,XQ,"\u22c8","\\Join"),MQ(NQ,IQ,XQ,"\u2251","\\Doteq",!0),MQ(NQ,IQ,FQ,"\u2214","\\dotplus",!0),MQ(NQ,IQ,FQ,"\u2216","\\smallsetminus"),MQ(NQ,IQ,FQ,"\u22d2","\\Cap",!0),MQ(NQ,IQ,FQ,"\u22d3","\\Cup",!0),MQ(NQ,IQ,FQ,"\u2a5e","\\doublebarwedge",!0),MQ(NQ,IQ,FQ,"\u229f","\\boxminus",!0),MQ(NQ,IQ,FQ,"\u229e","\\boxplus",!0),MQ(NQ,IQ,FQ,"\u22c7","\\divideontimes",!0),MQ(NQ,IQ,FQ,"\u22c9","\\ltimes",!0),MQ(NQ,IQ,FQ,"\u22ca","\\rtimes",!0),MQ(NQ,IQ,FQ,"\u22cb","\\leftthreetimes",!0),MQ(NQ,IQ,FQ,"\u22cc","\\rightthreetimes",!0),MQ(NQ,IQ,FQ,"\u22cf","\\curlywedge",!0),MQ(NQ,IQ,FQ,"\u22ce","\\curlyvee",!0),MQ(NQ,IQ,FQ,"\u229d","\\circleddash",!0),MQ(NQ,IQ,FQ,"\u229b","\\circledast",!0),MQ(NQ,IQ,FQ,"\u22c5","\\centerdot"),MQ(NQ,IQ,FQ,"\u22ba","\\intercal",!0),MQ(NQ,IQ,FQ,"\u22d2","\\doublecap"),MQ(NQ,IQ,FQ,"\u22d3","\\doublecup"),MQ(NQ,IQ,FQ,"\u22a0","\\boxtimes",!0),MQ(NQ,IQ,XQ,"\u21e2","\\dashrightarrow",!0),MQ(NQ,IQ,XQ,"\u21e0","\\dashleftarrow",!0),MQ(NQ,IQ,XQ,"\u21c7","\\leftleftarrows",!0),MQ(NQ,IQ,XQ,"\u21c6","\\leftrightarrows",!0),MQ(NQ,IQ,XQ,"\u21da","\\Lleftarrow",!0),MQ(NQ,IQ,XQ,"\u219e","\\twoheadleftarrow",!0),MQ(NQ,IQ,XQ,"\u21a2","\\leftarrowtail",!0),MQ(NQ,IQ,XQ,"\u21ab","\\looparrowleft",!0),MQ(NQ,IQ,XQ,"\u21cb","\\leftrightharpoons",!0),MQ(NQ,IQ,XQ,"\u21b6","\\curvearrowleft",!0),MQ(NQ,IQ,XQ,"\u21ba","\\circlearrowleft",!0),MQ(NQ,IQ,XQ,"\u21b0","\\Lsh",!0),MQ(NQ,IQ,XQ,"\u21c8","\\upuparrows",!0),MQ(NQ,IQ,XQ,"\u21bf","\\upharpoonleft",!0),MQ(NQ,IQ,XQ,"\u21c3","\\downharpoonleft",!0),MQ(NQ,QQ,XQ,"\u22b6","\\origof",!0),MQ(NQ,QQ,XQ,"\u22b7","\\imageof",!0),MQ(NQ,IQ,XQ,"\u22b8","\\multimap",!0),MQ(NQ,IQ,XQ,"\u21ad","\\leftrightsquigarrow",!0),MQ(NQ,IQ,XQ,"\u21c9","\\rightrightarrows",!0),MQ(NQ,IQ,XQ,"\u21c4","\\rightleftarrows",!0),MQ(NQ,IQ,XQ,"\u21a0","\\twoheadrightarrow",!0),MQ(NQ,IQ,XQ,"\u21a3","\\rightarrowtail",!0),MQ(NQ,IQ,XQ,"\u21ac","\\looparrowright",!0),MQ(NQ,IQ,XQ,"\u21b7","\\curvearrowright",!0),MQ(NQ,IQ,XQ,"\u21bb","\\circlearrowright",!0),MQ(NQ,IQ,XQ,"\u21b1","\\Rsh",!0),MQ(NQ,IQ,XQ,"\u21ca","\\downdownarrows",!0),MQ(NQ,IQ,XQ,"\u21be","\\upharpoonright",!0),MQ(NQ,IQ,XQ,"\u21c2","\\downharpoonright",!0),MQ(NQ,IQ,XQ,"\u21dd","\\rightsquigarrow",!0),MQ(NQ,IQ,XQ,"\u21dd","\\leadsto"),MQ(NQ,IQ,XQ,"\u21db","\\Rrightarrow",!0),MQ(NQ,IQ,XQ,"\u21be","\\restriction"),MQ(NQ,QQ,ZQ,"\u2018","`"),MQ(NQ,QQ,ZQ,"$","\\$"),MQ(RQ,QQ,ZQ,"$","\\$"),MQ(RQ,QQ,ZQ,"$","\\textdollar"),MQ(NQ,QQ,ZQ,"%","\\%"),MQ(RQ,QQ,ZQ,"%","\\%"),MQ(NQ,QQ,ZQ,"_","\\_"),MQ(RQ,QQ,ZQ,"_","\\_"),MQ(RQ,QQ,ZQ,"_","\\textunderscore"),MQ(NQ,QQ,ZQ,"\u2220","\\angle",!0),MQ(NQ,QQ,ZQ,"\u221e","\\infty",!0),MQ(NQ,QQ,ZQ,"\u2032","\\prime"),MQ(NQ,QQ,ZQ,"\u25b3","\\triangle"),MQ(NQ,QQ,ZQ,"\u0393","\\Gamma",!0),MQ(NQ,QQ,ZQ,"\u0394","\\Delta",!0),MQ(NQ,QQ,ZQ,"\u0398","\\Theta",!0),MQ(NQ,QQ,ZQ,"\u039b","\\Lambda",!0),MQ(NQ,QQ,ZQ,"\u039e","\\Xi",!0),MQ(NQ,QQ,ZQ,"\u03a0","\\Pi",!0),MQ(NQ,QQ,ZQ,"\u03a3","\\Sigma",!0),MQ(NQ,QQ,ZQ,"\u03a5","\\Upsilon",!0),MQ(NQ,QQ,ZQ,"\u03a6","\\Phi",!0),MQ(NQ,QQ,ZQ,"\u03a8","\\Psi",!0),MQ(NQ,QQ,ZQ,"\u03a9","\\Omega",!0),MQ(NQ,QQ,ZQ,"A","\u0391"),MQ(NQ,QQ,ZQ,"B","\u0392"),MQ(NQ,QQ,ZQ,"E","\u0395"),MQ(NQ,QQ,ZQ,"Z","\u0396"),MQ(NQ,QQ,ZQ,"H","\u0397"),MQ(NQ,QQ,ZQ,"I","\u0399"),MQ(NQ,QQ,ZQ,"K","\u039a"),MQ(NQ,QQ,ZQ,"M","\u039c"),MQ(NQ,QQ,ZQ,"N","\u039d"),MQ(NQ,QQ,ZQ,"O","\u039f"),MQ(NQ,QQ,ZQ,"P","\u03a1"),MQ(NQ,QQ,ZQ,"T","\u03a4"),MQ(NQ,QQ,ZQ,"X","\u03a7"),MQ(NQ,QQ,ZQ,"\xac","\\neg",!0),MQ(NQ,QQ,ZQ,"\xac","\\lnot"),MQ(NQ,QQ,ZQ,"\u22a4","\\top"),MQ(NQ,QQ,ZQ,"\u22a5","\\bot"),MQ(NQ,QQ,ZQ,"\u2205","\\emptyset"),MQ(NQ,IQ,ZQ,"\u2205","\\varnothing"),MQ(NQ,QQ,zQ,"\u03b1","\\alpha",!0),MQ(NQ,QQ,zQ,"\u03b2","\\beta",!0),MQ(NQ,QQ,zQ,"\u03b3","\\gamma",!0),MQ(NQ,QQ,zQ,"\u03b4","\\delta",!0),MQ(NQ,QQ,zQ,"\u03f5","\\epsilon",!0),MQ(NQ,QQ,zQ,"\u03b6","\\zeta",!0),MQ(NQ,QQ,zQ,"\u03b7","\\eta",!0),MQ(NQ,QQ,zQ,"\u03b8","\\theta",!0),MQ(NQ,QQ,zQ,"\u03b9","\\iota",!0),MQ(NQ,QQ,zQ,"\u03ba","\\kappa",!0),MQ(NQ,QQ,zQ,"\u03bb","\\lambda",!0),MQ(NQ,QQ,zQ,"\u03bc","\\mu",!0),MQ(NQ,QQ,zQ,"\u03bd","\\nu",!0),MQ(NQ,QQ,zQ,"\u03be","\\xi",!0),MQ(NQ,QQ,zQ,"\u03bf","\\omicron",!0),MQ(NQ,QQ,zQ,"\u03c0","\\pi",!0),MQ(NQ,QQ,zQ,"\u03c1","\\rho",!0),MQ(NQ,QQ,zQ,"\u03c3","\\sigma",!0),MQ(NQ,QQ,zQ,"\u03c4","\\tau",!0),MQ(NQ,QQ,zQ,"\u03c5","\\upsilon",!0),MQ(NQ,QQ,zQ,"\u03d5","\\phi",!0),MQ(NQ,QQ,zQ,"\u03c7","\\chi",!0),MQ(NQ,QQ,zQ,"\u03c8","\\psi",!0),MQ(NQ,QQ,zQ,"\u03c9","\\omega",!0),MQ(NQ,QQ,zQ,"\u03b5","\\varepsilon",!0),MQ(NQ,QQ,zQ,"\u03d1","\\vartheta",!0),MQ(NQ,QQ,zQ,"\u03d6","\\varpi",!0),MQ(NQ,QQ,zQ,"\u03f1","\\varrho",!0),MQ(NQ,QQ,zQ,"\u03c2","\\varsigma",!0),MQ(NQ,QQ,zQ,"\u03c6","\\varphi",!0),MQ(NQ,QQ,FQ,"\u2217","*",!0),MQ(NQ,QQ,FQ,"+","+"),MQ(NQ,QQ,FQ,"\u2212","-",!0),MQ(NQ,QQ,FQ,"\u22c5","\\cdot",!0),MQ(NQ,QQ,FQ,"\u2218","\\circ",!0),MQ(NQ,QQ,FQ,"\xf7","\\div",!0),MQ(NQ,QQ,FQ,"\xb1","\\pm",!0),MQ(NQ,QQ,FQ,"\xd7","\\times",!0),MQ(NQ,QQ,FQ,"\u2229","\\cap",!0),MQ(NQ,QQ,FQ,"\u222a","\\cup",!0),MQ(NQ,QQ,FQ,"\u2216","\\setminus",!0),MQ(NQ,QQ,FQ,"\u2227","\\land"),MQ(NQ,QQ,FQ,"\u2228","\\lor"),MQ(NQ,QQ,FQ,"\u2227","\\wedge",!0),MQ(NQ,QQ,FQ,"\u2228","\\vee",!0),MQ(NQ,QQ,ZQ,"\u221a","\\surd"),MQ(NQ,QQ,HQ,"\u27e8","\\langle",!0),MQ(NQ,QQ,HQ,"\u2223","\\lvert"),MQ(NQ,QQ,HQ,"\u2225","\\lVert"),MQ(NQ,QQ,$Q,"?","?"),MQ(NQ,QQ,$Q,"!","!"),MQ(NQ,QQ,$Q,"\u27e9","\\rangle",!0),MQ(NQ,QQ,$Q,"\u2223","\\rvert"),MQ(NQ,QQ,$Q,"\u2225","\\rVert"),MQ(NQ,QQ,XQ,"=","="),MQ(NQ,QQ,XQ,":",":"),MQ(NQ,QQ,XQ,"\u2248","\\approx",!0),MQ(NQ,QQ,XQ,"\u2245","\\cong",!0),MQ(NQ,QQ,XQ,"\u2265","\\ge"),MQ(NQ,QQ,XQ,"\u2265","\\geq",!0),MQ(NQ,QQ,XQ,"\u2190","\\gets"),MQ(NQ,QQ,XQ,">","\\gt",!0),MQ(NQ,QQ,XQ,"\u2208","\\in",!0),MQ(NQ,QQ,XQ,"\ue020","\\@not"),MQ(NQ,QQ,XQ,"\u2282","\\subset",!0),MQ(NQ,QQ,XQ,"\u2283","\\supset",!0),MQ(NQ,QQ,XQ,"\u2286","\\subseteq",!0),MQ(NQ,QQ,XQ,"\u2287","\\supseteq",!0),MQ(NQ,IQ,XQ,"\u2288","\\nsubseteq",!0),MQ(NQ,IQ,XQ,"\u2289","\\nsupseteq",!0),MQ(NQ,QQ,XQ,"\u22a8","\\models"),MQ(NQ,QQ,XQ,"\u2190","\\leftarrow",!0),MQ(NQ,QQ,XQ,"\u2264","\\le"),MQ(NQ,QQ,XQ,"\u2264","\\leq",!0),MQ(NQ,QQ,XQ,"<","\\lt",!0),MQ(NQ,QQ,XQ,"\u2192","\\rightarrow",!0),MQ(NQ,QQ,XQ,"\u2192","\\to"),MQ(NQ,IQ,XQ,"\u2271","\\ngeq",!0),MQ(NQ,IQ,XQ,"\u2270","\\nleq",!0),MQ(NQ,QQ,jQ,"\xa0","\\ "),MQ(NQ,QQ,jQ,"\xa0","\\space"),MQ(NQ,QQ,jQ,"\xa0","\\nobreakspace"),MQ(RQ,QQ,jQ,"\xa0","\\ "),MQ(RQ,QQ,jQ,"\xa0"," "),MQ(RQ,QQ,jQ,"\xa0","\\space"),MQ(RQ,QQ,jQ,"\xa0","\\nobreakspace"),MQ(NQ,QQ,jQ,null,"\\nobreak"),MQ(NQ,QQ,jQ,null,"\\allowbreak"),MQ(NQ,QQ,UQ,",",","),MQ(NQ,QQ,UQ,";",";"),MQ(NQ,IQ,FQ,"\u22bc","\\barwedge",!0),MQ(NQ,IQ,FQ,"\u22bb","\\veebar",!0),MQ(NQ,QQ,FQ,"\u2299","\\odot",!0),MQ(NQ,QQ,FQ,"\u2295","\\oplus",!0),MQ(NQ,QQ,FQ,"\u2297","\\otimes",!0),MQ(NQ,QQ,ZQ,"\u2202","\\partial",!0),MQ(NQ,QQ,FQ,"\u2298","\\oslash",!0),MQ(NQ,IQ,FQ,"\u229a","\\circledcirc",!0),MQ(NQ,IQ,FQ,"\u22a1","\\boxdot",!0),MQ(NQ,QQ,FQ,"\u25b3","\\bigtriangleup"),MQ(NQ,QQ,FQ,"\u25bd","\\bigtriangledown"),MQ(NQ,QQ,FQ,"\u2020","\\dagger"),MQ(NQ,QQ,FQ,"\u22c4","\\diamond"),MQ(NQ,QQ,FQ,"\u22c6","\\star"),MQ(NQ,QQ,FQ,"\u25c3","\\triangleleft"),MQ(NQ,QQ,FQ,"\u25b9","\\triangleright"),MQ(NQ,QQ,HQ,"{","\\{"),MQ(RQ,QQ,ZQ,"{","\\{"),MQ(RQ,QQ,ZQ,"{","\\textbraceleft"),MQ(NQ,QQ,$Q,"}","\\}"),MQ(RQ,QQ,ZQ,"}","\\}"),MQ(RQ,QQ,ZQ,"}","\\textbraceright"),MQ(NQ,QQ,HQ,"{","\\lbrace"),MQ(NQ,QQ,$Q,"}","\\rbrace"),MQ(NQ,QQ,HQ,"[","\\lbrack",!0),MQ(RQ,QQ,ZQ,"[","\\lbrack",!0),MQ(NQ,QQ,$Q,"]","\\rbrack",!0),MQ(RQ,QQ,ZQ,"]","\\rbrack",!0),MQ(NQ,QQ,HQ,"(","\\lparen",!0),MQ(NQ,QQ,$Q,")","\\rparen",!0),MQ(RQ,QQ,ZQ,"<","\\textless",!0),MQ(RQ,QQ,ZQ,">","\\textgreater",!0),MQ(NQ,QQ,HQ,"\u230a","\\lfloor",!0),MQ(NQ,QQ,$Q,"\u230b","\\rfloor",!0),MQ(NQ,QQ,HQ,"\u2308","\\lceil",!0),MQ(NQ,QQ,$Q,"\u2309","\\rceil",!0),MQ(NQ,QQ,ZQ,"\\","\\backslash"),MQ(NQ,QQ,ZQ,"\u2223","|"),MQ(NQ,QQ,ZQ,"\u2223","\\vert"),MQ(RQ,QQ,ZQ,"|","\\textbar",!0),MQ(NQ,QQ,ZQ,"\u2225","\\|"),MQ(NQ,QQ,ZQ,"\u2225","\\Vert"),MQ(RQ,QQ,ZQ,"\u2225","\\textbardbl"),MQ(RQ,QQ,ZQ,"~","\\textasciitilde"),MQ(RQ,QQ,ZQ,"\\","\\textbackslash"),MQ(RQ,QQ,ZQ,"^","\\textasciicircum"),MQ(NQ,QQ,XQ,"\u2191","\\uparrow",!0),MQ(NQ,QQ,XQ,"\u21d1","\\Uparrow",!0),MQ(NQ,QQ,XQ,"\u2193","\\downarrow",!0),MQ(NQ,QQ,XQ,"\u21d3","\\Downarrow",!0),MQ(NQ,QQ,XQ,"\u2195","\\updownarrow",!0),MQ(NQ,QQ,XQ,"\u21d5","\\Updownarrow",!0),MQ(NQ,QQ,qQ,"\u2210","\\coprod"),MQ(NQ,QQ,qQ,"\u22c1","\\bigvee"),MQ(NQ,QQ,qQ,"\u22c0","\\bigwedge"),MQ(NQ,QQ,qQ,"\u2a04","\\biguplus"),MQ(NQ,QQ,qQ,"\u22c2","\\bigcap"),MQ(NQ,QQ,qQ,"\u22c3","\\bigcup"),MQ(NQ,QQ,qQ,"\u222b","\\int"),MQ(NQ,QQ,qQ,"\u222b","\\intop"),MQ(NQ,QQ,qQ,"\u222c","\\iint"),MQ(NQ,QQ,qQ,"\u222d","\\iiint"),MQ(NQ,QQ,qQ,"\u220f","\\prod"),MQ(NQ,QQ,qQ,"\u2211","\\sum"),MQ(NQ,QQ,qQ,"\u2a02","\\bigotimes"),MQ(NQ,QQ,qQ,"\u2a01","\\bigoplus"),MQ(NQ,QQ,qQ,"\u2a00","\\bigodot"),MQ(NQ,QQ,qQ,"\u222e","\\oint"),MQ(NQ,QQ,qQ,"\u222f","\\oiint"),MQ(NQ,QQ,qQ,"\u2230","\\oiiint"),MQ(NQ,QQ,qQ,"\u2a06","\\bigsqcup"),MQ(NQ,QQ,qQ,"\u222b","\\smallint"),MQ(RQ,QQ,BQ,"\u2026","\\textellipsis"),MQ(NQ,QQ,BQ,"\u2026","\\mathellipsis"),MQ(RQ,QQ,BQ,"\u2026","\\ldots",!0),MQ(NQ,QQ,BQ,"\u2026","\\ldots",!0),MQ(NQ,QQ,BQ,"\u22ef","\\@cdots",!0),MQ(NQ,QQ,BQ,"\u22f1","\\ddots",!0),MQ(NQ,QQ,ZQ,"\u22ee","\\varvdots"),MQ(RQ,QQ,ZQ,"\u22ee","\\varvdots"),MQ(NQ,QQ,LQ,"\u02ca","\\acute"),MQ(NQ,QQ,LQ,"\u02cb","\\grave"),MQ(NQ,QQ,LQ,"\xa8","\\ddot"),MQ(NQ,QQ,LQ,"~","\\tilde"),MQ(NQ,QQ,LQ,"\u02c9","\\bar"),MQ(NQ,QQ,LQ,"\u02d8","\\breve"),MQ(NQ,QQ,LQ,"\u02c7","\\check"),MQ(NQ,QQ,LQ,"^","\\hat"),MQ(NQ,QQ,LQ,"\u20d7","\\vec"),MQ(NQ,QQ,LQ,"\u02d9","\\dot"),MQ(NQ,QQ,LQ,"\u02da","\\mathring"),MQ(NQ,QQ,zQ,"\ue131","\\@imath"),MQ(NQ,QQ,zQ,"\ue237","\\@jmath"),MQ(NQ,QQ,ZQ,"\u0131","\u0131"),MQ(NQ,QQ,ZQ,"\u0237","\u0237"),MQ(RQ,QQ,ZQ,"\u0131","\\i",!0),MQ(RQ,QQ,ZQ,"\u0237","\\j",!0),MQ(RQ,QQ,ZQ,"\xdf","\\ss",!0),MQ(RQ,QQ,ZQ,"\xe6","\\ae",!0),MQ(RQ,QQ,ZQ,"\u0153","\\oe",!0),MQ(RQ,QQ,ZQ,"\xf8","\\o",!0),MQ(RQ,QQ,ZQ,"\xc6","\\AE",!0),MQ(RQ,QQ,ZQ,"\u0152","\\OE",!0),MQ(RQ,QQ,ZQ,"\xd8","\\O",!0),MQ(RQ,QQ,LQ,"\u02ca","\\'"),MQ(RQ,QQ,LQ,"\u02cb","\\`"),MQ(RQ,QQ,LQ,"\u02c6","\\^"),MQ(RQ,QQ,LQ,"\u02dc","\\~"),MQ(RQ,QQ,LQ,"\u02c9","\\="),MQ(RQ,QQ,LQ,"\u02d8","\\u"),MQ(RQ,QQ,LQ,"\u02d9","\\."),MQ(RQ,QQ,LQ,"\xb8","\\c"),MQ(RQ,QQ,LQ,"\u02da","\\r"),MQ(RQ,QQ,LQ,"\u02c7","\\v"),MQ(RQ,QQ,LQ,"\xa8",'\\"'),MQ(RQ,QQ,LQ,"\u02dd","\\H"),MQ(RQ,QQ,LQ,"\u25ef","\\textcircled");var YQ={"--":!0,"---":!0,"``":!0,"''":!0};MQ(RQ,QQ,ZQ,"\u2013","--",!0),MQ(RQ,QQ,ZQ,"\u2013","\\textendash"),MQ(RQ,QQ,ZQ,"\u2014","---",!0),MQ(RQ,QQ,ZQ,"\u2014","\\textemdash"),MQ(RQ,QQ,ZQ,"\u2018","`",!0),MQ(RQ,QQ,ZQ,"\u2018","\\textquoteleft"),MQ(RQ,QQ,ZQ,"\u2019","'",!0),MQ(RQ,QQ,ZQ,"\u2019","\\textquoteright"),MQ(RQ,QQ,ZQ,"\u201c","``",!0),MQ(RQ,QQ,ZQ,"\u201c","\\textquotedblleft"),MQ(RQ,QQ,ZQ,"\u201d","''",!0),MQ(RQ,QQ,ZQ,"\u201d","\\textquotedblright"),MQ(NQ,QQ,ZQ,"\xb0","\\degree",!0),MQ(RQ,QQ,ZQ,"\xb0","\\degree"),MQ(RQ,QQ,ZQ,"\xb0","\\textdegree",!0),MQ(NQ,QQ,ZQ,"\xa3","\\pounds"),MQ(NQ,QQ,ZQ,"\xa3","\\mathsterling",!0),MQ(RQ,QQ,ZQ,"\xa3","\\pounds"),MQ(RQ,QQ,ZQ,"\xa3","\\textsterling",!0),MQ(NQ,IQ,ZQ,"\u2720","\\maltese"),MQ(RQ,IQ,ZQ,"\u2720","\\maltese");for(var VQ='0123456789/@."',GQ=0;GQ<14;GQ++){var WQ=VQ.charAt(GQ);MQ(NQ,QQ,ZQ,WQ,WQ)}for(var KQ='0123456789!@*()-=+";:?/.,',JQ=0;JQ<25;JQ++){var eI=KQ.charAt(JQ);MQ(RQ,QQ,ZQ,eI,eI)}for(var tI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",nI=0;nI<52;nI++){var rI=tI.charAt(nI);MQ(NQ,QQ,zQ,rI,rI),MQ(RQ,QQ,ZQ,rI,rI)}MQ(NQ,IQ,ZQ,"C","\u2102"),MQ(RQ,IQ,ZQ,"C","\u2102"),MQ(NQ,IQ,ZQ,"H","\u210d"),MQ(RQ,IQ,ZQ,"H","\u210d"),MQ(NQ,IQ,ZQ,"N","\u2115"),MQ(RQ,IQ,ZQ,"N","\u2115"),MQ(NQ,IQ,ZQ,"P","\u2119"),MQ(RQ,IQ,ZQ,"P","\u2119"),MQ(NQ,IQ,ZQ,"Q","\u211a"),MQ(RQ,IQ,ZQ,"Q","\u211a"),MQ(NQ,IQ,ZQ,"R","\u211d"),MQ(RQ,IQ,ZQ,"R","\u211d"),MQ(NQ,IQ,ZQ,"Z","\u2124"),MQ(RQ,IQ,ZQ,"Z","\u2124"),MQ(NQ,QQ,zQ,"h","\u210e"),MQ(RQ,QQ,zQ,"h","\u210e");for(var iI="",oI=0;oI<52;oI++){var sI=tI.charAt(oI);MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56320+oI)),MQ(RQ,QQ,ZQ,sI,iI),MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56372+oI)),MQ(RQ,QQ,ZQ,sI,iI),MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56424+oI)),MQ(RQ,QQ,ZQ,sI,iI),MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56580+oI)),MQ(RQ,QQ,ZQ,sI,iI),MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56684+oI)),MQ(RQ,QQ,ZQ,sI,iI),MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56736+oI)),MQ(RQ,QQ,ZQ,sI,iI),MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56788+oI)),MQ(RQ,QQ,ZQ,sI,iI),MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56840+oI)),MQ(RQ,QQ,ZQ,sI,iI),MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56944+oI)),MQ(RQ,QQ,ZQ,sI,iI),oI<26&&(MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56632+oI)),MQ(RQ,QQ,ZQ,sI,iI),MQ(NQ,QQ,zQ,sI,iI=String.fromCharCode(55349,56476+oI)),MQ(RQ,QQ,ZQ,sI,iI))}MQ(NQ,QQ,zQ,"k",iI=String.fromCharCode(55349,56668)),MQ(RQ,QQ,ZQ,"k",iI);for(var aI=0;aI<10;aI++){var lI=aI.toString();MQ(NQ,QQ,zQ,lI,iI=String.fromCharCode(55349,57294+aI)),MQ(RQ,QQ,ZQ,lI,iI),MQ(NQ,QQ,zQ,lI,iI=String.fromCharCode(55349,57314+aI)),MQ(RQ,QQ,ZQ,lI,iI),MQ(NQ,QQ,zQ,lI,iI=String.fromCharCode(55349,57324+aI)),MQ(RQ,QQ,ZQ,lI,iI),MQ(NQ,QQ,zQ,lI,iI=String.fromCharCode(55349,57334+aI)),MQ(RQ,QQ,ZQ,lI,iI)}for(var cI="\xd0\xde\xfe",uI=0;uI<3;uI++){var hI=cI.charAt(uI);MQ(NQ,QQ,zQ,hI,hI),MQ(RQ,QQ,ZQ,hI,hI)}var dI=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],pI=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],fI=function(e,t,n){return DQ[n][e]&&DQ[n][e].replace&&(e=DQ[n][e].replace),{value:e,metrics:iQ(e,t,n)}},mI=function(e,t,n,r,i){var o,s=fI(e,t,n),a=s.metrics;if(e=s.value,a){var l=a.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),o=new wQ(e,a.height,a.depth,l,a.skew,a.width,i)}else"undefined"!==typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),o=new wQ(e,0,0,0,0,0,i);if(r){o.maxFontSize=r.sizeMultiplier,r.style.isTight()&&o.classes.push("mtight");var c=r.getColor();c&&(o.style.color=c)}return o},gI=(e,t)=>{if(mQ(e.classes)!==mQ(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},OI=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var o=e.children[i];o.height>t&&(t=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>r&&(r=o.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},bI=function(e,t,n,r){var i=new yQ(e,t,n,r);return OI(i),i},vI=(e,t,n,r)=>new yQ(e,t,n,r),yI=function(e){var t=new eQ(e);return OI(t),t},xI=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},kI={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},SI={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},wI={fontMap:kI,makeSymbol:mI,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&fI(e,"Main-Bold",t).metrics?mI(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===DQ[t][e].font?mI(e,"Main-Regular",t,n,r):mI(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:bI,makeSvgSpan:vI,makeLineSpan:function(e,t,n){var r=bI([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=fQ(r.height),r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){var i=new xQ(e,t,n,r);return OI(i),i},makeFragment:yI,wrapFragment:function(e,t){return e instanceof eQ?bI([],[e],t):e},makeVList:function(e,t){for(var{children:n,depth:r}=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,o=1;o<t.length;o++){var s=-t[o].shift-i-t[o].elem.depth,a=s-(t[o-1].elem.height+t[o-1].elem.depth);i+=s,n.push({type:"kern",size:a}),n.push(t[o])}return{children:n,depth:r}}var l;if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var h=e.children[u];c-="kern"===h.type?h.size:h.elem.height+h.elem.depth}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{var d=e.children[0];if("elem"!==d.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-d.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-d.elem.depth}}return{children:e.children,depth:l}}(e),i=0,o=0;o<n.length;o++){var s=n[o];if("elem"===s.type){var a=s.elem;i=Math.max(i,a.maxFontSize,a.height)}}i+=2;var l=bI(["pstrut"],[]);l.style.height=fQ(i);for(var c=[],u=r,h=r,d=r,p=0;p<n.length;p++){var f=n[p];if("kern"===f.type)d+=f.size;else{var m=f.elem,g=f.wrapperClasses||[],O=f.wrapperStyle||{},b=bI(g,[l,m],void 0,O);b.style.top=fQ(-i-d-m.depth),f.marginLeft&&(b.style.marginLeft=f.marginLeft),f.marginRight&&(b.style.marginRight=f.marginRight),c.push(b),d+=m.height+m.depth}u=Math.min(u,d),h=Math.max(h,d)}var v,y=bI(["vlist"],c);if(y.style.height=fQ(h),u<0){var x=bI([],[]),k=bI(["vlist"],[x]);k.style.height=fQ(-u);var S=bI(["vlist-s"],[new wQ("\u200b")]);v=[bI(["vlist-r"],[y,S]),bI(["vlist-r"],[k])]}else v=[bI(["vlist-r"],[y])];var w=bI(["vlist-t"],v);return 2===v.length&&w.classes.push("vlist-t2"),w.height=h,w.depth=-u,w},makeOrd:function(e,t,n){var r=e.mode,i=e.text,o=["mord"],s="math"===r||"text"===r&&t.font,a=s?t.font:t.fontFamily,l="",c="";if(55349===i.charCodeAt(0)&&([l,c]=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,r="math"===t?0:1;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return[dI[i][2],dI[i][r]]}if(120782<=n&&n<=120831){var o=Math.floor((n-120782)/10);return[pI[o][2],pI[o][r]]}if(120485===n||120486===n)return[dI[0][2],dI[0][r]];if(120486<n&&n<120782)return["",""];throw new DR("Unsupported character: "+e)}(i,r)),l.length>0)return mI(i,l,r,t,o.concat(c));if(a){var u,h;if("boldsymbol"===a){var d=function(e,t,n,r,i){return"textord"!==i&&fI(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(i,r,0,0,n);u=d.fontName,h=[d.fontClass]}else s?(u=kI[a].fontName,h=[a]):(u=xI(a,t.fontWeight,t.fontShape),h=[a,t.fontWeight,t.fontShape]);if(fI(i,u,r).metrics)return mI(i,u,r,t,o.concat(h));if(YQ.hasOwnProperty(i)&&"Typewriter"===u.slice(0,10)){for(var p=[],f=0;f<i.length;f++)p.push(mI(i[f],u,r,t,o.concat(h)));return yI(p)}}if("mathord"===n)return mI(i,"Math-Italic",r,t,o.concat(["mathnormal"]));if("textord"===n){var m=DQ[r][i]&&DQ[r][i].font;if("ams"===m){var g=xI("amsrm",t.fontWeight,t.fontShape);return mI(i,g,r,t,o.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==m&&m){var O=xI(m,t.fontWeight,t.fontShape);return mI(i,O,r,t,o.concat(O,t.fontWeight,t.fontShape))}var b=xI("textrm",t.fontWeight,t.fontShape);return mI(i,b,r,t,o.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},makeGlue:(e,t)=>{var n=bI(["mspace"],[],t),r=pQ(e,t);return n.style.marginRight=fQ(r),n},staticSvg:function(e,t){var[n,r,i]=SI[e],o=new TQ(n),s=new AQ([o],{width:fQ(r),height:fQ(i),style:"width:"+fQ(r),viewBox:"0 0 "+1e3*r+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),a=vI(["overlay"],[s],t);return a.height=i,a.style.height=fQ(i),a.style.width=fQ(r),a},svgData:SI,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof wQ&&r instanceof wQ&&gI(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e}},AI={number:3,unit:"mu"},TI={number:4,unit:"mu"},EI={number:5,unit:"mu"},CI={mord:{mop:AI,mbin:TI,mrel:EI,minner:AI},mop:{mord:AI,mop:AI,mrel:EI,minner:AI},mbin:{mord:TI,mop:TI,mopen:TI,minner:TI},mrel:{mord:EI,mop:EI,mopen:EI,minner:EI},mopen:{},mclose:{mop:AI,mbin:TI,mrel:EI,minner:AI},mpunct:{mord:AI,mop:AI,mrel:EI,mopen:AI,mclose:AI,mpunct:AI,minner:AI},minner:{mord:AI,mop:AI,mbin:TI,mrel:EI,mopen:AI,mpunct:AI,minner:AI}},_I={mord:{mop:AI},mop:{mord:AI,mop:AI},mbin:{},mrel:{},mopen:{},mclose:{mop:AI},mpunct:{},minner:{mop:AI}},PI={},DI={},MI={};function NI(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:o,mathmlBuilder:s}=e,a={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l<n.length;++l)PI[n[l]]=a;t&&(o&&(DI[t]=o),s&&(MI[t]=s))}function RI(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;NI({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var QI=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},II=function(e){return"ordgroup"===e.type?e.body:[e]},LI=wI.makeSpan,FI=["leftmost","mbin","mopen","mrel","mop","mpunct"],$I=["rightmost","mrel","mclose","mpunct"],BI={display:YR.DISPLAY,text:YR.TEXT,script:YR.SCRIPT,scriptscript:YR.SCRIPTSCRIPT},zI={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},qI=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var i=[],o=0;o<e.length;o++){var s=YI(e[o],t);if(s instanceof eQ){var a=s.children;i.push(...a)}else i.push(s)}if(wI.tryCombineChars(i),!n)return i;var l=t;if(1===e.length){var c=e[0];"sizing"===c.type?l=t.havingSize(c.size):"styling"===c.type&&(l=t.havingStyle(BI[c.style]))}var u=LI([r[0]||"leftmost"],[],t),h=LI([r[1]||"rightmost"],[],t),d="root"===n;return HI(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];"mbin"===n&&IR.contains($I,r)?t.classes[0]="mord":"mbin"===r&&IR.contains(FI,n)&&(e.classes[0]="mord")},{node:u},h,d),HI(i,(e,t)=>{var n=jI(t),r=jI(e),i=n&&r?e.hasClass("mtight")?_I[n][r]:CI[n][r]:null;if(i)return wI.makeGlue(i,l)},{node:u},h,d),i},HI=function e(t,n,r,i,o){i&&t.push(i);for(var s=0;s<t.length;s++){var a=t[s],l=UI(a);if(l)e(l.children,n,r,null,o);else{var c=!a.hasClass("mspace");if(c){var u=n(a,r.node);u&&(r.insertAfter?r.insertAfter(u):(t.unshift(u),s++))}c?r.node=a:o&&a.hasClass("newline")&&(r.node=LI(["leftmost"])),r.insertAfter=(e=>n=>{t.splice(e+1,0,n),s++})(s)}}i&&t.pop()},UI=function(e){return e instanceof eQ||e instanceof xQ||e instanceof yQ&&e.hasClass("enclosing")?e:null},XI=function e(t,n){var r=UI(t);if(r){var i=r.children;if(i.length){if("right"===n)return e(i[i.length-1],"right");if("left"===n)return e(i[0],"left")}}return t},jI=function(e,t){return e?(t&&(e=XI(e,t)),zI[e.classes[0]]||null):null},ZI=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return LI(t.concat(n))},YI=function(e,t,n){if(!e)return LI();if(DI[e.type]){var r=DI[e.type](e,t);if(n&&t.size!==n.size){r=LI(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new DR("Got group of unknown type: '"+e.type+"'")};function VI(e,t){var n=LI(["base"],e,t),r=LI(["strut"]);return r.style.height=fQ(n.height+n.depth),n.depth&&(r.style.verticalAlign=fQ(-n.depth)),n.children.unshift(r),n}function GI(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var r,i=qI(e,t,"root");2===i.length&&i[1].hasClass("tag")&&(r=i.pop());for(var o,s=[],a=[],l=0;l<i.length;l++)if(a.push(i[l]),i[l].hasClass("mbin")||i[l].hasClass("mrel")||i[l].hasClass("allowbreak")){for(var c=!1;l<i.length-1&&i[l+1].hasClass("mspace")&&!i[l+1].hasClass("newline");)l++,a.push(i[l]),i[l].hasClass("nobreak")&&(c=!0);c||(s.push(VI(a,t)),a=[])}else i[l].hasClass("newline")&&(a.pop(),a.length>0&&(s.push(VI(a,t)),a=[]),s.push(i[l]));a.length>0&&s.push(VI(a,t)),n?((o=VI(qI(n,t,!0))).classes=["tag"],s.push(o)):r&&s.push(r);var u=LI(["katex-html"],s);if(u.setAttribute("aria-hidden","true"),o){var h=o.children[0];h.style.height=fQ(u.height+u.depth),u.depth&&(h.style.verticalAlign=fQ(-u.depth))}return u}function WI(e){return new eQ(e)}class KI{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=mQ(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof JI&&this.children[n+1]instanceof JI){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof JI;)r+=this.children[++n].toText();e.appendChild(new JI(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=IR.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+IR.escape(mQ(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class JI{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return IR.escape(this.toText())}toText(){return this.text}}var eL={MathNode:KI,TextNode:JI,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":e>=-.05556&&e<=-.05555?"\u200a\u2063":e>=-.1667&&e<=-.1666?"\u2009\u2063":e>=-.2223&&e<=-.2222?"\u205f\u2063":e>=-.2778&&e<=-.2777?"\u2005\u2063":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",fQ(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+fQ(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:WI},tL=function(e,t,n){return!DQ[t][e]||!DQ[t][e].replace||55349===e.charCodeAt(0)||YQ.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6))||(e=DQ[t][e].replace),new eL.TextNode(e)},nL=function(e){return 1===e.length?e[0]:new eL.MathNode("mrow",e)},rL=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathsfit"===n)return"sans-serif-italic";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var i=e.text;return IR.contains(["\\imath","\\jmath"],i)?null:(DQ[r][i]&&DQ[r][i].replace&&(i=DQ[r][i].replace),iQ(i,wI.fontMap[n].fontName,r)?wI.fontMap[n].variant:null)};function iL(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof JI&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var n=e.children[0];return n instanceof JI&&","===n.text}return!1}var oL=function(e,t,n){if(1===e.length){var r=aL(e[0],t);return n&&r instanceof KI&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var i,o=[],s=0;s<e.length;s++){var a=aL(e[s],t);if(a instanceof KI&&i instanceof KI){if("mtext"===a.type&&"mtext"===i.type&&a.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...a.children);continue}if("mn"===a.type&&"mn"===i.type){i.children.push(...a.children);continue}if(iL(a)&&"mn"===i.type){i.children.push(...a.children);continue}if("mn"===a.type&&iL(i))a.children=[...i.children,...a.children],o.pop();else if(("msup"===a.type||"msub"===a.type)&&a.children.length>=1&&("mn"===i.type||iL(i))){var l=a.children[0];l instanceof KI&&"mn"===l.type&&(l.children=[...i.children,...l.children],o.pop())}else if("mi"===i.type&&1===i.children.length){var c=i.children[0];if(c instanceof JI&&"\u0338"===c.text&&("mo"===a.type||"mi"===a.type||"mn"===a.type)){var u=a.children[0];u instanceof JI&&u.text.length>0&&(u.text=u.text.slice(0,1)+"\u0338"+u.text.slice(1),o.pop())}}}o.push(a),i=a}return o},sL=function(e,t,n){return nL(oL(e,t,n))},aL=function(e,t){if(!e)return new eL.MathNode("mrow");if(MI[e.type])return MI[e.type](e,t);throw new DR("Got group of unknown type: '"+e.type+"'")};function lL(e,t,n,r,i){var o,s=oL(e,n);o=1===s.length&&s[0]instanceof KI&&IR.contains(["mrow","mtable"],s[0].type)?s[0]:new eL.MathNode("mrow",s);var a=new eL.MathNode("annotation",[new eL.TextNode(t)]);a.setAttribute("encoding","application/x-tex");var l=new eL.MathNode("semantics",[o,a]),c=new eL.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return wI.makeSpan([u],[c])}var cL=function(e){return new cQ({style:e.displayMode?YR.DISPLAY:YR.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},uL=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=wI.makeSpan(n,[e])}return e},hL={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},dL={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]},pL=function(e,t,n,r,i){var o,s=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(o=wI.makeSpan(["stretchy",t],[],i),"fbox"===t){var a=i.color&&i.getColor();a&&(o.style.borderColor=a)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new EQ({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new EQ({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new AQ(l,{width:"100%",height:fQ(s)});o=wI.makeSvgSpan([],[c],i)}return o.height=s,o.style.height=fQ(s),o},fL=function(e){var t=new eL.MathNode("mo",[new eL.TextNode(hL[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},mL=function(e,t){var{span:n,minWidth:r,height:i}=function(){var n=4e5,r=e.label.slice(1);if(IR.contains(["widehat","widecheck","widetilde","utilde"],r)){var i,o,s,a="ordgroup"===(p=e.base).type?p.body.length:1;if(a>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,s=.42,o=r+"4"):(i=312,n=2340,s=.34,o="tilde4");else{var l=[1,1,2,2,3,3][a];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][l],i=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],o=r+l):(n=[0,600,1033,2339,2340][l],i=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],o="tilde"+l)}var c=new TQ(o),u=new AQ([c],{width:"100%",height:fQ(s),viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"});return{span:wI.makeSvgSpan([],[u],t),minWidth:0,height:s}}var h,d,p,f=[],m=dL[r],[g,O,b]=m,v=b/1e3,y=g.length;if(1===y)h=["hide-tail"],d=[m[3]];else if(2===y)h=["halfarrow-left","halfarrow-right"],d=["xMinYMin","xMaxYMin"];else{if(3!==y)throw new Error("Correct katexImagesData or update code here to support\n "+y+" children.");h=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(var x=0;x<y;x++){var k=new TQ(g[x]),S=new AQ([k],{width:"400em",height:fQ(v),viewBox:"0 0 "+n+" "+b,preserveAspectRatio:d[x]+" slice"}),w=wI.makeSvgSpan([h[x]],[S],t);if(1===y)return{span:w,minWidth:O,height:v};w.style.height=fQ(v),f.push(w)}return{span:wI.makeSpan(["stretchy"],f,t),minWidth:O,height:v}}();return n.height=i,n.style.height=fQ(i),r>0&&(n.style.minWidth=fQ(r)),n};function gL(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function OL(e){var t=bL(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function bL(e){return e&&("atom"===e.type||PQ.hasOwnProperty(e.type))?e:null}var vL=(e,t)=>{var n,r,i;e&&"supsub"===e.type?(n=(r=gL(e.base,"accent")).base,e.base=n,i=function(e){if(e instanceof yQ)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(YI(e,t)),e.base=r):n=(r=gL(e,"accent")).base;var o=YI(n,t.havingCrampedStyle()),s=0;if(r.isShifty&&IR.isCharacterBox(n)){var a=IR.getBaseElem(n);s=CQ(YI(a,t.havingCrampedStyle())).skew}var l,c="\\c"===r.label,u=c?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight);if(r.isStretchy)l=mL(r,t),l=wI.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+fQ(2*s)+")",marginLeft:fQ(2*s)}:void 0}]},t);else{var h,d;"\\vec"===r.label?(h=wI.staticSvg("vec",t),d=wI.svgData.vec[1]):((h=CQ(h=wI.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,d=h.width,c&&(u+=h.depth)),l=wI.makeSpan(["accent-body"],[h]);var p="\\textcircled"===r.label;p&&(l.classes.push("accent-full"),u=o.height);var f=s;p||(f-=d/2),l.style.left=fQ(f),"\\textcircled"===r.label&&(l.style.top=".2em"),l=wI.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-u},{type:"elem",elem:l}]},t)}var m=wI.makeSpan(["mord","accent"],[l],t);return i?(i.children[0]=m,i.height=Math.max(m.height,i.height),i.classes[0]="mord",i):m},yL=(e,t)=>{var n=e.isStretchy?fL(e.label):new eL.MathNode("mo",[tL(e.label,e.mode)]),r=new eL.MathNode("mover",[aL(e.base,t),n]);return r.setAttribute("accent","true"),r},xL=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));NI({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=QI(t[0]),r=!xL.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:vL,mathmlBuilder:yL}),NI({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:vL,mathmlBuilder:yL}),NI({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=YI(e.base,t),r=mL(e,t),i="\\utilde"===e.label?.12:0,o=wI.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return wI.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var n=fL(e.label),r=new eL.MathNode("munder",[aL(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var kL=e=>{var t=new eL.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};NI({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n,r=t.style,i=t.havingStyle(r.sup()),o=wI.wrapFragment(YI(e.body,i,t),t),s="\\x"===e.label.slice(0,2)?"x":"cd";o.classes.push(s+"-arrow-pad"),e.below&&(i=t.havingStyle(r.sub()),(n=wI.wrapFragment(YI(e.below,i,t),t)).classes.push(s+"-arrow-pad"));var a,l=mL(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=o.depth),n){var h=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;a=wI.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:h}]},t)}else a=wI.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),wI.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder(e,t){var n,r=fL(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var i=kL(aL(e.body,t));if(e.below){var o=kL(aL(e.below,t));n=new eL.MathNode("munderover",[r,o,i])}else n=new eL.MathNode("mover",[r,i])}else if(e.below){var s=kL(aL(e.below,t));n=new eL.MathNode("munder",[r,s])}else n=kL(),n=new eL.MathNode("mover",[r,n]);return n}});var SL=wI.makeSpan;function wL(e,t){var n=qI(e.body,t,!0);return SL([e.mclass],n,t)}function AL(e,t){var n,r=oL(e.body,t);return"minner"===e.mclass?n=new eL.MathNode("mpadded",r):"mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new eL.MathNode("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new eL.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}NI({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:II(i),isCharacterBox:IR.isCharacterBox(i)}},htmlBuilder:wL,mathmlBuilder:AL});var TL=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};NI({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:TL(t[0]),body:II(t[1]),isCharacterBox:IR.isCharacterBox(t[1])}}}),NI({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var n,{parser:r,funcName:i}=e,o=t[1],s=t[0];n="\\stackrel"!==i?TL(o):"mrel";var a={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:II(o)},l={type:"supsub",mode:s.mode,base:a,sup:"\\underset"===i?null:s,sub:"\\underset"===i?s:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:IR.isCharacterBox(l)}},htmlBuilder:wL,mathmlBuilder:AL}),NI({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:TL(t[0]),body:II(t[0])}},htmlBuilder(e,t){var n=qI(e.body,t,!0),r=wI.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=oL(e.body,t),r=new eL.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var EL={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},CL=()=>({type:"styling",body:[],mode:"math",style:"display"}),_L=e=>"textord"===e.type&&"@"===e.text,PL=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function DL(e,t,n){var r=EL[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var i={type:"atom",text:r,mode:"math",family:"rel"},o={type:"ordgroup",mode:"math",body:[n.callFunction("\\\\cdleft",[t[0]],[]),n.callFunction("\\Big",[i],[]),n.callFunction("\\\\cdright",[t[1]],[])]};return n.callFunction("\\\\cdparent",[o],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}NI({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=wI.wrapFragment(YI(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=fQ(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new eL.MathNode("mrow",[aL(e.label,t)]);return(n=new eL.MathNode("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new eL.MathNode("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),NI({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=wI.wrapFragment(YI(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(e,t)=>new eL.MathNode("mrow",[aL(e.fragment,t)])}),NI({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=gL(t[0],"ordgroup").body,i="",o=0;o<r.length;o++){i+=gL(r[o],"textord").text}var s,a=parseInt(i);if(isNaN(a))throw new DR("\\@char has non-numeric argument "+i);if(a<0||a>=1114111)throw new DR("\\@char with invalid code point "+i);return a<=65535?s=String.fromCharCode(a):(a-=65536,s=String.fromCharCode(55296+(a>>10),56320+(1023&a))),{type:"textord",mode:n.mode,text:s}}});var ML=(e,t)=>{var n=qI(e.body,t.withColor(e.color),!1);return wI.makeFragment(n)},NL=(e,t)=>{var n=oL(e.body,t.withColor(e.color)),r=new eL.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};NI({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=gL(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:II(i)}},htmlBuilder:ML,mathmlBuilder:NL}),NI({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=gL(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var o=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:o}},htmlBuilder:ML,mathmlBuilder:NL}),NI({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i="["===r.gullet.future().text?r.parseSizeGroup(!0):null,o=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:o,size:i&&gL(i,"size").value}},htmlBuilder(e,t){var n=wI.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=fQ(pQ(e.size,t)))),n},mathmlBuilder(e,t){var n=new eL.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",fQ(pQ(e.size,t)))),n}});var RL={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},QL=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new DR("Expected a control sequence",e);return t},IL=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);null==i&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};NI({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(RL[r.text])return"\\global"!==n&&"\\\\globallong"!==n||(r.text=RL[r.text]),gL(t.parseFunction(),"internal");throw new DR("Invalid token after macro prefix",r)}}),NI({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new DR("Expected a control sequence",r);for(var o,s=0,a=[[]];"{"!==t.gullet.future().text;)if("#"===(r=t.gullet.popToken()).text){if("{"===t.gullet.future().text){o=t.gullet.future(),a[s].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new DR('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==s+1)throw new DR('Argument number "'+r.text+'" out of order');s++,a.push([])}else{if("EOF"===r.text)throw new DR("Expected a macro definition");a[s].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),"\\edef"!==n&&"\\xdef"!==n||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(i,{tokens:l,numArgs:s,delimiters:a},n===RL[n]),{type:"internal",mode:t.mode}}}),NI({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=QL(t.gullet.popToken());t.gullet.consumeSpaces();var i=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return IL(t,r,i,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),NI({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=QL(t.gullet.popToken()),i=t.gullet.popToken(),o=t.gullet.popToken();return IL(t,r,o,"\\\\globalfuture"===n),t.gullet.pushToken(o),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var LL=function(e,t,n){var r=iQ(DQ.math[e]&&DQ.math[e].replace||e,t,n);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r},FL=function(e,t,n,r){var i=n.havingBaseStyle(t),o=wI.makeSpan(r.concat(i.sizingClasses(n)),[e],n),s=i.sizeMultiplier/n.sizeMultiplier;return o.height*=s,o.depth*=s,o.maxFontSize=i.sizeMultiplier,o},$L=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=fQ(i),e.height-=i,e.depth+=i},BL=function(e,t,n,r,i,o){var s=function(e,t,n,r){return wI.makeSymbol(e,"Size"+t+"-Regular",n,r)}(e,t,i,r),a=FL(wI.makeSpan(["delimsizing","size"+t],[s],r),YR.TEXT,r,o);return n&&$L(a,r,YR.TEXT),a},zL=function(e,t,n){var r;return r="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:wI.makeSpan(["delimsizinginner",r],[wI.makeSpan([],[wI.makeSymbol(e,t,n)])])}},qL=function(e,t,n){var r=tQ["Size4-Regular"][e.charCodeAt(0)]?tQ["Size4-Regular"][e.charCodeAt(0)][4]:tQ["Size1-Regular"][e.charCodeAt(0)][4],i=new TQ("inner",function(e,t){switch(e){case"\u239c":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"\u239f":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23a2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23a5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23aa":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23d0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),o=new AQ([i],{width:fQ(r),height:fQ(t),style:"width:"+fQ(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),s=wI.makeSvgSpan([],[o],n);return s.height=t,s.style.height=fQ(t),s.style.width=fQ(r),{type:"elem",elem:s}},HL={type:"kern",size:-.008},UL=["|","\\lvert","\\rvert","\\vert"],XL=["\\|","\\lVert","\\rVert","\\Vert"],jL=function(e,t,n,r,i,o){var s,a,l,c,u="",h=0;s=l=c=e,a=null;var d="Size1-Regular";"\\uparrow"===e?l=c="\u23d0":"\\Uparrow"===e?l=c="\u2016":"\\downarrow"===e?s=l="\u23d0":"\\Downarrow"===e?s=l="\u2016":"\\updownarrow"===e?(s="\\uparrow",l="\u23d0",c="\\downarrow"):"\\Updownarrow"===e?(s="\\Uparrow",l="\u2016",c="\\Downarrow"):IR.contains(UL,e)?(l="\u2223",u="vert",h=333):IR.contains(XL,e)?(l="\u2225",u="doublevert",h=556):"["===e||"\\lbrack"===e?(s="\u23a1",l="\u23a2",c="\u23a3",d="Size4-Regular",u="lbrack",h=667):"]"===e||"\\rbrack"===e?(s="\u23a4",l="\u23a5",c="\u23a6",d="Size4-Regular",u="rbrack",h=667):"\\lfloor"===e||"\u230a"===e?(l=s="\u23a2",c="\u23a3",d="Size4-Regular",u="lfloor",h=667):"\\lceil"===e||"\u2308"===e?(s="\u23a1",l=c="\u23a2",d="Size4-Regular",u="lceil",h=667):"\\rfloor"===e||"\u230b"===e?(l=s="\u23a5",c="\u23a6",d="Size4-Regular",u="rfloor",h=667):"\\rceil"===e||"\u2309"===e?(s="\u23a4",l=c="\u23a5",d="Size4-Regular",u="rceil",h=667):"("===e||"\\lparen"===e?(s="\u239b",l="\u239c",c="\u239d",d="Size4-Regular",u="lparen",h=875):")"===e||"\\rparen"===e?(s="\u239e",l="\u239f",c="\u23a0",d="Size4-Regular",u="rparen",h=875):"\\{"===e||"\\lbrace"===e?(s="\u23a7",a="\u23a8",c="\u23a9",l="\u23aa",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(s="\u23ab",a="\u23ac",c="\u23ad",l="\u23aa",d="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(s="\u23a7",c="\u23a9",l="\u23aa",d="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(s="\u23ab",c="\u23ad",l="\u23aa",d="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(s="\u23a7",c="\u23ad",l="\u23aa",d="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(s="\u23ab",c="\u23a9",l="\u23aa",d="Size4-Regular");var p=LL(s,d,i),f=p.height+p.depth,m=LL(l,d,i),g=m.height+m.depth,O=LL(c,d,i),b=O.height+O.depth,v=0,y=1;if(null!==a){var x=LL(a,d,i);v=x.height+x.depth,y=2}var k=f+b+v,S=k+Math.max(0,Math.ceil((t-k)/(y*g)))*y*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var A=S/2-w,T=[];if(u.length>0){var E=S-f-b,C=Math.round(1e3*S),_=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,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\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-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.")}}(u,Math.round(1e3*E)),P=new TQ(u,_),D=(h/1e3).toFixed(3)+"em",M=(C/1e3).toFixed(3)+"em",N=new AQ([P],{width:D,height:M,viewBox:"0 0 "+h+" "+C}),R=wI.makeSvgSpan([],[N],r);R.height=C/1e3,R.style.width=D,R.style.height=M,T.push({type:"elem",elem:R})}else{if(T.push(zL(c,d,i)),T.push(HL),null===a){var Q=S-f-b+.016;T.push(qL(l,Q,r))}else{var I=(S-f-b-v)/2+.016;T.push(qL(l,I,r)),T.push(HL),T.push(zL(a,d,i)),T.push(HL),T.push(qL(l,I,r))}T.push(HL),T.push(zL(s,d,i))}var L=r.havingBaseStyle(YR.TEXT),F=wI.makeVList({positionType:"bottom",positionData:A,children:T},L);return FL(wI.makeSpan(["delimsizing","mult"],[F],L),YR.TEXT,r,o)},ZL=.08,YL=function(e,t,n,r,i){var o=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.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\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,KR);break;case"sqrtSize1":r=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,KR);break;case"sqrtSize2":r=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,KR);break;case"sqrtSize3":r=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,KR);break;case"sqrtSize4":r=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,KR);break;case"sqrtTall":r=function(e,t,n){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(n-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,KR,n)}return r}(e,r,n),s=new TQ(e,o),a=new AQ([s],{width:"400em",height:fQ(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return wI.makeSvgSpan(["hide-tail"],[a],i)},VL=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"],GL=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"],WL=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],KL=[0,1.2,1.8,2.4,3],JL=[{type:"small",style:YR.SCRIPTSCRIPT},{type:"small",style:YR.SCRIPT},{type:"small",style:YR.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],eF=[{type:"small",style:YR.SCRIPTSCRIPT},{type:"small",style:YR.SCRIPT},{type:"small",style:YR.TEXT},{type:"stack"}],tF=[{type:"small",style:YR.SCRIPTSCRIPT},{type:"small",style:YR.SCRIPT},{type:"small",style:YR.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],nF=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},rF=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length&&"stack"!==n[i].type;i++){var o=LL(e,nF(n[i]),"math"),s=o.height+o.depth;if("small"===n[i].type&&(s*=r.havingBaseStyle(n[i].style).sizeMultiplier),s>t)return n[i]}return n[n.length-1]},iF=function(e,t,n,r,i,o){var s;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),s=IR.contains(WL,e)?JL:IR.contains(VL,e)?tF:eF;var a=rF(e,t,s,r);return"small"===a.type?function(e,t,n,r,i,o){var s=wI.makeSymbol(e,"Main-Regular",i,r),a=FL(s,t,r,o);return n&&$L(a,r,t),a}(e,a.style,n,r,i,o):"large"===a.type?BL(e,a.size,n,r,i,o):jL(e,t,n,r,i,o)},oF={sqrtImage:function(e,t){var n,r,i=t.havingBaseSizing(),o=rF("\\surd",e*i.sizeMultiplier,tF,i),s=i.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===o.type?(e<1?s=1:e<1.4&&(s=.7),c=(1+a)/s,(n=YL("sqrtMain",l=(1+a+ZL)/s,u=1e3+1e3*a+80,a,t)).style.minWidth="0.853em",r=.833/s):"large"===o.type?(u=1080*KL[o.size],c=(KL[o.size]+a)/s,l=(KL[o.size]+a+ZL)/s,(n=YL("sqrtSize"+o.size,l,u,a,t)).style.minWidth="1.02em",r=1/s):(l=e+a+ZL,c=e+a,u=Math.floor(1e3*e+a)+80,(n=YL("sqrtTall",l,u,a,t)).style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=fQ(l),{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*s}},sizedDelim:function(e,t,n,r,i){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),IR.contains(VL,e)||IR.contains(WL,e))return BL(e,t,!1,n,r,i);if(IR.contains(GL,e))return jL(e,KL[t],!1,n,r,i);throw new DR("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:KL,customSizedDelim:iF,leftRightDelim:function(e,t,n,r,i,o){var s=r.fontMetrics().axisHeight*r.sizeMultiplier,a=5/r.fontMetrics().ptPerEm,l=Math.max(t-s,n+s),c=Math.max(l/500*901,2*l-a);return iF(e,c,!0,r,i,o)}},sF={"\\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}},aF=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function lF(e,t){var n=bL(e);if(n&&IR.contains(aF,n.text))return n;throw new DR(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function cF(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}NI({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=lF(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:sF[e.funcName].size,mclass:sF[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?wI.makeSpan([e.mclass]):oF.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(tL(e.delim,e.mode));var n=new eL.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=fQ(oF.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}}),NI({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!==typeof n)throw new DR("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:lF(t[0],e).text,color:n}}}),NI({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=lF(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var o=gL(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{cF(e);for(var n,r,i=qI(e.body,t,!0,["mopen","mclose"]),o=0,s=0,a=!1,l=0;l<i.length;l++)i[l].isMiddle?a=!0:(o=Math.max(i[l].height,o),s=Math.max(i[l].depth,s));if(o*=t.sizeMultiplier,s*=t.sizeMultiplier,n="."===e.left?ZI(t,["mopen"]):oF.leftRightDelim(e.left,o,s,t,e.mode,["mopen"]),i.unshift(n),a)for(var c=1;c<i.length;c++){var u=i[c].isMiddle;u&&(i[c]=oF.leftRightDelim(u.delim,o,s,u.options,e.mode,[]))}if("."===e.right)r=ZI(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;r=oF.leftRightDelim(e.right,o,s,h,e.mode,["mclose"])}return i.push(r),wI.makeSpan(["minner"],i,t)},mathmlBuilder:(e,t)=>{cF(e);var n=oL(e.body,t);if("."!==e.left){var r=new eL.MathNode("mo",[tL(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var i=new eL.MathNode("mo",[tL(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return nL(n)}}),NI({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=lF(t[0],e);if(!e.parser.leftrightDepth)throw new DR("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if("."===e.delim)n=ZI(t,[]);else{n=oF.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n="\\vert"===e.delim||"|"===e.delim?tL("|","text"):tL(e.delim,e.mode),r=new eL.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var uF=(e,t)=>{var n,r,i=wI.wrapFragment(YI(e.body,t),t),o=e.label.slice(1),s=t.sizeMultiplier,a=0,l=IR.isCharacterBox(e.body);if("sout"===o)(n=wI.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,a=-.5*t.fontMetrics().xHeight;else if("phase"===o){var c=pQ({number:.6,unit:"pt"},t),u=pQ({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var h=i.height+i.depth+c+u;i.style.paddingLeft=fQ(h/2+c);var d=Math.floor(1e3*h*s),p=function(e){return"M400000 "+e+" H0 L"+e/2+" 0 l65 45 L145 "+(e-80)+" H400000z"}(d),f=new AQ([new TQ("phase",p)],{width:"400em",height:fQ(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});(n=wI.makeSvgSpan(["hide-tail"],[f],t)).style.height=fQ(h),a=i.depth+c+u}else{/cancel/.test(o)?l||i.classes.push("cancel-pad"):"angl"===o?i.classes.push("anglpad"):i.classes.push("boxpad");var m=0,g=0,O=0;/box/.test(o)?(O=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=m=t.fontMetrics().fboxsep+("colorbox"===o?0:O)):"angl"===o?(m=4*(O=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),g=Math.max(0,.25-i.depth)):g=m=l?.2:0,n=pL(i,o,m,g,t),/fbox|boxed|fcolorbox/.test(o)?(n.style.borderStyle="solid",n.style.borderWidth=fQ(O)):"angl"===o&&.049!==O&&(n.style.borderTopWidth=fQ(O),n.style.borderRightWidth=fQ(O)),a=i.depth+g,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}if(e.backgroundColor)r=wI.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:a},{type:"elem",elem:i,shift:0}]},t);else{var b=/cancel|phase/.test(o)?["svg-align"]:[];r=wI.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:n,shift:a,wrapperClasses:b}]},t)}return/cancel/.test(o)&&(r.height=i.height,r.depth=i.depth),/cancel/.test(o)&&!l?wI.makeSpan(["mord","cancel-lap"],[r],t):wI.makeSpan(["mord"],[r],t)},hF=(e,t)=>{var n=0,r=new eL.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[aL(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};NI({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,o=gL(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,body:s}},htmlBuilder:uF,mathmlBuilder:hF}),NI({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,o=gL(t[0],"color-token").color,s=gL(t[1],"color-token").color,a=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:o,body:a}},htmlBuilder:uF,mathmlBuilder:hF}),NI({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),NI({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:uF,mathmlBuilder:hF}),NI({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var dF={};function pF(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:o,mathmlBuilder:s}=e,a={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)dF[n[l]]=a;o&&(DI[t]=o),s&&(MI[t]=s)}var fF={};function mF(e,t){fF[e]=t}function gF(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for("\\relax"===n&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var OF=e=>{if(!e.parser.settings.displayMode)throw new DR("{"+e.envName+"} can be used only in display mode.")};function bF(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function vF(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:o,arraystretch:s,colSeparationType:a,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:h,leqno:d}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=e.gullet.expandMacroAsText("\\arraystretch");if(null==p)s=1;else if(!(s=parseFloat(p))||s<0)throw new DR("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var f=[],m=[f],g=[],O=[],b=null!=l?[]:void 0;function v(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function y(){b&&(e.gullet.macros.get("\\df@tag")?(b.push(e.subparse([new PR("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):b.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(v(),O.push(gF(e));;){var x=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),x={type:"ordgroup",mode:e.mode,body:x},n&&(x={type:"styling",mode:e.mode,style:n,body:[x]}),f.push(x);var k=e.fetch().text;if("&"===k){if(h&&f.length===h){if(c||a)throw new DR("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===k){y(),1===f.length&&"styling"===x.type&&0===x.body[0].body.length&&(m.length>1||!u)&&m.pop(),O.length<m.length+1&&O.push([]);break}if("\\\\"!==k)throw new DR("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var S=void 0;" "!==e.gullet.future().text&&(S=e.parseSizeGroup(!0)),g.push(S?S.value:null),y(),O.push(gF(e)),f=[],m.push(f),v()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:m,cols:o,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:O,colSeparationType:a,tags:b,leqno:d}}function yF(e){return"d"===e.slice(0,1)?"display":"text"}var xF=function(e,t){var n,r,i=e.body.length,o=e.hLinesBeforeRow,s=0,a=new Array(i),l=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,h=5*u;e.colSeparationType&&"small"===e.colSeparationType&&(h=t.havingStyle(YR.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var d="CD"===e.colSeparationType?pQ({number:3,unit:"ex"},t):12*u,p=3*u,f=e.arraystretch*d,m=.7*f,g=.3*f,O=0;function b(e){for(var t=0;t<e.length;++t)t>0&&(O+=.25),l.push({pos:O,isDashed:e[t]})}for(b(o[0]),n=0;n<e.body.length;++n){var v=e.body[n],y=m,x=g;s<v.length&&(s=v.length);var k=new Array(v.length);for(r=0;r<v.length;++r){var S=YI(v[r],t);x<S.depth&&(x=S.depth),y<S.height&&(y=S.height),k[r]=S}var w=e.rowGaps[n],A=0;w&&(A=pQ(w,t))>0&&(x<(A+=g)&&(x=A),A=0),e.addJot&&(x+=p),k.height=y,k.depth=x,O+=y,k.pos=O,O+=x+A,a[n]=k,b(o[n+1])}var T,E,C=O/2+t.fontMetrics().axisHeight,_=e.cols||[],P=[],D=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var M=a[n],N=M.pos-C,R=e.tags[n],Q=void 0;(Q=!0===R?wI.makeSpan(["eqn-num"],[],t):!1===R?wI.makeSpan([],[],t):wI.makeSpan([],qI(R,t,!0),t)).depth=M.depth,Q.height=M.height,D.push({type:"elem",elem:Q,shift:N})}for(r=0,E=0;r<s||E<_.length;++r,++E){for(var I=_[E]||{},L=!0;"separator"===I.type;){if(L||((T=wI.makeSpan(["arraycolsep"],[])).style.width=fQ(t.fontMetrics().doubleRuleSep),P.push(T)),"|"!==I.separator&&":"!==I.separator)throw new DR("Invalid separator type: "+I.separator);var F="|"===I.separator?"solid":"dashed",$=wI.makeSpan(["vertical-separator"],[],t);$.style.height=fQ(O),$.style.borderRightWidth=fQ(c),$.style.borderRightStyle=F,$.style.margin="0 "+fQ(-c/2);var B=O-C;B&&($.style.verticalAlign=fQ(-B)),P.push($),I=_[++E]||{},L=!1}if(!(r>=s)){var z=void 0;(r>0||e.hskipBeforeAndAfter)&&0!==(z=IR.deflt(I.pregap,h))&&((T=wI.makeSpan(["arraycolsep"],[])).style.width=fQ(z),P.push(T));var q=[];for(n=0;n<i;++n){var H=a[n],U=H[r];if(U){var X=H.pos-C;U.depth=H.depth,U.height=H.height,q.push({type:"elem",elem:U,shift:X})}}q=wI.makeVList({positionType:"individualShift",children:q},t),q=wI.makeSpan(["col-align-"+(I.align||"c")],[q]),P.push(q),(r<s-1||e.hskipBeforeAndAfter)&&0!==(z=IR.deflt(I.postgap,h))&&((T=wI.makeSpan(["arraycolsep"],[])).style.width=fQ(z),P.push(T))}}if(a=wI.makeSpan(["mtable"],P),l.length>0){for(var j=wI.makeLineSpan("hline",t,c),Z=wI.makeLineSpan("hdashline",t,c),Y=[{type:"elem",elem:a,shift:0}];l.length>0;){var V=l.pop(),G=V.pos-C;V.isDashed?Y.push({type:"elem",elem:Z,shift:G}):Y.push({type:"elem",elem:j,shift:G})}a=wI.makeVList({positionType:"individualShift",children:Y},t)}if(0===D.length)return wI.makeSpan(["mord"],[a],t);var W=wI.makeVList({positionType:"individualShift",children:D},t);return W=wI.makeSpan(["tag"],[W],t),wI.makeFragment([a,W])},kF={c:"center ",l:"left ",r:"right "},SF=function(e,t){for(var n=[],r=new eL.MathNode("mtd",[],["mtr-glue"]),i=new eL.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var s=e.body[o],a=[],l=0;l<s.length;l++)a.push(new eL.MathNode("mtd",[aL(s[l],t)]));e.tags&&e.tags[o]&&(a.unshift(r),a.push(r),e.leqno?a.unshift(i):a.push(i)),n.push(new eL.MathNode("mtr",a))}var c=new eL.MathNode("mtable",n),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",fQ(u));var h="",d="";if(e.cols&&e.cols.length>0){var p=e.cols,f="",m=!1,g=0,O=p.length;"separator"===p[0].type&&(h+="top ",g=1),"separator"===p[p.length-1].type&&(h+="bottom ",O-=1);for(var b=g;b<O;b++)"align"===p[b].type?(d+=kF[p[b].align],m&&(f+="none "),m=!0):"separator"===p[b].type&&m&&(f+="|"===p[b].separator?"solid ":"dashed ",m=!1);c.setAttribute("columnalign",d.trim()),/[sd]/.test(f)&&c.setAttribute("columnlines",f.trim())}if("align"===e.colSeparationType){for(var v=e.cols||[],y="",x=1;x<v.length;x++)y+=x%2?"0em ":"1em ";c.setAttribute("columnspacing",y.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var k="",S=e.hLinesBeforeRow;h+=S[0].length>0?"left ":"",h+=S[S.length-1].length>0?"right ":"";for(var w=1;w<S.length-1;w++)k+=0===S[w].length?"none ":S[w][0]?"dashed ":"solid ";return/[sd]/.test(k)&&c.setAttribute("rowlines",k.trim()),""!==h&&(c=new eL.MathNode("menclose",[c])).setAttribute("notation",h.trim()),e.arraystretch&&e.arraystretch<1&&(c=new eL.MathNode("mstyle",[c])).setAttribute("scriptlevel","1"),c},wF=function(e,t){-1===e.envName.indexOf("ed")&&OF(e);var n,r=[],i=e.envName.indexOf("at")>-1?"alignat":"align",o="split"===e.envName,s=vF(e.parser,{cols:r,addJot:!0,autoTag:o?void 0:bF(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),a=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u<t[0].body.length;u++){c+=gL(t[0].body[u],"textord").text}n=Number(c),a=2*n}var h=!a;s.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var r=gL(e[t],"styling");gL(r.body[0],"ordgroup").body.unshift(l)}if(h)a<e.length&&(a=e.length);else{var i=e.length/2;if(n<i)throw new DR("Too many math in a row: expected "+n+", but got "+i,e[0])}});for(var d=0;d<a;++d){var p="r",f=0;d%2===1?p="l":d>0&&h&&(f=1),r[d]={type:"align",align:p,pregap:f,postgap:0}}return s.colSeparationType=h?"align":"alignat",s};pF({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=(bL(t[0])?[t[0]]:gL(t[0],"ordgroup").body).map(function(e){var t=OL(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new DR("Unknown column alignment: "+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return vF(e.parser,r,yF(e.envName))},htmlBuilder:xF,mathmlBuilder:SF}),pF({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,-1==="lcr".indexOf(n))throw new DR("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var o=vF(e.parser,r,yF(e.envName)),s=Math.max(0,...o.body.map(e=>e.length));return o.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:xF,mathmlBuilder:SF}),pF({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=vF(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:xF,mathmlBuilder:SF}),pF({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=(bL(t[0])?[t[0]]:gL(t[0],"ordgroup").body).map(function(e){var t=OL(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new DR("Unknown column alignment: "+t,e)});if(n.length>1)throw new DR("{subarray} can contain only one column");var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((r=vF(e.parser,r,"script")).body.length>0&&r.body[0].length>1)throw new DR("{subarray} can contain only one column");return r},htmlBuilder:xF,mathmlBuilder:SF}),pF({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=vF(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},yF(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:xF,mathmlBuilder:SF}),pF({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:wF,htmlBuilder:xF,mathmlBuilder:SF}),pF({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){IR.contains(["gather","gather*"],e.envName)&&OF(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:bF(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return vF(e.parser,t,"display")},htmlBuilder:xF,mathmlBuilder:SF}),pF({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:wF,htmlBuilder:xF,mathmlBuilder:SF}),pF({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){OF(e);var t={autoTag:bF(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return vF(e.parser,t,"display")},htmlBuilder:xF,mathmlBuilder:SF}),pF({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(OF(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new DR("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var r=[],i=[r],o=0;o<t.length;o++){for(var s=t[o],a=CL(),l=0;l<s.length;l++)if(_L(s[l])){r.push(a);var c=OL(s[l+=1]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(c)>-1);else{if(!("<>AV".indexOf(c)>-1))throw new DR('Expected one of "<>AV=|." after @',s[l]);for(var h=0;h<2;h++){for(var d=!0,p=l+1;p<s.length;p++){if(PL(s[p],c)){d=!1,l=p;break}if(_L(s[p]))throw new DR("Missing a "+c+" character to complete a CD arrow.",s[p]);u[h].body.push(s[p])}if(d)throw new DR("Missing a "+c+" character to complete a CD arrow.",s[l])}}var f={type:"styling",body:[DL(c,u,e)],mode:"math",style:"display"};r.push(f),a=CL()}else a.body.push(s[l]);o%2===0?r.push(a):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}(e.parser)),htmlBuilder:xF,mathmlBuilder:SF}),mF("\\nonumber","\\gdef\\@eqnsw{0}"),mF("\\notag","\\nonumber"),NI({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new DR(e.funcName+" valid only within array environment")}});var AF=dF;NI({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if("ordgroup"!==i.type)throw new DR("Invalid environment name",i);for(var o="",s=0;s<i.body.length;++s)o+=gL(i.body[s],"textord").text;if("\\begin"===r){if(!AF.hasOwnProperty(o))throw new DR("No such environment: "+o,i);var a=AF[o],{args:l,optArgs:c}=n.parseArguments("\\begin{"+o+"}",a),u={mode:n.mode,envName:o,parser:n},h=a.handler(u,l,c);n.expect("\\end",!1);var d=n.nextToken,p=gL(n.parseFunction(),"environment");if(p.name!==o)throw new DR("Mismatch: \\begin{"+o+"} matched by \\end{"+p.name+"}",d);return h}return{type:"environment",mode:n.mode,name:o,nameGroup:i}}});var TF=(e,t)=>{var n=e.font,r=t.withFont(n);return YI(e.body,r)},EF=(e,t)=>{var n=e.font,r=t.withFont(n);return aL(e.body,r)},CF={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};NI({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=QI(t[0]),o=r;return o in CF&&(o=CF[o]),{type:"font",mode:n.mode,font:o.slice(1),body:i}},htmlBuilder:TF,mathmlBuilder:EF}),NI({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=IR.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:TL(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}}),NI({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:o}=n,s=n.parseExpression(!0,i);return{type:"font",mode:o,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:TF,mathmlBuilder:EF});var _F=(e,t)=>{var n=t;return"display"===e?n=n.id>=YR.SCRIPT.id?n.text():YR.DISPLAY:"text"===e&&n.size===YR.DISPLAY.size?n=YR.TEXT:"script"===e?n=YR.SCRIPT:"scriptscript"===e&&(n=YR.SCRIPTSCRIPT),n},PF=(e,t)=>{var n,r=_F(e.size,t.style),i=r.fracNum(),o=r.fracDen();n=t.havingStyle(i);var s=YI(e.numer,n,t);if(e.continued){var a=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height<a?a:s.height,s.depth=s.depth<l?l:s.depth}n=t.havingStyle(o);var c,u,h,d,p,f,m,g,O,b,v=YI(e.denom,n,t);if(e.hasBarLine?(e.barSize?(u=pQ(e.barSize,t),c=wI.makeLineSpan("frac-line",t,u)):c=wI.makeLineSpan("frac-line",t),u=c.height,h=c.height):(c=null,u=0,h=t.fontMetrics().defaultRuleThickness),r.size===YR.DISPLAY.size||"display"===e.size?(d=t.fontMetrics().num1,p=u>0?3*h:7*h,f=t.fontMetrics().denom1):(u>0?(d=t.fontMetrics().num2,p=h):(d=t.fontMetrics().num3,p=3*h),f=t.fontMetrics().denom2),c){var y=t.fontMetrics().axisHeight;d-s.depth-(y+.5*u)<p&&(d+=p-(d-s.depth-(y+.5*u))),y-.5*u-(v.height-f)<p&&(f+=p-(y-.5*u-(v.height-f)));var x=-(y-.5*u);m=wI.makeVList({positionType:"individualShift",children:[{type:"elem",elem:v,shift:f},{type:"elem",elem:c,shift:x},{type:"elem",elem:s,shift:-d}]},t)}else{var k=d-s.depth-(v.height-f);k<p&&(d+=.5*(p-k),f+=.5*(p-k)),m=wI.makeVList({positionType:"individualShift",children:[{type:"elem",elem:v,shift:f},{type:"elem",elem:s,shift:-d}]},t)}return n=t.havingStyle(r),m.height*=n.sizeMultiplier/t.sizeMultiplier,m.depth*=n.sizeMultiplier/t.sizeMultiplier,g=r.size===YR.DISPLAY.size?t.fontMetrics().delim1:r.size===YR.SCRIPTSCRIPT.size?t.havingStyle(YR.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,O=null==e.leftDelim?ZI(t,["mopen"]):oF.customSizedDelim(e.leftDelim,g,!0,t.havingStyle(r),e.mode,["mopen"]),b=e.continued?wI.makeSpan([]):null==e.rightDelim?ZI(t,["mclose"]):oF.customSizedDelim(e.rightDelim,g,!0,t.havingStyle(r),e.mode,["mclose"]),wI.makeSpan(["mord"].concat(n.sizingClasses(t)),[O,wI.makeSpan(["mfrac"],[m]),b],t)},DF=(e,t)=>{var n=new eL.MathNode("mfrac",[aL(e.numer,t),aL(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=pQ(e.barSize,t);n.setAttribute("linethickness",fQ(r))}}else n.setAttribute("linethickness","0px");var i=_F(e.size,t.style);if(i.size!==t.style.size){n=new eL.MathNode("mstyle",[n]);var o=i.size===YR.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",o),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var s=[];if(null!=e.leftDelim){var a=new eL.MathNode("mo",[new eL.TextNode(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),s.push(a)}if(s.push(n),null!=e.rightDelim){var l=new eL.MathNode("mo",[new eL.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return nL(s)}return n};NI({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var n,{parser:r,funcName:i}=e,o=t[0],s=t[1],a=null,l=null,c="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,a="(",l=")";break;case"\\\\bracefrac":n=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:r.mode,continued:!1,numer:o,denom:s,hasBarLine:n,leftDelim:a,rightDelim:l,size:c,barSize:null}},htmlBuilder:PF,mathmlBuilder:DF}),NI({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],o=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),NI({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:n,funcName:r,token:i}=e;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:i}}});var MF=["display","text","script","scriptscript"],NF=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};NI({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var n,{parser:r}=e,i=t[4],o=t[5],s=QI(t[0]),a="atom"===s.type&&"open"===s.family?NF(s.text):null,l=QI(t[1]),c="atom"===l.type&&"close"===l.family?NF(l.text):null,u=gL(t[2],"size"),h=null;n=!!u.isBlank||(h=u.value).number>0;var d="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var f=gL(p.body[0],"textord");d=MF[Number(f.text)]}}else p=gL(p,"textord"),d=MF[Number(p.text)];return{type:"genfrac",mode:r.mode,numer:i,denom:o,continued:!1,hasBarLine:n,barSize:h,leftDelim:a,rightDelim:c,size:d}},htmlBuilder:PF,mathmlBuilder:DF}),NI({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:gL(t[0],"size").value,token:i}}}),NI({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(gL(t[1],"infix").size),s=t[2],a=o.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:a,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:PF,mathmlBuilder:DF});var RF=(e,t)=>{var n,r,i=t.style;"supsub"===e.type?(n=e.sup?YI(e.sup,t.havingStyle(i.sup()),t):YI(e.sub,t.havingStyle(i.sub()),t),r=gL(e.base,"horizBrace")):r=gL(e,"horizBrace");var o,s=YI(r.base,t.havingBaseStyle(YR.DISPLAY)),a=mL(r,t);if(r.isOver?(o=wI.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(o=wI.makeVList({positionType:"bottom",positionData:s.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var l=wI.makeSpan(["mord",r.isOver?"mover":"munder"],[o],t);o=r.isOver?wI.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):wI.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return wI.makeSpan(["mord",r.isOver?"mover":"munder"],[o],t)};NI({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:RF,mathmlBuilder:(e,t)=>{var n=fL(e.label);return new eL.MathNode(e.isOver?"mover":"munder",[aL(e.base,t),n])}}),NI({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=gL(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:II(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=qI(e.body,t,!1);return wI.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=sL(e.body,t);return n instanceof KI||(n=new KI("mrow",[n])),n.setAttribute("href",e.href),n}}),NI({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=gL(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],o=0;o<r.length;o++){var s=r[o];"~"===s&&(s="\\textasciitilde"),i.push({type:"textord",mode:"text",text:s})}var a={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:II(a)}}}),NI({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:II(t[0])}},htmlBuilder(e,t){var n=qI(e.body,t,!1);return wI.makeFragment(n)},mathmlBuilder:(e,t)=>new eL.MathNode("mrow",oL(e.body,t))}),NI({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var n,{parser:r,funcName:i,token:o}=e,s=gL(t[0],"raw").string,a=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(i){case"\\htmlClass":l.class=s,n={command:"\\htmlClass",class:s};break;case"\\htmlId":l.id=s,n={command:"\\htmlId",id:s};break;case"\\htmlStyle":l.style=s,n={command:"\\htmlStyle",style:s};break;case"\\htmlData":for(var c=s.split(","),u=0;u<c.length;u++){var h=c[u].split("=");if(2!==h.length)throw new DR("Error parsing key-value for \\htmlData");l["data-"+h[0].trim()]=h[1].trim()}n={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(n)?{type:"html",mode:r.mode,attributes:l,body:II(a)}:r.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=qI(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=wI.makeSpan(r,n,t);for(var o in e.attributes)"class"!==o&&e.attributes.hasOwnProperty(o)&&i.setAttribute(o,e.attributes[o]);return i},mathmlBuilder:(e,t)=>sL(e.body,t)}),NI({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:II(t[0]),mathml:II(t[1])}},htmlBuilder:(e,t)=>{var n=qI(e.html,t,!1);return wI.makeFragment(n)},mathmlBuilder:(e,t)=>sL(e.mathml,t)});var QF=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new DR("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!dQ(n))throw new DR("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};NI({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},o={number:.9,unit:"em"},s={number:0,unit:"em"},a="";if(n[0])for(var l=gL(n[0],"raw").string.split(","),c=0;c<l.length;c++){var u=l[c].split("=");if(2===u.length){var h=u[1].trim();switch(u[0].trim()){case"alt":a=h;break;case"width":i=QF(h);break;case"height":o=QF(h);break;case"totalheight":s=QF(h);break;default:throw new DR("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var d=gL(t[0],"url").url;return""===a&&(a=(a=(a=d).replace(/^.*[\\/]/,"")).substring(0,a.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:d})?{type:"includegraphics",mode:r.mode,alt:a,width:i,height:o,totalheight:s,src:d}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=pQ(e.height,t),r=0;e.totalheight.number>0&&(r=pQ(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=pQ(e.width,t));var o={height:fQ(n+r)};i>0&&(o.width=fQ(i)),r>0&&(o.verticalAlign=fQ(-r));var s=new kQ(e.src,e.alt,o);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new eL.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=pQ(e.height,t),i=0;if(e.totalheight.number>0&&(i=pQ(e.totalheight,t)-r,n.setAttribute("valign",fQ(-i))),n.setAttribute("height",fQ(r+i)),e.width.number>0){var o=pQ(e.width,t);n.setAttribute("width",fQ(o))}return n.setAttribute("src",e.src),n}}),NI({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=gL(t[0],"size");if(n.settings.strict){var o="m"===r[1],s="mu"===i.value.unit;o?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:(e,t)=>wI.makeGlue(e.dimension,t),mathmlBuilder(e,t){var n=pQ(e.dimension,t);return new eL.SpaceNode(n)}}),NI({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;"clap"===e.alignment?(n=wI.makeSpan([],[YI(e.body,t)]),n=wI.makeSpan(["inner"],[n],t)):n=wI.makeSpan(["inner"],[YI(e.body,t)]);var r=wI.makeSpan(["fix"],[]),i=wI.makeSpan([e.alignment],[n,r],t),o=wI.makeSpan(["strut"]);return o.style.height=fQ(i.height+i.depth),i.depth&&(o.style.verticalAlign=fQ(-i.depth)),i.children.unshift(o),i=wI.makeSpan(["thinbox"],[i],t),wI.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new eL.MathNode("mpadded",[aL(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),NI({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var o="\\("===n?"\\)":"$",s=r.parseExpression(!1,o);return r.expect(o),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}}),NI({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new DR("Mismatched "+e.funcName)}});var IF=(e,t)=>{switch(t.style.size){case YR.DISPLAY.size:return e.display;case YR.TEXT.size:return e.text;case YR.SCRIPT.size:return e.script;case YR.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};NI({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:II(t[0]),text:II(t[1]),script:II(t[2]),scriptscript:II(t[3])}},htmlBuilder:(e,t)=>{var n=IF(e,t),r=qI(n,t,!1);return wI.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=IF(e,t);return sL(n,t)}});var LF=(e,t,n,r,i,o,s)=>{e=wI.makeSpan([],[e]);var a,l,c,u=n&&IR.isCharacterBox(n);if(t){var h=YI(t,r.havingStyle(i.sup()),r);l={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-h.depth)}}if(n){var d=YI(n,r.havingStyle(i.sub()),r);a={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(l&&a){var p=r.fontMetrics().bigOpSpacing5+a.elem.height+a.elem.depth+a.kern+e.depth+s;c=wI.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:a.elem,marginLeft:fQ(-o)},{type:"kern",size:a.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:fQ(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(a){var f=e.height-s;c=wI.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:a.elem,marginLeft:fQ(-o)},{type:"kern",size:a.kern},{type:"elem",elem:e}]},r)}else{if(!l)return e;var m=e.depth+s;c=wI.makeVList({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:fQ(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var g=[c];if(a&&0!==o&&!u){var O=wI.makeSpan(["mspace"],[],r);O.style.marginRight=fQ(o),g.unshift(O)}return wI.makeSpan(["mop","op-limits"],g,r)},FF=["\\smallint"],$F=(e,t)=>{var n,r,i,o=!1;"supsub"===e.type?(n=e.sup,r=e.sub,i=gL(e.base,"op"),o=!0):i=gL(e,"op");var s,a=t.style,l=!1;if(a.size===YR.DISPLAY.size&&i.symbol&&!IR.contains(FF,i.name)&&(l=!0),i.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(u=i.name.slice(1),i.name="oiint"===u?"\\iint":"\\iiint"),s=wI.makeSymbol(i.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var h=s.italic,d=wI.staticSvg(u+"Size"+(l?"2":"1"),t);s=wI.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:d,shift:l?.08:0}]},t),i.name="\\"+u,s.classes.unshift("mop"),s.italic=h}}else if(i.body){var p=qI(i.body,t,!0);1===p.length&&p[0]instanceof wQ?(s=p[0]).classes[0]="mop":s=wI.makeSpan(["mop"],p,t)}else{for(var f=[],m=1;m<i.name.length;m++)f.push(wI.mathsym(i.name[m],i.mode,t));s=wI.makeSpan(["mop"],f,t)}var g=0,O=0;return(s instanceof wQ||"\\oiint"===i.name||"\\oiiint"===i.name)&&!i.suppressBaseShift&&(g=(s.height-s.depth)/2-t.fontMetrics().axisHeight,O=s.italic),o?LF(s,n,r,t,a,O,g):(g&&(s.style.position="relative",s.style.top=fQ(g)),s)},BF=(e,t)=>{var n;if(e.symbol)n=new KI("mo",[tL(e.name,e.mode)]),IR.contains(FF,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new KI("mo",oL(e.body,t));else{n=new KI("mi",[new JI(e.name.slice(1))]);var r=new KI("mo",[tL("\u2061","text")]);n=e.parentIsSupSub?new KI("mrow",[n,r]):WI([n,r])}return n},zF={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};NI({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return 1===i.length&&(i=zF[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:$F,mathmlBuilder:BF}),NI({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:II(r)}},htmlBuilder:$F,mathmlBuilder:BF});var qF={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};NI({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:$F,mathmlBuilder:BF}),NI({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:$F,mathmlBuilder:BF}),NI({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return 1===r.length&&(r=qF[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:$F,mathmlBuilder:BF});var HF=(e,t)=>{var n,r,i,o,s=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,i=gL(e.base,"operatorname"),s=!0):i=gL(e,"operatorname"),i.body.length>0){for(var a=i.body.map(e=>{var t=e.text;return"string"===typeof t?{type:"textord",mode:e.mode,text:t}:e}),l=qI(a,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof wQ&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=wI.makeSpan(["mop"],l,t)}else o=wI.makeSpan(["mop"],[],t);return s?LF(o,n,r,t,t.style,0,0):o};function UF(e,t,n){for(var r=qI(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,o=0;o<r.length;o++){var s=r[o].classes.indexOf("sizing");s<0?Array.prototype.push.apply(r[o].classes,t.sizingClasses(n)):r[o].classes[s+1]==="reset-size"+t.size&&(r[o].classes[s+1]="reset-size"+n.size),r[o].height*=i,r[o].depth*=i}return wI.makeFragment(r)}NI({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:II(i),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:HF,mathmlBuilder:(e,t)=>{for(var n=oL(e.body,t.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var o=n[i];if(o instanceof eL.SpaceNode);else if(o instanceof eL.MathNode)switch(o.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var s=o.children[0];1===o.children.length&&s instanceof eL.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var a=n.map(e=>e.toText()).join("");n=[new eL.TextNode(a)]}var l=new eL.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new eL.MathNode("mo",[tL("\u2061","text")]);return e.parentIsSupSub?new eL.MathNode("mrow",[l,c]):eL.newDocumentFragment([l,c])}}),mF("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),RI({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?wI.makeFragment(qI(e.body,t,!1)):wI.makeSpan(["mord"],qI(e.body,t,!0),t),mathmlBuilder:(e,t)=>sL(e.body,t,!0)}),NI({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=YI(e.body,t.havingCrampedStyle()),r=wI.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,o=wI.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return wI.makeSpan(["mord","overline"],[o],t)},mathmlBuilder(e,t){var n=new eL.MathNode("mo",[new eL.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new eL.MathNode("mover",[aL(e.body,t),n]);return r.setAttribute("accent","true"),r}}),NI({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:II(r)}},htmlBuilder:(e,t)=>{var n=qI(e.body,t.withPhantom(),!1);return wI.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=oL(e.body,t);return new eL.MathNode("mphantom",n)}}),NI({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=wI.makeSpan([],[YI(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=wI.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),wI.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=oL(II(e.body),t),r=new eL.MathNode("mphantom",n),i=new eL.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}}),NI({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=wI.makeSpan(["inner"],[YI(e.body,t.withPhantom())]),r=wI.makeSpan(["fix"],[]);return wI.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=oL(II(e.body),t),r=new eL.MathNode("mphantom",n),i=new eL.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}}),NI({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=gL(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=YI(e.body,t),r=pQ(e.dy,t);return wI.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new eL.MathNode("mpadded",[aL(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),NI({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),NI({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],o=gL(t[0],"size"),s=gL(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&gL(i,"size").value,width:o.value,height:s.value}},htmlBuilder(e,t){var n=wI.makeSpan(["mord","rule"],[],t),r=pQ(e.width,t),i=pQ(e.height,t),o=e.shift?pQ(e.shift,t):0;return n.style.borderRightWidth=fQ(r),n.style.borderTopWidth=fQ(i),n.style.bottom=fQ(o),n.width=r,n.height=i+o,n.depth=-o,n.maxFontSize=1.125*i*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=pQ(e.width,t),r=pQ(e.height,t),i=e.shift?pQ(e.shift,t):0,o=t.color&&t.getColor()||"black",s=new eL.MathNode("mspace");s.setAttribute("mathbackground",o),s.setAttribute("width",fQ(n)),s.setAttribute("height",fQ(r));var a=new eL.MathNode("mpadded",[s]);return i>=0?a.setAttribute("height",fQ(i)):(a.setAttribute("height",fQ(i)),a.setAttribute("depth",fQ(-i))),a.setAttribute("voffset",fQ(i)),a}});var XF=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];NI({type:"sizing",names:XF,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,o=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:XF.indexOf(r)+1,body:o}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return UF(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=oL(e.body,n),i=new eL.MathNode("mstyle",r);return i.setAttribute("mathsize",fQ(n.sizeMultiplier)),i}}),NI({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,o=!1,s=n[0]&&gL(n[0],"ordgroup");if(s)for(var a="",l=0;l<s.body.length;++l){if("t"===(a=s.body[l].text))i=!0;else{if("b"!==a){i=!1,o=!1;break}o=!0}}else i=!0,o=!0;var c=t[0];return{type:"smash",mode:r.mode,body:c,smashHeight:i,smashDepth:o}},htmlBuilder:(e,t)=>{var n=wI.makeSpan([],[YI(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var o=wI.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return wI.makeSpan(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var n=new eL.MathNode("mpadded",[aL(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),NI({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],o=t[0];return{type:"sqrt",mode:r.mode,body:o,index:i}},htmlBuilder(e,t){var n=YI(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=wI.wrapFragment(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<YR.TEXT.id&&(i=t.fontMetrics().xHeight);var o=r+i/4,s=n.height+n.depth+o+r,{span:a,ruleWidth:l,advanceWidth:c}=oF.sqrtImage(s,t),u=a.height-l;u>n.height+n.depth+o&&(o=(o+u-n.height-n.depth)/2);var h=a.height-n.height-o-l;n.style.paddingLeft=fQ(c);var d=wI.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:a},{type:"kern",size:l}]},t);if(e.index){var p=t.havingStyle(YR.SCRIPTSCRIPT),f=YI(e.index,p,t),m=.6*(d.height-d.depth),g=wI.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:f}]},t),O=wI.makeSpan(["root"],[g]);return wI.makeSpan(["mord","sqrt"],[O,d],t)}return wI.makeSpan(["mord","sqrt"],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new eL.MathNode("mroot",[aL(n,t),aL(r,t)]):new eL.MathNode("msqrt",[aL(n,t)])}});var jF={display:YR.DISPLAY,text:YR.TEXT,script:YR.SCRIPT,scriptscript:YR.SCRIPTSCRIPT};NI({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,o=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:o}},htmlBuilder(e,t){var n=jF[e.style],r=t.havingStyle(n).withFont("");return UF(e.body,r,t)},mathmlBuilder(e,t){var n=jF[e.style],r=t.havingStyle(n),i=oL(e.body,r),o=new eL.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return o.setAttribute("scriptlevel",s[0]),o.setAttribute("displaystyle",s[1]),o}});RI({type:"supsub",htmlBuilder(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===YR.DISPLAY.size||n.alwaysHandleSupSub)?$F:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===YR.DISPLAY.size||n.limits)?HF:null:"accent"===n.type?IR.isCharacterBox(n.base)?vL:null:"horizBrace"===n.type&&!e.sub===n.isOver?RF:null:null}(e,t);if(n)return n(e,t);var r,i,o,{base:s,sup:a,sub:l}=e,c=YI(s,t),u=t.fontMetrics(),h=0,d=0,p=s&&IR.isCharacterBox(s);if(a){var f=t.havingStyle(t.style.sup());r=YI(a,f,t),p||(h=c.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());i=YI(l,m,t),p||(d=c.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}o=t.style===YR.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var g,O=t.sizeMultiplier,b=fQ(.5/u.ptPerEm/O),v=null;if(i){var y=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof wQ||y)&&(v=fQ(-c.italic))}if(r&&i){h=Math.max(h,o,r.depth+.25*u.xHeight),d=Math.max(d,u.sub2);var x=4*u.defaultRuleThickness;if(h-r.depth-(i.height-d)<x){d=x-(h-r.depth)+i.height;var k=.8*u.xHeight-(h-r.depth);k>0&&(h+=k,d-=k)}var S=[{type:"elem",elem:i,shift:d,marginRight:b,marginLeft:v},{type:"elem",elem:r,shift:-h,marginRight:b}];g=wI.makeVList({positionType:"individualShift",children:S},t)}else if(i){d=Math.max(d,u.sub1,i.height-.8*u.xHeight);var w=[{type:"elem",elem:i,marginLeft:v,marginRight:b}];g=wI.makeVList({positionType:"shift",positionData:d,children:w},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");h=Math.max(h,o,r.depth+.25*u.xHeight),g=wI.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:r,marginRight:b}]},t)}var A=jI(c,"right")||"mord";return wI.makeSpan([A],[c,wI.makeSpan(["msupsub"],[g])],t)},mathmlBuilder(e,t){var n,r=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,o=[aL(e.base,t)];if(e.sub&&o.push(aL(e.sub,t)),e.sup&&o.push(aL(e.sup,t)),r)i=n?"mover":"munder";else if(e.sub)if(e.sup){var s=e.base;i=s&&"op"===s.type&&s.limits&&t.style===YR.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===YR.DISPLAY||s.limits)?"munderover":"msubsup"}else{var a=e.base;i=a&&"op"===a.type&&a.limits&&(t.style===YR.DISPLAY||a.alwaysHandleSupSub)||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(a.limits||t.style===YR.DISPLAY)?"munder":"msub"}else{var l=e.base;i=l&&"op"===l.type&&l.limits&&(t.style===YR.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===YR.DISPLAY)?"mover":"msup"}return new eL.MathNode(i,o)}}),RI({type:"atom",htmlBuilder:(e,t)=>wI.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var n=new eL.MathNode("mo",[tL(e.text,e.mode)]);if("bin"===e.family){var r=rL(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var ZF={mi:"italic",mn:"normal",mtext:"normal"};RI({type:"mathord",htmlBuilder:(e,t)=>wI.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var n=new eL.MathNode("mi",[tL(e.text,e.mode,t)]),r=rL(e,t)||"italic";return r!==ZF[n.type]&&n.setAttribute("mathvariant",r),n}}),RI({type:"textord",htmlBuilder:(e,t)=>wI.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var n,r=tL(e.text,e.mode,t),i=rL(e,t)||"normal";return n="text"===e.mode?new eL.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new eL.MathNode("mn",[r]):"\\prime"===e.text?new eL.MathNode("mo",[r]):new eL.MathNode("mi",[r]),i!==ZF[n.type]&&n.setAttribute("mathvariant",i),n}});var YF={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},VF={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};RI({type:"spacing",htmlBuilder(e,t){if(VF.hasOwnProperty(e.text)){var n=VF[e.text].className||"";if("text"===e.mode){var r=wI.makeOrd(e,t,"textord");return r.classes.push(n),r}return wI.makeSpan(["mspace",n],[wI.mathsym(e.text,e.mode,t)],t)}if(YF.hasOwnProperty(e.text))return wI.makeSpan(["mspace",YF[e.text]],[],t);throw new DR('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!VF.hasOwnProperty(e.text)){if(YF.hasOwnProperty(e.text))return new eL.MathNode("mspace");throw new DR('Unknown type of space "'+e.text+'"')}return new eL.MathNode("mtext",[new eL.TextNode("\xa0")])}});var GF=()=>{var e=new eL.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};RI({type:"tag",mathmlBuilder(e,t){var n=new eL.MathNode("mtable",[new eL.MathNode("mtr",[GF(),new eL.MathNode("mtd",[sL(e.body,t)]),GF(),new eL.MathNode("mtd",[sL(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var WF={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},KF={"\\textbf":"textbf","\\textmd":"textmd"},JF={"\\textit":"textit","\\textup":"textup"},e$=(e,t)=>{var n=e.font;return n?WF[n]?t.withTextFontFamily(WF[n]):KF[n]?t.withTextFontWeight(KF[n]):"\\emph"===n?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(JF[n]):t};NI({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:II(i),font:r}},htmlBuilder(e,t){var n=e$(e,t),r=qI(e.body,n,!0);return wI.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=e$(e,t);return sL(e.body,n)}}),NI({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=YI(e.body,t),r=wI.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,o=wI.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return wI.makeSpan(["mord","underline"],[o],t)},mathmlBuilder(e,t){var n=new eL.MathNode("mo",[new eL.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new eL.MathNode("munder",[aL(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),NI({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=YI(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return wI.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:(e,t)=>new eL.MathNode("mpadded",[aL(e.body,t)],["vcenter"])}),NI({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new DR("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=t$(e),r=[],i=t.havingStyle(t.style.text()),o=0;o<n.length;o++){var s=n[o];"~"===s&&(s="\\textasciitilde"),r.push(wI.makeSymbol(s,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return wI.makeSpan(["mord","text"].concat(i.sizingClasses(t)),wI.tryCombineChars(r),i)},mathmlBuilder(e,t){var n=new eL.TextNode(t$(e)),r=new eL.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var t$=e=>e.body.replace(/ /g,e.star?"\u2423":"\xa0"),n$=PI,r$="[ \r\n\t]",i$="(\\\\[a-zA-Z@]+)"+r$+"*",o$="[\u0300-\u036f]",s$=new RegExp(o$+"+$"),a$="("+r$+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff]"+o$+"*|[\ud800-\udbff][\udc00-\udfff]"+o$+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+i$+"|\\\\[^\ud800-\udfff])";class l${constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(a$,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new PR("EOF",new _R(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new DR("Unexpected character: '"+e[t]+"'",new PR(e[t],new _R(this,t,t+1)));var r=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[r]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new PR(r,new _R(this,t,this.tokenRegex.lastIndex))}}class c${constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new DR("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var u$=fF;mF("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),mF("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),mF("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),mF("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),mF("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),mF("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),mF("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var h$={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};mF("\\char",function(e){var t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new DR("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=h$[n.text])||r>=t)throw new DR("Invalid base-"+t+" digit "+n.text);for(var i;null!=(i=h$[e.future().text])&&i<t;)r*=t,r+=i,e.popToken()}return"\\@char{"+r+"}"});var d$=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(1!==i.length)throw new DR("\\newcommand's first argument must be a macro name");var o=i[0].text,s=e.isDefined(o);if(s&&!t)throw new DR("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!s&&!n)throw new DR("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var a=0;if(1===(i=e.consumeArg().tokens).length&&"["===i[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new DR("Invalid number of arguments: "+l);a=parseInt(l),i=e.consumeArg().tokens}return s&&r||e.macros.set(o,{tokens:i,numArgs:a}),""};mF("\\newcommand",e=>d$(e,!1,!0,!1)),mF("\\renewcommand",e=>d$(e,!0,!1,!1)),mF("\\providecommand",e=>d$(e,!0,!0,!0)),mF("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join("")),""}),mF("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join("")),""}),mF("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),n$[n],DQ.math[n],DQ.text[n]),""}),mF("\\bgroup","{"),mF("\\egroup","}"),mF("~","\\nobreakspace"),mF("\\lq","`"),mF("\\rq","'"),mF("\\aa","\\r a"),mF("\\AA","\\r A"),mF("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),mF("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),mF("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),mF("\u212c","\\mathscr{B}"),mF("\u2130","\\mathscr{E}"),mF("\u2131","\\mathscr{F}"),mF("\u210b","\\mathscr{H}"),mF("\u2110","\\mathscr{I}"),mF("\u2112","\\mathscr{L}"),mF("\u2133","\\mathscr{M}"),mF("\u211b","\\mathscr{R}"),mF("\u212d","\\mathfrak{C}"),mF("\u210c","\\mathfrak{H}"),mF("\u2128","\\mathfrak{Z}"),mF("\\Bbbk","\\Bbb{k}"),mF("\xb7","\\cdotp"),mF("\\llap","\\mathllap{\\textrm{#1}}"),mF("\\rlap","\\mathrlap{\\textrm{#1}}"),mF("\\clap","\\mathclap{\\textrm{#1}}"),mF("\\mathstrut","\\vphantom{(}"),mF("\\underbar","\\underline{\\text{#1}}"),mF("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),mF("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),mF("\\ne","\\neq"),mF("\u2260","\\neq"),mF("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),mF("\u2209","\\notin"),mF("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),mF("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),mF("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),mF("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),mF("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),mF("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),mF("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),mF("\u27c2","\\perp"),mF("\u203c","\\mathclose{!\\mkern-0.8mu!}"),mF("\u220c","\\notni"),mF("\u231c","\\ulcorner"),mF("\u231d","\\urcorner"),mF("\u231e","\\llcorner"),mF("\u231f","\\lrcorner"),mF("\xa9","\\copyright"),mF("\xae","\\textregistered"),mF("\ufe0f","\\textregistered"),mF("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),mF("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),mF("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),mF("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),mF("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),mF("\u22ee","\\vdots"),mF("\\varGamma","\\mathit{\\Gamma}"),mF("\\varDelta","\\mathit{\\Delta}"),mF("\\varTheta","\\mathit{\\Theta}"),mF("\\varLambda","\\mathit{\\Lambda}"),mF("\\varXi","\\mathit{\\Xi}"),mF("\\varPi","\\mathit{\\Pi}"),mF("\\varSigma","\\mathit{\\Sigma}"),mF("\\varUpsilon","\\mathit{\\Upsilon}"),mF("\\varPhi","\\mathit{\\Phi}"),mF("\\varPsi","\\mathit{\\Psi}"),mF("\\varOmega","\\mathit{\\Omega}"),mF("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),mF("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),mF("\\boxed","\\fbox{$\\displaystyle{#1}$}"),mF("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),mF("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),mF("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),mF("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),mF("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var p$={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};mF("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in p$?t=p$[n]:("\\not"===n.slice(0,4)||n in DQ.math&&IR.contains(["bin","rel"],DQ.math[n].group))&&(t="\\dotsb"),t});var f$={")":!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};mF("\\dotso",function(e){return e.future().text in f$?"\\ldots\\,":"\\ldots"}),mF("\\dotsc",function(e){var t=e.future().text;return t in f$&&","!==t?"\\ldots\\,":"\\ldots"}),mF("\\cdots",function(e){return e.future().text in f$?"\\@cdots\\,":"\\@cdots"}),mF("\\dotsb","\\cdots"),mF("\\dotsm","\\cdots"),mF("\\dotsi","\\!\\cdots"),mF("\\dotsx","\\ldots\\,"),mF("\\DOTSI","\\relax"),mF("\\DOTSB","\\relax"),mF("\\DOTSX","\\relax"),mF("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),mF("\\,","\\tmspace+{3mu}{.1667em}"),mF("\\thinspace","\\,"),mF("\\>","\\mskip{4mu}"),mF("\\:","\\tmspace+{4mu}{.2222em}"),mF("\\medspace","\\:"),mF("\\;","\\tmspace+{5mu}{.2777em}"),mF("\\thickspace","\\;"),mF("\\!","\\tmspace-{3mu}{.1667em}"),mF("\\negthinspace","\\!"),mF("\\negmedspace","\\tmspace-{4mu}{.2222em}"),mF("\\negthickspace","\\tmspace-{5mu}{.277em}"),mF("\\enspace","\\kern.5em "),mF("\\enskip","\\hskip.5em\\relax"),mF("\\quad","\\hskip1em\\relax"),mF("\\qquad","\\hskip2em\\relax"),mF("\\tag","\\@ifstar\\tag@literal\\tag@paren"),mF("\\tag@paren","\\tag@literal{({#1})}"),mF("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new DR("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),mF("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),mF("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),mF("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),mF("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),mF("\\newline","\\\\\\relax"),mF("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var m$=fQ(tQ["Main-Regular"]["T".charCodeAt(0)][1]-.7*tQ["Main-Regular"]["A".charCodeAt(0)][1]);mF("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+m$+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),mF("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+m$+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),mF("\\hspace","\\@ifstar\\@hspacer\\@hspace"),mF("\\@hspace","\\hskip #1\\relax"),mF("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),mF("\\ordinarycolon",":"),mF("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),mF("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),mF("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),mF("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),mF("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),mF("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),mF("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),mF("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),mF("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),mF("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),mF("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),mF("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),mF("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),mF("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),mF("\u2237","\\dblcolon"),mF("\u2239","\\eqcolon"),mF("\u2254","\\coloneqq"),mF("\u2255","\\eqqcolon"),mF("\u2a74","\\Coloneqq"),mF("\\ratio","\\vcentcolon"),mF("\\coloncolon","\\dblcolon"),mF("\\colonequals","\\coloneqq"),mF("\\coloncolonequals","\\Coloneqq"),mF("\\equalscolon","\\eqqcolon"),mF("\\equalscoloncolon","\\Eqqcolon"),mF("\\colonminus","\\coloneq"),mF("\\coloncolonminus","\\Coloneq"),mF("\\minuscolon","\\eqcolon"),mF("\\minuscoloncolon","\\Eqcolon"),mF("\\coloncolonapprox","\\Colonapprox"),mF("\\coloncolonsim","\\Colonsim"),mF("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),mF("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),mF("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),mF("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),mF("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),mF("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),mF("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),mF("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),mF("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),mF("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),mF("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),mF("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),mF("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),mF("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),mF("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),mF("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),mF("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),mF("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),mF("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),mF("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),mF("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),mF("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),mF("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),mF("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),mF("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),mF("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),mF("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),mF("\\imath","\\html@mathml{\\@imath}{\u0131}"),mF("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),mF("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),mF("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),mF("\u27e6","\\llbracket"),mF("\u27e7","\\rrbracket"),mF("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),mF("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),mF("\u2983","\\lBrace"),mF("\u2984","\\rBrace"),mF("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29b5}}"),mF("\u29b5","\\minuso"),mF("\\darr","\\downarrow"),mF("\\dArr","\\Downarrow"),mF("\\Darr","\\Downarrow"),mF("\\lang","\\langle"),mF("\\rang","\\rangle"),mF("\\uarr","\\uparrow"),mF("\\uArr","\\Uparrow"),mF("\\Uarr","\\Uparrow"),mF("\\N","\\mathbb{N}"),mF("\\R","\\mathbb{R}"),mF("\\Z","\\mathbb{Z}"),mF("\\alef","\\aleph"),mF("\\alefsym","\\aleph"),mF("\\Alpha","\\mathrm{A}"),mF("\\Beta","\\mathrm{B}"),mF("\\bull","\\bullet"),mF("\\Chi","\\mathrm{X}"),mF("\\clubs","\\clubsuit"),mF("\\cnums","\\mathbb{C}"),mF("\\Complex","\\mathbb{C}"),mF("\\Dagger","\\ddagger"),mF("\\diamonds","\\diamondsuit"),mF("\\empty","\\emptyset"),mF("\\Epsilon","\\mathrm{E}"),mF("\\Eta","\\mathrm{H}"),mF("\\exist","\\exists"),mF("\\harr","\\leftrightarrow"),mF("\\hArr","\\Leftrightarrow"),mF("\\Harr","\\Leftrightarrow"),mF("\\hearts","\\heartsuit"),mF("\\image","\\Im"),mF("\\infin","\\infty"),mF("\\Iota","\\mathrm{I}"),mF("\\isin","\\in"),mF("\\Kappa","\\mathrm{K}"),mF("\\larr","\\leftarrow"),mF("\\lArr","\\Leftarrow"),mF("\\Larr","\\Leftarrow"),mF("\\lrarr","\\leftrightarrow"),mF("\\lrArr","\\Leftrightarrow"),mF("\\Lrarr","\\Leftrightarrow"),mF("\\Mu","\\mathrm{M}"),mF("\\natnums","\\mathbb{N}"),mF("\\Nu","\\mathrm{N}"),mF("\\Omicron","\\mathrm{O}"),mF("\\plusmn","\\pm"),mF("\\rarr","\\rightarrow"),mF("\\rArr","\\Rightarrow"),mF("\\Rarr","\\Rightarrow"),mF("\\real","\\Re"),mF("\\reals","\\mathbb{R}"),mF("\\Reals","\\mathbb{R}"),mF("\\Rho","\\mathrm{P}"),mF("\\sdot","\\cdot"),mF("\\sect","\\S"),mF("\\spades","\\spadesuit"),mF("\\sub","\\subset"),mF("\\sube","\\subseteq"),mF("\\supe","\\supseteq"),mF("\\Tau","\\mathrm{T}"),mF("\\thetasym","\\vartheta"),mF("\\weierp","\\wp"),mF("\\Zeta","\\mathrm{Z}"),mF("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),mF("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),mF("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),mF("\\bra","\\mathinner{\\langle{#1}|}"),mF("\\ket","\\mathinner{|{#1}\\rangle}"),mF("\\braket","\\mathinner{\\langle{#1}\\rangle}"),mF("\\Bra","\\left\\langle#1\\right|"),mF("\\Ket","\\left|#1\\right\\rangle");var g$=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.consumeArg().tokens,s=t.macros.get("|"),a=t.macros.get("\\|");t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set("|",s),i.length&&n.macros.set("\\|",a));var o=t;!t&&i.length&&("|"===n.future().text&&(n.popToken(),o=!0));return{tokens:o?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...o,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};mF("\\bra@ket",g$(!1)),mF("\\bra@set",g$(!0)),mF("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),mF("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),mF("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),mF("\\angln","{\\angl n}"),mF("\\blue","\\textcolor{##6495ed}{#1}"),mF("\\orange","\\textcolor{##ffa500}{#1}"),mF("\\pink","\\textcolor{##ff00af}{#1}"),mF("\\red","\\textcolor{##df0030}{#1}"),mF("\\green","\\textcolor{##28ae7b}{#1}"),mF("\\gray","\\textcolor{gray}{#1}"),mF("\\purple","\\textcolor{##9d38bd}{#1}"),mF("\\blueA","\\textcolor{##ccfaff}{#1}"),mF("\\blueB","\\textcolor{##80f6ff}{#1}"),mF("\\blueC","\\textcolor{##63d9ea}{#1}"),mF("\\blueD","\\textcolor{##11accd}{#1}"),mF("\\blueE","\\textcolor{##0c7f99}{#1}"),mF("\\tealA","\\textcolor{##94fff5}{#1}"),mF("\\tealB","\\textcolor{##26edd5}{#1}"),mF("\\tealC","\\textcolor{##01d1c1}{#1}"),mF("\\tealD","\\textcolor{##01a995}{#1}"),mF("\\tealE","\\textcolor{##208170}{#1}"),mF("\\greenA","\\textcolor{##b6ffb0}{#1}"),mF("\\greenB","\\textcolor{##8af281}{#1}"),mF("\\greenC","\\textcolor{##74cf70}{#1}"),mF("\\greenD","\\textcolor{##1fab54}{#1}"),mF("\\greenE","\\textcolor{##0d923f}{#1}"),mF("\\goldA","\\textcolor{##ffd0a9}{#1}"),mF("\\goldB","\\textcolor{##ffbb71}{#1}"),mF("\\goldC","\\textcolor{##ff9c39}{#1}"),mF("\\goldD","\\textcolor{##e07d10}{#1}"),mF("\\goldE","\\textcolor{##a75a05}{#1}"),mF("\\redA","\\textcolor{##fca9a9}{#1}"),mF("\\redB","\\textcolor{##ff8482}{#1}"),mF("\\redC","\\textcolor{##f9685d}{#1}"),mF("\\redD","\\textcolor{##e84d39}{#1}"),mF("\\redE","\\textcolor{##bc2612}{#1}"),mF("\\maroonA","\\textcolor{##ffbde0}{#1}"),mF("\\maroonB","\\textcolor{##ff92c6}{#1}"),mF("\\maroonC","\\textcolor{##ed5fa6}{#1}"),mF("\\maroonD","\\textcolor{##ca337c}{#1}"),mF("\\maroonE","\\textcolor{##9e034e}{#1}"),mF("\\purpleA","\\textcolor{##ddd7ff}{#1}"),mF("\\purpleB","\\textcolor{##c6b9fc}{#1}"),mF("\\purpleC","\\textcolor{##aa87ff}{#1}"),mF("\\purpleD","\\textcolor{##7854ab}{#1}"),mF("\\purpleE","\\textcolor{##543b78}{#1}"),mF("\\mintA","\\textcolor{##f5f9e8}{#1}"),mF("\\mintB","\\textcolor{##edf2df}{#1}"),mF("\\mintC","\\textcolor{##e0e5cc}{#1}"),mF("\\grayA","\\textcolor{##f6f7f7}{#1}"),mF("\\grayB","\\textcolor{##f0f1f2}{#1}"),mF("\\grayC","\\textcolor{##e3e5e6}{#1}"),mF("\\grayD","\\textcolor{##d6d8da}{#1}"),mF("\\grayE","\\textcolor{##babec2}{#1}"),mF("\\grayF","\\textcolor{##888d93}{#1}"),mF("\\grayG","\\textcolor{##626569}{#1}"),mF("\\grayH","\\textcolor{##3b3e40}{#1}"),mF("\\grayI","\\textcolor{##21242c}{#1}"),mF("\\kaBlue","\\textcolor{##314453}{#1}"),mF("\\kaGreen","\\textcolor{##71B307}{#1}");var O$={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class b${constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new c$(u$,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new l$(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:r,end:n}=this.consumeArg(["]"]))}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new PR("EOF",n.loc)),this.pushTokens(r),t.range(n,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r,i=this.future(),o=0,s=0;do{if(r=this.popToken(),t.push(r),"{"===r.text)++o;else if("}"===r.text){if(-1===--o)throw new DR("Extra }",r)}else if("EOF"===r.text)throw new DR("Unexpected end of input in a macro argument, expected '"+(e&&n?e[s]:"}")+"'",r);if(e&&n)if((0===o||1===o&&"{"===e[s])&&r.text===e[s]){if(++s===e.length){t.splice(-s,s);break}}else s=0}while(0!==o||n);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:r}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new DR("The length of delimiters doesn't match the number of args!");for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new DR("Use of the macro doesn't match its definition",i)}}for(var o=[],s=0;s<e;s++)o.push(this.consumeArg(t&&t[s+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new DR("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(null==r||e&&r.unexpandable){if(e&&null==r&&"\\"===n[0]&&!this.isDefined(n))throw new DR("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,o=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs)for(var s=(i=i.slice()).length-1;s>=0;--s){var a=i[s];if("#"===a.text){if(0===s)throw new DR("Incomplete placeholder at end of macro body",a);if("#"===(a=i[--s]).text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(a.text))throw new DR("Not a valid argument number",a);i.splice(s,2,...o[+a.text-1])}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new PR(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"===typeof t?t(this):t;if("string"===typeof r){var i=0;if(-1!==r.indexOf("#"))for(var o=r.replace(/##/g,"");-1!==o.indexOf("#"+(i+1));)++i;for(var s=new l$(r,this.settings),a=[],l=s.lex();"EOF"!==l.text;)a.push(l),l=s.lex();return a.reverse(),{tokens:a,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||n$.hasOwnProperty(e)||DQ.math.hasOwnProperty(e)||DQ.text.hasOwnProperty(e)||O$.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"===typeof t||"function"===typeof t||!t.unexpandable:n$.hasOwnProperty(e)&&!n$[e].primitive}}var v$=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,y$=Object.freeze({"\u208a":"+","\u208b":"-","\u208c":"=","\u208d":"(","\u208e":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1d62":"i","\u2c7c":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209a":"p","\u1d63":"r","\u209b":"s","\u209c":"t","\u1d64":"u","\u1d65":"v","\u2093":"x","\u1d66":"\u03b2","\u1d67":"\u03b3","\u1d68":"\u03c1","\u1d69":"\u03d5","\u1d6a":"\u03c7","\u207a":"+","\u207b":"-","\u207c":"=","\u207d":"(","\u207e":")","\u2070":"0","\xb9":"1","\xb2":"2","\xb3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1d2c":"A","\u1d2e":"B","\u1d30":"D","\u1d31":"E","\u1d33":"G","\u1d34":"H","\u1d35":"I","\u1d36":"J","\u1d37":"K","\u1d38":"L","\u1d39":"M","\u1d3a":"N","\u1d3c":"O","\u1d3e":"P","\u1d3f":"R","\u1d40":"T","\u1d41":"U","\u2c7d":"V","\u1d42":"W","\u1d43":"a","\u1d47":"b","\u1d9c":"c","\u1d48":"d","\u1d49":"e","\u1da0":"f","\u1d4d":"g","\u02b0":"h","\u2071":"i","\u02b2":"j","\u1d4f":"k","\u02e1":"l","\u1d50":"m","\u207f":"n","\u1d52":"o","\u1d56":"p","\u02b3":"r","\u02e2":"s","\u1d57":"t","\u1d58":"u","\u1d5b":"v","\u02b7":"w","\u02e3":"x","\u02b8":"y","\u1dbb":"z","\u1d5d":"\u03b2","\u1d5e":"\u03b3","\u1d5f":"\u03b4","\u1d60":"\u03d5","\u1d61":"\u03c7","\u1dbf":"\u03b8"}),x$={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},k$={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u1e09":"c\u0327\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\xe7":"c\u0327","\u010f":"d\u030c","\u1e0b":"d\u0307","\u1e11":"d\u0327","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u1e1d":"e\u0327\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u0229":"e\u0327","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u0123":"g\u0327","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\u1e29":"h\u0327","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u0137":"k\u0327","\u013a":"l\u0301","\u013e":"l\u030c","\u013c":"l\u0327","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\u0146":"n\u0327","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u0157":"r\u0327","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u015f":"s\u0327","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\u0163":"t\u0327","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u1e08":"C\u0327\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\xc7":"C\u0327","\u010e":"D\u030c","\u1e0a":"D\u0307","\u1e10":"D\u0327","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u1e1c":"E\u0327\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u0228":"E\u0327","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u0122":"G\u0327","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\u1e28":"H\u0327","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0136":"K\u0327","\u0139":"L\u0301","\u013d":"L\u030c","\u013b":"L\u0327","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\u0145":"N\u0327","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u0156":"R\u0327","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u015e":"S\u0327","\u0164":"T\u030c","\u1e6a":"T\u0307","\u0162":"T\u0327","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"};class S${constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new b$(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new DR("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new PR("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(e,t){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(-1!==S$.endOfExpression.indexOf(r.text))break;if(t&&r.text===t)break;if(e&&n$[r.text]&&n$[r.text].infix)break;var i=this.parseAtom(t);if(!i)break;"internal"!==i.type&&n.push(i)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var t,n=-1,r=0;r<e.length;r++)if("infix"===e[r].type){if(-1!==n)throw new DR("only one infix operator per group",e[r].token);n=r,t=e[r].replaceWith}if(-1!==n&&t){var i,o,s=e.slice(0,n),a=e.slice(n+1);return i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},o=1===a.length&&"ordgroup"===a[0].type?a[0]:{type:"ordgroup",mode:this.mode,body:a},["\\\\abovefrac"===t?this.callFunction(t,[i,e[n],o],[]):this.callFunction(t,[i,o],[])]}return e}handleSupSubscript(e){var t,n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();do{var i;t=this.parseGroup(e)}while("internal"===(null==(i=t)?void 0:i.type));if(!t)throw new DR("Expected group after '"+r+"'",n);return t}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t,n,r=this.parseGroup("atom",e);if("internal"===(null==r?void 0:r.type))return r;if("text"===this.mode)return r;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(r&&"op"===r.type){var o="\\limits"===i.text;r.limits=o,r.alwaysHandleSupSub=!0}else{if(!r||"operatorname"!==r.type)throw new DR("Limit controls must follow a math operator",i);r.alwaysHandleSupSub&&(r.limits="\\limits"===i.text)}this.consume()}else if("^"===i.text){if(t)throw new DR("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(n)throw new DR("Double subscript",i);n=this.handleSupSubscript("subscript")}else if("'"===i.text){if(t)throw new DR("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},a=[s];for(this.consume();"'"===this.fetch().text;)a.push(s),this.consume();"^"===this.fetch().text&&a.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:a}}else{if(!y$[i.text])break;var l=v$.test(i.text),c=[];for(c.push(new PR(y$[i.text])),this.consume();;){var u=this.fetch().text;if(!y$[u])break;if(v$.test(u)!==l)break;c.unshift(new PR(y$[u])),this.consume()}var h=this.subparse(c);l?n={type:"ordgroup",mode:"math",body:h}:t={type:"ordgroup",mode:"math",body:h}}}return t||n?{type:"supsub",mode:this.mode,base:r,sup:t,sub:n}:r}parseFunction(e,t){var n=this.fetch(),r=n.text,i=n$[r];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new DR("Got function '"+r+"' with no arguments"+(t?" as "+t:""),n);if("text"===this.mode&&!i.allowedInText)throw new DR("Can't use function '"+r+"' in text mode",n);if("math"===this.mode&&!1===i.allowedInMath)throw new DR("Can't use function '"+r+"' in math mode",n);var{args:o,optArgs:s}=this.parseArguments(r,i);return this.callFunction(r,o,s,n,e)}callFunction(e,t,n,r,i){var o={funcName:e,parser:this,token:r,breakOnTokenText:i},s=n$[e];if(s&&s.handler)return s.handler(o,t,n);throw new DR("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=[],i=[],o=0;o<n;o++){var s=t.argTypes&&t.argTypes[o],a=o<t.numOptionalArgs;(t.primitive&&null==s||"sqrt"===t.type&&1===o&&null==i[0])&&(s="primitive");var l=this.parseGroupOfType("argument to '"+e+"'",s,a);if(a)i.push(l);else{if(null==l)throw new DR("Null argument, please report this as a bug");r.push(l)}}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var r=this.parseArgumentGroup(n,"text");return null!=r?{type:"styling",mode:r.mode,body:[r],style:"text"}:null;case"raw":var i=this.parseStringGroup("raw",n);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(n)throw new DR("A primitive argument cannot be optional");var o=this.parseGroup(e);if(null==o)throw new DR("Expected group as "+e,this.fetch());return o;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new DR("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(null==n)return null;for(var r,i="";"EOF"!==(r=this.fetch()).text;)i+=r.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(e,t){for(var n,r=this.fetch(),i=r,o="";"EOF"!==(n=this.fetch()).text&&e.test(o+n.text);)o+=(i=n).text,this.consume();if(""===o)throw new DR("Invalid "+t+": '"+r.text+"'",r);return r.range(i,o)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new DR("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new DR("Invalid size: '"+t.text+"'",t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!dQ(i))throw new DR("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(null==n)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),o}parseGroup(e,t){var n,r=this.fetch(),i=r.text;if("{"===i||"\\begingroup"===i){this.consume();var o="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,o),a=this.fetch();this.expect(o),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:_R.range(r,a),body:s,semisimple:"\\begingroup"===i||void 0}}else if(null==(n=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!O$.hasOwnProperty(i)){if(this.settings.throwOnError)throw new DR("Undefined control sequence: "+i,r);n=this.formatUnsupportedCmd(i),this.consume()}return n}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n],i=r.text;"-"===i&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:_R.range(r,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:_R.range(r,e[n+1]),text:"--"}),t-=1)),"'"!==i&&"`"!==i||e[n+1].text!==i||(e.splice(n,2,{type:"textord",mode:"text",loc:_R.range(r,e[n+1]),text:i+i}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r="*"===n.charAt(0);if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new DR("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:r}}k$.hasOwnProperty(t[0])&&!DQ[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=k$[t[0]]+t.slice(1));var i,o=s$.exec(t);if(o&&("i"===(t=t.substring(0,o.index))?t="\u0131":"j"===t&&(t="\u0237")),DQ[this.mode][t]){this.settings.strict&&"math"===this.mode&&cI.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var s,a=DQ[this.mode][t].group,l=_R.range(e);if(_Q.hasOwnProperty(a)){var c=a;s={type:"atom",mode:this.mode,family:c,loc:l,text:t}}else s={type:a,mode:this.mode,loc:l,text:t};i=s}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(WR(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:_R.range(e),text:t}}if(this.consume(),o)for(var u=0;u<o[0].length;u++){var h=o[0][u];if(!x$[h])throw new DR("Unknown accent ' "+h+"'",e);var d=x$[h][this.mode]||x$[h].text;if(!d)throw new DR("Accent "+h+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:_R.range(e),label:d,isStretchy:!1,isShifty:!0,base:i}}return i}}S$.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var w$=function(e,t){if(!("string"===typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new S$(e,t);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new DR("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:n.subparse([new PR("\\df@tag")])}]}return r};"undefined"!==typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!==typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."));var A$=function(e,t,n){if(n.throwOnError||!(e instanceof DR))throw e;var r=wI.makeSpan(["katex-error"],[new wQ(t)]);return r.setAttribute("title",e.toString()),r.setAttribute("style","color:"+n.errorColor),r},T$=function(e,t){var n=new $R(t);try{return function(e,t,n){var r,i=cL(n);if("mathml"===n.output)return lL(e,t,i,n.displayMode,!0);if("html"===n.output){var o=GI(e,i);r=wI.makeSpan(["katex"],[o])}else{var s=lL(e,t,i,n.displayMode,!1),a=GI(e,i);r=wI.makeSpan(["katex"],[s,a])}return uL(r,n)}(w$(e,n),e,n)}catch(r){return A$(r,e,n)}},E$=function(e,t){return T$(e,t).toMarkup()};const C$={},_$=[];function P$(e){const t=e||C$;return function(e,n){Yu(e,"element",function(e,r){const i=Array.isArray(e.properties.className)?e.properties.className:_$,o=i.includes("language-math"),s=i.includes("math-display"),a=i.includes("math-inline");let l=s;if(!o&&!s&&!a)return;let c=r[r.length-1],u=e;if("code"===e.tagName&&o&&c&&"element"===c.type&&"pre"===c.tagName&&(u=c,c=r[r.length-2],l=!0),!c)return;const h=function(e,t){const n=t||{},r="children"in e?e.children:[],i=wR(e),o=CR(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),s=[];"text"!==e.type&&"comment"!==e.type||s.push(...TR(e,{whitespace:o,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)s.push(...AR(r[a],e,{whitespace:o,breakBefore:a?void 0:i,breakAfter:a<r.length-1?vR(r[a+1]):i}));const l=[];let c;for(a=-1;++a<s.length;){const e=s[a];"number"===typeof e?void 0!==c&&e>c&&(c=e):e&&(void 0!==c&&c>-1&&l.push("\n".repeat(c)||" "),c=-1,l.push(e))}return l.join("")}(u,{whitespace:"pre"});let d;try{d=E$(h,{...t,displayMode:l,throwOnError:!0})}catch(f){const i=f,o=i.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:i,place:e.position,ruleId:o,source:"rehype-katex"});try{d=E$(h,{...t,displayMode:l,strict:"ignore",throwOnError:!1})}catch{d=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(f)},children:[{type:"text",value:h}]}]}}if("string"===typeof d){d=mR(d,{fragment:!0}).children}const p=c.children.indexOf(u);return c.children.splice(p,1,...d),Zu})}}const D$=/["&'<>`]/g,M$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,N$=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,R$=/[|\\{}()[\]^$+*?.]/g,Q$=new WeakMap;function I$(e,t){return e=e.replace(t.subset?function(e){let t=Q$.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(R$,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),Q$.set(e,t));return t}(t.subset):D$,n),t.subset||t.escapeOnly?e:e.replace(M$,function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(N$,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const L$=/[\dA-Fa-f]/;const F$=/\d/;var $$=n(1462);const B$={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203e",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"},z$=["cent","copy","divide","gt","lt","not","para","times"],q$={}.hasOwnProperty,H$={};let U$;for(U$ in B$)q$.call(B$,U$)&&(H$[B$[U$]]=U$);const X$=/[^\dA-Za-z]/;function j$(e,t,n){let r,i=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!L$.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const i=String.fromCharCode(e);if(q$.call(H$,i)){const e=H$[i],o="&"+e;return n&&$$.K.includes(e)&&!z$.includes(e)&&(!r||t&&61!==t&&X$.test(String.fromCharCode(t)))?o:o+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!F$.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function Z$(e,t){return I$(e,Object.assign({format:j$},t))}const Y$=/^>|^->|<!--|-->|--!>|<!-$/g,V$=[">"],G$=["<",">"];const W$=eB(1),K$=eB(-1),J$=[];function eB(e){return function(t,n,r){const i=t?t.children:J$;let o=(n||0)+e,s=i[o];if(!r)for(;s&&Zd(s);)o+=e,s=i[o];return s}}const tB={}.hasOwnProperty;function nB(e){return function(t,n,r){return tB.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const rB=nB({body:function(e,t,n){const r=W$(n,t);return!r||"comment"!==r.type},caption:iB,colgroup:iB,dd:function(e,t,n){const r=W$(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=W$(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:iB,html:function(e,t,n){const r=W$(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=W$(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=W$(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=W$(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=W$(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:oB,rt:oB,tbody:function(e,t,n){const r=W$(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:sB,tfoot:function(e,t,n){return!W$(n,t)},th:sB,thead:function(e,t,n){const r=W$(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=W$(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function iB(e,t,n){const r=W$(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&Zd(r.value.charAt(0)))}function oB(e,t,n){const r=W$(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function sB(e,t,n){const r=W$(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const aB=nB({body:function(e){const t=W$(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&Zd(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){const r=K$(n,t),i=W$(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&rB(r,n.children.indexOf(r),n))return!1;return Boolean(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){const t=new Set;for(const r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||"element"===n.type},html:function(e){const t=W$(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=K$(n,t),i=W$(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&rB(r,n.children.indexOf(r),n))return!1;return Boolean(i&&"element"===i.type&&"tr"===i.tagName)}});const lB={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function cB(e,t,n){const r=Md(e.schema,t),i=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1;let s,a=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?!r.boolean&&!r.overloadedBoolean||"string"===typeof n&&n!==r.attribute&&""!==n||(n=Boolean(n)):n=!0,null===n||void 0===n||!1===n||"number"===typeof n&&Number.isNaN(n))return"";const l=Z$(r.attribute,Object.assign({},e.settings.characterReferences,{subset:lB.name[i][o]}));return!0===n?l:(n=Array.isArray(n)?(r.commaSeparated?Td.A:Qd.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(s=Z$(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:lB.unquoted[i][o]}))),s!==n&&(e.settings.quoteSmart&&Yy(n,a)>Yy(n,e.alternative)&&(a=e.alternative),s=a+Z$(n,Object.assign({},e.settings.characterReferences,{subset:("'"===a?lB.single:lB.double)[i][o],attribute:!0}))+a),l+(s?"="+s:s)))}const uB=["<","&"];function hB(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?Z$(e.value,Object.assign({},r.settings.characterReferences,{subset:uB})):e.value}const dB=tp("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+Z$(e.value,Object.assign({},r.settings.characterReferences,{subset:V$}))+">":"\x3c!--"+e.value.replace(Y$,function(e){return Z$(e,Object.assign({},r.settings.characterReferences,{subset:G$}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const i=r.schema,o="svg"!==i.space&&r.settings.omitOptionalTags;let s="svg"===i.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;"html"===i.space&&"svg"===e.tagName&&(r.schema=Ih);const c=function(e,t){const n=[];let r,i=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const i=cB(e,r,t[r]);i&&n.push(i)}for(;++i<n.length;){const t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&'"'!==t&&"'"!==t&&(n[i]+=" ")}return n.join("")}(r,e.properties),u=r.all("html"===i.space&&"template"===e.tagName?e.content:e);return r.schema=i,u&&(s=!1),!c&&o&&aB(e,t,n)||(a.push("<",e.tagName,c?" "+c:""),s&&("svg"===i.space||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===l||l&&'"'!==l&&"'"!==l)&&a.push(" "),a.push("/")),a.push(">")),a.push(u),s||o&&rB(e,t,n)||a.push("</"+e.tagName+">"),a.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:hB(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:hB}});const pB={},fB={},mB=[];function gB(e,t,n){return dB(e,t,n,this)}function OB(e){const t=[],n=e&&e.children||mB;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function bB(e){const t={...this.data("settings"),...e};this.compiler=function(e){return function(e,t){const n=t||pB,r=n.quote||'"',i='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:gB,all:OB,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||If,characterReferences:n.characterReferences||fB,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?Ih:Qh,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(e,t)}}const vB=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{replace:r}=n;if(e&&e.data&&"Declaration"===e.data.type){var i;const o=(null===r||void 0===r||null===(i=r.find(t=>t.name===e.data.property))||void 0===i?void 0:i.value)||e.data.value.value;t=`${e.data.property}: ${o}${e.data.important?" !important":""};`,e.next&&(t+=vB(e.next,"",n))}return t},yB=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.data&&"Rule"===e.data.type){const r=e.data.prelude.value,i={};n.color&&n.theme&&Kw[n.theme]&&(i.replace=Kw[n.theme].filter(e=>e.select===r).map(e=>({...e,value:e.value.replace("{{color}}",n.color)}))),t[r]=vB(e.data.block.children.head,"",i),e.next&&(t=yB(e.next,{...t},n))}return t},xB=e=>{if("element"===e.type&&e.children){var t;const n=null===(t=e.properties)||void 0===t?void 0:t.className;n&&(e.properties||(e.properties={}),e.properties.className=n.filter(e=>!/(token|control-flow)/.test(e))),e.children.map(e=>("element"===e.type&&e.children&&xB(e),"text"===e.type&&(e.value=e.value.replace(/\s/g,"\xa0")),e))}},kB=e=>{let t="";return e.forEach(e=>{"text"===e.type?t+=e.value:"element"===e.type&&(t+=kB(e.children))}),t.replace(/\u21a9/,"")};function SB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=zN(t,{parseAtrulePrelude:!1,parseRulePrelude:!1,parseValue:!1,parseCustomProperty:!1,positions:!1}),i=yB(r.children.head,{},{color:n.preColor,theme:n.previewTheme}),o=Qy().use(Jv).use(zk).use(iR).use(Oy,{allowDangerousHtml:!0}).use(PO).use(P$).use(uR,{ignoreMissing:!0}).use(bS,{}).use(wp,{properties:"attr"}).use(yp,{rewrite:(e,t,n)=>{var r;if("element"===(null===e||void 0===e?void 0:e.type)&&"code"===(null===e||void 0===e?void 0:e.tagName)&&"element"===(null===n||void 0===n?void 0:n.type)&&"pre"===(null===n||void 0===n?void 0:n.tagName)&&xB(e),"element"===(null===e||void 0===e?void 0:e.type)&&"section"===e.tagName&&(null===e||void 0===e||null===(r=e.properties)||void 0===r?void 0:r.className).includes("footnotes")&&(e=>{e.children.map(e=>("element"===e.type&&"h2"===e.tagName&&(e.properties||(e.properties={}),e.properties.className=["footnotes-title"],e.children=[{type:"text",value:"\u53c2\u8003"}]),"element"===e.type&&"ol"===e.tagName&&e.children.map(e=>("element"===e.type&&"li"===e.tagName&&(e.properties||(e.properties={}),e.properties.className=["footnotes-list"],e.children=[{type:"text",value:kB(e.children)}]),e)),e))})(e),"element"===(null===e||void 0===e?void 0:e.type)&&"sup"===e.tagName&&(e=>{const t=kB(e.children);e.children=[{type:"text",value:`[${t}]`}]})(e),"element"===(null===e||void 0===e?void 0:e.type)&&"img"===e.tagName&&((e,t)=>{"element"===(null===t||void 0===t?void 0:t.type)&&/(p|a)/.test(t.tagName)&&"element"===(null===e||void 0===e?void 0:e.type)&&"img"===e.tagName&&("p"===t.tagName&&(t.tagName="figure"),t.properties||(t.properties={}),t.properties.className=["image-warpper"],e.properties||(e.properties={}),e.properties.className=["image"])})(e,n),"element"===(null===e||void 0===e?void 0:e.type)&&"code"===(null===e||void 0===e?void 0:e.tagName)&&"element"===(null===n||void 0===n?void 0:n.type)&&"pre"!==(null===n||void 0===n?void 0:n.tagName)&&(e.properties||(e.properties={}),e.properties.className=["code-spans"]),"element"!==(null===n||void 0===n?void 0:n.type)||"element"!==(null===e||void 0===e?void 0:e.type)||"input"!==(null===e||void 0===e?void 0:e.tagName)){if("element"===(null===e||void 0===e?void 0:e.type)){var o;e.properties||(e.properties={});const t=null===(o=e.properties)||void 0===o?void 0:o.className;let n="";t&&t.forEach(e=>{i[`.${e}`]&&(n=i[`.${e}`])}),n||(n=i[e.tagName]),n&&(e.properties.style=n+(e.properties.style||""))}}else n&&"element"===n.type&&(n.children=null===n||void 0===n?void 0:n.children.filter(e=>"input"!==e.tagName))}}).use(bB),s=new Cy;s.value=e;const a=o.runSync(o.parse(s),s);return String(o.stringify(a,s))}const wB=Ro.div`
width: 375px;
padding: 20px;
box-shadow: 0 0 60px rgb(0 0 0 / 10%);
min-height: 100%;
font-size: 17px;
`,AB=e=>{const{css:t,preColor:n,previewTheme:r}=(0,ee.useContext)(Jw),i=SB(e.source||"",t,{preColor:n,previewTheme:r});return(0,Lt.jsx)(wB,{contentEditable:!0,spellCheck:!1,dangerouslySetInnerHTML:{__html:i}})},TB=Ro.button`
/* white-space: nowrap;
width: initial !important;
display: flex;
align-items: center; */
`,EB=e=>{const{editorProps:t}=e;return(0,Lt.jsx)(TB,{type:"button",onClick:()=>{const e=t.preview.current;if(!e)return void Hn.error((0,Lt.jsx)("div",{children:"dom is null"}));e.focus();const n=e.innerHTML;navigator.clipboard.writeText(n).then(()=>{Hn.success((0,Lt.jsx)("div",{children:"\u590d\u5236\u6210\u529f\uff01\u53bb\u516c\u4f17\u53f7\u7f16\u8f91\u5668\u7c98\u8d34\u5427\uff01"}))}).catch(e=>{Hn.error((0,Lt.jsx)("div",{children:JSON.stringify(e)})),console.error("Failed to copy: ",e)})},children:e.command.icon})},CB={name:"copy",keyCommand:"copy",button:(e,t,n)=>(0,Lt.jsx)(EB,{command:e,editorProps:{...t,...n}}),icon:(0,Lt.jsxs)("svg",{fill:"currentColor",viewBox:"0 0 24 24",height:"16",width:"16",children:[(0,Lt.jsx)("path",{d:"M20 2H10a2 2 0 0 0-2 2v2h8a2 2 0 0 1 2 2v8h2a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z"}),(0,Lt.jsx)("path",{d:"M4 22h10c1.103 0 2-.897 2-2V10c0-1.103-.897-2-2-2H4c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2zm2-10h6v2H6v-2zm0 4h6v2H6v-2z"})]})},_B=Ro.input`
position: absolute;
opacity: 0;
height: 20px;
width: 20px;
`,PB=Ro.button``,DB=e=>{const{preColor:t,setPreColor:n}=(0,ee.useContext)(Jw),r=t||"currentColor";return(0,Lt.jsxs)(PB,{type:"button",children:[(0,Lt.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",height:"16",width:"16",children:[(0,Lt.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M8.203 2.004c1.261 0 2.304 1.103 2.476 2.538l8.483 8.484-7.778 7.778a3 3 0 0 1-4.243 0L2.9 16.562a3 3 0 0 1 0-4.243l2.804-2.805V4.961c0-1.633 1.12-2.957 2.5-2.957Zm.5 2.957v1.553l-1 1V4.961c0-.327.224-.591.5-.591.277 0 .5.264.5.591Zm0 5.914V9.342l-4.39 4.391a1 1 0 0 0 0 1.414l4.243 4.243a1 1 0 0 0 1.414 0l6.364-6.364-5.63-5.63v3.48l-.003.128h-2.01a.698.698 0 0 0 .012-.129Z"}),(0,Lt.jsx)("path",{d:"M16.859 16.875a3 3 0 1 0 4.242 0l-2.121-2.121-2.121 2.12Z",fill:r})]}),(0,Lt.jsx)(_B,{type:"color",value:t,onChange:e=>{n(e.target.value)}})]})},MB={name:"color",keyCommand:"color",button:()=>(0,Lt.jsx)(DB,{})},NB=Ro.select`
max-width: 4rem;
padding: 0;
appearance: none;
background-color: var(--color-border-muted);
border: none;
padding: 0 0.2rem 0 0.2rem;
margin: 0;
font-family: inherit;
font-size: 0.7rem;
outline: none;
height: 1.15rem;
cursor: inherit;
line-height: inherit;
border-radius: 0.2rem;
&::-ms-expand {
display: none;
}
`,RB=e=>{const{theme:t,setTheme:n}=(0,ee.useContext)(Jw);return(0,Lt.jsx)(NB,{value:t,onChange:e=>n(e.target.value),children:Object.keys(Gw).map((e,t)=>(0,Lt.jsx)("option",{value:e,children:Gw[e].label},t))})},QB={name:"theme",keyCommand:"theme",button:(e,t,n)=>(0,Lt.jsx)(RB,{command:e,editorProps:{...t,...n}})},IB=()=>{const{setCss:e,previewTheme:t,setPreviewTheme:n}=(0,ee.useContext)(Jw);return(0,Lt.jsx)(NB,{value:t,onChange:t=>{const r=t.target.value;n(r),e(Ww[r].value)},children:Object.keys(Ww).map((e,t)=>(0,Lt.jsx)("option",{value:e,children:Ww[e].label},t))})},LB={name:"previewTtheme",keyCommand:"previewTtheme",button:()=>(0,Lt.jsx)(IB,{})},FB=Ro(Pt)`
font-size: 0.8rem;
line-height: 0.7rem;
text-decoration: none;
padding: 0.18rem 0.3rem;
&:hover {
color: var(--color-accent-fg);
background-color: var(--color-neutral-muted);
border-radius: 0.2rem;
}
`,$B={name:"previewTtheme",keyCommand:"previewTtheme",button:()=>(0,Lt.jsx)(FB,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"})},BB={name:"previous",keyCommand:"previous",button:()=>(0,Lt.jsx)(FB,{to:"/",children:"\u8fd4\u56de"})},zB=()=>{const e=[...HS(),QB],{theme:t,markdown:n,isLoading:r,setMarkdown:i}=(0,ee.useContext)(Jw),o=Gw[t].value;return(0,Lt.jsx)(KS,{value:n,toolbars:e,theme:o,readOnly:r,toolbarsMode:[$B,LB,CB,MB,"fullscreen","preview"],extensions:[Ws.Lz.lineWrapping],renderPreview:AB,previewWidth:"420px",onChange:e=>i(e),visible:!0,height:"calc(100vh - 4.6rem)"})};var qB=n(8244);const HB=()=>{const{css:e,markdown:t,preColor:n,previewTheme:r}=(0,ee.useContext)(Jw),i=SB(t,e,{preColor:n,previewTheme:r});return(0,Lt.jsx)(wB,{contentEditable:!0,spellCheck:!1,dangerouslySetInnerHTML:{__html:i}})};function UB(){return UB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UB.apply(null,arguments)}function XB(e,t){let{title:n,titleId:r,...i}=e;return ee.createElement("svg",UB({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},i),n?ee.createElement("title",{id:r},n):null,ee.createElement("g",{id:"Layer_2"},ee.createElement("g",{id:"color-palette"},ee.createElement("path",{d:"M19.54 5.08A10.61 10.61 0 0 0 11.91 2a10 10 0 0 0-.05 20 2.58 2.58 0 0 0 2.53-1.89 2.52 2.52 0 0 0-.57-2.28.5.5 0 0 1 .37-.83h1.65A6.15 6.15 0 0 0 22 11.33a8.48 8.48 0 0 0-2.46-6.25Zm-12.7 9.66a1.5 1.5 0 1 1 .4-2.08 1.49 1.49 0 0 1-.4 2.08ZM8.3 9.25a1.5 1.5 0 1 1-.55-2 1.5 1.5 0 0 1 .55 2ZM11 7a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 11 7Zm5.75.8a1.5 1.5 0 1 1 .55-2 1.5 1.5 0 0 1-.55 2Z",style:{fill:"#231f20"},id:"color-palette-2"}))))}const jB=ee.forwardRef(XB),ZB=(n.p,Ro.div`
font-size: 0.9rem;
font-weight: bold;
display: flex;
align-items: center;
line-height: 1;
padding-right: 0.5rem;
padding-left: 0.2rem;
`),YB={name:"themeTitle",keyCommand:"themeTitle",button:()=>(0,Lt.jsxs)(ZB,{children:[(0,Lt.jsx)(jB,{width:16,height:16}),"\u4e3b\u9898\u7f16\u8f91\u5668"]})},VB=()=>{const e=[YB,QB,BB],t=[LB,CB,"fullscreen","preview"],{theme:n,css:r,setCss:i,isLoading:o}=(0,ee.useContext)(Jw),s=Gw[n].value;return(0,Lt.jsx)(KS,{value:r,theme:s,readOnly:o,toolbars:e,toolbarsMode:t,reExtensions:[Ws.Lz.lineWrapping,(0,qB.css)()],renderPreview:HB,previewWidth:"420px",onChange:e=>i(e),visible:!0,height:"calc(100vh - 4.6rem)"})},GB=Ro.div`
max-width: 59rem;
margin: 0 auto 0 auto;
padding: 0 1rem 3rem 1rem;
`,WB=()=>(0,Lt.jsx)(GB,{children:(0,Lt.jsx)(KS.Markdown,{source:Vw})});function KB(){return(0,Lt.jsx)(Ot,{children:(0,Lt.jsxs)(mt,{path:"/",element:(0,Lt.jsx)(aA,{}),children:[(0,Lt.jsx)(mt,{index:!0,element:(0,Lt.jsx)(zB,{})}),(0,Lt.jsx)(mt,{path:"/editor/theme",element:(0,Lt.jsx)(VB,{})}),(0,Lt.jsx)(mt,{path:"/doc",element:(0,Lt.jsx)(WB,{})})]})})}class JB extends os{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),ez(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tz(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tz(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),Vo(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&nz(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Vo(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(){let{refetchPage:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Lo)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Io||this.currentResult.isStale||!Fo(this.options.staleTime))return;const e=$o(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Io&&!1!==this.options.enabled&&Fo(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||ss.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,i=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,a=e!==n,l=a?e.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:u}=e;let h,{dataUpdatedAt:d,error:p,errorUpdatedAt:f,fetchStatus:m,status:g}=u,O=!1,b=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&ez(e,t),s=i&&nz(e,n,t,r);(o||s)&&(m=us(e.options.networkMode)?"fetching":"paused",d||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!u.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)h=c.data,d=c.dataUpdatedAt,g=c.status,O=!0;else if(t.select&&"undefined"!==typeof u.data)if(i&&u.data===(null==o?void 0:o.data)&&t.select===this.selectFn)h=this.selectResult;else try{this.selectFn=t.select,h=t.select(u.data),h=ns(null==i?void 0:i.data,h,t),this.selectResult=h,this.selectError=null}catch(k){0,this.selectError=k}else h=u.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof h&&"loading"===g){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==s?void 0:s.placeholderData))e=i.data;else if(e="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof e)try{e=t.select(e),this.selectError=null}catch(k){0,this.selectError=k}"undefined"!==typeof e&&(g="success",h=ns(null==i?void 0:i.data,e,t),b=!0)}this.selectError&&(p=this.selectError,h=this.selectResult,f=Date.now(),g="error");const v="fetching"===m,y="loading"===g,x="error"===g;return{status:g,fetchStatus:m,isLoading:y,isSuccess:"success"===g,isError:x,isInitialLoading:y&&v,data:h,dataUpdatedAt:d,error:p,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!y,isLoadingError:x&&0===u.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:b,isPreviousData:O,isRefetchError:x&&0!==u.dataUpdatedAt,isStale:rz(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Vo(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"===typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)})})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||ds(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){is.batch(()=>{var t,n,r,i;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null);else if(e.onError){var o,s,a,l;null==(o=(s=this.options).onError)||o.call(s,this.currentResult.error),null==(a=(l=this.options).onSettled)||a.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(e=>{let{listener:t}=e;t(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function ez(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&tz(e,t,t.refetchOnMount)}function tz(e,t,n){if(!1!==t.enabled){const r="function"===typeof n?n(e):n;return"always"===r||!1!==r&&rz(e,t)}return!1}function nz(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&rz(e,n)}function rz(e,t){return e.isStaleByTime(t.staleTime)}const iz=n(9851).useSyncExternalStore;function oz(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const sz=ee.createContext(oz()),az=ee.createContext(!1);az.Provider;function lz(e,t){const n=function(){let{context:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=ee.useContext(ws(e,ee.useContext(Ss)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t}({context:e.context}),r=ee.useContext(az),i=ee.useContext(sz),o=n.defaultQueryOptions(e);o._optimisticResults=r?"isRestoring":"optimistic",o.onError&&(o.onError=is.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=is.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=is.batchCalls(o.onSettled)),(e=>{e.suspense&&"number"!==typeof e.staleTime&&(e.staleTime=1e3)})(o),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(o,i),(e=>{ee.useEffect(()=>{e.clearReset()},[e])})(i);const[s]=ee.useState(()=>new t(n,o)),a=s.getOptimisticResult(o);if(iz(ee.useCallback(e=>{const t=r?()=>{}:s.subscribe(is.batchCalls(e));return s.updateResult(),t},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),ee.useEffect(()=>{s.setOptions(o,{listeners:!1})},[o,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(o,a,r))throw((e,t,n)=>t.fetchOptimistic(e).then(t=>{let{data:n}=t;null==e.onSuccess||e.onSuccess(n),null==e.onSettled||e.onSettled(n,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(o,s,i);if((e=>{let{result:t,errorResetBoundary:n,useErrorBoundary:r,query:i}=e;return t.isError&&!n.isReset()&&!t.isFetching&&(o=r,s=[t.error,i],"function"===typeof o?o(...s):!!o);var o,s})({result:a,errorResetBoundary:i,useErrorBoundary:o.useErrorBoundary,query:s.getCurrentQuery()}))throw a.error;return o.notifyOnChangeProps?a:s.trackResult(a)}const cz=Ro.div`
font-size: 0.8rem;
`,uz=e=>{return t=()=>e?fetch(e).then(e=>e.text()).then(e=>e).catch(t=>{Hn.error((0,Lt.jsxs)(cz,{children:["\u52a0\u8f7d\u5931\u8d25\uff01",(0,Lt.jsx)("a",{href:e,children:"\u8bf7\u68c0\u67e5\u4f60\u7684URL"})]}))}):Promise.resolve(""),lz(Bo(["database-list",e],t,n),JB);var t,n},hz=e=>{let{children:t}=e;const[n,r]=Rt(),i=n.get("theme"),o=i||"underscore",s=n.get("md"),[a,l]=ee.useState(s?"":Vw),[c,u]=ee.useState(Ww[o].value),[h,d]=ee.useState(o),[p,f]=ee.useState("default"),[m,g]=ee.useState(Ww[o]?Ww[o].color:""),[O,b]=ee.useState(!0),{data:v,isLoading:y}=uz(s);return(0,ee.useEffect)(()=>{i!==h&&(n.set("theme",h),r(n))},[i,h,n,r]),(0,ee.useEffect)(()=>{s&&l(v||"")},[v,s]),(0,ee.useEffect)(()=>b(y),[y]),(0,ee.useEffect)(()=>g(Ww[o].color),[o]),(0,Lt.jsx)(Jw.Provider,{value:{preColor:m,setPreColor:g,isLoading:O,setIsLoading:b,markdown:a,setMarkdown:l,css:c,setCss:u,previewTheme:h,setPreviewTheme:d,theme:p,setTheme:f},children:t})},dz=(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Do.apply(void 0,Xn([e],t,!1)),i="sc-global-".concat(mi(JSON.stringify(r))),o=new Qo(r,i),s=function(e){var t=mo(),n=ee.useContext(To),r=ee.useRef(t.styleSheet.allocateGSInstance(i)).current;return t.styleSheet.server&&a(r,e,t.styleSheet,n,t.stylis),ee.useLayoutEffect(function(){if(!t.styleSheet.server)return a(r,e,t.styleSheet,n,t.stylis),function(){return o.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function a(e,t,n,r,i){if(o.isStatic)o.renderStyles(e,ti,n,i);else{var a=Un(Un({},t),{theme:ii(t,r,s.defaultProps)});o.renderStyles(e,a,n,i)}}return ee.memo(s)})`
[data-color-mode*='dark'], [data-color-mode*='dark'] body {
--color-fg-default: #c9d1d9;
--color-fg-muted: #8b949e;
--color-fg-subtle: #484f58;
--color-canvas-default: #0d1117;
--color-canvas-subtle: #161b22;
--color-border-default: #30363d;
--color-border-muted: #21262d;
--color-neutral-muted: rgba(110,118,129,0.4);
--color-accent-fg: #58a6ff;
--color-accent-emphasis: #1f6feb;
--color-attention-subtle: rgba(187,128,9,0.15);
--color-danger-fg: #f85149;
}
[data-color-mode*='light'], [data-color-mode*='light'] body {
--color-fg-default: #24292f;
--color-fg-muted: #57606a;
--color-fg-subtle: #6e7781;
--color-canvas-default: #ffffff;
--color-canvas-subtle: #f6f8fa;
--color-border-default: #d0d7de;
--color-border-muted: hsla(210,18%,87%,1);
--color-neutral-muted: rgba(175,184,193,0.2);
--color-accent-fg: #0969da;
--color-accent-emphasis: #0969da;
--color-attention-subtle: #fff8c5;
--color-danger-fg: #cf222e;
}
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
`,pz=new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.queryCache=e.queryCache||new gs,this.mutationCache=e.mutationCache||new bs,this.logger=e.logger||rs,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=ss.subscribe(()=>{ss.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ls.subscribe(()=>{ls.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=zo(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=Bo(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(e=>{let{queryKey:t,state:n}=e;return[t,n.data]})}setQueryData(e,t,n){const r=this.queryCache.find(e),i=function(e,t){return"function"===typeof e?e(t):e}(t,null==r?void 0:r.state.data);if("undefined"===typeof i)return;const o=Bo(e),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return is.batch(()=>this.getQueryCache().findAll(e).map(e=>{let{queryKey:r}=e;return[r,this.setQueryData(r,t,n)]}))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=zo(e,t),r=this.queryCache;is.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[r,i]=zo(e,t,n),o=this.queryCache,s={type:"active",...r};return is.batch(()=>(o.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(s,i)))}cancelQueries(e,t,n){const[r,i={}]=zo(e,t,n);"undefined"===typeof i.revert&&(i.revert=!0);const o=is.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(i)));return Promise.all(o).then(Lo).catch(Lo)}invalidateQueries(e,t,n){const[r,i]=zo(e,t,n);return is.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,i)})}refetchQueries(e,t,n){const[r,i]=zo(e,t,n),o=is.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}));let s=Promise.all(o).then(Lo);return null!=i&&i.throwOnError||(s=s.catch(Lo)),s}fetchQuery(e,t,n){const r=Bo(e,t,n),i=this.defaultQueryOptions(r);"undefined"===typeof i.retry&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Lo).catch(Lo)}fetchInfiniteQuery(e,t,n){const r=Bo(e,t,n);return r.behavior=vs(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Lo).catch(Lo)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>Xo(e)===Xo(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>jo(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>Xo(e)===Xo(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>jo(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Uo(t.queryKey,t)),"undefined"===typeof t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),"undefined"===typeof t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}},fz=document.getElementById("root");(0,ne.H)(fz).render((0,Lt.jsxs)(Tt,{children:[(0,Lt.jsx)(qn,{}),(0,Lt.jsx)(Ut,{style:{zIndex:999},children:"Top"}),(0,Lt.jsx)(dz,{}),(0,Lt.jsx)(As,{client:pz,children:(0,Lt.jsx)(hz,{children:(0,Lt.jsx)(KB,{})})})]}))},4006:(e,t)=>{t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}t.urlParse=i,t.urlGenerate=o;var s=function(e){var t=[];return function(n){for(var r=0;r<t.length;r++)if(t[r].input===n){var i=t[0];return t[0]=t[r],t[r]=i,t[0].result}var o=e(n);return t.unshift({input:n,result:o}),t.length>32&&t.pop(),o}}(function(e){var n=e,r=i(e);if(r){if(!r.path)return e;n=r.path}for(var s=t.isAbsolute(n),a=[],l=0,c=0;;){if(l=c,-1===(c=n.indexOf("/",l))){a.push(n.slice(l));break}for(a.push(n.slice(l,c));c<n.length&&"/"===n[c];)c++}var u,h=0;for(c=a.length-1;c>=0;c--)"."===(u=a[c])?a.splice(c,1):".."===u?h++:h>0&&(""===u?(a.splice(c+1,h),h=0):(a.splice(c,2),h--));return""===(n=a.join("/"))&&(n=s?"/":"."),r?(r.path=n,o(r)):n});function a(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),a=i(e);if(a&&(e=a.path||"/"),n&&!n.scheme)return a&&(n.scheme=a.scheme),o(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,o(a);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,o(a)):l}t.normalize=s,t.join=a,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function c(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?c:function(e){return u(e)?"$"+e:e},t.fromSetString=l?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=h(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:h(e.name,t.name)},t.compareByOriginalPositionsNoSource=function(e,t,n){var r;return 0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:h(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=h(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:h(e.name,t.name)},t.compareByGeneratedPositionsDeflatedNoLine=function(e,t,n){var r=e.generatedColumn-t.generatedColumn;return 0!==r||n||0!==(r=h(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:h(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=h(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:h(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=i(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var l=r.path.lastIndexOf("/");l>=0&&(r.path=r.path.substring(0,l+1))}t=a(o(r),t)}return s(t)}},4013:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoCloseTags:()=>Y,completionPath:()=>Q,esLint:()=>V,javascript:()=>X,javascriptLanguage:()=>L,jsxLanguage:()=>B,localCompletionSource:()=>N,scopeCompletionSource:()=>I,snippets:()=>S,tsxLanguage:()=>z,typescriptLanguage:()=>$,typescriptSnippets:()=>w});var r=n(4179),i=n(1345);const o=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],s=new r.Aj({start:!1,shift:(e,t)=>5==t||6==t||319==t?e:320==t,strict:!1}),a=new r.Lu((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&e.acceptToken(317)},{contextual:!0,fallback:!0}),l=new r.Lu((e,t)=>{let n,{next:r}=e;o.indexOf(r)>-1||(47!=r||47!=(n=e.peek(1))&&42!=n)&&(125==r||59==r||-1==r||t.context||e.acceptToken(315))},{contextual:!0}),c=new r.Lu((e,t)=>{91!=e.next||t.context||e.acceptToken(316)},{contextual:!0}),u=new r.Lu((e,t)=>{let{next:n}=e;if(43==n||45==n){if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}else 63==n&&46==e.peek(1)&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(3))},{contextual:!0});function h(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const d=new r.Lu((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let n=0;for(;o.indexOf(e.next)>-1;)e.advance(),n++;if(h(e.next,!0)){for(e.advance(),n++;h(e.next,!1);)e.advance(),n++;for(;o.indexOf(e.next)>-1;)e.advance(),n++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!h(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),n++}}e.acceptToken(4,-n)}),p=(0,i.pn)({"get set async static":i._A.modifier,"for while do if else switch try catch finally return throw break continue default case":i._A.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":i._A.operatorKeyword,"let var const using function class extends":i._A.definitionKeyword,"import export from":i._A.moduleKeyword,"with debugger new":i._A.keyword,TemplateString:i._A.special(i._A.string),super:i._A.atom,BooleanLiteral:i._A.bool,this:i._A.self,null:i._A.null,Star:i._A.modifier,VariableName:i._A.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i._A.function(i._A.variableName),VariableDefinition:i._A.definition(i._A.variableName),Label:i._A.labelName,PropertyName:i._A.propertyName,PrivatePropertyName:i._A.special(i._A.propertyName),"CallExpression/MemberExpression/PropertyName":i._A.function(i._A.propertyName),"FunctionDeclaration/VariableDefinition":i._A.function(i._A.definition(i._A.variableName)),"ClassDeclaration/VariableDefinition":i._A.definition(i._A.className),"NewExpression/VariableName":i._A.className,PropertyDefinition:i._A.definition(i._A.propertyName),PrivatePropertyDefinition:i._A.definition(i._A.special(i._A.propertyName)),UpdateOp:i._A.updateOperator,"LineComment Hashbang":i._A.lineComment,BlockComment:i._A.blockComment,Number:i._A.number,String:i._A.string,Escape:i._A.escape,ArithOp:i._A.arithmeticOperator,LogicOp:i._A.logicOperator,BitOp:i._A.bitwiseOperator,CompareOp:i._A.compareOperator,RegExp:i._A.regexp,Equals:i._A.definitionOperator,Arrow:i._A.function(i._A.punctuation),": Spread":i._A.punctuation,"( )":i._A.paren,"[ ]":i._A.squareBracket,"{ }":i._A.brace,"InterpolationStart InterpolationEnd":i._A.special(i._A.brace),".":i._A.derefOperator,", ;":i._A.separator,"@":i._A.meta,TypeName:i._A.typeName,TypeDefinition:i._A.definition(i._A.typeName),"type enum interface implements namespace module declare":i._A.definitionKeyword,"abstract global Privacy readonly override":i._A.modifier,"is keyof unique infer asserts":i._A.operatorKeyword,JSXAttributeValue:i._A.attributeValue,JSXText:i._A.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i._A.angleBracket,"JSXIdentifier JSXNameSpacedName":i._A.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i._A.attributeName,"JSXBuiltin/JSXIdentifier":i._A.standard(i._A.tagName)}),f={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,for:474,of:483,while:486,with:490,do:494,if:498,else:500,switch:504,case:510,try:516,catch:520,finally:524,return:528,throw:532,break:536,continue:540,debugger:544},m={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},g={__proto__:null,"<":193},O=r.U1.deserialize({version:14,states:"$EOQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Ik'#IkO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JqO6[Q!0MxO'#JrO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO7eQMhO'#F|O9[Q`O'#F{OOQ!0Lf'#Jr'#JrOOQ!0Lb'#Jq'#JqO9aQ`O'#GwOOQ['#K^'#K^O9lQ`O'#IXO9qQ!0LrO'#IYOOQ['#J_'#J_OOQ['#I^'#I^Q`QlOOQ`QlOOO9yQ!L^O'#DvO:QQlO'#EOO:XQlO'#EQO9gQ`O'#GsO:`QMhO'#CoO:nQ`O'#EnO:yQ`O'#EyO;OQMhO'#FeO;mQ`O'#GsOOQO'#K_'#K_O;rQ`O'#K_O<QQ`O'#G{O<QQ`O'#G|O<QQ`O'#HOO9gQ`O'#HRO<wQ`O'#HUO>`Q`O'#CeO>pQ`O'#HbO>xQ`O'#HhO>xQ`O'#HjO`QlO'#HlO>xQ`O'#HnO>xQ`O'#HqO>}Q`O'#HwO?SQ!0LsO'#H}O%[QlO'#IPO?_Q!0LsO'#IRO?jQ!0LsO'#ITO9qQ!0LrO'#IVO?uQ!0MxO'#CiO@wQpO'#DlQOQ`OOO%[QlO'#EQOA_Q`O'#ETO:`QMhO'#EnOAjQ`O'#EnOAuQ!bO'#FeOOQ['#Cg'#CgOOQ!0Lb'#Dq'#DqOOQ!0Lb'#Ju'#JuO%[QlO'#JuOOQO'#Jx'#JxOOQO'#Ig'#IgOBuQpO'#EgOOQ!0Lb'#Ef'#EfOOQ!0Lb'#J|'#J|OCqQ!0MSO'#EgOC{QpO'#EWOOQO'#Jw'#JwODaQpO'#JxOEnQpO'#EWOC{QpO'#EgPE{O&2DjO'#CbPOOO)CD|)CD|OOOO'#I_'#I_OFWO#tO,59UOOQ!0Lh,59U,59UOOOO'#I`'#I`OFfO&jO,59UOFtQ!L^O'#DcOOOO'#Ib'#IbOF{O#@ItO,59{OOQ!0Lf,59{,59{OGZQlO'#IcOGnQ`O'#JsOImQ!fO'#JsO+}QlO'#JsOItQ`O,5:ROJ[Q`O'#EpOJiQ`O'#KSOJtQ`O'#KROJtQ`O'#KROJ|Q`O,5;^OKRQ`O'#KQOOQ!0Ln,5:^,5:^OKYQlO,5:^OMWQ!0MxO,5:fOMwQ`O,5:nONbQ!0LrO'#KPONiQ`O'#KOO9aQ`O'#KOON}Q`O'#KOO! VQ`O,5;]O! [Q`O'#KOO!#aQ!fO'#JrOOQ!0Lh'#Ci'#CiO%[QlO'#ESO!$PQ!fO,5:sOOQS'#Jy'#JyOOQO-E<i-E<iO9gQ`O,5=_O!$gQ`O,5=_O!$lQlO,5;ZO!&oQMhO'#EkO!(YQ`O,5;ZO!(_QlO'#DyO!(iQpO,5;dO!(qQpO,5;dO%[QlO,5;dOOQ['#FT'#FTOOQ['#FV'#FVO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eOOQ['#FZ'#FZO!)PQlO,5;tOOQ!0Lf,5;y,5;yOOQ!0Lf,5;z,5;zOOQ!0Lf,5;|,5;|O%[QlO'#IoO!+SQ!0LrO,5<iO%[QlO,5;eO!&oQMhO,5;eO!+qQMhO,5;eO!-cQMhO'#E^O%[QlO,5;wOOQ!0Lf,5;{,5;{O!-jQ,UO'#FjO!.gQ,UO'#KWO!.RQ,UO'#KWO!.nQ,UO'#KWOOQO'#KW'#KWO!/SQ,UO,5<SOOOW,5<`,5<`O!/eQlO'#FvOOOW'#In'#InO7VO7dO,5<QO!/lQ,UO'#FxOOQ!0Lf,5<Q,5<QO!0]Q$IUO'#CyOOQ!0Lh'#C}'#C}O!0pO#@ItO'#DRO!1^QMjO,5<eO!1eQ`O,5<hO!3QQ(CWO'#GXO!3_Q`O'#GYO!3dQ`O'#GYO!5SQ(CWO'#G^O!6XQpO'#GbOOQO'#Gn'#GnO!+xQMhO'#GmOOQO'#Gp'#GpO!+xQMhO'#GoO!6zQ$IUO'#JkOOQ!0Lh'#Jk'#JkO!7UQ`O'#JjO!7dQ`O'#JiO!7lQ`O'#CuOOQ!0Lh'#C{'#C{O!7}Q`O'#C}OOQ!0Lh'#DV'#DVOOQ!0Lh'#DX'#DXO1SQ`O'#DZO!+xQMhO'#GPO!+xQMhO'#GRO!8SQ`O'#GTO!8XQ`O'#GUO!3dQ`O'#G[O!+xQMhO'#GaO<QQ`O'#JjO!8^Q`O'#EqO!8{Q`O,5<gOOQ!0Lb'#Cr'#CrO!9TQ`O'#ErO!9}QpO'#EsOOQ!0Lb'#KQ'#KQO!:UQ!0LrO'#K`O9qQ!0LrO,5=cO`QlO,5>sOOQ['#Jg'#JgOOQ[,5>t,5>tOOQ[-E<[-E<[O!<TQ!0MxO,5:bO!9xQpO,5:`O!>nQ!0MxO,5:jO%[QlO,5:jO!AUQ!0MxO,5:lOOQO,5@y,5@yO!AuQMhO,5=_O!BTQ!0LrO'#JhO9[Q`O'#JhO!BfQ!0LrO,59ZO!BqQpO,59ZO!ByQMhO,59ZO:`QMhO,59ZO!CUQ`O,5;ZO!C^Q`O'#HaO!CrQ`O'#KcO%[QlO,5;}O!9xQpO,5<PO!CzQ`O,5=zO!DPQ`O,5=zO!DUQ`O,5=zO9qQ!0LrO,5=zO<QQ`O,5=jOOQO'#Cy'#CyO!DdQpO,5=gO!DlQMhO,5=hO!DwQ`O,5=jO!D|Q!bO,5=mO!EUQ`O'#K_O>}Q`O'#HWO9gQ`O'#HYO!EZQ`O'#HYO:`QMhO'#H[O!E`Q`O'#H[OOQ[,5=p,5=pO!EeQ`O'#H]O!EvQ`O'#CoO!E{Q`O,59PO!FVQ`O,59PO!H[QlO,59POOQ[,59P,59PO!HlQ!0LrO,59PO%[QlO,59PO!JwQlO'#HdOOQ['#He'#HeOOQ['#Hf'#HfO`QlO,5=|O!K_Q`O,5=|O`QlO,5>SO`QlO,5>UO!KdQ`O,5>WO`QlO,5>YO!KiQ`O,5>]O!KnQlO,5>cOOQ[,5>i,5>iO%[QlO,5>iO9qQ!0LrO,5>kOOQ[,5>m,5>mO# xQ`O,5>mOOQ[,5>o,5>oO# xQ`O,5>oOOQ[,5>q,5>qO#!fQpO'#D_O%[QlO'#JuO##XQpO'#JuO##cQpO'#DmO##tQpO'#DmO#&VQlO'#DmO#&^Q`O'#JtO#&fQ`O,5:WO#&kQ`O'#EtO#&yQ`O'#KTO#'RQ`O,5;_O#'WQpO'#DmO#'eQpO'#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#'lQ`O,5:oO>}Q`O,5;YO!BqQpO,5;YO!ByQMhO,5;YO:`QMhO,5;YO#'tQ`O,5@aO#'yQ07dO,5:sOOQO-E<e-E<eO#)PQ!0MSO,5;ROC{QpO,5:rO#)ZQpO,5:rOC{QpO,5;RO!BfQ!0LrO,5:rOOQ!0Lb'#Ej'#EjOOQO,5;R,5;RO%[QlO,5;RO#)hQ!0LrO,5;RO#)sQ!0LrO,5;RO!BqQpO,5:rOOQO,5;X,5;XO#*RQ!0LrO,5;RPOOO'#I]'#I]P#*gO&2DjO,58|POOO,58|,58|OOOO-E<]-E<]OOQ!0Lh1G.p1G.pOOOO-E<^-E<^OOOO,59},59}O#*rQ!bO,59}OOOO-E<`-E<`OOQ!0Lf1G/g1G/gO#*wQ!fO,5>}O+}QlO,5>}OOQO,5?T,5?TO#+RQlO'#IcOOQO-E<a-E<aO#+`Q`O,5@_O#+hQ!fO,5@_O#+oQ`O,5@mOOQ!0Lf1G/m1G/mO%[QlO,5@nO#+wQ`O'#IiOOQO-E<g-E<gO#+oQ`O,5@mOOQ!0Lb1G0x1G0xOOQ!0Ln1G/x1G/xOOQ!0Ln1G0Y1G0YO%[QlO,5@kO#,]Q!0LrO,5@kO#,nQ!0LrO,5@kO#,uQ`O,5@jO9aQ`O,5@jO#,}Q`O,5@jO#-]Q`O'#IlO#,uQ`O,5@jOOQ!0Lb1G0w1G0wO!(iQpO,5:uO!(tQpO,5:uOOQS,5:w,5:wO#-}QdO,5:wO#.VQMhO1G2yO9gQ`O1G2yOOQ!0Lf1G0u1G0uO#.eQ!0MxO1G0uO#/jQ!0MvO,5;VOOQ!0Lh'#GW'#GWO#0WQ!0MzO'#JkO!$lQlO1G0uO#2cQ!fO'#JvO%[QlO'#JvO#2mQ`O,5:eOOQ!0Lh'#D_'#D_OOQ!0Lf1G1O1G1OO%[QlO1G1OOOQ!0Lf1G1f1G1fO#2rQ`O1G1OO#5WQ!0MxO1G1PO#5_Q!0MxO1G1PO#7uQ!0MxO1G1PO#7|Q!0MxO1G1PO#:dQ!0MxO1G1PO#<zQ!0MxO1G1PO#=RQ!0MxO1G1PO#=YQ!0MxO1G1PO#?pQ!0MxO1G1PO#?wQ!0MxO1G1PO#BUQ?MtO'#CiO#DPQ?MtO1G1`O#DWQ?MtO'#JrO#DkQ!0MxO,5?ZOOQ!0Lb-E<m-E<mO#FxQ!0MxO1G1PO#GuQ!0MzO1G1POOQ!0Lf1G1P1G1PO#HxQMjO'#J{O#ISQ`O,5:xO#IXQ!0MxO1G1cO#I{Q,UO,5<WO#JTQ,UO,5<XO#J]Q,UO'#FoO#JtQ`O'#FnOOQO'#KX'#KXOOQO'#Im'#ImO#JyQ,UO1G1nOOQ!0Lf1G1n1G1nOOOW1G1y1G1yO#K[Q?MtO'#JqO#KfQ`O,5<bO!)PQlO,5<bOOOW-E<l-E<lOOQ!0Lf1G1l1G1lO#KkQpO'#KWOOQ!0Lf,5<d,5<dO#KsQpO,5<dO#KxQMhO'#DTOOOO'#Ia'#IaO#LPO#@ItO,59mOOQ!0Lh,59m,59mO%[QlO1G2PO!8XQ`O'#IqO#L[Q`O,5<zOOQ!0Lh,5<w,5<wO!+xQMhO'#ItO#LxQMjO,5=XO!+xQMhO'#IvO#MkQMjO,5=ZO!&oQMhO,5=]OOQO1G2S1G2SO#MuQ!dO'#CrO#NYQ(CWO'#ErO$ _QpO'#GbO$ uQ!dO,5<sO$ |Q`O'#KZO9aQ`O'#KZO$![Q`O,5<uO!+xQMhO,5<tO$!aQ`O'#GZO$!rQ`O,5<tO$!wQ!dO'#GWO$#UQ!dO'#K[O$#`Q`O'#K[O!&oQMhO'#K[O$#eQ`O,5<xO$#jQlO'#JuO$#tQpO'#GcO##tQpO'#GcO$$VQ`O'#GgO!3dQ`O'#GkO$$[Q!0LrO'#IsO$$gQpO,5<|OOQ!0Lp,5<|,5<|O$$nQpO'#GcO$${QpO'#GdO$%^QpO'#GdO$%cQMjO,5=XO$%sQMjO,5=ZOOQ!0Lh,5=^,5=^O!+xQMhO,5@UO!+xQMhO,5@UO$&TQ`O'#IxO$&iQ`O,5@TO$&qQ`O,59aOOQ!0Lh,59i,59iO$'hQ$IYO,59uOOQ!0Lh'#Jo'#JoO$(ZQMjO,5<kO$(|QMjO,5<mO@oQ`O,5<oOOQ!0Lh,5<p,5<pO$)WQ`O,5<vO$)]QMjO,5<{O$)mQ`O,5@UO$){Q`O'#KOO!$lQlO1G2RO$*QQ`O1G2RO9aQ`O'#KRO9aQ`O'#EtO%[QlO'#EtO9aQ`O'#IzO$*VQ!0LrO,5@zOOQ[1G2}1G2}OOQ[1G4_1G4_OOQ!0Lf1G/|1G/|OOQ!0Lf1G/z1G/zO$,XQ!0MxO1G0UOOQ[1G2y1G2yO!&oQMhO1G2yO%[QlO1G2yO#.YQ`O1G2yO$.]QMhO'#EkOOQ!0Lb,5@S,5@SO$.jQ!0LrO,5@SOOQ[1G.u1G.uO!BfQ!0LrO1G.uO!BqQpO1G.uO!ByQMhO1G.uO$.{Q`O1G0uO$/QQ`O'#CiO$/]Q`O'#KdO$/eQ`O,5={O$/jQ`O'#KdO$/oQ`O'#KdO$/}Q`O'#JQO$0]Q`O,5@}O$0eQ!fO1G1iOOQ!0Lf1G1k1G1kO9gQ`O1G3fO@oQ`O1G3fO$0lQ`O1G3fO$0qQ`O1G3fOOQ[1G3f1G3fO!DwQ`O1G3UO!&oQMhO1G3RO$0vQ`O1G3ROOQ[1G3S1G3SO!&oQMhO1G3SO$0{Q`O1G3SO$1TQpO'#HQOOQ[1G3U1G3UO!6SQpO'#I|O!D|Q!bO1G3XOOQ[1G3X1G3XOOQ[,5=r,5=rO$1]QMhO,5=tO9gQ`O,5=tO$$VQ`O,5=vO9[Q`O,5=vO!BqQpO,5=vO!ByQMhO,5=vO:`QMhO,5=vO$1kQ`O'#KbO$1vQ`O,5=wOOQ[1G.k1G.kO$1{Q!0LrO1G.kO@oQ`O1G.kO$2WQ`O1G.kO9qQ!0LrO1G.kO$4`Q!fO,5APO$4mQ`O,5APO9aQ`O,5APO$4xQlO,5>OO$5PQ`O,5>OOOQ[1G3h1G3hO`QlO1G3hOOQ[1G3n1G3nOOQ[1G3p1G3pO>xQ`O1G3rO$5UQlO1G3tO$9YQlO'#HsOOQ[1G3w1G3wO$9gQ`O'#HyO>}Q`O'#H{OOQ[1G3}1G3}O$9oQlO1G3}O9qQ!0LrO1G4TOOQ[1G4V1G4VOOQ!0Lb'#G_'#G_O9qQ!0LrO1G4XO9qQ!0LrO1G4ZO$=vQ`O,5@aO!)PQlO,5;`O9aQ`O,5;`O>}Q`O,5:XO!)PQlO,5:XO!BqQpO,5:XO$={Q?MtO,5:XOOQO,5;`,5;`O$>VQpO'#IdO$>mQ`O,5@`OOQ!0Lf1G/r1G/rO$>uQpO'#IjO$?PQ`O,5@oOOQ!0Lb1G0y1G0yO##tQpO,5:XOOQO'#If'#IfO$?XQpO,5:qOOQ!0Ln,5:q,5:qO#'oQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO>}Q`O1G0tO!BqQpO1G0tO!ByQMhO1G0tOOQ!0Lb1G5{1G5{O!BfQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$?`Q!0LrO1G0mO$?kQ!0LrO1G0mO!BqQpO1G0^OC{QpO1G0^O$?yQ!0LrO1G0mOOQO1G0^1G0^O$@_Q!0MxO1G0mPOOO-E<Z-E<ZPOOO1G.h1G.hOOOO1G/i1G/iO$@iQ!bO,5<iO$@qQ!fO1G4iOOQO1G4o1G4oO%[QlO,5>}O$@{Q`O1G5yO$ATQ`O1G6XO$A]Q!fO1G6YO9aQ`O,5?TO$AgQ!0MxO1G6VO%[QlO1G6VO$AwQ!0LrO1G6VO$BYQ`O1G6UO$BYQ`O1G6UO9aQ`O1G6UO$BbQ`O,5?WO9aQ`O,5?WOOQO,5?W,5?WO$BvQ`O,5?WO$){Q`O,5?WOOQO-E<j-E<jOOQS1G0a1G0aOOQS1G0c1G0cO#.QQ`O1G0cOOQ[7+(e7+(eO!&oQMhO7+(eO%[QlO7+(eO$CUQ`O7+(eO$CaQMhO7+(eO$CoQ!0MzO,5=XO$EzQ!0MzO,5=ZO$HVQ!0MzO,5=XO$JhQ!0MzO,5=ZO$LyQ!0MzO,59uO% OQ!0MzO,5<kO%#ZQ!0MzO,5<mO%%fQ!0MzO,5<{OOQ!0Lf7+&a7+&aO%'wQ!0MxO7+&aO%(kQlO'#IeO%(xQ`O,5@bO%)QQ!fO,5@bOOQ!0Lf1G0P1G0PO%)[Q`O7+&jOOQ!0Lf7+&j7+&jO%)aQ?MtO,5:fO%[QlO7+&zO%)kQ?MtO,5:bO%)xQ?MtO,5:jO%*SQ?MtO,5:lO%*^QMhO'#IhO%*hQ`O,5@gOOQ!0Lh1G0d1G0dOOQO1G1r1G1rOOQO1G1s1G1sO%*pQ!jO,5<ZO!)PQlO,5<YOOQO-E<k-E<kOOQ!0Lf7+'Y7+'YOOOW7+'e7+'eOOOW1G1|1G1|O%*{Q`O1G1|OOQ!0Lf1G2O1G2OOOOO,59o,59oO%+QQ!dO,59oOOOO-E<_-E<_OOQ!0Lh1G/X1G/XO%+XQ!0MxO7+'kOOQ!0Lh,5?],5?]O%+{QMhO1G2fP%,SQ`O'#IqPOQ!0Lh-E<o-E<oO%,pQMjO,5?`OOQ!0Lh-E<r-E<rO%-cQMjO,5?bOOQ!0Lh-E<t-E<tO%-mQ!dO1G2wO%-tQ!dO'#CrO%.[QMhO'#KRO$#jQlO'#JuOOQ!0Lh1G2_1G2_O%.cQ`O'#IpO%.wQ`O,5@uO%.wQ`O,5@uO%/PQ`O,5@uO%/[Q`O,5@uOOQO1G2a1G2aO%/jQMjO1G2`O!+xQMhO1G2`O%/zQ(CWO'#IrO%0XQ`O,5@vO!&oQMhO,5@vO%0aQ!dO,5@vOOQ!0Lh1G2d1G2dO%2qQ!fO'#CiO%2{Q`O,5=POOQ!0Lb,5<},5<}O%3TQpO,5<}OOQ!0Lb,5=O,5=OOClQ`O,5<}O%3`QpO,5<}OOQ!0Lb,5=R,5=RO$){Q`O,5=VOOQO,5?_,5?_OOQO-E<q-E<qOOQ!0Lp1G2h1G2hO##tQpO,5<}O$#jQlO,5=PO%3nQ`O,5=OO%3yQpO,5=OO!+xQMhO'#ItO%4sQMjO1G2sO!+xQMhO'#IvO%5fQMjO1G2uO%5pQMjO1G5pO%5zQMjO1G5pOOQO,5?d,5?dOOQO-E<v-E<vOOQO1G.{1G.{O!9xQpO,59wO%[QlO,59wOOQ!0Lh,5<j,5<jO%6XQ`O1G2ZO!+xQMhO1G2bO!+xQMhO1G5pO!+xQMhO1G5pO%6^Q!0MxO7+'mOOQ!0Lf7+'m7+'mO!$lQlO7+'mO%7QQ`O,5;`OOQ!0Lb,5?f,5?fOOQ!0Lb-E<x-E<xO%7VQ!dO'#K]O#'oQ`O7+(eO4UQ!fO7+(eO$CXQ`O7+(eO%7aQ!0MvO'#CiO%7tQ!0MvO,5=SO%8fQ`O,5=SO%8nQ`O,5=SOOQ!0Lb1G5n1G5nOOQ[7+$a7+$aO!BfQ!0LrO7+$aO!BqQpO7+$aO!$lQlO7+&aO%8sQ`O'#JPO%9[Q`O,5AOOOQO1G3g1G3gO9gQ`O,5AOO%9[Q`O,5AOO%9dQ`O,5AOOOQO,5?l,5?lOOQO-E=O-E=OOOQ!0Lf7+'T7+'TO%9iQ`O7+)QO9qQ!0LrO7+)QO9gQ`O7+)QO@oQ`O7+)QOOQ[7+(p7+(pO%9nQ!0MvO7+(mO!&oQMhO7+(mO!DrQ`O7+(nOOQ[7+(n7+(nO!&oQMhO7+(nO%9xQ`O'#KaO%:TQ`O,5=lOOQO,5?h,5?hOOQO-E<z-E<zOOQ[7+(s7+(sO%;gQpO'#HZOOQ[1G3`1G3`O!&oQMhO1G3`O%[QlO1G3`O%;nQ`O1G3`O%;yQMhO1G3`O9qQ!0LrO1G3bO$$VQ`O1G3bO9[Q`O1G3bO!BqQpO1G3bO!ByQMhO1G3bO%<XQ`O'#JOO%<mQ`O,5@|O%<uQpO,5@|OOQ!0Lb1G3c1G3cOOQ[7+$V7+$VO@oQ`O7+$VO9qQ!0LrO7+$VO%=QQ`O7+$VO%[QlO1G6kO%[QlO1G6lO%=VQ!0LrO1G6kO%=aQlO1G3jO%=hQ`O1G3jO%=mQlO1G3jOOQ[7+)S7+)SO9qQ!0LrO7+)^O`QlO7+)`OOQ['#Kg'#KgOOQ['#JR'#JRO%=tQlO,5>_OOQ[,5>_,5>_O%[QlO'#HtO%>RQ`O'#HvOOQ[,5>e,5>eO9aQ`O,5>eOOQ[,5>g,5>gOOQ[7+)i7+)iOOQ[7+)o7+)oOOQ[7+)s7+)sOOQ[7+)u7+)uO%>WQpO1G5{O%>rQ?MtO1G0zO%>|Q`O1G0zOOQO1G/s1G/sO%?XQ?MtO1G/sO>}Q`O1G/sO!)PQlO'#DmOOQO,5?O,5?OOOQO-E<b-E<bOOQO,5?U,5?UOOQO-E<h-E<hO!BqQpO1G/sOOQO-E<d-E<dOOQ!0Ln1G0]1G0]OOQ!0Lf7+%u7+%uO#'oQ`O7+%uOOQ!0Lf7+&`7+&`O>}Q`O7+&`O!BqQpO7+&`OOQO7+%x7+%xO$@_Q!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%?cQ!0LrO7+&XO!BfQ!0LrO7+%xO!BqQpO7+%xO%?nQ!0LrO7+&XO%?|Q!0MxO7++qO%[QlO7++qO%@^Q`O7++pO%@^Q`O7++pOOQO1G4r1G4rO9aQ`O1G4rO%@fQ`O1G4rOOQS7+%}7+%}O#'oQ`O<<LPO4UQ!fO<<LPO%@tQ`O<<LPOOQ[<<LP<<LPO!&oQMhO<<LPO%[QlO<<LPO%@|Q`O<<LPO%AXQ!0MzO,5?`O%CdQ!0MzO,5?bO%EoQ!0MzO1G2`O%HQQ!0MzO1G2sO%J]Q!0MzO1G2uO%LhQ!fO,5?PO%[QlO,5?POOQO-E<c-E<cO%LrQ`O1G5|OOQ!0Lf<<JU<<JUO%LzQ?MtO1G0uO& RQ?MtO1G1PO& YQ?MtO1G1PO&#ZQ?MtO1G1PO&#bQ?MtO1G1PO&%cQ?MtO1G1PO&'dQ?MtO1G1PO&'kQ?MtO1G1PO&'rQ?MtO1G1PO&)sQ?MtO1G1PO&)zQ?MtO1G1PO&*RQ!0MxO<<JfO&+yQ?MtO1G1PO&,vQ?MvO1G1PO&-yQ?MvO'#JkO&0PQ?MtO1G1cO&0^Q?MtO1G0UO&0hQMjO,5?SOOQO-E<f-E<fO!)PQlO'#FqOOQO'#KY'#KYOOQO1G1u1G1uO&0rQ`O1G1tO&0wQ?MtO,5?ZOOOW7+'h7+'hOOOO1G/Z1G/ZO&1RQ!dO1G4wOOQ!0Lh7+(Q7+(QP!&oQMhO,5?]O!+xQMhO7+(cO&1YQ`O,5?[O9aQ`O,5?[OOQO-E<n-E<nO&1hQ`O1G6aO&1hQ`O1G6aO&1pQ`O1G6aO&1{QMjO7+'zO&2]Q!dO,5?^O&2gQ`O,5?^O!&oQMhO,5?^OOQO-E<p-E<pO&2lQ!dO1G6bO&2vQ`O1G6bO&3OQ`O1G2kO!&oQMhO1G2kOOQ!0Lb1G2i1G2iOOQ!0Lb1G2j1G2jO%3TQpO1G2iO!BqQpO1G2iOClQ`O1G2iOOQ!0Lb1G2q1G2qO&3TQpO1G2iO&3cQ`O1G2kO$){Q`O1G2jOClQ`O1G2jO$#jQlO1G2kO&3kQ`O1G2jO&4_QMjO,5?`OOQ!0Lh-E<s-E<sO&5QQMjO,5?bOOQ!0Lh-E<u-E<uO!+xQMhO7++[OOQ!0Lh1G/c1G/cO&5[Q`O1G/cOOQ!0Lh7+'u7+'uO&5aQMjO7+'|O&5qQMjO7++[O&5{QMjO7++[O&6YQ!0MxO<<KXOOQ!0Lf<<KX<<KXO&6|Q`O1G0zO!&oQMhO'#IyO&7RQ`O,5@wO&9TQ!fO<<LPO!&oQMhO1G2nO&9[Q!0LrO1G2nOOQ[<<G{<<G{O!BfQ!0LrO<<G{O&9mQ!0MxO<<I{OOQ!0Lf<<I{<<I{OOQO,5?k,5?kO&:aQ`O,5?kO&:fQ`O,5?kOOQO-E<}-E<}O&:tQ`O1G6jO&:tQ`O1G6jO9gQ`O1G6jO@oQ`O<<LlOOQ[<<Ll<<LlO&:|Q`O<<LlO9qQ!0LrO<<LlOOQ[<<LX<<LXO%9nQ!0MvO<<LXOOQ[<<LY<<LYO!DrQ`O<<LYO&;RQpO'#I{O&;^Q`O,5@{O!)PQlO,5@{OOQ[1G3W1G3WOOQO'#I}'#I}O9qQ!0LrO'#I}O&;fQpO,5=uOOQ[,5=u,5=uO&;mQpO'#EgO&;tQpO'#GeO&;yQ`O7+(zO&<OQ`O7+(zOOQ[7+(z7+(zO!&oQMhO7+(zO%[QlO7+(zO&<WQ`O7+(zOOQ[7+(|7+(|O9qQ!0LrO7+(|O$$VQ`O7+(|O9[Q`O7+(|O!BqQpO7+(|O&<cQ`O,5?jOOQO-E<|-E<|OOQO'#H^'#H^O&<nQ`O1G6hO9qQ!0LrO<<GqOOQ[<<Gq<<GqO@oQ`O<<GqO&<vQ`O7+,VO&<{Q`O7+,WO%[QlO7+,VO%[QlO7+,WOOQ[7+)U7+)UO&=QQ`O7+)UO&=VQlO7+)UO&=^Q`O7+)UOOQ[<<Lx<<LxOOQ[<<Lz<<LzOOQ[-E=P-E=POOQ[1G3y1G3yO&=cQ`O,5>`OOQ[,5>b,5>bO&=hQ`O1G4PO9aQ`O7+&fO!)PQlO7+&fOOQO7+%_7+%_O&=mQ?MtO1G6YO>}Q`O7+%_OOQ!0Lf<<Ia<<IaOOQ!0Lf<<Iz<<IzO>}Q`O<<IzOOQO<<Is<<IsO$@_Q!0MxO<<IsO%[QlO<<IsOOQO<<Id<<IdO!BfQ!0LrO<<IdO&=wQ!0LrO<<IsO&>SQ!0MxO<= ]O&>dQ`O<= [OOQO7+*^7+*^O9aQ`O7+*^OOQ[ANAkANAkO&>lQ!fOANAkO!&oQMhOANAkO#'oQ`OANAkO4UQ!fOANAkO&>sQ`OANAkO%[QlOANAkO&>{Q!0MzO7+'zO&A^Q!0MzO,5?`O&CiQ!0MzO,5?bO&EtQ!0MzO7+'|O&HVQ!fO1G4kO&HaQ?MtO7+&aO&JeQ?MvO,5=XO&LlQ?MvO,5=ZO&L|Q?MvO,5=XO&M^Q?MvO,5=ZO&MnQ?MvO,59uO' tQ?MvO,5<kO'#wQ?MvO,5<mO'&]Q?MvO,5<{O'(RQ?MtO7+'kO'(`Q?MtO7+'mO'(mQ`O,5<]OOQO7+'`7+'`OOQ!0Lh7+*c7+*cO'(rQMjO<<K}OOQO1G4v1G4vO'(yQ`O1G4vO')UQ`O1G4vO')dQ`O7++{O')dQ`O7++{O!&oQMhO1G4xO')lQ!dO1G4xO')vQ`O7++|O'*OQ`O7+(VO'*ZQ!dO7+(VOOQ!0Lb7+(T7+(TOOQ!0Lb7+(U7+(UO!BqQpO7+(TOClQ`O7+(TO'*eQ`O7+(VO!&oQMhO7+(VO$){Q`O7+(UO'*jQ`O7+(VOClQ`O7+(UO'*rQMjO<<NvOOQ!0Lh7+$}7+$}O!+xQMhO<<NvO'*|Q!dO,5?eOOQO-E<w-E<wO'+WQ!0MvO7+(YO!&oQMhO7+(YOOQ[AN=gAN=gO9gQ`O1G5VOOQO1G5V1G5VO'+hQ`O1G5VO'+mQ`O7+,UO'+mQ`O7+,UO9qQ!0LrOANBWO@oQ`OANBWOOQ[ANBWANBWOOQ[ANAsANAsOOQ[ANAtANAtO'+uQ`O,5?gOOQO-E<y-E<yO',QQ?MtO1G6gOOQO,5?i,5?iOOQO-E<{-E<{OOQ[1G3a1G3aO',[Q`O,5=POOQ[<<Lf<<LfO!&oQMhO<<LfO&;yQ`O<<LfO',aQ`O<<LfO%[QlO<<LfOOQ[<<Lh<<LhO9qQ!0LrO<<LhO$$VQ`O<<LhO9[Q`O<<LhO',iQpO1G5UO',tQ`O7+,SOOQ[AN=]AN=]O9qQ!0LrOAN=]OOQ[<= q<= qOOQ[<= r<= rO',|Q`O<= qO'-RQ`O<= rOOQ[<<Lp<<LpO'-WQ`O<<LpO'-]QlO<<LpOOQ[1G3z1G3zO>}Q`O7+)kO'-dQ`O<<JQO'-oQ?MtO<<JQOOQO<<Hy<<HyOOQ!0LfAN?fAN?fOOQOAN?_AN?_O$@_Q!0MxOAN?_OOQOAN?OAN?OO%[QlOAN?_OOQO<<Mx<<MxOOQ[G27VG27VO!&oQMhOG27VO#'oQ`OG27VO'-yQ!fOG27VO4UQ!fOG27VO'.QQ`OG27VO'.YQ?MtO<<JfO'.gQ?MvO1G2`O'0]Q?MvO,5?`O'2`Q?MvO,5?bO'4cQ?MvO1G2sO'6fQ?MvO1G2uO'8iQ?MtO<<KXO'8vQ?MtO<<I{OOQO1G1w1G1wO!+xQMhOANAiOOQO7+*b7+*bO'9TQ`O7+*bO'9`Q`O<= gO'9hQ!dO7+*dOOQ!0Lb<<Kq<<KqO$){Q`O<<KqOClQ`O<<KqO'9rQ`O<<KqO!&oQMhO<<KqOOQ!0Lb<<Ko<<KoO!BqQpO<<KoO'9}Q!dO<<KqOOQ!0Lb<<Kp<<KpO':XQ`O<<KqO!&oQMhO<<KqO$){Q`O<<KpO':^QMjOANDbO':hQ!0MvO<<KtOOQO7+*q7+*qO9gQ`O7+*qO':xQ`O<= pOOQ[G27rG27rO9qQ!0LrOG27rO!)PQlO1G5RO';QQ`O7+,RO';YQ`O1G2kO&;yQ`OANBQOOQ[ANBQANBQO!&oQMhOANBQO';_Q`OANBQOOQ[ANBSANBSO9qQ!0LrOANBSO$$VQ`OANBSOOQO'#H_'#H_OOQO7+*p7+*pOOQ[G22wG22wOOQ[ANE]ANE]OOQ[ANE^ANE^OOQ[ANB[ANB[O';gQ`OANB[OOQ[<<MV<<MVO!)PQlOAN?lOOQOG24yG24yO$@_Q!0MxOG24yO#'oQ`OLD,qOOQ[LD,qLD,qO!&oQMhOLD,qO';lQ!fOLD,qO';sQ?MvO7+'zO'=iQ?MvO,5?`O'?lQ?MvO,5?bO'AoQ?MvO7+'|O'CeQMjOG27TOOQO<<M|<<M|OOQ!0LbANA]ANA]O$){Q`OANA]OClQ`OANA]O'CuQ!dOANA]OOQ!0LbANAZANAZO'C|Q`OANA]O!&oQMhOANA]O'DXQ!dOANA]OOQ!0LbANA[ANA[OOQO<<N]<<N]OOQ[LD-^LD-^O'DcQ?MtO7+*mOOQO'#Gf'#GfOOQ[G27lG27lO&;yQ`OG27lO!&oQMhOG27lOOQ[G27nG27nO9qQ!0LrOG27nOOQ[G27vG27vO'DmQ?MtOG25WOOQOLD*eLD*eOOQ[!$(!]!$(!]O#'oQ`O!$(!]O!&oQMhO!$(!]O'DwQ!0MzOG27TOOQ!0LbG26wG26wO$){Q`OG26wO'GYQ`OG26wOClQ`OG26wO'GeQ!dOG26wO!&oQMhOG26wOOQ[LD-WLD-WO&;yQ`OLD-WOOQ[LD-YLD-YOOQ[!)9Ew!)9EwO#'oQ`O!)9EwOOQ!0LbLD,cLD,cO$){Q`OLD,cOClQ`OLD,cO'GlQ`OLD,cO'GwQ!dOLD,cOOQ[!$(!r!$(!rOOQ[!.K;c!.K;cO'HOQ?MvOG27TOOQ!0Lb!$( }!$( }O$){Q`O!$( }OClQ`O!$( }O'ItQ`O!$( }OOQ!0Lb!)9Ei!)9EiO$){Q`O!)9EiOClQ`O!)9EiOOQ!0Lb!.K;T!.K;TO$){Q`O!.K;TOOQ!0Lb!4/0o!4/0oO!)PQlO'#DzO1PQ`O'#EXO'JPQ!fO'#JqO'JWQ!L^O'#DvO'J_QlO'#EOO'JfQ!fO'#CiO'L|Q!fO'#CiO!)PQlO'#EQO'M^QlO,5;ZO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO'#IoO( aQ`O,5<iO!)PQlO,5;eO( iQMhO,5;eO(#SQMhO,5;eO!)PQlO,5;wO!&oQMhO'#GmO( iQMhO'#GmO!&oQMhO'#GoO( iQMhO'#GoO1SQ`O'#DZO1SQ`O'#DZO!&oQMhO'#GPO( iQMhO'#GPO!&oQMhO'#GRO( iQMhO'#GRO!&oQMhO'#GaO( iQMhO'#GaO!)PQlO,5:jO(#ZQpO'#D_O(#eQpO'#JuO!)PQlO,5@nO'M^QlO1G0uO(#oQ?MtO'#CiO!)PQlO1G2PO!&oQMhO'#ItO( iQMhO'#ItO!&oQMhO'#IvO( iQMhO'#IvO(#yQ!dO'#CrO!&oQMhO,5<tO( iQMhO,5<tO'M^QlO1G2RO!)PQlO7+&zO!&oQMhO1G2`O( iQMhO1G2`O!&oQMhO'#ItO( iQMhO'#ItO!&oQMhO'#IvO( iQMhO'#IvO!&oQMhO1G2bO( iQMhO1G2bO'M^QlO7+'mO'M^QlO7+&aO!&oQMhOANAiO( iQMhOANAiO($^Q`O'#EoO($cQ`O'#EoO($kQ`O'#F]O($pQ`O'#EyO($uQ`O'#KSO(%QQ`O'#KQO(%]Q`O,5;ZO(%bQMjO,5<eO(%iQ`O'#GYO(%nQ`O'#GYO(%sQ`O,5<gO(%{Q`O,5;ZO(&TQ?MtO1G1`O(&[Q`O,5<tO(&aQ`O,5<tO(&fQ`O,5<vO(&kQ`O,5<vO(&pQ`O1G2RO(&uQ`O1G0uO(&zQMjO<<K}O('RQMjO<<K}O7eQMhO'#F|O9[Q`O'#F{OAjQ`O'#EnO!)PQlO,5;tO!3dQ`O'#GYO!3dQ`O'#GYO!3dQ`O'#G[O!3dQ`O'#G[O!+xQMhO7+(cO!+xQMhO7+(cO%-mQ!dO1G2wO%-mQ!dO1G2wO!&oQMhO,5=]O!&oQMhO,5=]",stateData:"((X~O'{OS'|OSTOS'}RQ~OPYOQYOSfOY!VOaqOdzOeyOl!POpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!uwO!xxO!|]O$W|O$niO%h}O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO&V!WO&]!XO&_!YO&a!ZO&c![O&f!]O&l!^O&r!_O&t!`O&v!aO&x!bO&z!cO(SSO(UTO(XUO(`VO(n[O~OWtO~P`OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(S!dO(UTO(XUO(`VO(n[O~Oa!wOs!nO!S!oO!b!yO!c!vO!d!vO!|;wO#T!pO#U!pO#V!xO#W!pO#X!pO#[!zO#]!zO(T!lO(UTO(XUO(d!mO(n!sO~O'}!{O~OP]XR]X[]Xa]Xj]Xr]X!Q]X!S]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X'y]X(`]X(q]X(x]X(y]X~O!g%RX~P(qO_!}O(U#PO(V!}O(W#PO~O_#QO(W#PO(X#PO(Y#QO~Ox#SO!U#TO(a#TO(b#VO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(S;{O(UTO(XUO(`VO(n[O~O![#ZO!]#WO!Y(gP!Y(uP~P+}O!^#cO~P`OPYOQYOSfOd!jOe!iOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(UTO(XUO(`VO(n[O~Op#mO![#iO!|]O#i#lO#j#iO(S;|O!k(rP~P.iO!l#oO(S#nO~O!x#sO!|]O%h#tO~O#k#uO~O!g#vO#k#uO~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!]$_O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(`VO(q$YO(x#|O(y#}O~Oa(eX'y(eX'v(eX!k(eX!Y(eX!_(eX%i(eX!g(eX~P1qO#S$dO#`$eO$Q$eOP(fXR(fX[(fXj(fXr(fX!Q(fX!S(fX!](fX!l(fX!p(fX#R(fX#n(fX#o(fX#p(fX#q(fX#r(fX#s(fX#t(fX#u(fX#v(fX#x(fX#z(fX#{(fX(`(fX(q(fX(x(fX(y(fX!_(fX%i(fX~Oa(fX'y(fX'v(fX!Y(fX!k(fXv(fX!g(fX~P4UO#`$eO~O$]$hO$_$gO$f$mO~OSfO!_$nO$i$oO$k$qO~Oh%VOj%cOk%cOl%cOp%WOr%XOs$tOt$tOz%YO|%ZO!O%[O!S${O!_$|O!i%aO!l$xO#j%bO$W%_O$t%]O$v%^O$y%`O(S$sO(UTO(XUO(`$uO(x$}O(y%POg(]P~O!l%dO~O!S%gO!_%hO(S%fO~O!g%lO~Oa%mO'y%mO~O!Q%qO~P%[O(T!lO~P%[O%n%uO~P%[Oh%VO!l%dO(S%fO(T!lO~Oe%|O!l%dO(S%fO~Oj$RO~O!Q&RO!_&OO!l&QO%j&UO(S%fO(T!lO(UTO(XUO`)VP~O!x#sO~O%s&WO!S)RX!_)RX(S)RX~O(S&XO~Ol!PO!u&^O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO~Od&cOe&bO!x&`O%h&aO%{&_O~P<VOd&fOeyOl!PO!_&eO!u&^O!xxO!|]O%h}O%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO~Ob&iO#`&lO%j&gO(T!lO~P=[O!l&mO!u&qO~O!l#oO~O!_XO~Oa%mO'w&yO'y%mO~Oa%mO'w&|O'y%mO~Oa%mO'w'OO'y%mO~O'v]X!Y]Xv]X!k]X&Z]X!_]X%i]X!g]X~P(qO!b']O!c'UO!d'UO(T!lO(UTO(XUO~Os'SO!S'RO!['VO(d'QO!^(hP!^(wP~P@cOn'`O!_'^O(S%fO~Oe'eO!l%dO(S%fO~O!Q&RO!l&QO~Os!nO!S!oO!|;wO#T!pO#U!pO#W!pO#X!pO(T!lO(UTO(XUO(d!mO(n!sO~O!b'kO!c'jO!d'jO#V!pO#['lO#]'lO~PA}Oa%mOh%VO!g#vO!l%dO'y%mO(q'nO~O!p'rO#`'pO~PC]Os!nO!S!oO(UTO(XUO(d!mO(n!sO~O!_XOs(lX!S(lX!b(lX!c(lX!d(lX!|(lX#T(lX#U(lX#V(lX#W(lX#X(lX#[(lX#](lX(T(lX(U(lX(X(lX(d(lX(n(lX~O!c'jO!d'jO(T!lO~PC{O(O'vO(P'vO(Q'xO~O_!}O(U'zO(V!}O(W'zO~O_#QO(W'zO(X'zO(Y#QO~Ov'|O~P%[Ox#SO!U#TO(a#TO(b(PO~O![(RO!Y'VX!Y']X!]'VX!]']X~P+}O!](TO!Y(gX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!](TO!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(`VO(q$YO(x#|O(y#}O~O!Y(gX~PGvO!Y(YO~O!Y(tX!](tX!g(tX!k(tX(q(tX~O#`(tX#k#dX!^(tX~PIyO#`(ZO!Y(vX!](vX~O!]([O!Y(uX~O!Y(_O~O#`$eO~PIyO!^(`O~P`OR#zO!Q#yO!S#{O!l#xO(`VOP!na[!naj!nar!na!]!na!p!na#R!na#n!na#o!na#p!na#q!na#r!na#s!na#t!na#u!na#v!na#x!na#z!na#{!na(q!na(x!na(y!na~Oa!na'y!na'v!na!Y!na!k!nav!na!_!na%i!na!g!na~PKaO!k(aO~O!g#vO#`(bO(q'nO!](sXa(sX'y(sX~O!k(sX~PM|O!S%gO!_%hO!|]O#i(gO#j(fO(S%fO~O!](hO!k(rX~O!k(jO~O!S%gO!_%hO#j(fO(S%fO~OP(fXR(fX[(fXj(fXr(fX!Q(fX!S(fX!](fX!l(fX!p(fX#R(fX#n(fX#o(fX#p(fX#q(fX#r(fX#s(fX#t(fX#u(fX#v(fX#x(fX#z(fX#{(fX(`(fX(q(fX(x(fX(y(fX~O!g#vO!k(fX~P! jOR(lO!Q(kO!l#xO#S$dO!|!{a!S!{a~O!x!{a%h!{a!_!{a#i!{a#j!{a(S!{a~P!#kO!x(pO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(S!dO(UTO(XUO(`VO(n[O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<eO!S${O!_$|O!i=vO!l$xO#j<kO$W%_O$t<gO$v<iO$y%`O(S(tO(UTO(XUO(`$uO(x$}O(y%PO~O#k(vO~O![(xO!k(jP~P%[O(d(zO(n[O~O!S(|O!l#xO(d(zO(n[O~OP;vOQ;vOSfOd=rOe!iOpkOr;vOskOtkOzkO|;vO!O;vO!SWO!WkO!XkO!_!eO!i;yO!lZO!o;vO!p;vO!q;vO!s;zO!u;}O!x!hO$W!kO$n=pO(S)ZO(UTO(XUO(`VO(n[O~O!]$_Oa$qa'y$qa'v$qa!k$qa!Y$qa!_$qa%i$qa!g$qa~Ol)bO~P!&oOh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O%[O!S${O!_$|O!i%aO!l$xO#j%bO$W%_O$t%]O$v%^O$y%`O(S(tO(UTO(XUO(`$uO(x$}O(y%PO~Og(oP~P!+xO!Q)gO!g)fO!_$^X$Z$^X$]$^X$_$^X$f$^X~O!g)fO!_(zX$Z(zX$](zX$_(zX$f(zX~O!Q)gO~P!.RO!Q)gO!_(zX$Z(zX$](zX$_(zX$f(zX~O!_)iO$Z)mO$])hO$_)hO$f)nO~O![)qO~P!)PO$]$hO$_$gO$f)uO~On$zX!Q$zX#S$zX'x$zX(x$zX(y$zX~OgmXg$zXnmX!]mX#`mX~P!/wOx)wO(a)xO(b)zO~On*TO!Q)|O'x)}O(x$}O(y%PO~Og){O~P!0{Og*UO~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<eO!S*WO!_*XO!i=vO!l$xO#j<kO$W%_O$t<gO$v<iO$y%`O(UTO(XUO(`$uO(x$}O(y%PO~O![*[O(S*VO!k(}P~P!1jO#k*^O~O!l*_O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<eO!S${O!_$|O!i=vO!l$xO#j<kO$W%_O$t<gO$v<iO$y%`O(S*aO(UTO(XUO(`$uO(x$}O(y%PO~O![*dO!Y)OP~P!3iOr*pOs!nO!S*fO!b*nO!c*hO!d*hO!l*_O#[*oO%`*jO(T!lO(UTO(XUO(d!mO~O!^*mO~P!5^O#S$dOn(_X!Q(_X'x(_X(x(_X(y(_X!](_X#`(_X~Og(_X$O(_X~P!6`On*uO#`*tOg(^X!](^X~O!]*vOg(]X~Oj%cOk%cOl%cO(S&XOg(]P~Os*yO~O!l+OO~O(S(tO~Op+TO!S%gO![#iO!_%hO!|]O#i#lO#j#iO(S%fO!k(rP~O!g#vO#k+UO~O!S%gO![+WO!]([O!_%hO(S%fO!Y(uP~Os'YO!S+YO![+XO(UTO(XUO(d(zO~O!^(wP~P!9iO!]+ZOa)SX'y)SX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(`VO(q$YO(x#|O(y#}O~Oa!ja!]!ja'y!ja'v!ja!Y!ja!k!jav!ja!_!ja%i!ja!g!ja~P!:aOR#zO!Q#yO!S#{O!l#xO(`VOP!ra[!raj!rar!ra!]!ra!p!ra#R!ra#n!ra#o!ra#p!ra#q!ra#r!ra#s!ra#t!ra#u!ra#v!ra#x!ra#z!ra#{!ra(q!ra(x!ra(y!ra~Oa!ra'y!ra'v!ra!Y!ra!k!rav!ra!_!ra%i!ra!g!ra~P!<wOR#zO!Q#yO!S#{O!l#xO(`VOP!ta[!taj!tar!ta!]!ta!p!ta#R!ta#n!ta#o!ta#p!ta#q!ta#r!ta#s!ta#t!ta#u!ta#v!ta#x!ta#z!ta#{!ta(q!ta(x!ta(y!ta~Oa!ta'y!ta'v!ta!Y!ta!k!tav!ta!_!ta%i!ta!g!ta~P!?_Oh%VOn+dO!_'^O%i+cO~O!g+fOa([X!_([X'y([X!]([X~Oa%mO!_XO'y%mO~Oh%VO!l%dO~Oh%VO!l%dO(S%fO~O!g#vO#k(vO~Ob+qO%j+rO(S+nO(UTO(XUO!^)WP~O!]+sO`)VX~O[+wO~O`+xO~O!_&OO(S%fO(T!lO`)VP~Oh%VO#`+}O~Oh%VOn,QO!_$|O~O!_,SO~O!Q,UO!_XO~O%n%uO~O!x,ZO~Oe,`O~Ob,aO(S#nO(UTO(XUO!^)UP~Oe%|O~O%j!QO(S&XO~P=[O[,fO`,eO~OPYOQYOSfOdzOeyOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!iuO!lZO!oYO!pYO!qYO!svO!xxO!|]O$niO%h}O(UTO(XUO(`VO(n[O~O!_!eO!u!gO$W!kO(S!dO~P!F_O`,eOa%mO'y%mO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!x!hO$W!kO$niO(S!dO(UTO(XUO(`VO(n[O~Oa,kOl!OO!uwO%l!OO%m!OO%n!OO~P!HwO!l&mO~O&],qO~O!_,sO~O&n,uO&p,vOP&kaQ&kaS&kaY&kaa&kad&kae&kal&kap&kar&kas&kat&kaz&ka|&ka!O&ka!S&ka!W&ka!X&ka!_&ka!i&ka!l&ka!o&ka!p&ka!q&ka!s&ka!u&ka!x&ka!|&ka$W&ka$n&ka%h&ka%j&ka%l&ka%m&ka%n&ka%q&ka%s&ka%v&ka%w&ka%y&ka&V&ka&]&ka&_&ka&a&ka&c&ka&f&ka&l&ka&r&ka&t&ka&v&ka&x&ka&z&ka'v&ka(S&ka(U&ka(X&ka(`&ka(n&ka!^&ka&d&kab&ka&i&ka~O(S,{O~Oh!eX!]!RX!^!RX!g!RX!g!eX!l!eX#`!RX~O!]!eX!^!eX~P# }O!g-QO#`-POh(iX!]#hX!^#hX!g(iX!l(iX~O!](iX!^(iX~P#!pOh%VO!g-SO!l%dO!]!aX!^!aX~Os!nO!S!oO(UTO(XUO(d!mO~OP;vOQ;vOSfOd=rOe!iOpkOr;vOskOtkOzkO|;vO!O;vO!SWO!WkO!XkO!_!eO!i;yO!lZO!o;vO!p;vO!q;vO!s;zO!u;}O!x!hO$W!kO$n=pO(UTO(XUO(`VO(n[O~O(S<rO~P#$VO!]-WO!^(hX~O!^-YO~O!g-QO#`-PO!]#hX!^#hX~O!]-ZO!^(wX~O!^-]O~O!c-^O!d-^O(T!lO~P##tO!^-aO~P'_On-dO!_'^O~O!Y-iO~Os!{a!b!{a!c!{a!d!{a#T!{a#U!{a#V!{a#W!{a#X!{a#[!{a#]!{a(T!{a(U!{a(X!{a(d!{a(n!{a~P!#kO!p-nO#`-lO~PC]O!c-pO!d-pO(T!lO~PC{Oa%mO#`-lO'y%mO~Oa%mO!g#vO#`-lO'y%mO~Oa%mO!g#vO!p-nO#`-lO'y%mO(q'nO~O(O'vO(P'vO(Q-uO~Ov-vO~O!Y'Va!]'Va~P!:aO![-zO!Y'VX!]'VX~P%[O!](TO!Y(ga~O!Y(ga~PGvO!]([O!Y(ua~O!S%gO![.OO!_%hO(S%fO!Y']X!]']X~O#`.QO!](sa!k(saa(sa'y(sa~O!g#vO~P#,]O!](hO!k(ra~O!S%gO!_%hO#j.UO(S%fO~Op.ZO!S%gO![.WO!_%hO!|]O#i.YO#j.WO(S%fO!]'`X!k'`X~OR._O!l#xO~Oh%VOn.bO!_'^O%i.aO~Oa#ci!]#ci'y#ci'v#ci!Y#ci!k#civ#ci!_#ci%i#ci!g#ci~P!:aOn=|O!Q)|O'x)}O(x$}O(y%PO~O#k#_aa#_a#`#_a'y#_a!]#_a!k#_a!_#_a!Y#_a~P#/XO#k(_XP(_XR(_X[(_Xa(_Xj(_Xr(_X!S(_X!l(_X!p(_X#R(_X#n(_X#o(_X#p(_X#q(_X#r(_X#s(_X#t(_X#u(_X#v(_X#x(_X#z(_X#{(_X'y(_X(`(_X(q(_X!k(_X!Y(_X'v(_Xv(_X!_(_X%i(_X!g(_X~P!6`O!].oO!k(jX~P!:aO!k.rO~O!Y.tO~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(`VO[#mia#mij#mir#mi!]#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'y#mi(q#mi(x#mi(y#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#n#mi~P#2wO#n$OO~P#2wOP$[OR#zOr$aO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(`VO[#mia#mij#mi!]#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'y#mi(q#mi(x#mi(y#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#r#mi~P#5fO#r$QO~P#5fOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO(`VOa#mi!]#mi#x#mi#z#mi#{#mi'y#mi(q#mi(x#mi(y#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#v#mi~P#8TOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO(`VO(y#}Oa#mi!]#mi#z#mi#{#mi'y#mi(q#mi(x#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#x$UO~P#:kO#x#mi~P#:kO#v$SO~P#8TOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO(`VO(x#|O(y#}Oa#mi!]#mi#{#mi'y#mi(q#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#z#mi~P#=aO#z$WO~P#=aOP]XR]X[]Xj]Xr]X!Q]X!S]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(`]X(q]X(x]X(y]X!]]X!^]X~O$O]X~P#@OOP$[OR#zO[<_Oj<SOr<]O!Q#yO!S#{O!l#xO!p$[O#R<SO#n<PO#o<QO#p<QO#q<QO#r<RO#s<SO#t<SO#u<^O#v<TO#x<VO#z<XO#{<YO(`VO(q$YO(x#|O(y#}O~O$O.vO~P#B]O#S$dO#`<`O$Q<`O$O(fX!^(fX~P! jOa'ca!]'ca'y'ca'v'ca!k'ca!Y'cav'ca!_'ca%i'ca!g'ca~P!:aO[#mia#mij#mir#mi!]#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'y#mi(q#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(`VO(x#mi(y#mi~P#E_On=|O!Q)|O'x)}O(x$}O(y%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(`#mi~P#E_O!].zOg(oX~P!0{Og.|O~Oa$Pi!]$Pi'y$Pi'v$Pi!Y$Pi!k$Piv$Pi!_$Pi%i$Pi!g$Pi~P!:aO$].}O$_.}O~O$]/OO$_/OO~O!g)fO#`/PO!_$cX$Z$cX$]$cX$_$cX$f$cX~O![/QO~O!_)iO$Z/SO$])hO$_)hO$f/TO~O!]<ZO!^(eX~P#B]O!^/UO~O!g)fO$f(zX~O$f/WO~Ov/XO~P!&oOx)wO(a)xO(b/[O~O!S/_O~O(x$}On%aa!Q%aa'x%aa(y%aa!]%aa#`%aa~Og%aa$O%aa~P#LaO(y%POn%ca!Q%ca'x%ca(x%ca!]%ca#`%ca~Og%ca$O%ca~P#MSO!]fX!gfX!kfX!k$zX(qfX~P!/wO![/hO!]([O(S/gO!Y(uP!Y)OP~P!1jOr*pO!b*nO!c*hO!d*hO!l*_O#[*oO%`*jO(T!lO(UTO(XUO~Os<oO!S/iO![+XO!^*mO(d<nO!^(wP~P#NmO!k/jO~P#/XO!]/kO!g#vO(q'nO!k(}X~O!k/pO~O!S%gO![*[O!_%hO(S%fO!k(}P~O#k/rO~O!Y$zX!]$zX!g%RX~P!/wO!]/sO!Y)OX~P#/XO!g/uO~O!Y/wO~OpkO(S/xO~P.iOh%VOr/}O!g#vO!l%dO(q'nO~O!g+fO~Oa%mO!]0RO'y%mO~O!^0TO~P!5^O!c0UO!d0UO(T!lO~P##tOs!nO!S0VO(UTO(XUO(d!mO~O#[0XO~Og%aa!]%aa#`%aa$O%aa~P!0{Og%ca!]%ca#`%ca$O%ca~P!0{Oj%cOk%cOl%cO(S&XOg'lX!]'lX~O!]*vOg(]a~Og0bO~OR0cO!Q0cO!S0dO#S$dOn}a'x}a(x}a(y}a!]}a#`}a~Og}a$O}a~P$&vO!Q)|O'x)}On$sa(x$sa(y$sa!]$sa#`$sa~Og$sa$O$sa~P$'rO!Q)|O'x)}On$ua(x$ua(y$ua!]$ua#`$ua~Og$ua$O$ua~P$(eO#k0gO~Og%Ta!]%Ta#`%Ta$O%Ta~P!0{On0iO#`0hOg(^a!](^a~O!g#vO~O#k0lO~O!]+ZOa)Sa'y)Sa~OR#zO!Q#yO!S#{O!l#xO(`VOP!ri[!rij!rir!ri!]!ri!p!ri#R!ri#n!ri#o!ri#p!ri#q!ri#r!ri#s!ri#t!ri#u!ri#v!ri#x!ri#z!ri#{!ri(q!ri(x!ri(y!ri~Oa!ri'y!ri'v!ri!Y!ri!k!riv!ri!_!ri%i!ri!g!ri~P$*bOh%VOr%XOs$tOt$tOz%YO|%ZO!O<eO!S${O!_$|O!i=vO!l$xO#j<kO$W%_O$t<gO$v<iO$y%`O(UTO(XUO(`$uO(x$}O(y%PO~Op0uO%]0vO(S0tO~P$,xO!g+fOa([a!_([a'y([a!]([a~O#k0|O~O[]X!]fX!^fX~O!]0}O!^)WX~O!^1PO~O[1QO~Ob1SO(S+nO(UTO(XUO~O!_&OO(S%fO`'tX!]'tX~O!]+sO`)Va~O!k1VO~P!:aO[1YO~O`1ZO~O#`1^O~On1aO!_$|O~O(d(zO!^)TP~Oh%VOn1jO!_1gO%i1iO~O[1tO!]1rO!^)UX~O!^1uO~O`1wOa%mO'y%mO~O(S#nO(UTO(XUO~O#S$dO#`$eO$Q$eOP(fXR(fX[(fXr(fX!Q(fX!S(fX!](fX!l(fX!p(fX#R(fX#n(fX#o(fX#p(fX#q(fX#r(fX#s(fX#t(fX#u(fX#v(fX#x(fX#z(fX#{(fX(`(fX(q(fX(x(fX(y(fX~Oj1zO&Z1{Oa(fX~P$2cOj1zO#`$eO&Z1{O~Oa1}O~P%[Oa2PO~O&d2SOP&biQ&biS&biY&bia&bid&bie&bil&bip&bir&bis&bit&biz&bi|&bi!O&bi!S&bi!W&bi!X&bi!_&bi!i&bi!l&bi!o&bi!p&bi!q&bi!s&bi!u&bi!x&bi!|&bi$W&bi$n&bi%h&bi%j&bi%l&bi%m&bi%n&bi%q&bi%s&bi%v&bi%w&bi%y&bi&V&bi&]&bi&_&bi&a&bi&c&bi&f&bi&l&bi&r&bi&t&bi&v&bi&x&bi&z&bi'v&bi(S&bi(U&bi(X&bi(`&bi(n&bi!^&bib&bi&i&bi~Ob2YO!^2WO&i2XO~P`O!_XO!l2[O~O&p,vOP&kiQ&kiS&kiY&kia&kid&kie&kil&kip&kir&kis&kit&kiz&ki|&ki!O&ki!S&ki!W&ki!X&ki!_&ki!i&ki!l&ki!o&ki!p&ki!q&ki!s&ki!u&ki!x&ki!|&ki$W&ki$n&ki%h&ki%j&ki%l&ki%m&ki%n&ki%q&ki%s&ki%v&ki%w&ki%y&ki&V&ki&]&ki&_&ki&a&ki&c&ki&f&ki&l&ki&r&ki&t&ki&v&ki&x&ki&z&ki'v&ki(S&ki(U&ki(X&ki(`&ki(n&ki!^&ki&d&kib&ki&i&ki~O!Y2bO~O!]!aa!^!aa~P#B]Os!nO!S!oO![2hO(d!mO!]'WX!^'WX~P@cO!]-WO!^(ha~O!]'^X!^'^X~P!9iO!]-ZO!^(wa~O!^2oO~P'_Oa%mO#`2xO'y%mO~Oa%mO!g#vO#`2xO'y%mO~Oa%mO!g#vO!p2|O#`2xO'y%mO(q'nO~Oa%mO'y%mO~P!:aO!]$_Ov$qa~O!Y'Vi!]'Vi~P!:aO!](TO!Y(gi~O!]([O!Y(ui~O!Y(vi!](vi~P!:aO!](si!k(sia(si'y(si~P!:aO#`3OO!](si!k(sia(si'y(si~O!](hO!k(ri~O!S%gO!_%hO!|]O#i3TO#j3SO(S%fO~O!S%gO!_%hO#j3SO(S%fO~On3[O!_'^O%i3ZO~Oh%VOn3[O!_'^O%i3ZO~O#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa'y%aa(`%aa(q%aa!k%aa!Y%aa'v%aav%aa!_%aa%i%aa!g%aa~P#LaO#k%caP%caR%ca[%caa%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca'y%ca(`%ca(q%ca!k%ca!Y%ca'v%cav%ca!_%ca%i%ca!g%ca~P#MSO#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!]%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa'y%aa(`%aa(q%aa!k%aa!Y%aa'v%aa#`%aav%aa!_%aa%i%aa!g%aa~P#/XO#k%caP%caR%ca[%caa%caj%car%ca!S%ca!]%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca'y%ca(`%ca(q%ca!k%ca!Y%ca'v%ca#`%cav%ca!_%ca%i%ca!g%ca~P#/XO#k}aP}a[}aa}aj}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a'y}a(`}a(q}a!k}a!Y}a'v}av}a!_}a%i}a!g}a~P$&vO#k$saP$saR$sa[$saa$saj$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa'y$sa(`$sa(q$sa!k$sa!Y$sa'v$sav$sa!_$sa%i$sa!g$sa~P$'rO#k$uaP$uaR$ua[$uaa$uaj$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua'y$ua(`$ua(q$ua!k$ua!Y$ua'v$uav$ua!_$ua%i$ua!g$ua~P$(eO#k%TaP%TaR%Ta[%Taa%Taj%Tar%Ta!S%Ta!]%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta'y%Ta(`%Ta(q%Ta!k%Ta!Y%Ta'v%Ta#`%Tav%Ta!_%Ta%i%Ta!g%Ta~P#/XOa#cq!]#cq'y#cq'v#cq!Y#cq!k#cqv#cq!_#cq%i#cq!g#cq~P!:aO![3dO!]'XX!k'XX~P%[O!].oO!k(ja~O!].oO!k(ja~P!:aO!Y3gO~O$O!na!^!na~PKaO$O!ja!]!ja!^!ja~P#B]O$O!ra!^!ra~P!<wO$O!ta!^!ta~P!?_Og'[X!]'[X~P!+xO!].zOg(oa~OSfO!_3{O$d3|O~O!^4QO~Ov4RO~P#/XOa$mq!]$mq'y$mq'v$mq!Y$mq!k$mqv$mq!_$mq%i$mq!g$mq~P!:aO!Y4TO~P!&oO!S4UO~O!Q)|O'x)}O(y%POn'ha(x'ha!]'ha#`'ha~Og'ha$O'ha~P%,XO!Q)|O'x)}On'ja(x'ja(y'ja!]'ja#`'ja~Og'ja$O'ja~P%,zO(q$YO~P#/XO!YfX!Y$zX!]fX!]$zX!g%RX#`fX~P!/wO(S<xO~P!1jO!S%gO![4XO!_%hO(S%fO!]'dX!k'dX~O!]/kO!k(}a~O!]/kO!g#vO!k(}a~O!]/kO!g#vO(q'nO!k(}a~Og$|i!]$|i#`$|i$O$|i~P!0{O![4aO!Y'fX!]'fX~P!3iO!]/sO!Y)Oa~O!]/sO!Y)Oa~P#/XOP]XR]X[]Xj]Xr]X!Q]X!S]X!Y]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(`]X(q]X(x]X(y]X~Oj%YX!g%YX~P%0kOj4fO!g#vO~Oh%VO!g#vO!l%dO~Oh%VOr4kO!l%dO(q'nO~Or4pO!g#vO(q'nO~Os!nO!S4qO(UTO(XUO(d!mO~O(x$}On%ai!Q%ai'x%ai(y%ai!]%ai#`%ai~Og%ai$O%ai~P%4[O(y%POn%ci!Q%ci'x%ci(x%ci!]%ci#`%ci~Og%ci$O%ci~P%4}Og(^i!](^i~P!0{O#`4wOg(^i!](^i~P!0{O!k4zO~Oa$oq!]$oq'y$oq'v$oq!Y$oq!k$oqv$oq!_$oq%i$oq!g$oq~P!:aO!Y5QO~O!]5RO!_)PX~P#/XOa$zX!_$zX%^]X'y$zX!]$zX~P!/wO%^5UOaoXnoX!QoX!_oX'xoX'yoX(xoX(yoX!]oX~Op5VO(S#nO~O%^5UO~Ob5]O%j5^O(S+nO(UTO(XUO!]'sX!^'sX~O!]0}O!^)Wa~O[5bO~O`5cO~Oa%mO'y%mO~P#/XO!]5kO#`5mO!^)TX~O!^5nO~Or5tOs!nO!S*fO!b!yO!c!vO!d!vO!|;wO#T!pO#U!pO#V!pO#W!pO#X!pO#[5sO#]!zO(T!lO(UTO(XUO(d!mO(n!sO~O!^5rO~P%:YOn5yO!_1gO%i5xO~Oh%VOn5yO!_1gO%i5xO~Ob6QO(S#nO(UTO(XUO!]'rX!^'rX~O!]1rO!^)Ua~O(UTO(XUO(d6SO~O`6WO~Oj6ZO&Z6[O~PM|O!k6]O~P%[Oa6_O~Oa6_O~P%[Ob2YO!^6dO&i2XO~P`O!g6fO~O!g6hOh(ii!](ii!^(ii!g(ii!l(iir(ii(q(ii~O!]#hi!^#hi~P#B]O#`6iO!]#hi!^#hi~O!]!ai!^!ai~P#B]Oa%mO#`6rO'y%mO~Oa%mO!g#vO#`6rO'y%mO~O!](sq!k(sqa(sq'y(sq~P!:aO!](hO!k(rq~O!S%gO!_%hO#j6yO(S%fO~O!_'^O%i6|O~On7QO!_'^O%i6|O~O#k'haP'haR'ha['haa'haj'har'ha!S'ha!l'ha!p'ha#R'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#t'ha#u'ha#v'ha#x'ha#z'ha#{'ha'y'ha(`'ha(q'ha!k'ha!Y'ha'v'hav'ha!_'ha%i'ha!g'ha~P%,XO#k'jaP'jaR'ja['jaa'jaj'jar'ja!S'ja!l'ja!p'ja#R'ja#n'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#x'ja#z'ja#{'ja'y'ja(`'ja(q'ja!k'ja!Y'ja'v'jav'ja!_'ja%i'ja!g'ja~P%,zO#k$|iP$|iR$|i[$|ia$|ij$|ir$|i!S$|i!]$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i'y$|i(`$|i(q$|i!k$|i!Y$|i'v$|i#`$|iv$|i!_$|i%i$|i!g$|i~P#/XO#k%aiP%aiR%ai[%aia%aij%air%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai'y%ai(`%ai(q%ai!k%ai!Y%ai'v%aiv%ai!_%ai%i%ai!g%ai~P%4[O#k%ciP%ciR%ci[%cia%cij%cir%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci'y%ci(`%ci(q%ci!k%ci!Y%ci'v%civ%ci!_%ci%i%ci!g%ci~P%4}O!]'Xa!k'Xa~P!:aO!].oO!k(ji~O$O#ci!]#ci!^#ci~P#B]OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(`VO[#mij#mir#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(q#mi(x#mi(y#mi!]#mi!^#mi~O#n#mi~P%MXO#n<PO~P%MXOP$[OR#zOr<]O!Q#yO!S#{O!l#xO!p$[O#n<PO#o<QO#p<QO#q<QO(`VO[#mij#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(q#mi(x#mi(y#mi!]#mi!^#mi~O#r#mi~P& aO#r<RO~P& aOP$[OR#zO[<_Oj<SOr<]O!Q#yO!S#{O!l#xO!p$[O#R<SO#n<PO#o<QO#p<QO#q<QO#r<RO#s<SO#t<SO#u<^O(`VO#x#mi#z#mi#{#mi$O#mi(q#mi(x#mi(y#mi!]#mi!^#mi~O#v#mi~P&#iOP$[OR#zO[<_Oj<SOr<]O!Q#yO!S#{O!l#xO!p$[O#R<SO#n<PO#o<QO#p<QO#q<QO#r<RO#s<SO#t<SO#u<^O#v<TO(`VO(y#}O#z#mi#{#mi$O#mi(q#mi(x#mi!]#mi!^#mi~O#x<VO~P&%jO#x#mi~P&%jO#v<TO~P&#iOP$[OR#zO[<_Oj<SOr<]O!Q#yO!S#{O!l#xO!p$[O#R<SO#n<PO#o<QO#p<QO#q<QO#r<RO#s<SO#t<SO#u<^O#v<TO#x<VO(`VO(x#|O(y#}O#{#mi$O#mi(q#mi!]#mi!^#mi~O#z#mi~P&'yO#z<XO~P&'yOa#|y!]#|y'y#|y'v#|y!Y#|y!k#|yv#|y!_#|y%i#|y!g#|y~P!:aO[#mij#mir#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(q#mi!]#mi!^#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n<PO#o<QO#p<QO#q<QO(`VO(x#mi(y#mi~P&*uOn=}O!Q)|O'x)}O(x$}O(y%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(`#mi~P&*uO#S$dOP(_XR(_X[(_Xj(_Xn(_Xr(_X!Q(_X!S(_X!l(_X!p(_X#R(_X#n(_X#o(_X#p(_X#q(_X#r(_X#s(_X#t(_X#u(_X#v(_X#x(_X#z(_X#{(_X$O(_X'x(_X(`(_X(q(_X(x(_X(y(_X!](_X!^(_X~O$O$Pi!]$Pi!^$Pi~P#B]O$O!ri!^!ri~P$*bOg'[a!]'[a~P!0{O!^7dO~O!]'ca!^'ca~P#B]O!Y7eO~P#/XO!g#vO(q'nO!]'da!k'da~O!]/kO!k(}i~O!]/kO!g#vO!k(}i~Og$|q!]$|q#`$|q$O$|q~P!0{O!Y'fa!]'fa~P#/XO!g7lO~O!]/sO!Y)Oi~P#/XO!]/sO!Y)Oi~O!Y7oO~Oh%VOr7tO!l%dO(q'nO~Oj7vO!g#vO~Or7yO!g#vO(q'nO~O!Q)|O'x)}O(y%POn'ia(x'ia!]'ia#`'ia~Og'ia$O'ia~P&3vO!Q)|O'x)}On'ka(x'ka(y'ka!]'ka#`'ka~Og'ka$O'ka~P&4iO!Y7{O~Og%Oq!]%Oq#`%Oq$O%Oq~P!0{Og(^q!](^q~P!0{O#`7|Og(^q!](^q~P!0{Oa$oy!]$oy'y$oy'v$oy!Y$oy!k$oyv$oy!_$oy%i$oy!g$oy~P!:aO!g6hO~O!]5RO!_)Pa~O!_'^OP$TaR$Ta[$Taj$Tar$Ta!Q$Ta!S$Ta!]$Ta!l$Ta!p$Ta#R$Ta#n$Ta#o$Ta#p$Ta#q$Ta#r$Ta#s$Ta#t$Ta#u$Ta#v$Ta#x$Ta#z$Ta#{$Ta(`$Ta(q$Ta(x$Ta(y$Ta~O%i6|O~P&7ZO%^8QOa%[i!_%[i'y%[i!]%[i~Oa#cy!]#cy'y#cy'v#cy!Y#cy!k#cyv#cy!_#cy%i#cy!g#cy~P!:aO[8SO~Ob8UO(S+nO(UTO(XUO~O!]0}O!^)Wi~O`8YO~O(d(zO!]'oX!^'oX~O!]5kO!^)Ta~O!^8cO~P%:YO(n!sO~P$${O#[8dO~O!_1gO~O!_1gO%i8fO~On8iO!_1gO%i8fO~O[8nO!]'ra!^'ra~O!]1rO!^)Ui~O!k8rO~O!k8sO~O!k8vO~O!k8vO~P%[Oa8xO~O!g8yO~O!k8zO~O!](vi!^(vi~P#B]Oa%mO#`9SO'y%mO~O!](sy!k(sya(sy'y(sy~P!:aO!](hO!k(ry~O%i9VO~P&7ZO!_'^O%i9VO~O#k$|qP$|qR$|q[$|qa$|qj$|qr$|q!S$|q!]$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q'y$|q(`$|q(q$|q!k$|q!Y$|q'v$|q#`$|qv$|q!_$|q%i$|q!g$|q~P#/XO#k'iaP'iaR'ia['iaa'iaj'iar'ia!S'ia!l'ia!p'ia#R'ia#n'ia#o'ia#p'ia#q'ia#r'ia#s'ia#t'ia#u'ia#v'ia#x'ia#z'ia#{'ia'y'ia(`'ia(q'ia!k'ia!Y'ia'v'iav'ia!_'ia%i'ia!g'ia~P&3vO#k'kaP'kaR'ka['kaa'kaj'kar'ka!S'ka!l'ka!p'ka#R'ka#n'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#x'ka#z'ka#{'ka'y'ka(`'ka(q'ka!k'ka!Y'ka'v'kav'ka!_'ka%i'ka!g'ka~P&4iO#k%OqP%OqR%Oq[%Oqa%Oqj%Oqr%Oq!S%Oq!]%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq'y%Oq(`%Oq(q%Oq!k%Oq!Y%Oq'v%Oq#`%Oqv%Oq!_%Oq%i%Oq!g%Oq~P#/XO!]'Xi!k'Xi~P!:aO$O#cq!]#cq!^#cq~P#B]O(x$}OP%aaR%aa[%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa$O%aa(`%aa(q%aa!]%aa!^%aa~On%aa!Q%aa'x%aa(y%aa~P&HnO(y%POP%caR%ca[%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca$O%ca(`%ca(q%ca!]%ca!^%ca~On%ca!Q%ca'x%ca(x%ca~P&JuOn=}O!Q)|O'x)}O(y%PO~P&HnOn=}O!Q)|O'x)}O(x$}O~P&JuOR0cO!Q0cO!S0dO#S$dOP}a[}aj}an}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a$O}a'x}a(`}a(q}a(x}a(y}a!]}a!^}a~O!Q)|O'x)}OP$saR$sa[$saj$san$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa$O$sa(`$sa(q$sa(x$sa(y$sa!]$sa!^$sa~O!Q)|O'x)}OP$uaR$ua[$uaj$uan$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua$O$ua(`$ua(q$ua(x$ua(y$ua!]$ua!^$ua~On=}O!Q)|O'x)}O(x$}O(y%PO~OP%TaR%Ta[%Taj%Tar%Ta!S%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta$O%Ta(`%Ta(q%Ta!]%Ta!^%Ta~P'%zO$O$mq!]$mq!^$mq~P#B]O$O$oq!]$oq!^$oq~P#B]O!^9dO~O$O9eO~P!0{O!g#vO!]'di!k'di~O!g#vO(q'nO!]'di!k'di~O!]/kO!k(}q~O!Y'fi!]'fi~P#/XO!]/sO!Y)Oq~Or9lO!g#vO(q'nO~O[9nO!Y9mO~P#/XO!Y9mO~Oj9tO!g#vO~Og(^y!](^y~P!0{O!]'ma!_'ma~P#/XOa%[q!_%[q'y%[q!]%[q~P#/XO[9yO~O!]0}O!^)Wq~O#`9}O!]'oa!^'oa~O!]5kO!^)Ti~P#B]O!S:PO~O!_1gO%i:SO~O(UTO(XUO(d:XO~O!]1rO!^)Uq~O!k:[O~O!k:]O~O!k:^O~O!k:^O~P%[O#`:aO!]#hy!^#hy~O!]#hy!^#hy~P#B]O%i:fO~P&7ZO!_'^O%i:fO~O$O#|y!]#|y!^#|y~P#B]OP$|iR$|i[$|ij$|ir$|i!S$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i$O$|i(`$|i(q$|i!]$|i!^$|i~P'%zO!Q)|O'x)}O(y%POP'haR'ha['haj'han'har'ha!S'ha!l'ha!p'ha#R'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#t'ha#u'ha#v'ha#x'ha#z'ha#{'ha$O'ha(`'ha(q'ha(x'ha!]'ha!^'ha~O!Q)|O'x)}OP'jaR'ja['jaj'jan'jar'ja!S'ja!l'ja!p'ja#R'ja#n'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#x'ja#z'ja#{'ja$O'ja(`'ja(q'ja(x'ja(y'ja!]'ja!^'ja~O(x$}OP%aiR%ai[%aij%ain%air%ai!Q%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai$O%ai'x%ai(`%ai(q%ai(y%ai!]%ai!^%ai~O(y%POP%ciR%ci[%cij%cin%cir%ci!Q%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci$O%ci'x%ci(`%ci(q%ci(x%ci!]%ci!^%ci~O$O$oy!]$oy!^$oy~P#B]O$O#cy!]#cy!^#cy~P#B]O!g#vO!]'dq!k'dq~O!]/kO!k(}y~O!Y'fq!]'fq~P#/XOr:pO!g#vO(q'nO~O[:tO!Y:sO~P#/XO!Y:sO~Og(^!R!](^!R~P!0{Oa%[y!_%[y'y%[y!]%[y~P#/XO!]0}O!^)Wy~O!]5kO!^)Tq~O(S:zO~O!_1gO%i:}O~O!k;QO~O%i;VO~P&7ZOP$|qR$|q[$|qj$|qr$|q!S$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q$O$|q(`$|q(q$|q!]$|q!^$|q~P'%zO!Q)|O'x)}O(y%POP'iaR'ia['iaj'ian'iar'ia!S'ia!l'ia!p'ia#R'ia#n'ia#o'ia#p'ia#q'ia#r'ia#s'ia#t'ia#u'ia#v'ia#x'ia#z'ia#{'ia$O'ia(`'ia(q'ia(x'ia!]'ia!^'ia~O!Q)|O'x)}OP'kaR'ka['kaj'kan'kar'ka!S'ka!l'ka!p'ka#R'ka#n'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#x'ka#z'ka#{'ka$O'ka(`'ka(q'ka(x'ka(y'ka!]'ka!^'ka~OP%OqR%Oq[%Oqj%Oqr%Oq!S%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq$O%Oq(`%Oq(q%Oq!]%Oq!^%Oq~P'%zOg%e!Z!]%e!Z#`%e!Z$O%e!Z~P!0{O!Y;ZO~P#/XOr;[O!g#vO(q'nO~O[;^O!Y;ZO~P#/XO!]'oq!^'oq~P#B]O!]#h!Z!^#h!Z~P#B]O#k%e!ZP%e!ZR%e!Z[%e!Za%e!Zj%e!Zr%e!Z!S%e!Z!]%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z'y%e!Z(`%e!Z(q%e!Z!k%e!Z!Y%e!Z'v%e!Z#`%e!Zv%e!Z!_%e!Z%i%e!Z!g%e!Z~P#/XOr;fO!g#vO(q'nO~O!Y;gO~P#/XOr;nO!g#vO(q'nO~O!Y;oO~P#/XOP%e!ZR%e!Z[%e!Zj%e!Zr%e!Z!S%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z$O%e!Z(`%e!Z(q%e!Z!]%e!Z!^%e!Z~P'%zOr;rO!g#vO(q'nO~Ov(eX~P1qO!Q%qO~P!)PO(T!lO~P!)PO!YfX!]fX#`fX~P%0kOP]XR]X[]Xj]Xr]X!Q]X!S]X!]]X!]fX!l]X!p]X#R]X#S]X#`]X#`fX#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(`]X(q]X(x]X(y]X~O!gfX!k]X!kfX(qfX~P'JsOP;vOQ;vOSfOd=rOe!iOpkOr;vOskOtkOzkO|;vO!O;vO!SWO!WkO!XkO!_XO!i;yO!lZO!o;vO!p;vO!q;vO!s;zO!u;}O!x!hO$W!kO$n=pO(S)ZO(UTO(XUO(`VO(n[O~O!]<ZO!^$qa~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<fO!S${O!_$|O!i=wO!l$xO#j<lO$W%_O$t<hO$v<jO$y%`O(S(tO(UTO(XUO(`$uO(x$}O(y%PO~Ol)bO~P( iOr!eX(q!eX~P# }Or(iX(q(iX~P#!pO!^]X!^fX~P'JsO!YfX!Y$zX!]fX!]$zX#`fX~P!/wO#k<OO~O!g#vO#k<OO~O#`<`O~Oj<SO~O#`<pO!](vX!^(vX~O#`<`O!](tX!^(tX~O#k<qO~Og<sO~P!0{O#k<yO~O#k<zO~O!g#vO#k<{O~O!g#vO#k<qO~O$O<|O~P#B]O#k<}O~O#k=OO~O#k=TO~O#k=UO~O#k=VO~O#k=WO~O$O=XO~P!0{O$O=YO~P!0{Ok#S#T#U#W#X#[#i#j#u$n$t$v$y%]%^%h%i%j%q%s%v%w%y%{~'}T#o!X'{(T#ps#n#qr!Q'|$]'|(S$_(d~",goto:"$8g)[PPPPPP)]PP)`P)qP+R/WPPPP6bPP6xPP<pPPP@dP@zP@zPPP@zPCSP@zP@zP@zPCWPC]PCzPHtPPPHxPPPPHxK{PPPLRLsPHxPHxPP! RHxPPPHxPHxP!#YHxP!&p!'u!(OP!(r!(v!(r!,TPPPPPPP!,t!'uPP!-U!.vP!2SHxHx!2X!5e!:R!:R!>QPPP!>YHxPPPPPPPPP!AiP!BvPPHx!DXPHxPHxHxHxHxHxPHx!EkP!HuP!K{P!LP!LZ!L_!L_P!HrP!Lc!LcP# iP# mHxPHx# s#$xCW@zP@zP@z@zP#&V@z@z#(i@z#+a@z#-m@z@z#.]#0q#0q#0v#1P#0q#1[PP#0qP@z#1t@z#5s@z@z6bPPP#9xPPP#:c#:cP#:cP#:y#:cPP#;PP#:vP#:v#;d#:v#<O#<U#<X)`#<[)`P#<c#<c#<cP)`P)`P)`P)`PP)`P#<i#<lP#<l)`P#<pP#<sP)`P)`P)`P)`P)`P)`)`PP#<y#=P#=[#=b#=h#=n#=t#>S#>Y#>d#>j#>t#>z#?[#?b#@S#@f#@l#@r#AQ#Ag#C[#Cj#Cq#E]#Ek#G]#Gk#Gq#Gw#G}#HX#H_#He#Ho#IR#IXPPPPPPPPPPP#I_PPPPPPP#JS#MZ#Ns#Nz$ SPPP$&nP$&w$)p$0Z$0^$0a$1`$1c$1j$1rP$1x$1{P$2i$2m$3e$4s$4x$5`PP$5e$5k$5o$5r$5v$5z$6v$7_$7v$7z$7}$8Q$8W$8Z$8_$8cR!|RoqOXst!Z#d%l&p&r&s&u,n,s2S2VY!vQ'^-`1g5qQ%svQ%{yQ&S|Q&h!VS'U!e-WQ'd!iS'j!r!yU*h$|*X*lQ+l%|Q+y&UQ,_&bQ-^']Q-h'eQ-p'kQ0U*nQ1q,`R<m;z%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y,k,n,s-d-l-z.Q.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3d4q5y6Z6[6_6r8i8x9SS#q];w!r)]$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sU*{%[<e<fQ+q&OQ,a&eQ,h&mQ0r+dQ0w+fQ1S+rQ1y,fQ3W.bQ5V0vQ5]0}Q6Q1rQ7O3[Q8U5^R9Y7Q'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=s!S!nQ!r!v!y!z$|'U']'^'j'k'l*h*l*n*o-W-^-`-p0U0X1g5q5s%[$ti#v$b$c$d$x${%O%Q%]%^%b)w*P*R*T*W*^*d*t*u+c+f+},Q.a.z/_/h/r/s/u0Y0[0g0h0i1^1a1i3Z4U4V4a4f4w5R5U5x6|7l7v7|8Q8f9V9e9n9t:S:f:t:};V;^<^<_<a<b<c<d<g<h<i<j<k<l<t<u<v<w<y<z<}=O=P=Q=R=S=T=U=X=Y=p=x=y=|=}Q&V|Q'S!eS'Y%h-ZQ+q&OQ,a&eQ0f+OQ1S+rQ1X+xQ1x,eQ1y,fQ5]0}Q5f1ZQ6Q1rQ6T1tQ6U1wQ8U5^Q8X5cQ8q6WQ9|8YQ:Y8nR<o*XrnOXst!V!Z#d%l&g&p&r&s&u,n,s2S2VR,c&i&z^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'`'p(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=r=s[#]WZ#W#Z'V(R!b%im#h#i#l$x%d%g([(f(g(h*W*[*_+W+X+Z,j-Q.O.U.V.W.Y/h/k2[3S3T4X6h6yQ%vxQ%zyS&P|&UQ&]!TQ'a!hQ'c!iQ(o#sS+k%{%|Q+o&OQ,Y&`Q,^&bS-g'd'eQ.d(pQ0{+lQ1R+rQ1T+sQ1W+wQ1l,ZS1p,_,`Q2t-hQ5[0}Q5`1QQ5e1YQ6P1qQ8T5^Q8W5bQ9x8SR:w9y!U$zi$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=y!^%xy!i!u%z%{%|'T'c'd'e'i's*g+k+l-T-g-h-o/{0O0{2m2t2{4i4j4m7s9pQ+e%vQ,O&YQ,R&ZQ,]&bQ.c(oQ1k,YU1o,^,_,`Q3].dQ5z1lS6O1p1qQ8m6P#f=t#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}o=u<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=YW%Ti%V*v=pS&Y!Q&gQ&Z!RQ&[!SQ+S%cR+|&W%]%Si#v$b$c$d$x${%O%Q%]%^%b)w*P*R*T*W*^*d*t*u+c+f+},Q.a.z/_/h/r/s/u0Y0[0g0h0i1^1a1i3Z4U4V4a4f4w5R5U5x6|7l7v7|8Q8f9V9e9n9t:S:f:t:};V;^<^<_<a<b<c<d<g<h<i<j<k<l<t<u<v<w<y<z<}=O=P=Q=R=S=T=U=X=Y=p=x=y=|=}T)x$u)yV*{%[<e<fW'Y!e%h*X-ZS({#y#zQ+`%qQ+v&RS.](k(lQ1b,SQ4x0cR8^5k'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=s$i$^c#Y#e%p%r%t(Q(W(r(w)P)Q)R)S)T)U)V)W)X)Y)[)^)`)e)o+a+u-U-s-x-}.P.n.q.u.w.x.y/]0j2c2f2v2}3c3h3i3j3k3l3m3n3o3p3q3r3s3t3w3x4P5O5Y6k6q6v7V7W7a7b8`8|9Q9[9b9c:c:y;R;x=gT#TV#U'RkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sQ'W!eR2i-W!W!nQ!e!r!v!y!z$|'U']'^'j'k'l*X*h*l*n*o-W-^-`-p0U0X1g5q5sR1d,UnqOXst!Z#d%l&p&r&s&u,n,s2S2VQ&w!^Q't!xS(q#u<OQ+i%yQ,W&]Q,X&_Q-e'bQ-r'mS.m(v<qS0k+U<{Q0y+jQ1f,VQ2Z,uQ2],vQ2e-RQ2r-fQ2u-jS5P0l=VQ5W0zS5Z0|=WQ6j2gQ6n2sQ6s2zQ8R5XQ8}6lQ9O6oQ9R6tR:`8z$d$]c#Y#e%r%t(Q(W(r(w)P)Q)R)S)T)U)V)W)X)Y)[)^)`)e)o+a+u-U-s-x-}.P.n.q.u.x.y/]0j2c2f2v2}3c3h3i3j3k3l3m3n3o3p3q3r3s3t3w3x4P5O5Y6k6q6v7V7W7a7b8`8|9Q9[9b9c:c:y;R;x=gS(m#p'gQ(}#zS+_%p.wS.^(l(nR3U._'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sS#q];wQ&r!XQ&s!YQ&u![Q&v!]R2R,qQ'_!hQ+b%vQ-c'aS.`(o+eQ2p-bW3Y.c.d0q0sQ6m2qW6z3V3X3]5TU9U6{6}7PU:e9W9X9ZS;T:d:gQ;b;UR;j;cU!wQ'^-`T5o1g5q!Q_OXZ`st!V!Z#d#h%d%l&g&i&p&r&s&u(h,n,s.V2S2V]!pQ!r'^-`1g5qT#q];w%^{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&m&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y+d,k,n,s-d-l-z.Q.b.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3[3d4q5y6Z6[6_6r7Q8i8x9SS({#y#zS.](k(l!s=^$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sU$fd)],hS(n#p'gU*s%R(u3vU0e*z.i7]Q5T0rQ6{3WQ9X7OR:g9Ym!tQ!r!v!y!z'^'j'k'l-`-p1g5q5sQ'r!uS(d#g1|S-n'i'uQ/n*ZQ/{*gQ2|-qQ4]/oQ4i/}Q4j0OQ4o0WQ7h4WS7s4k4mS7w4p4rQ9g7iQ9k7oQ9p7tQ9u7yS:o9l9mS;Y:p:sS;e;Z;[S;m;f;gS;q;n;oR;t;rQ#wbQ'q!uS(c#g1|S(e#m+TQ+V%eQ+g%wQ+m%}U-m'i'r'uQ.R(dQ/m*ZQ/|*gQ0P*iQ0x+hQ1m,[S2y-n-qQ3R.ZS4[/n/oQ4e/yS4h/{0WQ4l0QQ5|1nQ6u2|Q7g4WQ7k4]U7r4i4o4rQ7u4nQ8k5}S9f7h7iQ9j7oQ9r7wQ9s7xQ:V8lQ:m9gS:n9k9mQ:v9uQ;P:WS;X:o:sS;d;Y;ZS;l;e;gS;p;m;oQ;s;qQ;u;tQ=a=[Q=l=eR=m=fV!wQ'^-`%^aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&m&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y+d,k,n,s-d-l-z.Q.b.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3[3d4q5y6Z6[6_6r7Q8i8x9SS#wz!j!r=Z$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sR=a=r%^bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&m&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y+d,k,n,s-d-l-z.Q.b.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3[3d4q5y6Z6[6_6r7Q8i8x9SQ%ej!^%wy!i!u%z%{%|'T'c'd'e'i's*g+k+l-T-g-h-o/{0O0{2m2t2{4i4j4m7s9pS%}z!jQ+h%xQ,[&bW1n,],^,_,`U5}1o1p1qS8l6O6PQ:W8m!r=[$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sQ=e=qR=f=r%QeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&p&r&s&u&y'R'`'p(T(Z(b(v(x(|){*f+U+Y+d,k,n,s-d-l-z.Q.b.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3[3d4q5y6Z6[6_6r7Q8i8x9SY#bWZ#W#Z(R!b%im#h#i#l$x%d%g([(f(g(h*W*[*_+W+X+Z,j-Q.O.U.V.W.Y/h/k2[3S3T4X6h6yQ,i&m!p=]$Z$n)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sR=`'VU'Z!e%h*XR2k-Z%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y,k,n,s-d-l-z.Q.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3d4q5y6Z6[6_6r8i8x9S!r)]$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sQ,h&mQ0r+dQ3W.bQ7O3[R9Y7Q!b$Tc#Y%p(Q(W(r(w)X)Y)^)e+u-s-x-}.P.n.q/]0j2v2}3c3s5O5Y6q6v7V9Q:c;x!P<U)[)o-U.w2c2f3h3q3r3w4P6k7W7a7b8`8|9[9b9c:y;R=g!f$Vc#Y%p(Q(W(r(w)U)V)X)Y)^)e+u-s-x-}.P.n.q/]0j2v2}3c3s5O5Y6q6v7V9Q:c;x!T<W)[)o-U.w2c2f3h3n3o3q3r3w4P6k7W7a7b8`8|9[9b9c:y;R=g!^$Zc#Y%p(Q(W(r(w)^)e+u-s-x-}.P.n.q/]0j2v2}3c3s5O5Y6q6v7V9Q:c;xQ4V/fz=s)[)o-U.w2c2f3h3w4P6k7W7a7b8`8|9[9b9c:y;R=gQ=x=zR=y={'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sS$oh$pR3|/P'XgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/P/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sT$kf$qQ$ifS)h$l)lR)t$qT$jf$qT)j$l)l'XhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/P/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sT$oh$pQ$rhR)s$p%^jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&m&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y+d,k,n,s-d-l-z.Q.b.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3[3d4q5y6Z6[6_6r7Q8i8x9S!s=q$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=s#glOPXZst!Z!`!o#S#d#o#{$n%l&i&l&m&p&r&s&u&y'R'`(|)q*f+Y+d,k,n,s-d.b/Q/i0V0d1j1z1{1}2P2S2V2X3[3{4q5y6Z6[6_7Q8i8x!U%Ri$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=y#f(u#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}Q+P%`Q/^)|o3v<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=Y!U$yi$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=yQ*`$zU*i$|*X*lQ+Q%aQ0Q*j#f=c#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}n=d<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=YQ=h=tQ=i=uQ=j=vR=k=w!U%Ri$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=y#f(u#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}o3v<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=YnoOXst!Z#d%l&p&r&s&u,n,s2S2VS*c${*WQ,|&|Q,}'OR4`/s%[%Si#v$b$c$d$x${%O%Q%]%^%b)w*P*R*T*W*^*d*t*u+c+f+},Q.a.z/_/h/r/s/u0Y0[0g0h0i1^1a1i3Z4U4V4a4f4w5R5U5x6|7l7v7|8Q8f9V9e9n9t:S:f:t:};V;^<^<_<a<b<c<d<g<h<i<j<k<l<t<u<v<w<y<z<}=O=P=Q=R=S=T=U=X=Y=p=x=y=|=}Q,P&ZQ1`,RQ5i1_R8]5jV*k$|*X*lU*k$|*X*lT5p1g5qS/y*f/iQ4n0VT7x4q:PQ+g%wQ0P*iQ0x+hQ1m,[Q5|1nQ8k5}Q:V8lR;P:W!U%Oi$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=yx*P$v)c*Q*r+R/q0^0_3y4^4{4|4}7f7z9v:l=b=n=oS0Y*q0Z#f<a#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}n<b<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=Y!d<t(s)a*Y*b.e.h.l/Y/f/v0p1]3`4S4_4c5h7R7U7m7p7}8P9i9q9w:q:u;W;];h=z={`<u3u7X7[7`9]:h:k;kS=P.g3aT=Q7Z9`!U%Qi$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=y|*R$v)c*S*q+R/b/q0^0_3y4^4s4{4|4}7f7z9v:l=b=n=oS0[*r0]#f<c#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}n<d<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=Y!h<v(s)a*Y*b.f.g.l/Y/f/v0p1]3^3`4S4_4c5h7R7S7U7m7p7}8P9i9q9w:q:u;W;];h=z={d<w3u7Y7Z7`9]9^:h:i:k;kS=R.h3bT=S7[9arnOXst!V!Z#d%l&g&p&r&s&u,n,s2S2VQ&d!UR,k&mrnOXst!V!Z#d%l&g&p&r&s&u,n,s2S2VR&d!UQ,T&[R1[+|snOXst!V!Z#d%l&g&p&r&s&u,n,s2S2VQ1h,YS5w1k1lU8e5u5v5zS:R8g8hS:{:Q:TQ;_:|R;i;`Q&k!VR,d&gR6T1tR:Y8nS&P|&UR1T+sQ&p!WR,n&qR,t&vT2T,s2VR,x&wQ,w&wR2^,xQ'w!{R-t'wSsOtQ#dXT%os#dQ#OTR'y#OQ#RUR'{#RQ)y$uR/Z)yQ#UVR(O#UQ#XWU(U#X(V-{Q(V#YR-{(WQ-X'WR2j-XQ.p(wS3e.p3fR3f.qQ-`'^R2n-`Y!rQ'^-`1g5qR'h!rQ.{)cR3z.{U#_W%g*WU(]#_(^-|Q(^#`R-|(XQ-['ZR2l-[t`OXst!V!Z#d%l&g&i&p&r&s&u,n,s2S2VS#hZ%dU#r`#h.VR.V(hQ(i#jQ.S(eW.[(i.S3P6wQ3P.TR6w3QQ)l$lR/R)lQ$phR)r$pQ$`cU)_$`-w<[Q-w;xR<[)oQ/l*ZW4Y/l4Z7j9hU4Z/m/n/oS7j4[4]R9h7k$e*O$v(s)a)c*Y*b*q*r*|*}+R.g.h.j.k.l/Y/b/d/f/q/v0^0_0p1]3^3_3`3u3y4S4^4_4c4s4u4{4|4}5h7R7S7T7U7Z7[7^7_7`7f7m7p7z7}8P9]9^9_9i9q9v9w:h:i:j:k:l:q:u;W;];h;k=b=n=o=z={Q/t*bU4b/t4d7nQ4d/vR7n4cS*l$|*XR0S*lx*Q$v)c*q*r+R/q0^0_3y4^4{4|4}7f7z9v:l=b=n=o!d.e(s)a*Y*b.g.h.l/Y/f/v0p1]3`4S4_4c5h7R7U7m7p7}8P9i9q9w:q:u;W;];h=z={U/c*Q.e7Xa7X3u7Z7[7`9]:h:k;kQ0Z*qQ3a.gU4t0Z3a9`R9`7Z|*S$v)c*q*r+R/b/q0^0_3y4^4s4{4|4}7f7z9v:l=b=n=o!h.f(s)a*Y*b.g.h.l/Y/f/v0p1]3^3`4S4_4c5h7R7S7U7m7p7}8P9i9q9w:q:u;W;];h=z={U/e*S.f7Ye7Y3u7Z7[7`9]9^:h:i:k;kQ0]*rQ3b.hU4v0]3b9aR9a7[Q*w%UR0a*wQ5S0pR8O5SQ+[%jR0o+[Q5l1bS8_5l:OR:O8`Q,V&]R1e,VQ5q1gR8b5qQ1s,aS6R1s8oR8o6TQ1O+oW5_1O5a8V9zQ5a1RQ8V5`R9z8WQ+t&PR1U+tQ2V,sR6c2VYrOXst#dQ&t!ZQ+^%lQ,m&pQ,o&rQ,p&sQ,r&uQ2Q,nS2T,s2VR6b2SQ%npQ&x!_Q&{!aQ&}!bQ'P!cQ'o!uQ+]%kQ+i%yQ+{&VQ,c&kQ,z&zW-k'i'q'r'uQ-r'mQ0R*kQ0y+jS1v,d,gQ2_,yQ2`,|Q2a,}Q2u-jW2w-m-n-q-sQ5W0zQ5d1XQ5g1]Q5{1mQ6V1xQ6a2RU6p2v2y2|Q6s2zQ8R5XQ8Z5fQ8[5hQ8a5pQ8j5|Q8p6US9P6q6uQ9R6tQ9{8XQ:U8kQ:Z8qQ:b9QQ:x9|Q;O:VQ;S:cR;a;PQ%yyQ'b!iQ'm!uU+j%z%{%|Q-R'TU-f'c'd'eS-j'i'sQ/z*gS0z+k+lQ2g-TS2s-g-hQ2z-oS4g/{0OQ5X0{Q6l2mQ6o2tQ6t2{U7q4i4j4mQ9o7sR:r9pS$wi=pR*x%VU%Ui%V=pR0`*vQ$viS(s#v+fS)a$b$cQ)c$dQ*Y$xS*b${*WQ*q%OQ*r%QQ*|%]Q*}%^Q+R%bQ.g<aQ.h<cQ.j<gQ.k<iQ.l<kQ/Y)wQ/b*PQ/d*RQ/f*TQ/q*^S/v*d/hQ0^*tQ0_*ul0p+c,Q.a1a1i3Z5x6|8f9V:S:f:};VQ1]+}Q3^<tQ3_<vQ3`<yS3u<^<_Q3y.zS4S/_4UQ4^/rQ4_/sQ4c/uQ4s0YQ4u0[Q4{0gQ4|0hQ4}0iQ5h1^Q7R<}Q7S=PQ7T=RQ7U=TQ7Z<bQ7[<dQ7^<hQ7_<jQ7`<lQ7f4VQ7m4aQ7p4fQ7z4wQ7}5RQ8P5UQ9]<zQ9^<uQ9_<wQ9i7lQ9q7vQ9v7|Q9w8QQ:h=OQ:i=QQ:j=SQ:k=UQ:l9eQ:q9nQ:u9tQ;W=XQ;]:tQ;h;^Q;k=YQ=b=pQ=n=xQ=o=yQ=z=|R={=}Q*z%[Q.i<eR7]<fnpOXst!Z#d%l&p&r&s&u,n,s2S2VQ!fPS#fZ#oQ&z!`W'f!o*f0V4qQ'}#SQ)O#{Q)p$nS,g&i&lQ,l&mQ,y&yS-O'R/iQ-b'`Q.s(|Q/V)qQ0m+YQ0s+dQ2O,kQ2q-dQ3X.bQ4O/QQ4y0dQ5v1jQ6X1zQ6Y1{Q6^1}Q6`2PQ6e2XQ7P3[Q7c3{Q8h5yQ8t6ZQ8u6[Q8w6_Q9Z7QQ:T8iR:_8x#[cOPXZst!Z!`!o#d#o#{%l&i&l&m&p&r&s&u&y'R'`(|*f+Y+d,k,n,s-d.b/i0V0d1j1z1{1}2P2S2V2X3[4q5y6Z6[6_7Q8i8xQ#YWQ#eYQ%puQ%rvS%tw!gS(Q#W(TQ(W#ZQ(r#uQ(w#xQ)P$OQ)Q$PQ)R$QQ)S$RQ)T$SQ)U$TQ)V$UQ)W$VQ)X$WQ)Y$XQ)[$ZQ)^$_Q)`$aQ)e$eW)o$n)q/Q3{Q+a%sQ+u&QS-U'V2hQ-s'pS-x(R-zQ-}(ZQ.P(bQ.n(vQ.q(xQ.u;vQ.w;yQ.x;zQ.y;}Q/]){Q0j+UQ2c-PQ2f-SQ2v-lQ2}.QQ3c.oQ3h<OQ3i<PQ3j<QQ3k<RQ3l<SQ3m<TQ3n<UQ3o<VQ3p<WQ3q<XQ3r<YQ3s.vQ3t<]Q3w<`Q3x<mQ4P<ZQ5O0lQ5Y0|Q6k<pQ6q2xQ6v3OQ7V3dQ7W<qQ7a<sQ7b<{Q8`5mQ8|6iQ9Q6rQ9[<|Q9b=VQ9c=WQ:c9SQ:y9}Q;R:aQ;x#SR=g=sR#[WR'X!el!tQ!r!v!y!z'^'j'k'l-`-p1g5q5sS'T!e-WU*g$|*X*lS-T'U']S0O*h*nQ0W*oQ2m-^Q4m0UR4r0XR(y#xQ!fQT-_'^-`]!qQ!r'^-`1g5qQ#p]R'g;wR)d$dY!uQ'^-`1g5qQ'i!rS's!v!yS'u!z5sS-o'j'kQ-q'lR2{-pT#kZ%dS#jZ%dS%jm,jU(e#h#i#lS.T(f(gQ.X(hQ0n+ZQ3Q.UU3R.V.W.YS6x3S3TR9T6yd#^W#W#Z%g(R([*W+W.O/hr#gZm#h#i#l%d(f(g(h+Z.U.V.W.Y3S3T6yS*Z$x*_Q/o*[Q1|,jQ2d-QQ4W/kQ6g2[Q7i4XQ8{6hT=_'V+XV#aW%g*WU#`W%g*WS(S#W([U(X#Z+W/hS-V'V+XT-y(R.OV'[!e%h*XQ$lfR)v$qT)k$l)lR3}/PT*]$x*_T*e${*WQ0q+cQ1_,QQ3V.aQ5j1aQ5u1iQ6}3ZQ8g5xQ9W6|Q:Q8fQ:d9VQ:|:SQ;U:fQ;`:}R;c;VnqOXst!Z#d%l&p&r&s&u,n,s2S2VQ&j!VR,c&gtmOXst!U!V!Z#d%l&g&p&r&s&u,n,s2S2VR,j&mT%km,jR1c,SR,b&eQ&T|R+z&UR+p&OT&n!W&qT&o!W&qT2U,s2V",nodeNames:"\u26a0 ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:379,context:s,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,236,242,244,246,248,251,257,263,265,267,269,271,273,274,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[p],skippedNodes:[0,5,6,277],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$i&j(VpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(VpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$i&j(Vp(Y!b'{0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(W#S$i&j'|0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$i&j(Vp(Y!b'|0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$i&j!p),Q(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#v(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#v(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(U':f$i&j(Y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$i&j(Y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$i&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$d`$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$d``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$d`$i&j(Y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(Y!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$d`(Y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$i&j(Vp(Y!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$i&j(Vp(Y!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$i&j(Y!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$i&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(Y!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$i&j(VpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(VpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Vp(Y!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$i&j(n%1l(Vp(Y!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$i&j(Vp(Y!b$]#t(S,2j(d$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$i&j(Vp(Y!b$]#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$i&j(Vp(Y!b#p(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$i&j$Q(Ch(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(y+JY$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$i&j#z(Ch(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(X';W$i&j(VpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$i&j(VpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$i&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$d`$i&j(VpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(VpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$d`(VpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!l/.^$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!k!Lf$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$i&j(Vp(Y!b(T%&f#q(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$i&j(Vp(Y!b#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$i&j(Vp(Y!br+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!]+Jf$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$i&j(Vp(Y!b!Q.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_![!L^$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$i&j(Vp(Y!b#o(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$i&j(Vp(Y!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$i&j(Y!b!X7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$i&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$i&j!X7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$i&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$i&j(Y!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(Y!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(Y!b!X7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(Y!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$i&j(Y!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$i&j(Vp!X7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$i&j(Vp!X7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Vp!X7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Vp!X7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(VpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$i&j(VpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$i&j(Vp(Y!b!X7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Vp(Y!b!X7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Vp(Y!b!X7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Vp(Y!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$i&j(Vp(Y!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$i&j(Vp(Y!b'}0/l!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$i&j(Vp(Y!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$i&j(Y!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$i&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(Y!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$i&j(VpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(VpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Vp(Y!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$i&j$Q(Ch(Vp(Y!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Z#t$i&j(Vp(Y!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!g$b$i&j$O)Lv(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#R-<U(Vp(Y!b$n7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$k&j(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#r(Ch(Vp(Y!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$Q(Ch(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#s(Ch(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#`*!Y$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#k(Cl$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#s(Ch$f#|$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#s(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#r(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#r(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(q(Ct$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$i&j#{(Ch(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!|$Ip$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!S0,v$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$i&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$i&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$i&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$i&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$i&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!Y#)l$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#x(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$i&j(Vp(Y!b(`+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$i&j(Vp(Y!b(S,2j$_#t(d$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$i&j(Vp(Y!b$_#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X!_#Hb(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(x+JY$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z)>v$?V_!^(CdvBr$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!q7`$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$i&j(Vp(Y!b'{0/l$]#t(S,2j(d$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Vp(Y!b'|0/l$]#t(S,2j(d$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[l,c,u,d,2,3,4,5,6,7,8,9,10,11,12,13,14,a,new r.uC("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(b~~",141,339),new r.uC("j~RQYZXz{^~^O(P~~aP!P!Qd~iO(Q~~",25,322)],topRules:{Script:[0,7],SingleExpression:[1,275],SingleClassItem:[2,276]},dialects:{jsx:0,ts:15098},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:326,get:e=>f[e]||-1},{term:342,get:e=>m[e]||-1},{term:95,get:e=>g[e]||-1}],tokenPrec:15124});var b=n(4859),v=n(2400),y=n(4563),x=n(5045),k=n(4450);const S=[(0,x.Gw)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,x.Gw)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,x.Gw)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,x.Gw)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,x.Gw)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,x.Gw)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,x.Gw)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,x.Gw)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,x.Gw)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,x.Gw)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,x.Gw)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],w=S.concat([(0,x.Gw)("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),(0,x.Gw)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),(0,x.Gw)("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),A=new k.RY,T=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function E(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const C=["FunctionDeclaration"],_={FunctionDeclaration:E("function"),ClassDeclaration:E("class"),ClassExpression:()=>!0,EnumDeclaration:E("constant"),TypeAliasDeclaration:E("type"),NamespaceDeclaration:E("namespace"),VariableDefinition(e,t){e.matchContext(C)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function P(e,t){let n=A.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(k.Qj.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let e=_[t.name];if(e&&e(t,o)||T.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of P(e,t.node))r.push(n);return!1}}),A.set(t,r),r}const D=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,M=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function N(e){let t=(0,b.mv)(e.state).resolveInner(e.pos,-1);if(M.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&D.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)T.has(i.name)&&(r=r.concat(P(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:D}}function R(e,t,n){var r;let i=[];for(;;){let o,s=t.firstChild;if("VariableName"==(null===s||void 0===s?void 0:s.name))return i.push(e(s)),{path:i.reverse(),name:n};if("MemberExpression"!=(null===s||void 0===s?void 0:s.name)||"PropertyName"!=(null===(r=o=s.lastChild)||void 0===r?void 0:r.name))return null;i.push(e(o)),t=s}}function Q(e){let t=t=>e.state.doc.sliceString(t.from,t.to),n=(0,b.mv)(e.state).resolveInner(e.pos,-1);return"PropertyName"==n.name?R(t,n.parent,t(n)):"."!=n.name&&"?."!=n.name||"MemberExpression"!=n.parent.name?M.indexOf(n.name)>-1?null:"VariableName"==n.name||n.to-n.from<20&&D.test(t(n))?{path:[],name:t(n)}:"MemberExpression"==n.name?R(t,n,""):e.explicit?{path:[],name:""}:null:R(t,n.parent,"")}function I(e){let t=new Map;return n=>{let r=Q(n);if(!r)return null;let i=e;for(let e of r.path)if(i=i[e],!i)return null;let o=t.get(i);return o||t.set(i,o=function(e,t){let n=[],r=new Set;for(let o=0;;o++){for(let a of(Object.getOwnPropertyNames||Object.keys)(e)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(a)||r.has(a))continue;let s;r.add(a);try{s=e[a]}catch(i){continue}n.push({label:a,type:"function"==typeof s?/^[A-Z]/.test(a)?"class":t?"function":"method":t?"variable":"property",boost:-o})}let s=Object.getPrototypeOf(e);if(!s)return n;e=s}}(i,!r.path.length)),{from:n.pos-r.name.length,options:o,validFor:D}}}const L=b.bj.define({name:"javascript",parser:O.configure({props:[b.Oh.add({IfStatement:(0,b.mz)({except:/^\s*({|else\b)/}),TryStatement:(0,b.mz)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:b._Y,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:(0,b.Ay)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,b.mz)({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),b.b_.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":b.yd,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),F={test:e=>/^JSX/.test(e.name),facet:(0,b.p9)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},$=L.configure({dialect:"ts"},"typescript"),B=L.configure({dialect:"jsx",props:[b.Q0.add(e=>e.isTop?[F]:void 0)]}),z=L.configure({dialect:"jsx ts",props:[b.Q0.add(e=>e.isTop?[F]:void 0)]},"typescript");let q=e=>({label:e,type:"keyword"});const H="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(q),U=H.concat(["declare","implements","private","protected","public"].map(q));function X(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.jsx?e.typescript?z:B:e.typescript?$:L,n=e.typescript?w.concat(U):S.concat(H);return new b.Yy(t,[L.data.of({autocomplete:(0,x.Ar)(M,(0,x.et)(n))}),L.data.of({autocomplete:N}),e.jsx?Y:[]])}function j(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;for(let r=null===t||void 0===t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n));return""}const Z="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Y=y.Lz.inputHandler.of((e,t,n,r,i)=>{if((Z?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!L.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:s}=o,a=s.changeByRange(e=>{var t;let n,{head:i}=e,o=(0,b.mv)(s).resolveInner(i-1,-1);if("JSXStartTag"==o.name&&(o=o.parent),s.doc.sliceString(i-1,i)!=r||"JSXAttributeValue"==o.name&&o.to>i);else{if(">"==r&&"JSXFragmentTag"==o.name)return{range:e,changes:{from:i,insert:"</>"}};if("/"==r&&"JSXStartCloseTag"==o.name){let e=o.parent,r=e.parent;if(r&&e.from==i-2&&((n=j(s.doc,r.firstChild,i))||"JSXFragmentTag"==(null===(t=r.firstChild)||void 0===t?void 0:t.name))){let e=`${n}>`;return{range:v.OF.cursor(i+e.length,-1),changes:{from:i,insert:e}}}}else if(">"==r){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(o);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(s.doc.sliceString(i,i+2))&&(n=j(s.doc,t,i)))return{range:e,changes:{from:i,insert:`</${n}>`}}}}return{range:e}});return!a.changes.empty&&(e.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function V(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach((e,n)=>{var r;(null===(r=e.meta.docs)||void 0===r?void 0:r.recommended)&&(t.rules[n]=2)})),n=>{let{state:r}=n,i=[];for(let{from:o,to:s}of L.findRegions(r)){let n=r.doc.lineAt(o),a={line:n.number-1,col:o-n.from,pos:o};for(let l of e.verify(r.sliceDoc(o,s),t))i.push(W(l,r.doc,a))}return i}}function G(e,t,n,r){return n.line(e+r.line).from+t+(1==e?r.col-1:-1)}function W(e,t,n){let r=G(e.line,e.column,t,n),i={from:r,to:null!=e.endLine&&1!=e.endColumn?G(e.endLine,e.endColumn,t,n):r,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:t,text:o}=e.fix,s=t[0]+n.pos-r,a=t[1]+n.pos-r;i.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+s,to:t+a,insert:o},scrollIntoView:!0})}}]}return i}},4064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(o,l)).replace(r,a))}},4179:(e,t,n)=>{"use strict";n.d(t,{Aj:()=>C,Lu:()=>m,U1:()=>_,uC:()=>f});var r=n(4450),i=n(5683);class o{constructor(e,t,n,r,i,o,s,a,l){let c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,u=arguments.length>10?arguments[10]:void 0;this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=o,this.buffer=s,this.bufferBase=a,this.curContext=l,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.parser.context;return new o(e,[],t,n,n,0,[],0,r?new s(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:i}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let s=i.dynamicPrecedence(r);if(s&&(this.score+=s),0==n)return this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r<i.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,o?8:4,!0),void this.reduceContext(r,this.reducePos);let a=this.stack.length-3*(n-1)-(262144&e?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from,c=this.reducePos-l;c>=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=c));let u=a?this.stack[a-1]:0,h=this.bufferBase+this.buffer.length-u;if(r<i.minRepeatTerm||131072&e){let e=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,l,e,h+4,!0)}if(262144&e)this.state=this.stack[a];else{let e=this.stack[a-3];this.state=i.getGoto(e,r,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,r=this.buffer.length;if(0==r&&e.parent&&(r=e.bufferBase-e.parent.bufferBase,e=e.parent),r>0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t)return void(e.buffer[r-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4]){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let i=e,{parser:o}=this.p;(r>this.pos||t<=o.maxNode)&&(this.pos=r,o.stateFlag(i,1)||(this.reducePos=r)),this.pushState(i,n),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new a(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r,i=0;i<t.length;i+=2)(r=t[i+1])!=this.state&&this.p.parser.hasAction(r,e)&&n.push(t[i],r);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some((e,t)=>1&t&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let r=0;r<t.length&&n.length<4;r+=2){let e=t[r+1];if(e==this.state)continue;let i=this.split();i.pushState(e,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[r],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(0==(65536&t))return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=65535&t,i=this.stack.length-3*n;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let r=65535&t,i=this.stack.length-3*n;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(null!=e)return e}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new s(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class s{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class a{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class l{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.bufferBase+e.buffer.length;return new l(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new l(this.stack,this.pos,this.index)}}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r<e.length;){let o=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(126==t){o=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),o+=i,n)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class u{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const h=new u;class d{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=h,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let e=this.ranges[--r];i-=n.from-e.to,n=e}for(;t<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,n,r=this.chunkOff+e;if(r>=0&&r<this.chunk.length)t=this.pos+e,n=this.chunk.charCodeAt(r);else{let r=this.resolveOffset(e,1);if(null==r)return-1;if(t=r,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,r=this.range;for(;r.to<=t;)r=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>r.to&&(this.chunk2=this.chunk2.slice(0,r.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=h,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class p{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;g(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}p.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class f{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?c(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(g(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||r++,null==i)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}f.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class m{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function g(e,t,n,r,i,o){let s=0,a=1<<r,{dialect:l}=n.p.parser;e:for(;0!=(a&e[s]);){let n=e[s+1];for(let h=s+3;h<n;h+=2)if((e[h+1]&a)>0){let n=e[h];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||b(n,t.token.value,i,o))){t.acceptToken(n);break}}let r=t.next,c=0,u=e[s+2];if(!(t.next<0&&u>c&&65535==e[n+3*u-3])){for(;c<u;){let i=c+u>>1,o=n+i+(i<<1),a=e[o],l=e[o+1]||65536;if(r<a)u=i;else{if(!(r>=l)){s=e[o+2],t.advance();continue e}c=i+1}}break}s=e[n+3*u-1]}}function O(e,t,n){for(let r,i=t;65535!=(r=e[i]);i++)if(r==n)return i-t;return-1}function b(e,t,n,r){let i=O(n,r,t);return i<0||O(n,r,e)<i}const v="undefined"!=typeof i&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&/\bparse\b/.test({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.LOG);let y=null;function x(e,t,n){let i=e.cursor(r.Qj.IncludeAnonymous);for(i.moveTo(t);;)if(!(n<0?i.childBefore(t):i.childAfter(t)))for(;;){if((n<0?i.to<t:i.from>t)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:e.length}}class k{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?x(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?x(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],i=this.index[t];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=n.children[i],s=this.start[t]+n.positions[i];if(s>e)return this.nextStart=s,null;if(o instanceof r.PH){if(s==e){if(s<this.safeFrom)return null;let e=s+o.length;if(e<=this.safeTo){let t=o.prop(r.uY.lookAhead);if(!t||e+t<this.fragment.to)return o}}this.index[t]++,s+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+o.length}}}class S{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new u)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,o=r.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,a=0;for(let l=0;l<i.length;l++){if(0==(1<<l&o))continue;let r=i[l],c=this.tokens[l];if((!n||r.fallback)&&((r.contextual||c.start!=e.pos||c.mask!=o||c.context!=s)&&(this.updateCachedToken(c,r,e),c.mask=o,c.context=s),c.lookAhead>c.end+25&&(a=Math.max(c.lookAhead,a)),0!=c.value)){let i=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!r.extend&&(n=c,t>i))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new u,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new u,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let i=t.specializers[r](this.stream.read(e.start,e.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){0==(1&i)?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let i=0;i<r;i+=3)if(this.actions[i]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:i}=e,{parser:o}=e.p,{data:s}=o;for(let a=0;a<2;a++)for(let e=o.stateSlot(i,a?2:1);;e+=3){if(65535==s[e]){if(1!=s[e+1]){0==r&&2==s[e+1]&&(r=this.putAction(P(s,e+2),t,n,r));break}e=P(s,e+2)}s[e]==t&&(r=this.putAction(P(s,e+1),t,n,r))}return r}}class w{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new d(t,r),this.tokens=new S(e,this.stream),this.topTerm=e.top[1];let{from:i}=r[0];this.stacks=[o.start(this,e.top[0],i)],this.fragments=n.length&&this.stream.end-i>4*e.bufferLength?new k(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<n.length;o++){let s=n[o];for(;;){if(this.tokens.mainToken=null,s.pos>r)i.push(s);else{if(this.advanceStack(s,i,n))continue;{e||(e=[],t=[]),e.push(s);let n=this.tokens.getMainToken(s);t.push(n.value,n.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}(e);if(t)return v&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw v&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&e){let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return v&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort((e,t)=>t.score-e.score);i.length>e;)i.pop();i.some(e=>e.reducePos>r)&&this.recovering--}else if(i.length>1){e:for(let e=0;e<i.length-1;e++){let t=i[e];for(let n=e+1;n<i.length;n++){let r=i[n];if(t.sameState(r)||t.buffer.length>500&&r.buffer.length>500){if(!((t.score-r.score||t.buffer.length-r.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(n--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let o=1;o<i.length;o++)i[o].pos<this.minStackPos&&(this.minStackPos=i[o].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let i=e.pos,{parser:o}=this,s=v?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?o.getGoto(e.state,a.type.id):-1;if(i>-1&&a.length&&(!t||(a.prop(r.uY.contextHash)||0)==n))return e.useNode(a,i),v&&console.log(s+this.stackID(e)+` (via reuse of ${o.getName(a.type.id)})`),!0;if(!(a instanceof r.PH)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(!(l instanceof r.PH&&0==a.positions[0]))break;a=l}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),v&&console.log(s+this.stackID(e)+` (via always-reduce ${o.getName(65535&a)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let r=0;r<l.length;){let a=l[r++],c=l[r++],u=l[r++],h=r==l.length||!n,d=h?e:e.split(),p=this.tokens.mainToken;if(d.apply(a,c,p?p.start:d.pos,u),v&&console.log(s+this.stackID(d)+` (via ${0==(65536&a)?"shift":`reduce of ${o.getName(65535&a)}`} for ${o.getName(c)} @ ${i}${d==e?"":", split"})`),h)return!0;d.pos>i?t.push(d):n.push(d)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return A(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let o=0;o<e.length;o++){let s=e[o],a=t[o<<1],l=t[1+(o<<1)],c=v?this.stackID(s)+" -> ":"";if(s.deadEnd){if(i)continue;if(i=!0,s.restart(),v&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,n))continue}let u=s.split(),h=c;for(let e=0;u.forceReduce()&&e<10;e++){if(v&&console.log(h+this.stackID(u)+" (via force-reduce)"),this.advanceFully(u,n))break;v&&(h=this.stackID(u)+" -> ")}for(let e of s.recoverByInsert(a))v&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>s.pos?(l==s.pos&&(l++,a=0),s.recoverByDelete(a,l),v&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(a)})`),A(s,n)):(!r||r.score<s.score)&&(r=s)}return r}stackToTree(e){return e.close(),r.PH.build({buffer:l.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(y||(y=new WeakMap)).get(e);return t||y.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function A(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e))return void(t[n].score<e.score&&(t[n]=e))}t.push(e)}class T{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}const E=e=>e;class C{constructor(e){this.start=e.start,this.shift=e.shift||E,this.reduce=e.reduce||E,this.reuse=e.reuse||E,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class _ extends r.iX{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;r<e.repeatNodeCount;r++)t.push("");let n=Object.keys(e.topRules).map(t=>e.topRules[t][1]),i=[];for(let r=0;r<t.length;r++)i.push([]);function o(e,t,n){i[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let a of e.nodeProps){let e=a[0];"string"==typeof e&&(e=r.uY[e]);for(let t=1;t<a.length;){let n=a[t++];if(n>=0)o(n,e,a[t++]);else{let r=a[t+-n];for(let i=-n;i>0;i--)o(a[t++],e,r);t++}}}this.nodeSet=new r.fI(t.map((t,o)=>r.Z6.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:i[o],top:n.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=r.cF;let s=c(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let r=0;r<this.specializerSpecs.length;r++)this.specialized[r]=this.specializerSpecs[r].term;this.specializers=this.specializerSpecs.map(D),this.states=c(e.states,Uint32Array),this.data=c(e.stateData),this.goto=c(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new p(s,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new w(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],o=1&t,s=r[i++];if(o&&n)return s;for(let n=i+(t>>1);i<n;i++)if(r[i]==e)return s;if(o)return-1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let i,o=this.stateSlot(e,r?2:1);;o+=3){if(65535==(i=n[o])){if(1!=n[o+1]){if(2==n[o+1])return P(n,o+2);break}i=n[o=P(n,o+2)]}if(i==t||0==i)return P(n,o+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let i=this.stateSlot(e,1);null==r;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=P(this.data,i+2)}r=t(P(this.data,i+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=P(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(_.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,r)=>{let i=e.specializers.find(e=>e.from==n.external);if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return t.specializers[r]=D(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let i of e.split(" ")){let e=t.indexOf(i);e>=0&&(n[e]=!0)}let r=null;for(let i=0;i<t.length;i++)if(!n[i])for(let e,n=this.dialects[t[i]];65535!=(e=this.data[n++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[e]=1;return new T(e,n,r)}static deserialize(e){return new _(e)}}function P(e,t){return e[t]|e[t+1]<<16}function D(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}},4450:(e,t,n)=>{"use strict";n.d(t,{$g:()=>I,PH:()=>f,Qj:()=>p,RY:()=>M,Z6:()=>c,cF:()=>r,fI:()=>u,iX:()=>R,rr:()=>N,uY:()=>s});const r=1024;let i=0;class o{constructor(e,t){this.from=e,this.to=t}}class s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.id=i++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=c.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}s.closedBy=new s({deserialize:e=>e.split(" ")}),s.openedBy=new s({deserialize:e=>e.split(" ")}),s.group=new s({deserialize:e=>e.split(" ")}),s.isolate=new s({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),s.contextHash=new s({perNode:!0}),s.lookAhead=new s({perNode:!0}),s.mounted=new s({perNode:!0});class a{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[s.mounted.id]}}const l=Object.create(null);class c{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):l,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new c(e.name||"",t,e.id,n);if(e.props)for(let i of e.props)if(Array.isArray(i)||(i=i(r)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(s.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(s.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}c.none=new c("",Object.create(null),0,8);class u{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(){let e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(let i of this.types){let t=null;for(let e of n){let n=e(i);n&&(t||(t=Object.assign({},i.props)),t[n[0].id]=n[1])}e.push(t?new c(i.name,t,i.id,i.flags):i)}return new u(e)}}const h=new WeakMap,d=new WeakMap;var p;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(p||(p={}));class f{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=a.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let e=n.toString();e&&(t&&(t+=","),t+=e)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new E(this.topNode,e)}cursorAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=h.get(this)||this.topNode,r=new E(n);return r.moveTo(e,t),h.set(this,r._tree),r}get topNode(){return new y(this,0,0,null)}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=b(h.get(this)||this.topNode,e,t,!1);return h.set(this,n),n}resolveInner(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=b(d.get(this)||this.topNode,e,t,!0);return d.set(this,n),n}resolveStack(e){return function(e,t,n){let r=e.resolveInner(t,n),i=null;for(let o=r instanceof y?r:r.context.parent;o;o=o.parent)if(o.index<0){let e=o.parent;(i||(i=[r])).push(e.resolve(t,n)),o=e}else{let e=a.get(o.tree);if(e&&e.overlay&&e.overlay[0].from<=t&&e.overlay[e.overlay.length-1].to>=t){let s=new y(e.tree,e.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(b(s,t,n,!1))}}return i?A(i):r}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,s=(o&p.IncludeAnonymous)>0;for(let a=this.cursor(o|p.IncludeAnonymous);;){let e=!1;if(a.from<=i&&a.to>=r&&(!s&&a.type.isAnonymous||!1!==t(a))){if(a.firstChild())continue;e=!0}for(;e&&n&&(s||!a.type.isAnonymous)&&n(a),!a.nextSibling();){if(!a.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.children.length<=8?this:D(c.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new f(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new f(c.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:o=r,reused:a=[],minRepeatType:l=i.types.length}=e,c=Array.isArray(n)?new m(n,n.length):n,u=i.types,h=0,d=0;function p(e,t,n,r,s,f){let{id:m,start:S,end:w,size:A}=c,T=d,E=h;for(;A<0;){if(c.next(),-1==A){let t=a[m];return n.push(t),void r.push(S-e)}if(-3==A)return void(h=m);if(-4==A)return void(d=m);throw new RangeError(`Unrecognized record size: ${A}`)}let C,_,P=u[m],M=S-e;if(w-S<=o&&(_=x(c.pos-t,s))){let t=new Uint16Array(_.size-_.skip),n=c.pos-_.size,r=t.length;for(;c.pos>n;)r=k(_.start,t,r);C=new g(t,w-_.start,i),M=_.start-e}else{let e=c.pos-A;c.next();let t=[],n=[],r=m>=l?m:-1,i=0,s=w;for(;c.pos>e;)r>=0&&c.id==r&&c.size>=0?(c.end<=s-o&&(v(t,n,S,i,c.end,s,r,T,E),i=t.length,s=c.end),c.next()):f>2500?O(S,e,t,n):p(S,e,t,n,r,f+1);if(r>=0&&i>0&&i<t.length&&v(t,n,S,i,S,s,r,T,E),t.reverse(),n.reverse(),r>-1&&i>0){let e=b(P,E);C=D(P,t,n,0,t.length,0,w-S,e,e)}else C=y(P,t,n,w-S,T-w,E)}n.push(C),r.push(M)}function O(e,t,n,r){let s=[],a=0,l=-1;for(;c.pos>t;){let{id:e,start:t,end:n,size:r}=c;if(r>4)c.next();else{if(l>-1&&t<l)break;l<0&&(l=n-o),s.push(e,t,n),a++,c.next()}}if(a){let t=new Uint16Array(4*a),o=s[s.length-2];for(let e=s.length-3,n=0;e>=0;e-=3)t[n++]=s[e],t[n++]=s[e+1]-o,t[n++]=s[e+2]-o,t[n++]=n;n.push(new g(t,s[2]-o,i)),r.push(o-e)}}function b(e,t){return(n,r,i)=>{let o,a,l=0,c=n.length-1;if(c>=0&&(o=n[c])instanceof f){if(!c&&o.type==e&&o.length==i)return o;(a=o.prop(s.lookAhead))&&(l=r[c]+o.length+a)}return y(e,n,r,i,l,t)}}function v(e,t,n,r,o,s,a,l,c){let u=[],h=[];for(;e.length>r;)u.push(e.pop()),h.push(t.pop()+n-o);e.push(y(i.types[a],u,h,s-o,l-s,c)),t.push(o-n)}function y(e,t,n,r,i,o,a){if(o){let e=[s.contextHash,o];a=a?[e].concat(a):[e]}if(i>25){let e=[s.lookAhead,i];a=a?[e].concat(a):[e]}return new f(e,t,n,r,a)}function x(e,t){let n=c.fork(),r=0,i=0,s=0,a=n.end-o,u={size:0,start:0,skip:0};e:for(let o=n.pos-e;n.pos>o;){let e=n.size;if(n.id==t&&e>=0){u.size=r,u.start=i,u.skip=s,s+=4,r+=4,n.next();continue}let c=n.pos-e;if(e<0||c<o||n.start<a)break;let h=n.id>=l?4:0,d=n.start;for(n.next();n.pos>c;){if(n.size<0){if(-3!=n.size)break e;h+=4}else n.id>=l&&(h+=4);n.next()}i=d,r+=e,s+=h}return(t<0||r==e)&&(u.size=r,u.start=i,u.skip=s),u.size>4?u:void 0}function k(e,t,n){let{id:r,start:i,end:o,size:s}=c;if(c.next(),s>=0&&r<l){let a=n;if(s>4){let r=c.pos-(s-4);for(;c.pos>r;)n=k(e,t,n)}t[--n]=a,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==s?h=r:-4==s&&(d=r);return n}let S=[],w=[];for(;c.pos>0;)p(e.start||0,e.bufferStart||0,S,w,-1,0);let A=null!==(t=e.length)&&void 0!==t?t:S.length?w[0]+S[0].length:0;return new f(u[e.topID],S.reverse(),w.reverse(),A)}(e)}}f.empty=new f(c.none,[],[],0);class m{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class g{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return c.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,t,n,r,i){let{buffer:o}=this,s=-1;for(let a=e;a!=t&&!(O(i,r,o[a+1],o[a+2])&&(s=a,n>0));a=o[a+3]);return s}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let s=e,a=0;s<t;){i[a++]=r[s++],i[a++]=r[s++]-n;let t=i[a++]=r[s++]-n;i[a++]=r[s++]-e,o=Math.max(o,t)}return new g(i,o,this.set)}}function O(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function b(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!r&&e instanceof y&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=r?0:p.IgnoreOverlays;if(r)for(let s=e,a=s.parent;a;s=a,a=s.parent)s instanceof y&&s.index<0&&(null===(i=a.enter(t,n,o))||void 0===i?void 0:i.from)!=s.from&&(e=a);for(;;){let r=e.enter(t,n,o);if(!r)return e;e=r}}class v{cursor(){return new E(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}getChild(e){let t=x(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return t.length?t[0]:null}getChildren(e){return x(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}resolve(e){return b(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}resolveInner(e){return b(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}matchContext(e){return k(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class y extends v{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;for(let o=this;;){for(let{children:s,positions:l}=o._tree,c=t>0?s.length:-1;e!=c;e+=t){let c=s[e],u=l[e]+o.from;if(O(r,n,u,u+c.length))if(c instanceof g){if(i&p.ExcludeBuffers)continue;let s=c.findChild(0,c.buffer.length,t,n-u,r);if(s>-1)return new w(new S(o,c,e,u),null,s)}else if(i&p.IncludeAnonymous||!c.type.isAnonymous||C(c)){let s;if(!(i&p.IgnoreMounts)&&(s=a.get(c))&&!s.overlay)return new y(s.tree,u,e,o);let l=new y(c,u,e,o);return i&p.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?c.children.length-1:0,t,n,r)}}if(i&p.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&p.IgnoreOverlays)&&(n=a.get(this._tree))&&n.overlay){let r=e-this.from;for(let{from:e,to:i}of n.overlay)if((t>0?e<=r:e<r)&&(t<0?i>=r:i>r))return new y(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function x(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1;for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class S{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class w extends v{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new w(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&p.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new w(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new w(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new w(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new f(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function A(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;o<e.length;o++){let r=e[o];(r.from>n.from||r.to<n.to)&&(n=r,t=o)}let r=n instanceof y&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new T(i,n)}class T{constructor(e,t){this.heads=e,this.node=t}get next(){return A(this.heads)}}class E{get name(){return this.type.name}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof y)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof y?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(n&p.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&p.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&p.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&p.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||C(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(1,e)}prev(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(-1,e)}moveTo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let r=n;r<this.stack.length;r++)t=new w(this.buffer,t,this.stack[r]);return this.bufferNode=new w(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return k(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return k(this._tree,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function C(e){return e.children.some(e=>e instanceof g||!e.type.isAnonymous||C(e))}const _=new WeakMap;function P(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let n=_.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof f)){n=1;break}n+=P(e,r)}_.set(t,n)}return n}function D(e,t,n,r,i,o,s,a,l){let c=0;for(let p=r;p<i;p++)c+=P(e,t[p]);let u=Math.ceil(1.5*c/8),h=[],d=[];return function t(n,r,i,s,a){for(let c=i;c<s;){let i=c,p=r[c],f=P(e,n[c]);for(c++;c<s;c++){let t=P(e,n[c]);if(f+t>=u)break;f+=t}if(c==i+1){if(f>u){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+a);continue}h.push(n[i])}else{let t=r[c-1]+n[c-1].length-p;h.push(D(e,n,r,i,c,p,t,null,l))}d.push(p+a-o)}}(t,n,r,i,0),(a||l)(h,d,s)}class M{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof w?this.setBuffer(e.context.buffer,e.index,t):e instanceof y&&this.map.set(e.tree,t)}get(e){return e instanceof w?this.getBuffer(e.context.buffer,e.index):e instanceof y?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class N{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[new N(0,e.length,e,0,!1,n)];for(let i of t)i.to>e.length&&r.push(i);return r}static applyChanges(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let c=s<t.length?t[s]:null,u=c?c.fromA:1e9;if(u-a>=n)for(;o&&o.from<u;){let t=o;if(a>=t.from||u<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,u)-l;t=e>=n?null:new N(e,n,t.tree,t.offset+l,s>0,!!c)}if(t&&r.push(t),o.to>u)break;o=i<e.length?e[i++]:null}if(!c)break;a=c.toA,l=c.toA-c.toB}return r}}class R{startParse(e,t,n){return"string"==typeof e&&(e=new Q(e)),n=n?n.length?n.map(e=>new o(e.from,e.to)):[new o(0,0)]:[new o(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class Q{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function I(e){return(t,n,r,i)=>new z(t,e,n,r,i)}class L{constructor(e,t,n,r,i){this.parser=e,this.parse=t,this.overlay=n,this.target=r,this.from=i}}function F(e){if(!e.length||e.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class ${constructor(e,t,n,r,i,o,s){this.parser=e,this.predicate=t,this.mounts=n,this.index=r,this.start=i,this.target=o,this.prev=s,this.depth=0,this.ranges=[]}}const B=new s({perNode:!0});class z{constructor(e,t,n,r,i){this.nest=t,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new f(e.type,e.children,e.positions,e.length,e.propValues.concat([[B,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[s.mounted.id]=new a(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new j(this.fragments),t=null,n=null,r=new E(new y(this.baseTree,this.ranges[0].from,0,null),p.IncludeAnonymous|p.IgnoreMounts);e:for(let i,s;;){let a,l=!0;if(null!=this.stoppedAt&&r.from>=this.stoppedAt)l=!1;else if(e.hasNode(r)){if(t){let e=t.mounts.find(e=>e.frag.from<=r.from&&e.frag.to>=r.to&&e.mount.overlay);if(e)for(let n of e.mount.overlay){let i=n.from+e.pos,o=n.to+e.pos;i>=r.from&&o<=r.to&&!t.ranges.some(e=>e.from<o&&e.to>i)&&t.ranges.push({from:i,to:o})}}l=!1}else if(n&&(s=q(n.ranges,r.from,r.to)))l=2!=s;else if(!r.type.isAnonymous&&(i=this.nest(r,this.input))&&(r.from<r.to||!i.overlay)){r.tree||U(r);let s=e.findMounts(r.from,i.parser);if("function"==typeof i.overlay)t=new $(i.parser,i.overlay,s,this.inner.length,r.from,r.tree,t);else{let e=Z(this.ranges,i.overlay||(r.from<r.to?[new o(r.from,r.to)]:[]));e.length&&F(e),!e.length&&i.overlay||this.inner.push(new L(i.parser,e.length?i.parser.startParse(this.input,V(s,e),e):i.parser.startParse(""),i.overlay?i.overlay.map(e=>new o(e.from-r.from,e.to-r.from)):null,r.tree,e.length?e[0].from:r.from)),i.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):l=!1}}else if(t&&(a=t.predicate(r))&&(!0===a&&(a=new o(r.from,r.to)),a.from<a.to)){let e=t.ranges.length-1;e>=0&&t.ranges[e].to==a.from?t.ranges[e]={from:t.ranges[e].from,to:a.to}:t.ranges.push(a)}if(l&&r.firstChild())t&&t.depth++,n&&n.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(t&&! --t.depth){let e=Z(this.ranges,t.ranges);e.length&&(F(e),this.inner.splice(t.index,0,new L(t.parser,t.parser.startParse(this.input,V(t.mounts,e),e),t.ranges.map(e=>new o(e.from-t.start,e.to-t.start)),t.target,e[0].from))),t=t.prev}n&&! --n.depth&&(n=n.prev)}}}}function q(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function H(e,t,n,r,i,o){if(t<n){let s=e.buffer[t+1];r.push(e.slice(t,n,s)),i.push(s-o)}}function U(e){let{node:t}=e,n=[],r=t.context.buffer;do{n.push(e.index),e.parent()}while(!e.tree);let i=e.tree,o=i.children.indexOf(r),s=i.children[o],a=s.buffer,l=[o];i.children[o]=function e(r,i,o,c,u,h){let d=n[h],p=[],m=[];H(s,r,d,p,m,c);let g=a[d+1],O=a[d+2];l.push(p.length);let b=h?e(d+4,a[d+3],s.set.types[a[d]],g,O-g,h-1):t.toTree();return p.push(b),m.push(g-c),H(s,a[d+3],i,p,m,c),new f(o,p,m,u)}(0,a.length,c.none,0,s.length,n.length-1);for(let c of l){let t=e.tree.children[c],n=e.tree.positions[c];e.yield(new y(t,n+e.from,c,e._tree))}}class X{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(p.IncludeAnonymous|p.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,p.IgnoreOverlays|p.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof f))break;t=t.children[0]}return!1}}class j{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop(B))&&void 0!==t?t:n.to,this.inner=new X(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(B))&&void 0!==e?e:t.to,this.inner=new X(t.tree,-t.offset)}}findMounts(e,t){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null===(n=e.tree)||void 0===n?void 0:n.prop(s.mounted);if(i&&i.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let n=this.fragments[t];if(n.from>=e.to)break;n.tree==this.curFrag.tree&&r.push({frag:n,pos:e.from-n.offset,mount:i})}}}return r}}function Z(e,t){let n=null,r=t;for(let i=1,s=0;i<e.length;i++){let a=e[i-1].to,l=e[i].from;for(;s<r.length;s++){let e=r[s];if(e.from>=l)break;e.to<=a||(n||(r=n=t.slice()),e.from<a?(n[s]=new o(e.from,a),e.to>l&&n.splice(s+1,0,new o(l,e.to))):e.to>l?n[s--]=new o(l,e.to):n.splice(s--,1))}}return r}function Y(e,t,n,r){let i=0,s=0,a=!1,l=!1,c=-1e9,u=[];for(;;){let h=i==e.length?1e9:a?e[i].to:e[i].from,d=s==t.length?1e9:l?t[s].to:t[s].from;if(a!=l){let e=Math.max(c,n),t=Math.min(h,d,r);e<t&&u.push(new o(e,t))}if(c=Math.min(h,d),1e9==c)break;h==c&&(a?(a=!1,i++):a=!0),d==c&&(l?(l=!1,s++):l=!0)}return u}function V(e,t){let n=[];for(let{pos:r,mount:i,frag:s}of e){let e=r+(i.overlay?i.overlay[0].from:0),a=e+i.tree.length,l=Math.max(s.from,e),c=Math.min(s.to,a);if(i.overlay){let a=Y(t,i.overlay.map(e=>new o(e.from+r,e.to+r)),l,c);for(let t=0,r=l;;t++){let o=t==a.length,l=o?c:a[t].from;if(l>r&&n.push(new N(r,l,i.tree,-e,s.from>=r||s.openStart,s.to<=l||s.openEnd)),o)break;r=a[t].to}}else n.push(new N(l,c,i.tree,-e,s.from>=e||s.openStart,s.to<=a||s.openEnd))}return n}},4563:(e,t,n)=>{"use strict";n.d(t,{NZ:()=>pe,OP:()=>Ae,Lz:()=>ur,wJ:()=>Ii,Z9:()=>ut,xO:()=>he,HJ:()=>hi,VH:()=>Nr,A:()=>qr,ld:()=>Di,Eg:()=>Ci,cU:()=>zi,dz:()=>ei,Wu:()=>so,N$:()=>Gr,Ux:()=>Ei,w4:()=>br,$K:()=>no,c_:()=>st,qf:()=>ii,D4:()=>li,TS:()=>xr,S7:()=>Qi,DK:()=>xi});for(var r=n(2400),i=n(752),o={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),c=0;c<10;c++)o[48+c]=o[96+c]=String(c);for(c=1;c<=24;c++)o[c+111]="F"+c;for(c=65;c<=90;c++)o[c]=String.fromCharCode(c+32),s[c]=String.fromCharCode(c);for(var u in o)s.hasOwnProperty(u)||(s[u]=o[u]);function h(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function d(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function p(e,t){if(!t.anchorNode)return!1;try{return d(e,t.anchorNode)}catch(n){return!1}}function f(e){return 3==e.nodeType?E(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function m(e,t,n,r){return!!n&&(b(e,t,n,r,-1)||b(e,t,n,r,1))}function g(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function O(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function b(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:v(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=g(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?v(e):0}}}function v(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function y(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function x(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function k(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}class S{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?v(t):0),n,Math.min(e.focusOffset,n?v(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let w,A=null;function T(e){if(e.setActive)return e.setActive();if(A)return e.focus(A);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==A?{get preventScroll(){return A={preventScroll:!0},!0}}:void 0),!A){A=!1;for(let e=0;e<t.length;){let n=t[e++],r=t[e++],i=t[e++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=i&&(n.scrollLeft=i)}}}function E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=w||(w=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function C(e,t,n,r){let i={key:t,code:t,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let o=new KeyboardEvent("keydown",i);o.synthetic=!0,e.dispatchEvent(o);let s=new KeyboardEvent("keyup",i);return s.synthetic=!0,e.dispatchEvent(s),o.defaultPrevented||s.defaultPrevented}function _(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function P(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function D(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r>0)return{node:n,offset:r};if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;n=n.childNodes[r-1],r=v(n)}else{if(!n.parentNode||O(n))return null;r=g(n),n=n.parentNode}}}function M(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r<n.nodeValue.length)return{node:n,offset:r};if(1==n.nodeType&&r<n.childNodes.length){if("false"==n.contentEditable)return null;n=n.childNodes[r],r=0}else{if(!n.parentNode||O(n))return null;r=g(n)+1,n=n.parentNode}}}class N{constructor(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.node=e,this.offset=t,this.precise=n}static before(e,t){return new N(e.parentNode,g(e),t)}static after(e,t){return new N(e.parentNode,g(e)+1,t)}}const R=[];class Q{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,r=this.dom,i=null;for(let o of this.children){if(7&o.flags){if(!o.dom&&(n=i?i.nextSibling:r.firstChild)){let e=Q.get(n);(!e||!e.parent&&e.canReuseDOM(o))&&o.reuseDOM(n)}o.sync(e,t),o.flags&=-8}if(n=i?i.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&n!=o.dom&&(t.written=!0),o.dom.parentNode==r)for(;n&&n!=o.dom;)n=I(n);else r.insertBefore(o.dom,n);i=o.dom}for(n=i?i.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);n;)n=I(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==v(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!Q.get(n);)n=n.nextSibling;if(!n)return this.length;for(let r=0,i=0;;r++){let e=this.children[r];if(e.dom==n)return i;i+=e.length+e.breakAfter}}domBoundsAround(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,i=-1,o=-1,s=-1;for(let a=0,l=n,c=n;a<this.children.length;a++){let n=this.children[a],u=l+n.length;if(l<e&&u>t)return n.domBoundsAround(e,t,l);if(u>=e&&-1==r&&(r=a,i=l),l>t&&n.dom.parentNode==this.dom){o=a,s=c;break}c=u,l=u+n.breakAfter}return{from:i,to:s<0?n+this.length:s,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R;this.markDirty();for(let r=e;r<t;r++){let e=this.children[r];e.parent==this&&n.indexOf(e)<0&&e.destroy()}n.length<250?this.children.splice(e,t-e,...n):this.children=[].concat(this.children.slice(0,e),n,this.children.slice(t));for(let r=0;r<n.length;r++)n[r].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length;return new L(this.children,e,this.children.length)}childPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,r,i,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function I(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}Q.prototype.breakAfter=0;class L{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function F(e,t,n,r,i,o,s,a,l){let{children:c}=e,u=c.length?c[t]:null,h=o.length?o[o.length-1]:null,d=h?h.breakAfter:s;if(!(t==r&&u&&!s&&!d&&o.length<2&&u.merge(n,i,o.length?h:null,0==n,a,l))){if(r<c.length){let e=c[r];e&&(i<e.length||e.breakAfter&&(null===h||void 0===h?void 0:h.breakAfter))?(t==r&&(e=e.split(i),i=0),!d&&h&&e.merge(0,i,h,!0,0,l)?o[o.length-1]=e:((i||e.children.length&&!e.children[0].length)&&e.merge(0,i,null,!1,0,l),o.push(e))):(null===e||void 0===e?void 0:e.breakAfter)&&(h?h.breakAfter=1:s=1),r++}for(u&&(u.breakAfter=s,n>0&&(!s&&o.length&&u.merge(n,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(n<u.length||u.children.length&&0==u.children[u.children.length-1].length)&&u.merge(n,u.length,null,!1,a,0),t++));t<r&&o.length;)if(c[r-1].become(o[o.length-1]))r--,o.pop(),l=o.length?0:a;else{if(!c[t].become(o[0]))break;t++,o.shift(),a=o.length?0:l}!o.length&&t&&r<c.length&&!c[t-1].breakAfter&&c[r].merge(0,0,c[t-1],!1,a,l)&&t--,(t<r||o.length)&&e.replaceChildren(t,r,o)}}function $(e,t,n,r,i,o){let s=e.childCursor(),{i:a,off:l}=s.findPos(n,1),{i:c,off:u}=s.findPos(t,-1),h=t-n;for(let d of r)h+=d.length;e.length+=h,F(e,c,u,a,l,r,0,i,o)}let B="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},z="undefined"!=typeof document?document:{documentElement:{style:{}}};const q=/Edge\/(\d+)/.exec(B.userAgent),H=/MSIE \d/.test(B.userAgent),U=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(B.userAgent),X=!!(H||U||q),j=!X&&/gecko\/(\d+)/i.test(B.userAgent),Z=!X&&/Chrome\/(\d+)/.exec(B.userAgent),Y="webkitFontSmoothing"in z.documentElement.style,V=!X&&/Apple Computer/.test(B.vendor),G=V&&(/Mobile\/\w+/.test(B.userAgent)||B.maxTouchPoints>2);var W={mac:G||/Mac/.test(B.platform),windows:/Win/.test(B.platform),linux:/Linux|X11/.test(B.platform),ie:X,ie_version:H?z.documentMode||6:U?+U[1]:q?+q[1]:0,gecko:j,gecko_version:j?+(/Firefox\/(\d+)/.exec(B.userAgent)||[0,0])[1]:0,chrome:!!Z,chrome_version:Z?+Z[1]:0,ios:G,android:/Android\b/.test(B.userAgent),webkit:Y,safari:V,webkit_version:Y?+(/\bAppleWebKit\/(\d+)/.exec(B.userAgent)||[0,0])[1]:0,tabSize:null!=z.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class K extends Q{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof K)||this.length-(t-e)+n.length>256||8&n.flags))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new K(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new N(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,s=0;0==t&&n<0||t==r&&n>=0?W.chrome||W.gecko||(t?(i--,s=1):o<r&&(o++,s=-1)):n<0?i--:o<r&&o++;let a=E(e,i,o).getClientRects();if(!a.length)return null;let l=a[(s?s<0:n>=0)?0:a.length-1];W.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,e=>e.width)||l);return s?y(l,s<0):l||null}(this.dom,e,t)}}class J extends Q{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(),this.mark=e,this.children=t,this.length=n;for(let r of t)r.setParent(this)}setAttrs(e){if(_(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,o){return(!n||!(!(n instanceof J&&n.mark.eq(this.mark))||e&&i<=0||t<this.length&&o<=0))&&($(this,e,t,n?n.children.slice():[],i-1,o-1),this.markDirty(),!0)}split(e){let t=[],n=0,r=-1,i=0;for(let s of this.children){let o=n+s.length;o>e&&t.push(n<e?s.split(e-n):s),r<0&&n>=e&&(r=i),n=o,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new J(this.mark,t,o)}domAtPos(e){return ne(this,e)}coordsAt(e,t){return ie(this,e,t)}}class ee extends Q{static create(e,t,n){return new ee(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=ee.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof ee&&this.widget.compare(n.widget))||e>0&&i<=0||t<this.length&&o<=0))&&(this.length=e+(n?n.length:0)+(this.length-t),!0)}become(e){return e instanceof ee&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return r.EY.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,i=this.posAtStart;return n?n.slice(i,i+this.length):r.EY.empty}domAtPos(e){return(this.length?0==e:this.side>0)?N.before(this.dom):N.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let s=o?r.length-1:0;i=r[s],!(e>0?0==s:s==r.length-1||i.top<i.bottom);s+=o?-1:1);return y(i,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class te extends Q{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof te&&e.side==this.side}split(){return new te(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?N.before(this.dom):N.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return r.EY.empty}get isHidden(){return!0}}function ne(e,t){let n=e.dom,{children:r}=e,i=0;for(let o=0;i<r.length;i++){let e=r[i],s=o+e.length;if(!(s==o&&e.getSide()<=0)){if(t>o&&t<s&&e.dom.parentNode==n)return e.domAtPos(t-o);if(t<=o)break;o=s}}for(let o=i;o>0;o--){let e=r[o-1];if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let o=i;o<r.length;o++){let e=r[o];if(e.dom.parentNode==n)return e.domAtPos(0)}return new N(n,0)}function re(e,t,n){let r,{children:i}=e;n>0&&t instanceof J&&i.length&&(r=i[i.length-1])instanceof J&&r.mark.eq(t.mark)?re(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function ie(e,t,n){let r=null,i=-1,o=null,s=-1;!function e(t,a){for(let l=0,c=0;l<t.children.length&&c<=a;l++){let u=t.children[l],h=c+u.length;h>=a&&(u.children.length?e(u,a-c):(!o||o.isHidden&&(n>0||oe(o,u)))&&(h>a||c==h&&u.getSide()>0)?(o=u,s=a-c):(c<a||c==h&&u.getSide()<0&&!u.isHidden)&&(r=u,i=a-c)),c=h}}(e,t);let a=(n<0?r:o)||r||o;return a?a.coordsAt(Math.max(0,a==r?i:s),n):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=f(t);return n[n.length-1]||null}(e)}function oe(e,t){let n=e.coordsAt(0,1),r=t.coordsAt(0,1);return n&&r&&r.top<n.bottom}function se(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}K.prototype.children=ee.prototype.children=te.prototype.children=R;const ae=Object.create(null);function le(e,t,n){if(e==t)return!0;e||(e=ae),t||(t=ae);let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function ce(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function ue(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}class he{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var de=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(de||(de={}));class pe extends r.FB{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new fe(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new ge(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=Oe(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new ge(e,t,n,r,e.widget||null,!0)}static line(e){return new me(e)}static set(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.om.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}pe.none=r.om.empty;class fe extends pe{constructor(e){let{start:t,end:n}=Oe(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof fe&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&le(this.attrs,e.attrs,"class")}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}fe.prototype.point=!1;class me extends pe{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof me&&this.spec.class==e.spec.class&&le(this.spec.attributes,e.spec.attributes)}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}me.prototype.mapMode=r.iR.TrackBefore,me.prototype.point=!0;class ge extends pe{constructor(e,t,n,i,o,s){super(t,n,o,e),this.block=i,this.isReplace=s,this.mapMode=i?t<=0?r.iR.TrackBefore:r.iR.TrackAfter:r.iR.TrackDel}get type(){return this.startSide!=this.endSide?de.WidgetRange:this.startSide<=0?de.WidgetBefore:de.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof ge&&(t=this.widget,n=e.widget,t==n||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Oe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!==n&&void 0!==n?n:t,end:null!==r&&void 0!==r?r:t}}function be(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}ge.prototype.point=!0;class ve extends Q{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,i,o){if(n){if(!(n instanceof ve))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),$(this,e,t,n?n.children.slice():[],i,o),!0}split(e){let t=new ve;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let i=n;i<this.children.length;i++)t.append(this.children[i],0);for(;n>0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){le(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){re(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=se(t,this.attrs||{})),n&&(this.attrs=se({class:n},this.attrs||{}))}domAtPos(e){return ne(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(_(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ce(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&Q.get(r)instanceof J;)r=r.lastChild;if(!r||!this.length||"BR"!=r.nodeName&&0==(null===(n=Q.get(r))||void 0===n?void 0:n.isEditable)&&(!W.ios||!this.children.some(e=>e instanceof K))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof K)||/[^ -~]/.test(n.text))return null;let r=f(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=ie(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let r=(t-e.textHeight)/2;return{top:n.top+r,bottom:n.bottom-r,left:n.left,right:n.left}}}return n}become(e){return e instanceof ve&&0==this.children.length&&0==e.children.length&&le(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let n=0,r=0;n<e.children.length;n++){let i=e.children[n],o=r+i.length;if(o>=t){if(i instanceof ve)return i;if(o>t)break}r=o+i.breakAfter}return null}}class ye extends Q{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof ye&&this.widget.compare(n.widget))||e>0&&i<=0||t<this.length&&o<=0))&&(this.length=e+(n?n.length:0)+(this.length-t),!0)}domAtPos(e){return 0==e?N.before(this.dom):N.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new ye(this.widget,t,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return R}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):r.EY.empty}domBoundsAround(){return null}become(e){return e instanceof ye&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);return n||(this.widget instanceof xe?null:y(this.dom.getBoundingClientRect(),this.length?0==e:t<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:n}=this.deco;return t!=n&&(e<0?t<0:n>0)}}class xe extends he{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class ke{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof ye&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ve),this.atCursorPos=!0),this.curLine}flushBuffer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(Se(new te(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof ye||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(Se(new K(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof ge){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(n instanceof ge)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ye(n.widget||we.block,s,n));else{let o=ee.create(n.widget||we.inline,s,s?0:n.startSide),a=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e<t||n.startSide>0),l=!o.isEditable&&(e<t||i>r.length||n.startSide<=0),c=this.getLine();2!=this.pendingBuffer||a||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),a&&(c.append(Se(new te(1),r),i),i=r.length+Math.max(0,i-r.length)),c.append(Se(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?e<t||i>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,i,o){let s=new ke(e,t,n,o);return s.openEnd=r.om.spans(i,t,n,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function Se(e,t){for(let n of t)e=new J(n,[e],e.length);return e}class we extends he{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}we.inline=new we("span"),we.block=new we("div");var Ae=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Ae||(Ae={}));const Te=Ae.LTR,Ee=Ae.RTL;function Ce(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const _e=Ce("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Pe=Ce("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),De=Object.create(null),Me=[];for(let ao of["()","[]","{}"]){let e=ao.charCodeAt(0),t=ao.charCodeAt(1);De[e]=t,De[t]=-e}function Ne(e){return e<=247?_e[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?Pe[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const Re=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Qe{get dir(){return this.level%2?Ee:Te}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,r){let i=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=t&&s.to>=t){if(s.level==n)return o;(i<0||(0!=r?r<0?s.from<t:s.to>t:e[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function Ie(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!Ie(r.inner,i.inner))return!1}return!0}const Le=[];function Fe(e,t,n,r,i,o,s){let a=r%2?2:1;if(r%2==i%2)for(let l=t,c=0;l<n;){let t=!0,u=!1;if(c==o.length||l<o[c].from){let e=Le[l];e!=a&&(t=!1,u=16==e)}let h=t||1!=a?null:[],d=t?r:r+1,p=l;e:for(;;)if(c<o.length&&p==o[c].from){if(u)break e;let f=o[c];if(!t)for(let e=f.to,t=c+1;;){if(e==n)break e;if(!(t<o.length&&o[t].from==e)){if(Le[e]==a)break e;break}e=o[t++].to}if(c++,h)h.push(f);else{f.from>l&&s.push(new Qe(l,f.from,d)),$e(e,f.direction==Te!=!(d%2)?r+1:r,i,f.inner,f.from,f.to,s),l=f.to}p=f.to}else{if(p==n||(t?Le[p]!=a:Le[p]==a))break;p++}h?Fe(e,l,p,r+1,i,h,s):l<p&&s.push(new Qe(l,p,d)),l=p}else for(let l=n,c=o.length;l>t;){let n=!0,u=!1;if(!c||l>o[c-1].to){let e=Le[l-1];e!=a&&(n=!1,u=16==e)}let h=n||1!=a?null:[],d=n?r:r+1,p=l;e:for(;;)if(c&&p==o[c-1].to){if(u)break e;let f=o[--c];if(!n)for(let e=f.from,n=c;;){if(e==t)break e;if(!n||o[n-1].to!=e){if(Le[e-1]==a)break e;break}e=o[--n].from}if(h)h.push(f);else{f.to<l&&s.push(new Qe(f.to,l,d)),$e(e,f.direction==Te!=!(d%2)?r+1:r,i,f.inner,f.from,f.to,s),l=f.from}p=f.from}else{if(p==t||(n?Le[p-1]!=a:Le[p-1]==a))break;p--}h?Fe(e,p,l,r+1,i,h,s):p<l&&s.push(new Qe(p,l,d)),l=p}}function $e(e,t,n,r,i,o,s){let a=t%2?2:1;!function(e,t,n,r,i){for(let o=0;o<=r.length;o++){let s=o?r[o-1].to:t,a=o<r.length?r[o].from:n,l=o?256:i;for(let t=s,n=l,r=l;t<a;t++){let i=Ne(e.charCodeAt(t));512==i?i=n:8==i&&4==r&&(i=16),Le[t]=4==i?2:i,7&i&&(r=i),n=i}for(let e=s,t=l,r=l;e<a;e++){let i=Le[e];if(128==i)e<a-1&&t==Le[e+1]&&24&t?i=Le[e]=t:Le[e]=256;else if(64==i){let i=e+1;for(;i<a&&64==Le[i];)i++;let o=e&&8==t||i<n&&8==Le[i]?1==r?1:8:256;for(let t=e;t<i;t++)Le[t]=o;e=i-1}else 8==i&&1==r&&(Le[e]=1);t=i,7&i&&(r=i)}}}(e,i,o,r,a),function(e,t,n,r,i){let o=1==i?2:1;for(let s=0,a=0,l=0;s<=r.length;s++){let c=s?r[s-1].to:t,u=s<r.length?r[s].from:n;for(let t,n,r,s=c;s<u;s++)if(n=De[t=e.charCodeAt(s)])if(n<0){for(let e=a-3;e>=0;e-=3)if(Me[e+1]==-n){let t=Me[e+2],n=2&t?i:4&t?1&t?o:i:0;n&&(Le[s]=Le[Me[e]]=n),a=e;break}}else{if(189==Me.length)break;Me[a++]=s,Me[a++]=t,Me[a++]=l}else if(2==(r=Le[s])||1==r){let e=r==i;l=e?0:1;for(let t=a-3;t>=0;t-=3){let n=Me[t+2];if(2&n)break;if(e)Me[t+2]|=2;else{if(4&n)break;Me[t+2]|=4}}}}}(e,i,o,r,a),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let s=i?n[i-1].to:e,a=i<n.length?n[i].from:t;for(let l=s;l<a;){let s=Le[l];if(256==s){let s=l+1;for(;;)if(s==a){if(i==n.length)break;s=n[i++].to,a=i<n.length?n[i].from:t}else{if(256!=Le[s])break;s++}let c=1==o,u=c==(1==(s<t?Le[s]:r))?c?1:2:r;for(let t=s,r=i,o=r?n[r-1].to:e;t>l;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),Le[--t]=u;l=s}else o=s,l++}}}(i,o,r,a),Fe(e,i,o,t,n,r,s)}function Be(e,t,n){if(!e)return[new Qe(0,0,t==Ee?1:0)];if(t==Te&&!n.length&&!Re.test(e))return ze(e.length);if(n.length)for(;e.length>Le.length;)Le[Le.length]=256;let r=[],i=t==Te?0:1;return $e(e,i,i,n,0,e.length,r),r}function ze(e){return[new Qe(0,e,0)]}let qe="";function He(e,t,n,i,o){var s;let a=i.head-e.from,l=Qe.find(t,a,null!==(s=i.bidiLevel)&&void 0!==s?s:-1,i.assoc),c=t[l],u=c.side(o,n);if(a==u){let e=l+=o?1:-1;if(e<0||e>=t.length)return null;c=t[l=e],a=c.side(!o,n),u=c.side(o,n)}let h=(0,r.zK)(e.text,a,c.forward(o,n));(h<c.from||h>c.to)&&(h=u),qe=e.text.slice(Math.min(a,h),Math.max(a,h));let d=l==(o?t.length-1:0)?null:t[l+(o?1:-1)];return d&&h==u&&d.level+(o?0:1)<c.level?r.OF.cursor(d.side(!o,n)+e.from,d.forward(o,n)?1:-1,d.level):r.OF.cursor(h+e.from,c.forward(o,n)?-1:1,c.level)}function Ue(e,t,n){for(let r=t;r<n;r++){let t=Ne(e.charCodeAt(r));if(1==t)return Te;if(2==t||4==t)return Ee}return Te}const Xe=r.sj.define(),je=r.sj.define(),Ze=r.sj.define(),Ye=r.sj.define(),Ve=r.sj.define(),Ge=r.sj.define(),We=r.sj.define(),Ke=r.sj.define(),Je=r.sj.define(),et=r.sj.define({combine:e=>e.some(e=>e)}),tt=r.sj.define({combine:e=>e.some(e=>e)}),nt=r.sj.define();class rt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new rt(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new rt(r.OF.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const it=r.Pe.define({map:(e,t)=>e.map(t)}),ot=r.Pe.define();function st(e,t,n){let r=e.facet(Ye);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)||(n?console.error(n+":",t):console.error(t))}const at=r.sj.define({combine:e=>!e.length||e[0]});let lt=0;const ct=r.sj.define({combine:e=>e.filter((t,n)=>{for(let r=0;r<n;r++)if(e[r].plugin==t.plugin)return!1;return!0})});class ut{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.baseExtensions=i(this),this.extension=this.baseExtensions.concat(ct.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(ct.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=t||{};return new ut(lt++,e,n,r,e=>{let t=[];return o&&t.push(ft.of(t=>{let n=t.plugin(e);return n?o(n):pe.none})),i&&t.push(i(e)),t})}static fromClass(e,t){return ut.define((t,n)=>new e(t,n),t)}}class ht{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(st(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(n){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){st(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(n){st(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const dt=r.sj.define(),pt=r.sj.define(),ft=r.sj.define(),mt=r.sj.define(),gt=r.sj.define(),Ot=r.sj.define();function bt(e,t){let n=e.state.facet(Ot);if(!n.length)return n;let i=n.map(t=>t instanceof Function?t(e):t),o=[];return r.om.spans(i,t.from,t.to,{point(){},span(e,n,r,i){let s=e-t.from,a=n-t.from,l=o;for(let o=r.length-1;o>=0;o--,i--){let e,n=r[o].spec.bidiIsolate;if(null==n&&(n=Ue(t.text,s,a)),i>0&&l.length&&(e=l[l.length-1]).to==s&&e.direction==n)e.to=a,l=e.inner;else{let e={from:s,to:a,direction:n,inner:[]};l.push(e),l=e.inner}}}}),o}const vt=r.sj.define();function yt(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(vt)){let s=o(e);s&&(null!=s.left&&(t=Math.max(t,s.left)),null!=s.right&&(n=Math.max(n,s.right)),null!=s.top&&(r=Math.max(r,s.top)),null!=s.bottom&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const xt=r.sj.define();class kt{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new kt(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let r=0,i=0,o=0,s=0;;r++){let a=r==e.length?null:e[r],l=o-s,c=a?a.fromB:1e9;for(;i<t.length&&t[i]<c;){let e=t[i],r=t[i+1],o=Math.max(s,e),a=Math.min(c,r);if(o<=a&&new kt(o+l,a+l,o,a).addToSet(n),r>c)break;i+=2}if(!a)return n;new kt(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),o=a.toA,s=a.toB}}}class St{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=r.VR.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let i=[];this.changes.iterChangedRanges((e,t,n,r)=>i.push(new kt(e,t,n,r))),this.changedRanges=i}static create(e,t,n){return new St(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}class wt extends Q{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=pe.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new ve],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new kt(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(e=>{let{fromA:t,toA:n}=e;return n<this.minWidthFrom||t>this.minWidthTo})?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?i=this.domChanged.newSel.head:function(e,t){let n=!1;t&&e.iterChangedRanges((e,r)=>{e<t.to&&r>t.from&&(n=!0)});return n}(e.changes,this.hasComposition)||e.selectionSet||(i=e.state.selection.main.head));let o=i>-1?function(e,t,n){let r=At(e,n);if(!r)return null;let{node:i,from:o,to:s}=r,a=i.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(r.from,r.to)!=a)return null;let l=t.invertedDesc,c=new kt(l.mapPos(o),l.mapPos(s),o,s),u=[];for(let h=i.parentNode;;h=h.parentNode){let t=Q.get(h);if(t instanceof J)u.push({node:h,deco:t.mark});else{if(t instanceof ve||"DIV"==h.nodeName&&h.parentNode==e.contentDOM)return{range:c,text:i,marks:u,line:h};if(h==e.contentDOM)return null;u.push({node:h,deco:new fe({inclusive:!0,attributes:ue(h),tagName:h.tagName.toLowerCase()})})}}}(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:r}=this.hasComposition;n=new kt(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(W.ie||W.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=function(e,t,n){let i=new Tt;return r.om.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return n=kt.extendWithRanges(n,s),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=W.chrome||W.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||r.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(e=>e.flags&=-9);let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof ye&&o.widget instanceof xe&&i.push(o.dom);r.updateGaps(i)}updateChildren(e,t,n){let r=n?n.range.addToSet(e.slice()):e,i=this.childCursor(t);for(let o=r.length-1;;o--){let e=o>=0?r[o]:null;if(!e)break;let t,s,a,l,{fromA:c,toA:u,fromB:h,toB:d}=e;if(n&&n.range.fromB<d&&n.range.toB>h){let e=ke.build(this.view.state.doc,h,n.range.fromB,this.decorations,this.dynamicDecorationMap),r=ke.build(this.view.state.doc,n.range.toB,d,this.decorations,this.dynamicDecorationMap);s=e.breakAtStart,a=e.openStart,l=r.openEnd;let i=this.compositionView(n);r.breakAtStart?i.breakAfter=1:r.content.length&&i.merge(i.length,i.length,r.content[0],!1,r.openStart,0)&&(i.breakAfter=r.content[0].breakAfter,r.content.shift()),e.content.length&&i.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),t=e.content.concat(i).concat(r.content)}else({content:t,breakAtStart:s,openStart:a,openEnd:l}=ke.build(this.view.state.doc,h,d,this.decorations,this.dynamicDecorationMap));let{i:p,off:f}=i.findPos(u,1),{i:m,off:g}=i.findPos(c,-1);F(this,m,g,p,f,t,s,a,l)}n&&this.fixCompositionDOM(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let e of t.effects)e.is(ot)&&(this.editContextFormatting=e.value)}compositionView(e){let t=new K(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new J(r,[t],t.length);let n=new ve;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some(e=>7&e.flags)?1:0),this.markedForComposition.add(t);let n=Q.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r);for(let i=e.marks.length-1;i>=-1;i--)n=r.childPos(n.off,1),r=r.children[n.i],t(i>=0?e.marks[i].node:e.text,r)}updateSelection(){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let t=this.view.root.activeElement,n=t==this.dom,r=!n&&!(this.view.state.facet(at)||this.dom.tabIndex>-1)&&p(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t));if(!(n||e||r))return;let i=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,s=this.moveToLine(this.domAtPos(o.anchor)),a=o.empty?s:this.moveToLine(this.domAtPos(o.head));if(W.gecko&&o.empty&&!this.hasComposition&&(1==(l=s).node.nodeType&&l.node.firstChild&&(0==l.offset||"false"==l.node.childNodes[l.offset-1].contentEditable)&&(l.offset==l.node.childNodes.length||"false"==l.node.childNodes[l.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore(()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null)),s=a=new N(e,0),i=!0}var l;let c=this.view.observer.selectionRange;!i&&c.focusNode&&(m(s.node,s.offset,c.anchorNode,c.anchorOffset)&&m(a.node,a.offset,c.focusNode,c.focusOffset)||this.suppressWidgetCursorChange(c,o))||(this.view.observer.ignore(()=>{W.android&&W.chrome&&this.dom.contains(c.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=h(this.view.root);if(e)if(o.empty){if(W.gecko){let e=(n=s.node,i=s.offset,1!=n.nodeType?0:(i&&"false"==n.childNodes[i-1].contentEditable?1:0)|(i<n.childNodes.length&&"false"==n.childNodes[i].contentEditable?2:0));if(e&&3!=e){let t=(1==e?D:M)(s.node,s.offset);t&&(s=new N(t.node,t.offset))}}e.collapse(s.node,s.offset),null!=o.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=o.bidiLevel)}else if(e.extend){e.collapse(s.node,s.offset);try{e.extend(a.node,a.offset)}catch(l){}}else{let t=document.createRange();o.anchor>o.head&&([s,a]=[a,s]),t.setEnd(a.node,a.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}else;var n,i;r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),t&&t.focus())}),this.view.observer.setSelectionRange(s,a)),this.impreciseAnchor=s.precise?null:new N(c.anchorNode,c.anchorOffset),this.impreciseHead=a.precise?null:new N(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&m(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=h(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=ve.find(this,t.head);if(!o)return;let s=o.posAtStart;if(t.head==s||t.head==s+o.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,i)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let r=e.offset;!t&&r<n.childNodes.length;r++){let e=Q.get(n.childNodes[r]);e instanceof ve&&(t=e.domAtPos(0))}for(let r=e.offset-1;!t&&r>=0;r--){let e=Q.get(n.childNodes[r]);e instanceof ve&&(t=e.domAtPos(e.length))}return t?new N(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=Q.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(n<e.length||e instanceof ve)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,r=0;for(let i=this.length,o=this.children.length-1;o>=0;o--){let s=this.children[o],a=i-s.breakAfter,l=a-s.length;if(a<e)break;if(l<=e&&(l<e||s.covers(-1))&&(a>e||s.covers(1))&&(!n||s instanceof ve&&!(n instanceof ve&&t>=0)))n=s,r=l;else if(n&&l==e&&a==e&&s instanceof ye&&Math.abs(t)<2){if(s.deco.startSide<0)break;o&&(n=null)}i=l}return n?n.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),i=this.children[t];if(!(i instanceof ve))return null;for(;i.children.length;){let{i:e,off:t}=i.childPos(n,1);for(;;e++){if(e==i.children.length)return null;if((i=i.children[e]).length)break}n=t}if(!(i instanceof K))return null;let o=(0,r.zK)(i.text,n);if(o==n)return null;let s=E(i.dom,n,o).getClientRects();for(let r=0;r<s.length;r++){let e=s[r];if(r==s.length-1||e.top<e.bottom&&e.left<e.right)return e}return null}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==Ae.LTR;for(let l=0,c=0;c<this.children.length;c++){let e=this.children[c],u=l+e.length;if(u>r)break;if(l>=n){let n=e.dom.getBoundingClientRect();if(t.push(n.height),o){let t=e.dom.lastChild,r=t?f(t):[];if(r.length){let e=r[r.length-1],t=a?e.right-n.left:n.right-e.left;t>s&&(s=t,this.minWidth=i,this.minWidthFrom=l,this.minWidthTo=u)}}}l=u+e.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Ae.RTL:Ae.LTR}measureTextSize(){for(let i of this.children)if(i instanceof ve){let e=i.measureTextSize();if(e)return e}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.style.position="absolute",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(r);let i=f(r.firstChild)[0];e=r.getBoundingClientRect().height,t=i?i.width/27:7,n=i?i.height:e,r.remove()}),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,t=this.children.length;return t&&(e-=this.children[--t].length),new L(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(pe.replace({widget:new xe(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return pe.set(e)}updateDeco(){let e=1,t=this.view.state.facet(ft).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),n=!1,i=this.view.state.facet(mt).map((e,t)=>{let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e});for(i.length&&(this.dynamicDecorationMap[e++]=n,t.push(r.om.join(i))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}for(let c of this.view.state.facet(nt))try{if(c(this.view,e.range,e))return!0}catch(l){st(this.view.state,l,"scroll handler")}let t,{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=yt(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:s,offsetHeight:a}=this.view.scrollDOM;!function(e,t,n,r,i,o,s,a){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,h=!1;u&&!h;)if(1==u.nodeType){let e,d=u==l.body,p=1,f=1;if(d)e=x(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:p,scaleY:f}=k(u,t)),e={left:t.left,right:t.left+u.clientWidth*p,top:t.top,bottom:t.top+u.clientHeight*f}}let m=0,g=0;if("nearest"==i)t.top<e.top?(g=t.top-(e.top+s),n>0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+s)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+s,n<0&&t.top-g<e.top&&(g=t.top-(e.top+s)));else{let r=t.bottom-t.top,o=e.bottom-e.top;g=("center"==i&&r<=o?t.top+r/2-o/2:"start"==i||"center"==i&&n<0?t.top-s:t.bottom-o+s)-e.top}if("nearest"==r?t.left<e.left?(m=t.left-(e.left+o),n>0&&t.right>e.right+m&&(m=t.right-e.right+o)):t.right>e.right&&(m=t.right-e.right+o,n<0&&t.left<e.left+m&&(m=t.left-(e.left+o))):m=("center"==r?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==r==a?t.left-o:t.right-(e.right-e.left)+o)-e.left,m||g)if(d)c.scrollBy(m,g);else{let e=0,n=0;if(g){let e=u.scrollTop;u.scrollTop+=g/f,n=(u.scrollTop-e)*f}if(m){let t=u.scrollLeft;u.scrollLeft+=m/p,e=(u.scrollLeft-t)*p}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&Math.abs(e-m)<1&&(r="nearest"),n&&Math.abs(n-g)<1&&(i="nearest")}if(d)break;(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),u=u.assignedSlot||u.parentNode}else{if(11!=u.nodeType)break;u=u.host}}(this.view.scrollDOM,o,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,s),-s),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==Ae.LTR)}}function At(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=D(n.focusNode,n.focusOffset),i=M(n.focusNode,n.focusOffset),o=r||i;if(i&&r&&i.node!=r.node){let t=Q.get(i.node);if(!t||t instanceof K&&t.text!=i.node.nodeValue)o=i;else if(e.docView.lastCompositionAfterCursor){let e=Q.get(r.node);!e||e instanceof K&&e.text!=r.node.nodeValue||(o=i)}}if(e.docView.lastCompositionAfterCursor=o!=r,!o)return null;let s=t-o.offset;return{from:s,to:s+o.node.nodeValue.length,node:o.node}}let Tt=class{constructor(){this.changes=[]}compareRange(e,t){be(e,t,this.changes)}comparePoint(e,t){be(e,t,this.changes)}boundChange(e){be(e,e,this.changes)}};function Et(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Ct(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function _t(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function Pt(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function Dt(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function Mt(e,t,n){let r,i,o,s,a,l,c,u,h=!1;for(let p=e.firstChild;p;p=p.nextSibling){let e=f(p);for(let d=0;d<e.length;d++){let f=e[d];i&&_t(i,f)&&(f=Pt(Dt(f,i.bottom),i.top));let m=Et(t,f),g=Ct(n,f);if(0==m&&0==g)return 3==p.nodeType?Nt(p,t,n):Mt(p,t,n);(!r||s>g||s==g&&o>m)&&(r=p,i=f,o=m,s=g,h=!m||(t<f.left?d>0:d<e.length-1)),0==m?n>f.bottom&&(!c||c.bottom<f.bottom)?(a=p,c=f):n<f.top&&(!u||u.top>f.top)&&(l=p,u=f):c&&_t(c,f)?c=Dt(c,f.bottom):u&&_t(u,f)&&(u=Pt(u,f.top))}}if(c&&c.bottom>=n?(r=a,i=c):u&&u.top<=n&&(r=l,i=u),!r)return{node:e,offset:0};let d=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?Nt(r,d,n):h&&"false"!=r.contentEditable?Mt(r,d,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function Nt(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,s=0;for(let a=0;a<r;a++){let r=E(e,a,a+1).getClientRects();for(let l=0;l<r.length;l++){let c=r[l];if(c.top==c.bottom)continue;s||(s=t-c.left);let u=(c.top>n?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&u<o){let n=t>=(c.left+c.right)/2,r=n;if(W.chrome||W.gecko){E(e,a).getBoundingClientRect().left==c.right&&(r=!n)}if(u<=0)return{node:e,offset:a+(r?1:0)};i=a+(r?1:0),o=u}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function Rt(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;var i,o;let s,a=e.contentDOM.getBoundingClientRect(),l=a.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:u,y:h}=t,d=h-l;if(d<0)return 0;if(d>c)return e.state.doc.length;for(let v=e.viewState.heightOracle.textHeight/2,x=!1;s=e.elementAtHeight(d),s.type!=de.Text;)for(;d=r>0?s.bottom+v:s.top-v,!(d>=0&&d<=c);){if(x)return n?null:0;x=!0,r=-r}h=l+d;let p=s.from;if(p<e.viewport.from)return 0==e.viewport.from?0:n?null:Qt(e,a,s,u,h);if(p>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:Qt(e,a,s,u,h);let f=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:f,g=m.elementFromPoint(u,h);g&&!e.contentDOM.contains(g)&&(g=null),g||(u=Math.max(a.left+1,Math.min(a.right-1,u)),g=m.elementFromPoint(u,h),g&&!e.contentDOM.contains(g)&&(g=null));let O,b=-1;if(g&&0!=(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable)){if(f.caretPositionFromPoint){let e=f.caretPositionFromPoint(u,h);e&&({offsetNode:O,offset:b}=e)}else if(f.caretRangeFromPoint){let t=f.caretRangeFromPoint(u,h);t&&(({startContainer:O,startOffset:b}=t),(!e.contentDOM.contains(O)||W.safari&&function(e,t,n){let r,i=e;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(;;){let e=i.nextSibling;if(e){if("BR"==e.nodeName)break;return!1}{let e=i.parentNode;if(!e||"DIV"==e.nodeName)break;i=e}}return E(e,r-1,r).getBoundingClientRect().right>n}(O,b,u)||W.chrome&&function(e,t,n){if(0!=t)return!1;for(let i=e;;){let e=i.parentNode;if(!e||1!=e.nodeType||e.firstChild!=i)return!1;if(e.classList.contains("cm-line"))break;i=e}let r=1==e.nodeType?e.getBoundingClientRect():E(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}(O,b,u))&&(O=void 0))}O&&(b=Math.min(v(O),b))}if(!O||!e.docView.dom.contains(O)){let t=ve.find(e.docView,p);if(!t)return d>s.top+s.height/2?s.to:s.from;({node:O,offset:b}=Mt(t.dom,u,h))}let y=e.docView.nearest(O);if(!y)return null;if(y.isWidget&&1==(null===(o=y.dom)||void 0===o?void 0:o.nodeType)){let e=y.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?y.posAtStart:y.posAtEnd}return y.localPosFromDOM(O,b)+y.posAtStart}function Qt(e,t,n,i,o){let s=Math.round((i-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;s+=Math.floor((o-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+(0,r.kn)(a,s,e.state.tabSize)}function It(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let e;for(let i of r.type){if(i.from>t)break;if(!(i.to<t)){if(i.from<t&&i.to>t)return i;e&&(i.type!=de.Text||e.type==i.type&&!(n<0?i.from<t:i.to>t))||(e=i)}}return e||r}return r}function Lt(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let a=t,l=null;;){let t=He(i,o,s,a,n),c=qe;if(!t){if(i.number==(n?e.state.doc.lines:1))return a;c="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),t=e.visualLineSide(i,!n)}if(l){if(!l(c))return a}else{if(!r)return t;l=r(c)}a=t}}function Ft(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,o)=>{if(t>e&&t<i){let o=r||n||(t-e<i-t?-1:1);t=o<0?e:i,r=o}});if(!r)return t}}function $t(e,t,n){let i=Ft(e.state.facet(gt).map(t=>t(e)),n.from,t.head>n.from?-1:1);return i==n.from?n:r.OF.cursor(i,i<n.from?1:-1)}const Bt="\uffff";class zt{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(r.$t.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Bt}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=r.nextSibling;if(i==t)break;let o=Q.get(r),s=Q.get(i);(o&&s?o.breakAfter:(o?o.breakAfter:O(r))||O(i)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>e)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,s=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,s=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);n=o+s}}readNode(e){if(e.cmIgnore)return;let t=Q.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(qt(e,n.node,n.offset)?t:0))}}function qt(e,t,n){for(;;){if(!t||n<v(t))return!1;if(t==e)return!0;n=g(t)+1,t=t.parentNode}}class Ht{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Ut{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:o,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=o||s?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;n&&(t.push(new Ht(n,r)),i==n&&o==r||t.push(new Ht(i,o)));return t}(e),n=new zt(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?r.OF.single(n+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!d(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=s&&s.node==t.anchorNode&&s.offset==t.anchorOffset||!d(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),a=e.viewport;if((W.ios||W.chrome)&&e.state.selection.main.empty&&n!=i&&(a.from>0||a.to<e.state.doc.length)){let t=Math.min(n,i),r=Math.max(n,i),o=a.from-t,s=a.to-r;0!=o&&1!=o&&0!=t||0!=s&&-1!=s&&r!=e.state.doc.length||(n=0,i=e.state.doc.length)}this.newSel=r.OF.single(i,n)}}}function Xt(e,t){let n,{newSel:i}=t,o=e.state.selection.main,s=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:a}=t.bounds,l=o.from,c=null;(8===s||W.android&&t.text.length<a-i)&&(l=o.to,c="end");let u=function(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o<i&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==i&&e.length==t.length)return null;let s=e.length,a=t.length;for(;s>0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;if("end"==r){n-=s+Math.max(0,o-Math.min(s,a))-o}if(s<o&&e.length<t.length){o-=n<=o&&n>=s?o-n:0,a=o+(a-s),s=o}else if(a<o){o-=n<=o&&n>=a?o-n:0,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}(e.state.doc.sliceString(i,a,Bt),t.text,l-i,c);u&&(W.chrome&&13==s&&u.toB==u.from+2&&t.text.slice(u.from,u.toB)==Bt+Bt&&u.toB--,n={from:i+u.from,to:i+u.toA,insert:r.EY.of(t.text.slice(u.from,u.toB).split(Bt))})}else i&&(!e.hasFocus&&e.state.facet(at)||i.main.eq(o))&&(i=null);if(!n&&!i)return!1;if(!n&&t.typeOver&&!o.empty&&i&&i.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:(W.mac||W.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=r.OF.single(i.main.anchor-1,i.main.head-1)),n={from:n.from,to:n.to,insert:r.EY.of([n.insert.toString().replace("."," ")])}):n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:W.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(i&&(i=r.OF.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.EY.of([" "])}),n)return jt(e,n,i,s);if(i&&!i.main.eq(o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:n}),!0}return!1}function jt(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(W.ios&&e.inputState.flushIOSKey(t))return!0;let o=e.state.selection.main;if(W.android&&(t.to==o.to&&(t.from==o.from||t.from==o.from-1&&" "==e.state.sliceDoc(t.from,o.from))&&1==t.insert.length&&2==t.insert.lines&&C(e.contentDOM,"Enter",13)||(t.from==o.from-1&&t.to==o.to&&0==t.insert.length||8==i&&t.insert.length<t.to-t.from&&t.to>o.head)&&C(e.contentDOM,"Backspace",8)||t.from==o.from&&t.to==o.to+1&&0==t.insert.length&&C(e.contentDOM,"Delete",46)))return!0;let s,a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>s||(s=function(e,t,n){let i,o=e.state,s=o.selection.main;if(t.from>=s.from&&t.to<=s.to&&t.to-t.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=s.from<t.from?o.sliceDoc(s.from,t.from):"",r=s.to>t.to?o.sliceDoc(t.to,s.to):"";i=o.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+r))}else{let a=o.changes(t),l=n&&n.main.to<=a.newLength?n.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=s.to&&t.to>=s.to-10){let c,u=e.state.sliceDoc(t.from,t.to),h=n&&At(e,n.main.head);if(h){let e=t.insert.length-(t.to-t.from);c={from:h.from,to:h.to-e}}else c=e.state.doc.lineAt(s.head);let d=s.to-t.to,p=s.to-s.from;i=o.changeByRange(n=>{if(n.from==s.from&&n.to==s.to)return{changes:a,range:l||n.map(a)};let i=n.to-d,h=i-u.length;if(n.to-n.from!=p||e.state.sliceDoc(h,i)!=u||n.to>=c.from&&n.from<=c.to)return{range:n};let f=o.changes({from:h,to:i,insert:t.insert}),m=n.to-s.to;return{changes:f,range:l?r.OF.range(Math.max(0,l.anchor+m),Math.max(0,l.head+m)):n.map(f)}})}else i={changes:a,selection:l&&o.selection.replaceRange(l)}}let a="input.type";(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1));return o.update(i,{userEvent:a,scrollIntoView:!0})}(e,t,n));return e.state.facet(Ge).some(n=>n(e,t.from,t.to,a,l))||e.dispatch(l()),!0}class Zt{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,W.safari&&e.contentDOM.addEventListener("input",()=>null),W.gecko&&function(e){xn.has(e)||(xn.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=Q.get(r))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e)))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Vt(e),n=this.handlers,r=this.view.contentDOM;for(let i in t)if("scroll"!=i){let e=!t[i].handlers.length,o=n[i];o&&e!=!o.handlers.length&&(r.removeEventListener(i,this.handleEvent),o=null),o||r.addEventListener(i,this.handleEvent,{passive:e})}for(let i in n)"scroll"==i||t[i]||r.removeEventListener(i,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&Kt.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),W.android&&W.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!W.ios||e.synthetic||e.altKey||e.metaKey||!((t=Gt.find(t=>t.keyCode==e.keyCode))&&!e.ctrlKey||Wt.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(!("Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,C(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0)))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(W.safari&&!W.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Yt(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){st(n.state,i)}}}function Vt(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let r of e){let e=r.spec,t=e&&e.plugin.domEventHandlers,i=e&&e.plugin.domEventObservers;if(t)for(let o in t){let e=t[o];e&&n(o).handlers.push(Yt(r.value,e))}if(i)for(let o in i){let e=i[o];e&&n(o).observers.push(Yt(r.value,e))}}for(let r in tn)n(r).handlers.push(tn[r]);for(let r in nn)n(r).observers.push(nn[r]);return t}const Gt=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Wt="dthko",Kt=[16,17,18,20,91,92,224,225];function Jt(e){return.7*Math.max(0,e)+8}class en{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=function(e){let t,n,r=e.ownerDocument;for(let i=e.parentNode;i&&!(i==r.body||t&&n);)if(1==i.nodeType)!n&&i.scrollHeight>i.clientHeight&&(n=i),!t&&i.scrollWidth>i.clientWidth&&(t=i),i=i.assignedSlot||i.parentNode;else{if(11!=i.nodeType)break;i=i.host}return{x:t,y:n}}(e.contentDOM),this.atoms=e.state.facet(gt).map(t=>t(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(r.$t.allowMultipleSelections)&&function(e,t){let n=e.state.facet(Xe);return n.length?n[0](t):W.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=h(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o<i.length;o++){let e=i[o];if(e.left<=t.clientX&&e.right>=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0}return!1}(e,t)||1!=mn(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(t=this.startEvent,n=e,Math.max(Math.abs(t.clientX-n.clientX),Math.abs(t.clientY-n.clientY))<10))return;var t,n;this.select(this.lastEvent=e);let r=0,i=0,o=0,s=0,a=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:o,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:l}=this.scrollParents.y.getBoundingClientRect());let c=yt(this.view);e.clientX-c.left<=o+6?r=-Jt(o-e.clientX):e.clientX+c.right>=a-6&&(r=Jt(e.clientX-a)),e.clientY-c.top<=s+6?i=-Jt(s-e.clientY):e.clientY+c.bottom>=l-6&&(i=Jt(e.clientY-l)),this.setScrollSpeed(r,i)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;n<e.ranges.length;n++){let i=e.ranges[n],o=null;if(i.empty){let e=Ft(this.atoms,i.from,0);e!=i.from&&(o=r.OF.cursor(e,-1))}else{let e=Ft(this.atoms,i.from,-1),t=Ft(this.atoms,i.to,1);e==i.from&&t==i.to||(o=r.OF.range(i.from==i.anchor?e:t,i.from==i.head?e:t))}o&&(t||(t=e.ranges.slice()),t[n]=o)}return t?r.OF.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&n.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}const tn=Object.create(null),nn=Object.create(null),rn=W.ie&&W.ie_version<15||W.ios&&W.webkit_version<604;function on(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function sn(e,t){t=on(e.state,Ke,t);let n,{state:i}=e,o=1,s=i.toText(t),a=s.lines==i.selection.ranges.length;if(null!=On&&i.selection.ranges.every(e=>e.empty)&&On==s.toString()){let e=-1;n=i.changeByRange(n=>{let l=i.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let c=i.toText((a?s.line(o++).text:t)+i.lineBreak);return{changes:{from:l.from,insert:c},range:r.OF.cursor(n.from+c.length)}})}else n=a?i.changeByRange(e=>{let t=s.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:r.OF.cursor(e.from+t.length)}}):i.replaceSelection(s);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function an(e,t,n,i){if(1==i)return r.OF.cursor(t,n);if(2==i)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=e.charCategorizer(t),o=e.doc.lineAt(t),s=t-o.from;if(0==o.length)return r.OF.cursor(t);0==s?n=1:s==o.length&&(n=-1);let a=s,l=s;n<0?a=(0,r.zK)(o.text,s,!1):l=(0,r.zK)(o.text,s);let c=i(o.text.slice(a,l));for(;a>0;){let e=(0,r.zK)(o.text,a,!1);if(i(o.text.slice(e,a))!=c)break;a=e}for(;l<o.length;){let e=(0,r.zK)(o.text,l);if(i(o.text.slice(l,e))!=c)break;l=e}return r.OF.range(a+o.from,l+o.from)}(e.state,t,n);{let n=ve.find(e.docView,t),i=e.state.doc.lineAt(n?n.posAtEnd:t),o=n?n.posAtStart:i.from,s=n?n.posAtEnd:i.to;return s<e.state.doc.length&&s==i.to&&s++,r.OF.range(o,s)}}nn.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},tn.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),nn.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},nn.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},tn.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(Ze))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=un(e,t),i=mn(t),o=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get(t,s,a){let l,c=un(e,t),u=an(e,c.pos,c.bias,i);if(n.pos!=c.pos&&!s){let t=an(e,n.pos,n.bias,i),o=Math.min(t.from,u.from),s=Math.max(t.to,u.to);u=o<u.from?r.OF.range(o,s):r.OF.range(s,o)}return s?o.replaceRange(o.main.extend(u.from,u.to)):a&&1==i&&o.ranges.length>1&&(l=function(e,t){for(let n=0;n<e.ranges.length;n++){let{from:i,to:o}=e.ranges[n];if(i<=t&&o>=t)return r.OF.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(o,c.pos))?l:a?o.addRange(u):r.OF.create([u])}}}(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new en(e,t,n,r)),r&&e.observer.ignore(()=>{T(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}return!1};let ln=(e,t,n)=>t>=n.top&&t<=n.bottom&&e>=n.left&&e<=n.right;function cn(e,t,n,r){let i=ve.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let s=i.coordsAt(o,-1);if(s&&ln(n,r,s))return-1;let a=i.coordsAt(o,1);return a&&ln(n,r,a)?1:s&&s.bottom>=r?-1:1}function un(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:cn(e,n,t.clientX,t.clientY)}}const hn=W.ie&&W.ie_version<=11;let dn=null,pn=0,fn=0;function mn(e){if(!hn)return e.detail;let t=dn,n=fn;return dn=e,fn=Date.now(),pn=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(pn+1)%3:1}function gn(e,t,n,r){if(!(n=on(e.state,Ke,n)))return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,s=r&&o&&function(e,t){let n=e.state.facet(je);return n.length?n[0](t):W.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:o.from,to:o.to}:null,a={from:i,insert:n},l=e.state.changes(s?[s,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}tn.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let e=i.posAtStart,t=e+i.length;(e>=n.to||t<=n.from)&&(n=r.OF.range(e,t))}}let{inputState:i}=e;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",on(e.state,Je,e.state.sliceDoc(n.from,n.to))),t.dataTransfer.effectAllowed="copyMove"),!1},tn.dragend=e=>(e.inputState.draggedContent=null,!1),tn.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&gn(e,t,r.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return gn(e,t,n,!0),!0}return!1},tn.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=rn?null:t.clipboardData;return n?(sn(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),sn(e,n.value)},50)}(e),!1)};let On=null;tn.copy=tn.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:on(e,Je,t.join(e.lineBreak)),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;On=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=rn?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}(e,n),!1)};const bn=r.YH.define();function vn(e,t){let n=[];for(let r of e.facet(We)){let i=r(e,t);i&&n.push(i)}return n.length?e.update({effects:n,annotations:bn.of(!0)}):null}function yn(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=vn(e.state,t);n?e.dispatch(n):e.update([])}},10)}nn.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),yn(e)},nn.blur=e=>{e.observer.clearSelectionRange(),yn(e)},nn.compositionstart=nn.compositionupdate=e=>{e.observer.editContext||(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},nn.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,W.chrome&&W.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},nn.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},tn.beforeinput=(e,t)=>{var n,r;if("insertReplacementText"==t.inputType&&e.observer.editContext){let r=null===(n=t.dataTransfer)||void 0===n?void 0:n.getData("text/plain"),i=t.getTargetRanges();if(r&&i.length){let t=i[0],n=e.posAtDOM(t.startContainer,t.startOffset),o=e.posAtDOM(t.endContainer,t.endOffset);return jt(e,{from:n,to:o,insert:e.state.toText(r)},null),!0}}let i;if(W.chrome&&W.android&&(i=Gt.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0;setTimeout(()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return W.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),W.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>nn.compositionend(e,t),20),!1};const xn=new Set;const kn=["pre-wrap","normal","pre-line","break-spaces"];let Sn=!1;function wn(){Sn=!1}class An{constructor(e){this.lineWrapping=e,this.doc=r.EY.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return kn.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,this.heightSamples[Math.floor(10*r)]=!0)}return t}refresh(e,t,n,r,i,o){let s=kn.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,a){this.heightSamples={};for(let e=0;e<o.length;e++){let t=o[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return a}}class Tn{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class En{constructor(e,t,n,r,i){this.from=e,this.length=t,this.top=n,this.height=r,this._content=i}get type(){return"number"==typeof this._content?de.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof ge?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new En(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var Cn=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Cn||(Cn={}));const _n=.001;class Pn{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>_n&&(Sn=!0),this.height=e)}replace(e,t,n){return Pn.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let s=r.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:c,toB:u}=r[s],h=i.lineAt(a,Cn.ByPosNoHeight,n.setDoc(t),0,0),d=h.to>=l?h:i.lineAt(l,Cn.ByPosNoHeight,n,0,0);for(u+=d.to-l,l=d.to;s>0&&h.from<=r[s-1].toA;)a=r[s-1].fromA,c=r[s-1].fromB,s--,a<h.from&&(h=i.lineAt(a,Cn.ByPosNoHeight,n,0,0));c+=h.from-a,a=h.from;let p=Ln.build(n.setDoc(o),e,c,u);i=Dn(i,i.replace(a,l,p))}return i.updateHeight(n,0)}static empty(){return new Nn(0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,r=0,i=0;for(;;)if(t==n)if(r>2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r<i){let n=e[t++];n&&(r+=n.size)}else{let t=e[--n];t&&(i+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,n++),new Qn(Pn.of(e.slice(0,t)),o,Pn.of(e.slice(n)))}}function Dn(e,t){return e==t?e:(e.constructor!=t.constructor&&(Sn=!0),t)}Pn.prototype.size=1;class Mn extends Pn{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,r){return new En(r,this.length,n,this.height,this.deco||0)}lineAt(e,t,n,r,i){return this.blockAt(0,n,r,i)}forEachLine(e,t,n,r,i,o){e<=i+this.length&&t>=i&&o(this.blockAt(0,n,r,i))}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>3?arguments[3]:void 0;return n&&n.from<=t&&n.more&&this.setHeight(n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Nn extends Mn{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new En(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof Nn||r instanceof Rn&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof Rn?r=new Nn(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):Pn.of(n)}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return r&&r.from<=t&&r.more?this.setHeight(r.heights[r.index++]):(n||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Rn extends Pn{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,s=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(s=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:s}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:s,perChar:a}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),o=t.doc.lineAt(i),l=s+o.length*a,c=Math.max(n,e-l/2);return new En(o.from,o.length,c,l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/s))),{from:a,length:l}=t.doc.line(i+r);return new En(a,l,n+s*r,s,0)}}lineAt(e,t,n,r,i){if(t==Cn.ByHeight)return this.blockAt(e,n,r,i);if(t==Cn.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new En(t,r-t,0,0,0)}let{firstLine:o,perLine:s,perChar:a}=this.heightMetrics(n,i),l=n.doc.lineAt(e),c=s+l.length*a,u=l.number-o,h=r+s*u+a*(l.from-i-u);return new En(l.from,l.length,Math.max(r,Math.min(h,r+this.height-c)),c,0)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(n,i);for(let c=e,u=r;c<=t;){let t=n.doc.lineAt(c);if(c==e){let n=t.number-s;u+=a*n+l*(e-i-n)}let r=a+l*t.length;o(new En(t.from,t.length,u,r,0)),u+=r,c=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof Rn?n[n.length-1]=new Rn(e.length+r):n.push(null,new Rn(r-1))}if(e>0){let t=n[0];t instanceof Rn?n[0]=new Rn(e+t.length):n.unshift(new Rn(e-1),null)}return Pn.of(n)}decomposeLeft(e,t){t.push(new Rn(e-1),null)}decomposeRight(e,t){t.push(null,new Rn(this.length-e-1))}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),s=-1;for(r.from>t&&n.push(new Rn(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==s?s=i:Math.abs(i-s)>=_n&&(s=-2);let a=new Nn(t,i);a.outdated=!1,n.push(a),o+=t+1}o<=i&&n.push(null,new Rn(i-o).updateHeight(e,o));let a=Pn.of(n);return(s<0||Math.abs(a.height-this.height)>=_n||Math.abs(s-this.heightMetrics(e,t).perLine)>=_n)&&(Sn=!0),Dn(this,a)}return(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Qn extends Pn{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,i,r+this.left.length+this.break)}lineAt(e,t,n,r,i){let o=r+this.left.height,s=i+this.left.length+this.break,a=t==Cn.ByHeight?e<o:e<s,l=a?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,o,s);if(this.break||(a?l.to<s:l.from>s))return l;let c=t==Cn.ByPosNoHeight?Cn.ByPosNoHeight:Cn.ByPos;return a?l.join(this.right.lineAt(s,c,n,o,s)):this.left.lineAt(s,c,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let s=r+this.left.height,a=i+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,n,r,i,o),t>=a&&this.right.forEachLine(e,t,n,s,a,o);else{let l=this.lineAt(a,Cn.ByPos,n,r,i);e<l.from&&this.left.forEachLine(e,l.from-1,n,r,i,o),l.to>=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,s,a,o)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let s of n)i.push(s);if(e>0&&In(i,o-1),t<this.length){let e=i.length;this.decomposeRight(t,i),In(i,e)}return Pn.of(i)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Pn.of(this.break?[e,null,t]:[e,t]):(this.left=Dn(this.left,e),this.right=Dn(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,{left:i,right:o}=this,s=t+i.length+this.break,a=null;return r&&r.from<=t+i.length&&r.more?a=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=s+o.length&&r.more?a=o=o.updateHeight(e,s,n,r):o.updateHeight(e,s,n),a?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function In(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof Rn&&(r=e[t+1])instanceof Rn&&e.splice(t-1,3,new Rn(n.length+1+r.length))}class Ln{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Nn?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Nn(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,i=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=t-e;n.block?this.addBlock(new Mn(o,r,n)):(o||i||r>=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Nn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new Rn(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Nn)return e;let t=new Nn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Nn||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Nn(0,-1));let n=e;for(let r of this.nodes)r instanceof Nn&&r.updateHeight(this.oracle,n),n+=r?r.length:1;return this.nodes}static build(e,t,n,i){let o=new Ln(n,e);return r.om.spans(t,n,i,o,0),o.finish(n)}}class Fn{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&be(e,t,this.changes,5)}}function $n(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),s=Math.min(i.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let c=e.parentNode;c&&c!=r.body;)if(1==c.nodeType){let t=c,n=window.getComputedStyle(t);if((t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&"visible"!=n.overflow){let n=t.getBoundingClientRect();o=Math.max(o,n.left),s=Math.min(s,n.right),a=Math.max(a,n.top),l=Math.min(c==e.parentNode?i.innerHeight:l,n.bottom)}c="absolute"==n.position||"fixed"==n.position?t.offsetParent:t.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-n.left,right:Math.max(o,s)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}}function Bn(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class zn{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e,t){return pe.replace({widget:new qn(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class qn extends he{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Hn{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Zn,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Ae.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(pt).some(e=>"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new An(t),this.stateDeco=e.facet(ft).filter(e=>"function"!=typeof e),this.heightMap=Pn.empty().applyChanges(this.stateDeco,r.EY.empty,this.heightOracle.setDoc(e.doc),[new kt(0,0,0,e.doc.length)]);for(let n=0;n<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());n++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=pe.set(this.lineGaps.map(e=>e.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(e=>{let{from:t,to:n}=e;return r>=t&&r<=n})){let{from:t,to:n}=this.lineBlockAt(r);e.push(new Un(t,n))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Zn:new Yn(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Vn(e,this.scaler))})}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(ft).filter(e=>"function"!=typeof e);let i=e.changedRanges,o=kt.extendWithRanges(i,function(e,t,n){let i=new Fn;return r.om.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:r.VR.empty(this.state.doc.length))),s=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);wn(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),(this.heightMap.height!=s||Sn)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=s);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<l.from||t.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let c=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(c||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(tt)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Ae.RTL:Ae.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),a=t.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,u=0;if(a.width&&a.height){let{scaleX:e,scaleY:n}=k(t,a);(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,this.scaleY=n,c|=16,s=l=!0)}let h=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==h&&this.paddingBottom==d||(this.paddingTop=h,this.paddingBottom=d,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=P(e.scrollDOM);let f=(this.printing?Bn:$n)(t,this.paddingTop),m=f.top-this.pixelViewport.top,g=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(l=!0)),!this.inView&&!this.scrollTarget&&!function(e){let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView||window;return t.left<n.innerWidth&&t.right>0&&t.top<n.innerHeight&&t.bottom>0}(e.dom))return 0;let b=a.width;if(this.contentDOMWidth==b&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),l){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(s=!0),s||i.lineWrapping&&Math.abs(b-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:r,textHeight:a}=e.docView.measureTextSize();s=n>0&&i.refresh(o,n,r,a,Math.max(5,b/r),t),s&&(e.docView.minWidth=0,c|=16)}m>0&&g>0?u=Math.max(m,g):m<0&&g<0&&(u=Math.min(m,g)),wn();for(let n of this.viewports){let o=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(s?Pn.empty().applyChanges(this.stateDeco,r.EY.empty,this.heightOracle,[new kt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new Tn(n.from,o))}Sn&&(c|=2)}let v=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return v&&(2&c&&(c|=this.updateScaler()),this.viewport=this.getViewport(u,this.scrollTarget),c|=this.updateForViewport()),(2&c||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,a=new Un(r.lineAt(o-1e3*n,Cn.ByHeight,i,0,0).from,r.lineAt(s+1e3*(1-n),Cn.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=r.lineAt(e,Cn.ByPos,i,0,0);n="center"==t.y?(s.top+s.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e<a.from?s.top:s.bottom-o,a=new Un(r.lineAt(n-500,Cn.ByHeight,i,0,0).from,r.lineAt(n+o+500,Cn.ByHeight,i,0,0).to)}}return a}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new Un(this.heightMap.lineAt(n,Cn.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,Cn.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate(e){let{from:t,to:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(t,Cn.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(n,Cn.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:a}=this;return(0==t||i<=s-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||o>=a+Math.max(10,Math.min(r,250)))&&i>s-2e3&&o<a+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new zn(t.mapPos(r.from),t.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,i=n?1e4:2e3,o=i>>1,s=i<<1;if(this.defaultTextDirection!=Ae.LTR&&!n)return[];let a=[],l=(i,s,c,u)=>{if(s-i<o)return;let h=this.state.selection.main,d=[h.from];h.empty||d.push(h.to);for(let e of d)if(e>i&&e<s)return l(i,e-10,c,u),void l(e+10,s,c,u);let p=function(e,t){for(let n of e)if(t(n))return n;return}(e,e=>e.from>=c.from&&e.to<=c.to&&Math.abs(e.from-i)<o&&Math.abs(e.to-s)<o&&!d.some(t=>e.from<t&&e.to>t));if(!p){if(s<c.to&&t&&n&&t.visibleRanges.some(e=>e.from<=s&&e.to>=s)){let e=t.moveToLineBoundary(r.OF.cursor(s),!1,!0).head;e>i&&(s=e)}let e=this.gapSize(c,i,s,u);p=new zn(i,s,e,n||e<2e6?e:2e6)}a.push(p)},c=t=>{if(t.length<s||t.type!=de.Text)return;let o=function(e,t,n){let i=[],o=e,s=0;r.om.spans(n,e,t,{span(){},point(e,t){e>o&&(i.push({from:o,to:e}),s+=e-o),o=t}},20),o<t&&(i.push({from:o,to:t}),s+=t-o);return{total:s,ranges:i}}(t.from,t.to,this.stateDeco);if(o.total<s)return;let a,c,u=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let e,n,r=i/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=u){let i=jn(o,u),s=((this.visibleBottom-this.visibleTop)/2+r)/t.height;e=i-s,n=i+s}else e=(this.visibleTop-t.top-r)/t.height,n=(this.visibleBottom-t.top+r)/t.height;a=Xn(o,e),c=Xn(o,n)}else{let n=o.total*this.heightOracle.charWidth,r=i*this.heightOracle.charWidth,s=0;if(n>2e6)for(let i of e)i.from>=t.from&&i.from<t.to&&i.size!=i.displaySize&&i.from*this.heightOracle.charWidth+s<this.pixelViewport.left&&(s=i.size-i.displaySize);let l,h,d=this.pixelViewport.left+s,p=this.pixelViewport.right+s;if(null!=u){let e=jn(o,u),t=((p-d)/2+r)/n;l=e-t,h=e+t}else l=(d-r)/n,h=(p+r)/n;a=Xn(o,l),c=Xn(o,h)}a>t.from&&l(t.from,a,t,o),c<t.to&&l(c,t.to,t,o)};for(let r of this.viewportLines)Array.isArray(r.type)?r.type.forEach(c):c(r);return a}gapSize(e,t,n,r){let i=jn(r,n)-jn(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){zn.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=pe.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];r.om.spans(t,this.viewport.from,this.viewport.to,{span(e,t){n.push({from:e,to:t})},point(){}},20);let i=0;if(n.length!=this.visibleRanges.length)i=12;else for(let r=0;r<n.length&&!(8&i);r++){let t=this.visibleRanges[r],o=n[r];t.from==o.from&&t.to==o.to||(i|=4,e&&e.mapPos(t.from,-1)==o.from&&e.mapPos(t.to,1)==o.to||(i|=8))}return this.visibleRanges=n,i}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Vn(this.heightMap.lineAt(e,Cn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||Vn(this.heightMap.lineAt(this.scaler.fromDOM(e),Cn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Vn(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Un{constructor(e,t){this.from=e,this.to=t}}function Xn(e,t){let{total:n,ranges:r}=e;if(t<=0)return r[0].from;if(t>=1)return r[r.length-1].to;let i=Math.floor(n*t);for(let o=0;;o++){let{from:e,to:t}=r[o],n=t-e;if(i<=n)return e+i;i-=n}}function jn(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const Zn={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};class Yn{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map(n=>{let{from:i,to:o}=n,s=t.lineAt(i,Cn.ByPos,e,0,0).top,a=t.lineAt(o,Cn.ByPos,e,0,0).bottom;return r+=a-s,{from:i,to:o,top:s,bottom:a,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r);for(let s of this.viewports)s.domTop=o+(s.top-i)*this.scale,o=s.domBottom=s.domTop+(s.bottom-s.top),i=s.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}eq(e){return e instanceof Yn&&(this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to))}}function Vn(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new En(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(e=>Vn(e,t)):e._content)}const Gn=r.sj.define({combine:e=>e.join(" ")}),Wn=r.sj.define({combine:e=>e.indexOf(!0)>-1}),Kn=i.G.newName(),Jn=i.G.newName(),er=i.G.newName(),tr={"&light":"."+Jn,"&dark":"."+er};function nr(e,t,n){return new i.G(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]}):e+" "+t})}const rr=nr("."+Kn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},tr),ir={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},or=W.ie&&W.ie_version<=11;class sr{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new S,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(W.ie&&W.ie_version<=11||W.ios&&e.composing)&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),!window.EditContext||!W.android||!1===e.constructor.EDIT_CONTEXT||W.chrome&&W.chrome_version<126||(this.editContext=new cr(e),e.state.facet(at)&&(e.contentDOM.editContext=this.editContext.editContext)),or&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(at)?n.root.activeElement!=this.dom:!p(this.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(W.ie&&W.ie_version<=11||W.android&&W.chrome)&&!n.state.selection.main.empty&&r.focusNode&&m(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=h(e.root);if(!t)return!1;let n=W.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return lr(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?lr(e,n):null}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=p(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,v(n));;)if(r){if(1!=n.nodeType)return!1;let e=n.childNodes[r-1];"false"==e.contentEditable?r--:(n=e,r=v(n))}else{if(n==e)return!0;r=g(n),n=n.parentNode}}(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,ir),or&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),or&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;if(e){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&C(this.dom,e.key,e.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&p(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new Ut(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=Xt(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=ar(t,e.previousSibling||e.target.previousSibling,-1),r=ar(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(at)!=e.state.facet(at)&&(e.view.contentDOM.editContext=e.state.facet(at)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function ar(e,t,n){for(;t;){let r=Q.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function lr(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return m(s.node,s.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}class cr{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=t=>{let n=e.state.selection.main,{anchor:i,head:o}=n,s=this.toEditorPos(t.updateRangeStart),a=this.toEditorPos(t.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:t.updateRangeStart,editorBase:s,drifted:!1});let l={from:s,to:a,insert:r.EY.of(t.text.split("\n"))};if(l.from==this.from&&i<this.from?l.from=i:l.to==this.to&&i>this.to&&(l.to=i),l.from==l.to&&!l.insert.length){let i=r.OF.single(this.toEditorPos(t.selectionStart),this.toEditorPos(t.selectionEnd));return void(i.main.eq(n)||e.dispatch({selection:i,userEvent:"select"}))}if((W.mac||W.android)&&l.from==o-1&&/^\. ?$/.test(t.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(l={from:s,to:a,insert:r.EY.of([t.text.replace("."," ")])}),this.pendingContextChange=l,!e.state.readOnly){let n=this.to-this.from+(l.to-l.from+l.insert.length);jt(e,l,r.OF.single(this.toEditorPos(t.selectionStart,n),this.toEditorPos(t.selectionEnd,n)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),o=this.toEditorPos(n.rangeEnd);t<o;t++){let n=e.coordsForChar(t);i=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||i||new DOMRect,r.push(i)}t.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=t=>{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if("None"!=t&&"None"!=r){let i=this.toEditorPos(e.rangeStart),o=this.toEditorPos(e.rangeEnd);if(i<o){let e=`text-decoration: underline ${"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${"Thin"==r?1:2}px`;n.push(pe.mark({attributes:{style:e}}).range(i,o))}}}e.dispatch({effects:ot.of(pe.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let n in this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=h(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,o,s,a,l)=>{if(n)return;let c=l.length-(o-i);if(r&&o>=r.to){if(r.from==i&&r.to==o&&r.insert.eq(l))return r=this.pendingContextChange=null,t+=c,void(this.to+=c);r=null,this.revertPending(e.state)}if(i+=t,(o+=t)<=this.from)this.from+=c,this.to+=c;else if(i<this.to){if(i<this.from||o>this.to||this.to-this.from+l.length>3e4)return void(n=!0);this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),l.toString()),this.to+=c}t+=c}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);this.editContext.selectionStart==n&&this.editContext.selectionEnd==r||this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.to-this.from;e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class ur{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(e=>e.forEach(e=>n(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new Hn(e.state||r.$t.create(e)),e.scrollTo&&e.scrollTo.is(it)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ct).map(e=>new ht(e));for(let r of this.plugins)r.update(this);this.observer=new sr(this),this.inputState=new Zt(this),this.inputState.ensureHandlers(this.plugins),this.docView=new wt(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(t=document.fonts)||void 0===t?void 0:t.ready)&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=1==t.length&&t[0]instanceof r.ZX?t:1==t.length&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(i,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,i=!1,o=this.state;for(let r of e){if(r.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=r.state}if(this.destroyed)return void(this.viewState.state=o);let s=this.hasFocus,a=0,l=null;e.some(e=>e.annotation(bn))?(this.inputState.notifiedFocused=s,a=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=vn(o,s),l||(a=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(u=null)):this.observer.clear(),o.facet(r.$t.phrases)!=this.state.facet(r.$t.phrases))return this.setState(o);t=St.create(this,o,e),t.flags|=a;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(h&&(h=h.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;h=new rt(e.empty?e:r.OF.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(it)&&(h=e.value.clip(this.state))}this.viewState.update(t,h),this.bidiCache=pr.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(xt)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(t.startState.facet(Gn)!=t.state.facet(Gn)&&(this.viewState.mustMeasureContent=!0),(n||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!t.empty)for(let r of this.state.facet(Ve))try{r(t)}catch(d){st(this.state,d,"update listener")}(l||u)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!Xt(this,u)&&c.force&&C(this.contentDOM,c.key,c.keyCode)})}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Hn(e),this.plugins=e.facet(ct).map(e=>new ht(e)),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new wt(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(ct),n=e.state.facet(ct);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new ht(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let t of this.plugins){let n=t.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(e){st(this.state,e,"doc view update listener")}}}measure(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(P(n))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&a||([this.measureRequests,l]=[l,this.measureRequests]);let c=l.map(e=>{try{return e.read(this)}catch(t){return st(this.state,t),dr}}),u=St.create(this,this.state,[]),h=!1;u.flags|=a,t?t.flags|=a:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),h=this.docView.update(u),h&&this.docViewUpdate());for(let e=0;e<l.length;e++)if(c[e]!=dr)try{let t=l[e];t.write&&t.write(c[e],this)}catch(s){st(this.state,s)}if(h&&this.docView.updateSelection(!0),!u.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}{let e=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)-o;if(e>1||e<-1){r+=e,n.scrollTop=r/this.scaleY,o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(Ve))a(t)}get themeClasses(){return Kn+" "+(this.state.facet(Wn)?er:Jn)+" "+this.state.facet(Gn)}updateAttrs(){let e=fr(this,dt,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(at)?"true":"false",class:"cm-content",style:`${W.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),fr(this,pt,t);let n=this.observer.ignore(()=>{let n=ce(this.contentDOM,this.contentAttrs,t),r=ce(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(ur.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(xt);let e=this.state.facet(ur.cspNonce);i.G.mount(this.root,this.styleModules.concat(rr).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(t=>t.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return $t(this,e,Lt(this,e,t,n))}moveByGroup(e,t){return $t(this,e,Lt(this,e,t,t=>function(e,t,n){let i=e.state.charCategorizer(t),o=i(n);return e=>{let t=i(e);return o==r.Je.Space&&(o=t),o==t}}(this,e.head,t)))}visualLineSide(e,t){let n=this.bidiSpans(e),i=this.textDirectionAt(e.from),o=n[t?n.length-1:0];return r.OF.cursor(o.side(t,i)+e.from,o.forward(!t,i)?1:-1)}moveToLineBoundary(e,t){return function(e,t,n,i){let o=It(e,t.head,t.assoc||-1),s=i&&o.type==de.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(s){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(o.from),a=e.posAtCoords({x:n==(i==Ae.LTR)?t.right-1:t.left+1,y:(s.top+s.bottom)/2});if(null!=a)return r.OF.cursor(a,n?-1:1)}return r.OF.cursor(n?o.to:o.from,n?-1:1)}(this,e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}moveVertically(e,t,n){return $t(this,e,function(e,t,n,i){let o=t.head,s=n?1:-1;if(o==(n?e.state.doc.length:0))return r.OF.cursor(o,t.assoc);let a,l=t.goalColumn,c=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(o,t.assoc||-1),h=e.documentTop;if(u)null==l&&(l=u.left-c.left),a=s<0?u.top:u.bottom;else{let t=e.viewState.lineBlockAt(o);null==l&&(l=Math.min(c.right-c.left,e.defaultCharacterWidth*(o-t.from))),a=(s<0?t.top:t.bottom)+h}let d=c.left+l,p=null!==i&&void 0!==i?i:e.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let t=a+(p+f)*s,n=Rt(e,{x:d,y:t},!1,s);if(t<c.top||t>c.bottom||(s<0?n<o:n>o)){let i=e.docView.coordsForChar(n),o=!i||t<i.top?-1:1;return r.OF.cursor(n,o,void 0,l)}}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.posFromDOM(e,t)}posAtCoords(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Rt(this,e,t)}coordsAtPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return y(n,i[Qe.find(i,e-r.from,-1,t)].dir==Ae.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(et)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>hr)return ze(e.length);let t,n=this.textDirectionAt(e.from);for(let i of this.bidiCache)if(i.from==e.from&&i.dir==n&&(i.fresh||Ie(i.isolates,t=bt(this,e))))return i.order;t||(t=bt(this,e));let r=Be(e.text,n,t);return this.bidiCache.push(new pr(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||W.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{T(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it.of(new rt("number"==typeof e?r.OF.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return it.of(new rt(r.OF.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return ut.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return ut.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=i.G.newName(),r=[Gn.of(n),xt.of(nr(`.${n}`,e))];return t&&t.dark&&r.push(Wn.of(!0)),r}static baseTheme(e){return r.Nb.lowest(xt.of(nr("."+Kn,e,tr)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&Q.get(n)||Q.get(e);return(null===(t=null===r||void 0===r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}ur.styleModule=xt,ur.inputHandler=Ge,ur.clipboardInputFilter=Ke,ur.clipboardOutputFilter=Je,ur.scrollHandler=nt,ur.focusChangeEffect=We,ur.perLineTextDirection=et,ur.exceptionSink=Ye,ur.updateListener=Ve,ur.editable=at,ur.mouseSelectionStyle=Ze,ur.dragMovesSelection=je,ur.clickAddsSelectionRange=Xe,ur.decorations=ft,ur.outerDecorations=mt,ur.atomicRanges=gt,ur.bidiIsolatedRanges=Ot,ur.scrollMargins=vt,ur.darkTheme=Wn,ur.cspNonce=r.sj.define({combine:e=>e.length?e[0]:""}),ur.contentAttributes=pt,ur.editorAttributes=dt,ur.lineWrapping=ur.contentAttributes.of({class:"cm-lineWrapping"}),ur.announce=r.Pe.define();const hr=4096,dr={};class pr{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:Ae.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir!=r||t.touchesRange(o.from,o.to)||n.push(new pr(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function fr(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&se(o,n)}return n}const mr=W.mac?"mac":W.windows?"win":W.linux?"linux":"key";function gr(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const Or=r.Nb.default(ur.domEventHandlers({keydown:(e,t)=>Ar(yr(t.state),e,t,"editor")})),br=r.sj.define({enables:Or}),vr=new WeakMap;function yr(e){let t=e.facet(br),n=vr.get(t);return n||vr.set(t,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mr,n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,s,a)=>{var l,c;let u=n[e]||(n[e]=Object.create(null)),h=r.split(/ (?!$)/).map(e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,s,a=n[n.length-1];"Space"==a&&(a=" ");for(let l=0;l<n.length-1;++l){const e=n[l];if(/^(cmd|meta|m)$/i.test(e))s=!0;else if(/^a(lt)?$/i.test(e))r=!0;else if(/^(c|ctrl|control)$/i.test(e))i=!0;else if(/^s(hift)?$/i.test(e))o=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);"mac"==t?s=!0:i=!0}}return r&&(a="Alt-"+a),i&&(a="Ctrl-"+a),s&&(a="Meta-"+a),o&&(a="Shift-"+a),a}(e,t));for(let t=1;t<h.length;t++){let n=h.slice(0,t).join(" ");i(n,!0),u[n]||(u[n]={preventDefault:!0,stopPropagation:!1,run:[t=>{let r=kr={view:t,prefix:n,scope:e};return setTimeout(()=>{kr==r&&(kr=null)},Sr),!0}]})}let d=h.join(" ");i(d,!1);let p=u[d]||(u[d]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(l=u._any)||void 0===l?void 0:l.run)||void 0===c?void 0:c.slice())||[]});o&&p.run.push(o),s&&(p.preventDefault=!0),a&&(p.stopPropagation=!0)};for(let s of e){let e=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:r}=s;for(let t in e)e[t].run.push(e=>r(e,wr))}let r=s[t]||s.key;if(r)for(let t of e)o(t,r,s.run,s.preventDefault,s.stopPropagation),s.shift&&o(t,"Shift-"+r,s.shift,s.preventDefault,s.stopPropagation)}return n}(t.reduce((e,t)=>e.concat(t),[]))),n}function xr(e,t,n){return Ar(yr(e.state),t,e,n)}let kr=null;const Sr=4e3;let wr=null;function Ar(e,t,n,i){wr=t;let c=function(e){var t=!(a&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||l&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?s:o)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),u=(0,r.vS)(c,0),h=(0,r.Fh)(u)==c.length&&" "!=c,d="",p=!1,f=!1,m=!1;kr&&kr.view==n&&kr.scope==i&&(d=kr.prefix+" ",Kt.indexOf(t.keyCode)<0&&(f=!0,kr=null));let g,O,b=new Set,v=e=>{if(e){for(let t of e.run)if(!b.has(t)&&(b.add(t),t(n)))return e.stopPropagation&&(m=!0),!0;e.preventDefault&&(e.stopPropagation&&(m=!0),f=!0)}return!1},y=e[i];return y&&(v(y[d+gr(c,t,!h)])?p=!0:!h||!(t.altKey||t.metaKey||t.ctrlKey)||W.windows&&t.ctrlKey&&t.altKey||W.mac&&t.altKey&&!t.ctrlKey||!(g=o[t.keyCode])||g==c?h&&t.shiftKey&&v(y[d+gr(c,t,!0)])&&(p=!0):(v(y[d+gr(g,t,!0)])||t.shiftKey&&(O=s[t.keyCode])!=c&&O!=g&&v(y[d+gr(O,t,!1)]))&&(p=!0),!p&&v(y._any)&&(p=!0)),f&&(p=!0),p&&m&&t.stopPropagation(),wr=null,p}class Tr{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=Er(e);return[new Tr(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==Ae.LTR,s=e.contentDOM,a=s.getBoundingClientRect(),l=Er(e),c=s.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),h=a.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),d=a.right-(u?parseInt(u.paddingRight):0),p=It(e,r,1),f=It(e,i,-1),m=p.type==de.Text?p:null,g=f.type==de.Text?f:null;m&&(e.lineWrapping||p.widgetLineBreaks)&&(m=Cr(e,r,1,m));g&&(e.lineWrapping||f.widgetLineBreaks)&&(g=Cr(e,i,-1,g));if(m&&g&&m.from==g.from&&m.to==g.to)return b(v(n.from,n.to,m));{let t=m?v(n.from,null,m):y(p,!1),r=g?v(null,n.to,g):y(f,!0),i=[];return(m||p).to<(g||f).from-(m&&g?1:0)||p.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2<r.top?i.push(O(h,t.bottom,d,r.top)):t.bottom<r.top&&e.elementAtHeight((t.bottom+r.top)/2).type==de.Text&&(t.bottom=r.top=(t.bottom+r.top)/2),b(t).concat(i).concat(b(r))}function O(e,n,r,i){return new Tr(t,e-l.left,n-l.top,r-e,i-n)}function b(e){let{top:t,bottom:n,horizontal:r}=e,i=[];for(let o=0;o<r.length;o+=2)i.push(O(r[o],t,r[o+1],n));return i}function v(t,n,r){let i=1e9,s=-1e9,a=[];function l(t,n,l,c,u){let p=e.coordsAtPos(t,t==r.to?-2:2),f=e.coordsAtPos(l,l==r.from?2:-2);p&&f&&(i=Math.min(p.top,f.top,i),s=Math.max(p.bottom,f.bottom,s),u==Ae.LTR?a.push(o&&n?h:p.left,o&&c?d:f.right):a.push(!o&&c?h:f.left,!o&&n?d:p.right))}let c=null!==t&&void 0!==t?t:r.from,u=null!==n&&void 0!==n?n:r.to;for(let o of e.visibleRanges)if(o.to>c&&o.from<u)for(let r=Math.max(o.from,c),i=Math.min(o.to,u);;){let o=e.state.doc.lineAt(r);for(let s of e.bidiSpans(o)){let e=s.from+o.from,a=s.to+o.from;if(e>=i)break;a>r&&l(Math.max(e,r),null==t&&e<=c,Math.min(a,i),null==n&&a>=u,s.dir)}if(r=o.to+1,r>=i)break}return 0==a.length&&l(c,null==t,u,null==n,e.textDirection),{top:i,bottom:s,horizontal:a}}function y(e,t){let n=a.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function Er(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Ae.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function Cr(e,t,n,r){let i=e.coordsAtPos(t,2*n);if(!i)return r;let o=e.dom.getBoundingClientRect(),s=(i.top+i.bottom)/2,a=e.posAtCoords({x:o.left+1,y:s}),l=e.posAtCoords({x:o.right-1,y:s});return null==a||null==l?r:{from:Math.max(r.from,Math.min(a,l)),to:Math.min(r.to,Math.max(a,l))}}class _r{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Pr)!=e.state.facet(Pr)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(Pr);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;e==this.scaleX&&t==this.scaleY||(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((e,t)=>{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r})){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Pr=r.sj.define();function Dr(e){return[ut.define(t=>new _r(t,e)),Pr.of(e)]}const Mr=r.sj.define({combine:e=>(0,r.QR)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function Nr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Mr.of(e),Qr,Lr,Fr,tt.of(!0)]}function Rr(e){return e.startState.facet(Mr)!=e.state.facet(Mr)}const Qr=Dr({above:!0,markers(e){let{state:t}=e,n=t.facet(Mr),i=[];for(let o of t.selection.ranges){let s=o==t.selection.main;if(o.empty||n.drawRangeCursor){let t=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=o.empty?o:r.OF.cursor(o.head,o.head>o.anchor?-1:1);for(let r of Tr.forRange(e,t,n))i.push(r)}}return i},update(e,t){e.transactions.some(e=>e.selection)&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=Rr(e);return n&&Ir(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){Ir(t.state,e)},class:"cm-cursorLayer"});function Ir(e,t){t.style.animationDuration=e.facet(Mr).cursorBlinkRate+"ms"}const Lr=Dr({above:!1,markers:e=>e.state.selection.ranges.map(t=>t.empty?[]:Tr.forRange(e,"cm-selectionBackground",t)).reduce((e,t)=>e.concat(t)),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||Rr(e),class:"cm-selectionLayer"}),Fr=r.Nb.highest(ur.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),$r=r.Pe.define({map:(e,t)=>null==e?null:t.mapPos(e)}),Br=r.sU.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce((e,t)=>t.is($r)?t.value:e,e))}),zr=ut.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(Br);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Br)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(Br),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Br)!=e&&this.view.dispatch({effects:$r.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function qr(){return[Br,zr]}function Hr(e,t,n,r,i){t.lastIndex=0;for(let o,s=e.iterRange(n,r),a=n;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=t.exec(s.value);)i(a+o.index,o)}class Ur{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new r.vB,n=t.add.bind(t);for(let{from:r,to:i}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))Hr(e.state.doc,this.regexp,r,i,(t,r)=>this.addMatch(r,e,t,n));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((t,i,o,s)=>{s>=e.view.viewport.from&&o<=e.view.viewport.to&&(n=Math.min(o,n),r=Math.max(s,r))}),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),s=Math.min(i.to,r);if(s>=o){let n=e.state.doc.lineAt(o),r=n.to<s?e.state.doc.lineAt(s):n,a=Math.max(i.from,n.from),l=Math.min(i.to,r.to);if(this.boundary){for(;o>n.from;o--)if(this.boundary.test(n.text[o-1-n.from])){a=o;break}for(;s<r.to;s++)if(this.boundary.test(r.text[s-r.from])){l=s;break}}let c,u=[],h=(e,t,n)=>u.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=a-n.from;(c=this.regexp.exec(n.text))&&c.index<l-n.from;)this.addMatch(c,e,c.index+n.from,h);else Hr(e.state.doc,this.regexp,a,l,(t,n)=>this.addMatch(n,e,t,h));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>e<a||t>l,add:u})}}return t}}const Xr=null!=/x/.unicode?"gu":"g",jr=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",Xr),Zr={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Yr=null;const Vr=r.sj.define({combine(e){let t=(0,r.QR)(e,{render:null,specialChars:jr,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==Yr&&"undefined"!=typeof document&&document.body){let t=document.body.style;Yr=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Yr||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Xr)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Xr)),t}});function Gr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Vr.of(e),Wr||(Wr=ut.fromClass(class{constructor(e){this.view=e,this.decorations=pe.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Vr)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Ur({regexp:e.specialChars,decoration:(t,n,i)=>{let{doc:o}=n.state,s=(0,r.vS)(t[0],0);if(9==s){let e=o.lineAt(i),t=n.state.tabSize,s=(0,r.y$)(e.text,t,i-e.from);return pe.replace({widget:new Jr((t-s%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=pe.replace({widget:new Kr(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Vr);e.startState.facet(Vr)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let Wr=null;class Kr extends he{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"\u2022":10==e?"\u2424":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(Zr[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class Jr extends he{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function ei(){return ni}const ti=pe.line({class:"cm-activeLine"}),ni=ut.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(ti.range(i.from)),t=i.from)}return pe.set(n)}},{decorations:e=>e.decorations});class ri extends he{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):"function"==typeof this.content?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?f(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=y(t[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}function ii(e){let t=ut.fromClass(class{constructor(t){this.view=t,this.placeholder=e?pe.set([pe.widget({widget:new ri(e),side:1}).range(0)]):pe.none}get decorations(){return this.view.state.doc.length?pe.none:this.placeholder}},{decorations:e=>e.decorations});return"string"==typeof e?[t,ur.contentAttributes.of({"aria-placeholder":e})]:t}const oi=2e3;function si(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.state.doc.lineAt(n),o=n-i.from,s=o>oi?-1:o==i.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):(0,r.y$)(i.text,e.state.tabSize,n-i.from);return{line:i.number,col:s,off:o}}function ai(e,t){let n=si(e,t),i=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(e.changes)}},get(t,o,s){let a=si(e,t);if(!a)return i;let l=function(e,t,n){let i=Math.min(t.line,n.line),o=Math.max(t.line,n.line),s=[];if(t.off>oi||n.off>oi||t.col<0||n.col<0){let a=Math.min(t.off,n.off),l=Math.max(t.off,n.off);for(let t=i;t<=o;t++){let n=e.doc.line(t);n.length<=l&&s.push(r.OF.range(n.from+a,n.to+l))}}else{let a=Math.min(t.col,n.col),l=Math.max(t.col,n.col);for(let t=i;t<=o;t++){let n=e.doc.line(t),i=(0,r.kn)(n.text,a,e.tabSize,!0);if(i<0)s.push(r.OF.cursor(n.to));else{let t=(0,r.kn)(n.text,l,e.tabSize);s.push(r.OF.range(n.from+i,n.from+t))}}}return s}(e.state,n,a);return l.length?s?r.OF.create(l.concat(i.ranges)):r.OF.create(l):i}}:null}function li(e){let t=(null===e||void 0===e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return ur.mouseSelectionStyle.of((e,n)=>t(n)?ai(e,n):null)}const ci={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},ui={style:"cursor: crosshair"};function hi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=ci[e.key||"Alt"],r=ut.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,ur.contentAttributes.of(e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?ui:null})]}const di="-10000px";class pi{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e);let i=null;this.tooltipViews=this.tooltips.map(e=>i=n(e,i))}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter(e=>e);if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let o=[],s=t?[]:null;for(let a=0;a<i.length;a++){let n=i[a],r=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==n.create&&(r=e)}if(r<0)o[a]=this.createTooltipView(n,a?o[a-1]:null),s&&(s[a]=!!n.above);else{let n=o[a]=this.tooltipViews[r];s&&(s[a]=t[r]),n.update&&n.update(e)}}}for(let a of this.tooltipViews)o.indexOf(a)<0&&(this.removeTooltipView(a),null===(n=a.destroy)||void 0===n||n.call(a));return t&&(s.forEach((e,n)=>t[n]=e),t.length=s.length),this.input=r,this.tooltips=i,this.tooltipViews=o,!0}}function fi(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}const mi=r.sj.define({combine:e=>{var t,n,r;return{position:W.ios?"absolute":(null===(t=e.find(e=>e.position))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find(e=>e.parent))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find(e=>e.tooltipSpace))||void 0===r?void 0:r.tooltipSpace)||fi}}}),gi=new WeakMap,Oi=ut.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(mi);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new pi(e,xi,(e,t)=>this.createTooltip(e,t),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(mi);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",n.dom.appendChild(e)}return n.dom.style.position=this.position,n.dom.style.top=di,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),null===(e=r.destroy)||void 0===e||e.call(r);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(W.gecko)n=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==di&&"0px"==e.style.left){let t=e.getBoundingClientRect();n=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(n||"absolute"==this.position)if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=yt(this.view);return{visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(e=>{let{dom:t}=e;return t.getBoundingClientRect()}),space:this.view.state.facet(mi).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{visible:n,space:r,scaleX:i,scaleY:o}=e,s=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],c=this.manager.tooltipViews[a],{dom:u}=c,h=e.pos[a],d=e.size[a];if(!h||!1!==l.clip&&(h.bottom<=Math.max(n.top,r.top)||h.top>=Math.min(n.bottom,r.bottom)||h.right<Math.max(n.left,r.left)-.1||h.left>Math.min(n.right,r.right)+.1)){u.style.top=di;continue}let p=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,f=p?7:0,m=d.right-d.left,g=null!==(t=gi.get(c))&&void 0!==t?t:d.bottom-d.top,O=c.offset||yi,b=this.view.textDirection==Ae.LTR,v=d.width>r.right-r.left?b?r.left:r.right-d.width:b?Math.max(r.left,Math.min(h.left-(p?14:0)+O.x,r.right-m)):Math.min(Math.max(r.left,h.left-m+(p?14:0)-O.x),r.right-m),y=this.above[a];!l.strictSide&&(y?h.top-g-f-O.y<r.top:h.bottom+g+f+O.y>r.bottom)&&y==r.bottom-h.bottom>h.top-r.top&&(y=this.above[a]=!y);let x=(y?h.top-r.top:r.bottom-h.bottom)-f;if(x<g&&!1!==c.resize){if(x<this.view.defaultLineHeight){u.style.top=di;continue}gi.set(c,g),u.style.height=(g=x)/o+"px"}else u.style.height&&(u.style.height="");let k=y?h.top-g-f-O.y:h.bottom+f+O.y,S=v+m;if(!0!==c.overlap)for(let e of s)e.left<S&&e.right>v&&e.top<k+g&&e.bottom>k&&(k=y?e.top-g-2-f:e.bottom+f+2);if("absolute"==this.position?(u.style.top=(k-e.parent.top)/o+"px",bi(u,(v-e.parent.left)/i)):(u.style.top=k/o+"px",bi(u,v/i)),p){let e=h.left+(b?O.x:-O.x)-(v+14-7);p.style.left=e/i+"px"}!0!==c.overlap&&s.push({left:v,top:k,right:S,bottom:k+g}),u.classList.toggle("cm-tooltip-above",y),u.classList.toggle("cm-tooltip-below",!y),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=di}},{eventObservers:{scroll(){this.maybeMeasure()}}});function bi(e,t){let n=parseInt(e.style.left,10);(isNaN(n)||Math.abs(t-n)>1)&&(e.style.left=t+"px")}const vi=ur.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),yi={x:0,y:0},xi=r.sj.define({enables:[Oi,vi]}),ki=r.sj.define({combine:e=>e.reduce((e,t)=>e.concat(t),[])});class Si{static create(e){return new Si(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new pi(e,ki,(e,t)=>this.createHostedView(e,t),e=>e.dom.remove())}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const wi=xi.compute([ki],e=>{let t=e.facet(ki);return 0===t.length?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos})),create:Si.create,above:t[0].above,arrow:t.some(e=>e.arrow)}});class Ai{constructor(e,t,n,r,i){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.nearest(t.target);if(!n)return;let r,i=1;if(n instanceof ee)r=n.posAtStart;else{if(r=e.posAtCoords(t),null==r)return;let n=e.coordsAtPos(r);if(!n||t.y<n.top||t.y>n.bottom||t.x<n.left-e.defaultCharacterWidth||t.x>n.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find(e=>e.from<=r&&e.to>=r),s=o&&o.dir==Ae.RTL?-1:1;i=t.x<n.left?-s:s}let o=this.source(e,r,i);if(null===o||void 0===o?void 0:o.then){let t=this.pending={pos:r};o.then(n=>{this.pending==t&&(this.pending=null,!n||Array.isArray(n)&&!n.length||e.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])}))},t=>st(e.state,t,"hover tooltip"))}else!o||Array.isArray(o)&&!o.length||e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(Oi),t=e?e.manager.tooltips.findIndex(e=>e.create==Si.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r.length&&i&&!function(e,t){let n,{left:r,right:i,top:o,bottom:s}=e.getBoundingClientRect();if(n=e.querySelector(".cm-tooltip-arrow")){let e=n.getBoundingClientRect();o=Math.min(e.top,o),s=Math.max(e.bottom,s)}return t.clientX>=r-Ti&&t.clientX<=i+Ti&&t.clientY>=o-Ti&&t.clientY<=s+Ti}(i.dom,e)||this.pending){let{pos:i}=r[0]||this.pending,o=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:i;(i==o?this.view.posAtCoords(this.lastMove)==i:function(e,t,n,r,i){let o=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>r||o.right<r||o.top>i||Math.min(o.bottom,s)<i)return!1;let a=e.posAtCoords({x:r,y:i},!1);return a>=t&&a<=n}(this.view,i,o,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Ti=4;function Ei(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.Pe.define(),i=r.sU.define({create:()=>[],update(e,i){if(e.length&&(t.hideOnChange&&(i.docChanged||i.selection)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(i,e))),i.docChanged)){let t=[];for(let n of e){let e=i.changes.mapPos(n.pos,-1,r.iR.TrackDel);if(null!=e){let r=Object.assign(Object.create(null),n);r.pos=e,null!=r.end&&(r.end=i.changes.mapPos(r.end)),t.push(r)}}e=t}for(let t of i.effects)t.is(n)&&(e=t.value),t.is(_i)&&(e=[]);return e},provide:e=>ki.from(e)});return{active:i,extension:[i,ut.define(r=>new Ai(r,e,i,n,t.hoverTime||300)),wi]}}function Ci(e,t){let n=e.plugin(Oi);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const _i=r.Pe.define();const Pi=r.sj.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function Di(e,t){let n=e.plugin(Mi),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Mi=ut.fromClass(class{constructor(e){this.input=e.state.facet(Qi),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(Pi);this.top=new Ni(e,!0,t.topContainer),this.bottom=new Ni(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(Pi);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Ni(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Ni(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Qi);if(n!=this.input){let t=n.filter(e=>e),r=[],i=[],o=[],s=[];for(let n of t){let t,a=this.specs.indexOf(n);a<0?(t=n(e.view),s.push(t)):(t=this.panels[a],t.update&&t.update(e)),r.push(t),(t.top?i:o).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let e of s)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>ur.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Ni{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Ri(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Ri(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Ri(e){let t=e.nextSibling;return e.remove(),t}const Qi=r.sj.define({enables:Mi});class Ii extends r.FB{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Ii.prototype.elementClass="",Ii.prototype.toDOM=void 0,Ii.prototype.mapMode=r.iR.TrackBefore,Ii.prototype.startSide=Ii.prototype.endSide=-1,Ii.prototype.point=!0;const Li=r.sj.define(),Fi=r.sj.define(),$i={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>r.om.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Bi=r.sj.define();function zi(e){return[Hi(),Bi.of({...$i,...e})]}const qi=r.sj.define({combine:e=>e.some(e=>e)});function Hi(e){let t=[Ui];return e&&!1===e.fixed&&t.push(qi.of(!0)),t}const Ui=ut.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(Bi).map(t=>new Yi(e,t)),this.fixed=!e.state.facet(qi);for(let t of this.gutters)"after"==t.config.side?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(qi)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=r.om.iter(this.view.state.facet(Li),this.view.viewport.from),i=[],o=this.gutters.map(e=>new Zi(e,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let e=!0;for(let t of r.type)if(t.type==de.Text&&e){ji(n,i,t.from);for(let e of o)e.line(this.view,t,i);e=!1}else if(t.widget)for(let e of o)e.widget(this.view,t)}else if(r.type==de.Text){ji(n,i,r.from);for(let e of o)e.line(this.view,r,i)}else if(r.widget)for(let e of o)e.widget(this.view,r);for(let r of o)r.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(Bi),n=e.state.facet(Bi),i=e.docChanged||e.heightChanged||e.viewportChanged||!r.om.eq(e.startState.facet(Li),e.state.facet(Li),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let r of this.gutters)r.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new Yi(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>ur.scrollMargins.of(t=>{let n=t.plugin(e);if(!n||0==n.gutters.length||!n.fixed)return null;let r=n.dom.offsetWidth*t.scaleX,i=n.domAfter?n.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==Ae.LTR?{left:r,right:i}:{right:r,left:i}})});function Xi(e){return Array.isArray(e)?e:[e]}function ji(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Zi{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=r.om.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let t=new Vi(e,o,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,o,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];ji(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),r=n?[n]:null;for(let i of e.state.facet(Fi)){let n=i(e,t.widget,t);n&&(r||(r=[])).push(n)}r&&this.addElement(e,t,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Yi{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let s=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,s,r)&&r.preventDefault()});this.markers=Xi(t.markers(e)),t.initialSpacer&&(this.spacer=new Vi(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Xi(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!r.om.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Vi{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,t){let n="cm-gutterElement",r=this.dom.firstChild;for(let i=0,o=0;;){let s=o,a=i<t.length?t[i++]:null,l=!1;if(a){let e=a.elementClass;e&&(n+=" "+e);for(let t=o;t<this.markers.length;t++)if(this.markers[t].compare(a)){s=t,l=!0;break}}else s=this.markers.length;for(;o<s;){let e=this.markers[o++];if(e.toDOM){e.destroy(r);let t=r.nextSibling;r.remove(),r=t}}if(!a)break;a.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(a.toDOM(e),r)),l&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}const Gi=r.sj.define(),Wi=r.sj.define(),Ki=r.sj.define({combine:e=>(0,r.QR)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let r in t){let e=n[r],i=t[r];n[r]=e?(t,n,r)=>e(t,n,r)||i(t,n,r):i}return n}})});class Ji extends Ii{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function eo(e,t){return e.state.facet(Ki).formatNumber(t,e.state)}const to=Bi.compute([Ki],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Gi),lineMarker:(e,t,n)=>n.some(e=>e.toDOM)?null:new Ji(eo(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,n)=>{for(let r of e.state.facet(Wi)){let i=r(e,t,n);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(Ki)!=e.state.facet(Ki),initialSpacer:e=>new Ji(eo(e,ro(e.state.doc.lines))),updateSpacer(e,t){let n=eo(t.view,ro(t.view.state.doc.lines));return n==e.number?e:new Ji(n)},domEventHandlers:e.facet(Ki).domEventHandlers,side:"before"}));function no(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Ki.of(e),Hi(),to]}function ro(e){let t=9;for(;t<e;)t=10*t+9;return t}const io=new class extends Ii{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},oo=Li.compute(["selection"],e=>{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(io.range(i)))}return r.om.of(t)});function so(){return oo}},4603:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},4628:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!==typeof e)return n;var r=(0,i.default)(e),o="function"===typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(945))},4818:(e,t,n)=>{"use strict";function r(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{A:()=>i,q:()=>r})},4859:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>$,EI:()=>P,KB:()=>M,Lv:()=>me,Oh:()=>N,Q0:()=>h,Q_:()=>Re,SG:()=>Ne,TM:()=>d,Tg:()=>He,WD:()=>U,Xt:()=>C,Yy:()=>A,Zt:()=>we,_Y:()=>z,_v:()=>D,b_:()=>j,bj:()=>f,cr:()=>Oe,f7:()=>se,iB:()=>c,jU:()=>Le,mv:()=>m,mz:()=>q,nq:()=>b,p9:()=>u,t:()=>X,t$:()=>T,tp:()=>_,y9:()=>xe,yd:()=>Z});var r,i=n(4450),o=n(2400),s=n(4563),a=n(1345),l=n(752);const c=new i.uY;function u(e){return o.sj.define({combine:e?t=>t.concat(e):void 0})}const h=new i.uY;class d{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";this.data=e,this.name=r,o.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(o.$t.prototype,"tree",{get(){return m(this)}}),this.parser=t,this.extension=[w.of(this),o.$t.languageData.of((e,t,n)=>{let r=p(e,t,n),i=r.type.prop(c);if(!i)return[];let o=e.facet(i),s=r.type.prop(h);if(s){let i=r.resolve(t-r.from,n);for(let t of s)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o})].concat(n)}isActiveAt(e,t){return p(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(c)==this.data}findRegions(e){let t=e.facet(w);if((null===t||void 0===t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(c)==this.data)return void n.push({from:t,to:t+e.length});let o=e.prop(i.uY.mounted);if(o){if(o.tree.prop(c)==this.data){if(o.overlay)for(let e of o.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(o.overlay){let e=n.length;if(r(o.tree,o.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let o=e.children[n];o instanceof i.PH&&r(o,e.positions[n]+t)}};return r(m(e),0),n}get allowsNesting(){return!0}}function p(e,t,n){let r=e.facet(w),o=m(e).topNode;if(!r||r.allowsNesting)for(let s=o;s;s=s.enter(t,n,i.Qj.ExcludeBuffers))s.type.isTop&&(o=s);return o}d.setState=o.Pe.define();class f extends d{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=u(e.languageData);return new f(t,e.parser.configure({props:[c.add(e=>e.isTop?t:void 0)]}),e.name)}configure(e,t){return new f(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function m(e){let t=e.field(d.state,!1);return t?t.tree:i.PH.empty}class g{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let O=null;class b{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0;this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new b(e,t,[],i.PH.empty,0,n,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.PH.empty&&this.isDone(null!==t&&void 0!==t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(i.rr.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!==t&&void 0!==t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=O;O=this;try{return e()}finally{O=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=v(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:o,viewport:s,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=i.rr.applyChanges(n,t),r=i.PH.empty,o=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&a.push({from:n,to:r})}}}return new b(this.parser,t,n,r,o,s,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:t,to:r}=this.skipped[n];t<e.to&&r>e.from&&(this.fragments=v(this.fragments,t,r),this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i.iX{createParse(t,n,r){let o=r[0].from,s=r[r.length-1].to;return{parsedPos:o,advance(){let t=O;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new i.PH(i.Z6.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return O}}function v(e,t,n){return i.rr.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class y{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new y(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=b.create(e.facet(w).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new y(n)}}d.state=o.sU.define({create:y.init,update(e,t){for(let n of t.effects)if(n.is(d.setState))return n.value;return t.startState.facet(w)!=t.state.facet(w)?y.init(t.state):e.apply(t)}});let x=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(x=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const k="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,S=s.Z9.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(d.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(d.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=x(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(d.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!k?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work(()=>k&&k()||Date.now()>o,r+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:d.setState.of(new y(i.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,s.c_)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),w=o.sj.define({combine:e=>e.length?e[0]:null,enables:e=>[d.state,S,s.Lz.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class A{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.language=e,this.support=t,this.extension=[e,t]}}class T{constructor(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;this.name=e,this.alias=t,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new T(e.name,(e.alias||[]).concat(e.name).map(e=>e.toLowerCase()),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let r of e)if(r.filename&&r.filename.test(t))return r;let n=/\.([^.]+)$/.exec(t);if(n)for(let r of e)if(r.extensions.indexOf(n[1])>-1)return r;return null}static matchLanguageName(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=t.toLowerCase();for(let r of e)if(r.alias.some(e=>e==t))return r;if(n)for(let r of e)for(let e of r.alias){let n=t.indexOf(e);if(n>-1&&(e.length>2||!/\w/.test(t[n-1])&&!/\w/.test(t[n+e.length])))return r}return null}}const E=o.sj.define(),C=o.sj.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function _(e){let t=e.facet(C);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function P(e,t){let n="",r=e.tabSize,i=e.facet(C)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let o=0;o<t;o++)n+=i;return n}function D(e,t){e instanceof o.$t&&(e=new M(e));for(let r of e.state.facet(E)){let n=r(e,t);if(void 0!==n)return n}let n=m(e.state);return n.length>=t?function(e,t,n){let r=t.resolveStack(n),i=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t&&!(t.from<r.node.from||t.to>r.node.to||t.from==r.node.from&&t.type==r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return R(r,e,n)}(e,n,t):null}class M{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.state=e,this.options=t,this.unit=_(e)}lineAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return(0,o.y$)(e,this.state.tabSize,t)}lineIndent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const N=new i.uY;function R(e,t,n){for(let r=e;r;r=r.next){let e=Q(r.node);if(e)return e(L.create(t,n,r))}return 0}function Q(e){let t=e.type.prop(N);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(i.uY.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>B(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?I:null}function I(){return 0}class L extends M{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new L(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(F(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return R(this.context.next,this.base,this.pos)}}function F(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function $(e){let{closing:t,align:n=!0,units:r=1}=e;return e=>B(e,n,r,t)}function B(e,t,n,r,i){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=r&&o.slice(s,s+r.length)==r||i==e.pos+s,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),s=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let a=n.to;;){let e=t.childAfter(a);if(!e||e==r)return null;if(!e.type.isSkipped){if(e.from>=s)return null;let t=/^ */.exec(o.text.slice(n.to-o.from))[0].length;return{from:n.from,to:n.to+t}}a=e.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}const z=e=>e.baseIndent;function q(){let{except:e,units:t=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const H=200;function U(){return o.$t.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+H)return e;let o=n.sliceString(i.from,r);if(!t.some(e=>e.test(o)))return e;let{state:s}=e,a=-1,l=[];for(let{head:c}of s.selection.ranges){let e=s.doc.lineAt(c);if(e.from==a)continue;a=e.from;let t=D(s,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],r=P(s,t);n!=r&&l.push({from:e.from,to:e.from+n.length,insert:r})}return l.length?[e,{changes:l,sequential:!0}]:e})}const X=o.sj.define(),j=new i.uY;function Z(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function Y(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function V(e,t,n){for(let r of e.facet(X)){let i=r(e,t,n);if(i)return i}return function(e,t,n){let r=m(e);if(r.length<n)return null;let i=null;for(let o=r.resolveStack(n,1);o;o=o.next){let s=o.node;if(s.to<=n||s.from>n)continue;if(i&&s.from<t)break;let a=s.type.prop(j);if(a&&(s.to<r.length-50||r.length==e.doc.length||!Y(s))){let r=a(s,e);r&&r.from<=n&&r.from>=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function G(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const W=o.Pe.define({map:G}),K=o.Pe.define({map:G});function J(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(e=>e.from<=n&&e.to>=n)||t.push(e.lineBlockAt(n));return t}const ee=o.sU.define({create:()=>s.NZ.none,update(e,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,n)=>e=te(e,t,n)),e=e.map(t.changes);for(let n of t.effects)if(n.is(W)&&!re(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(le),i=r?s.NZ.replace({widget:new de(r(t.state,n.value))}):he;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(K)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));return t.selection&&(e=te(e,t.selection.main.head)),e},provide:e=>s.Lz.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let r=e[n++],i=e[n++];if("number"!=typeof r||"number"!=typeof i)throw new RangeError("Invalid JSON for fold state");t.push(he.range(r,i))}return s.NZ.set(t,!0)}});function te(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=!1;return e.between(t,n,(e,i)=>{e<n&&i>t&&(r=!0)}),r?e.update({filterFrom:t,filterTo:n,filter:(e,r)=>e>=n||r<=t}):e}function ne(e,t,n){var r;let i=null;return null===(r=e.field(ee,!1))||void 0===r||r.between(t,n,(e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})}),i}function re(e,t,n){let r=!1;return e.between(t,t,(e,i)=>{e==t&&i==n&&(r=!0)}),r}function ie(e,t){return e.field(ee,!1)?t:t.concat(o.Pe.appendConfig.of(ce()))}function oe(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return s.Lz.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const se=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of J(e)){let n=V(e.state,t.from,t.to);if(n)return e.dispatch({effects:ie(e.state,[W.of(n),oe(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(ee,!1))return!1;let t=[];for(let n of J(e)){let r=ne(e.state,n.from,n.to);r&&t.push(K.of(r),oe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r<t.doc.length;){let i=e.lineBlockAt(r),o=V(t,i.from,i.to);o&&n.push(W.of(o)),r=(o?e.lineBlockAt(o.to):i).to+1}return n.length&&e.dispatch({effects:ie(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field(ee,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(e,t)=>{n.push(K.of({from:e,to:t}))}),e.dispatch({effects:n}),!0}}],ae={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},le=o.sj.define({combine:e=>(0,o.QR)(e,ae)});function ce(e){let t=[ee,ge];return e&&t.push(le.of(e)),t}function ue(e,t){let{state:n}=e,r=n.facet(le),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=ne(e.state,n.from,n.to);r&&e.dispatch({effects:K.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const he=s.NZ.replace({widget:new class extends s.xO{toDOM(e){return ue(e,null)}}});class de extends s.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ue(e,this.value)}}const pe={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class fe extends s.wJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function me(){let e={...pe,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},t=new fe(e,!0),n=new fe(e,!1),r=s.Z9.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(w)!=t.state.facet(w)||t.startState.field(ee,!1)!=t.state.field(ee,!1)||m(t.startState)!=m(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(e){let r=new o.vB;for(let i of e.viewportLineBlocks){let o=ne(e.state,i.from,i.to)?n:V(e.state,i.from,i.to)?t:null;o&&r.add(i.from,i.from,o)}return r.finish()}}),{domEventHandlers:i}=e;return[r,(0,s.cU)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.markers)||o.om.empty},initialSpacer:()=>new fe(e,!1),domEventHandlers:{...i,click:(e,t,n)=>{if(i.click&&i.click(e,t,n))return!0;let r=ne(e.state,t.from,t.to);if(r)return e.dispatch({effects:K.of(r)}),!0;let o=V(e.state,t.from,t.to);return!!o&&(e.dispatch({effects:W.of(o)}),!0)}}}),ce()]}const ge=s.Lz.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Oe{constructor(e,t){let n;function r(e){let t=l.G.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof d?e=>e.prop(c)==o.data:o?e=>e==o:void 0,this.style=(0,a.az)(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new l.G(n):null,this.themeType=t.themeType}static define(e,t){return new Oe(e,t||{})}}const be=o.sj.define(),ve=o.sj.define({combine:e=>e.length?[e[0]]:null});function ye(e){let t=e.facet(be);return t.length?t:e.facet(ve)}function xe(e,t){let n,r=[Se];return e instanceof Oe&&(e.module&&r.push(s.Lz.styleModule.of(e.module)),n=e.themeType),(null===t||void 0===t?void 0:t.fallback)?r.push(ve.of(e)):n?r.push(be.computeN([s.Lz.darkTheme],t=>t.facet(s.Lz.darkTheme)==("dark"==n)?[e]:[])):r.push(be.of(e)),r}class ke{constructor(e){this.markCache=Object.create(null),this.tree=m(e.state),this.decorations=this.buildDeco(e,ye(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=m(e.state),n=ye(e.state),r=n!=ye(e.startState),{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length<i.to&&!r&&t.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return s.NZ.none;let n=new o.vB;for(let{from:r,to:i}of e.visibleRanges)(0,a.DM)(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=s.NZ.mark({class:r})))},r,i);return n.finish()}}const Se=o.Nb.high(s.Z9.fromClass(ke,{decorations:e=>e.decorations})),we=Oe.define([{tag:a._A.meta,color:"#404740"},{tag:a._A.link,textDecoration:"underline"},{tag:a._A.heading,textDecoration:"underline",fontWeight:"bold"},{tag:a._A.emphasis,fontStyle:"italic"},{tag:a._A.strong,fontWeight:"bold"},{tag:a._A.strikethrough,textDecoration:"line-through"},{tag:a._A.keyword,color:"#708"},{tag:[a._A.atom,a._A.bool,a._A.url,a._A.contentSeparator,a._A.labelName],color:"#219"},{tag:[a._A.literal,a._A.inserted],color:"#164"},{tag:[a._A.string,a._A.deleted],color:"#a11"},{tag:[a._A.regexp,a._A.escape,a._A.special(a._A.string)],color:"#e40"},{tag:a._A.definition(a._A.variableName),color:"#00f"},{tag:a._A.local(a._A.variableName),color:"#30a"},{tag:[a._A.typeName,a._A.namespace],color:"#085"},{tag:a._A.className,color:"#167"},{tag:[a._A.special(a._A.variableName),a._A.macroName],color:"#256"},{tag:a._A.definition(a._A.propertyName),color:"#00c"},{tag:a._A.comment,color:"#940"},{tag:a._A.invalid,color:"#f00"}]),Ae=s.Lz.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Te=1e4,Ee="()[]{}",Ce=o.sj.define({combine:e=>(0,o.QR)(e,{afterCursor:!0,brackets:Ee,maxScanDistance:Te,renderMatch:De})}),_e=s.NZ.mark({class:"cm-matchingBracket"}),Pe=s.NZ.mark({class:"cm-nonmatchingBracket"});function De(e){let t=[],n=e.matched?_e:Pe;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const Me=[o.sU.define({create:()=>s.NZ.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(Ce);for(let i of t.state.selection.ranges){if(!i.empty)continue;let e=Le(t.state,i.head,-1,r)||i.head>0&&Le(t.state,i.head-1,1,r)||r.afterCursor&&(Le(t.state,i.head,1,r)||i.head<t.state.doc.length&&Le(t.state,i.head+1,-1,r));e&&(n=n.concat(r.renderMatch(e,t.state)))}return s.NZ.set(n,!0)},provide:e=>s.Lz.decorations.from(e)}),Ae];function Ne(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Ce.of(e),Me]}const Re=new i.uY;function Qe(e,t,n){let r=e.prop(t<0?i.uY.openedBy:i.uY.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function Ie(e){let t=e.type.prop(Re);return t?t(e.node):e}function Le(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.maxScanDistance||Te,o=r.brackets||Ee,s=m(e),a=s.resolveInner(t,n);for(let l=a;l;l=l.parent){let r=Qe(l.type,n,o);if(r&&l.from<l.to){let i=Ie(l);if(i&&(n>0?t>=i.from&&t<i.to:t>i.from&&t<=i.to))return Fe(e,t,n,l,i,r,o)}}return function(e,t,n,r,i,o,s){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let d=0;!u.next().done&&d<=o;){let e=u.value;n<0&&(d+=e.length);let o=t+d*n;for(let t=n>0?0:e.length-1,a=n>0?e.length:-1;t!=a;t+=n){let a=s.indexOf(e[t]);if(!(a<0||r.resolveInner(o+t,1).type!=i))if(a%2==0==n>0)h++;else{if(1==h)return{start:c,end:{from:o+t,to:o+t+1},matched:a>>1==l>>1};h--}}n>0&&(d+=e.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,s,a.type,i,o)}function Fe(e,t,n,r,i,o,s){let a=r.parent,l={from:i.from,to:i.to},c=0,u=null===a||void 0===a?void 0:a.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do{if(n<0?u.to<=r.from:u.from>=r.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from<u.to){let e=Ie(u);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(Qe(u.type,n,s))c++;else if(Qe(u.type,-n,s)){if(0==c){let e=Ie(u);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}c--}}}while(n<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}function $e(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);let o=i;for(let s=r;s<t;s++)9==e.charCodeAt(s)?o+=n-o%n:o++;return o}class Be{constructor(e,t,n,r){this.string=e,this.tabSize=t,this.indentUnit=n,this.overrideIndent=r,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t,n=this.string.charAt(this.pos);if(t="string"==typeof e?n==e:n&&(e instanceof RegExp?e.test(n):e(n)),t)return++this.pos,n}eatWhile(e){let t=this.pos;for(;this.eat(e););return this.pos>t}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=$e(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return null!==(e=this.overrideIndent)&&void 0!==e?e:$e(this.string,null,this.tabSize)}match(e,t,n){if("string"==typeof e){let r=e=>n?e.toLowerCase():e;return r(this.string.substr(this.pos,e.length))==r(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function ze(e){if("object"!=typeof e)return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r}return t}const qe=new WeakMap;class He extends d{constructor(e){let t,n=u(e.languageData),r={name:(o=e).name||"",token:o.token,blankLine:o.blankLine||(()=>{}),startState:o.startState||(()=>!0),copyState:o.copyState||ze,indent:o.indent||(()=>null),languageData:o.languageData||{},tokenTable:o.tokenTable||Ye,mergeTokens:!1!==o.mergeTokens};var o;super(n,new class extends i.iX{createParse(e,n,r){return new je(t,e,n,r)}},[],e.name),this.topNode=function(e,t){let n=i.Z6.define({id:Ve.length,name:"Document",props:[c.add(()=>e),N.add(()=>e=>t.getIndent(e))],top:!0});return Ve.push(n),n}(n,this),t=this,this.streamParser=r,this.stateAfter=new i.uY({perNode:!0}),this.tokenTable=e.tokenTable?new et(r.tokenTable):tt}static define(e){return new He(e)}getIndent(e){let t,{overrideIndentation:n}=e.options;n&&(t=qe.get(e.state),null!=t&&t<e.pos-1e4&&(t=void 0));let r,i,o=Ue(this,e.node.tree,e.node.from,e.node.from,null!==t&&void 0!==t?t:e.pos);if(o?(i=o.state,r=o.pos+1):(i=this.streamParser.startState(e.unit),r=e.node.from),e.pos-r>1e4)return null;for(;r<e.pos;){let t=e.state.doc.lineAt(r),o=Math.min(e.pos,t.to);if(t.length){let r=n?n(t.from):-1,s=new Be(t.text,e.state.tabSize,e.unit,r<0?void 0:r);for(;s.pos<o-t.from;)Ze(this.streamParser.token,s,i)}else this.streamParser.blankLine(i,e.unit);if(o==e.pos)break;r=t.to+1}let s=e.lineAt(e.pos);return n&&null==t&&qe.set(e.state,s.from),this.streamParser.indent(i,/^\s*(.*)/.exec(s.text)[1],e)}get allowsNesting(){return!1}}function Ue(e,t,n,r,o){let s=n>=r&&n+t.length<=o&&t.prop(e.stateAfter);if(s)return{state:e.streamParser.copyState(s),pos:n+t.length};for(let a=t.children.length-1;a>=0;a--){let s=t.children[a],l=n+t.positions[a],c=s instanceof i.PH&&l<o&&Ue(e,s,l,r,o);if(c)return c}return null}function Xe(e,t,n,r,o){if(o&&n<=0&&r>=t.length)return t;o||0!=n||t.type!=e.topNode||(o=!0);for(let s=t.children.length-1;s>=0;s--){let a,l=t.positions[s],c=t.children[s];if(l<r&&c instanceof i.PH){if(!(a=Xe(e,c,n-l,r-l,o)))break;return o?new i.PH(t.type,t.children.slice(0,s).concat(a),t.positions.slice(0,s+1),l+a.length):a}}return null}class je{constructor(e,t,n,r){this.lang=e,this.input=t,this.fragments=n,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let o=b.get(),s=r[0].from,{state:a,tree:l}=function(e,t,n,r,o){for(let i of t){let t,o=i.from+(i.openStart?25:0),s=i.to-(i.openEnd?25:0),a=o<=n&&s>n&&Ue(e,i.tree,0-i.offset,n,s);if(a&&a.pos<=r&&(t=Xe(e,i.tree,n+i.offset,a.pos+i.offset,!1)))return{state:a.state,tree:t}}return{state:e.streamParser.startState(o?_(o):4),tree:i.PH.empty}}(e,n,s,this.to,null===o||void 0===o?void 0:o.state);this.state=a,this.parsedPos=this.chunkStart=s+l.length;for(let i=0;i<l.children.length;i++)this.chunks.push(l.children[i]),this.chunkPos.push(l.positions[i]);o&&this.parsedPos<o.viewport.from-1e5&&r.some(e=>e.from<=o.viewport.from&&e.to>=o.viewport.from)&&(this.state=this.lang.streamParser.startState(_(o.state)),o.skipUntilInView(this.parsedPos,o.viewport.from),this.parsedPos=o.viewport.from),this.moveRangeIndex()}advance(){let e=b.get(),t=null==this.stoppedAt?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(t,this.chunkStart+2048);for(e&&(n=Math.min(n,e.viewport.to));this.parsedPos<n;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let r=this.rangeIndex;;){let e=this.ranges[r].to;if(e>=n)break;if(t=t.slice(0,e-(n-t.length)),r++,r==this.ranges.length)break;let i=this.ranges[r].from,o=this.lineAfter(i);t+=o,n=i+o.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=e+t;if(n>0?r>i:r>=i)break;t+=this.ranges[++this.rangeIndex].from-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,t,n,r){let i=4;if(this.ranges.length>1){t+=r=this.skipGapsTo(t,r,1);let e=this.chunk.length;n+=r=this.skipGapsTo(n,r,-1),i+=this.chunk.length-e}let o=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&4==i&&o>=0&&this.chunk[o]==e&&this.chunk[o+2]==t?this.chunk[o+2]=n:this.chunk.push(e,t,n,i),r}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,o=new Be(t,e?e.state.tabSize:4,e?_(e.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let e=Ze(i.token,o,this.state);if(e&&(r=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+o.start,this.parsedPos+o.pos,r)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=i.PH.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:Ge,topID:0,maxBufferLength:2048,reused:this.chunkReused});e=new i.PH(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new i.PH(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function Ze(e,t,n){t.start=t.pos;for(let r=0;r<10;r++){let r=e(t,n);if(t.pos>t.start)return r}throw new Error("Stream parser failed to advance stream.")}const Ye=Object.create(null),Ve=[i.Z6.none],Ge=new i.fI(Ve),We=[],Ke=Object.create(null),Je=Object.create(null);for(let[it,ot]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Je[it]=rt(Ye,ot);class et{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),Je)}resolve(e){return e?this.table[e]||(this.table[e]=rt(this.extra,e)):0}}const tt=new et(Ye);function nt(e,t){We.indexOf(e)>-1||(We.push(e),console.warn(t))}function rt(e,t){let n=[];for(let i of t.split(" ")){let t=[];for(let n of i.split(".")){let r=e[n]||a._A[n];r?"function"==typeof r?t.length?t=t.map(r):nt(n,`Modifier ${n} used at start of tag`):t.length?nt(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:nt(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),o=r+" "+n.map(e=>e.id),s=Ke[o];if(s)return s.id;let l=Ke[o]=i.Z6.define({id:Ve.length,name:r,props:[(0,a.pn)({[r]:n})]});return Ve.push(l),l.id}s.OP.RTL,s.OP.LTR},4866:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!a(c))return!1;var u=e[c],h=t[c];if(!1===(i=n?n.call(r,u,h,c):void 0)||void 0===i&&u!==h)return!1}return!0}},5045:(e,t,n)=>{"use strict";n.d(t,{Ar:()=>c,Bc:()=>xe,Gw:()=>ce,OO:()=>Pe,_5:()=>s,et:()=>l,wm:()=>me,yU:()=>_e});var r=n(2400),i=n(4563),o=n(4859);class s{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=(0,o.mv)(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(d(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,n){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function a(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function l(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e<i.length;e++)n[i[e]]=!0}let r=a(t)+a(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function c(e,t){return n=>{for(let t=(0,o.mv)(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}class u{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function h(e){return e.selection.main.from}function d(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const p=r.YH.define();const f=new WeakMap;function m(e){if(!Array.isArray(e))return e;let t=f.get(e);return t||f.set(e,t=l(e)),t}const g=r.Pe.define(),O=r.Pe.define();class b{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=(0,r.vS)(e,t),i=(0,r.Fh)(n);this.chars.push(n);let o=e.slice(t,t+i),s=o.toUpperCase();this.folded.push((0,r.vS)(s==o?o.toLowerCase():s,0)),t+=i}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:i,precise:o,byWord:s}=this;if(1==t.length){let i=(0,r.vS)(e,0),o=(0,r.Fh)(i),s=o==e.length?0:-100;if(i==t[0]);else{if(i!=n[0])return null;s+=-200}return this.ret(s,[0,o])}let a=e.indexOf(this.pattern);if(0==a)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=t.length,c=0;if(a<0){for(let o=0,s=Math.min(e.length,200);o<s&&c<l;){let s=(0,r.vS)(e,o);s!=t[c]&&s!=n[c]||(i[c++]=o),o+=(0,r.Fh)(s)}if(c<l)return null}let u=0,h=0,d=!1,p=0,f=-1,m=-1,g=/[a-z]/.test(e),O=!0;for(let b=0,v=Math.min(e.length,200),y=0;b<v&&h<l;){let i=(0,r.vS)(e,b);a<0&&(u<l&&i==t[u]&&(o[u++]=b),p<l&&(i==t[p]||i==n[p]?(0==p&&(f=b),m=b+1,p++):p=0));let c,v=i<255?i>=48&&i<=57||i>=97&&i<=122?2:i>=65&&i<=90?1:0:(c=(0,r.MK)(i))!=c.toLowerCase()?1:c!=c.toUpperCase()?2:0;(!b||1==v&&g||0==y&&0!=v)&&(t[h]==i||n[h]==i&&(d=!0)?s[h++]=b:s.length&&(O=!1)),y=v,b+=(0,r.Fh)(i)}return h==l&&0==s[0]&&O?this.result((d?-200:0)-100,s,e):p==l&&0==f?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):p==l?this.ret(-900-e.length,[f,m]):h==l?this.result((d?-200:0)-100-700+(O?0:-1100),s,e):2==t.length?null:this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,n){let i=[],o=0;for(let s of t){let e=s+(this.astral?(0,r.Fh)((0,r.vS)(n,s)):1);o&&i[o-1]==s?i[o-1]=e:(i[o++]=s,i[o++]=e)}return this.ret(e-n.length,i)}}class v{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}const y=r.sj.define({combine:e=>(0,r.QR)(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:k,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>x(e(n),t(n)),optionClass:(e,t)=>n=>x(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function x(e,t){return e?t?e+" "+t:e:t}function k(e,t,n,r,o,s){let a,l,c=e.textDirection==i.OP.RTL,u=c,h=!1,d="top",p=t.left-o.left,f=o.right-t.right,m=r.right-r.left,g=r.bottom-r.top;if(u&&p<Math.min(m,f)?u=!1:!u&&f<Math.min(m,p)&&(u=!0),m<=(u?p:f))a=Math.max(o.top,Math.min(n.top,o.bottom-g))-t.top,l=Math.min(400,u?p:f);else{h=!0,l=Math.min(400,(c?t.right:o.right-t.left)-30);let e=o.bottom-t.bottom;e>=g||e>t.top?a=n.bottom-t.top:(d="bottom",a=t.bottom-n.top)}return{style:`${d}: ${a/((t.bottom-t.top)/s.offsetHeight)}px; max-width: ${l/((t.right-t.left)/s.offsetWidth)}px`,class:"cm-completionInfo-"+(h?c?"left-narrow":"right-narrow":u?"left":"right")}}function S(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class w{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:o}=r.open,s=e.state.facet(y);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let o=e.displayLabel||e.label,s=0;for(let a=0;a<r.length;){let e=r[a++],t=r[a++];e>s&&i.appendChild(document.createTextNode(o.slice(s,e)));let n=i.appendChild(document.createElement("span"));n.appendChild(document.createTextNode(o.slice(e,t))),n.className="cm-completionMatchedText",s=t}return s<o.length&&i.appendChild(document.createTextNode(o.slice(s))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=S(i.length,o,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",n=>{let{options:r}=e.state.field(t).open;for(let t,i=n.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(t=/-(\d+)$/.exec(i.id))&&+t[1]<r.length)return this.applyCompletion(e,r[+t[1]]),void n.preventDefault()}),this.dom.addEventListener("focusout",t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(y).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:O.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:i,selected:o,disabled:s}=n.open;r.open&&r.open.options==i||(this.range=S(i.length,o,e.state.facet(y).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),s!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=S(t.options.length,t.selected,this.view.state.facet(y).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let o="string"===typeof r?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)}).catch(e=>(0,i.c_)(this.view.state,e,"completion info")):this.addInfoPane(o,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return t&&function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(y).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){const r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions")),r.addEventListener("mousedown",e=>{e.target==r&&e.preventDefault()});let i=null;for(let o=n.from;o<n.to;o++){let{completion:s,match:a}=e[o],{section:l}=s;if(l){let e="string"==typeof l?l:l.name;if(e!=i&&(o>n.from||0==n.from))if(i=e,"string"!=typeof l&&l.header)r.appendChild(l.header(l));else{r.appendChild(document.createElement("completion-section")).textContent=e}}const c=r.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let u=this.optionClass(s);u&&(c.className=u);for(let e of this.optionContent){let t=e(s,this.view.state,this.view,a);t&&c.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function A(e,t){return n=>new w(n,e,t)}function T(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class E{constructor(e,t,n,r,i,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new E(this.options,D(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i,o){if(r&&!o&&e.some(e=>e.isPending))return r.setDisabled();let s=function(e,t){let n=[],r=null,i=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some(t=>t.name==e)||r.push("string"==typeof t?{name:e}:t)}},o=t.facet(y);for(let c of e)if(c.hasResult()){let e=c.result.getMatch;if(!1===c.result.filter)for(let t of c.result.options)i(new u(t,c.source,e?e(t):[],1e9-n.length));else{let n,r=t.sliceDoc(c.from,c.to),s=o.filterStrict?new v(r):new b(r);for(let t of c.result.options)if(n=s.match(t.label)){let r=t.displayLabel?e?e(t,n.matched):[]:n.matched;i(new u(t,c.source,r,n.score+(t.boost||0)))}}}if(r){let e=Object.create(null),t=0,i=(e,t)=>{var n,r;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(r=t.rank)&&void 0!==r?r:1e9)||(e.name<t.name?-1:1)};for(let n of r.sort(i))t-=1e5,e[n.name]=t;for(let r of n){let{section:t}=r.completion;t&&(r.score+=e["string"==typeof t?t:t.name])}}let s=[],a=null,l=o.compareCompletions;for(let c of n.sort((e,t)=>t.score-e.score||l(e.completion,t.completion))){let e=c.completion;!a||a.label!=e.label||a.detail!=e.detail||null!=a.type&&null!=e.type&&a.type!=e.type||a.apply!=e.apply||a.boost!=e.boost?s.push(c):T(c.completion)>T(a)&&(s[s.length-1]=c),a=c.completion}return s}(e,t);if(!s.length)return r&&e.some(e=>e.isPending)?r.setDisabled():null;let a=t.facet(y).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){a=t;break}}return new E(s,D(n,a),{pos:e.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:B,above:i.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(e){return new E(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new E(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class C{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new C(M,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(y),r=(n.override||t.languageDataAt("autocomplete",h(t)).map(m)).map(t=>(this.active.find(e=>e.source==t)||new R(t,this.active.some(e=>0!=e.state)?1:0)).update(e,n));r.length==this.active.length&&r.every((e,t)=>e==this.active[t])&&(r=this.active);let i=this.open,o=e.effects.some(e=>e.is(I));i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,o=r==t.length;if(i||o)return i==o;if(e[n++].result!=t[r++].result)return!1}}(r,this.active)||o?i=E.build(r,t,this.id,i,n,o):i&&i.disabled&&!r.some(e=>e.isPending)&&(i=null),!i&&r.every(e=>!e.isPending)&&r.some(e=>e.hasResult())&&(r=r.map(e=>e.hasResult()?new R(e.source,0):e));for(let s of e.effects)s.is(L)&&(i=i&&i.setSelected(s.value,this.id));return r==this.active&&i==this.open?this:new C(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?_:P}}const _={"aria-autocomplete":"list"},P={};function D(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const M=[];function N(e,t){if(e.isUserEvent("input.complete")){let n=e.annotation(p);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class R{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let n=N(e,t),r=this;(8&n||16&n&&this.touches(e))&&(r=new R(r.source,0)),4&n&&0==r.state&&(r=new R(this.source,1)),r=r.updateFor(e,n);for(let i of e.effects)if(i.is(g))r=new R(r.source,1,i.value);else if(i.is(O))r=new R(r.source,0);else if(i.is(I))for(let e of i.value)e.source==r.source&&(r=e);return r}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(h(e.state))}}class Q extends R{constructor(e,t,n,r,i,o){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=o}hasResult(){return!0}updateFor(e,t){var n;if(!(3&t))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=h(e.state);if(a>o||!r||2&t&&(h(e.startState)==this.from||a<this.limit))return new R(this.source,4&t?1:0);let l=e.changes.mapPos(this.limit);return function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):d(e,!0).test(i)}(r.validFor,e.state,i,o)?new Q(this.source,this.explicit,l,r,i,o):r.update&&(r=r.update(r,i,o,new s(e.state,a,!1)))?new Q(this.source,this.explicit,l,r,r.from,null!==(n=r.to)&&void 0!==n?n:h(e.state)):new R(this.source,1,this.explicit)}map(e){if(e.empty)return this;return(this.result.map?this.result.map(this.result,e):this.result)?new Q(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new R(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}const I=r.Pe.define({map:(e,t)=>e.map(e=>e.map(t))}),L=r.Pe.define(),F=r.sU.define({create:()=>C.start(),update:(e,t)=>e.update(t),provide:e=>[i.DK.from(e,e=>e.tooltip),i.Lz.contentAttributes.from(e,e=>e.attrs)]});function $(e,t){const n=t.completion.apply||t.completion.label;let i=e.state.field(F).active.find(e=>e.source==t.source);return i instanceof Q&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,i){let{main:o}=e.selection,s=n-o.from,a=i-o.from;return Object.assign(Object.assign({},e.changeByRange(l=>{if(l!=o&&n!=i&&e.sliceDoc(l.from+s,l.from+a)!=e.sliceDoc(n,i))return{range:l};let c=e.toText(t);return{changes:{from:l.from+s,to:i==o.from?l.to:l.from+a,insert:c},range:r.OF.cursor(l.from+s+c.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,i.from,i.to)),{annotations:p.of(t.completion)})):n(e,t.completion,i.from,i.to),!0)}const B=A(F,$);function z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return n=>{let r=n.state.field(F,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(y).interactionDelay)return!1;let o,s=1;"page"==t&&(o=(0,i.Eg)(n,r.open.tooltip))&&(s=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:a}=r.open.options,l=r.open.selected>-1?r.open.selected+s*(e?1:-1):e?0:a-1;return l<0?l="page"==t?0:a-1:l>=a&&(l="page"==t?a-1:0),n.dispatch({effects:L.of(l)}),!0}}const q=e=>!!e.state.field(F,!1)&&(e.dispatch({effects:g.of(!0)}),!0);class H{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const U=i.Z9.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(F).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(F),n=e.state.facet(y);if(!e.selectionSet&&!e.docChanged&&e.startState.field(F)==t)return;let r=e.transactions.some(e=>{let t=N(e,n);return 8&t||(e.selection||e.docChanged)&&!(3&t)});for(let a=0;a<this.running.length;a++){let t=this.running[a];if(r||t.context.abortOnDocChange&&e.docChanged||t.updates.length+e.transactions.length>50&&Date.now()-t.time>1e3){for(let e of t.context.abortListeners)try{e()}catch(s){(0,i.c_)(this.view.state,s)}t.context.abortListeners=null,this.running.splice(a--,1)}else t.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(g)))&&(this.pendingStart=!0);let o=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),o):-1,0!=this.composing)for(let i of e.transactions)i.isUserEvent("input.type")?this.composing=2:2==this.composing&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(F);for(let n of t.active)n.isPending&&!this.running.some(e=>e.active.source==n.source)&&this.startQuery(n);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(y).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=h(t),r=new s(t,n,e.explicit,this.view),o=new H(e,r);this.running.push(o),Promise.resolve(e.source(r)).then(e=>{o.context.aborted||(o.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:O.of(null)}),(0,i.c_)(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(y).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(y),r=this.view.state.field(F);for(let i=0;i<this.running.length;i++){let o=this.running[i];if(void 0===o.done)continue;if(this.running.splice(i--,1),o.done){let r=h(o.updates.length?o.updates[0].startState:this.view.state),i=Math.min(r,o.done.from+(o.active.explicit?0:1)),s=new Q(o.active.source,o.active.explicit,i,o.done,o.done.from,null!==(e=o.done.to)&&void 0!==e?e:r);for(let e of o.updates)s=s.update(e,n);if(s.hasResult()){t.push(s);continue}}let s=r.active.find(e=>e.source==o.active.source);if(s&&s.isPending)if(null==o.done){let e=new R(o.active.source,0);for(let t of o.updates)e=e.update(t,n);e.isPending||t.push(e)}else this.startQuery(s)}(t.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:I.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(F,!1);if(t&&t.tooltip&&this.view.state.facet(y).closeOnBlur){let n=t.open&&(0,i.Eg)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:O.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:g.of(!1)}),20),this.composing=0}}}),X="object"==typeof navigator&&/Win/.test(navigator.platform),j=r.Nb.highest(i.Lz.domEventHandlers({keydown(e,t){let n=t.state.field(F,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&(!X||!e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),o=r.completion.commitCharacters||i.result.commitCharacters;return o&&o.indexOf(e.key)>-1&&$(t,r),!1}})),Z=i.Lz.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\ud835\udc65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\ud835\udc36'"}},".cm-completionIcon-type":{"&:after":{content:"'\ud835\udc61'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\ud83d\udd11\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Y{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class V{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,r.iR.TrackDel),n=e.mapPos(this.to,1,r.iR.TrackDel);return null==t||null==n?null:new V(this.field,t,n)}}class G{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),s=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(n.length){let n=s,i=/^\t*/.exec(l)[0].length;for(let t=0;t<i;t++)n+=e.facet(o.Xt);r.push(t+n.length-i),l=n+l.slice(i)}n.push(l),t+=l.length+1}let a=this.fieldPositions.map(e=>new V(e.field,r[e.line]+e.from,r[e.line]+e.to));return{text:n,ranges:a}}static parse(e){let t,n=[],r=[],i=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let e=t[1]?+t[1]:null,s=t[2]||t[3]||"",a=-1,l=s.replace(/\\[{}]/g,e=>e[1]);for(let t=0;t<n.length;t++)(null!=e?n[t].seq==e:l&&n[t].name==l)&&(a=t);if(a<0){let t=0;for(;t<n.length&&(null==e||null!=n[t].seq&&n[t].seq<e);)t++;n.splice(t,0,{seq:e,name:l}),a=t;for(let e of i)e.field>=a&&e.field++}i.push(new Y(a,r.length,t.index,t.index+l.length)),o=o.slice(0,t.index)+s+o.slice(t.index+t[0].length)}o=o.replace(/\\([{}])/g,(e,t,n)=>{for(let o of i)o.line==r.length&&o.from>n&&(o.from--,o.to--);return t}),r.push(o)}return new G(r,i)}}let W=i.NZ.widget({widget:new class extends i.xO{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),K=i.NZ.mark({class:"cm-snippetField"});class J{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.NZ.set(e.map(e=>(e.from==e.to?W:K).range(e.from,e.to)))}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new J(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}const ee=r.Pe.define({map:(e,t)=>e&&e.map(t)}),te=r.Pe.define(),ne=r.sU.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(ee))return n.value;if(n.is(te)&&e)return new J(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.Lz.decorations.from(e,e=>e?e.deco:i.NZ.none)});function re(e,t){return r.OF.create(e.filter(e=>e.field==t).map(e=>r.OF.range(e.from,e.to)))}function ie(e){let t=G.parse(e);return(e,n,i,o)=>{let{text:s,ranges:a}=t.instantiate(e.state,i),{main:l}=e.state.selection,c={changes:{from:i,to:o==l.from?l.to:o,insert:r.EY.of(s)},scrollIntoView:!0,annotations:n?[p.of(n),r.ZX.userEvent.of("input.complete")]:void 0};if(a.length&&(c.selection=re(a,0)),a.some(e=>e.field>0)){let t=new J(a,0),n=c.effects=[ee.of(t)];void 0===e.state.field(ne,!1)&&n.push(r.Pe.appendConfig.of([ne,le,ue,Z]))}e.dispatch(e.state.update(c))}}function oe(e){return t=>{let{state:n,dispatch:r}=t,i=n.field(ne,!1);if(!i||e<0&&0==i.active)return!1;let o=i.active+e,s=e>0&&!i.ranges.some(t=>t.field==o+e);return r(n.update({selection:re(i.ranges,o),effects:ee.of(s?null:new J(i.ranges,o)),scrollIntoView:!0})),!0}}const se=[{key:"Tab",run:oe(1),shift:oe(-1)},{key:"Escape",run:e=>{let{state:t,dispatch:n}=e;return!!t.field(ne,!1)&&(n(t.update({effects:ee.of(null)})),!0)}}],ae=r.sj.define({combine:e=>e.length?e[0]:se}),le=r.Nb.highest(i.w4.compute([ae],e=>e.facet(ae)));function ce(e,t){return Object.assign(Object.assign({},t),{apply:ie(e)})}const ue=i.Lz.domEventHandlers({mousedown(e,t){let n,r=t.state.field(ne,!1);if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=r.ranges.find(e=>e.from<=n&&e.to>=n);return!(!i||i.field==r.active)&&(t.dispatch({selection:re(r.ranges,i.field),effects:ee.of(r.ranges.some(e=>e.field>i.field)?new J(r.ranges,i.field):null),scrollIntoView:!0}),!0)}});const he={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},de=r.Pe.define({map(e,t){let n=t.mapPos(e,-1,r.iR.TrackAfter);return null==n?void 0:n}}),pe=new class extends r.FB{};pe.startSide=1,pe.endSide=-1;const fe=r.sU.define({create:()=>r.om.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(de)&&(e=e.update({add:[pe.range(n.value,n.value+1)]}));return e}});function me(){return[ye,fe]}const ge="()[]{}<>\xab\xbb\xbb\xab\uff3b\uff3d\uff5b\uff5d";function Oe(e){for(let t=0;t<16;t+=2)if(ge.charCodeAt(t)==e)return ge.charAt(t+1);return(0,r.MK)(e<128?e:e+1)}function be(e,t){return e.languageDataAt("closeBrackets",t)[0]||he}const ve="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),ye=i.Lz.inputHandler.of((e,t,n,i)=>{if((ve?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,r.Fh)((0,r.vS)(i,0))||t!=o.from||n!=o.to)return!1;let s=function(e,t){let n=be(e,e.selection.main.head),i=n.brackets||he.brackets;for(let o of i){let s=Oe((0,r.vS)(o,0));if(t==o)return s==o?Te(e,o,i.indexOf(o+o+o)>-1,n):we(e,o,s,n.before||he.before);if(t==s&&ke(e,e.selection.main.from))return Ae(e,o,s)}return null}(e.state,i);return!!s&&(e.dispatch(s),!0)}),xe=[{key:"Backspace",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let i=be(t,t.selection.main.head).brackets||he.brackets,o=null,s=t.changeByRange(e=>{if(e.empty){let n=function(e,t){let n=e.sliceString(t-2,t);return(0,r.Fh)((0,r.vS)(n,0))==n.length?n:n.slice(1)}(t.doc,e.head);for(let o of i)if(o==n&&Se(t.doc,e.head)==Oe((0,r.vS)(o,0)))return{changes:{from:e.head-o.length,to:e.head+o.length},range:r.OF.cursor(e.head-o.length)}}return{range:o=e}});return o||n(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function ke(e,t){let n=!1;return e.field(fe).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function Se(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,r.Fh)((0,r.vS)(n,0)))}function we(e,t,n,i){let o=null,s=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:de.of(s.to+t.length),range:r.OF.range(s.anchor+t.length,s.head+t.length)};let a=Se(e.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:t+n,from:s.head},effects:de.of(s.head+t.length),range:r.OF.cursor(s.head+t.length)}:{range:o=s}});return o?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Ae(e,t,n){let i=null,o=e.changeByRange(t=>t.empty&&Se(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:r.OF.cursor(t.head+n.length)}:i={range:t});return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Te(e,t,n,i){let s=i.stringPrefixes||he.stringPrefixes,a=null,l=e.changeByRange(i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:de.of(i.to+t.length),range:r.OF.range(i.anchor+t.length,i.head+t.length)};let l,c=i.head,u=Se(e.doc,c);if(u==t){if(Ee(e,c))return{changes:{insert:t+t,from:c},effects:de.of(c+t.length),range:r.OF.cursor(c+t.length)};if(ke(e,c)){let i=n&&e.sliceDoc(c,c+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:c,to:c+i.length,insert:i},range:r.OF.cursor(c+i.length)}}}else{if(n&&e.sliceDoc(c-2*t.length,c)==t+t&&(l=Ce(e,c-2*t.length,s))>-1&&Ee(e,l))return{changes:{insert:t+t+t+t,from:c},effects:de.of(c+t.length),range:r.OF.cursor(c+t.length)};if(e.charCategorizer(c)(u)!=r.Je.Word&&Ce(e,c,s)>-1&&!function(e,t,n,r){let i=(0,o.mv)(e).resolveInner(t,-1),s=r.reduce((e,t)=>Math.max(e,t.length),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+s)),a=o.indexOf(n);if(!a||a>-1&&r.indexOf(o.slice(0,a))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,c,t,s))return{changes:{insert:t+t,from:c},effects:de.of(c+t.length),range:r.OF.cursor(c+t.length)}}return{range:a=i}});return a?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Ee(e,t){let n=(0,o.mv)(e).resolveInner(t+1);return n.parent&&n.from==t}function Ce(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=r.Je.Word)return t;for(let o of n){let n=t-o.length;if(e.sliceDoc(n,t)==o&&i(e.sliceDoc(n-1,n))!=r.Je.Word)return n}return-1}function _e(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[j,F,y.of(e),U,De,Z]}const Pe=[{key:"Ctrl-Space",run:q},{mac:"Alt-`",run:q},{key:"Escape",run:e=>{let t=e.state.field(F,!1);return!(!t||!t.active.some(e=>0!=e.state))&&(e.dispatch({effects:O.of(null)}),!0)}},{key:"ArrowDown",run:z(!0)},{key:"ArrowUp",run:z(!1)},{key:"PageDown",run:z(!0,"page")},{key:"PageUp",run:z(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(F,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(y).interactionDelay)&&$(e,t.open.options[t.open.selected])}}],De=r.Nb.highest(i.w4.computeN([y],e=>e.facet(y).defaultKeymap?[Pe]:[]))},5221:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoCloseTags:()=>xe,html:()=>ve,htmlCompletionSource:()=>de,htmlCompletionSourceWith:()=>pe,htmlLanguage:()=>be,htmlPlain:()=>Oe});var r=n(4179),i=n(1345),o=n(4450);const s=20,a=22,l=23,c=24,u=26,h=27,d=28,p=31,f=34,m=37,g={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},O={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},b={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function v(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}function y(e){return 9==e||10==e||13==e||32==e}let x=null,k=null,S=0;function w(e,t){let n=e.pos+t;if(S==n&&k==e)return x;let r=e.peek(t);for(;y(r);)r=e.peek(++t);let i="";for(;v(r);)i+=String.fromCharCode(r),r=e.peek(++t);return k=e,S=n,x=i?i.toLowerCase():r==A||r==T?void 0:null}const A=63,T=33;function E(e,t){this.name=e,this.parent=t}const C=[6,10,7,8,9],_=new r.Aj({start:null,shift:(e,t,n,r)=>C.indexOf(t)>-1?new E(w(r,1)||"",e):e,reduce:(e,t)=>t==s&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 6==i||36==i?new E(w(r,1)||"",e):e},strict:!1}),P=new r.Lu((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(57));e.advance();let n=47==e.next;n&&e.advance();let r=w(e,0);if(void 0===r)return;if(!r)return e.acceptToken(n?14:6);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(11);if(i&&O[i])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(13)}else{if("script"==r)return e.acceptToken(7);if("style"==r)return e.acceptToken(8);if("textarea"==r)return e.acceptToken(9);if(g.hasOwnProperty(r))return e.acceptToken(10);i&&b[i]&&b[i][r]?e.acceptToken(57,-1):e.acceptToken(6)}},{contextual:!0}),D=new r.Lu(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(58);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){n>=3&&e.acceptToken(58,-2);break}t=0}e.advance()}});const M=new r.Lu((e,t)=>{if(47==e.next&&62==e.peek(1)){let n=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(n?5:4,2)}else 62==e.next&&e.acceptToken(4,1)});function N(e,t,n){let i=2+e.length;return new r.Lu(r=>{for(let o=0,s=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(t);break}if(0==o&&60==r.next||1==o&&47==r.next||o>=2&&o<i&&r.next==e.charCodeAt(o-2))o++,s++;else if(2!=o&&o!=i||!y(r.next)){if(o==i&&62==r.next){a>s?r.acceptToken(t,-s):r.acceptToken(n,-(s-2));break}if((10==r.next||13==r.next)&&a){r.acceptToken(t,1);break}o=s=0}else s++;r.advance()}})}const R=N("script",54,1),Q=N("style",55,2),I=N("textarea",56,3),L=(0,i.pn)({"Text RawText":i._A.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":i._A.angleBracket,TagName:i._A.tagName,"MismatchedCloseTag/TagName":[i._A.tagName,i._A.invalid],AttributeName:i._A.attributeName,"AttributeValue UnquotedAttributeValue":i._A.attributeValue,Is:i._A.definitionOperator,"EntityReference CharacterReference":i._A.character,Comment:i._A.blockComment,ProcessingInst:i._A.processingInstruction,DoctypeDecl:i._A.documentMeta}),F=r.U1.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26a0 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:_,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[L],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebhSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXhSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vchS`P!a`!cpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WihSkWc!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QchSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[R,Q,I,M,P,D,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:509},tokenPrec:511});function $(e,t){let n=Object.create(null);for(let r of e.getChildren(l)){let e=r.getChild(c),i=r.getChild(u)||r.getChild(h);e&&(n[t.read(e.from,e.to)]=i?i.type.id==u?t.read(i.from+1,i.to-1):t.read(i.from,i.to):"")}return n}function B(e,t){let n=e.getChild(a);return n?t.read(n.from,n.to):" "}function z(e,t,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||(r=$(e.node.parent.firstChild,t))))return{parser:i.parser};return null}function q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=[],i=[],a=[];for(let o of e){("script"==o.tag?n:"style"==o.tag?r:"textarea"==o.tag?i:a).push(o)}let c=t.length?Object.create(null):null;for(let o of t)(c[o.name]||(c[o.name]=[])).push(o);return(0,o.$g)((e,t)=>{let o=e.type.id;if(o==d)return z(e,t,n);if(o==p)return z(e,t,r);if(o==f)return z(e,t,i);if(o==s&&a.length){let n,r=e.node,i=r.firstChild,o=i&&B(i,t);if(o)for(let e of a)if(e.tag==o&&(!e.attrs||e.attrs(n||(n=$(i,t))))){let t=r.lastChild,n=t.type.id==m?t.from:r.to;if(n>i.to)return{parser:e.parser,overlay:[{from:i.to,to:n}]}}}if(c&&o==l){let n,r=e.node;if(n=r.firstChild){let e=c[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=B(r.parent,t))continue;let e=r.lastChild;if(e.type.id==u){let t=e.from+1,r=e.lastChild,i=e.to-(r&&r.isError?0:1);if(i>t)return{parser:n.parser,overlay:[{from:t,to:i}]}}else if(e.type.id==h)return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}return null})}var H=n(8244),U=n(4013),X=n(4563),j=n(2400),Z=n(4859);const Y=["_blank","_self","_top","_parent"],V=["ascii","utf-8","utf-16","latin1","latin1"],G=["get","post","put","delete"],W=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],K=["true","false"],J={},ee={a:{attrs:{href:null,ping:null,type:null,media:null,target:Y,hreflang:null}},abbr:J,address:J,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:J,aside:J,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:J,base:{attrs:{href:null,target:Y}},bdi:J,bdo:J,blockquote:{attrs:{cite:null}},body:J,br:J,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:W,formmethod:G,formnovalidate:["novalidate"],formtarget:Y,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:J,center:J,cite:J,code:J,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:J,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:J,div:J,dl:J,dt:J,em:J,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:J,figure:J,footer:J,form:{attrs:{action:null,name:null,"accept-charset":V,autocomplete:["on","off"],enctype:W,method:G,novalidate:["novalidate"],target:Y}},h1:J,h2:J,h3:J,h4:J,h5:J,h6:J,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:J,hgroup:J,hr:J,html:{attrs:{manifest:null}},i:J,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:W,formmethod:G,formnovalidate:["novalidate"],formtarget:Y,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:J,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:J,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:J,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:V,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:J,noscript:J,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:J,param:{attrs:{name:null,value:null}},pre:J,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:J,rt:J,ruby:J,samp:J,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:V}},section:J,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:J,source:{attrs:{src:null,type:null,media:null}},span:J,strong:J,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:J,summary:J,sup:J,table:J,tbody:J,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:J,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:J,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:J,time:{attrs:{datetime:null}},title:J,tr:J,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:J,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:J},te={accesskey:null,class:null,contenteditable:K,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:K,autocorrect:K,autocapitalize:K,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":K,"aria-autocomplete":["inline","list","both","none"],"aria-busy":K,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":K,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":K,"aria-hidden":K,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":K,"aria-multiselectable":K,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":K,"aria-relevant":null,"aria-required":K,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},ne="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let ke of ne)te[ke]=null;class re{constructor(e,t){this.tags=Object.assign(Object.assign({},ee),e),this.globalAttrs=Object.assign(Object.assign({},te),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function ie(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function oe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function se(e,t,n){let r=n.tags[ie(e,oe(t))];return(null===r||void 0===r?void 0:r.children)||n.allTags}function ae(e,t){let n=[];for(let r=oe(t);r&&!r.type.isTop;r=oe(r.parent)){let i=ie(e,r);if(i&&"CloseTag"==r.lastChild.name)break;i&&n.indexOf(i)<0&&("EndTag"==t.name||t.from>=r.firstChild.to)&&n.push(i)}return n}re.default=new re;const le=/^[:\-\.\w\u00b7-\uffff]*$/;function ce(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=oe(n,!0);return{from:r,to:i,options:se(e.doc,s,t).map(e=>({label:e,type:"type"})).concat(ae(e.doc,n).map((e,t)=>({label:"/"+e,apply:"/"+e+o,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function ue(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:ae(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t})),validFor:le}}function he(e,t){let{state:n,pos:r}=t,i=(0,Z.mv)(n).resolveInner(r,-1),o=i.resolve(r);for(let s,a=r;o==i&&(s=i.childBefore(a));){let e=s.lastChild;if(!e||!e.type.isError||e.from<e.to)break;o=i=s,a=e.from}return"TagName"==i.name?i.parent&&/CloseTag$/.test(i.parent.name)?ue(n,i,i.from,r):ce(n,e,i,i.from,r):"StartTag"==i.name?ce(n,e,i,r,r):"StartCloseTag"==i.name||"IncompleteCloseTag"==i.name?ue(n,i,r,r):"OpenTag"==i.name||"SelfClosingTag"==i.name||"AttributeName"==i.name?function(e,t,n,r,i){let o=oe(n),s=o?t.tags[ie(e.doc,o)]:null,a=s&&s.attrs?Object.keys(s.attrs):[];return{from:r,to:i,options:(s&&!1===s.globalAttrs?a:a.length?a.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:"property"})),validFor:le}}(n,e,i,"AttributeName"==i.name?i.from:r,r):"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,n,r,i){var o;let s,a=null===(o=n.parent)||void 0===o?void 0:o.getChild("AttributeName"),l=[];if(a){let o=e.sliceDoc(a.from,a.to),c=t.globalAttrs[o];if(!c){let r=oe(n),i=r?t.tags[ie(e.doc,r)]:null;c=(null===i||void 0===i?void 0:i.attrs)&&i.attrs[o]}if(c){let t=e.sliceDoc(r,i).toLowerCase(),n='"',o='"';/^['"]/.test(t)?(s='"'==t[0]?/^[^"]*$/:/^[^']*$/,n="",o=e.sliceDoc(i,i+1)==t[0]?"":t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/;for(let e of c)l.push({label:e,apply:n+e+o,type:"constant"})}}return{from:r,to:i,options:l,validFor:s}}(n,e,i,"Is"==i.name?r:i.from,r):!t.explicit||"Element"!=o.name&&"Text"!=o.name&&"Document"!=o.name?null:function(e,t,n,r){let i=[],o=0;for(let s of se(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of ae(e.doc,n))i.push({label:"</"+s+">",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(n,e,i,r)}function de(e){return he(re.default,e)}function pe(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new re(t,n):re.default;return e=>he(r,e)}const fe=U.javascriptLanguage.parser.configure({top:"SingleExpression"}),me=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:U.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:U.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:U.tsxLanguage.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:fe},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:U.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:H.cssLanguage.parser}],ge=[{name:"style",parser:H.cssLanguage.parser.configure({top:"Styles"})}].concat(ne.map(e=>({name:e,parser:U.javascriptLanguage.parser}))),Oe=Z.bj.define({name:"html",parser:F.configure({props:[Z.Oh.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t,n=null;for(let r=e.node;;){let e=r.lastChild;if(!e||"Element"!=e.name||e.to!=r.to)break;n=r=e}return n&&(!(t=n.lastChild)||"CloseTag"!=t.name&&"SelfClosingTag"!=t.name)?e.lineIndent(n.from)+e.unit:null}}),Z.b_.add({Element(e){let t=e.firstChild,n=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==n.name?n.from:e.to}:null}}),Z.Q_.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),be=Oe.configure({wrap:q(me,ge)});function ve(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="";!1===t.matchClosingTags&&(n="noMatch"),!0===t.selfClosingTags&&(n=(n?n+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(e=q((t.nestedLanguages||[]).concat(me),(t.nestedAttributes||[]).concat(ge)));let r=e?Oe.configure({wrap:e,dialect:n}):n?be.configure({dialect:n}):be;return new Z.Yy(r,[be.data.of({autocomplete:pe(t)}),!1!==t.autoCloseTags?xe:[],(0,U.javascript)().support,(0,H.css)().support])}const ye=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),xe=X.Lz.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!be.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:s}=o,a=s.changeByRange(e=>{var t,n,i;let o,a=s.doc.sliceString(e.from-1,e.to)==r,{head:l}=e,c=(0,Z.mv)(s).resolveInner(l,-1);if(a&&">"==r&&"EndTag"==c.name){let r=c.parent;if("CloseTag"!=(null===(n=null===(t=r.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(o=ie(s.doc,r.parent,l))&&!ye.has(o)){return{range:e,changes:{from:l,to:l+(">"===s.doc.sliceString(l,l+1)?1:0),insert:`</${o}>`}}}}else if(a&&"/"==r&&"IncompleteCloseTag"==c.name){let e=c.parent;if(c.from==l-2&&"CloseTag"!=(null===(i=e.lastChild)||void 0===i?void 0:i.name)&&(o=ie(s.doc,e,l))&&!ye.has(o)){let e=l+(">"===s.doc.sliceString(l,l+1)?1:0),t=`${o}>`;return{range:j.OF.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}});return!a.changes.empty&&(e.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})},5683:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,l=[],c=!1,u=-1;function h(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&d())}function d(){if(!c){var e=s(h);c=!0;for(var t=l.length;t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5976:(e,t,n)=>{"use strict";n.d(t,{L:()=>u});var r=n(1462);const i={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"};function o(e){const t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function s(e){const t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function a(e){return function(e){const t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||o(e)}var l=n(3789);const c=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function u(e,t){const n=t||{},u="string"===typeof n.additional?n.additional.charCodeAt(0):n.additional,p=[];let f,m,g=0,O=-1,b="";n.position&&("start"in n.position||"indent"in n.position?(m=n.position.indent,f=n.position.start):f=n.position);let v,y=(f?f.line:0)||1,x=(f?f.column:0)||1,k=S();for(g--;++g<=e.length;)if(10===v&&(x=(m?m[O]:0)||1),v=e.charCodeAt(g),38===v){const t=e.charCodeAt(g+1);if(9===t||10===t||12===t||32===t||38===t||60===t||Number.isNaN(t)||u&&t===u){b+=String.fromCharCode(v),x++;continue}const c=g+1;let f,m=c,O=c;if(35===t){O=++m;const t=e.charCodeAt(O);88===t||120===t?(f="hexadecimal",O=++m):f="decimal"}else f="named";let y="",T="",E="";const C="named"===f?a:"decimal"===f?o:s;for(O--;++O<=e.length;){const t=e.charCodeAt(O);if(!C(t))break;E+=String.fromCharCode(t),"named"===f&&r.K.includes(E)&&(y=E,T=(0,l.s)(E))}let _=59===e.charCodeAt(O);if(_){O++;const e="named"===f&&(0,l.s)(E);e&&(y=E,T=e)}let P=1+O-c,D="";if(_||!1!==n.nonTerminated)if(E)if("named"===f){if(_&&!T)w(5,1);else if(y!==E&&(O=m+y.length,P=1+O-m,_=!1),!_){const t=y?1:3;if(n.attribute){const n=e.charCodeAt(O);61===n?(w(t,P),T=""):a(n)?T="":w(t,P)}else w(t,P)}D=T}else{_||w(2,P);let e=Number.parseInt(E,"hexadecimal"===f?16:10);if(h(e))w(7,P),D=String.fromCharCode(65533);else if(e in i)w(6,P),D=i[e];else{let t="";d(e)&&w(6,P),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),D=t+String.fromCharCode(e)}}else"named"!==f&&w(4,P);else;if(D){A(),k=S(),g=O-1,x+=O-c+1,p.push(D);const t=S();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,D,{start:k,end:t},e.slice(c-1,O)),k=t}else E=e.slice(c-1,O),b+=E,x+=E.length,g=O-1}else 10===v&&(y++,O++,x=0),Number.isNaN(v)?A():(b+=String.fromCharCode(v),x++);return p.join("");function S(){return{line:y,column:x,offset:g+((f?f.offset:0)||0)}}function w(e,t){let r;n.warning&&(r=S(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,c[e],r,e))}function A(){b&&(p.push(b),n.text&&n.text.call(n.textContext||void 0,b,{start:k,end:S()}),b="")}}function h(e){return e>=55296&&e<=57343||e>1114111}function d(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}},6083:(e,t,n)=>{var r=n(4006);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){!function(e,t){var n=e.generatedLine,i=t.generatedLine,o=e.generatedColumn,s=t.generatedColumn;return i>n||i==n&&s>=o||r.compareByGeneratedPositionsInflated(e,t)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.P=i},6175:(e,t,n)=>{"use strict";e.exports=n(9992)},6304:(e,t,n)=>{"use strict";var r=n(905);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return a(function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})},[e,n,t]),s(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},7323:function(e){e.exports=function(){"use strict";function e(e,t){if("undefined"===typeof document)return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);n.select();let i=!1;try{i=!!document.execCommand("copy")}catch(o){i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}return e}()},7428:(e,t,n)=>{var r=n(2609),i=n(4006),o=n(2840).C,s=n(6083).P;function a(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=i.getArg(e,"ignoreInvalidMapping",!1),this._sources=new o,this._names=new o,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e,t){var n=e.sourceRoot,r=new a(Object.assign(t||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=n&&(t.source=i.relative(n,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),r.addMapping(t)}),e.sources.forEach(function(t){var o=t;null!==n&&(o=i.relative(n,t)),r._sources.has(o)||r._sources.add(o);var s=e.sourceContentFor(t);null!=s&&r.setSourceContent(t,s)}),r},a.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);(this._skipValidation||!1!==this._validateMapping(t,n,r,o))&&(null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o}))},a.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var s=this._sourceRoot;null!=s&&(r=i.relative(s,r));var a=new o,l=new o;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=n&&(t.source=i.join(n,t.source)),null!=s&&(t.source=i.relative(s,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var c=t.source;null==c||a.has(c)||a.add(c);var u=t.name;null==u||l.has(u)||l.add(u)},this),this._sources=a,this._names=l,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=s&&(t=i.relative(s,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!==typeof t.line&&"number"!==typeof t.column){var i="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return"undefined"!==typeof console&&console.warn&&console.warn(i),!1;throw new Error(i)}if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)){i="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r});if(this._ignoreInvalidMapping)return"undefined"!==typeof console&&console.warn&&console.warn(i),!1;throw new Error(i)}},a.prototype._serializeMappings=function(){for(var e,t,n,o,s=0,a=1,l=0,c=0,u=0,h=0,d="",p=this._mappings.toArray(),f=0,m=p.length;f<m;f++){if(e="",(t=p[f]).generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=";",a++;else if(f>0){if(!i.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=r.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=r.encode(o-h),h=o,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),d+=e}return d},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.x=a},7469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{commonmarkLanguage:()=>Ze,deleteMarkupBackward:()=>rt,insertNewlineContinueMarkup:()=>et,markdown:()=>st,markdownKeymap:()=>it,markdownLanguage:()=>Ye});var r,i=n(2400),o=n(4563),s=n(4859),a=n(5045),l=n(4450),c=n(1345);class u{static create(e,t,n,r,i){return new u(e,t,n,r+(r<<8)+e+(t<<4)|0,i,[],[])}constructor(e,t,n,r,i,o,s){this.type=e,this.value=t,this.from=n,this.hash=r,this.end=i,this.children=o,this.positions=s,this.hashProp=[[l.uY.contextHash,r]]}addChild(e,t){e.prop(l.uY.contextHash)!=this.hash&&(e=new l.PH(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.end,n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new l.PH(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new l.PH(l.Z6.none,e,t,n,this.hashProp)})}}!function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"}(r||(r={}));class h{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class d{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return g(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;n<e;n++)t+=9==this.text.charCodeAt(n)?4-t%4:1;return t}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=9==this.text.charCodeAt(t)?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e="";for(let t=0;t<this.basePos;t++)e+=" ";return e+this.text.slice(this.basePos)}}function p(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let i=(e.type==r.OrderedList?S:k)(n,t,!1);return i>0&&(e.type!=r.BulletList||y(n,t,!1)<0)&&n.text.charCodeAt(n.pos+i-1)==e.value}const f={[r.Blockquote]:(e,t,n)=>62==n.next&&(n.markers.push(W(r.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(m(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0),[r.ListItem]:(e,t,n)=>!(n.indent<n.baseIndent+e.value&&n.next>-1)&&(n.moveBaseColumn(n.baseIndent+e.value),!0),[r.OrderedList]:p,[r.BulletList]:p,[r.Document]:()=>!0};function m(e){return 32==e||9==e||10==e||13==e}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(;t<e.length&&m(e.charCodeAt(t));)t++;return t}function O(e,t,n){for(;t>n&&m(e.charCodeAt(t-1));)t--;return t}function b(e){if(96!=e.next&&126!=e.next)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(96==e.next)for(let n=t;n<e.text.length;n++)if(96==e.text.charCodeAt(n))return-1;return t}function v(e){return 62!=e.next?-1:32==e.text.charCodeAt(e.pos+1)?2:1}function y(e,t,n){if(42!=e.next&&45!=e.next&&95!=e.next)return-1;let r=1;for(let i=e.pos+1;i<e.text.length;i++){let t=e.text.charCodeAt(i);if(t==e.next)r++;else if(!m(t))return-1}return n&&45==e.next&&A(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(L.SetextHeading)>-1||r<3?-1:1}function x(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function k(e,t,n){return 45!=e.next&&43!=e.next&&42!=e.next||e.pos!=e.text.length-1&&!m(e.text.charCodeAt(e.pos+1))||!(!n||x(t,r.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?-1:1}function S(e,t,n){let i=e.pos,o=e.next;for(;o>=48&&o<=57;){if(i++,i==e.text.length)return-1;o=e.text.charCodeAt(i)}return i==e.pos||i>e.pos+9||46!=o&&41!=o||i<e.text.length-1&&!m(e.text.charCodeAt(i+1))||n&&!x(t,r.OrderedList)&&(e.skipSpace(i+1)==e.text.length||i>e.pos+1||49!=e.next)?-1:i+1-e.pos}function w(e){if(35!=e.next)return-1;let t=e.pos+1;for(;t<e.text.length&&35==e.text.charCodeAt(t);)t++;if(t<e.text.length&&32!=e.text.charCodeAt(t))return-1;let n=t-e.pos;return n>6?-1:n}function A(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let n=t;for(;t<e.text.length&&m(e.text.charCodeAt(t));)t++;return t==e.text.length?n:-1}const T=/^[ \t]*$/,E=/-->/,C=/\?>/,_=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,E],[/^\s*<\?/,C],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,T],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,T]];function P(e,t,n){if(60!=e.next)return-1;let r=e.text.slice(e.pos);for(let i=0,o=_.length-(n?1:0);i<o;i++)if(_[i][0].test(r))return i;return-1}function D(e,t){let n=e.countIndent(t,e.pos,e.indent),r=e.countIndent(e.skipSpace(t),t,n);return r>=n+5?n+1:r}function M(e,t,n){let i=e.length-1;i>=0&&e[i].to==t&&e[i].type==r.CodeText?e[i].to=n:e.push(W(r.CodeText,t,n))}const N={LinkReference:void 0,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return!1;let i=t.findColumn(n),o=e.lineStart+i,s=e.lineStart+t.text.length,a=[],l=[];for(M(a,o,s);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){M(l,e.lineStart-1,e.lineStart);for(let e of t.markers)l.push(e)}else{if(t.indent<n)break;{if(l.length){for(let e of l)e.type==r.CodeText?M(a,e.from,e.to):a.push(e);l=[]}M(a,e.lineStart-1,e.lineStart);for(let e of t.markers)a.push(e);s=e.lineStart+t.text.length;let n=e.lineStart+t.findColumn(t.baseIndent+4);n<s&&M(a,n,s)}}return l.length&&(l=l.filter(e=>e.type!=r.CodeText),l.length&&(t.markers=l.concat(t.markers))),e.addNode(e.buffer.writeElements(a,-o).finish(r.CodeBlock,s-o),o),!0},FencedCode(e,t){let n=b(t);if(n<0)return!1;let i=e.lineStart+t.pos,o=t.next,s=n-t.pos,a=t.skipSpace(n),l=O(t.text,t.text.length,a),c=[W(r.CodeMark,i,i+s)];a<l&&c.push(W(r.CodeInfo,e.lineStart+a,e.lineStart+l));for(let u=!0;e.nextLine()&&t.depth>=e.stack.length;u=!1){let n=t.pos;if(t.indent-t.baseIndent<4)for(;n<t.text.length&&t.text.charCodeAt(n)==o;)n++;if(n-t.pos>=s&&t.skipSpace(n)==t.text.length){for(let e of t.markers)c.push(e);c.push(W(r.CodeMark,e.lineStart+t.pos,e.lineStart+n)),e.nextLine();break}{u||M(c,e.lineStart-1,e.lineStart);for(let e of t.markers)c.push(e);let n=e.lineStart+t.basePos,r=e.lineStart+t.text.length;n<r&&M(c,n,r)}}return e.addNode(e.buffer.writeElements(c,-i).finish(r.FencedCode,e.prevLineEnd()-i),i),!0},Blockquote(e,t){let n=v(t);return!(n<0)&&(e.startContext(r.Blockquote,t.pos),e.addNode(r.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+n),null)},HorizontalRule(e,t){if(y(t,e,!1)<0)return!1;let n=e.lineStart+t.pos;return e.nextLine(),e.addNode(r.HorizontalRule,n),!0},BulletList(e,t){let n=k(t,e,!1);if(n<0)return!1;e.block.type!=r.BulletList&&e.startContext(r.BulletList,t.basePos,t.next);let i=D(t,t.pos+1);return e.startContext(r.ListItem,t.basePos,i-t.baseIndent),e.addNode(r.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(i),null},OrderedList(e,t){let n=S(t,e,!1);if(n<0)return!1;e.block.type!=r.OrderedList&&e.startContext(r.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let i=D(t,t.pos+n);return e.startContext(r.ListItem,t.basePos,i-t.baseIndent),e.addNode(r.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(i),null},ATXHeading(e,t){let n=w(t);if(n<0)return!1;let i=t.pos,o=e.lineStart+i,s=O(t.text,t.text.length,i),a=s;for(;a>i&&t.text.charCodeAt(a-1)==t.next;)a--;a!=s&&a!=i&&m(t.text.charCodeAt(a-1))||(a=t.text.length);let l=e.buffer.write(r.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(i+n+1,a),o+n+1),-o);a<t.text.length&&l.write(r.HeaderMark,a-i,s-i);let c=l.finish(r.ATXHeading1-1+n,t.text.length-i);return e.nextLine(),e.addNode(c,o),!0},HTMLBlock(e,t){let n=P(t,0,!1);if(n<0)return!1;let i=e.lineStart+t.pos,o=_[n][1],s=[],a=o!=T;for(;!o.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){a=!1;break}for(let e of t.markers)s.push(e)}a&&e.nextLine();let l=o==E?r.CommentBlock:o==C?r.ProcessingInstructionBlock:r.HTMLBlock,c=e.prevLineEnd();return e.addNode(e.buffer.writeElements(s,-i).finish(l,c-i),i),!0},SetextHeading:void 0};class R{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(-1==this.stage)return!1;let r=n.content+"\n"+t.scrub(),i=this.advance(r);return i>-1&&i<r.length&&this.complete(e,n,i)}finish(e,t){return(2==this.stage||3==this.stage)&&g(t.content,this.pos)==t.content.length&&this.complete(e,t,t.content.length)}complete(e,t,n){return e.addLeafElement(t,W(r.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(!1===e&&(this.stage=-1),!1)}advance(e){for(;;){if(-1==this.stage)return-1;if(0==this.stage){if(!this.nextStage(ce(e,this.pos,this.start,!0)))return-1;if(58!=e.charCodeAt(this.pos))return this.stage=-1;this.elts.push(W(r.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else{if(1!=this.stage){if(2==this.stage){let t=g(e,this.pos),n=0;if(t>this.pos){let r=le(e,t,this.start);if(r){let t=Q(e,r.to-this.start);t>0&&(this.nextStage(r),n=t)}}return n||(n=Q(e,this.pos)),n>0&&n<e.length?n:-1}return Q(e,this.pos)}if(!this.nextStage(ae(e,g(e,this.pos),this.start)))return-1}}}}function Q(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(10==n)break;if(!m(n))return-1}return t}class I{nextLine(e,t,n){let i=t.depth<e.stack.length?-1:A(t),o=t.next;if(i<0)return!1;let s=W(r.HeaderMark,e.lineStart+t.pos,e.lineStart+i);return e.nextLine(),e.addLeafElement(n,W(61==o?r.SetextHeading1:r.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),s])),!0}finish(){return!1}}const L={LinkReference:(e,t)=>91==t.content.charCodeAt(0)?new R(t):null,SetextHeading:()=>new I},F=[(e,t)=>w(t)>=0,(e,t)=>b(t)>=0,(e,t)=>v(t)>=0,(e,t)=>k(t,e,!0)>=0,(e,t)=>S(t,e,!0)>=0,(e,t)=>y(t,e,!0)>=0,(e,t)=>P(t,0,!0)>=0],$={text:"",end:0};class B{constructor(e,t,n,i){this.parser=e,this.input=t,this.ranges=i,this.line=new d,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=i[i.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=i[0].from,this.block=u.create(r.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new pe(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(null!=this.stoppedAt&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let t=0;;){let n=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;t<e.markers.length&&(!n||e.markers[t].from<n.end);){let n=e.markers[t++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let t of this.parser.blockParsers)if(t){let n=t(this,e);if(0!=n){if(1==n)return null;e.forward();continue e}}break}let t=new h(this.lineStart+e.pos,e.text.slice(e.pos));for(let n of this.parser.leafBlockParsers)if(n){let e=n(this,t);e&&t.parsers.push(e)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4)for(let n of this.parser.endLeafBlock)if(n(this,e,t))break e;for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+="\n"+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return!!t&&(this.absoluteLineStart+=t,this.lineStart=fe(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0)}get depth(){return this.stack.length}parentType(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.depth-1;return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=$;if(t.end=e,e>=this.to)t.text="";else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<t.end;){n++;let r=this.ranges[n].from,i=this.lineChunkAt(r);t.end=r+i.length,t.text=t.text.slice(0,this.ranges[n-1].to-e)+i,e=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw new Error("Unhandled block context "+r[t.type]);if(!n(t,this,e))break;e.forward()}}lineChunkAt(e){let t,n=this.input.chunk(e);if(this.input.lineChunks)t="\n"==n?"":n;else{let e=n.indexOf("\n");t=e<0?n:n.slice(0,e)}return e+t.length>this.to?t.slice(0,this.to-e):t}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.block=u.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){"number"==typeof e&&(e=new l.PH(this.parser.nodeSet.types[e],Z,Z,(null!==n&&void 0!==n?n:this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(he(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?z(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let n of e.parsers)if(n.finish(this,e))return;let t=he(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(r.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return"string"==typeof e?W(this.parser.getNodeType(e),t,n,r):new G(e,t)}get buffer(){return new Y(this.parser.nodeSet)}}function z(e,t,n,r,i){let o=e[t].to,s=[],a=[],c=n.from+r;function u(n,i){for(;i?n>=o:n>o;){let i=e[t+1].from-o;r+=i,n+=i,t++,o=e[t].to}}for(let l=n.firstChild;l;l=l.nextSibling){u(l.from+r,!0);let n,h=l.from+r,d=i.get(l.tree);d?n=d:l.to+r>o?(n=z(e,t,l,r,i),u(l.to+r,!1)):n=l.toTree(),s.push(n),a.push(h-c)}return u(n.to+r,!1),new l.PH(n.type,s,a,n.to+r-c,n.tree?n.tree.propValues:void 0)}class q extends l.iX{constructor(e,t,n,r,i,o,s,a,l){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=o,this.inlineParsers=s,this.inlineNames=a,this.wrappers=l,this.nodeTypes=Object.create(null);for(let c of e.types)this.nodeTypes[c.name]=c.id}createParse(e,t,n){let r=new B(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}configure(e){let t=U(e);if(!t)return this;let{nodeSet:n,skipContextMarkup:i}=this,o=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),a=this.blockNames.slice(),u=this.inlineParsers.slice(),h=this.inlineNames.slice(),d=this.endLeafBlock.slice(),p=this.wrappers;if(H(t.defineNodes)){i=Object.assign({},i);let e,o=n.types.slice();for(let n of t.defineNodes){let{name:t,block:s,composite:a,style:u}="string"==typeof n?{name:n}:n;if(o.some(e=>e.name==t))continue;a&&(i[o.length]=(e,t,n)=>a(t,n,e.value));let h=o.length,d=a?["Block","BlockContext"]:s?h>=r.ATXHeading1&&h<=r.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;o.push(l.Z6.define({id:h,name:t,props:d&&[[l.uY.group,d]]})),u&&(e||(e={}),Array.isArray(u)||u instanceof c.vw?e[t]=u:Object.assign(e,u))}n=new l.fI(o),e&&(n=n.extend((0,c.pn)(e)))}if(H(t.props)&&(n=n.extend(...t.props)),H(t.remove))for(let r of t.remove){let e=this.blockNames.indexOf(r),t=this.inlineNames.indexOf(r);e>-1&&(o[e]=s[e]=void 0),t>-1&&(u[t]=void 0)}if(H(t.parseBlock))for(let r of t.parseBlock){let e=a.indexOf(r.name);if(e>-1)o[e]=r.parse,s[e]=r.leaf;else{let e=r.before?X(a,r.before):r.after?X(a,r.after)+1:a.length-1;o.splice(e,0,r.parse),s.splice(e,0,r.leaf),a.splice(e,0,r.name)}r.endLeaf&&d.push(r.endLeaf)}if(H(t.parseInline))for(let r of t.parseInline){let e=h.indexOf(r.name);if(e>-1)u[e]=r.parse;else{let e=r.before?X(h,r.before):r.after?X(h,r.after)+1:h.length-1;u.splice(e,0,r.parse),h.splice(e,0,r.name)}}return t.wrap&&(p=p.concat(t.wrap)),new q(n,o,s,a,d,i,u,h,p)}getNodeType(e){let t=this.nodeTypes[e];if(null==t)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new ue(this,e,t);e:for(let r=t;r<n.end;){let e=n.char(r);for(let t of this.inlineParsers)if(t){let i=t(n,e,r);if(i>=0){r=i;continue e}}r++}return n.resolveMarkers(0)}}function H(e){return null!=e&&e.length>0}function U(e){if(!Array.isArray(e))return e;if(0==e.length)return null;let t=U(e[0]);if(1==e.length)return t;let n=U(e.slice(1));if(!n||!t)return t||n;let r=(e,t)=>(e||Z).concat(t||Z),i=t.wrap,o=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?o?(e,t,n,r)=>i(o(e,t,n,r),t,n,r):i:o}}function X(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let j=[l.Z6.none];for(let ht,dt=1;ht=r[dt];dt++)j[dt]=l.Z6.define({id:dt,name:ht,props:dt>=r.Escape?[]:[[l.uY.group,dt in f?["Block","BlockContext"]:["Block","LeafBlock"]]],top:"Document"==ht});const Z=[];class Y{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.content.push(e,t,n,4+4*r),this}writeElements(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(let n of e)n.writeTo(this,t);return this}finish(e,t){return l.PH.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}}class V{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Z;this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new Y(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}}class G{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Z}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}}function W(e,t,n,r){return new V(e,t,n,r)}const K={resolve:"Emphasis",mark:"EmphasisMark"},J={resolve:"Emphasis",mark:"EmphasisMark"},ee={},te={};class ne{constructor(e,t,n,r){this.type=e,this.from=t,this.to=n,this.side=r}}const re="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let ie=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{ie=new RegExp("[\\p{S}|\\p{P}]","u")}catch(ut){}const oe={Escape(e,t,n){if(92!=t||n==e.end-1)return-1;let i=e.char(n+1);for(let o=0;o<32;o++)if(re.charCodeAt(o)==i)return e.append(W(r.Escape,n,n+2));return-1},Entity(e,t,n){if(38!=t)return-1;let i=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return i?e.append(W(r.Entity,n,n+1+i[0].length)):-1},InlineCode(e,t,n){if(96!=t||n&&96==e.char(n-1))return-1;let i=n+1;for(;i<e.end&&96==e.char(i);)i++;let o=i-n,s=0;for(;i<e.end;i++)if(96==e.char(i)){if(s++,s==o&&96!=e.char(i+1))return e.append(W(r.InlineCode,n,i+1,[W(r.CodeMark,n,n+o),W(r.CodeMark,i+1-o,i+1)]))}else s=0;return-1},HTMLTag(e,t,n){if(60!=t||n==e.end-1)return-1;let i=e.slice(n+1,e.end),o=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(i);if(o)return e.append(W(r.Autolink,n,n+1+o[0].length,[W(r.LinkMark,n,n+1),W(r.URL,n+1,n+o[0].length),W(r.LinkMark,n+o[0].length,n+1+o[0].length)]));let s=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(i);if(s)return e.append(W(r.Comment,n,n+1+s[0].length));let a=/^\?[^]*?\?>/.exec(i);if(a)return e.append(W(r.ProcessingInstruction,n,n+1+a[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(i);return l?e.append(W(r.HTMLTag,n,n+1+l[0].length)):-1},Emphasis(e,t,n){if(95!=t&&42!=t)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),o=e.slice(r,r+1),s=ie.test(i),a=ie.test(o),l=/\s|^$/.test(i),c=/\s|^$/.test(o),u=!c&&(!a||l||s),h=!l&&(!s||c||a),d=u&&(42==t||!h||s),p=h&&(42==t||!u||a);return e.append(new ne(95==t?K:J,n,r,(d?1:0)|(p?2:0)))},HardBreak(e,t,n){if(92==t&&10==e.char(n+1))return e.append(W(r.HardBreak,n,n+2));if(32==t){let t=n+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=n+2)return e.append(W(r.HardBreak,n,t+1))}return-1},Link:(e,t,n)=>91==t?e.append(new ne(ee,n,n+1,1)):-1,Image:(e,t,n)=>33==t&&91==e.char(n+1)?e.append(new ne(te,n,n+2,1)):-1,LinkEnd(e,t,n){if(93!=t)return-1;for(let i=e.parts.length-1;i>=0;i--){let t=e.parts[i];if(t instanceof ne&&(t.type==ee||t.type==te)){if(!t.side||e.skipSpace(t.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[i]=null,-1;let o=e.takeContent(i),s=e.parts[i]=se(e,o,t.type==ee?r.Link:r.Image,t.from,n+1);if(t.type==ee)for(let t=0;t<i;t++){let n=e.parts[t];n instanceof ne&&n.type==ee&&(n.side=0)}return s.to}}return-1}};function se(e,t,n,i,o){let{text:s}=e,a=e.char(o),l=o;if(t.unshift(W(r.LinkMark,i,i+(n==r.Image?2:1))),t.push(W(r.LinkMark,o-1,o)),40==a){let n,i=e.skipSpace(o+1),a=ae(s,i-e.offset,e.offset);a&&(i=e.skipSpace(a.to),i!=a.to&&(n=le(s,i-e.offset,e.offset),n&&(i=e.skipSpace(n.to)))),41==e.char(i)&&(t.push(W(r.LinkMark,o,o+1)),l=i+1,a&&t.push(a),n&&t.push(n),t.push(W(r.LinkMark,i,l)))}else if(91==a){let n=ce(s,o-e.offset,e.offset,!1);n&&(t.push(n),l=n.to)}return W(n,i,l,t)}function ae(e,t,n){if(60==e.charCodeAt(t)){for(let i=t+1;i<e.length;i++){let o=e.charCodeAt(i);if(62==o)return W(r.URL,t+n,i+1+n);if(60==o||10==o)return!1}return null}{let i=0,o=t;for(let t=!1;o<e.length;o++){let n=e.charCodeAt(o);if(m(n))break;if(t)t=!1;else if(40==n)i++;else if(41==n){if(!i)break;i--}else 92==n&&(t=!0)}return o>t?W(r.URL,t+n,o+n):o==e.length&&null}}function le(e,t,n){let i=e.charCodeAt(t);if(39!=i&&34!=i&&40!=i)return!1;let o=40==i?41:i;for(let s=t+1,a=!1;s<e.length;s++){let i=e.charCodeAt(s);if(a)a=!1;else{if(i==o)return W(r.LinkTitle,t+n,s+1+n);92==i&&(a=!0)}}return null}function ce(e,t,n,i){for(let o=!1,s=t+1,a=Math.min(e.length,s+999);s<a;s++){let a=e.charCodeAt(s);if(o)o=!1;else{if(93==a)return!i&&W(r.LinkLabel,t+n,s+1+n);if(i&&!m(a)&&(i=!1),91==a)return!1;92==a&&(o=!0)}}return null}class ue{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new ne(e,t,n,(r?1:0)|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof ne&&(t.type==ee||t.type==te))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n<this.parts.length;n++){let t=this.parts[n];if(!(t instanceof ne&&t.type.resolve&&2&t.side))continue;let r,i=t.type==K||t.type==J,o=t.to-t.from,s=n-1;for(;s>=e;s--){let e=this.parts[s];if(e instanceof ne&&1&e.side&&e.type==t.type&&!(i&&(1&t.side||2&e.side)&&(e.to-e.from+o)%3==0&&((e.to-e.from)%3||o%3))){r=e;break}}if(!r)continue;let a=t.type.resolve,l=[],c=r.from,u=t.to;if(i){let e=Math.min(2,r.to-r.from,o);c=r.to-e,u=t.from+e,a=1==e?"Emphasis":"StrongEmphasis"}r.type.mark&&l.push(this.elt(r.type.mark,c,r.to));for(let e=s+1;e<n;e++)this.parts[e]instanceof V&&l.push(this.parts[e]),this.parts[e]=null;t.type.mark&&l.push(this.elt(t.type.mark,t.from,u));let h=this.elt(a,c,u,l);this.parts[s]=i&&r.from!=c?new ne(r.type,r.from,c,r.side):null,(this.parts[n]=i&&t.to!=u?new ne(t.type,u,t.to,t.side):null)?this.parts.splice(n,0,h):this.parts[n]=h}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];e instanceof V&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof ne&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return g(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return"string"==typeof e?W(this.parser.getNodeType(e),t,n,r):new G(e,t)}}function he(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r<n.length&&n[r].to<i.to;)r++;if(r<n.length&&n[r].from<i.from){let e=n[r];e instanceof V&&(n[r]=new V(e.type,e.from,e.to,he(e.children,[i])))}else n.splice(r++,0,i)}return n}const de=[r.CodeBlock,r.ListItem,r.OrderedList,r.BulletList];class pe{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(l.uY.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=e.absoluteLineStart,s=o,a=e.block.children.length,c=s,u=a;for(;;){if(t.to-n>i){if(t.type.isAnonymous&&t.firstChild())continue;break}let o=fe(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,o);else{let n=new l.PH(e.parser.nodeSet.types[r.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,o)}if(t.type.is("Block")&&(de.indexOf(t.type.id)<0?(s=t.to-n,a=e.block.children.length):(s=c,a=u,c=t.to-n,u=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return s-o}}function fe(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,o=t[r].from;i<e&&(n-=o-i)}return n}const me=(0,c.pn)({"Blockquote/...":c._A.quote,HorizontalRule:c._A.contentSeparator,"ATXHeading1/... SetextHeading1/...":c._A.heading1,"ATXHeading2/... SetextHeading2/...":c._A.heading2,"ATXHeading3/...":c._A.heading3,"ATXHeading4/...":c._A.heading4,"ATXHeading5/...":c._A.heading5,"ATXHeading6/...":c._A.heading6,"Comment CommentBlock":c._A.comment,Escape:c._A.escape,Entity:c._A.character,"Emphasis/...":c._A.emphasis,"StrongEmphasis/...":c._A.strong,"Link/... Image/...":c._A.link,"OrderedList/... BulletList/...":c._A.list,"BlockQuote/...":c._A.quote,"InlineCode CodeText":c._A.monospace,"URL Autolink":c._A.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":c._A.processingInstruction,"CodeInfo LinkLabel":c._A.labelName,LinkTitle:c._A.string,Paragraph:c._A.content}),ge=new q(new l.fI(j).extend(me),Object.keys(N).map(e=>N[e]),Object.keys(N).map(e=>L[e]),Object.keys(N),F,f,Object.keys(oe).map(e=>oe[e]),Object.keys(oe),[]);function Oe(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let e=i?i.from:n;if(e>o&&r.push({from:o,to:e}),!i)break;o=i.to}return r}const be={resolve:"Strikethrough",mark:"StrikethroughMark"},ve={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":c._A.strikethrough}},{name:"StrikethroughMark",style:c._A.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(126!=t||126!=e.char(n+1)||126==e.char(n+2))return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),o=/\s|^$/.test(r),s=/\s|^$/.test(i),a=ie.test(r),l=ie.test(i);return e.addDelimiter(be,n,n+2,!s&&(!l||o||a),!o&&(!a||s||l))},after:"Emphasis"}]};function ye(e,t){let n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=0,o=!0,s=-1,a=-1,l=!1,c=()=>{n.push(e.elt("TableCell",r+s,r+a,e.parser.parseInline(t.slice(s,a),r+s)))};for(let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;u<t.length;u++){let h=t.charCodeAt(u);124!=h||l?(l||32!=h&&9!=h)&&(s<0&&(s=u),a=u+1):((!o||s>-1)&&i++,o=!1,n&&(s>-1&&c(),n.push(e.elt("TableDelimiter",u+r,u+r+1))),s=a=-1),l=!l&&92==h}return s>-1&&(i++,n&&c()),i}function xe(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(124==t)return!0;92==t&&n++}return!1}const ke=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class Se{constructor(){this.rows=null}nextLine(e,t,n){if(null==this.rows){let r;if(this.rows=!1,(45==t.next||58==t.next||124==t.next)&&ke.test(r=t.text.slice(t.pos))){let i=[];ye(e,n.content,0,i,n.start)==ye(e,r,t.pos)&&(this.rows=[e.elt("TableHeader",n.start,n.start+n.content.length,i),e.elt("TableDelimiter",e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let n=[];ye(e,t.text,t.pos,n,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+t.pos,e.lineStart+t.text.length,n))}return!1}finish(e,t){return!!this.rows&&(e.addLeafElement(t,e.elt("Table",t.start,t.start+t.content.length,this.rows)),!0)}}const we={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":c._A.heading}},"TableRow",{name:"TableCell",style:c._A.content},{name:"TableDelimiter",style:c._A.processingInstruction}],parseBlock:[{name:"Table",leaf:(e,t)=>xe(t.content,0)?new Se:null,endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof Se)||!xe(t.text,t.basePos))return!1;let r=e.peekLine();return ke.test(r)&&ye(e,t.text,t.basePos)==ye(e,r,t.basePos)},before:"SetextHeading"}]};class Ae{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const Te={defineNodes:[{name:"Task",block:!0,style:c._A.list},{name:"TaskMarker",style:c._A.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\][ \t]/.test(t.content)&&"ListItem"==e.parentType().name?new Ae:null,after:"SetextHeading"}]},Ee=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,Ce=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,_e=/[\w-]+\.[\w-]+($|\/)/,Pe=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,De=/\/[a-zA-Z\d@.]+/gy;function Me(e,t,n,r){let i=0;for(let o=t;o<n;o++)e[o]==r&&i++;return i}function Ne(e,t){Pe.lastIndex=t;let n=Pe.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return"_"==r||"-"==r?-1:t+n[0].length-("."==r?1:0)}const Re=[we,Te,ve,{parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;Ee.lastIndex=r;let i=Ee.exec(e.text),o=-1;if(!i)return-1;if(i[1]||i[2]){if(o=function(e,t){Ce.lastIndex=t;let n=Ce.exec(e);if(!n||_e.exec(n[0])[0].indexOf("_")>-1)return-1;let r=t+n[0].length;for(;;){let n,i=e[r-1];if(/[?!.,:*_~]/.test(i)||")"==i&&Me(e,t,r,")")>Me(e,t,r,"("))r--;else{if(";"!=i||!(n=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))break;r=t+n.index}}return r}(e.text,r+i[0].length),o>-1&&e.hasOpenLink){o=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,o))[0].length}}else i[3]?o=Ne(e.text,r):(o=Ne(e.text,r+i[0].length),o>-1&&"xmpp:"==i[0]&&(De.lastIndex=o,i=De.exec(e.text),i&&(o=i.index+i[0].length)));return o<0?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)}}]}];function Qe(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let s=[r.elt(n,o,o+1)];for(let a=o+1;a<r.end;a++){let i=r.char(a);if(i==e)return r.addElement(r.elt(t,o,a+1,s.concat(r.elt(n,a,a+1))));if(92==i&&s.push(r.elt("Escape",a,2+a++)),m(i))break}return-1}}const Ie={defineNodes:[{name:"Superscript",style:c._A.special(c._A.content)},{name:"SuperscriptMark",style:c._A.processingInstruction}],parseInline:[{name:"Superscript",parse:Qe(94,"Superscript","SuperscriptMark")}]},Le={defineNodes:[{name:"Subscript",style:c._A.special(c._A.content)},{name:"SubscriptMark",style:c._A.processingInstruction}],parseInline:[{name:"Subscript",parse:Qe(126,"Subscript","SubscriptMark")}]},Fe={defineNodes:[{name:"Emoji",style:c._A.character}],parseInline:[{name:"Emoji",parse(e,t,n){let r;return 58==t&&(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?e.addElement(e.elt("Emoji",n,n+1+r[0].length)):-1}}]};var $e=n(5221);const Be=(0,s.p9)({commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}}}),ze=new l.uY,qe=ge.configure({props:[s.b_.add(e=>!e.is("Block")||e.is("Document")||null!=He(e)||function(e){return"OrderedList"==e.name||"BulletList"==e.name}(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),ze.add(He),s.Oh.add({Document:()=>null}),s.iB.add({Document:Be})]});function He(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function Ue(e,t){let n=e;for(;;){let e,r=n.nextSibling;if(!r||null!=(e=He(r.type))&&e<=t)break;n=r}return n.to}const Xe=s.t.of((e,t,n)=>{for(let r=(0,s.mv)(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(ze);if(null==e)continue;let t=Ue(r,e);if(t>n)return{from:n,to:t}}return null});function je(e){return new s.TM(Be,e,[],"markdown")}const Ze=je(qe),Ye=je(qe.configure([Re,Le,Ie,Fe,{props:[s.b_.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));class Ve{constructor(e,t,n,r,i,o,s){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=o,this.item=s}blank(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.spaceBefore+("Blockquote"==this.node.name?">":"");if(null!=e){for(;n.length<e;)n+=" ";return n}for(let r=this.to-this.from-n.length-this.spaceAfter.length;r>0;r--)n+=" ";return n+(t?this.spaceAfter:"")}marker(e,t){let n="OrderedList"==this.node.name?String(+We(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function Ge(e,t){let n=[],r=[];for(let i=e;i;i=i.parent){if("FencedCode"==i.name)return r;"ListItem"!=i.name&&"Blockquote"!=i.name||n.push(i)}for(let i=n.length-1;i>=0;i--){let e,o=n[i],s=t.lineAt(o.from),a=o.from-s.from;if("Blockquote"==o.name&&(e=/^ *>( ?)/.exec(s.text.slice(a))))r.push(new Ve(o,a,a+e[0].length,"",e[1],">",null));else if("ListItem"==o.name&&"OrderedList"==o.parent.name&&(e=/^( *)\d+([.)])( *)/.exec(s.text.slice(a)))){let t=e[3],n=e[0].length;t.length>=4&&(t=t.slice(0,t.length-4),n-=4),r.push(new Ve(o.parent,a,a+n,e[1],t,e[2],o))}else if("ListItem"==o.name&&"BulletList"==o.parent.name&&(e=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(a)))){let t=e[4],n=e[0].length;t.length>4&&(t=t.slice(0,t.length-4),n-=4);let i=e[2];e[3]&&(i+=e[3].replace(/[xX]/," ")),r.push(new Ve(o.parent,a,a+n,e[1],t,i,o))}}return r}function We(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function Ke(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;for(let i=-1,o=e;;){if("ListItem"==o.name){let e=We(o,t),s=+e[2];if(i>=0){if(s!=i+1)return;n.push({from:o.from+e[1].length,to:o.from+e[0].length,insert:String(i+2+r)})}i=s}let e=o.nextSibling;if(!e)break;o=e}}function Je(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||"\t"!=t.facet(s.Xt))return e;let r="";for(let o=(0,i.y$)(e,4,n);o>0;)o>=4?(r+="\t",o-=4):(r+=" ",o--);return r+e.slice(n)}const et=e=>{let{state:t,dispatch:n}=e,r=(0,s.mv)(t),{doc:o}=t,a=null,l=t.changeByRange(e=>{if(!e.empty||!Ye.isActiveAt(t,e.from,-1)&&!Ye.isActiveAt(t,e.from,1))return a={range:e};let n=e.from,s=o.lineAt(n),l=Ge(r.resolveInner(n,-1),o);for(;l.length&&l[l.length-1].from>n-s.from;)l.pop();if(!l.length)return a={range:e};let c=l[l.length-1];if(c.to-c.spaceAfter.length>n-s.from)return a={range:e};let u=n>=c.to-c.spaceAfter.length&&!/\S/.test(s.text.slice(c.to));if(c.item&&u){let e=c.node.firstChild,r=c.node.getChild("ListItem","ListItem");if(e.to>=n||r&&r.to<n||s.from>0&&!/[^\s>]/.test(o.lineAt(s.from-1).text)){let e,t=l.length>1?l[l.length-2]:null,r="";t&&t.item?(e=s.from+t.from,r=t.marker(o,1)):e=s.from+(t?t.to:0);let a=[{from:e,to:n,insert:r}];return"OrderedList"==c.node.name&&Ke(c.item,o,a,-2),t&&"OrderedList"==t.node.name&&Ke(t.item,o,a),{range:i.OF.cursor(e+r.length),changes:a}}{let e=nt(l,t,s);return{range:i.OF.cursor(n+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if("Blockquote"==c.node.name&&u&&s.from){let n=o.lineAt(s.from-1),r=/>\s*$/.exec(n.text);if(r&&r.index==c.from){let i=t.changes([{from:n.from+r.index,to:n.to},{from:s.from+c.from,to:s.to}]);return{range:e.map(i),changes:i}}}let h=[];"OrderedList"==c.node.name&&Ke(c.item,o,h);let d=c.item&&c.item.from<s.from,p="";if(!d||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=c.to)for(let t=0,r=l.length-1;t<=r;t++)p+=t!=r||d?l[t].blank(t<r?(0,i.y$)(s.text,4,l[t+1].from)-p.length:null):l[t].marker(o,1);let f=n;for(;f>s.from&&/\s/.test(s.text.charAt(f-s.from-1));)f--;return p=Je(p,t),function(e,t){if("OrderedList"!=e.name&&"BulletList"!=e.name)return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),o=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1)<o.number}(c.node,t.doc)&&(p=nt(l,t,s)+t.lineBreak+p),h.push({from:f,to:n,insert:t.lineBreak+p}),{range:i.OF.cursor(f+p.length+1),changes:h}});return!a&&(n(t.update(l,{scrollIntoView:!0,userEvent:"input"})),!0)};function tt(e){return"QuoteMark"==e.name||"ListMark"==e.name}function nt(e,t,n){let r="";for(let o=0,s=e.length-2;o<=s;o++)r+=e[o].blank(o<s?(0,i.y$)(n.text,4,e[o+1].from)-r.length:null,o<s);return Je(r,t)}const rt=e=>{let{state:t,dispatch:n}=e,r=(0,s.mv)(t),o=null,a=t.changeByRange(e=>{let n=e.from,{doc:s}=t;if(e.empty&&Ye.isActiveAt(t,e.from)){let e=s.lineAt(n),o=Ge(function(e,t){let n=e.resolveInner(t,-1),r=t;tt(n)&&(r=n.from,n=n.parent);for(let i;i=n.childBefore(r);)if(tt(i))r=i.from;else{if("OrderedList"!=i.name&&"BulletList"!=i.name)break;n=i.lastChild,r=n.to}return n}(r,n),s);if(o.length){let r=o[o.length-1],s=r.to-r.spaceAfter.length+(r.spaceAfter?1:0);if(n-e.from>s&&!/\S/.test(e.text.slice(s,n-e.from)))return{range:i.OF.cursor(e.from+s),changes:{from:e.from+s,to:n}};if(n-e.from==s&&(!r.item||e.from<=r.item.from||!/\S/.test(e.text.slice(0,r.to)))){let o=e.from+r.from;if(r.item&&r.node.from<r.item.from&&/\S/.test(e.text.slice(r.from,r.to))){let n=r.blank((0,i.y$)(e.text,4,r.to)-(0,i.y$)(e.text,4,r.from));return o==e.from&&(n=Je(n,t)),{range:i.OF.cursor(o+n.length),changes:{from:o,to:e.from+r.to,insert:n}}}if(o<n)return{range:i.OF.cursor(o),changes:{from:o,to:n}}}}}return o={range:e}});return!o&&(n(t.update(a,{scrollIntoView:!0,userEvent:"delete"})),!0)},it=[{key:"Enter",run:et},{key:"Backspace",run:rt}],ot=(0,$e.html)({matchClosingTags:!1});function st(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{codeLanguages:t,defaultCodeLanguage:n,addKeymap:a=!0,base:{parser:c}=Ze,completeHTMLTags:u=!0,htmlTagLanguage:h=ot}=e;if(!(c instanceof q))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let d,p=e.extensions?[e.extensions]:[],f=[h.support,Xe];n instanceof s.Yy?(f.push(n.support),d=n.language):n&&(d=n);let m=t||d?(g=t,O=d,e=>{if(e&&g){let t=null;if(e=/\S*/.exec(e)[0],t="function"==typeof g?g(e):s.t$.matchLanguageName(g,e,!0),t instanceof s.t$)return t.support?t.support.language.parser:s.nq.getSkippingParser(t.load());if(t)return t.parser}return O?O.parser:null}):void 0;var g,O;p.push(function(e){let{codeParser:t,htmlParser:n}=e,i=(0,l.$g)((e,i)=>{let o=e.type.id;if(!t||o!=r.CodeBlock&&o!=r.FencedCode){if(n&&(o==r.HTMLBlock||o==r.HTMLTag||o==r.CommentBlock))return{parser:n,overlay:Oe(e.node,e.from,e.to)}}else{let n="";if(o==r.FencedCode){let t=e.node.getChild(r.CodeInfo);t&&(n=i.read(t.from,t.to))}let s=t(n);if(s)return{parser:s,overlay:e=>e.type.id==r.CodeText}}return null});return{wrap:i}}({codeParser:m,htmlParser:h.language.parser})),a&&f.push(i.Nb.high(o.w4.of(it)));let b=je(c.configure(p));return u&&f.push(b.data.of({autocomplete:at})),new s.Yy(b,f)}function at(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=(0,s.mv)(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if("CodeBlock"==i.name||"FencedCode"==i.name||"ProcessingInstructionBlock"==i.name||"CommentBlock"==i.name||"Link"==i.name||"Image"==i.name)return null;i=i.parent}return{from:n-r[0].length,to:n,options:ct(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let lt=null;function ct(){if(lt)return lt;let e=(0,$e.htmlCompletionSource)(new a._5(i.$t.create({extensions:ot}),0,!0));return lt=e?e.options:[]}},7799:(e,t)=>{function n(e){let t,n=[];for(let r of e.split(",").map(e=>e.trim()))if(/^-?\d+$/.test(r))n.push(parseInt(r,10));else if(t=r.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,r,i,o]=t;if(r&&o){r=parseInt(r),o=parseInt(o);const e=r<o?1:-1;"-"!==i&&".."!==i&&"\u2025"!==i||(o+=e);for(let t=r;t!==o;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},8161:(e,t)=>{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},8244:(e,t,n)=>{"use strict";n.r(t),n.d(t,{css:()=>F,cssCompletionSource:()=>I,cssLanguage:()=>L,defineCSSCompletionSource:()=>Q});var r=n(4179),i=n(1345);const o=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function s(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function a(e){return e>=48&&e<=57}function l(e){return a(e)||e>=97&&e<=102||e>=65&&e<=70}const c=(e,t,n)=>(r,i)=>{for(let o=!1,c=0,u=0;;u++){let{next:h}=r;if(s(h)||45==h||95==h||o&&a(h))!o&&(45!=h||u>0)&&(o=!0),c===u&&45==h&&c++,r.advance();else{if(92!=h||10==r.peek(1)){o&&r.acceptToken(2==c&&i.canShift(2)?t:40==h?n:e);break}if(r.advance(),l(r.next)){do{r.advance()}while(l(r.next));32==r.next&&r.advance()}else r.next>-1&&r.advance();o=!0}}},u=new r.Lu(c(123,2,124)),h=new r.Lu(c(125,3,4)),d=new r.Lu(e=>{if(o.includes(e.peek(-1))){let{next:t}=e;(s(t)||95==t||35==t||46==t||42==t||91==t||58==t&&s(e.peek(1))||45==t||38==t)&&e.acceptToken(122)}}),p=new r.Lu(e=>{if(!o.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),s(t)){do{e.advance()}while(s(e.next)||a(e.next));e.acceptToken(1)}}}),f=(0,i.pn)({"AtKeyword import charset namespace keyframes media supports":i._A.definitionKeyword,"from to selector":i._A.keyword,NamespaceName:i._A.namespace,KeyframeName:i._A.labelName,KeyframeRangeName:i._A.operatorKeyword,TagName:i._A.tagName,ClassName:i._A.className,PseudoClassName:i._A.constant(i._A.className),IdName:i._A.labelName,"FeatureName PropertyName":i._A.propertyName,AttributeName:i._A.attributeName,NumberLiteral:i._A.number,KeywordQuery:i._A.keyword,UnaryQueryOp:i._A.operatorKeyword,"CallTag ValueName":i._A.atom,VariableName:i._A.variableName,Callee:i._A.operatorKeyword,Unit:i._A.unit,"UniversalSelector NestingSelector":i._A.definitionOperator,"MatchOp CompareOp":i._A.compareOperator,"ChildOp SiblingOp, LogicOp":i._A.logicOperator,BinOp:i._A.arithmeticOperator,Important:i._A.modifier,Comment:i._A.blockComment,ColorLiteral:i._A.color,"ParenthesizedContent StringLiteral":i._A.string,":":i._A.punctuation,"PseudoOp #":i._A.derefOperator,"; ,":i._A.separator,"( )":i._A.paren,"[ ]":i._A.squareBracket,"{ }":i._A.brace}),m={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},g={__proto__:null,or:98,and:98,not:106,only:106,layer:170},O={__proto__:null,selector:112,layer:166},b={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},v={__proto__:null,to:207},y=r.U1.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]O'tQhO'#EcO(VQdO'#EeO(bQaO'#CfO)VQ`O'#D{O)[Q`O'#F`O)gQdO'#F`QOQ`OOP)qO&jO'#CaPOOO)C@t)C@tOOQP'#Cj'#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO'#ErO*XQ`O,58}O*aQdO'#DzOOQS,58},58}OOQP'#Cn'#CnOOQO'#Dn'#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP'#Dq'#DqOOQP,5:[,5:[OOQO'#Ds'#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW'#DZ'#DZO,ZQhO'#DdO,xQhO'#FaO'tQhO'#DbO-WQ`O'#DhOOQW'#F['#F[O-]Q`O,5;SO-eQ`O'#DeOOQS-E8i-E8iOOQ['#Cs'#CsO-jQdO'#CtO.QQdO'#CzO.hQdO'#C}O/OQ!pO'#DPO1RQ!jO,5:jOOQO'#DU'#DUO*mQ`O'#DTO1cQ!nO'#FXO3`Q`O'#DVO3eQ`O'#DkOOQ['#FX'#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS'#E['#E[O3rQ`O,5:tO3wQdO,5:tOOQO'#E_'#E_O4PQ`O,5:wO4UQhO,5:}O%_QdO'#DgOOQS,5;P,5;PO-eQ`O,5;PO4^QdO,5;PO4fQdO,5:gO4vQdO'#EtO5TQ`O,5;zO5TQ`O,5;zPOOO'#Ej'#EjP5`O&jO,58{POOO,58{,58{OOQP1G.n1G.nOOQP1G.q1G.qO*hQ`O1G.qO*mQ`O1G.qOOQP1G/v1G/vO5kQpO1G/xO5sQaO1G/{O6ZQaO1G/}O6qQaO1G0OO7XQaO,5;^OOQO-E8p-E8pOOQS1G.i1G.iO7cQ`O,5:fO7hQdO'#DoO7oQdO'#CrOOQP1G/x1G/xO&lQdO1G/xO7vQ!jO'#DZO8UQ!bO,59vO8^QhO,5:OOOQO'#F]'#F]O8XQ!bO,59zO'tQhO,59xO8fQhO'#EvO8sQ`O,5;{O9OQhO,59|O9uQhO'#DiOOQW,5:S,5:SOOQS1G0n1G0nOOQW,5:P,5:PO9|Q!fO'#FYOOQS'#FY'#FYOOQS'#Em'#EmO;^QdO,59`OOQ[,59`,59`O;tQdO,59fOOQ[,59f,59fO<[QdO,59iOOQ[,59i,59iOOQ[,59k,59kO&lQdO,59mO<rQhO'#EQOOQW'#EQ'#EQO=WQ`O1G0UO1[QhO1G0UOOQ[,59o,59oO'tQhO'#DXOOQ[,59q,59qO=]Q#tO,5:VOOQS1G0[1G0[OOQS1G0^1G0^OOQS1G0`1G0`O=hQ`O1G0`O=mQdO'#E`OOQS1G0c1G0cOOQS1G0i1G0iO=xQaO,5:RO-`Q`O1G0kOOQS1G0k1G0kO-eQ`O1G0kO>PQ!fO1G0ROOQO1G0R1G0ROOQO,5;`,5;`O>gQdO,5;`OOQO-E8r-E8rO>tQ`O1G1fPOOO-E8h-E8hPOOO1G.g1G.gOOQP7+$]7+$]OOQP7+%d7+%dO&lQdO7+%dOOQS1G0Q1G0QO?PQaO'#F_O?ZQ`O,5:ZO?`Q!fO'#ElO@^QdO'#FWO@hQ`O,59^O@mQ!bO7+%dO&lQdO1G/bO@uQhO1G/fOOQW1G/j1G/jOOQW1G/d1G/dOAWQhO,5;bOOQO-E8t-E8tOAfQhO'#DZOAtQhO'#F^OBPQ`O'#F^OBUQ`O,5:TOOQS-E8k-E8kOOQ[1G.z1G.zOOQ[1G/Q1G/QOOQ[1G/T1G/TOOQ[1G/X1G/XOBZQdO,5:lOOQS7+%p7+%pOB`Q`O7+%pOBeQhO'#DYOBmQ`O,59sO'tQhO,59sOOQ[1G/q1G/qOBuQ`O1G/qOOQS7+%z7+%zOBzQbO'#DPOOQO'#Eb'#EbOCYQ`O'#EaOOQO'#Ea'#EaOCeQ`O'#EwOCmQdO,5:zOOQS,5:z,5:zOOQ[1G/m1G/mOOQS7+&V7+&VO-`Q`O7+&VOCxQ!fO'#EsO&lQdO'#EsOEPQdO7+%mOOQO7+%m7+%mOOQO1G0z1G0zOEdQ!bO<<IOOElQdO'#EqOEvQ`O,5;yOOQP1G/u1G/uOOQS-E8j-E8jOFOQdO'#EpOFYQ`O,5;rOOQ]1G.x1G.xOOQP<<IO<<IOOFbQdO7+$|OOQO'#D]'#D]OFiQ!bO7+%QOFqQhO'#EoOF{Q`O,5;xO&lQdO,5;xOOQW1G/o1G/oOOQO'#ES'#ESOGTQ`O1G0WOOQS<<I[<<I[O&lQdO,59tOGnQhO1G/_OOQ[1G/_1G/_OGuQ`O1G/_OOQW-E8l-E8lOOQ[7+%]7+%]OOQO,5:{,5:{O=pQdO'#ExOCeQ`O,5;cOOQS,5;c,5;cOOQS-E8u-E8uOOQS1G0f1G0fOOQS<<Iq<<IqOG}Q!fO,5;_OOQS-E8q-E8qOOQO<<IX<<IXOOQPAN>jAN>jOIUQaO,5;]OOQO-E8o-E8oOI`QdO,5;[OOQO-E8n-E8nOOQW<<Hh<<HhOOQW<<Hl<<HlOIjQhO<<HlOI{QhO,5;ZOJWQ`O,5;ZOOQO-E8m-E8mOJ]QdO1G1dOBZQdO'#EuOJgQ`O7+%rOOQW7+%r7+%rOJoQ!bO1G/`OOQ[7+$y7+$yOJzQhO7+$yPKRQ`O'#EnOOQO,5;d,5;dOOQO-E8v-E8vOOQS1G0}1G0}OKWQ`OAN>WO&lQdO1G0uOK]Q`O7+'OOOQO,5;a,5;aOOQO-E8s-E8sOOQW<<I^<<I^OOQ[<<He<<HePOQW,5;Y,5;YOOQWG23rG23rOKeQdO7+&a",stateData:"Kx~O#sOS#tQQ~OW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#oRO~OQiOW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#ohO~O#m$SP~P!dO#tmO~O#ooO~O]qO`rOarOjsOmtO!juO!mwO#nvO~OpzO!^xO~P$SOc!QO#o|O#p}O~O#o!RO~O#o!TO~OW[OZ[O]TO`VOaVOjWOmXO!jYO!mZO#oRO~OS!]Oe!YO!V![O!Y!`O#q!XOp$TP~Ok$TP~P&POQ!jOe!cOm!dOp!eOr!mOt!mOz!kO!`!lO#o!bO#p!hO#}!fO~Ot!qO!`!lO#o!pO~Ot!sO#o!sO~OS!]Oe!YO!V![O!Y!`O#q!XO~Oe!vOpzO#Z!xO~O]YX`YX`!pXaYXjYXmYXpYX!^YX!jYX!mYX#nYX~O`!zO~Ok!{O#m$SXo$SX~O#m$SXo$SX~P!dO#u#OO#v#OO#w#QO~Oc#UO#o|O#p}O~OpzO!^xO~Oo$SP~P!dOe#`O~Oe#aO~Ol#bO!h#cO~O]qO`rOarOjsOmtO~Op!ia!^!ia!j!ia!m!ia#n!iad!ia~P*zOp!la!^!la!j!la!m!la#n!lad!la~P*zOR#gOS!]Oe!YOr#gOt#gO!V![O!Y!`O#q#dO#}!fO~O!R#iO!^#jOk$TXp$TX~Oe#mO~Ok#oOpzO~Oe!vO~O]#rO`#rOd#uOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl#wO~P&lO]#rO`#rOi#rOj#rOk#rOo#yO~P&lOP#zOSsXesXksXvsX!VsX!YsX!usX!wsX#qsX!TsXQsX]sX`sXdsXisXjsXmsXpsXrsXtsXzsX!`sX#osX#psX#}sXlsXosX!^sX!qsX#msX~Ov#{O!u#|O!w#}Ok$TP~P'tOe#aOS#{Xk#{Xv#{X!V#{X!Y#{X!u#{X!w#{X#q#{XQ#{X]#{X`#{Xd#{Xi#{Xj#{Xm#{Xp#{Xr#{Xt#{Xz#{X!`#{X#o#{X#p#{X#}#{Xl#{Xo#{X!^#{X!q#{X#m#{X~Oe$RO~Oe$TO~Ok$VOv#{O~Ok$WO~Ot$XO!`!lO~Op$YO~OpzO!R#iO~OpzO#Z$`O~O!q$bOk!oa#m!oao!oa~P&lOk#hX#m#hXo#hX~P!dOk!{O#m$Sao$Sa~O#u#OO#v#OO#w$hO~Ol$jO!h$kO~Op!ii!^!ii!j!ii!m!ii#n!iid!ii~P*zOp!ki!^!ki!j!ki!m!ki#n!kid!ki~P*zOp!li!^!li!j!li!m!li#n!lid!li~P*zOp#fa!^#fa~P$SOo$lO~Od$RP~P%_Od#zP~P&lO`!PXd}X!R}X!T!PX~O`$sO!T$tO~Od$uO!R#iO~Ok#jXp#jX!^#jX~P'tO!^#jOk$Tap$Ta~O!R#iOk!Uap!Ua!^!Uad!Ua`!Ua~OS!]Oe!YO!V![O!Y!`O#q$yO~Od$QP~P9dOv#{OQ#|X]#|X`#|Xd#|Xe#|Xi#|Xj#|Xk#|Xm#|Xp#|Xr#|Xt#|Xz#|X!`#|X#o#|X#p#|X#}#|Xl#|Xo#|X~O]#rO`#rOd%OOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl%PO~P&lO]#rO`#rOi#rOj#rOk#rOo%QO~P&lOe%SOS!tXk!tX!V!tX!Y!tX#q!tX~Ok%TO~Od%YOt%ZO!a%ZO~Ok%[O~Oo%cO#o%^O#}%]O~Od%dO~P$SOv#{O!^%hO!q%jOk!oi#m!oio!oi~P&lOk#ha#m#hao#ha~P!dOk!{O#m$Sio$Si~O!^%mOd$RX~P$SOd%oO~Ov#{OQ#`Xd#`Xe#`Xm#`Xp#`Xr#`Xt#`Xz#`X!^#`X!`#`X#o#`X#p#`X#}#`X~O!^%qOd#zX~P&lOd%sO~Ol%tOv#{O~OR#gOr#gOt#gO#q%vO#}!fO~O!R#iOk#jap#ja!^#ja~O`!PXd}X!R}X!^}X~O!R#iO!^%xOd$QX~O`%zO~Od%{O~O#o%|O~Ok&OO~O`&PO!R#iO~Od&ROk&QO~Od&UO~OP#zOpsX!^sXdsX~O#}%]Op#TX!^#TX~OpzO!^&WO~Oo&[O#o%^O#}%]O~Ov#{OQ#gXe#gXk#gXm#gXp#gXr#gXt#gXz#gX!^#gX!`#gX!q#gX#m#gX#o#gX#p#gX#}#gXo#gX~O!^%hO!q&`Ok!oq#m!oqo!oq~P&lOl&aOv#{O~Od#eX!^#eX~P%_O!^%mOd$Ra~Od#dX!^#dX~P&lO!^%qOd#za~Od&fO~P&lOd&gO!T&hO~Od#cX!^#cX~P9dO!^%xOd$Qa~O]&mOd&oO~OS#bae#ba!V#ba!Y#ba#q#ba~Od&qO~PG]Od&qOk&rO~Ov#{OQ#gae#gak#gam#gap#gar#gat#gaz#ga!^#ga!`#ga!q#ga#m#ga#o#ga#p#ga#}#gao#ga~Od#ea!^#ea~P$SOd#da!^#da~P&lOR#gOr#gOt#gO#q%vO#}%]O~O!R#iOd#ca!^#ca~O`&xO~O!^%xOd$Qi~P&lO]&mOd&|O~Ov#{Od|ik|i~Od&}O~PG]Ok'OO~Od'PO~O!^%xOd$Qq~Od#cq!^#cq~P&lO#s!a#t#}]#}v!m~",goto:"2h$UPPPPP$VP$YP$c$uP$cP%X$cPP%_PPP%e%o%oPPPPP%oPP%oP&]P%oP%o'W%oP't'w'}'}(^'}P'}P'}P'}'}P(m'}(yP(|PP)p)v$c)|$c*SP$cP$c$cP*Y*{+YP$YP+aP+dP$YP$YP$YP+j$YP+m+p+s+z$YP$YPP$YP,P,V,f,|-[-b-l-r-x.O.U.`.f.l.rPPPPPPPPPPP.x/R/w/z0|P1U1u2O2R2U2[RnQ_^OP`kz!{$dq[OPYZ`kuvwxz!v!{#`$d%mqSOPYZ`kuvwxz!v!{#`$d%mQpTR#RqQ!OVR#SrQ#S!QS$Q!i!jR$i#U!V!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'Q!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QU#g!Y$t&hU%`$Y%b&WR&V%_!V!iac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QR$S!kQ%W$RR&S%Xk!^]bf!Y![!g#i#j#m$P$R%X%xQ#e!YQ${#mQ%w$tQ&j%xR&w&hQ!ygQ#p!`Q$^!xR%f$`R#n!]!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QQ!qdR$X!rQ!PVR#TrQ#S!PR$i#TQ!SWR#VsQ!UXR#WtQ{UQ!wgQ#^yQ#o!_Q$U!nQ$[!uQ$_!yQ%e$^Q&Y%aQ&]%fR&v&XSjPzQ!}kQ$c!{R%k$dZiPkz!{$dR$P!gQ%}%SR&z&mR!rdR!teR$Z!tS%a$Y%bR&t&WV%_$Y%b&WQ#PmR$g#PQ`OSkPzU!a`k$dR$d!{Q$p#aY%p$p%u&d&l'QQ%u$sQ&d%qQ&l%zR'Q&xQ#t!cQ#v!dQ#x!eV$}#t#v#xQ%X$RR&T%XQ%y$zS&k%y&yR&y&lQ%r$pR&e%rQ%n$mR&c%nQyUR#]yQ%i$aR&_%iQ!|jS$e!|$fR$f!}Q&n%}R&{&nQ#k!ZR$x#kQ%b$YR&Z%bQ&X%aR&u&X__OP`kz!{$d^UOP`kz!{$dQ!VYQ!WZQ#XuQ#YvQ#ZwQ#[xQ$]!vQ$m#`R&b%mR$q#aQ!gaQ!oc[#q!c!d!e#t#v#xQ$a!zd$o#a$p$s%q%u%z&d&l&x'QQ$r#cQ%R#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P",nodeNames:"\u26a0 Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to AtRule Styles",maxTerm:143,nodeProps:[["isolate",-2,5,36,""],["openedBy",20,"(",28,"[",31,"{"],["closedBy",21,")",29,"]",32,"}"]],propSources:[f],skippedNodes:[0,5,106],repeatNodeCount:15,tokenData:"JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;'S$q;'S;=`Iz<%lO$q`$tSOy%Qz;'S%Q;'S;=`%c<%lO%Q`%VS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Q~'ah#s~!a`OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Qj)OUOy%Qz#]%Q#]#^)b#^;'S%Q;'S;=`%c<%lO%Qj)gU!a`Oy%Qz#a%Q#a#b)y#b;'S%Q;'S;=`%c<%lO%Qj*OU!a`Oy%Qz#d%Q#d#e*b#e;'S%Q;'S;=`%c<%lO%Qj*gU!a`Oy%Qz#c%Q#c#d*y#d;'S%Q;'S;=`%c<%lO%Qj+OU!a`Oy%Qz#f%Q#f#g+b#g;'S%Q;'S;=`%c<%lO%Qj+gU!a`Oy%Qz#h%Q#h#i+y#i;'S%Q;'S;=`%c<%lO%Qj,OU!a`Oy%Qz#T%Q#T#U,b#U;'S%Q;'S;=`%c<%lO%Qj,gU!a`Oy%Qz#b%Q#b#c,y#c;'S%Q;'S;=`%c<%lO%Qj-OU!a`Oy%Qz#h%Q#h#i-b#i;'S%Q;'S;=`%c<%lO%Qj-iS!qY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q~-xWOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c<%lO-u~.gOt~~.jRO;'S-u;'S;=`.s;=`O-u~.vXOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c;=`<%l-u<%lO-u~/fP;=`<%l-uj/nYjYOy%Qz!Q%Q!Q![0^![!c%Q!c!i0^!i#T%Q#T#Z0^#Z;'S%Q;'S;=`%c<%lO%Qj0cY!a`Oy%Qz!Q%Q!Q![1R![!c%Q!c!i1R!i#T%Q#T#Z1R#Z;'S%Q;'S;=`%c<%lO%Qj1WY!a`Oy%Qz!Q%Q!Q![1v![!c%Q!c!i1v!i#T%Q#T#Z1v#Z;'S%Q;'S;=`%c<%lO%Qj1}YrY!a`Oy%Qz!Q%Q!Q![2m![!c%Q!c!i2m!i#T%Q#T#Z2m#Z;'S%Q;'S;=`%c<%lO%Qj2tYrY!a`Oy%Qz!Q%Q!Q![3d![!c%Q!c!i3d!i#T%Q#T#Z3d#Z;'S%Q;'S;=`%c<%lO%Qj3iY!a`Oy%Qz!Q%Q!Q![4X![!c%Q!c!i4X!i#T%Q#T#Z4X#Z;'S%Q;'S;=`%c<%lO%Qj4`YrY!a`Oy%Qz!Q%Q!Q![5O![!c%Q!c!i5O!i#T%Q#T#Z5O#Z;'S%Q;'S;=`%c<%lO%Qj5TY!a`Oy%Qz!Q%Q!Q![5s![!c%Q!c!i5s!i#T%Q#T#Z5s#Z;'S%Q;'S;=`%c<%lO%Qj5zSrY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qd6ZUOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qd6tS!hS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qb7VSZQOy%Qz;'S%Q;'S;=`%c<%lO%Q~7fWOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z<%lO7c~8RRO;'S7c;'S;=`8[;=`O7c~8_XOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z;=`<%l7c<%lO7c~8}P;=`<%l7cj9VSeYOy%Qz;'S%Q;'S;=`%c<%lO%Q~9hOd~n9oUWQvWOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qj:YWvW!mQOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj<VY!a`Oy%Qz{%Q{|<u|}%Q}!O<u!O!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj<zU!a`Oy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj=eU!a`#}YOy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj>O[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj>yS!^YOy%Qz;'S%Q;'S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;'S%Q;'S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;'S%Q;'S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%QjBUU`YOy%Qz![%Q![!]Bh!];'S%Q;'S;=`%c<%lO%QbBoSaQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjCQSkYOy%Qz;'S%Q;'S;=`%c<%lO%QhCcU!TWOy%Qz!_%Q!_!`Cu!`;'S%Q;'S;=`%c<%lO%QhC|S!TW!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QlDaS!TW!hSOy%Qz;'S%Q;'S;=`%c<%lO%QjDtV!jQ!TWOy%Qz!_%Q!_!`Cu!`!aEZ!a;'S%Q;'S;=`%c<%lO%QbEbS!jQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjEqYOy%Qz}%Q}!OFa!O!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjHQSmYOy%Qz;'S%Q;'S;=`%c<%lO%QnHcSl^Oy%Qz;'S%Q;'S;=`%c<%lO%QjHtSpYOy%Qz;'S%Q;'S;=`%c<%lO%QjIVSoYOy%Qz;'S%Q;'S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Q`I}P;=`<%l$q",tokenizers:[d,p,u,h,1,2,3,4,new r.uC("m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~",28,129)],topRules:{StyleSheet:[0,6],Styles:[1,105]},specialized:[{term:124,get:e=>m[e]||-1},{term:125,get:e=>g[e]||-1},{term:4,get:e=>O[e]||-1},{term:25,get:e=>b[e]||-1},{term:123,get:e=>v[e]||-1}],tokenPrec:1963});var x=n(4859),k=n(4450);let S=null;function w(){if(!S&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)"cssText"!=r&&"cssFloat"!=r&&"string"==typeof e[r]&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));S=t.sort().map(e=>({type:"property",label:e,apply:e+": "}))}return S||[]}const A=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),T=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),E=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),C=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),_=/^(\w[\w-]*|-\w[\w-]*|)$/,P=/^-(-[\w-]*)?$/;const D=new k.RY,M=["Declaration"];function N(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function R(e,t,n){if(t.to-t.from>4096){let r=D.get(t);if(r)return r;let i=[],o=new Set,s=t.cursor(k.Qj.IncludeAnonymous);if(s.firstChild())do{for(let t of R(e,s.node,n))o.has(t.label)||(o.add(t.label),i.push(t))}while(s.nextSibling());return D.set(t,i),i}{let r=[],i=new Set;return t.cursor().iterate(t=>{var o;if(n(t)&&t.matchContext(M)&&":"==(null===(o=t.node.nextSibling)||void 0===o?void 0:o.name)){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:"variable"}))}}),r}}const Q=e=>t=>{let{state:n,pos:r}=t,i=(0,x.mv)(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&"-"==n.doc.sliceString(i.from,i.to);if("PropertyName"==i.name||(o||"TagName"==i.name)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:w(),validFor:_};if("ValueName"==i.name)return{from:i.from,options:T,validFor:_};if("PseudoClassName"==i.name)return{from:i.from,options:A,validFor:_};if(e(i)||(t.explicit||o)&&function(e,t){var n;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let r=null===(n=e.parent)||void 0===n?void 0:n.firstChild;return"Callee"==(null===r||void 0===r?void 0:r.name)&&"var"==t.sliceString(r.from,r.to)}(i,n.doc))return{from:e(i)||o?i.from:r,options:R(n.doc,N(i),e),validFor:P};if("TagName"==i.name){for(let{parent:e}=i;e;e=e.parent)if("Block"==e.name)return{from:i.from,options:w(),validFor:_};return{from:i.from,options:E,validFor:_}}if("AtKeyword"==i.name)return{from:i.from,options:C,validFor:_};if(!t.explicit)return null;let s=i.resolve(r),a=s.childBefore(r);return a&&":"==a.name&&"PseudoClassSelector"==s.name?{from:r,options:A,validFor:_}:a&&":"==a.name&&"Declaration"==s.name||"ArgList"==s.name?{from:r,options:T,validFor:_}:"Block"==s.name||"Styles"==s.name?{from:r,options:w(),validFor:_}:null},I=Q(e=>"VariableName"==e.name),L=x.bj.define({name:"css",parser:y.configure({props:[x.Oh.add({Declaration:(0,x.mz)()}),x.b_.add({"Block KeyframeList":x.yd})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function F(){return new x.Yy(L,L.data.of({autocomplete:I}))}},8461:(e,t,n)=>{"use strict";function r(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(i,r).trim();!e&&o||t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function i(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>i,q:()=>r})},9004:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(4628)),i=n(4064);function o(e,t){var n={};return e&&"string"===typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n):n}o.default=o,e.exports=o},9851:(e,t,n)=>{"use strict";e.exports=n(6304)},9992:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,s=i>>>1;r<s;){var a=2*(r+1)-1,l=e[a],c=a+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],h=1,d=null,p=3,f=!1,m=!1,g=!1,O="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,v="undefined"!==typeof setImmediate?setImmediate:null;function y(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,y(e),!m)if(null!==r(c))m=!0,N(k);else{var t=r(u);null!==t&&R(x,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,b(T),T=-1),f=!0;var o=p;try{for(y(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!_());){var s=d.callback;if("function"===typeof s){d.callback=null,p=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof a?d.callback=a:d===r(c)&&i(c),y(n)}else i(c);d=r(c)}if(null!==d)var l=!0;else{var h=r(u);null!==h&&R(x,h.startTime-n),l=!1}return l}finally{d=null,p=o,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,w=!1,A=null,T=-1,E=5,C=-1;function _(){return!(t.unstable_now()-C<E)}function P(){if(null!==A){var e=t.unstable_now();C=e;var n=!0;try{n=A(!0,e)}finally{n?S():(w=!1,A=null)}}else w=!1}if("function"===typeof v)S=function(){v(P)};else if("undefined"!==typeof MessageChannel){var D=new MessageChannel,M=D.port2;D.port1.onmessage=P,S=function(){M.postMessage(null)}}else S=function(){O(P,0)};function N(e){A=e,w||(w=!0,S())}function R(e,n){T=O(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,N(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:h++,callback:i,priorityLevel:e,startTime:o,expirationTime:a=o+a,sortIndex:-1},o>s?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(b(T),T=-1):g=!0,R(x,o-s))):(e.sortIndex=a,n(c,e),m||f||(m=!0,N(k))),e},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.m=e,(()=>{var e=[];n.O=(t,r,i,o)=>{if(!r){var s=1/0;for(u=0;u<e.length;u++){r=e[u][0],i=e[u][1],o=e[u][2];for(var a=!0,l=0;l<r.length;l++)(!1&o||s>=o)&&Object.keys(n.O).every(e=>n.O[e](r[l]))?r.splice(l--,1):(a=!1,o<s&&(s=o));if(a){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,i,o]}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&r;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>r[e]);return s.default=()=>r,n.d(o,s),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,r)=>(n.f[r](e,t),t),[])),n.u=e=>"static/js/"+e+"."+{4:"f0af2c6e",588:"6b958f3d",624:"460562f8",642:"e0f76149",685:"29487511",854:"fd22d921",866:"e22aaedd",935:"daf1a852",1086:"f47e1b49",1140:"b34080c1",1188:"dd0cf401",1615:"4c0dea96",1677:"2e34d893",1839:"058ead81",1899:"3e77c3e8",1947:"8565cfd0",1993:"a993cb28",1994:"7336b63f",2007:"26a74dba",2066:"535a974d",2146:"3642d132",2266:"73340771",2290:"7ad98770",2433:"55b130c7",2463:"330b20e2",2565:"77e92468",2678:"1f0fa0cf",2682:"51c6d77d",3067:"919da59d",3171:"890db6da",3212:"f9a0a5f8",3368:"a478fffc",3450:"6102e34d",3492:"f79c0822",3498:"f94a2ac1",3632:"f4e986ff",3640:"5ab27e6a",3726:"4fcdfa05",3743:"5cfe4dd3",3790:"9efe03bb",3884:"f6a7b604",4089:"f991db31",4269:"f706b737",4374:"1098dd39",4388:"2dd676a4",4505:"7f3672ee",4517:"5d81c2e0",4702:"341b493e",4829:"9d6a2f37",4884:"7e6a25ff",4989:"b004826e",5039:"d89d1cc8",5188:"fdf85dc0",5208:"b2fc6de3",5251:"42d57335",5311:"511b5ee3",5323:"da24f886",5381:"0123d471",5395:"6377bc46",5473:"230a45a6",5516:"fdda5de4",5692:"73e18688",5912:"7764dde8",6013:"8020a57f",6054:"cc505d7a",6175:"d79f0f83",6193:"23747a68",6339:"a38a6cd2",6547:"75fc0c55",6555:"c43d9d73",6576:"45df2c63",6736:"c1e492f9",6769:"e8fffe08",6881:"0a5a5880",7062:"b92eeac2",7164:"f6911500",7316:"46cc3f1a",7472:"9332454a",7485:"e476a157",7534:"8dfe115e",7607:"9a4b5e3b",7628:"d82fef8a",7717:"44f6968d",7743:"3701ebc7",7873:"683f2ea9",8047:"251e9361",8063:"6d542815",8130:"a1ab05d7",8206:"0a9f3ceb",8219:"d62c72c7",8226:"36179585",8373:"d334527a",8437:"aa390bde",8448:"613408ea",8615:"0d5fa86e",8694:"4b094bc5",8898:"67ffb7b4",8945:"236088cc",9e3:"e6c0567f",9188:"2599132a",9223:"b64e48b0",9354:"b9cff541",9407:"29a7548f",9468:"c1d4d10b",9484:"346b4e12",9553:"09ee519b",9557:"87eb5257",9562:"06b8af05",9750:"e54b3dfd",9978:"7298fb26",9986:"5c1c686c"}[e]+".chunk.js",n.miniCssF=e=>{},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="website:";n.l=(r,i,o,s)=>{if(e[r])e[r].push(i);else{var a,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var h=c[u];if(h.getAttribute("src")==r||h.getAttribute("data-webpack")==t+o){a=h;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+o),a.src=r),e[r]=[i];var d=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach(e=>e(n)),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="./",(()=>{var e={8792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise((n,r)=>i=e[t]=[n,r]);r.push(i[2]=o);var s=n.p+n.u(t),a=new Error;n.l(s,r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,i[1](a)}},"chunk-"+t,t)}},n.O.j=t=>0===e[t];var t=(t,r)=>{var i,o,s=r[0],a=r[1],l=r[2],c=0;if(s.some(t=>0!==e[t])){for(i in a)n.o(a,i)&&(n.m[i]=a[i]);if(l)var u=l(n)}for(t&&t(r);c<s.length;c++)o=s[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(u)},r=self.webpackChunkwebsite=self.webpackChunkwebsite||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0;var r=n.O(void 0,[7293,3411],()=>n(3827));r=n.O(r)})();
//# sourceMappingURL=main.9c113e1d.js.map