2026-02-19 17:13:13 -05:00
|
|
|
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{LiteElement:()=>y});var n={};t.r(n),t.d(n,{LiteDocument:()=>g});var r={};t.r(r),t.d(r,{LiteComment:()=>x,LiteText:()=>w});var s={};t.r(s),t.d(s,{LiteList:()=>k});var i={};t.r(i),t.d(i,{LiteParser:()=>j,PATTERNS:()=>$});var o={};t.r(o),t.d(o,{LiteWindow:()=>z});var a={};t.r(a),t.d(a,{LiteAdaptor:()=>N,LiteBase:()=>I,liteAdaptor:()=>B});const l=("undefined"!=typeof window?window:t.g).MathJax._.components.global,c=(l.GLOBAL,l.isObject,l.combineConfig,l.combineDefaults,l.combineWithMathJax),u=(l.MathJax,MathJax._.core.DOMAdaptor.AbstractDOMAdaptor),h=MathJax._.util.Options,d=(h.isObject,h.APPEND,h.REMOVE,h.OPTIONS,h.Expandable,h.expandable,h.makeArray,h.keys,h.copy,h.insert,h.defaultOptions),p=h.userOptions,m=(h.selectOptions,h.selectOptionsFromKeys,h.separateOptions,h.lookup,MathJax._.util.AsyncLoad.asyncLoad);var f=function(t,e,n,r){return new(n||(n=Promise))(function(s,i){function o(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}l((r=r.apply(t,e||[])).next())})};const b={badCSS:!0,badSizes:!0};class y{constructor(t,e={},n=[]){this.kind=t,this.attributes=Object.assign({},e),this.children=[...n];for(const t of this.children)t.parent=this;this.styles=null}}class g{get kind(){return"#document"}constructor(t=null){this.defaultView=null,this.root=new y("html",{},[this.head=new y("head"),this.body=new y("body")]),this.type="",this.defaultView=t}}class w{get kind(){return"#text"}constructor(t=""){this.value=t}}class x extends w{get kind(){return"#comment"}}class k{constructor(t){this.nodes=[],this.nodes=[...t]}append(t){this.nodes.push(t)}[Symbol.iterator](){let t=0;return{next(){return t===this.nodes.length?{value:null,done:!0}:{value:this.nodes[t++],done:!1}}}}}const v=MathJax._.util.Entities,A=(v.options,v.entities,v.add,v.remove,v.translate),S=(v.numeric,"[ \\n]+"),C="[ \\n]*",O="[A-Za-z][^\0-\x1f \"'>/=\x7f-\x9f]*",L="[^\0-\x1f \"'>/=\x7f-\x9f]+",M=`${L}(?:${C}=${C}${`(?:'[^']*'|"[^"]*"|${S})`})?`,T=`(${L})(?:${C}=${C}${`(?:'([^']*)'|"([^"]*)"|(${S}))`})?`,$={tag:new RegExp(`(<(?:${O}(?:${S}${M})*${C}/?|/${O}|!--[^]*?--|![^]*?)(?:>|$))`,"u"),attr:new RegExp(M,"u"),attrsplit:new RegExp(T,"u")};class j{parseFromString(t,e="text/html",n=null){const r=n.createDocument();let s=n.body(r);const i=t.replace(/<\?.*?\?>/g,"").split($.tag);for(;i.length;){const t=i.shift(),e=i.shift();t&&this.addText(n,s,t),e&&">"===e.charAt(e.length-1)&&("!"===e.charAt(1)?this.addComment(n,s,e):s="/"===e.charAt(1)?this.closeTag(n,s,e):this.openTag(n,s,e,i))}return this.checkDocument(n,r),r}addText(t,e,n){return n=A(n),t.append(e,t.text(n))}addComment(t,e,n){return t.append(e,new x(n))}closeTag(t,e,n){const r=n.slice(2,n.length-1).toLowerCase();for(;t.parent(e)&&t.kind(e)!==r;)e=t.parent(e);return t.parent(e)}openTag(t,e,n,r){const s=this.constructor.PCDATA,i=this.constructor.SELF_CLOSING,o=n.match(/<(.*?)[\s\n>/]/)[1].toLowerCase(),a=t.node(o),l=n.replace(/^<.*?[\s\n>]/,"").split($.attrsplit);return(l.pop().match(/>$/)||l.length<5)&&(this.addAttributes(t,a,l),t.append(e,a),i[o]||n.match(/\/>$/)||(s[o]?this.handlePCDATA(t,a,o,r):e=a)),e}addAttributes(t,e,n){for(;n.length;){const[,r,s,i,o]=n.splice(0,5),a=A(s||i||o||"");t.setAttribute(e,r,a)}}handlePCDATA(t,e,n,r){const s=[],i="</"+n+">";let o="";for(;r.length&&o!==i;)s.push(o),s.push(r.shift()),o=r.shift();t.append(e,t.text(s.join("")))}checkDocument(t,e){const n=this.getOnlyChild(t,t.body(e));if(n){for(const r of t.childNodes(t.body(e))){if(r
|